diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e345c7d2f..89be5fdfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-node@v3 - name: Compile - run: yarn && yarn build + run: yarn && yarn build publish: needs: [ compile ] diff --git a/package.json b/package.json index 0b839c724..d7211b0eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mergeapi/merge-node-client", - "version": "1.1.1", + "version": "1.1.2", "private": false, "repository": "https://github.com/merge-api/merge-node-client", "main": "./index.js", diff --git a/reference.md b/reference.md index f77a6cbd0..d4afbfaac 100644 --- a/reference.md +++ b/reference.md @@ -1,8 +1,8 @@ # Reference -## Ats AccountDetails +## Filestorage AccountDetails -
client.ats.accountDetails.retrieve() -> Merge.AccountDetails +
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails
@@ -30,7 +30,7 @@ Get details for a linked account.
```typescript -await client.ats.accountDetails.retrieve(); +await client.filestorage.accountDetails.retrieve(); ```
@@ -57,9 +57,9 @@ await client.ats.accountDetails.retrieve();
-## Ats AccountToken +## Filestorage AccountToken -
client.ats.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.filestorage.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -87,7 +87,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.ats.accountToken.retrieve("public_token"); +await client.filestorage.accountToken.retrieve("public_token"); ```
@@ -122,9 +122,9 @@ await client.ats.accountToken.retrieve("public_token");
-## Ats Activities +## Filestorage AsyncPassthrough -
client.ats.activities.list({ ...params }) -> Merge.PaginatedActivityList +
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -136,7 +136,7 @@ await client.ats.accountToken.retrieve("public_token");
-Returns a list of `Activity` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -152,7 +152,10 @@ Returns a list of `Activity` objects.
```typescript -await client.ats.activities.list(); +await client.filestorage.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -168,7 +171,7 @@ await client.ats.activities.list();
-**request:** `Merge.ats.ActivitiesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -176,7 +179,7 @@ await client.ats.activities.list();
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -187,7 +190,7 @@ await client.ats.activities.list();
-
client.ats.activities.create({ ...params }) -> Merge.ActivityResponse +
client.filestorage.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -199,7 +202,7 @@ await client.ats.activities.list();
-Creates an `Activity` object with the given values. +Retrieves data from earlier async-passthrough POST request
@@ -215,10 +218,7 @@ Creates an `Activity` object with the given values.
```typescript -await client.ats.activities.create({ - model: {}, - remoteUserId: "remote_user_id", -}); +await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -234,7 +234,7 @@ await client.ats.activities.create({
-**request:** `Merge.ats.ActivityEndpointRequest` +**asyncPassthroughReceiptId:** `string`
@@ -242,7 +242,7 @@ await client.ats.activities.create({
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -253,7 +253,9 @@ await client.ats.activities.create({
-
client.ats.activities.retrieve(id, { ...params }) -> Merge.Activity +## Filestorage AuditTrail + +
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -265,7 +267,7 @@ await client.ats.activities.create({
-Returns an `Activity` object with the given `id`. +Gets a list of audit trail events.
@@ -281,7 +283,7 @@ Returns an `Activity` object with the given `id`.
```typescript -await client.ats.activities.retrieve("id"); +await client.filestorage.auditTrail.list(); ```
@@ -297,15 +299,7 @@ await client.ats.activities.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ActivitiesRetrieveRequest` +**request:** `Merge.filestorage.AuditTrailListRequest`
@@ -313,7 +307,7 @@ await client.ats.activities.retrieve("id");
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -324,7 +318,9 @@ await client.ats.activities.retrieve("id");
-
client.ats.activities.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage AvailableActions + +
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions
@@ -336,7 +332,7 @@ await client.ats.activities.retrieve("id");
-Returns metadata for `Activity` POSTs. +Returns a list of models and actions available for an account.
@@ -352,7 +348,7 @@ Returns metadata for `Activity` POSTs.
```typescript -await client.ats.activities.metaPostRetrieve(); +await client.filestorage.availableActions.retrieve(); ```
@@ -368,7 +364,7 @@ await client.ats.activities.metaPostRetrieve();
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -379,9 +375,9 @@ await client.ats.activities.metaPostRetrieve();
-## Ats Applications +## Filestorage Scopes -
client.ats.applications.list({ ...params }) -> Merge.PaginatedApplicationList +
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -393,7 +389,7 @@ await client.ats.activities.metaPostRetrieve();
-Returns a list of `Application` objects. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -409,7 +405,7 @@ Returns a list of `Application` objects.
```typescript -await client.ats.applications.list(); +await client.filestorage.scopes.defaultScopesRetrieve(); ```
@@ -425,15 +421,7 @@ await client.ats.applications.list();
-**request:** `Merge.ats.ApplicationsListRequest` - -
-
- -
-
- -**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -444,7 +432,7 @@ await client.ats.applications.list();
-
client.ats.applications.create({ ...params }) -> Merge.ApplicationResponse +
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -456,7 +444,7 @@ await client.ats.applications.list();
-Creates an `Application` object with the given values. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -472,10 +460,7 @@ Creates an `Application` object with the given values.
```typescript -await client.ats.applications.create({ - model: {}, - remoteUserId: "remote_user_id", -}); +await client.filestorage.scopes.linkedAccountScopesRetrieve(); ```
@@ -491,15 +476,7 @@ await client.ats.applications.create({
-**request:** `Merge.ats.ApplicationEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -510,7 +487,7 @@ await client.ats.applications.create({
-
client.ats.applications.retrieve(id, { ...params }) -> Merge.Application +
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -522,7 +499,7 @@ await client.ats.applications.create({
-Returns an `Application` object with the given `id`. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -538,7 +515,33 @@ Returns an `Application` object with the given `id`.
```typescript -await client.ats.applications.retrieve("id"); +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, + }, + }, + }, + ], +}); ```
@@ -554,15 +557,7 @@ await client.ats.applications.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ApplicationsRetrieveRequest` +**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -570,7 +565,7 @@ await client.ats.applications.retrieve("id");
-**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -581,7 +576,9 @@ await client.ats.applications.retrieve("id");
-
client.ats.applications.changeStageCreate(id, { ...params }) -> Merge.ApplicationResponse +## Filestorage DeleteAccount + +
client.filestorage.deleteAccount.delete() -> void
@@ -593,7 +590,7 @@ await client.ats.applications.retrieve("id");
-Updates the `current_stage` field of an `Application` object +Delete a linked account.
@@ -609,7 +606,7 @@ Updates the `current_stage` field of an `Application` object
```typescript -await client.ats.applications.changeStageCreate("id"); +await client.filestorage.deleteAccount.delete(); ```
@@ -625,23 +622,7 @@ await client.ats.applications.changeStageCreate("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.UpdateApplicationStageRequest` - -
-
- -
-
- -**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -652,7 +633,9 @@ await client.ats.applications.changeStageCreate("id");
-
client.ats.applications.metaPostRetrieve({ ...params }) -> Merge.MetaResponse +## Filestorage Drives + +
client.filestorage.drives.list({ ...params }) -> Merge.PaginatedDriveList
@@ -664,7 +647,7 @@ await client.ats.applications.changeStageCreate("id");
-Returns metadata for `Application` POSTs. +Returns a list of `Drive` objects.
@@ -680,7 +663,7 @@ Returns metadata for `Application` POSTs.
```typescript -await client.ats.applications.metaPostRetrieve(); +await client.filestorage.drives.list(); ```
@@ -696,7 +679,7 @@ await client.ats.applications.metaPostRetrieve();
-**request:** `Merge.ats.ApplicationsMetaPostRetrieveRequest` +**request:** `Merge.filestorage.DrivesListRequest`
@@ -704,7 +687,7 @@ await client.ats.applications.metaPostRetrieve();
-**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Drives.RequestOptions`
@@ -715,9 +698,7 @@ await client.ats.applications.metaPostRetrieve();
-## Ats AsyncPassthrough - -
client.ats.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive
@@ -729,7 +710,7 @@ await client.ats.applications.metaPostRetrieve();
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns a `Drive` object with the given `id`.
@@ -745,10 +726,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.ats.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.filestorage.drives.retrieve("id"); ```
@@ -764,7 +742,7 @@ await client.ats.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -772,7 +750,15 @@ await client.ats.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**request:** `Merge.filestorage.DrivesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Drives.RequestOptions`
@@ -783,7 +769,9 @@ await client.ats.asyncPassthrough.create({
-
client.ats.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +## Filestorage FieldMapping + +
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -795,7 +783,7 @@ await client.ats.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +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/).
@@ -811,7 +799,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.filestorage.fieldMapping.fieldMappingsRetrieve(); ```
@@ -827,7 +815,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**asyncPassthroughReceiptId:** `string` +**request:** `Merge.filestorage.FieldMappingsRetrieveRequest`
@@ -835,7 +823,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -846,9 +834,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Ats Attachments - -
client.ats.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -860,7 +846,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Returns a list of `Attachment` objects. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -876,7 +862,14 @@ Returns a list of `Attachment` objects.
```typescript -await client.ats.attachments.list(); +await client.filestorage.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", +}); ```
@@ -892,7 +885,7 @@ await client.ats.attachments.list();
-**request:** `Merge.ats.AttachmentsListRequest` +**request:** `Merge.filestorage.CreateFieldMappingRequest`
@@ -900,7 +893,7 @@ await client.ats.attachments.list();
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -911,7 +904,7 @@ await client.ats.attachments.list();
-
client.ats.attachments.create({ ...params }) -> Merge.AttachmentResponse +
client.filestorage.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -923,7 +916,7 @@ await client.ats.attachments.list();
-Creates an `Attachment` object with the given values. +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.
@@ -939,10 +932,7 @@ Creates an `Attachment` object with the given values.
```typescript -await client.ats.attachments.create({ - model: {}, - remoteUserId: "remote_user_id", -}); +await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -958,7 +948,7 @@ await client.ats.attachments.create({
-**request:** `Merge.ats.AttachmentEndpointRequest` +**fieldMappingId:** `string`
@@ -966,7 +956,7 @@ await client.ats.attachments.create({
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -977,7 +967,7 @@ await client.ats.attachments.create({
-
client.ats.attachments.retrieve(id, { ...params }) -> Merge.Attachment +
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -989,7 +979,7 @@ await client.ats.attachments.create({
-Returns an `Attachment` object with the given `id`. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -1005,7 +995,7 @@ Returns an `Attachment` object with the given `id`.
```typescript -await client.ats.attachments.retrieve("id"); +await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -1021,7 +1011,7 @@ await client.ats.attachments.retrieve("id");
-**id:** `string` +**fieldMappingId:** `string`
@@ -1029,7 +1019,7 @@ await client.ats.attachments.retrieve("id");
-**request:** `Merge.ats.AttachmentsRetrieveRequest` +**request:** `Merge.filestorage.PatchedEditFieldMappingRequest`
@@ -1037,7 +1027,7 @@ await client.ats.attachments.retrieve("id");
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -1048,7 +1038,7 @@ await client.ats.attachments.retrieve("id");
-
client.ats.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -1060,7 +1050,7 @@ await client.ats.attachments.retrieve("id");
-Returns metadata for `Attachment` POSTs. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -1076,7 +1066,7 @@ Returns metadata for `Attachment` POSTs.
```typescript -await client.ats.attachments.metaPostRetrieve(); +await client.filestorage.fieldMapping.remoteFieldsRetrieve(); ```
@@ -1092,7 +1082,15 @@ await client.ats.attachments.metaPostRetrieve();
-**requestOptions:** `Attachments.RequestOptions` +**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -1103,9 +1101,7 @@ await client.ats.attachments.metaPostRetrieve();
-## Ats AuditTrail - -
client.ats.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -1117,7 +1113,7 @@ await client.ats.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +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/).
@@ -1133,7 +1129,7 @@ Gets a list of audit trail events.
```typescript -await client.ats.auditTrail.list(); +await client.filestorage.fieldMapping.targetFieldsRetrieve(); ```
@@ -1149,15 +1145,7 @@ await client.ats.auditTrail.list();
-**request:** `Merge.ats.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -1168,9 +1156,9 @@ await client.ats.auditTrail.list();
-## Ats AvailableActions +## Filestorage Files -
client.ats.availableActions.retrieve() -> Merge.AvailableActions +
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList
@@ -1182,7 +1170,7 @@ await client.ats.auditTrail.list();
-Returns a list of models and actions available for an account. +Returns a list of `File` objects.
@@ -1198,7 +1186,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.ats.availableActions.retrieve(); +await client.filestorage.files.list(); ```
@@ -1214,7 +1202,15 @@ await client.ats.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**request:** `Merge.filestorage.FilesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Files.RequestOptions`
@@ -1225,9 +1221,7 @@ await client.ats.availableActions.retrieve();
-## Ats Candidates - -
client.ats.candidates.list({ ...params }) -> Merge.PaginatedCandidateList +
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse
@@ -1239,7 +1233,7 @@ await client.ats.availableActions.retrieve();
-Returns a list of `Candidate` objects. +Creates a `File` object with the given values.
@@ -1255,7 +1249,9 @@ Returns a list of `Candidate` objects.
```typescript -await client.ats.candidates.list(); +await client.filestorage.files.create({ + model: {}, +}); ```
@@ -1271,7 +1267,7 @@ await client.ats.candidates.list();
-**request:** `Merge.ats.CandidatesListRequest` +**request:** `Merge.filestorage.FileStorageFileEndpointRequest`
@@ -1279,7 +1275,7 @@ await client.ats.candidates.list();
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Files.RequestOptions`
@@ -1290,7 +1286,7 @@ await client.ats.candidates.list();
-
client.ats.candidates.create({ ...params }) -> Merge.CandidateResponse +
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_
@@ -1302,7 +1298,7 @@ await client.ats.candidates.list();
-Creates a `Candidate` object with the given values. +Returns a `File` object with the given `id`.
@@ -1318,10 +1314,7 @@ Creates a `Candidate` object with the given values.
```typescript -await client.ats.candidates.create({ - model: {}, - remoteUserId: "remote_user_id", -}); +await client.filestorage.files.retrieve("id"); ```
@@ -1337,7 +1330,7 @@ await client.ats.candidates.create({
-**request:** `Merge.ats.CandidateEndpointRequest` +**id:** `string`
@@ -1345,7 +1338,15 @@ await client.ats.candidates.create({
-**requestOptions:** `Candidates.RequestOptions` +**request:** `Merge.filestorage.FilesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Files.RequestOptions`
@@ -1356,7 +1357,7 @@ await client.ats.candidates.create({
-
client.ats.candidates.retrieve(id, { ...params }) -> Merge.Candidate +
client.filestorage.files.downloadRetrieve(id, { ...params }) -> stream.Readable
@@ -1368,7 +1369,7 @@ await client.ats.candidates.create({
-Returns a `Candidate` object with the given `id`. +Returns the `File` content with the given `id` as a stream of bytes.
@@ -1384,7 +1385,9 @@ Returns a `Candidate` object with the given `id`.
```typescript -await client.ats.candidates.retrieve("id"); +await client.filestorage.files.downloadRetrieve("string", { + mimeType: "string", +}); ```
@@ -1408,7 +1411,7 @@ await client.ats.candidates.retrieve("id");
-**request:** `Merge.ats.CandidatesRetrieveRequest` +**request:** `Merge.filestorage.FilesDownloadRetrieveRequest`
@@ -1416,7 +1419,7 @@ await client.ats.candidates.retrieve("id");
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Files.RequestOptions`
@@ -1427,7 +1430,7 @@ await client.ats.candidates.retrieve("id");
-
client.ats.candidates.partialUpdate(id, { ...params }) -> Merge.CandidateResponse +
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse
@@ -1439,7 +1442,7 @@ await client.ats.candidates.retrieve("id");
-Updates a `Candidate` object with the given `id`. +Returns metadata for `FileStorageFile` POSTs.
@@ -1455,10 +1458,7 @@ Updates a `Candidate` object with the given `id`.
```typescript -await client.ats.candidates.partialUpdate("id", { - model: {}, - remoteUserId: "remote_user_id", -}); +await client.filestorage.files.metaPostRetrieve(); ```
@@ -1474,23 +1474,7 @@ await client.ats.candidates.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.PatchedCandidateEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Files.RequestOptions`
@@ -1501,7 +1485,9 @@ await client.ats.candidates.partialUpdate("id", {
-
client.ats.candidates.ignoreCreate(modelId, { ...params }) -> void +## Filestorage Folders + +
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList
@@ -1513,7 +1499,7 @@ await client.ats.candidates.partialUpdate("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a list of `Folder` objects.
@@ -1529,9 +1515,7 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.ats.candidates.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", -}); +await client.filestorage.folders.list(); ```
@@ -1547,15 +1531,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**modelId:** `string` - -
-
- -
-
- -**request:** `Merge.ats.IgnoreCommonModelRequest` +**request:** `Merge.filestorage.FoldersListRequest`
@@ -1563,7 +1539,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Folders.RequestOptions`
@@ -1574,7 +1550,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-
client.ats.candidates.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse
@@ -1586,7 +1562,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-Returns metadata for `Candidate` PATCHs. +Creates a `Folder` object with the given values.
@@ -1602,7 +1578,9 @@ Returns metadata for `Candidate` PATCHs.
```typescript -await client.ats.candidates.metaPatchRetrieve("id"); +await client.filestorage.folders.create({ + model: {}, +}); ```
@@ -1618,7 +1596,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.filestorage.FileStorageFolderEndpointRequest`
@@ -1626,7 +1604,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Folders.RequestOptions`
@@ -1637,7 +1615,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-
client.ats.candidates.metaPostRetrieve() -> Merge.MetaResponse +
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder
@@ -1649,7 +1627,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-Returns metadata for `Candidate` POSTs. +Returns a `Folder` object with the given `id`.
@@ -1665,7 +1643,7 @@ Returns metadata for `Candidate` POSTs.
```typescript -await client.ats.candidates.metaPostRetrieve(); +await client.filestorage.folders.retrieve("id"); ```
@@ -1681,20 +1659,34 @@ await client.ats.candidates.metaPostRetrieve();
-**requestOptions:** `Candidates.RequestOptions` +**id:** `string`
+ +
+
+ +**request:** `Merge.filestorage.FoldersRetrieveRequest` +
+
+
+ +**requestOptions:** `Folders.RequestOptions` + +
+
-
-## Ats Scopes + + +
-
client.ats.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse
@@ -1706,7 +1698,7 @@ await client.ats.candidates.metaPostRetrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns metadata for `FileStorageFolder` POSTs.
@@ -1722,7 +1714,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.ats.scopes.defaultScopesRetrieve(); +await client.filestorage.folders.metaPostRetrieve(); ```
@@ -1738,7 +1730,7 @@ await client.ats.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `Folders.RequestOptions`
@@ -1749,7 +1741,9 @@ await client.ats.scopes.defaultScopesRetrieve();
-
client.ats.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Filestorage GenerateKey + +
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -1761,7 +1755,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). +Create a remote key.
@@ -1777,7 +1771,9 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.ats.scopes.linkedAccountScopesRetrieve(); +await client.filestorage.generateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -1793,7 +1789,15 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.filestorage.GenerateRemoteKeyRequest` + +
+
+ +
+
+ +**requestOptions:** `GenerateKey.RequestOptions`
@@ -1804,7 +1808,9 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-
client.ats.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +## Filestorage Groups + +
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList
@@ -1816,7 +1822,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 a list of `Group` objects.
@@ -1832,29 +1838,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, - }, - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], -}); +await client.filestorage.groups.list(); ```
@@ -1870,7 +1854,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-**request:** `Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.filestorage.GroupsListRequest`
@@ -1878,7 +1862,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -1889,9 +1873,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-## Ats DeleteAccount - -
client.ats.deleteAccount.delete() -> void +
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -1903,7 +1885,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a `Group` object with the given `id`.
@@ -1919,7 +1901,7 @@ Delete a linked account.
```typescript -await client.ats.deleteAccount.delete(); +await client.filestorage.groups.retrieve("id"); ```
@@ -1935,7 +1917,23 @@ await client.ats.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.filestorage.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Groups.RequestOptions`
@@ -1946,9 +1944,9 @@ await client.ats.deleteAccount.delete();
-## Ats Departments +## Filestorage Issues -
client.ats.departments.list({ ...params }) -> Merge.PaginatedDepartmentList +
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -1960,7 +1958,7 @@ await client.ats.deleteAccount.delete();
-Returns a list of `Department` objects. +Gets all issues for Organization.
@@ -1976,7 +1974,7 @@ Returns a list of `Department` objects.
```typescript -await client.ats.departments.list(); +await client.filestorage.issues.list(); ```
@@ -1992,7 +1990,7 @@ await client.ats.departments.list();
-**request:** `Merge.ats.DepartmentsListRequest` +**request:** `Merge.filestorage.IssuesListRequest`
@@ -2000,7 +1998,7 @@ await client.ats.departments.list();
-**requestOptions:** `Departments.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -2011,7 +2009,7 @@ await client.ats.departments.list();
-
client.ats.departments.retrieve(id, { ...params }) -> Merge.Department +
client.filestorage.issues.retrieve(id) -> Merge.Issue
@@ -2023,7 +2021,7 @@ await client.ats.departments.list();
-Returns a `Department` object with the given `id`. +Get a specific issue.
@@ -2039,7 +2037,7 @@ Returns a `Department` object with the given `id`.
```typescript -await client.ats.departments.retrieve("id"); +await client.filestorage.issues.retrieve("id"); ```
@@ -2063,15 +2061,7 @@ await client.ats.departments.retrieve("id");
-**request:** `Merge.ats.DepartmentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Departments.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -2082,9 +2072,9 @@ await client.ats.departments.retrieve("id");
-## Ats Eeocs +## Filestorage LinkToken -
client.ats.eeocs.list({ ...params }) -> Merge.PaginatedEeocList +
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -2096,7 +2086,7 @@ await client.ats.departments.retrieve("id");
-Returns a list of `EEOC` objects. +Creates a link token to be used when linking a new end user.
@@ -2112,7 +2102,12 @@ Returns a list of `EEOC` objects.
```typescript -await client.ats.eeocs.list(); +await client.filestorage.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], +}); ```
@@ -2128,7 +2123,7 @@ await client.ats.eeocs.list();
-**request:** `Merge.ats.EeocsListRequest` +**request:** `Merge.filestorage.EndUserDetailsRequest`
@@ -2136,7 +2131,7 @@ await client.ats.eeocs.list();
-**requestOptions:** `Eeocs.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -2147,7 +2142,9 @@ await client.ats.eeocs.list();
-
client.ats.eeocs.retrieve(id, { ...params }) -> Merge.Eeoc +## Filestorage LinkedAccounts + +
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -2159,7 +2156,7 @@ await client.ats.eeocs.list();
-Returns an `EEOC` object with the given `id`. +List linked accounts for your organization.
@@ -2175,7 +2172,7 @@ Returns an `EEOC` object with the given `id`.
```typescript -await client.ats.eeocs.retrieve("id"); +await client.filestorage.linkedAccounts.list(); ```
@@ -2191,15 +2188,7 @@ await client.ats.eeocs.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.EeocsRetrieveRequest` +**request:** `Merge.filestorage.LinkedAccountsListRequest`
@@ -2207,7 +2196,7 @@ await client.ats.eeocs.retrieve("id");
-**requestOptions:** `Eeocs.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -2218,9 +2207,9 @@ await client.ats.eeocs.retrieve("id");
-## Ats FieldMapping +## Filestorage Passthrough -
client.ats.fieldMapping.fieldMappingsRetrieve() -> Merge.FieldMappingApiInstanceResponse +
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -2232,7 +2221,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/). +Pull data from an endpoint not currently supported by Merge.
@@ -2248,7 +2237,10 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.ats.fieldMapping.fieldMappingsRetrieve(); +await client.filestorage.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -2264,7 +2256,15 @@ await client.ats.fieldMapping.fieldMappingsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `Passthrough.RequestOptions`
@@ -2275,7 +2275,9 @@ await client.ats.fieldMapping.fieldMappingsRetrieve();
-
client.ats.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Filestorage RegenerateKey + +
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -2287,7 +2289,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. +Exchange remote keys.
@@ -2303,13 +2305,8 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.ats.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", +await client.filestorage.regenerateKey.create({ + name: "Remote Deployment Key 1", }); ``` @@ -2326,7 +2323,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.ats.CreateFieldMappingRequest` +**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest`
@@ -2334,7 +2331,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -2345,7 +2342,9 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-
client.ats.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +## Filestorage SyncStatus + +
client.filestorage.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -2357,7 +2356,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Get syncing status. Possible values: `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).
@@ -2373,7 +2372,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.filestorage.syncStatus.list(); ```
@@ -2389,7 +2388,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` +**request:** `Merge.filestorage.SyncStatusListRequest`
@@ -2397,7 +2396,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `SyncStatus.RequestOptions`
@@ -2408,7 +2407,9 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.ats.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +## Filestorage ForceResync + +
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -2420,7 +2421,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. +Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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.
@@ -2436,7 +2437,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.filestorage.forceResync.syncStatusResyncCreate(); ```
@@ -2452,23 +2453,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**fieldMappingId:** `string` - -
-
- -
-
- -**request:** `Merge.ats.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -2479,7 +2464,9 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.ats.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +## Filestorage Users + +
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList
@@ -2491,7 +2478,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/). +Returns a list of `User` objects.
@@ -2507,7 +2494,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.ats.fieldMapping.remoteFieldsRetrieve(); +await client.filestorage.users.list(); ```
@@ -2523,7 +2510,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.ats.RemoteFieldsRetrieveRequest` +**request:** `Merge.filestorage.UsersListRequest`
@@ -2531,7 +2518,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -2542,7 +2529,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-
client.ats.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User
@@ -2554,7 +2541,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/). +Returns a `User` object with the given `id`.
@@ -2570,7 +2557,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.ats.fieldMapping.targetFieldsRetrieve(); +await client.filestorage.users.retrieve("id"); ```
@@ -2586,7 +2573,23 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.filestorage.UsersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -2597,9 +2600,9 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-## Ats GenerateKey +## Filestorage WebhookReceivers -
client.ats.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -2611,7 +2614,7 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns a list of `WebhookReceiver` objects.
@@ -2627,9 +2630,7 @@ Create a remote key.
```typescript -await client.ats.generateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.filestorage.webhookReceivers.list(); ```
@@ -2645,15 +2646,7 @@ await client.ats.generateKey.create({
-**request:** `Merge.ats.GenerateRemoteKeyRequest` - -
-
- -
-
- -**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -2664,9 +2657,7 @@ await client.ats.generateKey.create({
-## Ats Interviews - -
client.ats.interviews.list({ ...params }) -> Merge.PaginatedScheduledInterviewList +
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -2678,7 +2669,7 @@ await client.ats.generateKey.create({
-Returns a list of `ScheduledInterview` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -2694,7 +2685,10 @@ Returns a list of `ScheduledInterview` objects.
```typescript -await client.ats.interviews.list(); +await client.filestorage.webhookReceivers.create({ + event: "event", + isActive: true, +}); ```
@@ -2710,7 +2704,7 @@ await client.ats.interviews.list();
-**request:** `Merge.ats.InterviewsListRequest` +**request:** `Merge.filestorage.WebhookReceiverRequest`
@@ -2718,7 +2712,7 @@ await client.ats.interviews.list();
-**requestOptions:** `Interviews.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -2729,7 +2723,9 @@ await client.ats.interviews.list();
-
client.ats.interviews.create({ ...params }) -> Merge.ScheduledInterviewResponse +## Ats AccountDetails + +
client.ats.accountDetails.retrieve() -> Merge.AccountDetails
@@ -2741,7 +2737,7 @@ await client.ats.interviews.list();
-Creates a `ScheduledInterview` object with the given values. +Get details for a linked account.
@@ -2757,10 +2753,7 @@ Creates a `ScheduledInterview` object with the given values.
```typescript -await client.ats.interviews.create({ - model: {}, - remoteUserId: "remote_user_id", -}); +await client.ats.accountDetails.retrieve(); ```
@@ -2776,18 +2769,10 @@ await client.ats.interviews.create({
-**request:** `Merge.ats.ScheduledInterviewEndpointRequest` +**requestOptions:** `AccountDetails.RequestOptions` -
-
- -
-
- -**requestOptions:** `Interviews.RequestOptions` - -
-
+ +
@@ -2795,7 +2780,9 @@ await client.ats.interviews.create({
-
client.ats.interviews.retrieve(id, { ...params }) -> Merge.ScheduledInterview +## Ats AccountToken + +
client.ats.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -2807,7 +2794,7 @@ await client.ats.interviews.create({
-Returns a `ScheduledInterview` object with the given `id`. +Returns the account token for the end user with the provided public token.
@@ -2823,7 +2810,7 @@ Returns a `ScheduledInterview` object with the given `id`.
```typescript -await client.ats.interviews.retrieve("id"); +await client.ats.accountToken.retrieve("public_token"); ```
@@ -2839,15 +2826,7 @@ await client.ats.interviews.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.InterviewsRetrieveRequest` +**publicToken:** `string`
@@ -2855,7 +2834,7 @@ await client.ats.interviews.retrieve("id");
-**requestOptions:** `Interviews.RequestOptions` +**requestOptions:** `AccountToken.RequestOptions`
@@ -2866,7 +2845,9 @@ await client.ats.interviews.retrieve("id");
-
client.ats.interviews.metaPostRetrieve() -> Merge.MetaResponse +## Ats Activities + +
client.ats.activities.list({ ...params }) -> Merge.PaginatedActivityList
@@ -2878,7 +2859,7 @@ await client.ats.interviews.retrieve("id");
-Returns metadata for `ScheduledInterview` POSTs. +Returns a list of `Activity` objects.
@@ -2894,7 +2875,7 @@ Returns metadata for `ScheduledInterview` POSTs.
```typescript -await client.ats.interviews.metaPostRetrieve(); +await client.ats.activities.list(); ```
@@ -2910,7 +2891,15 @@ await client.ats.interviews.metaPostRetrieve();
-**requestOptions:** `Interviews.RequestOptions` +**request:** `Merge.ats.ActivitiesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Activities.RequestOptions`
@@ -2921,9 +2910,7 @@ await client.ats.interviews.metaPostRetrieve();
-## Ats Issues - -
client.ats.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.ats.activities.create({ ...params }) -> Merge.ActivityResponse
@@ -2935,7 +2922,7 @@ await client.ats.interviews.metaPostRetrieve();
-Gets all issues for Organization. +Creates an `Activity` object with the given values.
@@ -2951,7 +2938,10 @@ Gets all issues for Organization.
```typescript -await client.ats.issues.list(); +await client.ats.activities.create({ + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -2967,7 +2957,7 @@ await client.ats.issues.list();
-**request:** `Merge.ats.IssuesListRequest` +**request:** `Merge.ats.ActivityEndpointRequest`
@@ -2975,7 +2965,7 @@ await client.ats.issues.list();
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Activities.RequestOptions`
@@ -2986,7 +2976,7 @@ await client.ats.issues.list();
-
client.ats.issues.retrieve(id) -> Merge.Issue +
client.ats.activities.retrieve(id, { ...params }) -> Merge.Activity
@@ -2998,7 +2988,7 @@ await client.ats.issues.list();
-Get a specific issue. +Returns an `Activity` object with the given `id`.
@@ -3014,7 +3004,7 @@ Get a specific issue.
```typescript -await client.ats.issues.retrieve("id"); +await client.ats.activities.retrieve("id"); ```
@@ -3038,7 +3028,15 @@ await client.ats.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**request:** `Merge.ats.ActivitiesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Activities.RequestOptions`
@@ -3049,9 +3047,7 @@ await client.ats.issues.retrieve("id");
-## Ats JobInterviewStages - -
client.ats.jobInterviewStages.list({ ...params }) -> Merge.PaginatedJobInterviewStageList +
client.ats.activities.metaPostRetrieve() -> Merge.MetaResponse
@@ -3063,7 +3059,7 @@ await client.ats.issues.retrieve("id");
-Returns a list of `JobInterviewStage` objects. +Returns metadata for `Activity` POSTs.
@@ -3079,7 +3075,7 @@ Returns a list of `JobInterviewStage` objects.
```typescript -await client.ats.jobInterviewStages.list(); +await client.ats.activities.metaPostRetrieve(); ```
@@ -3095,15 +3091,7 @@ await client.ats.jobInterviewStages.list();
-**request:** `Merge.ats.JobInterviewStagesListRequest` - -
-
- -
-
- -**requestOptions:** `JobInterviewStages.RequestOptions` +**requestOptions:** `Activities.RequestOptions`
@@ -3114,7 +3102,9 @@ await client.ats.jobInterviewStages.list();
-
client.ats.jobInterviewStages.retrieve(id, { ...params }) -> Merge.JobInterviewStage +## Ats Applications + +
client.ats.applications.list({ ...params }) -> Merge.PaginatedApplicationList
@@ -3126,7 +3116,7 @@ await client.ats.jobInterviewStages.list();
-Returns a `JobInterviewStage` object with the given `id`. +Returns a list of `Application` objects.
@@ -3142,7 +3132,7 @@ Returns a `JobInterviewStage` object with the given `id`.
```typescript -await client.ats.jobInterviewStages.retrieve("id"); +await client.ats.applications.list(); ```
@@ -3158,15 +3148,7 @@ await client.ats.jobInterviewStages.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobInterviewStagesRetrieveRequest` +**request:** `Merge.ats.ApplicationsListRequest`
@@ -3174,7 +3156,7 @@ await client.ats.jobInterviewStages.retrieve("id");
-**requestOptions:** `JobInterviewStages.RequestOptions` +**requestOptions:** `Applications.RequestOptions`
@@ -3185,9 +3167,7 @@ await client.ats.jobInterviewStages.retrieve("id");
-## Ats JobPostings - -
client.ats.jobPostings.list({ ...params }) -> Merge.PaginatedJobPostingList +
client.ats.applications.create({ ...params }) -> Merge.ApplicationResponse
@@ -3199,7 +3179,10 @@ await client.ats.jobInterviewStages.retrieve("id");
-Returns a list of `JobPosting` objects. +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.
@@ -3215,7 +3198,10 @@ Returns a list of `JobPosting` objects.
```typescript -await client.ats.jobPostings.list(); +await client.ats.applications.create({ + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -3231,7 +3217,7 @@ await client.ats.jobPostings.list();
-**request:** `Merge.ats.JobPostingsListRequest` +**request:** `Merge.ats.ApplicationEndpointRequest`
@@ -3239,7 +3225,7 @@ await client.ats.jobPostings.list();
-**requestOptions:** `JobPostings.RequestOptions` +**requestOptions:** `Applications.RequestOptions`
@@ -3250,7 +3236,7 @@ await client.ats.jobPostings.list();
-
client.ats.jobPostings.retrieve(id, { ...params }) -> Merge.JobPosting +
client.ats.applications.retrieve(id, { ...params }) -> Merge.Application
@@ -3262,7 +3248,7 @@ await client.ats.jobPostings.list();
-Returns a `JobPosting` object with the given `id`. +Returns an `Application` object with the given `id`.
@@ -3278,7 +3264,7 @@ Returns a `JobPosting` object with the given `id`.
```typescript -await client.ats.jobPostings.retrieve("id"); +await client.ats.applications.retrieve("id"); ```
@@ -3302,7 +3288,7 @@ await client.ats.jobPostings.retrieve("id");
-**request:** `Merge.ats.JobPostingsRetrieveRequest` +**request:** `Merge.ats.ApplicationsRetrieveRequest`
@@ -3310,7 +3296,7 @@ await client.ats.jobPostings.retrieve("id");
-**requestOptions:** `JobPostings.RequestOptions` +**requestOptions:** `Applications.RequestOptions`
@@ -3321,9 +3307,7 @@ await client.ats.jobPostings.retrieve("id");
-## Ats Jobs - -
client.ats.jobs.list({ ...params }) -> Merge.PaginatedJobList +
client.ats.applications.changeStageCreate(id, { ...params }) -> Merge.ApplicationResponse
@@ -3335,7 +3319,7 @@ await client.ats.jobPostings.retrieve("id");
-Returns a list of `Job` objects. +Updates the `current_stage` field of an `Application` object
@@ -3351,7 +3335,7 @@ Returns a list of `Job` objects.
```typescript -await client.ats.jobs.list(); +await client.ats.applications.changeStageCreate("id"); ```
@@ -3367,7 +3351,7 @@ await client.ats.jobs.list();
-**request:** `Merge.ats.JobsListRequest` +**id:** `string`
@@ -3375,7 +3359,15 @@ await client.ats.jobs.list();
-**requestOptions:** `Jobs.RequestOptions` +**request:** `Merge.ats.UpdateApplicationStageRequest` + +
+
+ +
+
+ +**requestOptions:** `Applications.RequestOptions`
@@ -3386,7 +3378,7 @@ await client.ats.jobs.list();
-
client.ats.jobs.retrieve(id, { ...params }) -> Merge.Job +
client.ats.applications.metaPostRetrieve({ ...params }) -> Merge.MetaResponse
@@ -3398,7 +3390,7 @@ await client.ats.jobs.list();
-Returns a `Job` object with the given `id`. +Returns metadata for `Application` POSTs.
@@ -3414,7 +3406,7 @@ Returns a `Job` object with the given `id`.
```typescript -await client.ats.jobs.retrieve("id"); +await client.ats.applications.metaPostRetrieve(); ```
@@ -3430,15 +3422,7 @@ await client.ats.jobs.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobsRetrieveRequest` +**request:** `Merge.ats.ApplicationsMetaPostRetrieveRequest`
@@ -3446,7 +3430,7 @@ await client.ats.jobs.retrieve("id");
-**requestOptions:** `Jobs.RequestOptions` +**requestOptions:** `Applications.RequestOptions`
@@ -3457,7 +3441,9 @@ await client.ats.jobs.retrieve("id");
-
client.ats.jobs.screeningQuestionsList(jobId, { ...params }) -> Merge.PaginatedScreeningQuestionList +## Ats AsyncPassthrough + +
client.ats.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -3469,7 +3455,7 @@ await client.ats.jobs.retrieve("id");
-Returns a list of `ScreeningQuestion` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -3485,7 +3471,10 @@ Returns a list of `ScreeningQuestion` objects.
```typescript -await client.ats.jobs.screeningQuestionsList("job_id"); +await client.ats.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -3501,15 +3490,7 @@ await client.ats.jobs.screeningQuestionsList("job_id");
-**jobId:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobsScreeningQuestionsListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -3517,7 +3498,7 @@ await client.ats.jobs.screeningQuestionsList("job_id");
-**requestOptions:** `Jobs.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -3528,9 +3509,7 @@ await client.ats.jobs.screeningQuestionsList("job_id");
-## Ats LinkToken - -
client.ats.linkToken.create({ ...params }) -> Merge.LinkToken +
client.ats.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -3542,7 +3521,7 @@ await client.ats.jobs.screeningQuestionsList("job_id");
-Creates a link token to be used when linking a new end user. +Retrieves data from earlier async-passthrough POST request
@@ -3558,12 +3537,7 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.ats.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], -}); +await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -3579,7 +3553,7 @@ await client.ats.linkToken.create({
-**request:** `Merge.ats.EndUserDetailsRequest` +**asyncPassthroughReceiptId:** `string`
@@ -3587,7 +3561,7 @@ await client.ats.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -3598,9 +3572,9 @@ await client.ats.linkToken.create({
-## Ats LinkedAccounts +## Ats Attachments -
client.ats.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.ats.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList
@@ -3612,7 +3586,7 @@ await client.ats.linkToken.create({
-List linked accounts for your organization. +Returns a list of `Attachment` objects.
@@ -3628,7 +3602,7 @@ List linked accounts for your organization.
```typescript -await client.ats.linkedAccounts.list(); +await client.ats.attachments.list(); ```
@@ -3644,7 +3618,7 @@ await client.ats.linkedAccounts.list();
-**request:** `Merge.ats.LinkedAccountsListRequest` +**request:** `Merge.ats.AttachmentsListRequest`
@@ -3652,7 +3626,7 @@ await client.ats.linkedAccounts.list();
-**requestOptions:** `LinkedAccounts.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -3663,9 +3637,7 @@ await client.ats.linkedAccounts.list();
-## Ats Offers - -
client.ats.offers.list({ ...params }) -> Merge.PaginatedOfferList +
client.ats.attachments.create({ ...params }) -> Merge.AttachmentResponse
@@ -3677,7 +3649,7 @@ await client.ats.linkedAccounts.list();
-Returns a list of `Offer` objects. +Creates an `Attachment` object with the given values.
@@ -3693,7 +3665,10 @@ Returns a list of `Offer` objects.
```typescript -await client.ats.offers.list(); +await client.ats.attachments.create({ + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -3709,7 +3684,7 @@ await client.ats.offers.list();
-**request:** `Merge.ats.OffersListRequest` +**request:** `Merge.ats.AttachmentEndpointRequest`
@@ -3717,7 +3692,7 @@ await client.ats.offers.list();
-**requestOptions:** `Offers.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -3728,7 +3703,7 @@ await client.ats.offers.list();
-
client.ats.offers.retrieve(id, { ...params }) -> Merge.Offer +
client.ats.attachments.retrieve(id, { ...params }) -> Merge.Attachment
@@ -3740,7 +3715,7 @@ await client.ats.offers.list();
-Returns an `Offer` object with the given `id`. +Returns an `Attachment` object with the given `id`.
@@ -3756,7 +3731,7 @@ Returns an `Offer` object with the given `id`.
```typescript -await client.ats.offers.retrieve("id"); +await client.ats.attachments.retrieve("id"); ```
@@ -3780,7 +3755,7 @@ await client.ats.offers.retrieve("id");
-**request:** `Merge.ats.OffersRetrieveRequest` +**request:** `Merge.ats.AttachmentsRetrieveRequest`
@@ -3788,7 +3763,7 @@ await client.ats.offers.retrieve("id");
-**requestOptions:** `Offers.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -3799,9 +3774,7 @@ await client.ats.offers.retrieve("id");
-## Ats Offices - -
client.ats.offices.list({ ...params }) -> Merge.PaginatedOfficeList +
client.ats.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -3813,7 +3786,7 @@ await client.ats.offers.retrieve("id");
-Returns a list of `Office` objects. +Returns metadata for `Attachment` POSTs.
@@ -3829,7 +3802,7 @@ Returns a list of `Office` objects.
```typescript -await client.ats.offices.list(); +await client.ats.attachments.metaPostRetrieve(); ```
@@ -3845,15 +3818,7 @@ await client.ats.offices.list();
-**request:** `Merge.ats.OfficesListRequest` - -
-
- -
-
- -**requestOptions:** `Offices.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -3864,7 +3829,9 @@ await client.ats.offices.list();
-
client.ats.offices.retrieve(id, { ...params }) -> Merge.Office +## Ats AuditTrail + +
client.ats.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -3876,7 +3843,7 @@ await client.ats.offices.list();
-Returns an `Office` object with the given `id`. +Gets a list of audit trail events.
@@ -3892,7 +3859,7 @@ Returns an `Office` object with the given `id`.
```typescript -await client.ats.offices.retrieve("id"); +await client.ats.auditTrail.list(); ```
@@ -3908,15 +3875,7 @@ await client.ats.offices.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.OfficesRetrieveRequest` +**request:** `Merge.ats.AuditTrailListRequest`
@@ -3924,7 +3883,7 @@ await client.ats.offices.retrieve("id");
-**requestOptions:** `Offices.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -3935,9 +3894,9 @@ await client.ats.offices.retrieve("id");
-## Ats Passthrough +## Ats AvailableActions -
client.ats.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.ats.availableActions.retrieve() -> Merge.AvailableActions
@@ -3949,7 +3908,7 @@ await client.ats.offices.retrieve("id");
-Pull data from an endpoint not currently supported by Merge. +Returns a list of models and actions available for an account.
@@ -3965,10 +3924,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.ats.passthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.ats.availableActions.retrieve(); ```
@@ -3984,15 +3940,7 @@ await client.ats.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -4003,9 +3951,9 @@ await client.ats.passthrough.create({
-## Ats RegenerateKey +## Ats Candidates -
client.ats.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.ats.candidates.list({ ...params }) -> Merge.PaginatedCandidateList
@@ -4017,7 +3965,7 @@ await client.ats.passthrough.create({
-Exchange remote keys. +Returns a list of `Candidate` objects.
@@ -4033,9 +3981,7 @@ Exchange remote keys.
```typescript -await client.ats.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.ats.candidates.list(); ```
@@ -4051,7 +3997,7 @@ await client.ats.regenerateKey.create({
-**request:** `Merge.ats.RemoteKeyForRegenerationRequest` +**request:** `Merge.ats.CandidatesListRequest`
@@ -4059,7 +4005,7 @@ await client.ats.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -4070,9 +4016,7 @@ await client.ats.regenerateKey.create({
-## Ats RejectReasons - -
client.ats.rejectReasons.list({ ...params }) -> Merge.PaginatedRejectReasonList +
client.ats.candidates.create({ ...params }) -> Merge.CandidateResponse
@@ -4084,7 +4028,7 @@ await client.ats.regenerateKey.create({
-Returns a list of `RejectReason` objects. +Creates a `Candidate` object with the given values.
@@ -4100,7 +4044,10 @@ Returns a list of `RejectReason` objects.
```typescript -await client.ats.rejectReasons.list(); +await client.ats.candidates.create({ + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -4116,7 +4063,7 @@ await client.ats.rejectReasons.list();
-**request:** `Merge.ats.RejectReasonsListRequest` +**request:** `Merge.ats.CandidateEndpointRequest`
@@ -4124,7 +4071,7 @@ await client.ats.rejectReasons.list();
-**requestOptions:** `RejectReasons.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -4135,7 +4082,7 @@ await client.ats.rejectReasons.list();
-
client.ats.rejectReasons.retrieve(id, { ...params }) -> Merge.RejectReason +
client.ats.candidates.retrieve(id, { ...params }) -> Merge.Candidate
@@ -4147,7 +4094,7 @@ await client.ats.rejectReasons.list();
-Returns a `RejectReason` object with the given `id`. +Returns a `Candidate` object with the given `id`.
@@ -4163,7 +4110,7 @@ Returns a `RejectReason` object with the given `id`.
```typescript -await client.ats.rejectReasons.retrieve("id"); +await client.ats.candidates.retrieve("id"); ```
@@ -4187,7 +4134,7 @@ await client.ats.rejectReasons.retrieve("id");
-**request:** `Merge.ats.RejectReasonsRetrieveRequest` +**request:** `Merge.ats.CandidatesRetrieveRequest`
@@ -4195,7 +4142,7 @@ await client.ats.rejectReasons.retrieve("id");
-**requestOptions:** `RejectReasons.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -4206,9 +4153,7 @@ await client.ats.rejectReasons.retrieve("id");
-## Ats Scorecards - -
client.ats.scorecards.list({ ...params }) -> Merge.PaginatedScorecardList +
client.ats.candidates.partialUpdate(id, { ...params }) -> Merge.CandidateResponse
@@ -4220,7 +4165,7 @@ await client.ats.rejectReasons.retrieve("id");
-Returns a list of `Scorecard` objects. +Updates a `Candidate` object with the given `id`.
@@ -4236,7 +4181,10 @@ Returns a list of `Scorecard` objects.
```typescript -await client.ats.scorecards.list(); +await client.ats.candidates.partialUpdate("id", { + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -4252,7 +4200,7 @@ await client.ats.scorecards.list();
-**request:** `Merge.ats.ScorecardsListRequest` +**id:** `string`
@@ -4260,7 +4208,15 @@ await client.ats.scorecards.list();
-**requestOptions:** `Scorecards.RequestOptions` +**request:** `Merge.ats.PatchedCandidateEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Candidates.RequestOptions`
@@ -4271,7 +4227,7 @@ await client.ats.scorecards.list();
-
client.ats.scorecards.retrieve(id, { ...params }) -> Merge.Scorecard +
client.ats.candidates.ignoreCreate(modelId, { ...params }) -> void
@@ -4283,7 +4239,7 @@ await client.ats.scorecards.list();
-Returns a `Scorecard` object with the given `id`. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -4299,7 +4255,9 @@ Returns a `Scorecard` object with the given `id`.
```typescript -await client.ats.scorecards.retrieve("id"); +await client.ats.candidates.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", +}); ```
@@ -4315,7 +4273,7 @@ await client.ats.scorecards.retrieve("id");
-**id:** `string` +**modelId:** `string`
@@ -4323,7 +4281,7 @@ await client.ats.scorecards.retrieve("id");
-**request:** `Merge.ats.ScorecardsRetrieveRequest` +**request:** `Merge.ats.IgnoreCommonModelRequest`
@@ -4331,7 +4289,7 @@ await client.ats.scorecards.retrieve("id");
-**requestOptions:** `Scorecards.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -4342,9 +4300,7 @@ await client.ats.scorecards.retrieve("id");
-## Ats SyncStatus - -
client.ats.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.ats.candidates.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -4356,7 +4312,7 @@ await client.ats.scorecards.retrieve("id");
-Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns metadata for `Candidate` PATCHs.
@@ -4372,7 +4328,7 @@ Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SY
```typescript -await client.ats.syncStatus.list(); +await client.ats.candidates.metaPatchRetrieve("id"); ```
@@ -4388,7 +4344,7 @@ await client.ats.syncStatus.list();
-**request:** `Merge.ats.SyncStatusListRequest` +**id:** `string`
@@ -4396,7 +4352,7 @@ await client.ats.syncStatus.list();
-**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -4407,9 +4363,7 @@ await client.ats.syncStatus.list();
-## Ats ForceResync - -
client.ats.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.ats.candidates.metaPostRetrieve() -> Merge.MetaResponse
@@ -4421,7 +4375,7 @@ await client.ats.syncStatus.list();
-Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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. +Returns metadata for `Candidate` POSTs.
@@ -4437,7 +4391,7 @@ Force re-sync of all models. This is available for all organizations via the das
```typescript -await client.ats.forceResync.syncStatusResyncCreate(); +await client.ats.candidates.metaPostRetrieve(); ```
@@ -4453,7 +4407,7 @@ await client.ats.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -4464,9 +4418,9 @@ await client.ats.forceResync.syncStatusResyncCreate();
-## Ats Tags +## Ats Scopes -
client.ats.tags.list({ ...params }) -> Merge.PaginatedTagList +
client.ats.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -4478,7 +4432,7 @@ await client.ats.forceResync.syncStatusResyncCreate();
-Returns a list of `Tag` objects. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -4494,7 +4448,7 @@ Returns a list of `Tag` objects.
```typescript -await client.ats.tags.list(); +await client.ats.scopes.defaultScopesRetrieve(); ```
@@ -4510,15 +4464,7 @@ await client.ats.tags.list();
-**request:** `Merge.ats.TagsListRequest` - -
-
- -
-
- -**requestOptions:** `Tags.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -4529,9 +4475,7 @@ await client.ats.tags.list();
-## Ats Users - -
client.ats.users.list({ ...params }) -> Merge.PaginatedRemoteUserList +
client.ats.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -4543,7 +4487,7 @@ await client.ats.tags.list();
-Returns a list of `RemoteUser` objects. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -4559,7 +4503,7 @@ Returns a list of `RemoteUser` objects.
```typescript -await client.ats.users.list(); +await client.ats.scopes.linkedAccountScopesRetrieve(); ```
@@ -4575,15 +4519,7 @@ await client.ats.users.list();
-**request:** `Merge.ats.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -4594,7 +4530,7 @@ await client.ats.users.list();
-
client.ats.users.retrieve(id, { ...params }) -> Merge.RemoteUser +
client.ats.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -4606,7 +4542,7 @@ await client.ats.users.list();
-Returns a `RemoteUser` object with the given `id`. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -4622,7 +4558,33 @@ Returns a `RemoteUser` object with the given `id`.
```typescript -await client.ats.users.retrieve("id"); +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, + }, + }, + }, + ], +}); ```
@@ -4638,15 +4600,7 @@ await client.ats.users.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.UsersRetrieveRequest` +**request:** `Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -4654,7 +4608,7 @@ await client.ats.users.retrieve("id");
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -4665,9 +4619,9 @@ await client.ats.users.retrieve("id");
-## Ats WebhookReceivers +## Ats DeleteAccount -
client.ats.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.ats.deleteAccount.delete() -> void
@@ -4679,7 +4633,7 @@ await client.ats.users.retrieve("id");
-Returns a list of `WebhookReceiver` objects. +Delete a linked account.
@@ -4695,7 +4649,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.ats.webhookReceivers.list(); +await client.ats.deleteAccount.delete(); ```
@@ -4711,7 +4665,7 @@ await client.ats.webhookReceivers.list();
-**requestOptions:** `WebhookReceivers.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -4722,7 +4676,9 @@ await client.ats.webhookReceivers.list();
-
client.ats.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +## Ats Departments + +
client.ats.departments.list({ ...params }) -> Merge.PaginatedDepartmentList
@@ -4734,7 +4690,7 @@ await client.ats.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns a list of `Department` objects.
@@ -4750,10 +4706,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.ats.webhookReceivers.create({ - event: "event", - isActive: true, -}); +await client.ats.departments.list(); ```
@@ -4769,7 +4722,7 @@ await client.ats.webhookReceivers.create({
-**request:** `Merge.ats.WebhookReceiverRequest` +**request:** `Merge.ats.DepartmentsListRequest`
@@ -4777,7 +4730,7 @@ await client.ats.webhookReceivers.create({
-**requestOptions:** `WebhookReceivers.RequestOptions` +**requestOptions:** `Departments.RequestOptions`
@@ -4788,9 +4741,7 @@ await client.ats.webhookReceivers.create({
-## Crm AccountDetails - -
client.crm.accountDetails.retrieve() -> Merge.AccountDetails +
client.ats.departments.retrieve(id, { ...params }) -> Merge.Department
@@ -4802,7 +4753,7 @@ await client.ats.webhookReceivers.create({
-Get details for a linked account. +Returns a `Department` object with the given `id`.
@@ -4818,7 +4769,7 @@ Get details for a linked account.
```typescript -await client.crm.accountDetails.retrieve(); +await client.ats.departments.retrieve("id"); ```
@@ -4834,7 +4785,23 @@ await client.crm.accountDetails.retrieve();
-**requestOptions:** `AccountDetails.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ats.DepartmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Departments.RequestOptions`
@@ -4845,9 +4812,9 @@ await client.crm.accountDetails.retrieve();
-## Crm AccountToken +## Ats Eeocs -
client.crm.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.ats.eeocs.list({ ...params }) -> Merge.PaginatedEeocList
@@ -4859,7 +4826,7 @@ await client.crm.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns a list of `EEOC` objects.
@@ -4875,7 +4842,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.crm.accountToken.retrieve("public_token"); +await client.ats.eeocs.list(); ```
@@ -4891,7 +4858,7 @@ await client.crm.accountToken.retrieve("public_token");
-**publicToken:** `string` +**request:** `Merge.ats.EeocsListRequest`
@@ -4899,7 +4866,7 @@ await client.crm.accountToken.retrieve("public_token");
-**requestOptions:** `AccountToken.RequestOptions` +**requestOptions:** `Eeocs.RequestOptions`
@@ -4910,9 +4877,7 @@ await client.crm.accountToken.retrieve("public_token");
-## Crm Accounts - -
client.crm.accounts.list({ ...params }) -> Merge.PaginatedAccountList +
client.ats.eeocs.retrieve(id, { ...params }) -> Merge.Eeoc
@@ -4924,7 +4889,7 @@ await client.crm.accountToken.retrieve("public_token");
-Returns a list of `Account` objects. +Returns an `EEOC` object with the given `id`.
@@ -4940,7 +4905,7 @@ Returns a list of `Account` objects.
```typescript -await client.crm.accounts.list(); +await client.ats.eeocs.retrieve("id"); ```
@@ -4956,7 +4921,7 @@ await client.crm.accounts.list();
-**request:** `Merge.crm.AccountsListRequest` +**id:** `string`
@@ -4964,7 +4929,15 @@ await client.crm.accounts.list();
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.ats.EeocsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Eeocs.RequestOptions`
@@ -4975,7 +4948,9 @@ await client.crm.accounts.list();
-
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse +## Ats FieldMapping + +
client.ats.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -4987,7 +4962,7 @@ await client.crm.accounts.list();
-Creates an `Account` object with the given values. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -5003,9 +4978,7 @@ Creates an `Account` object with the given values.
```typescript -await client.crm.accounts.create({ - model: {}, -}); +await client.ats.fieldMapping.fieldMappingsRetrieve(); ```
@@ -5021,7 +4994,7 @@ await client.crm.accounts.create({
-**request:** `Merge.crm.CrmAccountEndpointRequest` +**request:** `Merge.ats.FieldMappingsRetrieveRequest`
@@ -5029,7 +5002,7 @@ await client.crm.accounts.create({
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -5040,7 +5013,7 @@ await client.crm.accounts.create({
-
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.ats.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -5052,7 +5025,7 @@ await client.crm.accounts.create({
-Returns an `Account` object with the given `id`. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -5068,7 +5041,14 @@ Returns an `Account` object with the given `id`.
```typescript -await client.crm.accounts.retrieve("id"); +await client.ats.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", +}); ```
@@ -5084,15 +5064,7 @@ await client.crm.accounts.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.AccountsRetrieveRequest` +**request:** `Merge.ats.CreateFieldMappingRequest`
@@ -5100,7 +5072,7 @@ await client.crm.accounts.retrieve("id");
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -5111,7 +5083,7 @@ await client.crm.accounts.retrieve("id");
-
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse +
client.ats.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -5123,7 +5095,7 @@ await client.crm.accounts.retrieve("id");
-Updates an `Account` 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.
@@ -5139,9 +5111,7 @@ Updates an `Account` object with the given `id`.
```typescript -await client.crm.accounts.partialUpdate("id", { - model: {}, -}); +await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -5157,15 +5127,7 @@ await client.crm.accounts.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` +**fieldMappingId:** `string`
@@ -5173,7 +5135,7 @@ await client.crm.accounts.partialUpdate("id", {
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -5184,7 +5146,7 @@ await client.crm.accounts.partialUpdate("id", {
-
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.ats.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -5196,7 +5158,7 @@ await client.crm.accounts.partialUpdate("id", {
-Returns metadata for `CRMAccount` PATCHs. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -5212,7 +5174,7 @@ Returns metadata for `CRMAccount` PATCHs.
```typescript -await client.crm.accounts.metaPatchRetrieve("id"); +await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -5228,7 +5190,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-**id:** `string` +**fieldMappingId:** `string`
@@ -5236,7 +5198,15 @@ await client.crm.accounts.metaPatchRetrieve("id");
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.ats.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -5247,7 +5217,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse +
client.ats.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -5259,7 +5229,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-Returns metadata for `CRMAccount` POSTs. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -5275,7 +5245,7 @@ Returns metadata for `CRMAccount` POSTs.
```typescript -await client.crm.accounts.metaPostRetrieve(); +await client.ats.fieldMapping.remoteFieldsRetrieve(); ```
@@ -5291,7 +5261,15 @@ await client.crm.accounts.metaPostRetrieve();
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.ats.RemoteFieldsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -5302,7 +5280,7 @@ await client.crm.accounts.metaPostRetrieve();
-
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ats.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -5314,7 +5292,7 @@ await client.crm.accounts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -5330,7 +5308,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.accounts.remoteFieldClassesList(); +await client.ats.fieldMapping.targetFieldsRetrieve(); ```
@@ -5346,15 +5324,7 @@ await client.crm.accounts.remoteFieldClassesList();
-**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -5365,9 +5335,9 @@ await client.crm.accounts.remoteFieldClassesList();
-## Crm AsyncPassthrough +## Ats GenerateKey -
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.ats.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -5379,7 +5349,7 @@ await client.crm.accounts.remoteFieldClassesList();
-Asynchronously pull data from an endpoint not currently supported by Merge. +Create a remote key.
@@ -5395,9 +5365,8 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.asyncPassthrough.create({ - method: "GET", - path: "/scooters", +await client.ats.generateKey.create({ + name: "Remote Deployment Key 1", }); ``` @@ -5414,7 +5383,7 @@ await client.crm.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.ats.GenerateRemoteKeyRequest`
@@ -5422,7 +5391,7 @@ await client.crm.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `GenerateKey.RequestOptions`
@@ -5433,7 +5402,9 @@ await client.crm.asyncPassthrough.create({
-
client.crm.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +## Ats Interviews + +
client.ats.interviews.list({ ...params }) -> Merge.PaginatedScheduledInterviewList
@@ -5445,7 +5416,7 @@ await client.crm.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a list of `ScheduledInterview` objects.
@@ -5461,7 +5432,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.ats.interviews.list(); ```
@@ -5477,7 +5448,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**asyncPassthroughReceiptId:** `string` +**request:** `Merge.ats.InterviewsListRequest`
@@ -5485,7 +5456,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Interviews.RequestOptions`
@@ -5496,9 +5467,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Crm AuditTrail - -
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.ats.interviews.create({ ...params }) -> Merge.ScheduledInterviewResponse
@@ -5510,7 +5479,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +Creates a `ScheduledInterview` object with the given values.
@@ -5526,7 +5495,10 @@ Gets a list of audit trail events.
```typescript -await client.crm.auditTrail.list(); +await client.ats.interviews.create({ + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -5542,7 +5514,7 @@ await client.crm.auditTrail.list();
-**request:** `Merge.crm.AuditTrailListRequest` +**request:** `Merge.ats.ScheduledInterviewEndpointRequest`
@@ -5550,7 +5522,7 @@ await client.crm.auditTrail.list();
-**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Interviews.RequestOptions`
@@ -5561,9 +5533,7 @@ await client.crm.auditTrail.list();
-## Crm AvailableActions - -
client.crm.availableActions.retrieve() -> Merge.AvailableActions +
client.ats.interviews.retrieve(id, { ...params }) -> Merge.ScheduledInterview
@@ -5575,7 +5545,7 @@ await client.crm.auditTrail.list();
-Returns a list of models and actions available for an account. +Returns a `ScheduledInterview` object with the given `id`.
@@ -5591,7 +5561,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.crm.availableActions.retrieve(); +await client.ats.interviews.retrieve("id"); ```
@@ -5607,20 +5577,34 @@ await client.crm.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**id:** `string`
+ +
+
+ +**request:** `Merge.ats.InterviewsRetrieveRequest` +
+
+
+ +**requestOptions:** `Interviews.RequestOptions` + +
+
-
-## Crm Contacts + + +
-
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList +
client.ats.interviews.metaPostRetrieve() -> Merge.MetaResponse
@@ -5632,7 +5616,7 @@ await client.crm.availableActions.retrieve();
-Returns a list of `Contact` objects. +Returns metadata for `ScheduledInterview` POSTs.
@@ -5648,7 +5632,7 @@ Returns a list of `Contact` objects.
```typescript -await client.crm.contacts.list(); +await client.ats.interviews.metaPostRetrieve(); ```
@@ -5664,26 +5648,20 @@ await client.crm.contacts.list();
-**request:** `Merge.crm.ContactsListRequest` +**requestOptions:** `Interviews.RequestOptions`
- -
-
- -**requestOptions:** `Contacts.RequestOptions` - -
-
- -
+ +
-
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse +## Ats Issues + +
client.ats.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -5695,7 +5673,7 @@ await client.crm.contacts.list();
-Creates a `Contact` object with the given values. +Gets all issues for Organization.
@@ -5711,9 +5689,7 @@ Creates a `Contact` object with the given values.
```typescript -await client.crm.contacts.create({ - model: {}, -}); +await client.ats.issues.list(); ```
@@ -5729,7 +5705,7 @@ await client.crm.contacts.create({
-**request:** `Merge.crm.CrmContactEndpointRequest` +**request:** `Merge.ats.IssuesListRequest`
@@ -5737,7 +5713,7 @@ await client.crm.contacts.create({
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -5748,7 +5724,7 @@ await client.crm.contacts.create({
-
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact +
client.ats.issues.retrieve(id) -> Merge.Issue
@@ -5760,7 +5736,7 @@ await client.crm.contacts.create({
-Returns a `Contact` object with the given `id`. +Get a specific issue.
@@ -5776,7 +5752,7 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.crm.contacts.retrieve("id"); +await client.ats.issues.retrieve("id"); ```
@@ -5800,15 +5776,7 @@ await client.crm.contacts.retrieve("id");
-**request:** `Merge.crm.ContactsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -5819,7 +5787,9 @@ await client.crm.contacts.retrieve("id");
-
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse +## Ats JobInterviewStages + +
client.ats.jobInterviewStages.list({ ...params }) -> Merge.PaginatedJobInterviewStageList
@@ -5831,7 +5801,7 @@ await client.crm.contacts.retrieve("id");
-Updates a `Contact` object with the given `id`. +Returns a list of `JobInterviewStage` objects.
@@ -5847,9 +5817,7 @@ Updates a `Contact` object with the given `id`.
```typescript -await client.crm.contacts.partialUpdate("id", { - model: {}, -}); +await client.ats.jobInterviewStages.list(); ```
@@ -5865,15 +5833,7 @@ await client.crm.contacts.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmContactEndpointRequest` +**request:** `Merge.ats.JobInterviewStagesListRequest`
@@ -5881,7 +5841,7 @@ await client.crm.contacts.partialUpdate("id", {
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `JobInterviewStages.RequestOptions`
@@ -5892,7 +5852,7 @@ await client.crm.contacts.partialUpdate("id", {
-
client.crm.contacts.ignoreCreate(modelId, { ...params }) -> void +
client.ats.jobInterviewStages.retrieve(id, { ...params }) -> Merge.JobInterviewStage
@@ -5904,7 +5864,7 @@ await client.crm.contacts.partialUpdate("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a `JobInterviewStage` object with the given `id`.
@@ -5920,9 +5880,7 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.crm.contacts.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", -}); +await client.ats.jobInterviewStages.retrieve("id"); ```
@@ -5938,7 +5896,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**modelId:** `string` +**id:** `string`
@@ -5946,7 +5904,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.ats.JobInterviewStagesRetrieveRequest`
@@ -5954,7 +5912,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `JobInterviewStages.RequestOptions`
@@ -5965,7 +5923,9 @@ await client.crm.contacts.ignoreCreate("model_id", {
-
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse +## Ats JobPostings + +
client.ats.jobPostings.list({ ...params }) -> Merge.PaginatedJobPostingList
@@ -5977,7 +5937,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-Returns metadata for `CRMContact` PATCHs. +Returns a list of `JobPosting` objects.
@@ -5993,7 +5953,7 @@ Returns metadata for `CRMContact` PATCHs.
```typescript -await client.crm.contacts.metaPatchRetrieve("id"); +await client.ats.jobPostings.list(); ```
@@ -6009,7 +5969,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.ats.JobPostingsListRequest`
@@ -6017,7 +5977,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `JobPostings.RequestOptions`
@@ -6028,7 +5988,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse +
client.ats.jobPostings.retrieve(id, { ...params }) -> Merge.JobPosting
@@ -6040,7 +6000,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-Returns metadata for `CRMContact` POSTs. +Returns a `JobPosting` object with the given `id`.
@@ -6056,7 +6016,7 @@ Returns metadata for `CRMContact` POSTs.
```typescript -await client.crm.contacts.metaPostRetrieve(); +await client.ats.jobPostings.retrieve("id"); ```
@@ -6072,7 +6032,23 @@ await client.crm.contacts.metaPostRetrieve();
-**requestOptions:** `Contacts.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ats.JobPostingsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `JobPostings.RequestOptions`
@@ -6083,7 +6059,9 @@ await client.crm.contacts.metaPostRetrieve();
-
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ats Jobs + +
client.ats.jobs.list({ ...params }) -> Merge.PaginatedJobList
@@ -6095,7 +6073,7 @@ await client.crm.contacts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Job` objects.
@@ -6111,7 +6089,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.contacts.remoteFieldClassesList(); +await client.ats.jobs.list(); ```
@@ -6127,7 +6105,7 @@ await client.crm.contacts.remoteFieldClassesList();
-**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest` +**request:** `Merge.ats.JobsListRequest`
@@ -6135,7 +6113,7 @@ await client.crm.contacts.remoteFieldClassesList();
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Jobs.RequestOptions`
@@ -6146,9 +6124,7 @@ await client.crm.contacts.remoteFieldClassesList();
-## Crm CustomObjectClasses - -
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList +
client.ats.jobs.retrieve(id, { ...params }) -> Merge.Job
@@ -6160,7 +6136,7 @@ await client.crm.contacts.remoteFieldClassesList();
-Returns a list of `CustomObjectClass` objects. +Returns a `Job` object with the given `id`.
@@ -6176,7 +6152,7 @@ Returns a list of `CustomObjectClass` objects.
```typescript -await client.crm.customObjectClasses.list(); +await client.ats.jobs.retrieve("id"); ```
@@ -6192,7 +6168,7 @@ await client.crm.customObjectClasses.list();
-**request:** `Merge.crm.CustomObjectClassesListRequest` +**id:** `string`
@@ -6200,7 +6176,15 @@ await client.crm.customObjectClasses.list();
-**requestOptions:** `CustomObjectClasses.RequestOptions` +**request:** `Merge.ats.JobsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Jobs.RequestOptions`
@@ -6211,7 +6195,7 @@ await client.crm.customObjectClasses.list();
-
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass +
client.ats.jobs.screeningQuestionsList(jobId, { ...params }) -> Merge.PaginatedScreeningQuestionList
@@ -6223,7 +6207,7 @@ await client.crm.customObjectClasses.list();
-Returns a `CustomObjectClass` object with the given `id`. +Returns a list of `ScreeningQuestion` objects.
@@ -6239,7 +6223,7 @@ Returns a `CustomObjectClass` object with the given `id`.
```typescript -await client.crm.customObjectClasses.retrieve("id"); +await client.ats.jobs.screeningQuestionsList("job_id"); ```
@@ -6255,7 +6239,7 @@ await client.crm.customObjectClasses.retrieve("id");
-**id:** `string` +**jobId:** `string`
@@ -6263,7 +6247,7 @@ await client.crm.customObjectClasses.retrieve("id");
-**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` +**request:** `Merge.ats.JobsScreeningQuestionsListRequest`
@@ -6271,7 +6255,7 @@ await client.crm.customObjectClasses.retrieve("id");
-**requestOptions:** `CustomObjectClasses.RequestOptions` +**requestOptions:** `Jobs.RequestOptions`
@@ -6282,9 +6266,9 @@ await client.crm.customObjectClasses.retrieve("id");
-## Crm AssociationTypes +## Ats LinkToken -
client.crm.associationTypes.customObjectClassesAssociationTypesList(customObjectClassId, { ...params }) -> Merge.PaginatedAssociationTypeList +
client.ats.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -6296,7 +6280,7 @@ await client.crm.customObjectClasses.retrieve("id");
-Returns a list of `AssociationType` objects. +Creates a link token to be used when linking a new end user.
@@ -6312,7 +6296,12 @@ Returns a list of `AssociationType` objects.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id"); +await client.ats.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], +}); ```
@@ -6328,15 +6317,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` +**request:** `Merge.ats.EndUserDetailsRequest`
@@ -6344,7 +6325,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -6355,7 +6336,9 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(customObjectClassId, { ...params }) -> Merge.CrmAssociationTypeResponse +## Ats LinkedAccounts + +
client.ats.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -6367,7 +6350,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-Creates an `AssociationType` object with the given values. +List linked accounts for your organization.
@@ -6383,21 +6366,7 @@ Creates an `AssociationType` object with the given values.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { - model: { - sourceObjectClass: { - id: "id", - originType: "CUSTOM_OBJECT", - }, - targetObjectClasses: [ - { - id: "id", - originType: "CUSTOM_OBJECT", - }, - ], - remoteKeyName: "remote_key_name", - }, -}); +await client.ats.linkedAccounts.list(); ```
@@ -6413,15 +6382,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` +**request:** `Merge.ats.LinkedAccountsListRequest`
@@ -6429,7 +6390,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -6440,7 +6401,9 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(customObjectClassId, id, { ...params }) -> Merge.AssociationType +## Ats Offers + +
client.ats.offers.list({ ...params }) -> Merge.PaginatedOfferList
@@ -6452,7 +6415,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-Returns an `AssociationType` object with the given `id`. +Returns a list of `Offer` objects.
@@ -6468,7 +6431,7 @@ Returns an `AssociationType` object with the given `id`.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id"); +await client.ats.offers.list(); ```
@@ -6484,23 +6447,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**customObjectClassId:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest` +**request:** `Merge.ats.OffersListRequest`
@@ -6508,7 +6455,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `Offers.RequestOptions`
@@ -6519,7 +6466,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse +
client.ats.offers.retrieve(id, { ...params }) -> Merge.Offer
@@ -6531,7 +6478,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-Returns metadata for `CRMAssociationType` POSTs. +Returns an `Offer` object with the given `id`.
@@ -6547,7 +6494,7 @@ Returns metadata for `CRMAssociationType` POSTs.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); +await client.ats.offers.retrieve("id"); ```
@@ -6563,7 +6510,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**customObjectClassId:** `string` +**id:** `string`
@@ -6571,7 +6518,15 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**requestOptions:** `AssociationTypes.RequestOptions` +**request:** `Merge.ats.OffersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Offers.RequestOptions`
@@ -6582,9 +6537,9 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-## Crm CustomObjects +## Ats Offices -
client.crm.customObjects.customObjectClassesCustomObjectsList(customObjectClassId, { ...params }) -> Merge.PaginatedCustomObjectList +
client.ats.offices.list({ ...params }) -> Merge.PaginatedOfficeList
@@ -6596,7 +6551,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-Returns a list of `CustomObject` objects. +Returns a list of `Office` objects.
@@ -6612,7 +6567,7 @@ Returns a list of `CustomObject` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id"); +await client.ats.offices.list(); ```
@@ -6628,15 +6583,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` +**request:** `Merge.ats.OfficesListRequest`
@@ -6644,7 +6591,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `Offices.RequestOptions`
@@ -6655,7 +6602,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-
client.crm.customObjects.customObjectClassesCustomObjectsCreate(customObjectClassId, { ...params }) -> Merge.CrmCustomObjectResponse +
client.ats.offices.retrieve(id, { ...params }) -> Merge.Office
@@ -6667,7 +6614,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-Creates a `CustomObject` object with the given values. +Returns an `Office` object with the given `id`.
@@ -6683,13 +6630,7 @@ Creates a `CustomObject` object with the given values.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { - model: { - fields: { - test_field: "hello", - }, - }, -}); +await client.ats.offices.retrieve("id"); ```
@@ -6705,7 +6646,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**customObjectClassId:** `string` +**id:** `string`
@@ -6713,7 +6654,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**request:** `Merge.crm.CrmCustomObjectEndpointRequest` +**request:** `Merge.ats.OfficesRetrieveRequest`
@@ -6721,7 +6662,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `Offices.RequestOptions`
@@ -6732,7 +6673,9 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(customObjectClassId, id, { ...params }) -> Merge.CustomObject +## Ats Passthrough + +
client.ats.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -6744,7 +6687,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-Returns a `CustomObject` object with the given `id`. +Pull data from an endpoint not currently supported by Merge.
@@ -6760,7 +6703,10 @@ Returns a `CustomObject` object with the given `id`.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id"); +await client.ats.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -6776,23 +6722,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**customObjectClassId:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -6800,7 +6730,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -6811,7 +6741,9 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse +## Ats RegenerateKey + +
client.ats.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -6823,7 +6755,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-Returns metadata for `CRMCustomObject` POSTs. +Exchange remote keys.
@@ -6839,7 +6771,9 @@ Returns metadata for `CRMCustomObject` POSTs.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); +await client.ats.regenerateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -6855,7 +6789,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**customObjectClassId:** `string` +**request:** `Merge.ats.RemoteKeyForRegenerationRequest`
@@ -6863,7 +6797,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -6874,7 +6808,9 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ats RejectReasons + +
client.ats.rejectReasons.list({ ...params }) -> Merge.PaginatedRejectReasonList
@@ -6886,7 +6822,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `RejectReason` objects.
@@ -6902,7 +6838,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList(); +await client.ats.rejectReasons.list(); ```
@@ -6918,7 +6854,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest` +**request:** `Merge.ats.RejectReasonsListRequest`
@@ -6926,7 +6862,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `RejectReasons.RequestOptions`
@@ -6937,9 +6873,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-## Crm Associations - -
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(customObjectClassId, objectId, { ...params }) -> Merge.PaginatedAssociationList +
client.ats.rejectReasons.retrieve(id, { ...params }) -> Merge.RejectReason
@@ -6951,7 +6885,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-Returns a list of `Association` objects. +Returns a `RejectReason` object with the given `id`.
@@ -6967,7 +6901,7 @@ Returns a list of `Association` objects.
```typescript -await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id"); +await client.ats.rejectReasons.retrieve("id"); ```
@@ -6983,15 +6917,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**customObjectClassId:** `string` - -
-
- -
-
- -**objectId:** `string` +**id:** `string`
@@ -6999,7 +6925,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` +**request:** `Merge.ats.RejectReasonsRetrieveRequest`
@@ -7007,7 +6933,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**requestOptions:** `Associations.RequestOptions` +**requestOptions:** `RejectReasons.RequestOptions`
@@ -7018,7 +6944,9 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(associationTypeId, sourceClassId, sourceObjectId, targetClassId, targetObjectId, { ...params }) -> Merge.Association +## Ats Scorecards + +
client.ats.scorecards.list({ ...params }) -> Merge.PaginatedScorecardList
@@ -7030,7 +6958,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. +Returns a list of `Scorecard` objects.
@@ -7046,13 +6974,7 @@ Creates an Association between `source_object_id` and `target_object_id` of type
```typescript -await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate( - "association_type_id", - "source_class_id", - "source_object_id", - "target_class_id", - "target_object_id" -); +await client.ats.scorecards.list(); ```
@@ -7068,7 +6990,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**associationTypeId:** `string` +**request:** `Merge.ats.ScorecardsListRequest`
@@ -7076,31 +6998,62 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**sourceClassId:** `string` +**requestOptions:** `Scorecards.RequestOptions` + +
+
+ +
+
+ +
client.ats.scorecards.retrieve(id, { ...params }) -> Merge.Scorecard +
+
+ +#### 📝 Description
-**sourceObjectId:** `string` +
+
+Returns a `Scorecard` object with the given `id`. + +
+
+#### 🔌 Usage +
-**targetClassId:** `string` +
+
+ +```typescript +await client.ats.scorecards.retrieve("id"); +```
+
+
+ +#### ⚙️ Parameters
-**targetObjectId:** `string` +
+
+ +**id:** `string`
@@ -7108,7 +7061,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest` +**request:** `Merge.ats.ScorecardsRetrieveRequest`
@@ -7116,7 +7069,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**requestOptions:** `Associations.RequestOptions` +**requestOptions:** `Scorecards.RequestOptions`
@@ -7127,9 +7080,9 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-## Crm Scopes +## Ats SyncStatus -
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.ats.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -7141,7 +7094,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Get syncing status. Possible values: `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).
@@ -7157,7 +7110,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.crm.scopes.defaultScopesRetrieve(); +await client.ats.syncStatus.list(); ```
@@ -7173,7 +7126,15 @@ await client.crm.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.ats.SyncStatusListRequest` + +
+
+ +
+
+ +**requestOptions:** `SyncStatus.RequestOptions`
@@ -7184,7 +7145,9 @@ await client.crm.scopes.defaultScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Ats ForceResync + +
client.ats.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -7196,7 +7159,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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.
@@ -7212,7 +7175,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.crm.scopes.linkedAccountScopesRetrieve(); +await client.ats.forceResync.syncStatusResyncCreate(); ```
@@ -7228,7 +7191,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -7239,7 +7202,9 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +## Ats Tags + +
client.ats.tags.list({ ...params }) -> Merge.PaginatedTagList
@@ -7251,7 +7216,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a list of `Tag` objects.
@@ -7267,29 +7232,7 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.crm.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], -}); +await client.ats.tags.list(); ```
@@ -7305,7 +7248,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.ats.TagsListRequest`
@@ -7313,7 +7256,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `Tags.RequestOptions`
@@ -7324,9 +7267,9 @@ await client.crm.scopes.linkedAccountScopesCreate({
-## Crm DeleteAccount +## Ats Users -
client.crm.deleteAccount.delete() -> void +
client.ats.users.list({ ...params }) -> Merge.PaginatedRemoteUserList
@@ -7338,7 +7281,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a list of `RemoteUser` objects.
@@ -7354,7 +7297,7 @@ Delete a linked account.
```typescript -await client.crm.deleteAccount.delete(); +await client.ats.users.list(); ```
@@ -7370,7 +7313,15 @@ await client.crm.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**request:** `Merge.ats.UsersListRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -7381,9 +7332,7 @@ await client.crm.deleteAccount.delete();
-## Crm EngagementTypes - -
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList +
client.ats.users.retrieve(id, { ...params }) -> Merge.RemoteUser
@@ -7395,7 +7344,7 @@ await client.crm.deleteAccount.delete();
-Returns a list of `EngagementType` objects. +Returns a `RemoteUser` object with the given `id`.
@@ -7411,7 +7360,7 @@ Returns a list of `EngagementType` objects.
```typescript -await client.crm.engagementTypes.list(); +await client.ats.users.retrieve("id"); ```
@@ -7427,7 +7376,7 @@ await client.crm.engagementTypes.list();
-**request:** `Merge.crm.EngagementTypesListRequest` +**id:** `string`
@@ -7435,7 +7384,15 @@ await client.crm.engagementTypes.list();
-**requestOptions:** `EngagementTypes.RequestOptions` +**request:** `Merge.ats.UsersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -7446,7 +7403,9 @@ await client.crm.engagementTypes.list();
-
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType +## Ats WebhookReceivers + +
client.ats.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -7458,7 +7417,7 @@ await client.crm.engagementTypes.list();
-Returns an `EngagementType` object with the given `id`. +Returns a list of `WebhookReceiver` objects.
@@ -7474,7 +7433,7 @@ Returns an `EngagementType` object with the given `id`.
```typescript -await client.crm.engagementTypes.retrieve("id"); +await client.ats.webhookReceivers.list(); ```
@@ -7490,23 +7449,7 @@ await client.crm.engagementTypes.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementTypesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EngagementTypes.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -7517,7 +7460,7 @@ await client.crm.engagementTypes.retrieve("id");
-
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ats.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -7529,7 +7472,7 @@ await client.crm.engagementTypes.retrieve("id");
-Returns a list of `RemoteFieldClass` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -7545,7 +7488,10 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagementTypes.remoteFieldClassesList(); +await client.ats.webhookReceivers.create({ + event: "event", + isActive: true, +}); ```
@@ -7561,7 +7507,7 @@ await client.crm.engagementTypes.remoteFieldClassesList();
-**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` +**request:** `Merge.ats.WebhookReceiverRequest`
@@ -7569,7 +7515,7 @@ await client.crm.engagementTypes.remoteFieldClassesList();
-**requestOptions:** `EngagementTypes.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -7580,9 +7526,9 @@ await client.crm.engagementTypes.remoteFieldClassesList();
-## Crm Engagements +## Ticketing AccountDetails -
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList +
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails
@@ -7594,7 +7540,7 @@ await client.crm.engagementTypes.remoteFieldClassesList();
-Returns a list of `Engagement` objects. +Get details for a linked account.
@@ -7610,7 +7556,7 @@ Returns a list of `Engagement` objects.
```typescript -await client.crm.engagements.list(); +await client.ticketing.accountDetails.retrieve(); ```
@@ -7626,15 +7572,7 @@ await client.crm.engagements.list();
-**request:** `Merge.crm.EngagementsListRequest` - -
-
- -
-
- -**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AccountDetails.RequestOptions`
@@ -7645,7 +7583,9 @@ await client.crm.engagements.list();
-
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse +## Ticketing AccountToken + +
client.ticketing.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -7657,7 +7597,7 @@ await client.crm.engagements.list();
-Creates an `Engagement` object with the given values. +Returns the account token for the end user with the provided public token.
@@ -7673,9 +7613,7 @@ Creates an `Engagement` object with the given values.
```typescript -await client.crm.engagements.create({ - model: {}, -}); +await client.ticketing.accountToken.retrieve("public_token"); ```
@@ -7691,7 +7629,7 @@ await client.crm.engagements.create({
-**request:** `Merge.crm.EngagementEndpointRequest` +**publicToken:** `string`
@@ -7699,7 +7637,7 @@ await client.crm.engagements.create({
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AccountToken.RequestOptions`
@@ -7710,7 +7648,9 @@ await client.crm.engagements.create({
-
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement +## Ticketing Accounts + +
client.ticketing.accounts.list({ ...params }) -> Merge.PaginatedAccountList
@@ -7722,7 +7662,7 @@ await client.crm.engagements.create({
-Returns an `Engagement` object with the given `id`. +Returns a list of `Account` objects.
@@ -7738,7 +7678,7 @@ Returns an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.retrieve("id"); +await client.ticketing.accounts.list(); ```
@@ -7754,15 +7694,7 @@ await client.crm.engagements.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementsRetrieveRequest` +**request:** `Merge.ticketing.AccountsListRequest`
@@ -7770,7 +7702,7 @@ await client.crm.engagements.retrieve("id");
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -7781,7 +7713,7 @@ await client.crm.engagements.retrieve("id");
-
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse +
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -7793,7 +7725,7 @@ await client.crm.engagements.retrieve("id");
-Updates an `Engagement` object with the given `id`. +Returns an `Account` object with the given `id`.
@@ -7809,9 +7741,7 @@ Updates an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.partialUpdate("id", { - model: {}, -}); +await client.ticketing.accounts.retrieve("id"); ```
@@ -7835,7 +7765,7 @@ await client.crm.engagements.partialUpdate("id", {
-**request:** `Merge.crm.PatchedEngagementEndpointRequest` +**request:** `Merge.ticketing.AccountsRetrieveRequest`
@@ -7843,7 +7773,7 @@ await client.crm.engagements.partialUpdate("id", {
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -7854,7 +7784,9 @@ await client.crm.engagements.partialUpdate("id", {
-
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse +## Ticketing AsyncPassthrough + +
client.ticketing.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -7866,7 +7798,7 @@ await client.crm.engagements.partialUpdate("id", {
-Returns metadata for `Engagement` PATCHs. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -7882,7 +7814,10 @@ Returns metadata for `Engagement` PATCHs.
```typescript -await client.crm.engagements.metaPatchRetrieve("id"); +await client.ticketing.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -7898,7 +7833,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.DataPassthroughRequest`
@@ -7906,7 +7841,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -7917,7 +7852,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -7929,7 +7864,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-Returns metadata for `Engagement` POSTs. +Retrieves data from earlier async-passthrough POST request
@@ -7945,7 +7880,7 @@ Returns metadata for `Engagement` POSTs.
```typescript -await client.crm.engagements.metaPostRetrieve(); +await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -7961,7 +7896,15 @@ await client.crm.engagements.metaPostRetrieve();
-**requestOptions:** `Engagements.RequestOptions` +**asyncPassthroughReceiptId:** `string` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -7972,7 +7915,9 @@ await client.crm.engagements.metaPostRetrieve();
-
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing Attachments + +
client.ticketing.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList
@@ -7984,7 +7929,7 @@ await client.crm.engagements.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Attachment` objects.
@@ -8000,7 +7945,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagements.remoteFieldClassesList(); +await client.ticketing.attachments.list(); ```
@@ -8016,7 +7961,7 @@ await client.crm.engagements.remoteFieldClassesList();
-**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.AttachmentsListRequest`
@@ -8024,7 +7969,7 @@ await client.crm.engagements.remoteFieldClassesList();
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -8035,9 +7980,7 @@ await client.crm.engagements.remoteFieldClassesList();
-## Crm FieldMapping - -
client.crm.fieldMapping.fieldMappingsRetrieve() -> Merge.FieldMappingApiInstanceResponse +
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse
@@ -8049,7 +7992,7 @@ await client.crm.engagements.remoteFieldClassesList();
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Creates an `Attachment` object with the given values.
@@ -8065,7 +8008,9 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.crm.fieldMapping.fieldMappingsRetrieve(); +await client.ticketing.attachments.create({ + model: {}, +}); ```
@@ -8081,7 +8026,15 @@ await client.crm.fieldMapping.fieldMappingsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Attachments.RequestOptions`
@@ -8092,7 +8045,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve();
-
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment
@@ -8104,7 +8057,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve();
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns an `Attachment` object with the given `id`.
@@ -8120,14 +8073,7 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.crm.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", -}); +await client.ticketing.attachments.retrieve("id"); ```
@@ -8143,7 +8089,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.crm.CreateFieldMappingRequest` +**id:** `string`
@@ -8151,7 +8097,15 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.ticketing.AttachmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Attachments.RequestOptions`
@@ -8162,7 +8116,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-
client.crm.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.ticketing.attachments.downloadRetrieve(id, { ...params }) -> stream.Readable
@@ -8174,7 +8128,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns the `File` content with the given `id` as a stream of bytes.
@@ -8190,7 +8144,9 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.ticketing.attachments.downloadRetrieve("string", { + mimeType: "string", +}); ```
@@ -8206,7 +8162,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` +**id:** `string`
@@ -8214,7 +8170,15 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.ticketing.AttachmentsDownloadRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Attachments.RequestOptions`
@@ -8225,7 +8189,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.crm.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -8237,7 +8201,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `TicketingAttachment` POSTs.
@@ -8253,7 +8217,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.ticketing.attachments.metaPostRetrieve(); ```
@@ -8269,46 +8233,32 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**fieldMappingId:** `string` +**requestOptions:** `Attachments.RequestOptions`
+ +
+ + + +
+ +## Ticketing AuditTrail +
client.ticketing.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
-**request:** `Merge.crm.PatchedEditFieldMappingRequest` +#### 📝 Description -
-
+
+
-**requestOptions:** `FieldMapping.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/). +Gets a list of audit trail events.
@@ -8324,7 +8274,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.crm.fieldMapping.remoteFieldsRetrieve(); +await client.ticketing.auditTrail.list(); ```
@@ -8340,7 +8290,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.crm.RemoteFieldsRetrieveRequest` +**request:** `Merge.ticketing.AuditTrailListRequest`
@@ -8348,7 +8298,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -8359,7 +8309,9 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Ticketing AvailableActions + +
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions
@@ -8371,7 +8323,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns a list of models and actions available for an account.
@@ -8387,7 +8339,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.crm.fieldMapping.targetFieldsRetrieve(); +await client.ticketing.availableActions.retrieve(); ```
@@ -8403,7 +8355,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -8414,9 +8366,9 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-## Crm GenerateKey +## Ticketing Collections -
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.ticketing.collections.list({ ...params }) -> Merge.PaginatedCollectionList
@@ -8428,7 +8380,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns a list of `Collection` objects.
@@ -8444,9 +8396,7 @@ Create a remote key.
```typescript -await client.crm.generateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.ticketing.collections.list(); ```
@@ -8462,7 +8412,7 @@ await client.crm.generateKey.create({
-**request:** `Merge.crm.GenerateRemoteKeyRequest` +**request:** `Merge.ticketing.CollectionsListRequest`
@@ -8470,7 +8420,7 @@ await client.crm.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `Collections.RequestOptions`
@@ -8481,9 +8431,7 @@ await client.crm.generateKey.create({
-## Crm Issues - -
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.ticketing.collections.retrieve(id, { ...params }) -> Merge.Collection
@@ -8495,7 +8443,7 @@ await client.crm.generateKey.create({
-Gets all issues for Organization. +Returns a `Collection` object with the given `id`.
@@ -8511,7 +8459,7 @@ Gets all issues for Organization.
```typescript -await client.crm.issues.list(); +await client.ticketing.collections.retrieve("id"); ```
@@ -8527,70 +8475,15 @@ await client.crm.issues.list();
-**request:** `Merge.crm.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `Issues.RequestOptions` - -
-
- -
- - - -
- -
client.crm.issues.retrieve(id) -> Merge.Issue -
-
- -#### 📝 Description - -
-
- -
-
- -Get a specific issue. - -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.issues.retrieve("id"); -``` +**id:** `string`
-
-
- -#### ⚙️ Parameters
-
-
- -**id:** `string` +**request:** `Merge.ticketing.CollectionsRetrieveRequest`
@@ -8598,7 +8491,7 @@ await client.crm.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Collections.RequestOptions`
@@ -8609,9 +8502,9 @@ await client.crm.issues.retrieve("id");
-## Crm Leads +## Ticketing Comments -
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList +
client.ticketing.comments.list({ ...params }) -> Merge.PaginatedCommentList
@@ -8623,7 +8516,7 @@ await client.crm.issues.retrieve("id");
-Returns a list of `Lead` objects. +Returns a list of `Comment` objects.
@@ -8639,7 +8532,7 @@ Returns a list of `Lead` objects.
```typescript -await client.crm.leads.list(); +await client.ticketing.comments.list(); ```
@@ -8655,7 +8548,7 @@ await client.crm.leads.list();
-**request:** `Merge.crm.LeadsListRequest` +**request:** `Merge.ticketing.CommentsListRequest`
@@ -8663,7 +8556,7 @@ await client.crm.leads.list();
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `Comments.RequestOptions`
@@ -8674,7 +8567,7 @@ await client.crm.leads.list();
-
client.crm.leads.create({ ...params }) -> Merge.LeadResponse +
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse
@@ -8686,7 +8579,7 @@ await client.crm.leads.list();
-Creates a `Lead` object with the given values. +Creates a `Comment` object with the given values.
@@ -8702,7 +8595,7 @@ Creates a `Lead` object with the given values.
```typescript -await client.crm.leads.create({ +await client.ticketing.comments.create({ model: {}, }); ``` @@ -8720,7 +8613,7 @@ await client.crm.leads.create({
-**request:** `Merge.crm.LeadEndpointRequest` +**request:** `Merge.ticketing.CommentEndpointRequest`
@@ -8728,7 +8621,7 @@ await client.crm.leads.create({
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `Comments.RequestOptions`
@@ -8739,7 +8632,7 @@ await client.crm.leads.create({
-
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead +
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment
@@ -8751,7 +8644,7 @@ await client.crm.leads.create({
-Returns a `Lead` object with the given `id`. +Returns a `Comment` object with the given `id`.
@@ -8767,7 +8660,7 @@ Returns a `Lead` object with the given `id`.
```typescript -await client.crm.leads.retrieve("id"); +await client.ticketing.comments.retrieve("id"); ```
@@ -8791,7 +8684,7 @@ await client.crm.leads.retrieve("id");
-**request:** `Merge.crm.LeadsRetrieveRequest` +**request:** `Merge.ticketing.CommentsRetrieveRequest`
@@ -8799,7 +8692,7 @@ await client.crm.leads.retrieve("id");
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `Comments.RequestOptions`
@@ -8810,7 +8703,7 @@ await client.crm.leads.retrieve("id");
-
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse
@@ -8822,7 +8715,7 @@ await client.crm.leads.retrieve("id");
-Returns metadata for `Lead` POSTs. +Returns metadata for `Comment` POSTs.
@@ -8838,7 +8731,7 @@ Returns metadata for `Lead` POSTs.
```typescript -await client.crm.leads.metaPostRetrieve(); +await client.ticketing.comments.metaPostRetrieve(); ```
@@ -8854,7 +8747,7 @@ await client.crm.leads.metaPostRetrieve();
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `Comments.RequestOptions`
@@ -8865,7 +8758,9 @@ await client.crm.leads.metaPostRetrieve();
-
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing Contacts + +
client.ticketing.contacts.list({ ...params }) -> Merge.PaginatedContactList
@@ -8877,7 +8772,7 @@ await client.crm.leads.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Contact` objects.
@@ -8893,7 +8788,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.leads.remoteFieldClassesList(); +await client.ticketing.contacts.list(); ```
@@ -8909,7 +8804,7 @@ await client.crm.leads.remoteFieldClassesList();
-**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.ContactsListRequest`
@@ -8917,7 +8812,7 @@ await client.crm.leads.remoteFieldClassesList();
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -8928,9 +8823,7 @@ await client.crm.leads.remoteFieldClassesList();
-## Crm LinkToken - -
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken +
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse
@@ -8942,7 +8835,7 @@ await client.crm.leads.remoteFieldClassesList();
-Creates a link token to be used when linking a new end user. +Creates a `Contact` object with the given values.
@@ -8958,11 +8851,8 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.crm.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], +await client.ticketing.contacts.create({ + model: {}, }); ``` @@ -8979,7 +8869,7 @@ await client.crm.linkToken.create({
-**request:** `Merge.crm.EndUserDetailsRequest` +**request:** `Merge.ticketing.TicketingContactEndpointRequest`
@@ -8987,7 +8877,7 @@ await client.crm.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -8998,9 +8888,7 @@ await client.crm.linkToken.create({
-## Crm LinkedAccounts - -
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -9012,7 +8900,7 @@ await client.crm.linkToken.create({
-List linked accounts for your organization. +Returns a `Contact` object with the given `id`.
@@ -9028,7 +8916,7 @@ List linked accounts for your organization.
```typescript -await client.crm.linkedAccounts.list(); +await client.ticketing.contacts.retrieve("id"); ```
@@ -9044,7 +8932,7 @@ await client.crm.linkedAccounts.list();
-**request:** `Merge.crm.LinkedAccountsListRequest` +**id:** `string`
@@ -9052,7 +8940,15 @@ await client.crm.linkedAccounts.list();
-**requestOptions:** `LinkedAccounts.RequestOptions` +**request:** `Merge.ticketing.ContactsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -9063,9 +8959,7 @@ await client.crm.linkedAccounts.list();
-## Crm Notes - -
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList +
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -9077,7 +8971,7 @@ await client.crm.linkedAccounts.list();
-Returns a list of `Note` objects. +Returns metadata for `TicketingContact` POSTs.
@@ -9093,7 +8987,7 @@ Returns a list of `Note` objects.
```typescript -await client.crm.notes.list(); +await client.ticketing.contacts.metaPostRetrieve(); ```
@@ -9109,15 +9003,7 @@ await client.crm.notes.list();
-**request:** `Merge.crm.NotesListRequest` - -
-
- -
-
- -**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -9128,7 +9014,9 @@ await client.crm.notes.list();
-
client.crm.notes.create({ ...params }) -> Merge.NoteResponse +## Ticketing Scopes + +
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -9140,7 +9028,7 @@ await client.crm.notes.list();
-Creates a `Note` object with the given values. +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).
@@ -9156,9 +9044,7 @@ Creates a `Note` object with the given values.
```typescript -await client.crm.notes.create({ - model: {}, -}); +await client.ticketing.scopes.defaultScopesRetrieve(); ```
@@ -9174,15 +9060,7 @@ await client.crm.notes.create({
-**request:** `Merge.crm.NoteEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -9193,7 +9071,7 @@ await client.crm.notes.create({
-
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note +
client.ticketing.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -9205,7 +9083,7 @@ await client.crm.notes.create({
-Returns a `Note` 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).
@@ -9221,7 +9099,7 @@ Returns a `Note` object with the given `id`.
```typescript -await client.crm.notes.retrieve("id"); +await client.ticketing.scopes.linkedAccountScopesRetrieve(); ```
@@ -9237,23 +9115,7 @@ await client.crm.notes.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.NotesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -9264,7 +9126,7 @@ await client.crm.notes.retrieve("id");
-
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -9276,7 +9138,7 @@ await client.crm.notes.retrieve("id");
-Returns metadata for `Note` POSTs. +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)
@@ -9292,7 +9154,33 @@ Returns metadata for `Note` POSTs.
```typescript -await client.crm.notes.metaPostRetrieve(); +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, + }, + }, + }, + ], +}); ```
@@ -9308,7 +9196,15 @@ await client.crm.notes.metaPostRetrieve();
-**requestOptions:** `Notes.RequestOptions` +**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest` + +
+
+ +
+
+ +**requestOptions:** `Scopes.RequestOptions`
@@ -9319,7 +9215,9 @@ await client.crm.notes.metaPostRetrieve();
-
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing DeleteAccount + +
client.ticketing.deleteAccount.delete() -> void
@@ -9331,7 +9229,7 @@ await client.crm.notes.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Delete a linked account.
@@ -9347,7 +9245,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.notes.remoteFieldClassesList(); +await client.ticketing.deleteAccount.delete(); ```
@@ -9363,15 +9261,7 @@ await client.crm.notes.remoteFieldClassesList();
-**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -9382,9 +9272,9 @@ await client.crm.notes.remoteFieldClassesList();
-## Crm Opportunities +## Ticketing FieldMapping -
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList +
client.ticketing.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -9396,7 +9286,7 @@ await client.crm.notes.remoteFieldClassesList();
-Returns a list of `Opportunity` 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/).
@@ -9412,7 +9302,7 @@ Returns a list of `Opportunity` objects.
```typescript -await client.crm.opportunities.list(); +await client.ticketing.fieldMapping.fieldMappingsRetrieve(); ```
@@ -9428,7 +9318,7 @@ await client.crm.opportunities.list();
-**request:** `Merge.crm.OpportunitiesListRequest` +**request:** `Merge.ticketing.FieldMappingsRetrieveRequest`
@@ -9436,7 +9326,7 @@ await client.crm.opportunities.list();
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -9447,7 +9337,7 @@ await client.crm.opportunities.list();
-
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse +
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -9459,7 +9349,7 @@ await client.crm.opportunities.list();
-Creates an `Opportunity` 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.
@@ -9475,8 +9365,13 @@ Creates an `Opportunity` object with the given values.
```typescript -await client.crm.opportunities.create({ - model: {}, +await client.ticketing.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", }); ``` @@ -9493,7 +9388,7 @@ await client.crm.opportunities.create({
-**request:** `Merge.crm.OpportunityEndpointRequest` +**request:** `Merge.ticketing.CreateFieldMappingRequest`
@@ -9501,7 +9396,7 @@ await client.crm.opportunities.create({
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -9512,7 +9407,7 @@ await client.crm.opportunities.create({
-
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity +
client.ticketing.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -9524,7 +9419,7 @@ await client.crm.opportunities.create({
-Returns an `Opportunity` 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.
@@ -9540,7 +9435,7 @@ Returns an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.retrieve("id"); +await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -9556,15 +9451,7 @@ await client.crm.opportunities.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.OpportunitiesRetrieveRequest` +**fieldMappingId:** `string`
@@ -9572,7 +9459,7 @@ await client.crm.opportunities.retrieve("id");
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -9583,7 +9470,7 @@ await client.crm.opportunities.retrieve("id");
-
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse +
client.ticketing.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -9595,7 +9482,7 @@ await client.crm.opportunities.retrieve("id");
-Updates an `Opportunity` object with the given `id`. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -9611,9 +9498,7 @@ Updates an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.partialUpdate("id", { - model: {}, -}); +await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -9629,7 +9514,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**id:** `string` +**fieldMappingId:** `string`
@@ -9637,7 +9522,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**request:** `Merge.crm.PatchedOpportunityEndpointRequest` +**request:** `Merge.ticketing.PatchedEditFieldMappingRequest`
@@ -9645,7 +9530,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -9656,7 +9541,7 @@ await client.crm.opportunities.partialUpdate("id", {
-
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -9668,7 +9553,7 @@ await client.crm.opportunities.partialUpdate("id", {
-Returns metadata for `Opportunity` PATCHs. +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/).
@@ -9684,7 +9569,7 @@ Returns metadata for `Opportunity` PATCHs.
```typescript -await client.crm.opportunities.metaPatchRetrieve("id"); +await client.ticketing.fieldMapping.remoteFieldsRetrieve(); ```
@@ -9700,7 +9585,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest`
@@ -9708,7 +9593,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -9719,7 +9604,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -9731,7 +9616,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-Returns metadata for `Opportunity` POSTs. +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/).
@@ -9747,7 +9632,7 @@ Returns metadata for `Opportunity` POSTs.
```typescript -await client.crm.opportunities.metaPostRetrieve(); +await client.ticketing.fieldMapping.targetFieldsRetrieve(); ```
@@ -9763,7 +9648,7 @@ await client.crm.opportunities.metaPostRetrieve();
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -9774,7 +9659,9 @@ await client.crm.opportunities.metaPostRetrieve();
-
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing GenerateKey + +
client.ticketing.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -9786,7 +9673,7 @@ await client.crm.opportunities.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Create a remote key.
@@ -9802,7 +9689,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.opportunities.remoteFieldClassesList(); +await client.ticketing.generateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -9818,7 +9707,7 @@ await client.crm.opportunities.remoteFieldClassesList();
-**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.GenerateRemoteKeyRequest`
@@ -9826,7 +9715,7 @@ await client.crm.opportunities.remoteFieldClassesList();
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `GenerateKey.RequestOptions`
@@ -9837,9 +9726,9 @@ await client.crm.opportunities.remoteFieldClassesList();
-## Crm Passthrough +## Ticketing Issues -
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.ticketing.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -9851,7 +9740,7 @@ await client.crm.opportunities.remoteFieldClassesList();
-Pull data from an endpoint not currently supported by Merge. +Gets all issues for Organization.
@@ -9867,10 +9756,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.passthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.ticketing.issues.list(); ```
@@ -9886,7 +9772,7 @@ await client.crm.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.ticketing.IssuesListRequest`
@@ -9894,7 +9780,7 @@ await client.crm.passthrough.create({
-**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -9905,9 +9791,7 @@ await client.crm.passthrough.create({
-## Crm RegenerateKey - -
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.ticketing.issues.retrieve(id) -> Merge.Issue
@@ -9919,7 +9803,7 @@ await client.crm.passthrough.create({
-Exchange remote keys. +Get a specific issue.
@@ -9935,9 +9819,7 @@ Exchange remote keys.
```typescript -await client.crm.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.ticketing.issues.retrieve("id"); ```
@@ -9953,7 +9835,7 @@ await client.crm.regenerateKey.create({
-**request:** `Merge.crm.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -9961,7 +9843,7 @@ await client.crm.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -9972,9 +9854,9 @@ await client.crm.regenerateKey.create({
-## Crm Stages +## Ticketing LinkToken -
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList +
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -9986,7 +9868,7 @@ await client.crm.regenerateKey.create({
-Returns a list of `Stage` objects. +Creates a link token to be used when linking a new end user.
@@ -10002,7 +9884,12 @@ Returns a list of `Stage` objects.
```typescript -await client.crm.stages.list(); +await client.ticketing.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], +}); ```
@@ -10018,7 +9905,7 @@ await client.crm.stages.list();
-**request:** `Merge.crm.StagesListRequest` +**request:** `Merge.ticketing.EndUserDetailsRequest`
@@ -10026,7 +9913,7 @@ await client.crm.stages.list();
-**requestOptions:** `Stages.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -10037,7 +9924,9 @@ await client.crm.stages.list();
-
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage +## Ticketing LinkedAccounts + +
client.ticketing.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -10049,7 +9938,7 @@ await client.crm.stages.list();
-Returns a `Stage` object with the given `id`. +List linked accounts for your organization.
@@ -10065,7 +9954,7 @@ Returns a `Stage` object with the given `id`.
```typescript -await client.crm.stages.retrieve("id"); +await client.ticketing.linkedAccounts.list(); ```
@@ -10081,15 +9970,7 @@ await client.crm.stages.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.StagesRetrieveRequest` +**request:** `Merge.ticketing.LinkedAccountsListRequest`
@@ -10097,7 +9978,7 @@ await client.crm.stages.retrieve("id");
-**requestOptions:** `Stages.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -10108,7 +9989,9 @@ await client.crm.stages.retrieve("id");
-
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing Passthrough + +
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -10120,7 +10003,7 @@ await client.crm.stages.retrieve("id");
-Returns a list of `RemoteFieldClass` objects. +Pull data from an endpoint not currently supported by Merge.
@@ -10136,7 +10019,10 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.stages.remoteFieldClassesList(); +await client.ticketing.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -10152,7 +10038,7 @@ await client.crm.stages.remoteFieldClassesList();
-**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -10160,7 +10046,7 @@ await client.crm.stages.remoteFieldClassesList();
-**requestOptions:** `Stages.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -10171,9 +10057,9 @@ await client.crm.stages.remoteFieldClassesList();
-## Crm SyncStatus +## Ticketing Projects -
client.crm.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.ticketing.projects.list({ ...params }) -> Merge.PaginatedProjectList
@@ -10185,7 +10071,7 @@ await client.crm.stages.remoteFieldClassesList();
-Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns a list of `Project` objects.
@@ -10201,7 +10087,7 @@ Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SY
```typescript -await client.crm.syncStatus.list(); +await client.ticketing.projects.list(); ```
@@ -10217,7 +10103,7 @@ await client.crm.syncStatus.list();
-**request:** `Merge.crm.SyncStatusListRequest` +**request:** `Merge.ticketing.ProjectsListRequest`
@@ -10225,7 +10111,7 @@ await client.crm.syncStatus.list();
-**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `Projects.RequestOptions`
@@ -10236,9 +10122,7 @@ await client.crm.syncStatus.list();
-## Crm ForceResync - -
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.ticketing.projects.retrieve(id, { ...params }) -> Merge.Project
@@ -10250,7 +10134,7 @@ await client.crm.syncStatus.list();
-Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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. +Returns a `Project` object with the given `id`.
@@ -10266,7 +10150,7 @@ Force re-sync of all models. This is available for all organizations via the das
```typescript -await client.crm.forceResync.syncStatusResyncCreate(); +await client.ticketing.projects.retrieve("id"); ```
@@ -10282,20 +10166,34 @@ await client.crm.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**id:** `string`
+ +
+
+ +**request:** `Merge.ticketing.ProjectsRetrieveRequest` +
+
+
+ +**requestOptions:** `Projects.RequestOptions` + +
+
-
-## Crm Tasks + + +
-
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList +
client.ticketing.projects.usersList(parentId, { ...params }) -> Merge.PaginatedUserList
@@ -10307,7 +10205,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-Returns a list of `Task` objects. +Returns a list of `User` objects.
@@ -10323,7 +10221,7 @@ Returns a list of `Task` objects.
```typescript -await client.crm.tasks.list(); +await client.ticketing.projects.usersList("parent_id"); ```
@@ -10339,7 +10237,7 @@ await client.crm.tasks.list();
-**request:** `Merge.crm.TasksListRequest` +**parentId:** `string`
@@ -10347,7 +10245,15 @@ await client.crm.tasks.list();
-**requestOptions:** `Tasks.RequestOptions` +**request:** `Merge.ticketing.ProjectsUsersListRequest` + +
+
+ +
+
+ +**requestOptions:** `Projects.RequestOptions`
@@ -10358,7 +10264,9 @@ await client.crm.tasks.list();
-
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse +## Ticketing RegenerateKey + +
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -10370,7 +10278,7 @@ await client.crm.tasks.list();
-Creates a `Task` object with the given values. +Exchange remote keys.
@@ -10386,8 +10294,8 @@ Creates a `Task` object with the given values.
```typescript -await client.crm.tasks.create({ - model: {}, +await client.ticketing.regenerateKey.create({ + name: "Remote Deployment Key 1", }); ``` @@ -10404,7 +10312,7 @@ await client.crm.tasks.create({
-**request:** `Merge.crm.TaskEndpointRequest` +**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest`
@@ -10412,7 +10320,7 @@ await client.crm.tasks.create({
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -10423,7 +10331,9 @@ await client.crm.tasks.create({
-
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task +## Ticketing Roles + +
client.ticketing.roles.list({ ...params }) -> Merge.PaginatedRoleList
@@ -10435,7 +10345,7 @@ await client.crm.tasks.create({
-Returns a `Task` object with the given `id`. +Returns a list of `Role` objects.
@@ -10451,7 +10361,7 @@ Returns a `Task` object with the given `id`.
```typescript -await client.crm.tasks.retrieve("id"); +await client.ticketing.roles.list(); ```
@@ -10467,15 +10377,7 @@ await client.crm.tasks.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.TasksRetrieveRequest` +**request:** `Merge.ticketing.RolesListRequest`
@@ -10483,7 +10385,7 @@ await client.crm.tasks.retrieve("id");
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `Roles.RequestOptions`
@@ -10494,7 +10396,7 @@ await client.crm.tasks.retrieve("id");
-
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse +
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role
@@ -10506,7 +10408,7 @@ await client.crm.tasks.retrieve("id");
-Updates a `Task` object with the given `id`. +Returns a `Role` object with the given `id`.
@@ -10522,9 +10424,7 @@ Updates a `Task` object with the given `id`.
```typescript -await client.crm.tasks.partialUpdate("id", { - model: {}, -}); +await client.ticketing.roles.retrieve("id"); ```
@@ -10548,7 +10448,7 @@ await client.crm.tasks.partialUpdate("id", {
-**request:** `Merge.crm.PatchedTaskEndpointRequest` +**request:** `Merge.ticketing.RolesRetrieveRequest`
@@ -10556,7 +10456,7 @@ await client.crm.tasks.partialUpdate("id", {
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `Roles.RequestOptions`
@@ -10567,7 +10467,9 @@ await client.crm.tasks.partialUpdate("id", {
-
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse +## Ticketing SyncStatus + +
client.ticketing.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -10579,7 +10481,7 @@ await client.crm.tasks.partialUpdate("id", {
-Returns metadata for `Task` PATCHs. +Get syncing status. Possible values: `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).
@@ -10595,7 +10497,7 @@ Returns metadata for `Task` PATCHs.
```typescript -await client.crm.tasks.metaPatchRetrieve("id"); +await client.ticketing.syncStatus.list(); ```
@@ -10611,7 +10513,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.ticketing.SyncStatusListRequest`
@@ -10619,7 +10521,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `SyncStatus.RequestOptions`
@@ -10630,7 +10532,9 @@ await client.crm.tasks.metaPatchRetrieve("id");
-
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse +## Ticketing ForceResync + +
client.ticketing.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -10642,7 +10546,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-Returns metadata for `Task` POSTs. +Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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.
@@ -10658,7 +10562,7 @@ Returns metadata for `Task` POSTs.
```typescript -await client.crm.tasks.metaPostRetrieve(); +await client.ticketing.forceResync.syncStatusResyncCreate(); ```
@@ -10674,7 +10578,7 @@ await client.crm.tasks.metaPostRetrieve();
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -10685,7 +10589,9 @@ await client.crm.tasks.metaPostRetrieve();
-
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing Tags + +
client.ticketing.tags.list({ ...params }) -> Merge.PaginatedTagList
@@ -10697,7 +10603,7 @@ await client.crm.tasks.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Tag` objects.
@@ -10713,7 +10619,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.tasks.remoteFieldClassesList(); +await client.ticketing.tags.list(); ```
@@ -10729,7 +10635,7 @@ await client.crm.tasks.remoteFieldClassesList();
-**request:** `Merge.crm.TasksRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.TagsListRequest`
@@ -10737,7 +10643,7 @@ await client.crm.tasks.remoteFieldClassesList();
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `Tags.RequestOptions`
@@ -10748,9 +10654,7 @@ await client.crm.tasks.remoteFieldClassesList();
-## Crm Users - -
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList +
client.ticketing.tags.retrieve(id, { ...params }) -> Merge.Tag
@@ -10762,7 +10666,7 @@ await client.crm.tasks.remoteFieldClassesList();
-Returns a list of `User` objects. +Returns a `Tag` object with the given `id`.
@@ -10778,7 +10682,7 @@ Returns a list of `User` objects.
```typescript -await client.crm.users.list(); +await client.ticketing.tags.retrieve("id"); ```
@@ -10794,7 +10698,7 @@ await client.crm.users.list();
-**request:** `Merge.crm.UsersListRequest` +**id:** `string`
@@ -10802,7 +10706,15 @@ await client.crm.users.list();
-**requestOptions:** `Users.RequestOptions` +**request:** `Merge.ticketing.TagsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Tags.RequestOptions`
@@ -10813,7 +10725,9 @@ await client.crm.users.list();
-
client.crm.users.retrieve(id, { ...params }) -> Merge.User +## Ticketing Teams + +
client.ticketing.teams.list({ ...params }) -> Merge.PaginatedTeamList
@@ -10825,7 +10739,7 @@ await client.crm.users.list();
-Returns a `User` object with the given `id`. +Returns a list of `Team` objects.
@@ -10841,7 +10755,7 @@ Returns a `User` object with the given `id`.
```typescript -await client.crm.users.retrieve("id"); +await client.ticketing.teams.list(); ```
@@ -10857,15 +10771,7 @@ await client.crm.users.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.UsersRetrieveRequest` +**request:** `Merge.ticketing.TeamsListRequest`
@@ -10873,7 +10779,7 @@ await client.crm.users.retrieve("id");
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Teams.RequestOptions`
@@ -10884,7 +10790,7 @@ await client.crm.users.retrieve("id");
-
client.crm.users.ignoreCreate(modelId, { ...params }) -> void +
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -10896,7 +10802,7 @@ await client.crm.users.retrieve("id");
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a `Team` object with the given `id`.
@@ -10912,9 +10818,7 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.crm.users.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", -}); +await client.ticketing.teams.retrieve("id"); ```
@@ -10930,7 +10834,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**modelId:** `string` +**id:** `string`
@@ -10938,7 +10842,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.ticketing.TeamsRetrieveRequest`
@@ -10946,7 +10850,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Teams.RequestOptions`
@@ -10957,7 +10861,9 @@ await client.crm.users.ignoreCreate("model_id", {
-
client.crm.users.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing Tickets + +
client.ticketing.tickets.list({ ...params }) -> Merge.PaginatedTicketList
@@ -10969,7 +10875,7 @@ await client.crm.users.ignoreCreate("model_id", {
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Ticket` objects.
@@ -10985,7 +10891,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.users.remoteFieldClassesList(); +await client.ticketing.tickets.list(); ```
@@ -11001,7 +10907,7 @@ await client.crm.users.remoteFieldClassesList();
-**request:** `Merge.crm.UsersRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.TicketsListRequest`
@@ -11009,7 +10915,7 @@ await client.crm.users.remoteFieldClassesList();
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Tickets.RequestOptions`
@@ -11020,9 +10926,7 @@ await client.crm.users.remoteFieldClassesList();
-## Crm WebhookReceivers - -
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.ticketing.tickets.create({ ...params }) -> Merge.TicketResponse
@@ -11034,7 +10938,7 @@ await client.crm.users.remoteFieldClassesList();
-Returns a list of `WebhookReceiver` objects. +Creates a `Ticket` object with the given values.
@@ -11050,7 +10954,9 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.crm.webhookReceivers.list(); +await client.ticketing.tickets.create({ + model: {}, +}); ```
@@ -11066,7 +10972,15 @@ await client.crm.webhookReceivers.list();
-**requestOptions:** `WebhookReceivers.RequestOptions` +**request:** `Merge.ticketing.TicketEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Tickets.RequestOptions`
@@ -11077,7 +10991,7 @@ await client.crm.webhookReceivers.list();
-
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket
@@ -11089,7 +11003,7 @@ await client.crm.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns a `Ticket` object with the given `id`.
@@ -11105,10 +11019,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.crm.webhookReceivers.create({ - event: "event", - isActive: true, -}); +await client.ticketing.tickets.retrieve("id"); ```
@@ -11124,7 +11035,7 @@ await client.crm.webhookReceivers.create({
-**request:** `Merge.crm.WebhookReceiverRequest` +**id:** `string`
@@ -11132,7 +11043,15 @@ await client.crm.webhookReceivers.create({
-**requestOptions:** `WebhookReceivers.RequestOptions` +**request:** `Merge.ticketing.TicketsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Tickets.RequestOptions`
@@ -11143,9 +11062,7 @@ await client.crm.webhookReceivers.create({
-## Filestorage AccountDetails - -
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails +
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse
@@ -11157,7 +11074,7 @@ await client.crm.webhookReceivers.create({
-Get details for a linked account. +Updates a `Ticket` object with the given `id`.
@@ -11173,7 +11090,9 @@ Get details for a linked account.
```typescript -await client.filestorage.accountDetails.retrieve(); +await client.ticketing.tickets.partialUpdate("id", { + model: {}, +}); ```
@@ -11189,20 +11108,34 @@ await client.filestorage.accountDetails.retrieve();
-**requestOptions:** `AccountDetails.RequestOptions` +**id:** `string` -
-
- - -
+
+
-## Filestorage AccountToken +**request:** `Merge.ticketing.PatchedTicketEndpointRequest` -
client.filestorage.accountToken.retrieve(publicToken) -> Merge.AccountToken +
+
+ +
+
+ +**requestOptions:** `Tickets.RequestOptions` + +
+
+ + + + + +
+ +
client.ticketing.tickets.viewersList(ticketId, { ...params }) -> Merge.PaginatedViewerList
@@ -11214,7 +11147,7 @@ await client.filestorage.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns a list of `Viewer` objects.
@@ -11230,7 +11163,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.filestorage.accountToken.retrieve("public_token"); +await client.ticketing.tickets.viewersList("ticket_id"); ```
@@ -11246,7 +11179,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-**publicToken:** `string` +**ticketId:** `string`
@@ -11254,7 +11187,15 @@ await client.filestorage.accountToken.retrieve("public_token");
-**requestOptions:** `AccountToken.RequestOptions` +**request:** `Merge.ticketing.TicketsViewersListRequest` + +
+
+ +
+
+ +**requestOptions:** `Tickets.RequestOptions`
@@ -11265,9 +11206,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-## Filestorage AsyncPassthrough - -
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.ticketing.tickets.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -11279,7 +11218,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns metadata for `Ticket` PATCHs.
@@ -11295,10 +11234,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.ticketing.tickets.metaPatchRetrieve("id"); ```
@@ -11314,7 +11250,7 @@ await client.filestorage.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -11322,7 +11258,7 @@ await client.filestorage.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Tickets.RequestOptions`
@@ -11333,7 +11269,7 @@ await client.filestorage.asyncPassthrough.create({
-
client.filestorage.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +
client.ticketing.tickets.metaPostRetrieve() -> Merge.MetaResponse
@@ -11345,7 +11281,7 @@ await client.filestorage.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns metadata for `Ticket` POSTs.
@@ -11361,7 +11297,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.ticketing.tickets.metaPostRetrieve(); ```
@@ -11377,15 +11313,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-**asyncPassthroughReceiptId:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Tickets.RequestOptions`
@@ -11396,9 +11324,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-## Filestorage AuditTrail - -
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -11410,7 +11336,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-Gets a list of audit trail events. +Returns a list of `RemoteFieldClass` objects.
@@ -11426,7 +11352,7 @@ Gets a list of audit trail events.
```typescript -await client.filestorage.auditTrail.list(); +await client.ticketing.tickets.remoteFieldClassesList(); ```
@@ -11442,7 +11368,7 @@ await client.filestorage.auditTrail.list();
-**request:** `Merge.filestorage.AuditTrailListRequest` +**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest`
@@ -11450,7 +11376,7 @@ await client.filestorage.auditTrail.list();
-**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Tickets.RequestOptions`
@@ -11461,9 +11387,9 @@ await client.filestorage.auditTrail.list();
-## Filestorage AvailableActions +## Ticketing Users -
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions +
client.ticketing.users.list({ ...params }) -> Merge.PaginatedUserList
@@ -11475,7 +11401,7 @@ await client.filestorage.auditTrail.list();
-Returns a list of models and actions available for an account. +Returns a list of `User` objects.
@@ -11491,7 +11417,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.filestorage.availableActions.retrieve(); +await client.ticketing.users.list(); ```
@@ -11507,7 +11433,15 @@ await client.filestorage.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**request:** `Merge.ticketing.UsersListRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -11518,9 +11452,7 @@ await client.filestorage.availableActions.retrieve();
-## Filestorage Scopes - -
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.ticketing.users.retrieve(id, { ...params }) -> Merge.User
@@ -11532,7 +11464,7 @@ await client.filestorage.availableActions.retrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a `User` object with the given `id`.
@@ -11548,7 +11480,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.filestorage.scopes.defaultScopesRetrieve(); +await client.ticketing.users.retrieve("id"); ```
@@ -11564,7 +11496,23 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.UsersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -11575,7 +11523,9 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Ticketing WebhookReceivers + +
client.ticketing.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -11587,7 +11537,7 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `WebhookReceiver` objects.
@@ -11603,7 +11553,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.filestorage.scopes.linkedAccountScopesRetrieve(); +await client.ticketing.webhookReceivers.list(); ```
@@ -11619,7 +11569,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -11630,7 +11580,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -11642,7 +11592,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Creates a `WebhookReceiver` object with the given values.
@@ -11658,28 +11608,9 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.filestorage.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], +await client.ticketing.webhookReceivers.create({ + event: "event", + isActive: true, }); ``` @@ -11696,7 +11627,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.ticketing.WebhookReceiverRequest`
@@ -11704,7 +11635,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -11715,9 +11646,9 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-## Filestorage DeleteAccount +## Crm AccountDetails -
client.filestorage.deleteAccount.delete() -> void +
client.crm.accountDetails.retrieve() -> Merge.AccountDetails
@@ -11729,7 +11660,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Get details for a linked account.
@@ -11745,7 +11676,7 @@ Delete a linked account.
```typescript -await client.filestorage.deleteAccount.delete(); +await client.crm.accountDetails.retrieve(); ```
@@ -11761,7 +11692,7 @@ await client.filestorage.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**requestOptions:** `AccountDetails.RequestOptions`
@@ -11772,9 +11703,9 @@ await client.filestorage.deleteAccount.delete();
-## Filestorage Drives +## Crm AccountToken -
client.filestorage.drives.list({ ...params }) -> Merge.PaginatedDriveList +
client.crm.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -11786,7 +11717,7 @@ await client.filestorage.deleteAccount.delete();
-Returns a list of `Drive` objects. +Returns the account token for the end user with the provided public token.
@@ -11802,7 +11733,7 @@ Returns a list of `Drive` objects.
```typescript -await client.filestorage.drives.list(); +await client.crm.accountToken.retrieve("public_token"); ```
@@ -11818,7 +11749,7 @@ await client.filestorage.drives.list();
-**request:** `Merge.filestorage.DrivesListRequest` +**publicToken:** `string`
@@ -11826,7 +11757,7 @@ await client.filestorage.drives.list();
-**requestOptions:** `Drives.RequestOptions` +**requestOptions:** `AccountToken.RequestOptions`
@@ -11837,7 +11768,9 @@ await client.filestorage.drives.list();
-
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive +## Crm Accounts + +
client.crm.accounts.list({ ...params }) -> Merge.PaginatedAccountList
@@ -11849,7 +11782,7 @@ await client.filestorage.drives.list();
-Returns a `Drive` object with the given `id`. +Returns a list of `Account` objects.
@@ -11865,7 +11798,7 @@ Returns a `Drive` object with the given `id`.
```typescript -await client.filestorage.drives.retrieve("id"); +await client.crm.accounts.list(); ```
@@ -11881,15 +11814,7 @@ await client.filestorage.drives.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.DrivesRetrieveRequest` +**request:** `Merge.crm.AccountsListRequest`
@@ -11897,7 +11822,7 @@ await client.filestorage.drives.retrieve("id");
-**requestOptions:** `Drives.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -11908,9 +11833,7 @@ await client.filestorage.drives.retrieve("id");
-## Filestorage FieldMapping - -
client.filestorage.fieldMapping.fieldMappingsRetrieve() -> Merge.FieldMappingApiInstanceResponse +
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse
@@ -11922,7 +11845,7 @@ await client.filestorage.drives.retrieve("id");
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Creates an `Account` object with the given values.
@@ -11938,7 +11861,9 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.filestorage.fieldMapping.fieldMappingsRetrieve(); +await client.crm.accounts.create({ + model: {}, +}); ```
@@ -11954,7 +11879,15 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.crm.CrmAccountEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Accounts.RequestOptions`
@@ -11965,7 +11898,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -11977,7 +11910,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns an `Account` object with the given `id`.
@@ -11993,14 +11926,7 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.filestorage.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", -}); +await client.crm.accounts.retrieve("id"); ```
@@ -12016,7 +11942,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.filestorage.CreateFieldMappingRequest` +**id:** `string`
@@ -12024,7 +11950,15 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.crm.AccountsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Accounts.RequestOptions`
@@ -12035,7 +11969,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-
client.filestorage.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse
@@ -12047,7 +11981,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Updates an `Account` object with the given `id`.
@@ -12063,8 +11997,10 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); -``` +await client.crm.accounts.partialUpdate("id", { + model: {}, +}); +```
@@ -12079,7 +12015,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` +**id:** `string`
@@ -12087,7 +12023,15 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Accounts.RequestOptions`
@@ -12098,7 +12042,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -12110,7 +12054,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `CRMAccount` PATCHs.
@@ -12126,7 +12070,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.crm.accounts.metaPatchRetrieve("id"); ```
@@ -12142,15 +12086,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**fieldMappingId:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.PatchedEditFieldMappingRequest` +**id:** `string`
@@ -12158,7 +12094,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -12169,7 +12105,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -12181,7 +12117,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns metadata for `CRMAccount` POSTs.
@@ -12197,7 +12133,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.filestorage.fieldMapping.remoteFieldsRetrieve(); +await client.crm.accounts.metaPostRetrieve(); ```
@@ -12213,15 +12149,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -12232,7 +12160,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -12244,7 +12172,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns a list of `RemoteFieldClass` objects.
@@ -12260,7 +12188,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.filestorage.fieldMapping.targetFieldsRetrieve(); +await client.crm.accounts.remoteFieldClassesList(); ```
@@ -12276,7 +12204,15 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Accounts.RequestOptions`
@@ -12287,9 +12223,9 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-## Filestorage Files +## Crm AsyncPassthrough -
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList +
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -12301,7 +12237,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-Returns a list of `File` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -12317,7 +12253,10 @@ Returns a list of `File` objects.
```typescript -await client.filestorage.files.list(); +await client.crm.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -12333,7 +12272,7 @@ await client.filestorage.files.list();
-**request:** `Merge.filestorage.FilesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -12341,7 +12280,7 @@ await client.filestorage.files.list();
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -12352,7 +12291,7 @@ await client.filestorage.files.list();
-
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse +
client.crm.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -12364,7 +12303,7 @@ await client.filestorage.files.list();
-Creates a `File` object with the given values. +Retrieves data from earlier async-passthrough POST request
@@ -12380,9 +12319,7 @@ Creates a `File` object with the given values.
```typescript -await client.filestorage.files.create({ - model: {}, -}); +await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -12398,7 +12335,7 @@ await client.filestorage.files.create({
-**request:** `Merge.filestorage.FileStorageFileEndpointRequest` +**asyncPassthroughReceiptId:** `string`
@@ -12406,7 +12343,7 @@ await client.filestorage.files.create({
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -12417,7 +12354,9 @@ await client.filestorage.files.create({
-
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_ +## Crm AuditTrail + +
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -12429,7 +12368,7 @@ await client.filestorage.files.create({
-Returns a `File` object with the given `id`. +Gets a list of audit trail events.
@@ -12445,7 +12384,7 @@ Returns a `File` object with the given `id`.
```typescript -await client.filestorage.files.retrieve("id"); +await client.crm.auditTrail.list(); ```
@@ -12461,15 +12400,7 @@ await client.filestorage.files.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FilesRetrieveRequest` +**request:** `Merge.crm.AuditTrailListRequest`
@@ -12477,7 +12408,7 @@ await client.filestorage.files.retrieve("id");
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -12488,7 +12419,9 @@ await client.filestorage.files.retrieve("id");
-
client.filestorage.files.downloadRetrieve(id, { ...params }) -> stream.Readable +## Crm AvailableActions + +
client.crm.availableActions.retrieve() -> Merge.AvailableActions
@@ -12500,7 +12433,7 @@ await client.filestorage.files.retrieve("id");
-Returns the `File` content with the given `id` as a stream of bytes. +Returns a list of models and actions available for an account.
@@ -12516,9 +12449,7 @@ Returns the `File` content with the given `id` as a stream of bytes.
```typescript -await client.filestorage.files.downloadRetrieve("string", { - mimeType: "string", -}); +await client.crm.availableActions.retrieve(); ```
@@ -12534,23 +12465,7 @@ await client.filestorage.files.downloadRetrieve("string", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FilesDownloadRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Files.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -12561,7 +12476,9 @@ await client.filestorage.files.downloadRetrieve("string", {
-
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse +## Crm Contacts + +
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList
@@ -12573,7 +12490,7 @@ await client.filestorage.files.downloadRetrieve("string", {
-Returns metadata for `FileStorageFile` POSTs. +Returns a list of `Contact` objects.
@@ -12589,7 +12506,7 @@ Returns metadata for `FileStorageFile` POSTs.
```typescript -await client.filestorage.files.metaPostRetrieve(); +await client.crm.contacts.list(); ```
@@ -12605,7 +12522,15 @@ await client.filestorage.files.metaPostRetrieve();
-**requestOptions:** `Files.RequestOptions` +**request:** `Merge.crm.ContactsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -12616,9 +12541,7 @@ await client.filestorage.files.metaPostRetrieve();
-## Filestorage Folders - -
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList +
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse
@@ -12630,7 +12553,7 @@ await client.filestorage.files.metaPostRetrieve();
-Returns a list of `Folder` objects. +Creates a `Contact` object with the given values.
@@ -12646,7 +12569,9 @@ Returns a list of `Folder` objects.
```typescript -await client.filestorage.folders.list(); +await client.crm.contacts.create({ + model: {}, +}); ```
@@ -12662,7 +12587,7 @@ await client.filestorage.folders.list();
-**request:** `Merge.filestorage.FoldersListRequest` +**request:** `Merge.crm.CrmContactEndpointRequest`
@@ -12670,7 +12595,7 @@ await client.filestorage.folders.list();
-**requestOptions:** `Folders.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -12681,7 +12606,7 @@ await client.filestorage.folders.list();
-
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse +
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -12693,7 +12618,7 @@ await client.filestorage.folders.list();
-Creates a `Folder` object with the given values. +Returns a `Contact` object with the given `id`.
@@ -12709,9 +12634,7 @@ Creates a `Folder` object with the given values.
```typescript -await client.filestorage.folders.create({ - model: {}, -}); +await client.crm.contacts.retrieve("id"); ```
@@ -12727,7 +12650,7 @@ await client.filestorage.folders.create({
-**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` +**id:** `string`
@@ -12735,7 +12658,15 @@ await client.filestorage.folders.create({
-**requestOptions:** `Folders.RequestOptions` +**request:** `Merge.crm.ContactsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -12746,7 +12677,7 @@ await client.filestorage.folders.create({
-
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder +
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse
@@ -12758,7 +12689,7 @@ await client.filestorage.folders.create({
-Returns a `Folder` object with the given `id`. +Updates a `Contact` object with the given `id`.
@@ -12774,7 +12705,9 @@ Returns a `Folder` object with the given `id`.
```typescript -await client.filestorage.folders.retrieve("id"); +await client.crm.contacts.partialUpdate("id", { + model: {}, +}); ```
@@ -12798,7 +12731,7 @@ await client.filestorage.folders.retrieve("id");
-**request:** `Merge.filestorage.FoldersRetrieveRequest` +**request:** `Merge.crm.PatchedCrmContactEndpointRequest`
@@ -12806,7 +12739,7 @@ await client.filestorage.folders.retrieve("id");
-**requestOptions:** `Folders.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -12817,7 +12750,7 @@ await client.filestorage.folders.retrieve("id");
-
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.contacts.ignoreCreate(modelId, { ...params }) -> void
@@ -12829,7 +12762,7 @@ await client.filestorage.folders.retrieve("id");
-Returns metadata for `FileStorageFolder` POSTs. +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.
@@ -12845,7 +12778,9 @@ Returns metadata for `FileStorageFolder` POSTs.
```typescript -await client.filestorage.folders.metaPostRetrieve(); +await client.crm.contacts.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", +}); ```
@@ -12861,7 +12796,23 @@ await client.filestorage.folders.metaPostRetrieve();
-**requestOptions:** `Folders.RequestOptions` +**modelId:** `string` + +
+
+ +
+
+ +**request:** `Merge.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -12872,9 +12823,7 @@ await client.filestorage.folders.metaPostRetrieve();
-## Filestorage GenerateKey - -
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -12886,7 +12835,7 @@ await client.filestorage.folders.metaPostRetrieve();
-Create a remote key. +Returns metadata for `CRMContact` PATCHs.
@@ -12902,9 +12851,7 @@ Create a remote key.
```typescript -await client.filestorage.generateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.crm.contacts.metaPatchRetrieve("id"); ```
@@ -12920,7 +12867,7 @@ await client.filestorage.generateKey.create({
-**request:** `Merge.filestorage.GenerateRemoteKeyRequest` +**id:** `string`
@@ -12928,7 +12875,7 @@ await client.filestorage.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -12939,9 +12886,7 @@ await client.filestorage.generateKey.create({
-## Filestorage Groups - -
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList +
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -12953,7 +12898,7 @@ await client.filestorage.generateKey.create({
-Returns a list of `Group` objects. +Returns metadata for `CRMContact` POSTs.
@@ -12969,7 +12914,7 @@ Returns a list of `Group` objects.
```typescript -await client.filestorage.groups.list(); +await client.crm.contacts.metaPostRetrieve(); ```
@@ -12985,15 +12930,7 @@ await client.filestorage.groups.list();
-**request:** `Merge.filestorage.GroupsListRequest` - -
-
- -
-
- -**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -13004,7 +12941,7 @@ await client.filestorage.groups.list();
-
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group +
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -13016,7 +12953,7 @@ await client.filestorage.groups.list();
-Returns a `Group` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -13032,7 +12969,7 @@ Returns a `Group` object with the given `id`.
```typescript -await client.filestorage.groups.retrieve("id"); +await client.crm.contacts.remoteFieldClassesList(); ```
@@ -13048,15 +12985,7 @@ await client.filestorage.groups.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.GroupsRetrieveRequest` +**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest`
@@ -13064,7 +12993,7 @@ await client.filestorage.groups.retrieve("id");
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -13075,9 +13004,9 @@ await client.filestorage.groups.retrieve("id");
-## Filestorage Issues +## Crm CustomObjectClasses -
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList
@@ -13089,7 +13018,7 @@ await client.filestorage.groups.retrieve("id");
-Gets all issues for Organization. +Returns a list of `CustomObjectClass` objects.
@@ -13105,7 +13034,7 @@ Gets all issues for Organization.
```typescript -await client.filestorage.issues.list(); +await client.crm.customObjectClasses.list(); ```
@@ -13121,7 +13050,7 @@ await client.filestorage.issues.list();
-**request:** `Merge.filestorage.IssuesListRequest` +**request:** `Merge.crm.CustomObjectClassesListRequest`
@@ -13129,7 +13058,7 @@ await client.filestorage.issues.list();
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `CustomObjectClasses.RequestOptions`
@@ -13140,7 +13069,7 @@ await client.filestorage.issues.list();
-
client.filestorage.issues.retrieve(id) -> Merge.Issue +
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass
@@ -13152,7 +13081,7 @@ await client.filestorage.issues.list();
-Get a specific issue. +Returns a `CustomObjectClass` object with the given `id`.
@@ -13168,7 +13097,7 @@ Get a specific issue.
```typescript -await client.filestorage.issues.retrieve("id"); +await client.crm.customObjectClasses.retrieve("id"); ```
@@ -13192,7 +13121,15 @@ await client.filestorage.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectClasses.RequestOptions`
@@ -13203,9 +13140,9 @@ await client.filestorage.issues.retrieve("id");
-## Filestorage LinkToken +## Crm AssociationTypes -
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken +
client.crm.associationTypes.customObjectClassesAssociationTypesList(customObjectClassId, { ...params }) -> Merge.PaginatedAssociationTypeList
@@ -13217,7 +13154,7 @@ await client.filestorage.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Returns a list of `AssociationType` objects.
@@ -13233,12 +13170,7 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.filestorage.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], -}); +await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id"); ```
@@ -13254,7 +13186,7 @@ await client.filestorage.linkToken.create({
-**request:** `Merge.filestorage.EndUserDetailsRequest` +**customObjectClassId:** `string`
@@ -13262,7 +13194,15 @@ await client.filestorage.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -13273,9 +13213,7 @@ await client.filestorage.linkToken.create({
-## Filestorage LinkedAccounts - -
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(customObjectClassId, { ...params }) -> Merge.CrmAssociationTypeResponse
@@ -13287,7 +13225,7 @@ await client.filestorage.linkToken.create({
-List linked accounts for your organization. +Creates an `AssociationType` object with the given values.
@@ -13303,7 +13241,21 @@ List linked accounts for your organization.
```typescript -await client.filestorage.linkedAccounts.list(); +await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { + model: { + sourceObjectClass: { + id: "id", + originType: "CUSTOM_OBJECT", + }, + targetObjectClasses: [ + { + id: "id", + originType: "CUSTOM_OBJECT", + }, + ], + remoteKeyName: "remote_key_name", + }, +}); ```
@@ -13319,7 +13271,7 @@ await client.filestorage.linkedAccounts.list();
-**request:** `Merge.filestorage.LinkedAccountsListRequest` +**customObjectClassId:** `string`
@@ -13327,7 +13279,15 @@ await client.filestorage.linkedAccounts.list();
-**requestOptions:** `LinkedAccounts.RequestOptions` +**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -13338,9 +13298,7 @@ await client.filestorage.linkedAccounts.list();
-## Filestorage Passthrough - -
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(customObjectClassId, id, { ...params }) -> Merge.AssociationType
@@ -13352,7 +13310,7 @@ await client.filestorage.linkedAccounts.list();
-Pull data from an endpoint not currently supported by Merge. +Returns an `AssociationType` object with the given `id`.
@@ -13368,10 +13326,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.passthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id"); ```
@@ -13387,74 +13342,23 @@ await client.filestorage.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `Passthrough.RequestOptions` - -
-
- -
- - - -
- -## Filestorage RegenerateKey - -
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Exchange remote keys. +**customObjectClassId:** `string` -
-
-#### 🔌 Usage - -
-
-
-```typescript -await client.filestorage.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); -``` +**id:** `string` -
-
-#### ⚙️ Parameters -
-
-
- -**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest`
@@ -13462,7 +13366,7 @@ await client.filestorage.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -13473,9 +13377,7 @@ await client.filestorage.regenerateKey.create({
-## Filestorage SyncStatus - -
client.filestorage.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse
@@ -13487,7 +13389,7 @@ await client.filestorage.regenerateKey.create({
-Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns metadata for `CRMAssociationType` POSTs.
@@ -13503,7 +13405,7 @@ Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SY
```typescript -await client.filestorage.syncStatus.list(); +await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); ```
@@ -13519,7 +13421,7 @@ await client.filestorage.syncStatus.list();
-**request:** `Merge.filestorage.SyncStatusListRequest` +**customObjectClassId:** `string`
@@ -13527,7 +13429,7 @@ await client.filestorage.syncStatus.list();
-**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -13538,9 +13440,9 @@ await client.filestorage.syncStatus.list();
-## Filestorage ForceResync +## Crm CustomObjects -
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.crm.customObjects.customObjectClassesCustomObjectsList(customObjectClassId, { ...params }) -> Merge.PaginatedCustomObjectList
@@ -13552,7 +13454,7 @@ await client.filestorage.syncStatus.list();
-Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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. +Returns a list of `CustomObject` objects.
@@ -13568,7 +13470,7 @@ Force re-sync of all models. This is available for all organizations via the das
```typescript -await client.filestorage.forceResync.syncStatusResyncCreate(); +await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id"); ```
@@ -13584,20 +13486,34 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**customObjectClassId:** `string`
+ +
+
+ +**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` +
+
+
+ +**requestOptions:** `CustomObjects.RequestOptions` + +
+
-
-## Filestorage Users + + +
-
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList +
client.crm.customObjects.customObjectClassesCustomObjectsCreate(customObjectClassId, { ...params }) -> Merge.CrmCustomObjectResponse
@@ -13609,7 +13525,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-Returns a list of `User` objects. +Creates a `CustomObject` object with the given values.
@@ -13625,7 +13541,13 @@ Returns a list of `User` objects.
```typescript -await client.filestorage.users.list(); +await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { + model: { + fields: { + test_field: "hello", + }, + }, +}); ```
@@ -13641,7 +13563,7 @@ await client.filestorage.users.list();
-**request:** `Merge.filestorage.UsersListRequest` +**customObjectClassId:** `string`
@@ -13649,7 +13571,15 @@ await client.filestorage.users.list();
-**requestOptions:** `Users.RequestOptions` +**request:** `Merge.crm.CrmCustomObjectEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjects.RequestOptions`
@@ -13660,7 +13590,7 @@ await client.filestorage.users.list();
-
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User +
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(customObjectClassId, id, { ...params }) -> Merge.CustomObject
@@ -13672,7 +13602,7 @@ await client.filestorage.users.list();
-Returns a `User` object with the given `id`. +Returns a `CustomObject` object with the given `id`.
@@ -13688,7 +13618,7 @@ Returns a `User` object with the given `id`.
```typescript -await client.filestorage.users.retrieve("id"); +await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id"); ```
@@ -13704,6 +13634,14 @@ await client.filestorage.users.retrieve("id");
+**customObjectClassId:** `string` + +
+
+ +
+
+ **id:** `string`
@@ -13712,7 +13650,7 @@ await client.filestorage.users.retrieve("id");
-**request:** `Merge.filestorage.UsersRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest`
@@ -13720,7 +13658,7 @@ await client.filestorage.users.retrieve("id");
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `CustomObjects.RequestOptions`
@@ -13731,9 +13669,7 @@ await client.filestorage.users.retrieve("id");
-## Filestorage WebhookReceivers - -
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse
@@ -13745,7 +13681,7 @@ await client.filestorage.users.retrieve("id");
-Returns a list of `WebhookReceiver` objects. +Returns metadata for `CRMCustomObject` POSTs.
@@ -13761,7 +13697,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.filestorage.webhookReceivers.list(); +await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); ```
@@ -13777,7 +13713,15 @@ await client.filestorage.webhookReceivers.list();
-**requestOptions:** `WebhookReceivers.RequestOptions` +**customObjectClassId:** `string` + +
+
+ +
+
+ +**requestOptions:** `CustomObjects.RequestOptions`
@@ -13788,7 +13732,7 @@ await client.filestorage.webhookReceivers.list();
-
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -13800,7 +13744,7 @@ await client.filestorage.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns a list of `RemoteFieldClass` objects.
@@ -13816,10 +13760,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.filestorage.webhookReceivers.create({ - event: "event", - isActive: true, -}); +await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList(); ```
@@ -13835,7 +13776,7 @@ await client.filestorage.webhookReceivers.create({
-**request:** `Merge.filestorage.WebhookReceiverRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest`
@@ -13843,7 +13784,7 @@ await client.filestorage.webhookReceivers.create({
-**requestOptions:** `WebhookReceivers.RequestOptions` +**requestOptions:** `CustomObjects.RequestOptions`
@@ -13854,9 +13795,9 @@ await client.filestorage.webhookReceivers.create({
-## Hris AccountDetails +## Crm Associations -
client.hris.accountDetails.retrieve() -> Merge.AccountDetails +
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(customObjectClassId, objectId, { ...params }) -> Merge.PaginatedAssociationList
@@ -13868,7 +13809,7 @@ await client.filestorage.webhookReceivers.create({
-Get details for a linked account. +Returns a list of `Association` objects.
@@ -13884,7 +13825,7 @@ Get details for a linked account.
```typescript -await client.hris.accountDetails.retrieve(); +await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id"); ```
@@ -13900,64 +13841,23 @@ await client.hris.accountDetails.retrieve();
-**requestOptions:** `AccountDetails.RequestOptions` - -
-
- -
- - - -
- -## Hris AccountToken - -
client.hris.accountToken.retrieve(publicToken) -> Merge.AccountToken -
-
- -#### 📝 Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. +**customObjectClassId:** `string`
-
-
- -#### 🔌 Usage
-
-
- -```typescript -await client.hris.accountToken.retrieve("public_token"); -``` +**objectId:** `string`
-
-
- -#### ⚙️ Parameters
-
-
- -**publicToken:** `string` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest`
@@ -13965,7 +13865,7 @@ await client.hris.accountToken.retrieve("public_token");
-**requestOptions:** `AccountToken.RequestOptions` +**requestOptions:** `Associations.RequestOptions`
@@ -13976,9 +13876,7 @@ await client.hris.accountToken.retrieve("public_token");
-## Hris AsyncPassthrough - -
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(associationTypeId, sourceClassId, sourceObjectId, targetClassId, targetObjectId, { ...params }) -> Merge.Association
@@ -13990,7 +13888,7 @@ await client.hris.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`.
@@ -14006,10 +13904,13 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate( + "association_type_id", + "source_class_id", + "source_object_id", + "target_class_id", + "target_object_id" +); ```
@@ -14025,7 +13926,7 @@ await client.hris.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**associationTypeId:** `string`
@@ -14033,62 +13934,39 @@ await client.hris.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` - -
-
- -
+**sourceClassId:** `string` -
-
client.hris.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
-#### 📝 Description +**sourceObjectId:** `string` -
-
+
+
-Retrieves data from earlier async-passthrough POST request +**targetClassId:** `string`
-
-
- -#### 🔌 Usage - -
-
-```typescript -await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); -``` +**targetObjectId:** `string`
-
-
- -#### ⚙️ Parameters
-
-
- -**asyncPassthroughReceiptId:** `string` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest`
@@ -14096,7 +13974,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Associations.RequestOptions`
@@ -14107,9 +13985,9 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Hris AuditTrail +## Crm Scopes -
client.hris.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -14121,7 +13999,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +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).
@@ -14137,7 +14015,7 @@ Gets a list of audit trail events.
```typescript -await client.hris.auditTrail.list(); +await client.crm.scopes.defaultScopesRetrieve(); ```
@@ -14153,15 +14031,7 @@ await client.hris.auditTrail.list();
-**request:** `Merge.hris.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -14172,9 +14042,7 @@ await client.hris.auditTrail.list();
-## Hris AvailableActions - -
client.hris.availableActions.retrieve() -> Merge.AvailableActions +
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -14186,7 +14054,7 @@ await client.hris.auditTrail.list();
-Returns a list of models and actions available for an account. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -14202,7 +14070,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.hris.availableActions.retrieve(); +await client.crm.scopes.linkedAccountScopesRetrieve(); ```
@@ -14218,7 +14086,7 @@ await client.hris.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -14227,11 +14095,9 @@ await client.hris.availableActions.retrieve();
-
- -## Hris BankInfo +
-
client.hris.bankInfo.list({ ...params }) -> Merge.PaginatedBankInfoList +
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -14243,7 +14109,7 @@ await client.hris.availableActions.retrieve();
-Returns a list of `BankInfo` objects. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -14259,7 +14125,33 @@ Returns a list of `BankInfo` objects.
```typescript -await client.hris.bankInfo.list(); +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, + }, + }, + }, + ], +}); ```
@@ -14275,7 +14167,7 @@ await client.hris.bankInfo.list();
-**request:** `Merge.hris.BankInfoListRequest` +**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -14283,7 +14175,7 @@ await client.hris.bankInfo.list();
-**requestOptions:** `BankInfo.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -14294,7 +14186,9 @@ await client.hris.bankInfo.list();
-
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo +## Crm DeleteAccount + +
client.crm.deleteAccount.delete() -> void
@@ -14306,7 +14200,7 @@ await client.hris.bankInfo.list();
-Returns a `BankInfo` object with the given `id`. +Delete a linked account.
@@ -14322,7 +14216,7 @@ Returns a `BankInfo` object with the given `id`.
```typescript -await client.hris.bankInfo.retrieve("id"); +await client.crm.deleteAccount.delete(); ```
@@ -14338,23 +14232,7 @@ await client.hris.bankInfo.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.BankInfoRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `BankInfo.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -14365,9 +14243,9 @@ await client.hris.bankInfo.retrieve("id");
-## Hris Benefits +## Crm EngagementTypes -
client.hris.benefits.list({ ...params }) -> Merge.PaginatedBenefitList +
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList
@@ -14379,7 +14257,7 @@ await client.hris.bankInfo.retrieve("id");
-Returns a list of `Benefit` objects. +Returns a list of `EngagementType` objects.
@@ -14395,7 +14273,7 @@ Returns a list of `Benefit` objects.
```typescript -await client.hris.benefits.list(); +await client.crm.engagementTypes.list(); ```
@@ -14411,7 +14289,7 @@ await client.hris.benefits.list();
-**request:** `Merge.hris.BenefitsListRequest` +**request:** `Merge.crm.EngagementTypesListRequest`
@@ -14419,7 +14297,7 @@ await client.hris.benefits.list();
-**requestOptions:** `Benefits.RequestOptions` +**requestOptions:** `EngagementTypes.RequestOptions`
@@ -14430,7 +14308,7 @@ await client.hris.benefits.list();
-
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit +
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType
@@ -14442,7 +14320,7 @@ await client.hris.benefits.list();
-Returns a `Benefit` object with the given `id`. +Returns an `EngagementType` object with the given `id`.
@@ -14458,7 +14336,7 @@ Returns a `Benefit` object with the given `id`.
```typescript -await client.hris.benefits.retrieve("id"); +await client.crm.engagementTypes.retrieve("id"); ```
@@ -14482,7 +14360,7 @@ await client.hris.benefits.retrieve("id");
-**request:** `Merge.hris.BenefitsRetrieveRequest` +**request:** `Merge.crm.EngagementTypesRetrieveRequest`
@@ -14490,7 +14368,7 @@ await client.hris.benefits.retrieve("id");
-**requestOptions:** `Benefits.RequestOptions` +**requestOptions:** `EngagementTypes.RequestOptions`
@@ -14501,9 +14379,7 @@ await client.hris.benefits.retrieve("id");
-## Hris Companies - -
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList +
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -14515,7 +14391,7 @@ await client.hris.benefits.retrieve("id");
-Returns a list of `Company` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -14531,7 +14407,7 @@ Returns a list of `Company` objects.
```typescript -await client.hris.companies.list(); +await client.crm.engagementTypes.remoteFieldClassesList(); ```
@@ -14547,7 +14423,7 @@ await client.hris.companies.list();
-**request:** `Merge.hris.CompaniesListRequest` +**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest`
@@ -14555,7 +14431,7 @@ await client.hris.companies.list();
-**requestOptions:** `Companies.RequestOptions` +**requestOptions:** `EngagementTypes.RequestOptions`
@@ -14566,7 +14442,9 @@ await client.hris.companies.list();
-
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company +## Crm Engagements + +
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList
@@ -14578,7 +14456,7 @@ await client.hris.companies.list();
-Returns a `Company` object with the given `id`. +Returns a list of `Engagement` objects.
@@ -14594,7 +14472,7 @@ Returns a `Company` object with the given `id`.
```typescript -await client.hris.companies.retrieve("id"); +await client.crm.engagements.list(); ```
@@ -14610,15 +14488,7 @@ await client.hris.companies.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.CompaniesRetrieveRequest` +**request:** `Merge.crm.EngagementsListRequest`
@@ -14626,7 +14496,7 @@ await client.hris.companies.retrieve("id");
-**requestOptions:** `Companies.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -14637,9 +14507,7 @@ await client.hris.companies.retrieve("id");
-## Hris Scopes - -
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse
@@ -14651,7 +14519,7 @@ await client.hris.companies.retrieve("id");
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Creates an `Engagement` object with the given values.
@@ -14667,7 +14535,9 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.hris.scopes.defaultScopesRetrieve(); +await client.crm.engagements.create({ + model: {}, +}); ```
@@ -14683,7 +14553,15 @@ await client.hris.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.crm.EngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -14694,7 +14572,7 @@ await client.hris.scopes.defaultScopesRetrieve();
-
client.hris.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement
@@ -14706,7 +14584,7 @@ await client.hris.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns an `Engagement` object with the given `id`.
@@ -14722,7 +14600,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.hris.scopes.linkedAccountScopesRetrieve(); +await client.crm.engagements.retrieve("id"); ```
@@ -14738,7 +14616,23 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.EngagementsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -14749,7 +14643,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse
@@ -14761,7 +14655,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Updates an `Engagement` object with the given `id`.
@@ -14777,28 +14671,8 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.hris.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], +await client.crm.engagements.partialUpdate("id", { + model: {}, }); ``` @@ -14815,7 +14689,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest` +**id:** `string`
@@ -14823,7 +14697,15 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.crm.PatchedEngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -14834,9 +14716,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-## Hris DeleteAccount - -
client.hris.deleteAccount.delete() -> void +
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -14848,7 +14728,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns metadata for `Engagement` PATCHs.
@@ -14864,7 +14744,7 @@ Delete a linked account.
```typescript -await client.hris.deleteAccount.delete(); +await client.crm.engagements.metaPatchRetrieve("id"); ```
@@ -14880,7 +14760,15 @@ await client.hris.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -14891,9 +14779,7 @@ await client.hris.deleteAccount.delete();
-## Hris Dependents - -
client.hris.dependents.list({ ...params }) -> Merge.PaginatedDependentList +
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse
@@ -14905,7 +14791,7 @@ await client.hris.deleteAccount.delete();
-Returns a list of `Dependent` objects. +Returns metadata for `Engagement` POSTs.
@@ -14921,7 +14807,7 @@ Returns a list of `Dependent` objects.
```typescript -await client.hris.dependents.list(); +await client.crm.engagements.metaPostRetrieve(); ```
@@ -14937,15 +14823,7 @@ await client.hris.dependents.list();
-**request:** `Merge.hris.DependentsListRequest` - -
-
- -
-
- -**requestOptions:** `Dependents.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -14956,7 +14834,7 @@ await client.hris.dependents.list();
-
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent +
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -14968,7 +14846,7 @@ await client.hris.dependents.list();
-Returns a `Dependent` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -14984,7 +14862,7 @@ Returns a `Dependent` object with the given `id`.
```typescript -await client.hris.dependents.retrieve("id"); +await client.crm.engagements.remoteFieldClassesList(); ```
@@ -15000,15 +14878,7 @@ await client.hris.dependents.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.DependentsRetrieveRequest` +**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest`
@@ -15016,7 +14886,7 @@ await client.hris.dependents.retrieve("id");
-**requestOptions:** `Dependents.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -15027,9 +14897,9 @@ await client.hris.dependents.retrieve("id");
-## Hris EmployeePayrollRuns +## Crm FieldMapping -
client.hris.employeePayrollRuns.list({ ...params }) -> Merge.PaginatedEmployeePayrollRunList +
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -15041,7 +14911,7 @@ await client.hris.dependents.retrieve("id");
-Returns a list of `EmployeePayrollRun` 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/).
@@ -15057,7 +14927,7 @@ Returns a list of `EmployeePayrollRun` objects.
```typescript -await client.hris.employeePayrollRuns.list(); +await client.crm.fieldMapping.fieldMappingsRetrieve(); ```
@@ -15073,7 +14943,7 @@ await client.hris.employeePayrollRuns.list();
-**request:** `Merge.hris.EmployeePayrollRunsListRequest` +**request:** `Merge.crm.FieldMappingsRetrieveRequest`
@@ -15081,7 +14951,7 @@ await client.hris.employeePayrollRuns.list();
-**requestOptions:** `EmployeePayrollRuns.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15092,7 +14962,7 @@ await client.hris.employeePayrollRuns.list();
-
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun +
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -15104,7 +14974,7 @@ await client.hris.employeePayrollRuns.list();
-Returns an `EmployeePayrollRun` object with the given `id`. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -15120,7 +14990,14 @@ Returns an `EmployeePayrollRun` object with the given `id`.
```typescript -await client.hris.employeePayrollRuns.retrieve("id"); +await client.crm.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", +}); ```
@@ -15136,15 +15013,7 @@ await client.hris.employeePayrollRuns.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` +**request:** `Merge.crm.CreateFieldMappingRequest`
@@ -15152,7 +15021,7 @@ await client.hris.employeePayrollRuns.retrieve("id");
-**requestOptions:** `EmployeePayrollRuns.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15163,9 +15032,7 @@ await client.hris.employeePayrollRuns.retrieve("id");
-## Hris Employees - -
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList +
client.crm.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -15177,7 +15044,7 @@ await client.hris.employeePayrollRuns.retrieve("id");
-Returns a list of `Employee` objects. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -15193,7 +15060,7 @@ Returns a list of `Employee` objects.
```typescript -await client.hris.employees.list(); +await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -15209,7 +15076,7 @@ await client.hris.employees.list();
-**request:** `Merge.hris.EmployeesListRequest` +**fieldMappingId:** `string`
@@ -15217,7 +15084,7 @@ await client.hris.employees.list();
-**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15228,7 +15095,7 @@ await client.hris.employees.list();
-
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse +
client.crm.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -15240,7 +15107,7 @@ await client.hris.employees.list();
-Creates an `Employee` object with the given values. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -15256,9 +15123,7 @@ Creates an `Employee` object with the given values.
```typescript -await client.hris.employees.create({ - model: {}, -}); +await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -15274,7 +15139,7 @@ await client.hris.employees.create({
-**request:** `Merge.hris.EmployeeEndpointRequest` +**fieldMappingId:** `string`
@@ -15282,7 +15147,15 @@ await client.hris.employees.create({
-**requestOptions:** `Employees.RequestOptions` +**request:** `Merge.crm.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15293,7 +15166,7 @@ await client.hris.employees.create({
-
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee +
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -15305,7 +15178,7 @@ await client.hris.employees.create({
-Returns an `Employee` object with the given `id`. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -15321,7 +15194,7 @@ Returns an `Employee` object with the given `id`.
```typescript -await client.hris.employees.retrieve("id"); +await client.crm.fieldMapping.remoteFieldsRetrieve(); ```
@@ -15337,15 +15210,7 @@ await client.hris.employees.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployeesRetrieveRequest` +**request:** `Merge.crm.RemoteFieldsRetrieveRequest`
@@ -15353,7 +15218,7 @@ await client.hris.employees.retrieve("id");
-**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15364,7 +15229,7 @@ await client.hris.employees.retrieve("id");
-
client.hris.employees.ignoreCreate(modelId, { ...params }) -> void +
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -15376,7 +15241,7 @@ await client.hris.employees.retrieve("id");
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Get 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/).
@@ -15392,9 +15257,7 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.hris.employees.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", -}); +await client.crm.fieldMapping.targetFieldsRetrieve(); ```
@@ -15410,23 +15273,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**modelId:** `string` - -
-
- -
-
- -**request:** `Merge.hris.IgnoreCommonModelRequest` - -
-
- -
-
- -**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15437,7 +15284,9 @@ await client.hris.employees.ignoreCreate("model_id", {
-
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse +## Crm GenerateKey + +
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -15449,7 +15298,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-Returns metadata for `Employee` POSTs. +Create a remote key.
@@ -15465,7 +15314,9 @@ Returns metadata for `Employee` POSTs.
```typescript -await client.hris.employees.metaPostRetrieve(); +await client.crm.generateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -15481,7 +15332,15 @@ await client.hris.employees.metaPostRetrieve();
-**requestOptions:** `Employees.RequestOptions` +**request:** `Merge.crm.GenerateRemoteKeyRequest` + +
+
+ +
+
+ +**requestOptions:** `GenerateKey.RequestOptions`
@@ -15492,9 +15351,9 @@ await client.hris.employees.metaPostRetrieve();
-## Hris EmployerBenefits +## Crm Issues -
client.hris.employerBenefits.list({ ...params }) -> Merge.PaginatedEmployerBenefitList +
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -15506,7 +15365,7 @@ await client.hris.employees.metaPostRetrieve();
-Returns a list of `EmployerBenefit` objects. +Gets all issues for Organization.
@@ -15522,7 +15381,7 @@ Returns a list of `EmployerBenefit` objects.
```typescript -await client.hris.employerBenefits.list(); +await client.crm.issues.list(); ```
@@ -15538,7 +15397,7 @@ await client.hris.employerBenefits.list();
-**request:** `Merge.hris.EmployerBenefitsListRequest` +**request:** `Merge.crm.IssuesListRequest`
@@ -15546,7 +15405,7 @@ await client.hris.employerBenefits.list();
-**requestOptions:** `EmployerBenefits.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -15557,7 +15416,7 @@ await client.hris.employerBenefits.list();
-
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit +
client.crm.issues.retrieve(id) -> Merge.Issue
@@ -15569,7 +15428,7 @@ await client.hris.employerBenefits.list();
-Returns an `EmployerBenefit` object with the given `id`. +Get a specific issue.
@@ -15585,7 +15444,7 @@ Returns an `EmployerBenefit` object with the given `id`.
```typescript -await client.hris.employerBenefits.retrieve("id"); +await client.crm.issues.retrieve("id"); ```
@@ -15609,15 +15468,7 @@ await client.hris.employerBenefits.retrieve("id");
-**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployerBenefits.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -15628,9 +15479,9 @@ await client.hris.employerBenefits.retrieve("id");
-## Hris Employments +## Crm Leads -
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList +
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList
@@ -15642,7 +15493,7 @@ await client.hris.employerBenefits.retrieve("id");
-Returns a list of `Employment` objects. +Returns a list of `Lead` objects.
@@ -15658,7 +15509,7 @@ Returns a list of `Employment` objects.
```typescript -await client.hris.employments.list(); +await client.crm.leads.list(); ```
@@ -15674,7 +15525,7 @@ await client.hris.employments.list();
-**request:** `Merge.hris.EmploymentsListRequest` +**request:** `Merge.crm.LeadsListRequest`
@@ -15682,7 +15533,7 @@ await client.hris.employments.list();
-**requestOptions:** `Employments.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -15693,7 +15544,7 @@ await client.hris.employments.list();
-
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment +
client.crm.leads.create({ ...params }) -> Merge.LeadResponse
@@ -15705,7 +15556,7 @@ await client.hris.employments.list();
-Returns an `Employment` object with the given `id`. +Creates a `Lead` object with the given values.
@@ -15721,7 +15572,9 @@ Returns an `Employment` object with the given `id`.
```typescript -await client.hris.employments.retrieve("id"); +await client.crm.leads.create({ + model: {}, +}); ```
@@ -15737,15 +15590,7 @@ await client.hris.employments.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmploymentsRetrieveRequest` +**request:** `Merge.crm.LeadEndpointRequest`
@@ -15753,7 +15598,7 @@ await client.hris.employments.retrieve("id");
-**requestOptions:** `Employments.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -15764,9 +15609,7 @@ await client.hris.employments.retrieve("id");
-## Hris FieldMapping - -
client.hris.fieldMapping.fieldMappingsRetrieve() -> Merge.FieldMappingApiInstanceResponse +
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead
@@ -15778,7 +15621,7 @@ await client.hris.employments.retrieve("id");
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a `Lead` object with the given `id`.
@@ -15794,7 +15637,7 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.hris.fieldMapping.fieldMappingsRetrieve(); +await client.crm.leads.retrieve("id"); ```
@@ -15810,7 +15653,23 @@ await client.hris.fieldMapping.fieldMappingsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.LeadsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Leads.RequestOptions`
@@ -15821,7 +15680,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve();
-
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse
@@ -15833,7 +15692,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve();
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `Lead` POSTs.
@@ -15849,14 +15708,7 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.hris.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", -}); +await client.crm.leads.metaPostRetrieve(); ```
@@ -15872,15 +15724,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.hris.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -15891,7 +15735,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-
client.hris.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -15903,7 +15747,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `RemoteFieldClass` objects.
@@ -15919,7 +15763,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.crm.leads.remoteFieldClassesList(); ```
@@ -15935,7 +15779,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` +**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest`
@@ -15943,7 +15787,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -15954,7 +15798,9 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.hris.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +## Crm LinkToken + +
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -15966,7 +15812,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Creates a link token to be used when linking a new end user.
@@ -15982,7 +15828,12 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.crm.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], +}); ```
@@ -15998,15 +15849,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**fieldMappingId:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PatchedEditFieldMappingRequest` +**request:** `Merge.crm.EndUserDetailsRequest`
@@ -16014,7 +15857,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -16025,7 +15868,9 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +## Crm LinkedAccounts + +
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -16037,7 +15882,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +List linked accounts for your organization.
@@ -16053,7 +15898,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.hris.fieldMapping.remoteFieldsRetrieve(); +await client.crm.linkedAccounts.list(); ```
@@ -16069,7 +15914,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.hris.RemoteFieldsRetrieveRequest` +**request:** `Merge.crm.LinkedAccountsListRequest`
@@ -16077,7 +15922,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -16088,7 +15933,9 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Crm Notes + +
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList
@@ -16100,7 +15947,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns a list of `Note` objects.
@@ -16116,7 +15963,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.hris.fieldMapping.targetFieldsRetrieve(); +await client.crm.notes.list(); ```
@@ -16132,7 +15979,15 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.crm.NotesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Notes.RequestOptions`
@@ -16143,9 +15998,7 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-## Hris GenerateKey - -
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.notes.create({ ...params }) -> Merge.NoteResponse
@@ -16157,7 +16010,7 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Creates a `Note` object with the given values.
@@ -16173,8 +16026,8 @@ Create a remote key.
```typescript -await client.hris.generateKey.create({ - name: "Remote Deployment Key 1", +await client.crm.notes.create({ + model: {}, }); ``` @@ -16191,7 +16044,7 @@ await client.hris.generateKey.create({
-**request:** `Merge.hris.GenerateRemoteKeyRequest` +**request:** `Merge.crm.NoteEndpointRequest`
@@ -16199,7 +16052,7 @@ await client.hris.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `Notes.RequestOptions`
@@ -16210,9 +16063,7 @@ await client.hris.generateKey.create({
-## Hris Groups - -
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList +
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note
@@ -16224,7 +16075,7 @@ await client.hris.generateKey.create({
-Returns a list of `Group` objects. +Returns a `Note` object with the given `id`.
@@ -16240,7 +16091,7 @@ Returns a list of `Group` objects.
```typescript -await client.hris.groups.list(); +await client.crm.notes.retrieve("id"); ```
@@ -16256,7 +16107,7 @@ await client.hris.groups.list();
-**request:** `Merge.hris.GroupsListRequest` +**id:** `string`
@@ -16264,7 +16115,15 @@ await client.hris.groups.list();
-**requestOptions:** `Groups.RequestOptions` +**request:** `Merge.crm.NotesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Notes.RequestOptions`
@@ -16275,7 +16134,7 @@ await client.hris.groups.list();
-
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group +
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse
@@ -16287,7 +16146,7 @@ await client.hris.groups.list();
-Returns a `Group` object with the given `id`. +Returns metadata for `Note` POSTs.
@@ -16303,7 +16162,7 @@ Returns a `Group` object with the given `id`.
```typescript -await client.hris.groups.retrieve("id"); +await client.crm.notes.metaPostRetrieve(); ```
@@ -16319,23 +16178,7 @@ await client.hris.groups.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.GroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Notes.RequestOptions`
@@ -16346,9 +16189,7 @@ await client.hris.groups.retrieve("id");
-## Hris Issues - -
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -16360,7 +16201,7 @@ await client.hris.groups.retrieve("id");
-Gets all issues for Organization. +Returns a list of `RemoteFieldClass` objects.
@@ -16376,7 +16217,7 @@ Gets all issues for Organization.
```typescript -await client.hris.issues.list(); +await client.crm.notes.remoteFieldClassesList(); ```
@@ -16392,7 +16233,7 @@ await client.hris.issues.list();
-**request:** `Merge.hris.IssuesListRequest` +**request:** `Merge.crm.NotesRemoteFieldClassesListRequest`
@@ -16400,7 +16241,7 @@ await client.hris.issues.list();
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Notes.RequestOptions`
@@ -16411,7 +16252,9 @@ await client.hris.issues.list();
-
client.hris.issues.retrieve(id) -> Merge.Issue +## Crm Opportunities + +
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList
@@ -16423,7 +16266,7 @@ await client.hris.issues.list();
-Get a specific issue. +Returns a list of `Opportunity` objects.
@@ -16439,7 +16282,7 @@ Get a specific issue.
```typescript -await client.hris.issues.retrieve("id"); +await client.crm.opportunities.list(); ```
@@ -16455,7 +16298,7 @@ await client.hris.issues.retrieve("id");
-**id:** `string` +**request:** `Merge.crm.OpportunitiesListRequest`
@@ -16463,7 +16306,7 @@ await client.hris.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -16474,9 +16317,7 @@ await client.hris.issues.retrieve("id");
-## Hris LinkToken - -
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken +
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse
@@ -16488,7 +16329,7 @@ await client.hris.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Creates an `Opportunity` object with the given values.
@@ -16504,11 +16345,8 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.hris.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], +await client.crm.opportunities.create({ + model: {}, }); ``` @@ -16525,7 +16363,7 @@ await client.hris.linkToken.create({
-**request:** `Merge.hris.EndUserDetailsRequest` +**request:** `Merge.crm.OpportunityEndpointRequest`
@@ -16533,7 +16371,7 @@ await client.hris.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -16544,9 +16382,7 @@ await client.hris.linkToken.create({
-## Hris LinkedAccounts - -
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity
@@ -16558,7 +16394,7 @@ await client.hris.linkToken.create({
-List linked accounts for your organization. +Returns an `Opportunity` object with the given `id`.
@@ -16574,7 +16410,7 @@ List linked accounts for your organization.
```typescript -await client.hris.linkedAccounts.list(); +await client.crm.opportunities.retrieve("id"); ```
@@ -16590,7 +16426,7 @@ await client.hris.linkedAccounts.list();
-**request:** `Merge.hris.LinkedAccountsListRequest` +**id:** `string`
@@ -16598,7 +16434,15 @@ await client.hris.linkedAccounts.list();
-**requestOptions:** `LinkedAccounts.RequestOptions` +**request:** `Merge.crm.OpportunitiesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Opportunities.RequestOptions`
@@ -16609,9 +16453,7 @@ await client.hris.linkedAccounts.list();
-## Hris Locations - -
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList +
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse
@@ -16623,7 +16465,7 @@ await client.hris.linkedAccounts.list();
-Returns a list of `Location` objects. +Updates an `Opportunity` object with the given `id`.
@@ -16639,7 +16481,9 @@ Returns a list of `Location` objects.
```typescript -await client.hris.locations.list(); +await client.crm.opportunities.partialUpdate("id", { + model: {}, +}); ```
@@ -16655,7 +16499,7 @@ await client.hris.locations.list();
-**request:** `Merge.hris.LocationsListRequest` +**id:** `string`
@@ -16663,7 +16507,15 @@ await client.hris.locations.list();
-**requestOptions:** `Locations.RequestOptions` +**request:** `Merge.crm.PatchedOpportunityEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Opportunities.RequestOptions`
@@ -16674,7 +16526,7 @@ await client.hris.locations.list();
-
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location +
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -16686,7 +16538,7 @@ await client.hris.locations.list();
-Returns a `Location` object with the given `id`. +Returns metadata for `Opportunity` PATCHs.
@@ -16702,7 +16554,7 @@ Returns a `Location` object with the given `id`.
```typescript -await client.hris.locations.retrieve("id"); +await client.crm.opportunities.metaPatchRetrieve("id"); ```
@@ -16726,15 +16578,7 @@ await client.hris.locations.retrieve("id");
-**request:** `Merge.hris.LocationsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Locations.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -16745,9 +16589,7 @@ await client.hris.locations.retrieve("id");
-## Hris Passthrough - -
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse
@@ -16759,7 +16601,7 @@ await client.hris.locations.retrieve("id");
-Pull data from an endpoint not currently supported by Merge. +Returns metadata for `Opportunity` POSTs.
@@ -16775,10 +16617,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.passthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.crm.opportunities.metaPostRetrieve(); ```
@@ -16794,15 +16633,7 @@ await client.hris.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -16813,9 +16644,7 @@ await client.hris.passthrough.create({
-## Hris PayGroups - -
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList +
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -16827,7 +16656,7 @@ await client.hris.passthrough.create({
-Returns a list of `PayGroup` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -16843,7 +16672,7 @@ Returns a list of `PayGroup` objects.
```typescript -await client.hris.payGroups.list(); +await client.crm.opportunities.remoteFieldClassesList(); ```
@@ -16859,7 +16688,7 @@ await client.hris.payGroups.list();
-**request:** `Merge.hris.PayGroupsListRequest` +**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest`
@@ -16867,7 +16696,7 @@ await client.hris.payGroups.list();
-**requestOptions:** `PayGroups.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -16878,7 +16707,9 @@ await client.hris.payGroups.list();
-
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup +## Crm Passthrough + +
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -16890,7 +16721,7 @@ await client.hris.payGroups.list();
-Returns a `PayGroup` object with the given `id`. +Pull data from an endpoint not currently supported by Merge.
@@ -16906,7 +16737,10 @@ Returns a `PayGroup` object with the given `id`.
```typescript -await client.hris.payGroups.retrieve("id"); +await client.crm.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -16922,15 +16756,7 @@ await client.hris.payGroups.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PayGroupsRetrieveRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -16938,7 +16764,7 @@ await client.hris.payGroups.retrieve("id");
-**requestOptions:** `PayGroups.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -16949,9 +16775,9 @@ await client.hris.payGroups.retrieve("id");
-## Hris PayrollRuns +## Crm RegenerateKey -
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList +
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -16963,7 +16789,7 @@ await client.hris.payGroups.retrieve("id");
-Returns a list of `PayrollRun` objects. +Exchange remote keys.
@@ -16979,7 +16805,9 @@ Returns a list of `PayrollRun` objects.
```typescript -await client.hris.payrollRuns.list(); +await client.crm.regenerateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -16995,7 +16823,7 @@ await client.hris.payrollRuns.list();
-**request:** `Merge.hris.PayrollRunsListRequest` +**request:** `Merge.crm.RemoteKeyForRegenerationRequest`
@@ -17003,7 +16831,7 @@ await client.hris.payrollRuns.list();
-**requestOptions:** `PayrollRuns.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -17014,7 +16842,9 @@ await client.hris.payrollRuns.list();
-
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun +## Crm Stages + +
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList
@@ -17026,7 +16856,7 @@ await client.hris.payrollRuns.list();
-Returns a `PayrollRun` object with the given `id`. +Returns a list of `Stage` objects.
@@ -17042,7 +16872,7 @@ Returns a `PayrollRun` object with the given `id`.
```typescript -await client.hris.payrollRuns.retrieve("id"); +await client.crm.stages.list(); ```
@@ -17058,15 +16888,7 @@ await client.hris.payrollRuns.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PayrollRunsRetrieveRequest` +**request:** `Merge.crm.StagesListRequest`
@@ -17074,7 +16896,7 @@ await client.hris.payrollRuns.retrieve("id");
-**requestOptions:** `PayrollRuns.RequestOptions` +**requestOptions:** `Stages.RequestOptions`
@@ -17085,9 +16907,7 @@ await client.hris.payrollRuns.retrieve("id");
-## Hris RegenerateKey - -
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage
@@ -17099,7 +16919,7 @@ await client.hris.payrollRuns.retrieve("id");
-Exchange remote keys. +Returns a `Stage` object with the given `id`.
@@ -17115,9 +16935,7 @@ Exchange remote keys.
```typescript -await client.hris.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.crm.stages.retrieve("id"); ```
@@ -17133,7 +16951,7 @@ await client.hris.regenerateKey.create({
-**request:** `Merge.hris.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -17141,7 +16959,15 @@ await client.hris.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**request:** `Merge.crm.StagesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Stages.RequestOptions`
@@ -17152,9 +16978,7 @@ await client.hris.regenerateKey.create({
-## Hris SyncStatus - -
client.hris.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -17166,7 +16990,7 @@ await client.hris.regenerateKey.create({
-Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns a list of `RemoteFieldClass` objects.
@@ -17182,7 +17006,7 @@ Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SY
```typescript -await client.hris.syncStatus.list(); +await client.crm.stages.remoteFieldClassesList(); ```
@@ -17198,7 +17022,7 @@ await client.hris.syncStatus.list();
-**request:** `Merge.hris.SyncStatusListRequest` +**request:** `Merge.crm.StagesRemoteFieldClassesListRequest`
@@ -17206,7 +17030,7 @@ await client.hris.syncStatus.list();
-**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `Stages.RequestOptions`
@@ -17217,9 +17041,9 @@ await client.hris.syncStatus.list();
-## Hris ForceResync +## Crm SyncStatus -
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.crm.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -17231,7 +17055,7 @@ await client.hris.syncStatus.list();
-Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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. +Get syncing status. Possible values: `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).
@@ -17247,7 +17071,7 @@ Force re-sync of all models. This is available for all organizations via the das
```typescript -await client.hris.forceResync.syncStatusResyncCreate(); +await client.crm.syncStatus.list(); ```
@@ -17263,7 +17087,15 @@ await client.hris.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**request:** `Merge.crm.SyncStatusListRequest` + +
+
+ +
+
+ +**requestOptions:** `SyncStatus.RequestOptions`
@@ -17274,9 +17106,9 @@ await client.hris.forceResync.syncStatusResyncCreate();
-## Hris Teams +## Crm ForceResync -
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList +
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -17288,7 +17120,7 @@ await client.hris.forceResync.syncStatusResyncCreate();
-Returns a list of `Team` objects. +Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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.
@@ -17304,7 +17136,7 @@ Returns a list of `Team` objects.
```typescript -await client.hris.teams.list(); +await client.crm.forceResync.syncStatusResyncCreate(); ```
@@ -17320,15 +17152,7 @@ await client.hris.teams.list();
-**request:** `Merge.hris.TeamsListRequest` - -
-
- -
-
- -**requestOptions:** `Teams.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -17339,7 +17163,9 @@ await client.hris.teams.list();
-
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team +## Crm Tasks + +
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList
@@ -17351,7 +17177,7 @@ await client.hris.teams.list();
-Returns a `Team` object with the given `id`. +Returns a list of `Task` objects.
@@ -17367,7 +17193,7 @@ Returns a `Team` object with the given `id`.
```typescript -await client.hris.teams.retrieve("id"); +await client.crm.tasks.list(); ```
@@ -17383,15 +17209,7 @@ await client.hris.teams.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TeamsRetrieveRequest` +**request:** `Merge.crm.TasksListRequest`
@@ -17399,7 +17217,7 @@ await client.hris.teams.retrieve("id");
-**requestOptions:** `Teams.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -17410,9 +17228,7 @@ await client.hris.teams.retrieve("id");
-## Hris TimeOff - -
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList +
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse
@@ -17424,7 +17240,7 @@ await client.hris.teams.retrieve("id");
-Returns a list of `TimeOff` objects. +Creates a `Task` object with the given values.
@@ -17440,7 +17256,9 @@ Returns a list of `TimeOff` objects.
```typescript -await client.hris.timeOff.list(); +await client.crm.tasks.create({ + model: {}, +}); ```
@@ -17456,7 +17274,7 @@ await client.hris.timeOff.list();
-**request:** `Merge.hris.TimeOffListRequest` +**request:** `Merge.crm.TaskEndpointRequest`
@@ -17464,7 +17282,7 @@ await client.hris.timeOff.list();
-**requestOptions:** `TimeOff.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -17475,7 +17293,7 @@ await client.hris.timeOff.list();
-
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse +
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task
@@ -17487,7 +17305,7 @@ await client.hris.timeOff.list();
-Creates a `TimeOff` object with the given values. +Returns a `Task` object with the given `id`.
@@ -17503,9 +17321,7 @@ Creates a `TimeOff` object with the given values.
```typescript -await client.hris.timeOff.create({ - model: {}, -}); +await client.crm.tasks.retrieve("id"); ```
@@ -17521,7 +17337,7 @@ await client.hris.timeOff.create({
-**request:** `Merge.hris.TimeOffEndpointRequest` +**id:** `string`
@@ -17529,7 +17345,15 @@ await client.hris.timeOff.create({
-**requestOptions:** `TimeOff.RequestOptions` +**request:** `Merge.crm.TasksRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Tasks.RequestOptions`
@@ -17540,7 +17364,7 @@ await client.hris.timeOff.create({
-
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff +
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse
@@ -17552,7 +17376,7 @@ await client.hris.timeOff.create({
-Returns a `TimeOff` object with the given `id`. +Updates a `Task` object with the given `id`.
@@ -17568,7 +17392,9 @@ Returns a `TimeOff` object with the given `id`.
```typescript -await client.hris.timeOff.retrieve("id"); +await client.crm.tasks.partialUpdate("id", { + model: {}, +}); ```
@@ -17592,7 +17418,7 @@ await client.hris.timeOff.retrieve("id");
-**request:** `Merge.hris.TimeOffRetrieveRequest` +**request:** `Merge.crm.PatchedTaskEndpointRequest`
@@ -17600,7 +17426,7 @@ await client.hris.timeOff.retrieve("id");
-**requestOptions:** `TimeOff.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -17611,7 +17437,7 @@ await client.hris.timeOff.retrieve("id");
-
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -17623,7 +17449,7 @@ await client.hris.timeOff.retrieve("id");
-Returns metadata for `TimeOff` POSTs. +Returns metadata for `Task` PATCHs.
@@ -17639,7 +17465,7 @@ Returns metadata for `TimeOff` POSTs.
```typescript -await client.hris.timeOff.metaPostRetrieve(); +await client.crm.tasks.metaPatchRetrieve("id"); ```
@@ -17655,7 +17481,15 @@ await client.hris.timeOff.metaPostRetrieve();
-**requestOptions:** `TimeOff.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `Tasks.RequestOptions`
@@ -17666,9 +17500,7 @@ await client.hris.timeOff.metaPostRetrieve();
-## Hris TimeOffBalances - -
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList +
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse
@@ -17680,7 +17512,7 @@ await client.hris.timeOff.metaPostRetrieve();
-Returns a list of `TimeOffBalance` objects. +Returns metadata for `Task` POSTs.
@@ -17696,7 +17528,7 @@ Returns a list of `TimeOffBalance` objects.
```typescript -await client.hris.timeOffBalances.list(); +await client.crm.tasks.metaPostRetrieve(); ```
@@ -17712,15 +17544,7 @@ await client.hris.timeOffBalances.list();
-**request:** `Merge.hris.TimeOffBalancesListRequest` - -
-
- -
-
- -**requestOptions:** `TimeOffBalances.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -17731,7 +17555,7 @@ await client.hris.timeOffBalances.list();
-
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance +
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -17743,7 +17567,7 @@ await client.hris.timeOffBalances.list();
-Returns a `TimeOffBalance` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -17759,7 +17583,7 @@ Returns a `TimeOffBalance` object with the given `id`.
```typescript -await client.hris.timeOffBalances.retrieve("id"); +await client.crm.tasks.remoteFieldClassesList(); ```
@@ -17775,15 +17599,7 @@ await client.hris.timeOffBalances.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` +**request:** `Merge.crm.TasksRemoteFieldClassesListRequest`
@@ -17791,7 +17607,7 @@ await client.hris.timeOffBalances.retrieve("id");
-**requestOptions:** `TimeOffBalances.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -17802,9 +17618,9 @@ await client.hris.timeOffBalances.retrieve("id");
-## Hris TimesheetEntries +## Crm Users -
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList +
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList
@@ -17816,7 +17632,7 @@ await client.hris.timeOffBalances.retrieve("id");
-Returns a list of `TimesheetEntry` objects. +Returns a list of `User` objects.
@@ -17832,7 +17648,7 @@ Returns a list of `TimesheetEntry` objects.
```typescript -await client.hris.timesheetEntries.list(); +await client.crm.users.list(); ```
@@ -17848,7 +17664,7 @@ await client.hris.timesheetEntries.list();
-**request:** `Merge.hris.TimesheetEntriesListRequest` +**request:** `Merge.crm.UsersListRequest`
@@ -17856,7 +17672,7 @@ await client.hris.timesheetEntries.list();
-**requestOptions:** `TimesheetEntries.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -17867,7 +17683,7 @@ await client.hris.timesheetEntries.list();
-
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse +
client.crm.users.retrieve(id, { ...params }) -> Merge.User
@@ -17879,7 +17695,7 @@ await client.hris.timesheetEntries.list();
-Creates a `TimesheetEntry` object with the given values. +Returns a `User` object with the given `id`.
@@ -17895,9 +17711,7 @@ Creates a `TimesheetEntry` object with the given values.
```typescript -await client.hris.timesheetEntries.create({ - model: {}, -}); +await client.crm.users.retrieve("id"); ```
@@ -17913,7 +17727,15 @@ await client.hris.timesheetEntries.create({
-**request:** `Merge.hris.TimesheetEntryEndpointRequest` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.UsersRetrieveRequest`
@@ -17921,7 +17743,7 @@ await client.hris.timesheetEntries.create({
-**requestOptions:** `TimesheetEntries.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -17932,7 +17754,7 @@ await client.hris.timesheetEntries.create({
-
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry +
client.crm.users.ignoreCreate(modelId, { ...params }) -> void
@@ -17944,7 +17766,7 @@ await client.hris.timesheetEntries.create({
-Returns a `TimesheetEntry` object with the given `id`. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -17960,7 +17782,9 @@ Returns a `TimesheetEntry` object with the given `id`.
```typescript -await client.hris.timesheetEntries.retrieve("id"); +await client.crm.users.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", +}); ```
@@ -17976,7 +17800,7 @@ await client.hris.timesheetEntries.retrieve("id");
-**id:** `string` +**modelId:** `string`
@@ -17984,7 +17808,7 @@ await client.hris.timesheetEntries.retrieve("id");
-**request:** `Merge.hris.TimesheetEntriesRetrieveRequest` +**request:** `Merge.IgnoreCommonModelRequest`
@@ -17992,7 +17816,7 @@ await client.hris.timesheetEntries.retrieve("id");
-**requestOptions:** `TimesheetEntries.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -18003,7 +17827,7 @@ await client.hris.timesheetEntries.retrieve("id");
-
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.users.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -18015,7 +17839,7 @@ await client.hris.timesheetEntries.retrieve("id");
-Returns metadata for `TimesheetEntry` POSTs. +Returns a list of `RemoteFieldClass` objects.
@@ -18031,7 +17855,7 @@ Returns metadata for `TimesheetEntry` POSTs.
```typescript -await client.hris.timesheetEntries.metaPostRetrieve(); +await client.crm.users.remoteFieldClassesList(); ```
@@ -18047,7 +17871,15 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-**requestOptions:** `TimesheetEntries.RequestOptions` +**request:** `Merge.crm.UsersRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -18058,9 +17890,9 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-## Hris WebhookReceivers +## Crm WebhookReceivers -
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -18088,7 +17920,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.hris.webhookReceivers.list(); +await client.crm.webhookReceivers.list(); ```
@@ -18115,7 +17947,7 @@ await client.hris.webhookReceivers.list();
-
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -18143,7 +17975,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.hris.webhookReceivers.create({ +await client.crm.webhookReceivers.create({ event: "event", isActive: true, }); @@ -18162,7 +17994,7 @@ await client.hris.webhookReceivers.create({
-**request:** `Merge.hris.WebhookReceiverRequest` +**request:** `Merge.crm.WebhookReceiverRequest`
@@ -18181,9 +18013,9 @@ await client.hris.webhookReceivers.create({
-## Ticketing AccountDetails +## Hris AccountDetails -
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails +
client.hris.accountDetails.retrieve() -> Merge.AccountDetails
@@ -18211,7 +18043,7 @@ Get details for a linked account.
```typescript -await client.ticketing.accountDetails.retrieve(); +await client.hris.accountDetails.retrieve(); ```
@@ -18238,9 +18070,9 @@ await client.ticketing.accountDetails.retrieve();
-## Ticketing AccountToken +## Hris AccountToken -
client.ticketing.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.hris.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -18268,7 +18100,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.ticketing.accountToken.retrieve("public_token"); +await client.hris.accountToken.retrieve("public_token"); ```
@@ -18303,9 +18135,9 @@ await client.ticketing.accountToken.retrieve("public_token");
-## Ticketing Accounts +## Hris AsyncPassthrough -
client.ticketing.accounts.list({ ...params }) -> Merge.PaginatedAccountList +
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -18317,7 +18149,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-Returns a list of `Account` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -18333,7 +18165,10 @@ Returns a list of `Account` objects.
```typescript -await client.ticketing.accounts.list(); +await client.hris.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -18349,7 +18184,7 @@ await client.ticketing.accounts.list();
-**request:** `Merge.ticketing.AccountsListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -18357,7 +18192,7 @@ await client.ticketing.accounts.list();
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -18368,7 +18203,7 @@ await client.ticketing.accounts.list();
-
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.hris.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -18380,7 +18215,7 @@ await client.ticketing.accounts.list();
-Returns an `Account` object with the given `id`. +Retrieves data from earlier async-passthrough POST request
@@ -18396,7 +18231,7 @@ Returns an `Account` object with the given `id`.
```typescript -await client.ticketing.accounts.retrieve("id"); +await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -18412,15 +18247,7 @@ await client.ticketing.accounts.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.AccountsRetrieveRequest` +**asyncPassthroughReceiptId:** `string`
@@ -18428,7 +18255,7 @@ await client.ticketing.accounts.retrieve("id");
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -18439,9 +18266,9 @@ await client.ticketing.accounts.retrieve("id");
-## Ticketing AsyncPassthrough +## Hris AuditTrail -
client.ticketing.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.hris.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -18453,7 +18280,7 @@ await client.ticketing.accounts.retrieve("id");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Gets a list of audit trail events.
@@ -18469,10 +18296,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.ticketing.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.hris.auditTrail.list(); ```
@@ -18488,7 +18312,7 @@ await client.ticketing.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.hris.AuditTrailListRequest`
@@ -18496,7 +18320,7 @@ await client.ticketing.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -18507,7 +18331,9 @@ await client.ticketing.asyncPassthrough.create({
-
client.ticketing.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +## Hris AvailableActions + +
client.hris.availableActions.retrieve() -> Merge.AvailableActions
@@ -18519,7 +18345,7 @@ await client.ticketing.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a list of models and actions available for an account.
@@ -18535,7 +18361,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.hris.availableActions.retrieve(); ```
@@ -18551,28 +18377,83 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-**asyncPassthroughReceiptId:** `string` +**requestOptions:** `AvailableActions.RequestOptions` + +
+
+ +
+
+## Hris BankInfo + +
client.hris.bankInfo.list({ ...params }) -> Merge.PaginatedBankInfoList
-**requestOptions:** `AsyncPassthrough.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `BankInfo` objects.
+#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.bankInfo.list(); +``` + +
+
-
-## Ticketing Attachments +#### ⚙️ Parameters -
client.ticketing.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +
+
+ +
+
+ +**request:** `Merge.hris.BankInfoListRequest` + +
+
+ +
+
+ +**requestOptions:** `BankInfo.RequestOptions` + +
+
+
+
+ + + +
+ +
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo
@@ -18584,7 +18465,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-Returns a list of `Attachment` objects. +Returns a `BankInfo` object with the given `id`.
@@ -18600,7 +18481,7 @@ Returns a list of `Attachment` objects.
```typescript -await client.ticketing.attachments.list(); +await client.hris.bankInfo.retrieve("id"); ```
@@ -18616,7 +18497,7 @@ await client.ticketing.attachments.list();
-**request:** `Merge.ticketing.AttachmentsListRequest` +**id:** `string`
@@ -18624,7 +18505,15 @@ await client.ticketing.attachments.list();
-**requestOptions:** `Attachments.RequestOptions` +**request:** `Merge.hris.BankInfoRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `BankInfo.RequestOptions`
@@ -18635,7 +18524,9 @@ await client.ticketing.attachments.list();
-
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse +## Hris Benefits + +
client.hris.benefits.list({ ...params }) -> Merge.PaginatedBenefitList
@@ -18647,7 +18538,7 @@ await client.ticketing.attachments.list();
-Creates an `Attachment` object with the given values. +Returns a list of `Benefit` objects.
@@ -18663,9 +18554,7 @@ Creates an `Attachment` object with the given values.
```typescript -await client.ticketing.attachments.create({ - model: {}, -}); +await client.hris.benefits.list(); ```
@@ -18681,7 +18570,7 @@ await client.ticketing.attachments.create({
-**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest` +**request:** `Merge.hris.BenefitsListRequest`
@@ -18689,7 +18578,7 @@ await client.ticketing.attachments.create({
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `Benefits.RequestOptions`
@@ -18700,7 +18589,7 @@ await client.ticketing.attachments.create({
-
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment +
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit
@@ -18712,7 +18601,7 @@ await client.ticketing.attachments.create({
-Returns an `Attachment` object with the given `id`. +Returns a `Benefit` object with the given `id`.
@@ -18728,7 +18617,7 @@ Returns an `Attachment` object with the given `id`.
```typescript -await client.ticketing.attachments.retrieve("id"); +await client.hris.benefits.retrieve("id"); ```
@@ -18752,7 +18641,7 @@ await client.ticketing.attachments.retrieve("id");
-**request:** `Merge.ticketing.AttachmentsRetrieveRequest` +**request:** `Merge.hris.BenefitsRetrieveRequest`
@@ -18760,7 +18649,7 @@ await client.ticketing.attachments.retrieve("id");
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `Benefits.RequestOptions`
@@ -18771,7 +18660,9 @@ await client.ticketing.attachments.retrieve("id");
-
client.ticketing.attachments.downloadRetrieve(id, { ...params }) -> stream.Readable +## Hris Companies + +
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList
@@ -18783,7 +18674,7 @@ await client.ticketing.attachments.retrieve("id");
-Returns the `File` content with the given `id` as a stream of bytes. +Returns a list of `Company` objects.
@@ -18799,9 +18690,7 @@ Returns the `File` content with the given `id` as a stream of bytes.
```typescript -await client.ticketing.attachments.downloadRetrieve("string", { - mimeType: "string", -}); +await client.hris.companies.list(); ```
@@ -18817,15 +18706,7 @@ await client.ticketing.attachments.downloadRetrieve("string", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.AttachmentsDownloadRetrieveRequest` +**request:** `Merge.hris.CompaniesListRequest`
@@ -18833,7 +18714,7 @@ await client.ticketing.attachments.downloadRetrieve("string", {
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `Companies.RequestOptions`
@@ -18844,7 +18725,7 @@ await client.ticketing.attachments.downloadRetrieve("string", {
-
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company
@@ -18856,7 +18737,7 @@ await client.ticketing.attachments.downloadRetrieve("string", {
-Returns metadata for `TicketingAttachment` POSTs. +Returns a `Company` object with the given `id`.
@@ -18872,7 +18753,7 @@ Returns metadata for `TicketingAttachment` POSTs.
```typescript -await client.ticketing.attachments.metaPostRetrieve(); +await client.hris.companies.retrieve("id"); ```
@@ -18888,7 +18769,23 @@ await client.ticketing.attachments.metaPostRetrieve();
-**requestOptions:** `Attachments.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.CompaniesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Companies.RequestOptions`
@@ -18899,9 +18796,9 @@ await client.ticketing.attachments.metaPostRetrieve();
-## Ticketing AuditTrail +## Hris Scopes -
client.ticketing.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -18913,7 +18810,7 @@ await client.ticketing.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +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).
@@ -18929,7 +18826,7 @@ Gets a list of audit trail events.
```typescript -await client.ticketing.auditTrail.list(); +await client.hris.scopes.defaultScopesRetrieve(); ```
@@ -18945,15 +18842,7 @@ await client.ticketing.auditTrail.list();
-**request:** `Merge.ticketing.AuditTrailListRequest` - -
-
- -
-
- -**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -18964,9 +18853,7 @@ await client.ticketing.auditTrail.list();
-## Ticketing AvailableActions - -
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions +
client.hris.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -18978,7 +18865,7 @@ await client.ticketing.auditTrail.list();
-Returns a list of models and actions available for an account. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -18994,7 +18881,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.ticketing.availableActions.retrieve(); +await client.hris.scopes.linkedAccountScopesRetrieve(); ```
@@ -19010,7 +18897,7 @@ await client.ticketing.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -19021,9 +18908,7 @@ await client.ticketing.availableActions.retrieve();
-## Ticketing Collections - -
client.ticketing.collections.list({ ...params }) -> Merge.PaginatedCollectionList +
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -19035,7 +18920,7 @@ await client.ticketing.availableActions.retrieve();
-Returns a list of `Collection` objects. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -19051,7 +18936,33 @@ Returns a list of `Collection` objects.
```typescript -await client.ticketing.collections.list(); +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, + }, + }, + }, + ], +}); ```
@@ -19067,7 +18978,7 @@ await client.ticketing.collections.list();
-**request:** `Merge.ticketing.CollectionsListRequest` +**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -19075,7 +18986,7 @@ await client.ticketing.collections.list();
-**requestOptions:** `Collections.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -19086,7 +18997,9 @@ await client.ticketing.collections.list();
-
client.ticketing.collections.retrieve(id, { ...params }) -> Merge.Collection +## Hris DeleteAccount + +
client.hris.deleteAccount.delete() -> void
@@ -19098,7 +19011,7 @@ await client.ticketing.collections.list();
-Returns a `Collection` object with the given `id`. +Delete a linked account.
@@ -19114,7 +19027,7 @@ Returns a `Collection` object with the given `id`.
```typescript -await client.ticketing.collections.retrieve("id"); +await client.hris.deleteAccount.delete(); ```
@@ -19130,23 +19043,7 @@ await client.ticketing.collections.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Collections.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -19157,7 +19054,9 @@ await client.ticketing.collections.retrieve("id");
-
client.ticketing.collections.usersList(parentId, { ...params }) -> Merge.PaginatedUserList +## Hris Dependents + +
client.hris.dependents.list({ ...params }) -> Merge.PaginatedDependentList
@@ -19169,7 +19068,7 @@ await client.ticketing.collections.retrieve("id");
-Returns a list of `User` objects. +Returns a list of `Dependent` objects.
@@ -19185,7 +19084,7 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.collections.usersList("parent_id"); +await client.hris.dependents.list(); ```
@@ -19201,15 +19100,7 @@ await client.ticketing.collections.usersList("parent_id");
-**parentId:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsUsersListRequest` +**request:** `Merge.hris.DependentsListRequest`
@@ -19217,7 +19108,7 @@ await client.ticketing.collections.usersList("parent_id");
-**requestOptions:** `Collections.RequestOptions` +**requestOptions:** `Dependents.RequestOptions`
@@ -19228,9 +19119,7 @@ await client.ticketing.collections.usersList("parent_id");
-## Ticketing Comments - -
client.ticketing.comments.list({ ...params }) -> Merge.PaginatedCommentList +
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent
@@ -19242,7 +19131,7 @@ await client.ticketing.collections.usersList("parent_id");
-Returns a list of `Comment` objects. +Returns a `Dependent` object with the given `id`.
@@ -19258,7 +19147,7 @@ Returns a list of `Comment` objects.
```typescript -await client.ticketing.comments.list(); +await client.hris.dependents.retrieve("id"); ```
@@ -19274,7 +19163,7 @@ await client.ticketing.comments.list();
-**request:** `Merge.ticketing.CommentsListRequest` +**id:** `string`
@@ -19282,7 +19171,15 @@ await client.ticketing.comments.list();
-**requestOptions:** `Comments.RequestOptions` +**request:** `Merge.hris.DependentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Dependents.RequestOptions`
@@ -19293,7 +19190,9 @@ await client.ticketing.comments.list();
-
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse +## Hris EmployeePayrollRuns + +
client.hris.employeePayrollRuns.list({ ...params }) -> Merge.PaginatedEmployeePayrollRunList
@@ -19305,7 +19204,7 @@ await client.ticketing.comments.list();
-Creates a `Comment` object with the given values. +Returns a list of `EmployeePayrollRun` objects.
@@ -19321,9 +19220,7 @@ Creates a `Comment` object with the given values.
```typescript -await client.ticketing.comments.create({ - model: {}, -}); +await client.hris.employeePayrollRuns.list(); ```
@@ -19339,7 +19236,7 @@ await client.ticketing.comments.create({
-**request:** `Merge.ticketing.CommentEndpointRequest` +**request:** `Merge.hris.EmployeePayrollRunsListRequest`
@@ -19347,7 +19244,7 @@ await client.ticketing.comments.create({
-**requestOptions:** `Comments.RequestOptions` +**requestOptions:** `EmployeePayrollRuns.RequestOptions`
@@ -19358,7 +19255,7 @@ await client.ticketing.comments.create({
-
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment +
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun
@@ -19370,7 +19267,7 @@ await client.ticketing.comments.create({
-Returns a `Comment` object with the given `id`. +Returns an `EmployeePayrollRun` object with the given `id`.
@@ -19386,7 +19283,7 @@ Returns a `Comment` object with the given `id`.
```typescript -await client.ticketing.comments.retrieve("id"); +await client.hris.employeePayrollRuns.retrieve("id"); ```
@@ -19410,7 +19307,7 @@ await client.ticketing.comments.retrieve("id");
-**request:** `Merge.ticketing.CommentsRetrieveRequest` +**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest`
@@ -19418,7 +19315,7 @@ await client.ticketing.comments.retrieve("id");
-**requestOptions:** `Comments.RequestOptions` +**requestOptions:** `EmployeePayrollRuns.RequestOptions`
@@ -19429,7 +19326,9 @@ await client.ticketing.comments.retrieve("id");
-
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse +## Hris Employees + +
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList
@@ -19441,7 +19340,7 @@ await client.ticketing.comments.retrieve("id");
-Returns metadata for `Comment` POSTs. +Returns a list of `Employee` objects.
@@ -19457,7 +19356,7 @@ Returns metadata for `Comment` POSTs.
```typescript -await client.ticketing.comments.metaPostRetrieve(); +await client.hris.employees.list(); ```
@@ -19473,7 +19372,15 @@ await client.ticketing.comments.metaPostRetrieve();
-**requestOptions:** `Comments.RequestOptions` +**request:** `Merge.hris.EmployeesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Employees.RequestOptions`
@@ -19484,9 +19391,7 @@ await client.ticketing.comments.metaPostRetrieve();
-## Ticketing Contacts - -
client.ticketing.contacts.list({ ...params }) -> Merge.PaginatedContactList +
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse
@@ -19498,7 +19403,7 @@ await client.ticketing.comments.metaPostRetrieve();
-Returns a list of `Contact` objects. +Creates an `Employee` object with the given values.
@@ -19514,7 +19419,9 @@ Returns a list of `Contact` objects.
```typescript -await client.ticketing.contacts.list(); +await client.hris.employees.create({ + model: {}, +}); ```
@@ -19530,7 +19437,7 @@ await client.ticketing.contacts.list();
-**request:** `Merge.ticketing.ContactsListRequest` +**request:** `Merge.hris.EmployeeEndpointRequest`
@@ -19538,7 +19445,7 @@ await client.ticketing.contacts.list();
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Employees.RequestOptions`
@@ -19549,7 +19456,7 @@ await client.ticketing.contacts.list();
-
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse +
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee
@@ -19561,7 +19468,7 @@ await client.ticketing.contacts.list();
-Creates a `Contact` object with the given values. +Returns an `Employee` object with the given `id`.
@@ -19577,9 +19484,7 @@ Creates a `Contact` object with the given values.
```typescript -await client.ticketing.contacts.create({ - model: {}, -}); +await client.hris.employees.retrieve("id"); ```
@@ -19595,7 +19500,7 @@ await client.ticketing.contacts.create({
-**request:** `Merge.ticketing.TicketingContactEndpointRequest` +**id:** `string`
@@ -19603,7 +19508,15 @@ await client.ticketing.contacts.create({
-**requestOptions:** `Contacts.RequestOptions` +**request:** `Merge.hris.EmployeesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Employees.RequestOptions`
@@ -19614,7 +19527,7 @@ await client.ticketing.contacts.create({
-
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact +
client.hris.employees.ignoreCreate(modelId, { ...params }) -> void
@@ -19626,7 +19539,7 @@ await client.ticketing.contacts.create({
-Returns a `Contact` object with the given `id`. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -19642,7 +19555,9 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.ticketing.contacts.retrieve("id"); +await client.hris.employees.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", +}); ```
@@ -19658,7 +19573,7 @@ await client.ticketing.contacts.retrieve("id");
-**id:** `string` +**modelId:** `string`
@@ -19666,7 +19581,7 @@ await client.ticketing.contacts.retrieve("id");
-**request:** `Merge.ticketing.ContactsRetrieveRequest` +**request:** `Merge.hris.IgnoreCommonModelRequest`
@@ -19674,7 +19589,7 @@ await client.ticketing.contacts.retrieve("id");
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Employees.RequestOptions`
@@ -19685,7 +19600,7 @@ await client.ticketing.contacts.retrieve("id");
-
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse
@@ -19697,7 +19612,7 @@ await client.ticketing.contacts.retrieve("id");
-Returns metadata for `TicketingContact` POSTs. +Returns metadata for `Employee` POSTs.
@@ -19713,7 +19628,7 @@ Returns metadata for `TicketingContact` POSTs.
```typescript -await client.ticketing.contacts.metaPostRetrieve(); +await client.hris.employees.metaPostRetrieve(); ```
@@ -19729,7 +19644,7 @@ await client.ticketing.contacts.metaPostRetrieve();
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Employees.RequestOptions`
@@ -19740,9 +19655,9 @@ await client.ticketing.contacts.metaPostRetrieve();
-## Ticketing Scopes +## Hris EmployerBenefits -
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.hris.employerBenefits.list({ ...params }) -> Merge.PaginatedEmployerBenefitList
@@ -19754,7 +19669,7 @@ await client.ticketing.contacts.metaPostRetrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `EmployerBenefit` objects.
@@ -19770,7 +19685,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.ticketing.scopes.defaultScopesRetrieve(); +await client.hris.employerBenefits.list(); ```
@@ -19786,7 +19701,15 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.hris.EmployerBenefitsListRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployerBenefits.RequestOptions`
@@ -19797,7 +19720,7 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-
client.ticketing.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit
@@ -19809,7 +19732,7 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns an `EmployerBenefit` object with the given `id`.
@@ -19825,7 +19748,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.ticketing.scopes.linkedAccountScopesRetrieve(); +await client.hris.employerBenefits.retrieve("id"); ```
@@ -19841,7 +19764,23 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployerBenefits.RequestOptions`
@@ -19852,7 +19791,9 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-
client.ticketing.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +## Hris Employments + +
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList
@@ -19864,7 +19805,7 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a list of `Employment` objects.
@@ -19880,29 +19821,7 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.ticketing.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], -}); +await client.hris.employments.list(); ```
@@ -19918,7 +19837,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.hris.EmploymentsListRequest`
@@ -19926,7 +19845,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `Employments.RequestOptions`
@@ -19937,9 +19856,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-## Ticketing DeleteAccount - -
client.ticketing.deleteAccount.delete() -> void +
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment
@@ -19951,7 +19868,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns an `Employment` object with the given `id`.
@@ -19967,7 +19884,7 @@ Delete a linked account.
```typescript -await client.ticketing.deleteAccount.delete(); +await client.hris.employments.retrieve("id"); ```
@@ -19983,7 +19900,23 @@ await client.ticketing.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.EmploymentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Employments.RequestOptions`
@@ -19994,9 +19927,9 @@ await client.ticketing.deleteAccount.delete();
-## Ticketing FieldMapping +## Hris FieldMapping -
client.ticketing.fieldMapping.fieldMappingsRetrieve() -> Merge.FieldMappingApiInstanceResponse +
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -20024,7 +19957,7 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.ticketing.fieldMapping.fieldMappingsRetrieve(); +await client.hris.fieldMapping.fieldMappingsRetrieve(); ```
@@ -20040,6 +19973,14 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve();
+**request:** `Merge.hris.FieldMappingsRetrieveRequest` + +
+
+ +
+
+ **requestOptions:** `FieldMapping.RequestOptions`
@@ -20051,7 +19992,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve();
-
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -20079,7 +20020,7 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.ticketing.fieldMapping.fieldMappingsCreate({ +await client.hris.fieldMapping.fieldMappingsCreate({ targetFieldName: "example_target_field_name", targetFieldDescription: "this is a example description of the target field", remoteFieldTraversalPath: ["example_remote_field"], @@ -20102,7 +20043,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.ticketing.CreateFieldMappingRequest` +**request:** `Merge.hris.CreateFieldMappingRequest`
@@ -20121,7 +20062,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-
client.ticketing.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.hris.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -20149,7 +20090,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -20184,7 +20125,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.ticketing.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.hris.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -20212,7 +20153,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -20236,7 +20177,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-**request:** `Merge.ticketing.PatchedEditFieldMappingRequest` +**request:** `Merge.hris.PatchedEditFieldMappingRequest`
@@ -20255,7 +20196,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -20283,7 +20224,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.ticketing.fieldMapping.remoteFieldsRetrieve(); +await client.hris.fieldMapping.remoteFieldsRetrieve(); ```
@@ -20299,7 +20240,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest` +**request:** `Merge.hris.RemoteFieldsRetrieveRequest`
@@ -20318,7 +20259,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve();
-
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -20346,7 +20287,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.ticketing.fieldMapping.targetFieldsRetrieve(); +await client.hris.fieldMapping.targetFieldsRetrieve(); ```
@@ -20373,9 +20314,9 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
-## Ticketing GenerateKey +## Hris GenerateKey -
client.ticketing.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -20403,7 +20344,7 @@ Create a remote key.
```typescript -await client.ticketing.generateKey.create({ +await client.hris.generateKey.create({ name: "Remote Deployment Key 1", }); ``` @@ -20421,7 +20362,7 @@ await client.ticketing.generateKey.create({
-**request:** `Merge.ticketing.GenerateRemoteKeyRequest` +**request:** `Merge.hris.GenerateRemoteKeyRequest`
@@ -20440,9 +20381,9 @@ await client.ticketing.generateKey.create({
-## Ticketing Issues +## Hris Groups -
client.ticketing.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList
@@ -20454,7 +20395,7 @@ await client.ticketing.generateKey.create({
-Gets all issues for Organization. +Returns a list of `Group` objects.
@@ -20470,7 +20411,7 @@ Gets all issues for Organization.
```typescript -await client.ticketing.issues.list(); +await client.hris.groups.list(); ```
@@ -20486,7 +20427,7 @@ await client.ticketing.issues.list();
-**request:** `Merge.ticketing.IssuesListRequest` +**request:** `Merge.hris.GroupsListRequest`
@@ -20494,7 +20435,7 @@ await client.ticketing.issues.list();
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -20505,7 +20446,7 @@ await client.ticketing.issues.list();
-
client.ticketing.issues.retrieve(id) -> Merge.Issue +
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -20517,7 +20458,7 @@ await client.ticketing.issues.list();
-Get a specific issue. +Returns a `Group` object with the given `id`.
@@ -20533,7 +20474,7 @@ Get a specific issue.
```typescript -await client.ticketing.issues.retrieve("id"); +await client.hris.groups.retrieve("id"); ```
@@ -20557,7 +20498,15 @@ await client.ticketing.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**request:** `Merge.hris.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Groups.RequestOptions`
@@ -20568,9 +20517,9 @@ await client.ticketing.issues.retrieve("id");
-## Ticketing LinkToken +## Hris Issues -
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken +
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -20582,7 +20531,7 @@ await client.ticketing.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Gets all issues for Organization.
@@ -20598,12 +20547,7 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.ticketing.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], -}); +await client.hris.issues.list(); ```
@@ -20619,7 +20563,7 @@ await client.ticketing.linkToken.create({
-**request:** `Merge.ticketing.EndUserDetailsRequest` +**request:** `Merge.hris.IssuesListRequest`
@@ -20627,7 +20571,7 @@ await client.ticketing.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -20638,9 +20582,72 @@ await client.ticketing.linkToken.create({
-## Ticketing LinkedAccounts +
client.hris.issues.retrieve(id) -> Merge.Issue +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get a specific issue. + +
+
+
+
+ +#### 🔌 Usage -
client.ticketing.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
+
+ +
+
+ +```typescript +await client.hris.issues.retrieve("id"); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `Issues.RequestOptions` + +
+
+
+
+ +
+
+
+ +## Hris LinkToken + +
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -20652,7 +20659,7 @@ await client.ticketing.linkToken.create({
-List linked accounts for your organization. +Creates a link token to be used when linking a new end user.
@@ -20668,7 +20675,12 @@ List linked accounts for your organization.
```typescript -await client.ticketing.linkedAccounts.list(); +await client.hris.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], +}); ```
@@ -20684,7 +20696,7 @@ await client.ticketing.linkedAccounts.list();
-**request:** `Merge.ticketing.LinkedAccountsListRequest` +**request:** `Merge.hris.EndUserDetailsRequest`
@@ -20692,7 +20704,7 @@ await client.ticketing.linkedAccounts.list();
-**requestOptions:** `LinkedAccounts.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -20703,9 +20715,9 @@ await client.ticketing.linkedAccounts.list();
-## Ticketing Passthrough +## Hris LinkedAccounts -
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -20717,7 +20729,7 @@ await client.ticketing.linkedAccounts.list();
-Pull data from an endpoint not currently supported by Merge. +List linked accounts for your organization.
@@ -20733,10 +20745,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.ticketing.passthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.hris.linkedAccounts.list(); ```
@@ -20752,7 +20761,7 @@ await client.ticketing.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.hris.LinkedAccountsListRequest`
@@ -20760,7 +20769,7 @@ await client.ticketing.passthrough.create({
-**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -20771,9 +20780,9 @@ await client.ticketing.passthrough.create({
-## Ticketing Projects +## Hris Locations -
client.ticketing.projects.list({ ...params }) -> Merge.PaginatedProjectList +
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList
@@ -20785,7 +20794,7 @@ await client.ticketing.passthrough.create({
-Returns a list of `Project` objects. +Returns a list of `Location` objects.
@@ -20801,7 +20810,7 @@ Returns a list of `Project` objects.
```typescript -await client.ticketing.projects.list(); +await client.hris.locations.list(); ```
@@ -20817,7 +20826,7 @@ await client.ticketing.projects.list();
-**request:** `Merge.ticketing.ProjectsListRequest` +**request:** `Merge.hris.LocationsListRequest`
@@ -20825,7 +20834,7 @@ await client.ticketing.projects.list();
-**requestOptions:** `Projects.RequestOptions` +**requestOptions:** `Locations.RequestOptions`
@@ -20836,7 +20845,7 @@ await client.ticketing.projects.list();
-
client.ticketing.projects.retrieve(id, { ...params }) -> Merge.Project +
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location
@@ -20848,7 +20857,7 @@ await client.ticketing.projects.list();
-Returns a `Project` object with the given `id`. +Returns a `Location` object with the given `id`.
@@ -20864,7 +20873,7 @@ Returns a `Project` object with the given `id`.
```typescript -await client.ticketing.projects.retrieve("id"); +await client.hris.locations.retrieve("id"); ```
@@ -20888,7 +20897,7 @@ await client.ticketing.projects.retrieve("id");
-**request:** `Merge.ticketing.ProjectsRetrieveRequest` +**request:** `Merge.hris.LocationsRetrieveRequest`
@@ -20896,7 +20905,7 @@ await client.ticketing.projects.retrieve("id");
-**requestOptions:** `Projects.RequestOptions` +**requestOptions:** `Locations.RequestOptions`
@@ -20907,7 +20916,9 @@ await client.ticketing.projects.retrieve("id");
-
client.ticketing.projects.usersList(parentId, { ...params }) -> Merge.PaginatedUserList +## Hris Passthrough + +
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -20919,7 +20930,7 @@ await client.ticketing.projects.retrieve("id");
-Returns a list of `User` objects. +Pull data from an endpoint not currently supported by Merge.
@@ -20935,7 +20946,10 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.projects.usersList("parent_id"); +await client.hris.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -20951,15 +20965,7 @@ await client.ticketing.projects.usersList("parent_id");
-**parentId:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsUsersListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -20967,7 +20973,7 @@ await client.ticketing.projects.usersList("parent_id");
-**requestOptions:** `Projects.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -20978,9 +20984,9 @@ await client.ticketing.projects.usersList("parent_id");
-## Ticketing RegenerateKey +## Hris PayGroups -
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList
@@ -20992,7 +20998,7 @@ await client.ticketing.projects.usersList("parent_id");
-Exchange remote keys. +Returns a list of `PayGroup` objects.
@@ -21008,9 +21014,7 @@ Exchange remote keys.
```typescript -await client.ticketing.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.hris.payGroups.list(); ```
@@ -21026,7 +21030,7 @@ await client.ticketing.regenerateKey.create({
-**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest` +**request:** `Merge.hris.PayGroupsListRequest`
@@ -21034,7 +21038,7 @@ await client.ticketing.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**requestOptions:** `PayGroups.RequestOptions`
@@ -21045,9 +21049,7 @@ await client.ticketing.regenerateKey.create({
-## Ticketing Roles - -
client.ticketing.roles.list({ ...params }) -> Merge.PaginatedRoleList +
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup
@@ -21059,7 +21061,7 @@ await client.ticketing.regenerateKey.create({
-Returns a list of `Role` objects. +Returns a `PayGroup` object with the given `id`.
@@ -21075,7 +21077,7 @@ Returns a list of `Role` objects.
```typescript -await client.ticketing.roles.list(); +await client.hris.payGroups.retrieve("id"); ```
@@ -21091,7 +21093,7 @@ await client.ticketing.roles.list();
-**request:** `Merge.ticketing.RolesListRequest` +**id:** `string`
@@ -21099,7 +21101,15 @@ await client.ticketing.roles.list();
-**requestOptions:** `Roles.RequestOptions` +**request:** `Merge.hris.PayGroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PayGroups.RequestOptions`
@@ -21110,7 +21120,9 @@ await client.ticketing.roles.list();
-
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role +## Hris PayrollRuns + +
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList
@@ -21122,7 +21134,7 @@ await client.ticketing.roles.list();
-Returns a `Role` object with the given `id`. +Returns a list of `PayrollRun` objects.
@@ -21138,7 +21150,7 @@ Returns a `Role` object with the given `id`.
```typescript -await client.ticketing.roles.retrieve("id"); +await client.hris.payrollRuns.list(); ```
@@ -21154,15 +21166,7 @@ await client.ticketing.roles.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.RolesRetrieveRequest` +**request:** `Merge.hris.PayrollRunsListRequest`
@@ -21170,7 +21174,7 @@ await client.ticketing.roles.retrieve("id");
-**requestOptions:** `Roles.RequestOptions` +**requestOptions:** `PayrollRuns.RequestOptions`
@@ -21181,9 +21185,7 @@ await client.ticketing.roles.retrieve("id");
-## Ticketing SyncStatus - -
client.ticketing.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun
@@ -21195,7 +21197,7 @@ await client.ticketing.roles.retrieve("id");
-Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns a `PayrollRun` object with the given `id`.
@@ -21211,7 +21213,7 @@ Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SY
```typescript -await client.ticketing.syncStatus.list(); +await client.hris.payrollRuns.retrieve("id"); ```
@@ -21227,7 +21229,7 @@ await client.ticketing.syncStatus.list();
-**request:** `Merge.ticketing.SyncStatusListRequest` +**id:** `string`
@@ -21235,7 +21237,15 @@ await client.ticketing.syncStatus.list();
-**requestOptions:** `SyncStatus.RequestOptions` +**request:** `Merge.hris.PayrollRunsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PayrollRuns.RequestOptions`
@@ -21246,9 +21256,9 @@ await client.ticketing.syncStatus.list();
-## Ticketing ForceResync +## Hris RegenerateKey -
client.ticketing.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -21260,7 +21270,7 @@ await client.ticketing.syncStatus.list();
-Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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. +Exchange remote keys.
@@ -21276,7 +21286,9 @@ Force re-sync of all models. This is available for all organizations via the das
```typescript -await client.ticketing.forceResync.syncStatusResyncCreate(); +await client.hris.regenerateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -21292,7 +21304,15 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**request:** `Merge.hris.RemoteKeyForRegenerationRequest` + +
+
+ +
+
+ +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -21303,9 +21323,9 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-## Ticketing Tags +## Hris SyncStatus -
client.ticketing.tags.list({ ...params }) -> Merge.PaginatedTagList +
client.hris.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -21317,7 +21337,7 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-Returns a list of `Tag` objects. +Get syncing status. Possible values: `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).
@@ -21333,7 +21353,7 @@ Returns a list of `Tag` objects.
```typescript -await client.ticketing.tags.list(); +await client.hris.syncStatus.list(); ```
@@ -21349,7 +21369,7 @@ await client.ticketing.tags.list();
-**request:** `Merge.ticketing.TagsListRequest` +**request:** `Merge.hris.SyncStatusListRequest`
@@ -21357,7 +21377,7 @@ await client.ticketing.tags.list();
-**requestOptions:** `Tags.RequestOptions` +**requestOptions:** `SyncStatus.RequestOptions`
@@ -21368,7 +21388,9 @@ await client.ticketing.tags.list();
-
client.ticketing.tags.retrieve(id, { ...params }) -> Merge.Tag +## Hris ForceResync + +
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -21380,7 +21402,7 @@ await client.ticketing.tags.list();
-Returns a `Tag` object with the given `id`. +Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available programmatically via API 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.
@@ -21396,7 +21418,7 @@ Returns a `Tag` object with the given `id`.
```typescript -await client.ticketing.tags.retrieve("id"); +await client.hris.forceResync.syncStatusResyncCreate(); ```
@@ -21412,23 +21434,7 @@ await client.ticketing.tags.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TagsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Tags.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -21439,9 +21445,9 @@ await client.ticketing.tags.retrieve("id");
-## Ticketing Teams +## Hris Teams -
client.ticketing.teams.list({ ...params }) -> Merge.PaginatedTeamList +
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList
@@ -21469,7 +21475,7 @@ Returns a list of `Team` objects.
```typescript -await client.ticketing.teams.list(); +await client.hris.teams.list(); ```
@@ -21485,7 +21491,7 @@ await client.ticketing.teams.list();
-**request:** `Merge.ticketing.TeamsListRequest` +**request:** `Merge.hris.TeamsListRequest`
@@ -21504,7 +21510,7 @@ await client.ticketing.teams.list();
-
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team +
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -21532,7 +21538,7 @@ Returns a `Team` object with the given `id`.
```typescript -await client.ticketing.teams.retrieve("id"); +await client.hris.teams.retrieve("id"); ```
@@ -21556,7 +21562,7 @@ await client.ticketing.teams.retrieve("id");
-**request:** `Merge.ticketing.TeamsRetrieveRequest` +**request:** `Merge.hris.TeamsRetrieveRequest`
@@ -21575,9 +21581,9 @@ await client.ticketing.teams.retrieve("id");
-## Ticketing Tickets +## Hris TimeOff -
client.ticketing.tickets.list({ ...params }) -> Merge.PaginatedTicketList +
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList
@@ -21589,7 +21595,7 @@ await client.ticketing.teams.retrieve("id");
-Returns a list of `Ticket` objects. +Returns a list of `TimeOff` objects.
@@ -21605,7 +21611,7 @@ Returns a list of `Ticket` objects.
```typescript -await client.ticketing.tickets.list(); +await client.hris.timeOff.list(); ```
@@ -21621,7 +21627,7 @@ await client.ticketing.tickets.list();
-**request:** `Merge.ticketing.TicketsListRequest` +**request:** `Merge.hris.TimeOffListRequest`
@@ -21629,7 +21635,7 @@ await client.ticketing.tickets.list();
-**requestOptions:** `Tickets.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -21640,7 +21646,7 @@ await client.ticketing.tickets.list();
-
client.ticketing.tickets.create({ ...params }) -> Merge.TicketResponse +
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse
@@ -21652,7 +21658,7 @@ await client.ticketing.tickets.list();
-Creates a `Ticket` object with the given values. +Creates a `TimeOff` object with the given values.
@@ -21668,7 +21674,7 @@ Creates a `Ticket` object with the given values.
```typescript -await client.ticketing.tickets.create({ +await client.hris.timeOff.create({ model: {}, }); ``` @@ -21686,7 +21692,7 @@ await client.ticketing.tickets.create({
-**request:** `Merge.ticketing.TicketEndpointRequest` +**request:** `Merge.hris.TimeOffEndpointRequest`
@@ -21694,7 +21700,7 @@ await client.ticketing.tickets.create({
-**requestOptions:** `Tickets.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -21705,7 +21711,7 @@ await client.ticketing.tickets.create({
-
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket +
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff
@@ -21717,7 +21723,7 @@ await client.ticketing.tickets.create({
-Returns a `Ticket` object with the given `id`. +Returns a `TimeOff` object with the given `id`.
@@ -21733,7 +21739,7 @@ Returns a `Ticket` object with the given `id`.
```typescript -await client.ticketing.tickets.retrieve("id"); +await client.hris.timeOff.retrieve("id"); ```
@@ -21757,7 +21763,7 @@ await client.ticketing.tickets.retrieve("id");
-**request:** `Merge.ticketing.TicketsRetrieveRequest` +**request:** `Merge.hris.TimeOffRetrieveRequest`
@@ -21765,7 +21771,7 @@ await client.ticketing.tickets.retrieve("id");
-**requestOptions:** `Tickets.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -21776,7 +21782,7 @@ await client.ticketing.tickets.retrieve("id");
-
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse +
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse
@@ -21788,7 +21794,7 @@ await client.ticketing.tickets.retrieve("id");
-Updates a `Ticket` object with the given `id`. +Returns metadata for `TimeOff` POSTs.
@@ -21804,41 +21810,23 @@ Updates a `Ticket` object with the given `id`.
```typescript -await client.ticketing.tickets.partialUpdate("id", { - model: {}, -}); -``` - -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` +await client.hris.timeOff.metaPostRetrieve(); +```
+
+
+ +#### ⚙️ Parameters
-**request:** `Merge.ticketing.PatchedTicketEndpointRequest` - -
-
-
-**requestOptions:** `Tickets.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -21849,7 +21837,9 @@ await client.ticketing.tickets.partialUpdate("id", {
-
client.ticketing.tickets.collaboratorsList(parentId, { ...params }) -> Merge.PaginatedUserList +## Hris TimeOffBalances + +
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList
@@ -21861,7 +21851,7 @@ await client.ticketing.tickets.partialUpdate("id", {
-Returns a list of `User` objects. +Returns a list of `TimeOffBalance` objects.
@@ -21877,7 +21867,7 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.tickets.collaboratorsList("parent_id"); +await client.hris.timeOffBalances.list(); ```
@@ -21893,15 +21883,7 @@ await client.ticketing.tickets.collaboratorsList("parent_id");
-**parentId:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsCollaboratorsListRequest` +**request:** `Merge.hris.TimeOffBalancesListRequest`
@@ -21909,7 +21891,7 @@ await client.ticketing.tickets.collaboratorsList("parent_id");
-**requestOptions:** `Tickets.RequestOptions` +**requestOptions:** `TimeOffBalances.RequestOptions`
@@ -21920,7 +21902,7 @@ await client.ticketing.tickets.collaboratorsList("parent_id");
-
client.ticketing.tickets.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance
@@ -21932,7 +21914,7 @@ await client.ticketing.tickets.collaboratorsList("parent_id");
-Returns metadata for `Ticket` PATCHs. +Returns a `TimeOffBalance` object with the given `id`.
@@ -21948,7 +21930,7 @@ Returns metadata for `Ticket` PATCHs.
```typescript -await client.ticketing.tickets.metaPatchRetrieve("id"); +await client.hris.timeOffBalances.retrieve("id"); ```
@@ -21972,7 +21954,15 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-**requestOptions:** `Tickets.RequestOptions` +**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffBalances.RequestOptions`
@@ -21983,7 +21973,9 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-
client.ticketing.tickets.metaPostRetrieve() -> Merge.MetaResponse +## Hris TimesheetEntries + +
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList
@@ -21995,7 +21987,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-Returns metadata for `Ticket` POSTs. +Returns a list of `TimesheetEntry` objects.
@@ -22011,7 +22003,7 @@ Returns metadata for `Ticket` POSTs.
```typescript -await client.ticketing.tickets.metaPostRetrieve(); +await client.hris.timesheetEntries.list(); ```
@@ -22027,7 +22019,15 @@ await client.ticketing.tickets.metaPostRetrieve();
-**requestOptions:** `Tickets.RequestOptions` +**request:** `Merge.hris.TimesheetEntriesListRequest` + +
+
+ +
+
+ +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -22038,7 +22038,7 @@ await client.ticketing.tickets.metaPostRetrieve();
-
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse
@@ -22050,7 +22050,7 @@ await client.ticketing.tickets.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates a `TimesheetEntry` object with the given values.
@@ -22066,7 +22066,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.ticketing.tickets.remoteFieldClassesList(); +await client.hris.timesheetEntries.create({ + model: {}, +}); ```
@@ -22082,7 +22084,7 @@ await client.ticketing.tickets.remoteFieldClassesList();
-**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest` +**request:** `Merge.hris.TimesheetEntryEndpointRequest`
@@ -22090,7 +22092,7 @@ await client.ticketing.tickets.remoteFieldClassesList();
-**requestOptions:** `Tickets.RequestOptions` +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -22101,9 +22103,7 @@ await client.ticketing.tickets.remoteFieldClassesList();
-## Ticketing Users - -
client.ticketing.users.list({ ...params }) -> Merge.PaginatedUserList +
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry
@@ -22115,7 +22115,7 @@ await client.ticketing.tickets.remoteFieldClassesList();
-Returns a list of `User` objects. +Returns a `TimesheetEntry` object with the given `id`.
@@ -22131,7 +22131,7 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.users.list(); +await client.hris.timesheetEntries.retrieve("id"); ```
@@ -22147,7 +22147,7 @@ await client.ticketing.users.list();
-**request:** `Merge.ticketing.UsersListRequest` +**id:** `string`
@@ -22155,7 +22155,15 @@ await client.ticketing.users.list();
-**requestOptions:** `Users.RequestOptions` +**request:** `Merge.hris.TimesheetEntriesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -22166,7 +22174,7 @@ await client.ticketing.users.list();
-
client.ticketing.users.retrieve(id, { ...params }) -> Merge.User +
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse
@@ -22178,7 +22186,7 @@ await client.ticketing.users.list();
-Returns a `User` object with the given `id`. +Returns metadata for `TimesheetEntry` POSTs.
@@ -22194,7 +22202,7 @@ Returns a `User` object with the given `id`.
```typescript -await client.ticketing.users.retrieve("id"); +await client.hris.timesheetEntries.metaPostRetrieve(); ```
@@ -22210,23 +22218,7 @@ await client.ticketing.users.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.UsersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -22237,9 +22229,9 @@ await client.ticketing.users.retrieve("id");
-## Ticketing WebhookReceivers +## Hris WebhookReceivers -
client.ticketing.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -22267,7 +22259,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.ticketing.webhookReceivers.list(); +await client.hris.webhookReceivers.list(); ```
@@ -22294,7 +22286,7 @@ await client.ticketing.webhookReceivers.list();
-
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -22322,7 +22314,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.ticketing.webhookReceivers.create({ +await client.hris.webhookReceivers.create({ event: "event", isActive: true, }); @@ -22341,7 +22333,7 @@ await client.ticketing.webhookReceivers.create({
-**request:** `Merge.ticketing.WebhookReceiverRequest` +**request:** `Merge.hris.WebhookReceiverRequest`
@@ -26179,6 +26171,142 @@ await client.accounting.fieldMapping.targetFieldsRetrieve();
+## Accounting GeneralLedgerTransactions + +
client.accounting.generalLedgerTransactions.list({ ...params }) -> Merge.PaginatedGeneralLedgerTransactionList +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `GeneralLedgerTransaction` objects. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.accounting.generalLedgerTransactions.list(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.accounting.GeneralLedgerTransactionsListRequest` + +
+
+ +
+
+ +**requestOptions:** `GeneralLedgerTransactions.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"); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.GeneralLedgerTransactionsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `GeneralLedgerTransactions.RequestOptions` + +
+
+
+
+ +
+
+
+ ## Accounting GenerateKey
client.accounting.generateKey.create({ ...params }) -> Merge.RemoteKey @@ -26460,6 +26588,7 @@ await client.accounting.invoices.list();
Creates an `Invoice` object with the given values. +Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s).
diff --git a/src/Client.ts b/src/Client.ts index 86f401290..1f384c8f5 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -4,11 +4,11 @@ import * as environments from "./environments"; import * as core from "./core"; +import { Filestorage } from "./api/resources/filestorage/client/Client"; import { Ats } from "./api/resources/ats/client/Client"; +import { Ticketing } from "./api/resources/ticketing/client/Client"; import { Crm } from "./api/resources/crm/client/Client"; -import { Filestorage } from "./api/resources/filestorage/client/Client"; import { Hris } from "./api/resources/hris/client/Client"; -import { Ticketing } from "./api/resources/ticketing/client/Client"; import { Accounting } from "./api/resources/accounting/client/Client"; export declare namespace MergeClient { @@ -37,22 +37,28 @@ export declare namespace MergeClient { export class MergeClient { constructor(protected readonly _options: MergeClient.Options) {} + protected _filestorage: Filestorage | undefined; + + public get filestorage(): Filestorage { + return (this._filestorage ??= new Filestorage(this._options)); + } + protected _ats: Ats | undefined; public get ats(): Ats { return (this._ats ??= new Ats(this._options)); } - protected _crm: Crm | undefined; + protected _ticketing: Ticketing | undefined; - public get crm(): Crm { - return (this._crm ??= new Crm(this._options)); + public get ticketing(): Ticketing { + return (this._ticketing ??= new Ticketing(this._options)); } - protected _filestorage: Filestorage | undefined; + protected _crm: Crm | undefined; - public get filestorage(): Filestorage { - return (this._filestorage ??= new Filestorage(this._options)); + public get crm(): Crm { + return (this._crm ??= new Crm(this._options)); } protected _hris: Hris | undefined; @@ -61,12 +67,6 @@ export class MergeClient { return (this._hris ??= new Hris(this._options)); } - protected _ticketing: Ticketing | undefined; - - public get ticketing(): Ticketing { - return (this._ticketing ??= new Ticketing(this._options)); - } - protected _accounting: Accounting | undefined; public get accounting(): Accounting { diff --git a/src/api/resources/accounting/client/Client.ts b/src/api/resources/accounting/client/Client.ts index aed70d6b7..a879d01f6 100644 --- a/src/api/resources/accounting/client/Client.ts +++ b/src/api/resources/accounting/client/Client.ts @@ -26,6 +26,7 @@ import { DeleteAccount } from "../resources/deleteAccount/client/Client"; import { Employees } from "../resources/employees/client/Client"; import { Expenses } from "../resources/expenses/client/Client"; import { FieldMapping } from "../resources/fieldMapping/client/Client"; +import { GeneralLedgerTransactions } from "../resources/generalLedgerTransactions/client/Client"; import { GenerateKey } from "../resources/generateKey/client/Client"; import { IncomeStatements } from "../resources/incomeStatements/client/Client"; import { Invoices } from "../resources/invoices/client/Client"; @@ -205,6 +206,12 @@ export class Accounting { return (this._fieldMapping ??= new FieldMapping(this._options)); } + protected _generalLedgerTransactions: GeneralLedgerTransactions | undefined; + + public get generalLedgerTransactions(): GeneralLedgerTransactions { + return (this._generalLedgerTransactions ??= new GeneralLedgerTransactions(this._options)); + } + protected _generateKey: GenerateKey | undefined; public get generateKey(): GenerateKey { diff --git a/src/api/resources/accounting/resources/accountDetails/client/Client.ts b/src/api/resources/accounting/resources/accountDetails/client/Client.ts index e6e2f3035..c4f3afcf1 100644 --- a/src/api/resources/accounting/resources/accountDetails/client/Client.ts +++ b/src/api/resources/accounting/resources/accountDetails/client/Client.ts @@ -58,8 +58,8 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/accountToken/client/Client.ts b/src/api/resources/accounting/resources/accountToken/client/Client.ts index 901915cbe..df5196ae7 100644 --- a/src/api/resources/accounting/resources/accountToken/client/Client.ts +++ b/src/api/resources/accounting/resources/accountToken/client/Client.ts @@ -62,8 +62,8 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts index 9cd7747f2..5fe6e16e0 100644 --- a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts +++ b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts @@ -84,8 +84,8 @@ export class AccountingPeriods { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -166,8 +166,8 @@ export class AccountingPeriods { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/accounts/client/Client.ts b/src/api/resources/accounting/resources/accounts/client/Client.ts index 8ec4059e2..ed2d30c21 100644 --- a/src/api/resources/accounting/resources/accounts/client/Client.ts +++ b/src/api/resources/accounting/resources/accounts/client/Client.ts @@ -140,8 +140,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -224,8 +224,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -317,8 +317,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -385,8 +385,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/addresses/client/Client.ts b/src/api/resources/accounting/resources/addresses/client/Client.ts index 526571d73..f23ab0ba8 100644 --- a/src/api/resources/accounting/resources/addresses/client/Client.ts +++ b/src/api/resources/accounting/resources/addresses/client/Client.ts @@ -78,8 +78,8 @@ export class Addresses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts index c0a942c77..a0a32a9bb 100644 --- a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts @@ -65,8 +65,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -141,8 +141,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/asyncTasks/client/Client.ts b/src/api/resources/accounting/resources/asyncTasks/client/Client.ts index db47e1933..18a4df6a8 100644 --- a/src/api/resources/accounting/resources/asyncTasks/client/Client.ts +++ b/src/api/resources/accounting/resources/asyncTasks/client/Client.ts @@ -62,8 +62,8 @@ export class AsyncTasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/attachments/client/Client.ts b/src/api/resources/accounting/resources/attachments/client/Client.ts index 133992f0d..eb0bd9dbf 100644 --- a/src/api/resources/accounting/resources/attachments/client/Client.ts +++ b/src/api/resources/accounting/resources/attachments/client/Client.ts @@ -120,8 +120,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -287,8 +287,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -357,8 +357,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/auditTrail/client/Client.ts b/src/api/resources/accounting/resources/auditTrail/client/Client.ts index c2e77a0fa..17fcae159 100644 --- a/src/api/resources/accounting/resources/auditTrail/client/Client.ts +++ b/src/api/resources/accounting/resources/auditTrail/client/Client.ts @@ -88,8 +88,8 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/availableActions/client/Client.ts b/src/api/resources/accounting/resources/availableActions/client/Client.ts index c39ea8886..9800d0f9c 100644 --- a/src/api/resources/accounting/resources/availableActions/client/Client.ts +++ b/src/api/resources/accounting/resources/availableActions/client/Client.ts @@ -60,8 +60,8 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts index abe43ffea..6535eae77 100644 --- a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts +++ b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts @@ -125,8 +125,8 @@ export class BalanceSheets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class BalanceSheets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts index 38cf34a71..3ed3c7566 100644 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts @@ -84,8 +84,8 @@ export class BankFeedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -170,8 +170,8 @@ export class BankFeedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -255,8 +255,8 @@ export class BankFeedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -327,8 +327,8 @@ export class BankFeedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts index fec494e23..77d13ee6d 100644 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts @@ -125,8 +125,8 @@ export class BankFeedTransactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -211,8 +211,8 @@ export class BankFeedTransactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -300,8 +300,8 @@ export class BankFeedTransactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -372,8 +372,8 @@ export class BankFeedTransactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts index a72091871..2c68e228a 100644 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts +++ b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts @@ -125,8 +125,8 @@ export class CashFlowStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -211,8 +211,8 @@ export class CashFlowStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/companyInfo/client/Client.ts b/src/api/resources/accounting/resources/companyInfo/client/Client.ts index 7ac404d5e..acae771e2 100644 --- a/src/api/resources/accounting/resources/companyInfo/client/Client.ts +++ b/src/api/resources/accounting/resources/companyInfo/client/Client.ts @@ -120,8 +120,8 @@ export class CompanyInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class CompanyInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/contacts/client/Client.ts b/src/api/resources/accounting/resources/contacts/client/Client.ts index 527bc7771..9338040d2 100644 --- a/src/api/resources/accounting/resources/contacts/client/Client.ts +++ b/src/api/resources/accounting/resources/contacts/client/Client.ts @@ -160,8 +160,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -244,8 +244,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -341,8 +341,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -409,8 +409,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -509,8 +509,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/creditNotes/client/Client.ts b/src/api/resources/accounting/resources/creditNotes/client/Client.ts index b9e360b1e..1ac8e6a43 100644 --- a/src/api/resources/accounting/resources/creditNotes/client/Client.ts +++ b/src/api/resources/accounting/resources/creditNotes/client/Client.ts @@ -145,8 +145,8 @@ export class CreditNotes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,8 +229,8 @@ export class CreditNotes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -324,8 +324,8 @@ export class CreditNotes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -394,8 +394,8 @@ export class CreditNotes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/deleteAccount/client/Client.ts b/src/api/resources/accounting/resources/deleteAccount/client/Client.ts index cb794f5a4..8ef42d666 100644 --- a/src/api/resources/accounting/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/accounting/resources/deleteAccount/client/Client.ts @@ -56,8 +56,8 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/employees/client/Client.ts b/src/api/resources/accounting/resources/employees/client/Client.ts index a26fa4e63..a1469512d 100644 --- a/src/api/resources/accounting/resources/employees/client/Client.ts +++ b/src/api/resources/accounting/resources/employees/client/Client.ts @@ -88,8 +88,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -172,8 +172,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/expenses/client/Client.ts b/src/api/resources/accounting/resources/expenses/client/Client.ts index 70141762f..7eaae570d 100644 --- a/src/api/resources/accounting/resources/expenses/client/Client.ts +++ b/src/api/resources/accounting/resources/expenses/client/Client.ts @@ -140,8 +140,8 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -224,8 +224,8 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -313,8 +313,8 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -412,8 +412,8 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -482,8 +482,8 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -582,8 +582,8 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts index 4a2e60778..24f0a446c 100644 --- a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts @@ -68,8 +68,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,8 +153,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -228,8 +228,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -303,8 +303,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -389,8 +389,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -459,8 +459,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/forceResync/client/Client.ts b/src/api/resources/accounting/resources/forceResync/client/Client.ts index dec1e7ae6..9dd144dba 100644 --- a/src/api/resources/accounting/resources/forceResync/client/Client.ts +++ b/src/api/resources/accounting/resources/forceResync/client/Client.ts @@ -60,8 +60,8 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts new file mode 100644 index 000000000..90e2aa5d9 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts @@ -0,0 +1,274 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../../../environments"; +import * as core from "../../../../../../core"; +import * as Merge from "../../../../../index"; +import urlJoin from "url-join"; +import * as serializers from "../../../../../../serialization/index"; +import * as errors from "../../../../../../errors/index"; + +export declare namespace GeneralLedgerTransactions { + interface Options { + environment?: core.Supplier; + apiKey: core.Supplier; + /** Override the X-Account-Token header */ + accountToken?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + /** Override the X-Account-Token header */ + accountToken?: string | undefined; + /** Additional headers to include in the request. */ + headers?: Record; + } +} + +export class GeneralLedgerTransactions { + constructor(protected readonly _options: GeneralLedgerTransactions.Options) {} + + /** + * Returns a list of `GeneralLedgerTransaction` objects. + * + * @param {Merge.accounting.GeneralLedgerTransactionsListRequest} request + * @param {GeneralLedgerTransactions.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.generalLedgerTransactions.list() + */ + public async list( + request: Merge.accounting.GeneralLedgerTransactionsListRequest = {}, + requestOptions?: GeneralLedgerTransactions.RequestOptions + ): Promise { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + postedDateAfter, + postedDateBefore, + remoteId, + } = request; + const _queryParams: Record = {}; + if (companyId != null) { + _queryParams["company_id"] = companyId; + } + + if (createdAfter != null) { + _queryParams["created_after"] = createdAfter.toISOString(); + } + + if (createdBefore != null) { + _queryParams["created_before"] = createdBefore.toISOString(); + } + + if (cursor != null) { + _queryParams["cursor"] = cursor; + } + + if (expand != null) { + _queryParams["expand"] = expand; + } + + if (includeDeletedData != null) { + _queryParams["include_deleted_data"] = includeDeletedData.toString(); + } + + if (includeRemoteData != null) { + _queryParams["include_remote_data"] = includeRemoteData.toString(); + } + + if (includeShellData != null) { + _queryParams["include_shell_data"] = includeShellData.toString(); + } + + if (modifiedAfter != null) { + _queryParams["modified_after"] = modifiedAfter.toISOString(); + } + + if (modifiedBefore != null) { + _queryParams["modified_before"] = modifiedBefore.toISOString(); + } + + if (pageSize != null) { + _queryParams["page_size"] = pageSize.toString(); + } + + if (postedDateAfter != null) { + _queryParams["posted_date_after"] = postedDateAfter.toISOString(); + } + + if (postedDateBefore != null) { + _queryParams["posted_date_before"] = postedDateBefore.toISOString(); + } + + if (remoteId != null) { + _queryParams["remote_id"] = remoteId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, + "accounting/v1/general-ledger-transactions" + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Account-Token": + (await core.Supplier.get(this._options.accountToken)) != null + ? await core.Supplier.get(this._options.accountToken) + : undefined, + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@mergeapi/merge-node-client", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.accounting.PaginatedGeneralLedgerTransactionList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.MergeTimeoutError( + "Timeout exceeded when calling GET /accounting/v1/general-ledger-transactions." + ); + case "unknown": + throw new errors.MergeError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Returns a `GeneralLedgerTransaction` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.GeneralLedgerTransactionsRetrieveRequest} request + * @param {GeneralLedgerTransactions.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.generalLedgerTransactions.retrieve("id") + */ + public async retrieve( + id: string, + request: Merge.accounting.GeneralLedgerTransactionsRetrieveRequest = {}, + requestOptions?: GeneralLedgerTransactions.RequestOptions + ): Promise { + const { expand, includeRemoteData } = request; + const _queryParams: Record = {}; + if (expand != null) { + _queryParams["expand"] = expand; + } + + if (includeRemoteData != null) { + _queryParams["include_remote_data"] = includeRemoteData.toString(); + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, + `accounting/v1/general-ledger-transactions/${encodeURIComponent(id)}` + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Account-Token": + (await core.Supplier.get(this._options.accountToken)) != null + ? await core.Supplier.get(this._options.accountToken) + : undefined, + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@mergeapi/merge-node-client", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.accounting.GeneralLedgerTransaction.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.MergeTimeoutError( + "Timeout exceeded when calling GET /accounting/v1/general-ledger-transactions/{id}." + ); + case "unknown": + throw new errors.MergeError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; + } +} diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/index.ts new file mode 100644 index 000000000..415726b7f --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsCollaboratorsListRequest.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts similarity index 51% rename from src/api/resources/ticketing/resources/tickets/client/requests/TicketsCollaboratorsListRequest.ts rename to src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts index 8a6d84ac1..6ac8ddb78 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsCollaboratorsListRequest.ts +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts @@ -8,7 +8,19 @@ import * as Merge from "../../../../../../index"; * @example * {} */ -export interface TicketsCollaboratorsListRequest { +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. */ @@ -16,7 +28,7 @@ export interface TicketsCollaboratorsListRequest { /** * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.TicketsCollaboratorsListRequestExpand; + 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/). */ @@ -29,8 +41,28 @@ export interface TicketsCollaboratorsListRequest { * 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 new file mode 100644 index 000000000..d7e27d025 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../../../../index"; + +/** + * @example + * {} + */ +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; +} diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/index.ts new file mode 100644 index 000000000..e887f46e7 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/index.ts @@ -0,0 +1,2 @@ +export { type GeneralLedgerTransactionsListRequest } from "./GeneralLedgerTransactionsListRequest"; +export { type GeneralLedgerTransactionsRetrieveRequest } from "./GeneralLedgerTransactionsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/index.ts new file mode 100644 index 000000000..c9240f83b --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts new file mode 100644 index 000000000..a6b0e8284 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GeneralLedgerTransactionsListRequestExpand = + | "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 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; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts new file mode 100644 index 000000000..cd1bae423 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GeneralLedgerTransactionsRetrieveRequestExpand = + | "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 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; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts new file mode 100644 index 000000000..e77fb4471 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts @@ -0,0 +1,2 @@ +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 index 42ef2bd51..2c8df68ad 100644 --- a/src/api/resources/accounting/resources/generateKey/client/Client.ts +++ b/src/api/resources/accounting/resources/generateKey/client/Client.ts @@ -64,8 +64,8 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts index 4656a0240..29e650030 100644 --- a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts +++ b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts @@ -125,8 +125,8 @@ export class IncomeStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -211,8 +211,8 @@ export class IncomeStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/index.ts b/src/api/resources/accounting/resources/index.ts index 9fa514717..7d12f40aa 100644 --- a/src/api/resources/accounting/resources/index.ts +++ b/src/api/resources/accounting/resources/index.ts @@ -10,6 +10,8 @@ export * as creditNotes from "./creditNotes"; export * from "./creditNotes/types"; export * as expenses from "./expenses"; export * from "./expenses/types"; +export * as generalLedgerTransactions from "./generalLedgerTransactions"; +export * from "./generalLedgerTransactions/types"; export * as invoices from "./invoices"; export * from "./invoices/types"; export * as issues from "./issues"; @@ -71,6 +73,7 @@ export * from "./scopes/client/requests"; export * from "./employees/client/requests"; export * from "./expenses/client/requests"; export * from "./fieldMapping/client/requests"; +export * from "./generalLedgerTransactions/client/requests"; export * from "./generateKey/client/requests"; export * from "./incomeStatements/client/requests"; export * from "./invoices/client/requests"; diff --git a/src/api/resources/accounting/resources/invoices/client/Client.ts b/src/api/resources/accounting/resources/invoices/client/Client.ts index 602ad05a9..9dc564d1a 100644 --- a/src/api/resources/accounting/resources/invoices/client/Client.ts +++ b/src/api/resources/accounting/resources/invoices/client/Client.ts @@ -63,10 +63,12 @@ export class Invoices { issueDateBefore, modifiedAfter, modifiedBefore, + number: number_, pageSize, remoteFields, remoteId, showEnumOrigins, + status, type: type_, } = request; const _queryParams: Record = {}; @@ -126,6 +128,10 @@ export class Invoices { _queryParams["modified_before"] = modifiedBefore.toISOString(); } + if (number_ != null) { + _queryParams["number"] = number_; + } + if (pageSize != null) { _queryParams["page_size"] = pageSize.toString(); } @@ -142,6 +148,10 @@ export class Invoices { _queryParams["show_enum_origins"] = showEnumOrigins; } + if (status != null) { + _queryParams["status"] = status; + } + if (type_ != null) { _queryParams["type"] = type_; } @@ -160,8 +170,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -207,6 +217,7 @@ export class 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 {Invoices.RequestOptions} requestOptions - Request-specific configuration. @@ -244,8 +255,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -341,8 +352,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -427,8 +438,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -529,8 +540,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -603,8 +614,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -672,8 +683,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -772,8 +783,8 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts index 129b37ace..3d0131bdb 100644 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts @@ -65,6 +65,10 @@ export interface InvoicesListRequest { * 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. */ @@ -82,7 +86,18 @@ export interface InvoicesListRequest { */ showEnumOrigins?: "type"; /** - * If provided, will only return Invoices with this 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 diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts new file mode 100644 index 000000000..d2eeb89ca --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type InvoicesListRequestStatus = "DRAFT" | "OPEN" | "PAID" | "PARTIALLY_PAID" | "SUBMITTED" | "VOID"; + +export const InvoicesListRequestStatus = { + Draft: "DRAFT", + Open: "OPEN", + Paid: "PAID", + PartiallyPaid: "PARTIALLY_PAID", + Submitted: "SUBMITTED", + Void: "VOID", +} as const; diff --git a/src/api/resources/accounting/resources/invoices/types/index.ts b/src/api/resources/accounting/resources/invoices/types/index.ts index 0f37ec2ca..6066a0bb6 100644 --- a/src/api/resources/accounting/resources/invoices/types/index.ts +++ b/src/api/resources/accounting/resources/invoices/types/index.ts @@ -1,3 +1,4 @@ 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 index ad68488f8..97c9fe273 100644 --- a/src/api/resources/accounting/resources/issues/client/Client.ts +++ b/src/api/resources/accounting/resources/issues/client/Client.ts @@ -135,8 +135,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/items/client/Client.ts b/src/api/resources/accounting/resources/items/client/Client.ts index 839e6a44b..9711f3990 100644 --- a/src/api/resources/accounting/resources/items/client/Client.ts +++ b/src/api/resources/accounting/resources/items/client/Client.ts @@ -135,8 +135,8 @@ export class Items { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -227,8 +227,8 @@ export class Items { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/journalEntries/client/Client.ts b/src/api/resources/accounting/resources/journalEntries/client/Client.ts index 970eff20b..1107449f0 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/Client.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/Client.ts @@ -140,8 +140,8 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -224,8 +224,8 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -317,8 +317,8 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -418,8 +418,8 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -490,8 +490,8 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -590,8 +590,8 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/linkToken/client/Client.ts b/src/api/resources/accounting/resources/linkToken/client/Client.ts index e756f6382..1a867e375 100644 --- a/src/api/resources/accounting/resources/linkToken/client/Client.ts +++ b/src/api/resources/accounting/resources/linkToken/client/Client.ts @@ -67,8 +67,8 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts index 1b664fa3c..ad7bb68ae 100644 --- a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts @@ -130,8 +130,8 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/passthrough/client/Client.ts b/src/api/resources/accounting/resources/passthrough/client/Client.ts index 14b5b34d3..d3dc33a87 100644 --- a/src/api/resources/accounting/resources/passthrough/client/Client.ts +++ b/src/api/resources/accounting/resources/passthrough/client/Client.ts @@ -65,8 +65,8 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/payments/client/Client.ts b/src/api/resources/accounting/resources/payments/client/Client.ts index 37bd83c49..d77b5a0bf 100644 --- a/src/api/resources/accounting/resources/payments/client/Client.ts +++ b/src/api/resources/accounting/resources/payments/client/Client.ts @@ -150,8 +150,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,8 +234,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -323,8 +323,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -409,8 +409,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -511,8 +511,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -585,8 +585,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -654,8 +654,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -754,8 +754,8 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts b/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts index d6a4c200b..ce8f4ccdc 100644 --- a/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts +++ b/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts @@ -70,8 +70,8 @@ export class PhoneNumbers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts index 01bd85a4e..22e9f24b2 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts @@ -150,8 +150,8 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,8 +234,8 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -335,8 +335,8 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -436,8 +436,8 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -508,8 +508,8 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -608,8 +608,8 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/regenerateKey/client/Client.ts b/src/api/resources/accounting/resources/regenerateKey/client/Client.ts index fb25f102e..9e2d36553 100644 --- a/src/api/resources/accounting/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/accounting/resources/regenerateKey/client/Client.ts @@ -64,8 +64,8 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/scopes/client/Client.ts b/src/api/resources/accounting/resources/scopes/client/Client.ts index 7116c28e7..046fdf888 100644 --- a/src/api/resources/accounting/resources/scopes/client/Client.ts +++ b/src/api/resources/accounting/resources/scopes/client/Client.ts @@ -60,8 +60,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -129,8 +129,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -225,8 +225,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/syncStatus/client/Client.ts b/src/api/resources/accounting/resources/syncStatus/client/Client.ts index cd38e175a..2563f75d9 100644 --- a/src/api/resources/accounting/resources/syncStatus/client/Client.ts +++ b/src/api/resources/accounting/resources/syncStatus/client/Client.ts @@ -72,8 +72,8 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/taxRates/client/Client.ts b/src/api/resources/accounting/resources/taxRates/client/Client.ts index 79dbf84c5..2b7df2ecc 100644 --- a/src/api/resources/accounting/resources/taxRates/client/Client.ts +++ b/src/api/resources/accounting/resources/taxRates/client/Client.ts @@ -125,8 +125,8 @@ export class TaxRates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class TaxRates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts index d6ab83b74..297297111 100644 --- a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts +++ b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts @@ -135,8 +135,8 @@ export class TrackingCategories { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,8 +229,8 @@ export class TrackingCategories { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/transactions/client/Client.ts b/src/api/resources/accounting/resources/transactions/client/Client.ts index 5126bc51f..dc5879670 100644 --- a/src/api/resources/accounting/resources/transactions/client/Client.ts +++ b/src/api/resources/accounting/resources/transactions/client/Client.ts @@ -135,8 +135,8 @@ export class Transactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -219,8 +219,8 @@ export class Transactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts index b22e821de..431d2354b 100644 --- a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts +++ b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts @@ -135,8 +135,8 @@ export class VendorCredits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -219,8 +219,8 @@ export class VendorCredits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -306,8 +306,8 @@ export class VendorCredits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -378,8 +378,8 @@ export class VendorCredits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts b/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts index b9474e496..23865ef4c 100644 --- a/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts @@ -58,8 +58,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -134,8 +134,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/accounting/types/AccountCurrency.ts b/src/api/resources/accounting/types/AccountCurrency.ts index 2766362bc..4ef0bfed6 100644 --- a/src/api/resources/accounting/types/AccountCurrency.ts +++ b/src/api/resources/accounting/types/AccountCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type AccountCurrency = Merge.accounting.CurrencyEnum | string; +export type AccountCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/AccountRequestCurrency.ts b/src/api/resources/accounting/types/AccountRequestCurrency.ts index ff6a0a4ca..f92518a82 100644 --- a/src/api/resources/accounting/types/AccountRequestCurrency.ts +++ b/src/api/resources/accounting/types/AccountRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type AccountRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type AccountRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/BalanceSheetCurrency.ts b/src/api/resources/accounting/types/BalanceSheetCurrency.ts index 45cbed993..b65d46305 100644 --- a/src/api/resources/accounting/types/BalanceSheetCurrency.ts +++ b/src/api/resources/accounting/types/BalanceSheetCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type BalanceSheetCurrency = Merge.accounting.CurrencyEnum | string; +export type BalanceSheetCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountCurrency.ts b/src/api/resources/accounting/types/BankFeedAccountCurrency.ts index 3c6a15720..f1555a5f4 100644 --- a/src/api/resources/accounting/types/BankFeedAccountCurrency.ts +++ b/src/api/resources/accounting/types/BankFeedAccountCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type BankFeedAccountCurrency = Merge.accounting.CurrencyEnum | string; +export type BankFeedAccountCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts b/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts index 4cc444849..8f2ef628d 100644 --- a/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts +++ b/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type BankFeedAccountRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type BankFeedAccountRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CashFlowStatementCurrency.ts b/src/api/resources/accounting/types/CashFlowStatementCurrency.ts index 61600481a..be1d30ac2 100644 --- a/src/api/resources/accounting/types/CashFlowStatementCurrency.ts +++ b/src/api/resources/accounting/types/CashFlowStatementCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type CashFlowStatementCurrency = Merge.accounting.CurrencyEnum | string; +export type CashFlowStatementCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CompanyInfoCurrency.ts b/src/api/resources/accounting/types/CompanyInfoCurrency.ts index 1c14101c8..fee60e2d8 100644 --- a/src/api/resources/accounting/types/CompanyInfoCurrency.ts +++ b/src/api/resources/accounting/types/CompanyInfoCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type CompanyInfoCurrency = Merge.accounting.CurrencyEnum | string; +export type CompanyInfoCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CreditNote.ts b/src/api/resources/accounting/types/CreditNote.ts index ccb98de59..3d40b1de9 100644 --- a/src/api/resources/accounting/types/CreditNote.ts +++ b/src/api/resources/accounting/types/CreditNote.ts @@ -368,12 +368,12 @@ export interface CreditNote { 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)[]; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is 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 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/CreditNoteCurrency.ts b/src/api/resources/accounting/types/CreditNoteCurrency.ts index 61f74cc0d..c1af7359c 100644 --- a/src/api/resources/accounting/types/CreditNoteCurrency.ts +++ b/src/api/resources/accounting/types/CreditNoteCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type CreditNoteCurrency = Merge.accounting.CurrencyEnum | string; +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 index 18cade257..a9f3f6b2e 100644 --- a/src/api/resources/accounting/types/CreditNoteLineItem.ts +++ b/src/api/resources/accounting/types/CreditNoteLineItem.ts @@ -4,6 +4,17 @@ import * 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. */ diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts index ff8f6ac59..ea3fdaf78 100644 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts +++ b/src/api/resources/accounting/types/CreditNoteLineItemRequest.ts @@ -4,6 +4,17 @@ import * 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; diff --git a/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts b/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts index 9ff69c33c..3abaa0600 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts @@ -2,4 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -export type CreditNoteRequestAppliedPaymentsItem = string | unknown; +import * as Merge from "../../../index"; + +export type CreditNoteRequestAppliedPaymentsItem = string | Merge.accounting.PaymentLineItem; diff --git a/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts b/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts index 8a6da88bd..723e2b51d 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type CreditNoteRequestCurrency = Merge.accounting.CurrencyEnum | string; +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 index 9d239d916..f0a7c8e3d 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestLineItemsItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type CreditNoteRequestLineItemsItem = string | Merge.accounting.CreditNoteLineItem; +export type CreditNoteRequestLineItemsItem = string | Merge.accounting.CreditNoteLineItemRequest; diff --git a/src/api/resources/accounting/types/ExpenseCurrency.ts b/src/api/resources/accounting/types/ExpenseCurrency.ts index 8bf13117e..620bbc752 100644 --- a/src/api/resources/accounting/types/ExpenseCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseCurrency = Merge.accounting.CurrencyEnum | string; +export type ExpenseCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseLineCurrency.ts b/src/api/resources/accounting/types/ExpenseLineCurrency.ts index 5006bd2e5..c564245a0 100644 --- a/src/api/resources/accounting/types/ExpenseLineCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseLineCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseLineCurrency = Merge.accounting.CurrencyEnum | string; +export type ExpenseLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts index 084ac3880..77d6bc20b 100644 --- a/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseLineRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type ExpenseLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseRequestCurrency.ts index 4c35486e2..e864577f2 100644 --- a/src/api/resources/accounting/types/ExpenseRequestCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type ExpenseRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransaction.ts b/src/api/resources/accounting/types/GeneralLedgerTransaction.ts new file mode 100644 index 000000000..8a7b78e7d --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransaction.ts @@ -0,0 +1,61 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..9c28fad50 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..448626312 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionCompany.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..835306ce4 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..d00f9accf --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLine.ts @@ -0,0 +1,666 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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; + /** + * 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.TrackingCategory[]; + 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 new file mode 100644 index 000000000..71b6cca66 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineAccount.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..5a36111f1 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts @@ -0,0 +1,317 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..67d43cae7 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..0b1967da3 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineContact.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..70834015c --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..82470b469 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type GeneralLedgerTransactionLineItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts new file mode 100644 index 000000000..bd0003114 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts @@ -0,0 +1,317 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..4d366b379 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..510b8bf43 --- /dev/null +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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/IncomeStatementCurrency.ts b/src/api/resources/accounting/types/IncomeStatementCurrency.ts index e8b378d97..13de54788 100644 --- a/src/api/resources/accounting/types/IncomeStatementCurrency.ts +++ b/src/api/resources/accounting/types/IncomeStatementCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type IncomeStatementCurrency = Merge.accounting.CurrencyEnum | string; +export type IncomeStatementCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceCurrency.ts b/src/api/resources/accounting/types/InvoiceCurrency.ts index 9b878506f..8f17454a0 100644 --- a/src/api/resources/accounting/types/InvoiceCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceCurrency = Merge.accounting.CurrencyEnum | string; +export type InvoiceCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts b/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts index 5b2bbb6fd..0af06d0ec 100644 --- a/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceLineItemCurrency = Merge.accounting.CurrencyEnum | string; +export type InvoiceLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts index a7e9a606c..14d5a6faa 100644 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceLineItemRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type InvoiceLineItemRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestCurrency.ts b/src/api/resources/accounting/types/InvoiceRequestCurrency.ts index 094049883..39e582078 100644 --- a/src/api/resources/accounting/types/InvoiceRequestCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type InvoiceRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalEntryCurrency.ts b/src/api/resources/accounting/types/JournalEntryCurrency.ts index cf1414d8b..64491814d 100644 --- a/src/api/resources/accounting/types/JournalEntryCurrency.ts +++ b/src/api/resources/accounting/types/JournalEntryCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalEntryCurrency = Merge.accounting.CurrencyEnum | string; +export type JournalEntryCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts b/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts index 23f0b6fab..bf9ab3b1e 100644 --- a/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts +++ b/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalEntryRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type JournalEntryRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalLineCurrency.ts b/src/api/resources/accounting/types/JournalLineCurrency.ts index e9bfbae46..c45d2d742 100644 --- a/src/api/resources/accounting/types/JournalLineCurrency.ts +++ b/src/api/resources/accounting/types/JournalLineCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalLineCurrency = Merge.accounting.CurrencyEnum | string; +export type JournalLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/JournalLineRequestCurrency.ts b/src/api/resources/accounting/types/JournalLineRequestCurrency.ts index f73f7b18d..97c53495a 100644 --- a/src/api/resources/accounting/types/JournalLineRequestCurrency.ts +++ b/src/api/resources/accounting/types/JournalLineRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalLineRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type JournalLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts b/src/api/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts new file mode 100644 index 000000000..34d20f9be --- /dev/null +++ b/src/api/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export interface PaginatedGeneralLedgerTransactionList { + next?: string; + previous?: string; + results?: Merge.accounting.GeneralLedgerTransaction[]; +} diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts b/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts index 0891a2313..832839374 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts +++ b/src/api/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type PatchedPaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItem; +export type PatchedPaymentRequestAppliedToLinesItem = string | Merge.accounting.PaymentLineItemRequest; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts b/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts index a6753d462..bdb55f5ef 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts +++ b/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PatchedPaymentRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type PatchedPaymentRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PaymentCurrency.ts b/src/api/resources/accounting/types/PaymentCurrency.ts index 14422ce2f..be98e9af9 100644 --- a/src/api/resources/accounting/types/PaymentCurrency.ts +++ b/src/api/resources/accounting/types/PaymentCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PaymentCurrency = Merge.accounting.CurrencyEnum | string; +export type PaymentCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PaymentRequestCurrency.ts b/src/api/resources/accounting/types/PaymentRequestCurrency.ts index b1e40c593..a6867fd3b 100644 --- a/src/api/resources/accounting/types/PaymentRequestCurrency.ts +++ b/src/api/resources/accounting/types/PaymentRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PaymentRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type PaymentRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderCurrency.ts index ee78c87da..abade229e 100644 --- a/src/api/resources/accounting/types/PurchaseOrderCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderCurrency = Merge.accounting.CurrencyEnum | string; +export type PurchaseOrderCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts index ea2b572e6..4de269329 100644 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderLineItemCurrency = Merge.accounting.CurrencyEnum | string; +export type PurchaseOrderLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts index 6ca8a2f6b..62701b7ff 100644 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderLineItemRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type PurchaseOrderLineItemRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts index 66fd93dfa..363e7328e 100644 --- a/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type PurchaseOrderRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/RemoteData.ts b/src/api/resources/accounting/types/RemoteData.ts index 0f2f4454c..928b06e7a 100644 --- a/src/api/resources/accounting/types/RemoteData.ts +++ b/src/api/resources/accounting/types/RemoteData.ts @@ -2,7 +2,19 @@ * 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; data?: unknown; } diff --git a/src/api/resources/accounting/types/TrackingCategory.ts b/src/api/resources/accounting/types/TrackingCategory.ts index cc3c60224..108ac747f 100644 --- a/src/api/resources/accounting/types/TrackingCategory.ts +++ b/src/api/resources/accounting/types/TrackingCategory.ts @@ -39,12 +39,10 @@ export interface TrackingCategory { * - `DEPARTMENT` - DEPARTMENT */ categoryType?: Merge.accounting.TrackingCategoryCategoryType; - /** ID of the parent tracking category. */ parentCategory?: string; - /** The company the tracking category belongs to. */ + /** 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; - remoteData?: Merge.accounting.RemoteData[]; } diff --git a/src/api/resources/accounting/types/TrackingCategoryCompany.ts b/src/api/resources/accounting/types/TrackingCategoryCompany.ts index a5a6a6b38..9184933f7 100644 --- a/src/api/resources/accounting/types/TrackingCategoryCompany.ts +++ b/src/api/resources/accounting/types/TrackingCategoryCompany.ts @@ -5,6 +5,6 @@ import * as Merge from "../../../index"; /** - * The company the tracking category belongs to. + * The company the GeneralLedgerTransaction belongs to. */ export type TrackingCategoryCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/TransactionCurrency.ts b/src/api/resources/accounting/types/TransactionCurrency.ts index 09e333249..83ae9ebed 100644 --- a/src/api/resources/accounting/types/TransactionCurrency.ts +++ b/src/api/resources/accounting/types/TransactionCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type TransactionCurrency = Merge.accounting.CurrencyEnum | string; +export type TransactionCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/CurrencyEnum.ts b/src/api/resources/accounting/types/TransactionCurrencyEnum.ts similarity index 99% rename from src/api/resources/accounting/types/CurrencyEnum.ts rename to src/api/resources/accounting/types/TransactionCurrencyEnum.ts index dd303c7dc..41ace7c40 100644 --- a/src/api/resources/accounting/types/CurrencyEnum.ts +++ b/src/api/resources/accounting/types/TransactionCurrencyEnum.ts @@ -310,7 +310,7 @@ * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type CurrencyEnum = +export type TransactionCurrencyEnum = | "XUA" | "AFN" | "AFA" @@ -618,7 +618,7 @@ export type CurrencyEnum = | "ZWR" | "ZWL"; -export const CurrencyEnum = { +export const TransactionCurrencyEnum = { Xua: "XUA", Afn: "AFN", Afa: "AFA", diff --git a/src/api/resources/accounting/types/TransactionLineItemCurrency.ts b/src/api/resources/accounting/types/TransactionLineItemCurrency.ts index 9e58a239d..7338c4a0a 100644 --- a/src/api/resources/accounting/types/TransactionLineItemCurrency.ts +++ b/src/api/resources/accounting/types/TransactionLineItemCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type TransactionLineItemCurrency = Merge.accounting.CurrencyEnum | string; +export type TransactionLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/UnderlyingTransactionTypeEnum.ts b/src/api/resources/accounting/types/UnderlyingTransactionTypeEnum.ts new file mode 100644 index 000000000..b065774dd --- /dev/null +++ b/src/api/resources/accounting/types/UnderlyingTransactionTypeEnum.ts @@ -0,0 +1,31 @@ +/** + * 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 type UnderlyingTransactionTypeEnum = + | "INVOICE" + | "EXPENSE" + | "TRANSACTION" + | "JOURNAL_ENTRY" + | "PAYMENT" + | "VENDOR_CREDIT" + | "CREDIT_NOTE"; + +export const UnderlyingTransactionTypeEnum = { + Invoice: "INVOICE", + Expense: "EXPENSE", + Transaction: "TRANSACTION", + JournalEntry: "JOURNAL_ENTRY", + Payment: "PAYMENT", + VendorCredit: "VENDOR_CREDIT", + CreditNote: "CREDIT_NOTE", +} as const; diff --git a/src/api/resources/accounting/types/VendorCreditCurrency.ts b/src/api/resources/accounting/types/VendorCreditCurrency.ts index 9f742336f..ae23cc7dc 100644 --- a/src/api/resources/accounting/types/VendorCreditCurrency.ts +++ b/src/api/resources/accounting/types/VendorCreditCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type VendorCreditCurrency = Merge.accounting.CurrencyEnum | string; +export type VendorCreditCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts b/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts index c5d7ac120..7140d8c98 100644 --- a/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts +++ b/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * - `ZWR` - Zimbabwean Dollar (2008) * - `ZWL` - Zimbabwean Dollar (2009) */ -export type VendorCreditRequestCurrency = Merge.accounting.CurrencyEnum | string; +export type VendorCreditRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/index.ts b/src/api/resources/accounting/types/index.ts index 68210b836..05d5f368e 100644 --- a/src/api/resources/accounting/types/index.ts +++ b/src/api/resources/accounting/types/index.ts @@ -115,7 +115,6 @@ export * from "./CreditNoteRequest"; export * from "./CreditNoteResponse"; export * from "./CreditNoteStatusEnum"; export * from "./CreditOrDebitEnum"; -export * from "./CurrencyEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -172,6 +171,20 @@ export * from "./FieldMappingInstanceResponse"; export * from "./FieldPermissionDeserializer"; export * from "./FieldPermissionDeserializerRequest"; export * from "./FieldTypeEnum"; +export * from "./GeneralLedgerTransactionUnderlyingTransactionType"; +export * from "./GeneralLedgerTransactionAccountingPeriod"; +export * from "./GeneralLedgerTransactionCompany"; +export * from "./GeneralLedgerTransactionTrackingCategoriesItem"; +export * from "./GeneralLedgerTransactionGeneralLedgerTransactionLinesItem"; +export * from "./GeneralLedgerTransaction"; +export * from "./GeneralLedgerTransactionLineAccount"; +export * from "./GeneralLedgerTransactionLineCompany"; +export * from "./GeneralLedgerTransactionLineEmployee"; +export * from "./GeneralLedgerTransactionLineContact"; +export * from "./GeneralLedgerTransactionLineBaseCurrency"; +export * from "./GeneralLedgerTransactionLineTransactionCurrency"; +export * from "./GeneralLedgerTransactionLineItem"; +export * from "./GeneralLedgerTransactionLine"; export * from "./IncomeStatementCurrency"; export * from "./IncomeStatementCompany"; export * from "./IncomeStatement"; @@ -280,6 +293,7 @@ export * from "./PaginatedContactList"; export * from "./PaginatedCreditNoteList"; export * from "./PaginatedEmployeeList"; export * from "./PaginatedExpenseList"; +export * from "./PaginatedGeneralLedgerTransactionList"; export * from "./PaginatedIncomeStatementList"; export * from "./PaginatedInvoiceList"; export * from "./PaginatedIssueList"; @@ -384,9 +398,11 @@ export * from "./TransactionCurrency"; export * from "./TransactionTrackingCategoriesItem"; export * from "./TransactionAccountingPeriod"; export * from "./Transaction"; +export * from "./TransactionCurrencyEnum"; export * from "./TransactionLineItemItem"; export * from "./TransactionLineItemCurrency"; export * from "./TransactionLineItem"; +export * from "./UnderlyingTransactionTypeEnum"; export * from "./ValidationProblemSource"; export * from "./VendorCreditVendor"; export * from "./VendorCreditCurrency"; diff --git a/src/api/resources/ats/resources/accountDetails/client/Client.ts b/src/api/resources/ats/resources/accountDetails/client/Client.ts index 2c6549368..c7c1b84fc 100644 --- a/src/api/resources/ats/resources/accountDetails/client/Client.ts +++ b/src/api/resources/ats/resources/accountDetails/client/Client.ts @@ -58,8 +58,8 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/accountToken/client/Client.ts b/src/api/resources/ats/resources/accountToken/client/Client.ts index 457f304db..3b54cdbf4 100644 --- a/src/api/resources/ats/resources/accountToken/client/Client.ts +++ b/src/api/resources/ats/resources/accountToken/client/Client.ts @@ -62,8 +62,8 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/activities/client/Client.ts b/src/api/resources/ats/resources/activities/client/Client.ts index 4b4a3c84d..c38be0d67 100644 --- a/src/api/resources/ats/resources/activities/client/Client.ts +++ b/src/api/resources/ats/resources/activities/client/Client.ts @@ -135,8 +135,8 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -220,8 +220,8 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -313,8 +313,8 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -381,8 +381,8 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/applications/client/Client.ts b/src/api/resources/ats/resources/applications/client/Client.ts index 6e0fc0df9..3268d9cc9 100644 --- a/src/api/resources/ats/resources/applications/client/Client.ts +++ b/src/api/resources/ats/resources/applications/client/Client.ts @@ -150,8 +150,8 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -197,6 +197,9 @@ export class 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 {Applications.RequestOptions} requestOptions - Request-specific configuration. @@ -235,8 +238,8 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -320,8 +323,8 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -404,8 +407,8 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -485,8 +488,8 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts b/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts index b4a347f6c..33be55a55 100644 --- a/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts @@ -65,8 +65,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -137,8 +137,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/attachments/client/Client.ts b/src/api/resources/ats/resources/attachments/client/Client.ts index b6f716add..babb7cee3 100644 --- a/src/api/resources/ats/resources/attachments/client/Client.ts +++ b/src/api/resources/ats/resources/attachments/client/Client.ts @@ -135,8 +135,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -220,8 +220,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -313,8 +313,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -381,8 +381,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/auditTrail/client/Client.ts b/src/api/resources/ats/resources/auditTrail/client/Client.ts index 5055d0533..8cafe4289 100644 --- a/src/api/resources/ats/resources/auditTrail/client/Client.ts +++ b/src/api/resources/ats/resources/auditTrail/client/Client.ts @@ -88,8 +88,8 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 72b9c9242..70181ee38 100644 --- a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `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; /** diff --git a/src/api/resources/ats/resources/availableActions/client/Client.ts b/src/api/resources/ats/resources/availableActions/client/Client.ts index 770d2801c..4fcae321c 100644 --- a/src/api/resources/ats/resources/availableActions/client/Client.ts +++ b/src/api/resources/ats/resources/availableActions/client/Client.ts @@ -58,8 +58,8 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/candidates/client/Client.ts b/src/api/resources/ats/resources/candidates/client/Client.ts index bfe161d78..dc3e368cf 100644 --- a/src/api/resources/ats/resources/candidates/client/Client.ts +++ b/src/api/resources/ats/resources/candidates/client/Client.ts @@ -140,8 +140,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -225,8 +225,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -310,8 +310,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -397,8 +397,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -476,8 +476,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -544,8 +544,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -613,8 +613,8 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/deleteAccount/client/Client.ts b/src/api/resources/ats/resources/deleteAccount/client/Client.ts index 428f909e3..bc145d999 100644 --- a/src/api/resources/ats/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/ats/resources/deleteAccount/client/Client.ts @@ -56,8 +56,8 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/departments/client/Client.ts b/src/api/resources/ats/resources/departments/client/Client.ts index f80898e23..419af3164 100644 --- a/src/api/resources/ats/resources/departments/client/Client.ts +++ b/src/api/resources/ats/resources/departments/client/Client.ts @@ -115,8 +115,8 @@ export class Departments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Departments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/eeocs/client/Client.ts b/src/api/resources/ats/resources/eeocs/client/Client.ts index cf22c94e8..7ccbf1e97 100644 --- a/src/api/resources/ats/resources/eeocs/client/Client.ts +++ b/src/api/resources/ats/resources/eeocs/client/Client.ts @@ -135,8 +135,8 @@ export class Eeocs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -227,8 +227,8 @@ export class Eeocs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/fieldMapping/client/Client.ts b/src/api/resources/ats/resources/fieldMapping/client/Client.ts index ce8dd82ff..99b5663c3 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/Client.ts @@ -38,14 +38,22 @@ export class FieldMapping { /** * 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 {FieldMapping.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.ats.fieldMapping.fieldMappingsRetrieve() */ public async fieldMappingsRetrieve( + request: Merge.ats.FieldMappingsRetrieveRequest = {}, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -60,13 +68,14 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, @@ -124,6 +133,12 @@ export class FieldMapping { request: Merge.ats.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata, ..._body } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -138,15 +153,16 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", - body: serializers.ats.CreateFieldMappingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: serializers.ats.CreateFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -210,8 +226,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -285,8 +301,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -371,8 +387,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -441,8 +457,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 21c3ca085..c4a2012c1 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -14,6 +14,10 @@ * } */ 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. */ diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts new file mode 100644 index 000000000..3ad738346 --- /dev/null +++ b/src/api/resources/ats/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +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/index.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/index.ts index 450f54c2b..5cc5b6db1 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/index.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/requests/index.ts @@ -1,3 +1,4 @@ +export { type FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; export { type CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; export { type PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; export { type RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/ats/resources/forceResync/client/Client.ts b/src/api/resources/ats/resources/forceResync/client/Client.ts index a74b3c29e..29fe30fc2 100644 --- a/src/api/resources/ats/resources/forceResync/client/Client.ts +++ b/src/api/resources/ats/resources/forceResync/client/Client.ts @@ -58,8 +58,8 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/generateKey/client/Client.ts b/src/api/resources/ats/resources/generateKey/client/Client.ts index 135c6b498..d2bc0fa65 100644 --- a/src/api/resources/ats/resources/generateKey/client/Client.ts +++ b/src/api/resources/ats/resources/generateKey/client/Client.ts @@ -64,8 +64,8 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/interviews/client/Client.ts b/src/api/resources/ats/resources/interviews/client/Client.ts index bbce80fcc..15e569c73 100644 --- a/src/api/resources/ats/resources/interviews/client/Client.ts +++ b/src/api/resources/ats/resources/interviews/client/Client.ts @@ -150,8 +150,8 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -235,8 +235,8 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -330,8 +330,8 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -398,8 +398,8 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/issues/client/Client.ts b/src/api/resources/ats/resources/issues/client/Client.ts index c66788366..911c4293b 100644 --- a/src/api/resources/ats/resources/issues/client/Client.ts +++ b/src/api/resources/ats/resources/issues/client/Client.ts @@ -135,8 +135,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts index 7463313d0..f19f77204 100644 --- a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts +++ b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts @@ -125,8 +125,8 @@ export class JobInterviewStages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class JobInterviewStages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/jobPostings/client/Client.ts b/src/api/resources/ats/resources/jobPostings/client/Client.ts index b07087098..66aaf3652 100644 --- a/src/api/resources/ats/resources/jobPostings/client/Client.ts +++ b/src/api/resources/ats/resources/jobPostings/client/Client.ts @@ -125,8 +125,8 @@ export class JobPostings { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class JobPostings { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/jobs/client/Client.ts b/src/api/resources/ats/resources/jobs/client/Client.ts index 0cfcfa98c..db698145a 100644 --- a/src/api/resources/ats/resources/jobs/client/Client.ts +++ b/src/api/resources/ats/resources/jobs/client/Client.ts @@ -145,8 +145,8 @@ export class Jobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -237,8 +237,8 @@ export class Jobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -337,8 +337,8 @@ export class Jobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/linkToken/client/Client.ts b/src/api/resources/ats/resources/linkToken/client/Client.ts index 1bd60fc9a..de4bfe200 100644 --- a/src/api/resources/ats/resources/linkToken/client/Client.ts +++ b/src/api/resources/ats/resources/linkToken/client/Client.ts @@ -67,8 +67,8 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 670e06d99..1c7a5e358 100644 --- a/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -41,6 +41,8 @@ export interface EndUserDetailsRequest { * * `de` - de */ language?: Merge.ats.LanguageEnum; + /** 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/linkedAccounts/client/Client.ts b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts index 402046b0f..e17814960 100644 --- a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts @@ -130,8 +130,8 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/offers/client/Client.ts b/src/api/resources/ats/resources/offers/client/Client.ts index dc1621dcc..1b4dba5fc 100644 --- a/src/api/resources/ats/resources/offers/client/Client.ts +++ b/src/api/resources/ats/resources/offers/client/Client.ts @@ -140,8 +140,8 @@ export class Offers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -232,8 +232,8 @@ export class Offers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/offices/client/Client.ts b/src/api/resources/ats/resources/offices/client/Client.ts index 12350088b..087f82fad 100644 --- a/src/api/resources/ats/resources/offices/client/Client.ts +++ b/src/api/resources/ats/resources/offices/client/Client.ts @@ -115,8 +115,8 @@ export class Offices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Offices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/passthrough/client/Client.ts b/src/api/resources/ats/resources/passthrough/client/Client.ts index fb0072cf5..473316585 100644 --- a/src/api/resources/ats/resources/passthrough/client/Client.ts +++ b/src/api/resources/ats/resources/passthrough/client/Client.ts @@ -65,8 +65,8 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/regenerateKey/client/Client.ts b/src/api/resources/ats/resources/regenerateKey/client/Client.ts index 197e847b6..3e83c8fc6 100644 --- a/src/api/resources/ats/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/ats/resources/regenerateKey/client/Client.ts @@ -64,8 +64,8 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/rejectReasons/client/Client.ts b/src/api/resources/ats/resources/rejectReasons/client/Client.ts index 5b0370a56..5c2cf7684 100644 --- a/src/api/resources/ats/resources/rejectReasons/client/Client.ts +++ b/src/api/resources/ats/resources/rejectReasons/client/Client.ts @@ -115,8 +115,8 @@ export class RejectReasons { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class RejectReasons { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/scopes/client/Client.ts b/src/api/resources/ats/resources/scopes/client/Client.ts index 7f2b6bb50..52f78a0e6 100644 --- a/src/api/resources/ats/resources/scopes/client/Client.ts +++ b/src/api/resources/ats/resources/scopes/client/Client.ts @@ -58,8 +58,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -127,8 +127,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -188,6 +188,10 @@ export class Scopes { * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", @@ -217,8 +221,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts index e64c72a96..7d31d093d 100644 --- a/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ b/src/api/resources/ats/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts @@ -16,6 +16,10 @@ import * as Merge from "../../../../../../index"; * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", diff --git a/src/api/resources/ats/resources/scorecards/client/Client.ts b/src/api/resources/ats/resources/scorecards/client/Client.ts index a4ee64a22..73a540c15 100644 --- a/src/api/resources/ats/resources/scorecards/client/Client.ts +++ b/src/api/resources/ats/resources/scorecards/client/Client.ts @@ -145,8 +145,8 @@ export class Scorecards { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -237,8 +237,8 @@ export class Scorecards { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/syncStatus/client/Client.ts b/src/api/resources/ats/resources/syncStatus/client/Client.ts index ac4b33abf..3b87eda69 100644 --- a/src/api/resources/ats/resources/syncStatus/client/Client.ts +++ b/src/api/resources/ats/resources/syncStatus/client/Client.ts @@ -72,8 +72,8 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/tags/client/Client.ts b/src/api/resources/ats/resources/tags/client/Client.ts index 77f92c68c..0d6da378d 100644 --- a/src/api/resources/ats/resources/tags/client/Client.ts +++ b/src/api/resources/ats/resources/tags/client/Client.ts @@ -115,8 +115,8 @@ export class Tags { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/users/client/Client.ts b/src/api/resources/ats/resources/users/client/Client.ts index d2f6a7683..a5fa6b62b 100644 --- a/src/api/resources/ats/resources/users/client/Client.ts +++ b/src/api/resources/ats/resources/users/client/Client.ts @@ -130,8 +130,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -218,8 +218,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/resources/webhookReceivers/client/Client.ts b/src/api/resources/ats/resources/webhookReceivers/client/Client.ts index 04496db5c..ef8f74ea1 100644 --- a/src/api/resources/ats/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/ats/resources/webhookReceivers/client/Client.ts @@ -58,8 +58,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -132,8 +132,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ats/types/AuditLogEvent.ts b/src/api/resources/ats/types/AuditLogEvent.ts index 8b4b29ce4..64e4c1b36 100644 --- a/src/api/resources/ats/types/AuditLogEvent.ts +++ b/src/api/resources/ats/types/AuditLogEvent.ts @@ -56,6 +56,9 @@ export interface AuditLogEvent { * - `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 diff --git a/src/api/resources/ats/types/AuditLogEventEventType.ts b/src/api/resources/ats/types/AuditLogEventEventType.ts index add94173b..f937fd1aa 100644 --- a/src/api/resources/ats/types/AuditLogEventEventType.ts +++ b/src/api/resources/ats/types/AuditLogEventEventType.ts @@ -38,6 +38,9 @@ import * as Merge from "../../../index"; * - `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 diff --git a/src/api/resources/ats/types/EventTypeEnum.ts b/src/api/resources/ats/types/EventTypeEnum.ts index a0809652b..c6e8f16c3 100644 --- a/src/api/resources/ats/types/EventTypeEnum.ts +++ b/src/api/resources/ats/types/EventTypeEnum.ts @@ -34,6 +34,9 @@ * - `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 @@ -74,6 +77,9 @@ export type EventTypeEnum = | "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" @@ -114,6 +120,9 @@ export const EventTypeEnum = { 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", diff --git a/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts index 932cbccfc..4fafe221d 100644 --- a/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/api/resources/ats/types/FieldMappingApiInstanceRemoteField.ts @@ -5,7 +5,7 @@ import * as Merge from "../../../index"; export interface FieldMappingApiInstanceRemoteField { - remoteKeyName: string; - schema: Record; + remoteKeyName?: string; + schema?: Record; remoteEndpointInfo: Merge.ats.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; } diff --git a/src/api/resources/ats/types/FieldPermissionDeserializer.ts b/src/api/resources/ats/types/FieldPermissionDeserializer.ts index 6c23a3691..1be021a9f 100644 --- a/src/api/resources/ats/types/FieldPermissionDeserializer.ts +++ b/src/api/resources/ats/types/FieldPermissionDeserializer.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializer { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts index cfd7d73df..6d94068e3 100644 --- a/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts +++ b/src/api/resources/ats/types/FieldPermissionDeserializerRequest.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializerRequest { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/ats/types/RemoteData.ts b/src/api/resources/ats/types/RemoteData.ts index 0f2f4454c..928b06e7a 100644 --- a/src/api/resources/ats/types/RemoteData.ts +++ b/src/api/resources/ats/types/RemoteData.ts @@ -2,7 +2,19 @@ * 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; data?: unknown; } diff --git a/src/api/resources/crm/resources/accountDetails/client/Client.ts b/src/api/resources/crm/resources/accountDetails/client/Client.ts index 81e3ef6b8..9df2af687 100644 --- a/src/api/resources/crm/resources/accountDetails/client/Client.ts +++ b/src/api/resources/crm/resources/accountDetails/client/Client.ts @@ -58,8 +58,8 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/accountToken/client/Client.ts b/src/api/resources/crm/resources/accountToken/client/Client.ts index d5d6bb8be..aaa7ea4f7 100644 --- a/src/api/resources/crm/resources/accountToken/client/Client.ts +++ b/src/api/resources/crm/resources/accountToken/client/Client.ts @@ -62,8 +62,8 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/accounts/client/Client.ts b/src/api/resources/crm/resources/accounts/client/Client.ts index fc6f3233a..25d0a605b 100644 --- a/src/api/resources/crm/resources/accounts/client/Client.ts +++ b/src/api/resources/crm/resources/accounts/client/Client.ts @@ -135,8 +135,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -219,8 +219,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -308,8 +308,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -394,8 +394,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -469,8 +469,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -538,8 +538,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -647,8 +647,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/associationTypes/client/Client.ts b/src/api/resources/crm/resources/associationTypes/client/Client.ts index 27af5e403..5fc2eeab3 100644 --- a/src/api/resources/crm/resources/associationTypes/client/Client.ts +++ b/src/api/resources/crm/resources/associationTypes/client/Client.ts @@ -122,8 +122,8 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -220,8 +220,8 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -313,8 +313,8 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -387,8 +387,8 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/associations/client/Client.ts b/src/api/resources/crm/resources/associations/client/Client.ts index e4e8f4882..9de667d24 100644 --- a/src/api/resources/crm/resources/associations/client/Client.ts +++ b/src/api/resources/crm/resources/associations/client/Client.ts @@ -131,8 +131,8 @@ export class Associations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,8 +229,8 @@ export class Associations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts b/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts index 9fbb13cc9..f3024bc29 100644 --- a/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts @@ -65,8 +65,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -137,8 +137,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/auditTrail/client/Client.ts b/src/api/resources/crm/resources/auditTrail/client/Client.ts index 9a510758c..eb3fe6192 100644 --- a/src/api/resources/crm/resources/auditTrail/client/Client.ts +++ b/src/api/resources/crm/resources/auditTrail/client/Client.ts @@ -88,8 +88,8 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 72b9c9242..70181ee38 100644 --- a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `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; /** diff --git a/src/api/resources/crm/resources/availableActions/client/Client.ts b/src/api/resources/crm/resources/availableActions/client/Client.ts index 16909890c..85ed9a9f2 100644 --- a/src/api/resources/crm/resources/availableActions/client/Client.ts +++ b/src/api/resources/crm/resources/availableActions/client/Client.ts @@ -58,8 +58,8 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/contacts/client/Client.ts b/src/api/resources/crm/resources/contacts/client/Client.ts index ca76d32a5..b1ae71fa1 100644 --- a/src/api/resources/crm/resources/contacts/client/Client.ts +++ b/src/api/resources/crm/resources/contacts/client/Client.ts @@ -140,8 +140,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -224,8 +224,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -313,8 +313,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -399,8 +399,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -478,8 +478,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -546,8 +546,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -615,8 +615,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -724,8 +724,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts index 4fc8bda9f..5f3e24cf1 100644 --- a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts +++ b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts @@ -120,8 +120,8 @@ export class CustomObjectClasses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class CustomObjectClasses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/customObjects/client/Client.ts b/src/api/resources/crm/resources/customObjects/client/Client.ts index 4ade147a3..9c02656ac 100644 --- a/src/api/resources/crm/resources/customObjects/client/Client.ts +++ b/src/api/resources/crm/resources/customObjects/client/Client.ts @@ -122,8 +122,8 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -214,8 +214,8 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -307,8 +307,8 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -381,8 +381,8 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -492,8 +492,8 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/deleteAccount/client/Client.ts b/src/api/resources/crm/resources/deleteAccount/client/Client.ts index fd4565a95..3824c01fd 100644 --- a/src/api/resources/crm/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/crm/resources/deleteAccount/client/Client.ts @@ -56,8 +56,8 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/engagementTypes/client/Client.ts b/src/api/resources/crm/resources/engagementTypes/client/Client.ts index 1de8805ab..530a3c2cd 100644 --- a/src/api/resources/crm/resources/engagementTypes/client/Client.ts +++ b/src/api/resources/crm/resources/engagementTypes/client/Client.ts @@ -120,8 +120,8 @@ export class EngagementTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class EngagementTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -314,8 +314,8 @@ export class EngagementTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/engagements/client/Client.ts b/src/api/resources/crm/resources/engagements/client/Client.ts index 1242dbdff..5b0414ada 100644 --- a/src/api/resources/crm/resources/engagements/client/Client.ts +++ b/src/api/resources/crm/resources/engagements/client/Client.ts @@ -135,8 +135,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -219,8 +219,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -308,8 +308,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -394,8 +394,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -469,8 +469,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -538,8 +538,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -647,8 +647,8 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/fieldMapping/client/Client.ts b/src/api/resources/crm/resources/fieldMapping/client/Client.ts index 221bf5d82..fadf1c440 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/Client.ts @@ -38,14 +38,22 @@ export class FieldMapping { /** * 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 {FieldMapping.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.crm.fieldMapping.fieldMappingsRetrieve() */ public async fieldMappingsRetrieve( + request: Merge.crm.FieldMappingsRetrieveRequest = {}, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -60,13 +68,14 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, @@ -124,6 +133,12 @@ export class FieldMapping { request: Merge.crm.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata, ..._body } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -138,15 +153,16 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", - body: serializers.crm.CreateFieldMappingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: serializers.crm.CreateFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -210,8 +226,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -285,8 +301,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -371,8 +387,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -441,8 +457,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 21c3ca085..c4a2012c1 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -14,6 +14,10 @@ * } */ 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. */ diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts new file mode 100644 index 000000000..3ad738346 --- /dev/null +++ b/src/api/resources/crm/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +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/index.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts index 450f54c2b..5cc5b6db1 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/requests/index.ts @@ -1,3 +1,4 @@ +export { type FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; export { type CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; export { type PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; export { type RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/crm/resources/forceResync/client/Client.ts b/src/api/resources/crm/resources/forceResync/client/Client.ts index f2783b98a..72c1c3f09 100644 --- a/src/api/resources/crm/resources/forceResync/client/Client.ts +++ b/src/api/resources/crm/resources/forceResync/client/Client.ts @@ -58,8 +58,8 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/generateKey/client/Client.ts b/src/api/resources/crm/resources/generateKey/client/Client.ts index a33f65250..f1e9cefdf 100644 --- a/src/api/resources/crm/resources/generateKey/client/Client.ts +++ b/src/api/resources/crm/resources/generateKey/client/Client.ts @@ -64,8 +64,8 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/issues/client/Client.ts b/src/api/resources/crm/resources/issues/client/Client.ts index a22a5f32f..75d8b5e1f 100644 --- a/src/api/resources/crm/resources/issues/client/Client.ts +++ b/src/api/resources/crm/resources/issues/client/Client.ts @@ -135,8 +135,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/leads/client/Client.ts b/src/api/resources/crm/resources/leads/client/Client.ts index 0ccdfef04..01b7ff387 100644 --- a/src/api/resources/crm/resources/leads/client/Client.ts +++ b/src/api/resources/crm/resources/leads/client/Client.ts @@ -150,8 +150,8 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,8 +234,8 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -323,8 +323,8 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -391,8 +391,8 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -500,8 +500,8 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/linkToken/client/Client.ts b/src/api/resources/crm/resources/linkToken/client/Client.ts index 51595f2e8..cde0d2ce5 100644 --- a/src/api/resources/crm/resources/linkToken/client/Client.ts +++ b/src/api/resources/crm/resources/linkToken/client/Client.ts @@ -67,8 +67,8 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts index fa100423f..1e96d1315 100644 --- a/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -41,6 +41,8 @@ export interface EndUserDetailsRequest { * * `de` - de */ language?: Merge.crm.LanguageEnum; + /** 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/linkedAccounts/client/Client.ts b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts index af375e521..5d2561dbe 100644 --- a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts @@ -130,8 +130,8 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/notes/client/Client.ts b/src/api/resources/crm/resources/notes/client/Client.ts index 661a44b9d..eaa9e669c 100644 --- a/src/api/resources/crm/resources/notes/client/Client.ts +++ b/src/api/resources/crm/resources/notes/client/Client.ts @@ -145,8 +145,8 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,8 +229,8 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -318,8 +318,8 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -386,8 +386,8 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -495,8 +495,8 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/opportunities/client/Client.ts b/src/api/resources/crm/resources/opportunities/client/Client.ts index 8d177e3dd..0986e3c72 100644 --- a/src/api/resources/crm/resources/opportunities/client/Client.ts +++ b/src/api/resources/crm/resources/opportunities/client/Client.ts @@ -160,8 +160,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -244,8 +244,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -341,8 +341,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -427,8 +427,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -502,8 +502,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -571,8 +571,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -682,8 +682,8 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/passthrough/client/Client.ts b/src/api/resources/crm/resources/passthrough/client/Client.ts index de6eae79a..a09ab0e15 100644 --- a/src/api/resources/crm/resources/passthrough/client/Client.ts +++ b/src/api/resources/crm/resources/passthrough/client/Client.ts @@ -65,8 +65,8 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/regenerateKey/client/Client.ts b/src/api/resources/crm/resources/regenerateKey/client/Client.ts index 308d47f71..cc032d9b7 100644 --- a/src/api/resources/crm/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/crm/resources/regenerateKey/client/Client.ts @@ -64,8 +64,8 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/scopes/client/Client.ts b/src/api/resources/crm/resources/scopes/client/Client.ts index 43c7d50f0..a4537ff53 100644 --- a/src/api/resources/crm/resources/scopes/client/Client.ts +++ b/src/api/resources/crm/resources/scopes/client/Client.ts @@ -58,8 +58,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -127,8 +127,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -188,6 +188,10 @@ export class Scopes { * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", @@ -217,8 +221,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts index cc1970759..1370329a0 100644 --- a/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ b/src/api/resources/crm/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts @@ -16,6 +16,10 @@ import * as Merge from "../../../../../../index"; * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", diff --git a/src/api/resources/crm/resources/stages/client/Client.ts b/src/api/resources/crm/resources/stages/client/Client.ts index 583686fb8..59750b65e 100644 --- a/src/api/resources/crm/resources/stages/client/Client.ts +++ b/src/api/resources/crm/resources/stages/client/Client.ts @@ -120,8 +120,8 @@ export class Stages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Stages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -314,8 +314,8 @@ export class Stages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/syncStatus/client/Client.ts b/src/api/resources/crm/resources/syncStatus/client/Client.ts index 317ace96f..b6c7387dd 100644 --- a/src/api/resources/crm/resources/syncStatus/client/Client.ts +++ b/src/api/resources/crm/resources/syncStatus/client/Client.ts @@ -72,8 +72,8 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/tasks/client/Client.ts b/src/api/resources/crm/resources/tasks/client/Client.ts index 4c7167d0b..ce1286c10 100644 --- a/src/api/resources/crm/resources/tasks/client/Client.ts +++ b/src/api/resources/crm/resources/tasks/client/Client.ts @@ -125,8 +125,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -298,8 +298,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -384,8 +384,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -454,8 +454,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -521,8 +521,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -630,8 +630,8 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/users/client/Client.ts b/src/api/resources/crm/resources/users/client/Client.ts index 7a3e0c15a..396273371 100644 --- a/src/api/resources/crm/resources/users/client/Client.ts +++ b/src/api/resources/crm/resources/users/client/Client.ts @@ -52,6 +52,7 @@ export class Users { createdAfter, createdBefore, cursor, + email, includeDeletedData, includeRemoteData, includeRemoteFields, @@ -74,6 +75,10 @@ export class Users { _queryParams["cursor"] = cursor; } + if (email != null) { + _queryParams["email"] = email; + } + if (includeDeletedData != null) { _queryParams["include_deleted_data"] = includeDeletedData.toString(); } @@ -120,8 +125,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +209,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -280,8 +285,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -386,8 +391,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts index 8e8af7fae..a638db513 100644 --- a/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts +++ b/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts @@ -19,6 +19,10 @@ export interface UsersListRequest { * 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/). */ diff --git a/src/api/resources/crm/resources/webhookReceivers/client/Client.ts b/src/api/resources/crm/resources/webhookReceivers/client/Client.ts index 66b496950..3b913c351 100644 --- a/src/api/resources/crm/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/crm/resources/webhookReceivers/client/Client.ts @@ -58,8 +58,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -132,8 +132,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/crm/types/AuditLogEvent.ts b/src/api/resources/crm/types/AuditLogEvent.ts index efc921f88..6e6be8733 100644 --- a/src/api/resources/crm/types/AuditLogEvent.ts +++ b/src/api/resources/crm/types/AuditLogEvent.ts @@ -56,6 +56,9 @@ export interface AuditLogEvent { * - `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 diff --git a/src/api/resources/crm/types/AuditLogEventEventType.ts b/src/api/resources/crm/types/AuditLogEventEventType.ts index 3eafcf265..4a39b9fe7 100644 --- a/src/api/resources/crm/types/AuditLogEventEventType.ts +++ b/src/api/resources/crm/types/AuditLogEventEventType.ts @@ -38,6 +38,9 @@ import * as Merge from "../../../index"; * - `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 diff --git a/src/api/resources/crm/types/EventTypeEnum.ts b/src/api/resources/crm/types/EventTypeEnum.ts index a0809652b..c6e8f16c3 100644 --- a/src/api/resources/crm/types/EventTypeEnum.ts +++ b/src/api/resources/crm/types/EventTypeEnum.ts @@ -34,6 +34,9 @@ * - `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 @@ -74,6 +77,9 @@ export type EventTypeEnum = | "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" @@ -114,6 +120,9 @@ export const EventTypeEnum = { 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", diff --git a/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts index 9fb476416..032301da7 100644 --- a/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/api/resources/crm/types/FieldMappingApiInstanceRemoteField.ts @@ -5,7 +5,7 @@ import * as Merge from "../../../index"; export interface FieldMappingApiInstanceRemoteField { - remoteKeyName: string; - schema: Record; + remoteKeyName?: string; + schema?: Record; remoteEndpointInfo: Merge.crm.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; } diff --git a/src/api/resources/crm/types/FieldPermissionDeserializer.ts b/src/api/resources/crm/types/FieldPermissionDeserializer.ts index 6c23a3691..1be021a9f 100644 --- a/src/api/resources/crm/types/FieldPermissionDeserializer.ts +++ b/src/api/resources/crm/types/FieldPermissionDeserializer.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializer { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts index cfd7d73df..6d94068e3 100644 --- a/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts +++ b/src/api/resources/crm/types/FieldPermissionDeserializerRequest.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializerRequest { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/crm/types/RemoteData.ts b/src/api/resources/crm/types/RemoteData.ts index 0f2f4454c..928b06e7a 100644 --- a/src/api/resources/crm/types/RemoteData.ts +++ b/src/api/resources/crm/types/RemoteData.ts @@ -2,7 +2,19 @@ * 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; data?: unknown; } diff --git a/src/api/resources/filestorage/resources/accountDetails/client/Client.ts b/src/api/resources/filestorage/resources/accountDetails/client/Client.ts index 68d262765..2fc805e29 100644 --- a/src/api/resources/filestorage/resources/accountDetails/client/Client.ts +++ b/src/api/resources/filestorage/resources/accountDetails/client/Client.ts @@ -58,8 +58,8 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/accountToken/client/Client.ts b/src/api/resources/filestorage/resources/accountToken/client/Client.ts index 17b95fed0..99ab0145d 100644 --- a/src/api/resources/filestorage/resources/accountToken/client/Client.ts +++ b/src/api/resources/filestorage/resources/accountToken/client/Client.ts @@ -62,8 +62,8 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts b/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts index 9fc05e3de..64751aa21 100644 --- a/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts @@ -65,8 +65,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -141,8 +141,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/auditTrail/client/Client.ts b/src/api/resources/filestorage/resources/auditTrail/client/Client.ts index 100b1d87a..12ff4fc2e 100644 --- a/src/api/resources/filestorage/resources/auditTrail/client/Client.ts +++ b/src/api/resources/filestorage/resources/auditTrail/client/Client.ts @@ -88,8 +88,8 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, 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 72b9c9242..70181ee38 100644 --- a/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `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; /** diff --git a/src/api/resources/filestorage/resources/availableActions/client/Client.ts b/src/api/resources/filestorage/resources/availableActions/client/Client.ts index e283b6059..654297fe9 100644 --- a/src/api/resources/filestorage/resources/availableActions/client/Client.ts +++ b/src/api/resources/filestorage/resources/availableActions/client/Client.ts @@ -60,8 +60,8 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts b/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts index b3a18e4be..a27d94f73 100644 --- a/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts @@ -56,8 +56,8 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/drives/client/Client.ts b/src/api/resources/filestorage/resources/drives/client/Client.ts index a67670d46..df013dba8 100644 --- a/src/api/resources/filestorage/resources/drives/client/Client.ts +++ b/src/api/resources/filestorage/resources/drives/client/Client.ts @@ -120,8 +120,8 @@ export class Drives { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -200,8 +200,8 @@ export class Drives { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts b/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts index 3218f5b08..b1d701af1 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts @@ -38,14 +38,22 @@ export class FieldMapping { /** * 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.filestorage.FieldMappingsRetrieveRequest} request * @param {FieldMapping.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.filestorage.fieldMapping.fieldMappingsRetrieve() */ public async fieldMappingsRetrieve( + request: Merge.filestorage.FieldMappingsRetrieveRequest = {}, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -60,13 +68,14 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, @@ -124,6 +133,12 @@ export class FieldMapping { request: Merge.filestorage.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata, ..._body } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -138,15 +153,16 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", - body: serializers.filestorage.CreateFieldMappingRequest.jsonOrThrow(request, { + body: serializers.filestorage.CreateFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -214,8 +230,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -289,8 +305,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -375,8 +391,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -445,8 +461,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, 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 21c3ca085..c4a2012c1 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -14,6 +14,10 @@ * } */ 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. */ diff --git a/src/api/resources/filestorage/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/filestorage/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts new file mode 100644 index 000000000..3ad738346 --- /dev/null +++ b/src/api/resources/filestorage/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +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/filestorage/resources/fieldMapping/client/requests/index.ts b/src/api/resources/filestorage/resources/fieldMapping/client/requests/index.ts index 450f54c2b..5cc5b6db1 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/requests/index.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/requests/index.ts @@ -1,3 +1,4 @@ +export { type FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; export { type CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; export { type PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; export { type RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/filestorage/resources/files/client/Client.ts b/src/api/resources/filestorage/resources/files/client/Client.ts index b35d3425a..16d24da5e 100644 --- a/src/api/resources/filestorage/resources/files/client/Client.ts +++ b/src/api/resources/filestorage/resources/files/client/Client.ts @@ -141,8 +141,8 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -225,8 +225,8 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -312,8 +312,8 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -385,8 +385,8 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -450,8 +450,8 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/folders/client/Client.ts b/src/api/resources/filestorage/resources/folders/client/Client.ts index 1e04d9b11..97dfb644d 100644 --- a/src/api/resources/filestorage/resources/folders/client/Client.ts +++ b/src/api/resources/filestorage/resources/folders/client/Client.ts @@ -135,8 +135,8 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -219,8 +219,8 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -306,8 +306,8 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -374,8 +374,8 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/forceResync/client/Client.ts b/src/api/resources/filestorage/resources/forceResync/client/Client.ts index 0232fefc1..1befb15da 100644 --- a/src/api/resources/filestorage/resources/forceResync/client/Client.ts +++ b/src/api/resources/filestorage/resources/forceResync/client/Client.ts @@ -60,8 +60,8 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/generateKey/client/Client.ts b/src/api/resources/filestorage/resources/generateKey/client/Client.ts index ae24ad92b..38e404437 100644 --- a/src/api/resources/filestorage/resources/generateKey/client/Client.ts +++ b/src/api/resources/filestorage/resources/generateKey/client/Client.ts @@ -64,8 +64,8 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/groups/client/Client.ts b/src/api/resources/filestorage/resources/groups/client/Client.ts index 91c669f6a..4fc279162 100644 --- a/src/api/resources/filestorage/resources/groups/client/Client.ts +++ b/src/api/resources/filestorage/resources/groups/client/Client.ts @@ -52,6 +52,7 @@ export class Groups { createdAfter, createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, includeShellData, @@ -73,6 +74,10 @@ export class Groups { _queryParams["cursor"] = cursor; } + if (expand != null) { + _queryParams["expand"] = expand; + } + if (includeDeletedData != null) { _queryParams["include_deleted_data"] = includeDeletedData.toString(); } @@ -115,8 +120,8 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -175,8 +180,12 @@ export class Groups { request: Merge.filestorage.GroupsRetrieveRequest = {}, requestOptions?: Groups.RequestOptions ): Promise { - const { includeRemoteData } = request; + const { expand, includeRemoteData } = request; const _queryParams: Record = {}; + if (expand != null) { + _queryParams["expand"] = expand; + } + if (includeRemoteData != null) { _queryParams["include_remote_data"] = includeRemoteData.toString(); } @@ -195,8 +204,8 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, 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 e1a728599..e28467966 100644 --- a/src/api/resources/filestorage/resources/groups/client/requests/GroupsListRequest.ts +++ b/src/api/resources/filestorage/resources/groups/client/requests/GroupsListRequest.ts @@ -19,6 +19,10 @@ 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"; /** * Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ diff --git a/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts b/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts index 9d624736c..39ec144e2 100644 --- a/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts +++ b/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts @@ -7,6 +7,10 @@ * {} */ export interface GroupsRetrieveRequest { + /** + * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + */ + expand?: "child_groups"; /** * Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/filestorage/resources/issues/client/Client.ts b/src/api/resources/filestorage/resources/issues/client/Client.ts index cf60d9fe7..7433ab2ff 100644 --- a/src/api/resources/filestorage/resources/issues/client/Client.ts +++ b/src/api/resources/filestorage/resources/issues/client/Client.ts @@ -135,8 +135,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/linkToken/client/Client.ts b/src/api/resources/filestorage/resources/linkToken/client/Client.ts index 3e11337a9..8200ac6ef 100644 --- a/src/api/resources/filestorage/resources/linkToken/client/Client.ts +++ b/src/api/resources/filestorage/resources/linkToken/client/Client.ts @@ -67,8 +67,8 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, 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 e5684ef0d..71a5e59dd 100644 --- a/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -44,6 +44,8 @@ export interface EndUserDetailsRequest { * * `de` - de */ language?: Merge.filestorage.LanguageEnum; + /** 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/filestorage/resources/linkedAccounts/client/Client.ts b/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts index 7bab6329c..7247b2428 100644 --- a/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts @@ -130,8 +130,8 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/passthrough/client/Client.ts b/src/api/resources/filestorage/resources/passthrough/client/Client.ts index 82863ae82..4579a8f71 100644 --- a/src/api/resources/filestorage/resources/passthrough/client/Client.ts +++ b/src/api/resources/filestorage/resources/passthrough/client/Client.ts @@ -65,8 +65,8 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts b/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts index e68e3221e..7b06144cb 100644 --- a/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts @@ -64,8 +64,8 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/scopes/client/Client.ts b/src/api/resources/filestorage/resources/scopes/client/Client.ts index 9f71af988..e0a4257b5 100644 --- a/src/api/resources/filestorage/resources/scopes/client/Client.ts +++ b/src/api/resources/filestorage/resources/scopes/client/Client.ts @@ -60,8 +60,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -129,8 +129,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -192,6 +192,10 @@ export class Scopes { * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", @@ -221,8 +225,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/filestorage/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts index f0a601af6..1e6c7fa34 100644 --- a/src/api/resources/filestorage/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ b/src/api/resources/filestorage/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts @@ -16,6 +16,10 @@ import * as Merge from "../../../../../../index"; * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", diff --git a/src/api/resources/filestorage/resources/syncStatus/client/Client.ts b/src/api/resources/filestorage/resources/syncStatus/client/Client.ts index 044fef916..af500d309 100644 --- a/src/api/resources/filestorage/resources/syncStatus/client/Client.ts +++ b/src/api/resources/filestorage/resources/syncStatus/client/Client.ts @@ -72,8 +72,8 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/users/client/Client.ts b/src/api/resources/filestorage/resources/users/client/Client.ts index a15c8c770..78b0d300d 100644 --- a/src/api/resources/filestorage/resources/users/client/Client.ts +++ b/src/api/resources/filestorage/resources/users/client/Client.ts @@ -120,8 +120,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -200,8 +200,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts b/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts index 6974d901a..3c0363a62 100644 --- a/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts @@ -58,8 +58,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -134,8 +134,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/filestorage/types/AuditLogEvent.ts b/src/api/resources/filestorage/types/AuditLogEvent.ts index 58b21337a..889d5ccb2 100644 --- a/src/api/resources/filestorage/types/AuditLogEvent.ts +++ b/src/api/resources/filestorage/types/AuditLogEvent.ts @@ -56,6 +56,9 @@ export interface AuditLogEvent { * - `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 diff --git a/src/api/resources/filestorage/types/AuditLogEventEventType.ts b/src/api/resources/filestorage/types/AuditLogEventEventType.ts index 509f92a19..ad45e1ec1 100644 --- a/src/api/resources/filestorage/types/AuditLogEventEventType.ts +++ b/src/api/resources/filestorage/types/AuditLogEventEventType.ts @@ -38,6 +38,9 @@ import * as Merge from "../../../index"; * - `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 diff --git a/src/api/resources/filestorage/types/Drive.ts b/src/api/resources/filestorage/types/Drive.ts index 387a5121a..c69576606 100644 --- a/src/api/resources/filestorage/types/Drive.ts +++ b/src/api/resources/filestorage/types/Drive.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../index"; + /** * # The Drive Object * @@ -30,5 +32,5 @@ export interface Drive { /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.filestorage.RemoteData[]; } diff --git a/src/api/resources/filestorage/types/EventTypeEnum.ts b/src/api/resources/filestorage/types/EventTypeEnum.ts index a0809652b..c6e8f16c3 100644 --- a/src/api/resources/filestorage/types/EventTypeEnum.ts +++ b/src/api/resources/filestorage/types/EventTypeEnum.ts @@ -34,6 +34,9 @@ * - `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 @@ -74,6 +77,9 @@ export type EventTypeEnum = | "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" @@ -114,6 +120,9 @@ export const EventTypeEnum = { 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", diff --git a/src/api/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts index b74f1b783..1d2e88f20 100644 --- a/src/api/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/api/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts @@ -5,7 +5,7 @@ import * as Merge from "../../../index"; export interface FieldMappingApiInstanceRemoteField { - remoteKeyName: string; - schema: Record; + remoteKeyName?: string; + schema?: Record; remoteEndpointInfo: Merge.filestorage.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; } diff --git a/src/api/resources/filestorage/types/FieldPermissionDeserializer.ts b/src/api/resources/filestorage/types/FieldPermissionDeserializer.ts index 6c23a3691..1be021a9f 100644 --- a/src/api/resources/filestorage/types/FieldPermissionDeserializer.ts +++ b/src/api/resources/filestorage/types/FieldPermissionDeserializer.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializer { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/filestorage/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/filestorage/types/FieldPermissionDeserializerRequest.ts index cfd7d73df..6d94068e3 100644 --- a/src/api/resources/filestorage/types/FieldPermissionDeserializerRequest.ts +++ b/src/api/resources/filestorage/types/FieldPermissionDeserializerRequest.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializerRequest { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/filestorage/types/File_.ts b/src/api/resources/filestorage/types/File_.ts index 3ef7467d2..b3605d3e2 100644 --- a/src/api/resources/filestorage/types/File_.ts +++ b/src/api/resources/filestorage/types/File_.ts @@ -48,5 +48,5 @@ export interface File_ { /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.filestorage.RemoteData[]; } diff --git a/src/api/resources/filestorage/types/Folder.ts b/src/api/resources/filestorage/types/Folder.ts index ade5492dc..35d968213 100644 --- a/src/api/resources/filestorage/types/Folder.ts +++ b/src/api/resources/filestorage/types/Folder.ts @@ -44,5 +44,5 @@ export interface Folder { /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.filestorage.RemoteData[]; } diff --git a/src/api/resources/filestorage/types/Group.ts b/src/api/resources/filestorage/types/Group.ts index 5e5ac1aba..a42b2b791 100644 --- a/src/api/resources/filestorage/types/Group.ts +++ b/src/api/resources/filestorage/types/Group.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../index"; + /** * # The Group Object * @@ -25,8 +27,10 @@ export interface Group { name?: string; /** The users that belong in the group. If null, this typically means it's either a domain or the third-party platform does not surface this information. */ users: string[]; + /** Groups that inherit the permissions of the parent group. */ + childGroups?: Merge.filestorage.GroupChildGroupsItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.filestorage.RemoteData[]; } diff --git a/src/api/resources/filestorage/types/GroupChildGroupsItem.ts b/src/api/resources/filestorage/types/GroupChildGroupsItem.ts new file mode 100644 index 000000000..a46728efd --- /dev/null +++ b/src/api/resources/filestorage/types/GroupChildGroupsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type GroupChildGroupsItem = string | Merge.filestorage.Group; diff --git a/src/api/resources/filestorage/types/Permission.ts b/src/api/resources/filestorage/types/Permission.ts index cfb7f2e85..9c56627c4 100644 --- a/src/api/resources/filestorage/types/Permission.ts +++ b/src/api/resources/filestorage/types/Permission.ts @@ -23,9 +23,9 @@ export interface Permission { createdAt?: Date; /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; - /** The user that is granted this permission. */ + /** The user that is granted this permission. This will only be populated if the type is `USER`. */ user?: Merge.filestorage.PermissionUser; - /** The group that is granted this permission. */ + /** The group that is granted this permission. This will only be populated if the type is `GROUP`. */ group?: Merge.filestorage.PermissionGroup; /** * Denotes what type of people have access to the file. diff --git a/src/api/resources/filestorage/types/PermissionGroup.ts b/src/api/resources/filestorage/types/PermissionGroup.ts index 0042b57aa..7bc73932a 100644 --- a/src/api/resources/filestorage/types/PermissionGroup.ts +++ b/src/api/resources/filestorage/types/PermissionGroup.ts @@ -5,6 +5,6 @@ import * as Merge from "../../../index"; /** - * The group that is granted this permission. + * The group that is granted this permission. This will only be populated if the type is `GROUP`. */ export type PermissionGroup = string | Merge.filestorage.Group; diff --git a/src/api/resources/filestorage/types/PermissionRequest.ts b/src/api/resources/filestorage/types/PermissionRequest.ts index 23ac57e44..4c8be5185 100644 --- a/src/api/resources/filestorage/types/PermissionRequest.ts +++ b/src/api/resources/filestorage/types/PermissionRequest.ts @@ -18,9 +18,9 @@ import * as Merge from "../../../index"; export interface PermissionRequest { /** The third-party API ID of the matching object. */ remoteId?: string; - /** The user that is granted this permission. */ + /** The user that is granted this permission. This will only be populated if the type is `USER`. */ user?: Merge.filestorage.PermissionRequestUser; - /** The group that is granted this permission. */ + /** The group that is granted this permission. This will only be populated if the type is `GROUP`. */ group?: Merge.filestorage.PermissionRequestGroup; /** * Denotes what type of people have access to the file. diff --git a/src/api/resources/filestorage/types/PermissionRequestGroup.ts b/src/api/resources/filestorage/types/PermissionRequestGroup.ts index a4c853b7b..5020fecb7 100644 --- a/src/api/resources/filestorage/types/PermissionRequestGroup.ts +++ b/src/api/resources/filestorage/types/PermissionRequestGroup.ts @@ -5,6 +5,6 @@ import * as Merge from "../../../index"; /** - * The group that is granted this permission. + * The group that is granted this permission. This will only be populated if the type is `GROUP`. */ export type PermissionRequestGroup = string | Merge.filestorage.Group; diff --git a/src/api/resources/filestorage/types/PermissionRequestUser.ts b/src/api/resources/filestorage/types/PermissionRequestUser.ts index 0f9ad4f0d..9921951ba 100644 --- a/src/api/resources/filestorage/types/PermissionRequestUser.ts +++ b/src/api/resources/filestorage/types/PermissionRequestUser.ts @@ -5,6 +5,6 @@ import * as Merge from "../../../index"; /** - * The user that is granted this permission. + * The user that is granted this permission. This will only be populated if the type is `USER`. */ export type PermissionRequestUser = string | Merge.filestorage.User; diff --git a/src/api/resources/filestorage/types/PermissionUser.ts b/src/api/resources/filestorage/types/PermissionUser.ts index 172ced0de..ed416c9c4 100644 --- a/src/api/resources/filestorage/types/PermissionUser.ts +++ b/src/api/resources/filestorage/types/PermissionUser.ts @@ -5,6 +5,6 @@ import * as Merge from "../../../index"; /** - * The user that is granted this permission. + * The user that is granted this permission. This will only be populated if the type is `USER`. */ export type PermissionUser = string | Merge.filestorage.User; diff --git a/src/api/resources/filestorage/types/RemoteData.ts b/src/api/resources/filestorage/types/RemoteData.ts new file mode 100644 index 000000000..928b06e7a --- /dev/null +++ b/src/api/resources/filestorage/types/RemoteData.ts @@ -0,0 +1,20 @@ +/** + * 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; + data?: unknown; +} diff --git a/src/api/resources/filestorage/types/User.ts b/src/api/resources/filestorage/types/User.ts index 8cfa84c5e..93fb3181c 100644 --- a/src/api/resources/filestorage/types/User.ts +++ b/src/api/resources/filestorage/types/User.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../index"; + /** * # The User Object * @@ -30,5 +32,5 @@ export interface 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/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.filestorage.RemoteData[]; } diff --git a/src/api/resources/filestorage/types/index.ts b/src/api/resources/filestorage/types/index.ts index 8e0eabbec..44155eb1e 100644 --- a/src/api/resources/filestorage/types/index.ts +++ b/src/api/resources/filestorage/types/index.ts @@ -54,6 +54,7 @@ export * from "./FolderRequestDrive"; export * from "./FolderRequestPermissionsItem"; export * from "./FolderRequestPermissions"; export * from "./FolderRequest"; +export * from "./GroupChildGroupsItem"; export * from "./Group"; export * from "./IndividualCommonModelScopeDeserializer"; export * from "./IndividualCommonModelScopeDeserializerRequest"; @@ -89,6 +90,7 @@ export * from "./PermissionRequestGroup"; export * from "./PermissionRequestType"; export * from "./PermissionRequestRolesItem"; export * from "./PermissionRequest"; +export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; diff --git a/src/api/resources/hris/resources/accountDetails/client/Client.ts b/src/api/resources/hris/resources/accountDetails/client/Client.ts index d5f1b20d4..6c1b49a91 100644 --- a/src/api/resources/hris/resources/accountDetails/client/Client.ts +++ b/src/api/resources/hris/resources/accountDetails/client/Client.ts @@ -58,8 +58,8 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/accountToken/client/Client.ts b/src/api/resources/hris/resources/accountToken/client/Client.ts index 6f73458ca..d8e5484ed 100644 --- a/src/api/resources/hris/resources/accountToken/client/Client.ts +++ b/src/api/resources/hris/resources/accountToken/client/Client.ts @@ -62,8 +62,8 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts b/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts index b3aa98e0d..17522fe4e 100644 --- a/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts @@ -65,8 +65,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -137,8 +137,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/auditTrail/client/Client.ts b/src/api/resources/hris/resources/auditTrail/client/Client.ts index e90169ad7..ac675243a 100644 --- a/src/api/resources/hris/resources/auditTrail/client/Client.ts +++ b/src/api/resources/hris/resources/auditTrail/client/Client.ts @@ -88,8 +88,8 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 72b9c9242..70181ee38 100644 --- a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `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; /** diff --git a/src/api/resources/hris/resources/availableActions/client/Client.ts b/src/api/resources/hris/resources/availableActions/client/Client.ts index 6539f4632..461ac3349 100644 --- a/src/api/resources/hris/resources/availableActions/client/Client.ts +++ b/src/api/resources/hris/resources/availableActions/client/Client.ts @@ -58,8 +58,8 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/bankInfo/client/Client.ts b/src/api/resources/hris/resources/bankInfo/client/Client.ts index 4f25c8b4d..ba6c746b4 100644 --- a/src/api/resources/hris/resources/bankInfo/client/Client.ts +++ b/src/api/resources/hris/resources/bankInfo/client/Client.ts @@ -150,8 +150,8 @@ export class BankInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -242,8 +242,8 @@ export class BankInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/benefits/client/Client.ts b/src/api/resources/hris/resources/benefits/client/Client.ts index d9428858e..40d608ebb 100644 --- a/src/api/resources/hris/resources/benefits/client/Client.ts +++ b/src/api/resources/hris/resources/benefits/client/Client.ts @@ -125,8 +125,8 @@ export class Benefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class Benefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/companies/client/Client.ts b/src/api/resources/hris/resources/companies/client/Client.ts index 210bdb7a0..f05c281fa 100644 --- a/src/api/resources/hris/resources/companies/client/Client.ts +++ b/src/api/resources/hris/resources/companies/client/Client.ts @@ -115,8 +115,8 @@ export class Companies { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Companies { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/deleteAccount/client/Client.ts b/src/api/resources/hris/resources/deleteAccount/client/Client.ts index f2fa81f8d..a4ff45e3c 100644 --- a/src/api/resources/hris/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/hris/resources/deleteAccount/client/Client.ts @@ -56,8 +56,8 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/dependents/client/Client.ts b/src/api/resources/hris/resources/dependents/client/Client.ts index c9f6b5883..825fc9bc2 100644 --- a/src/api/resources/hris/resources/dependents/client/Client.ts +++ b/src/api/resources/hris/resources/dependents/client/Client.ts @@ -120,8 +120,8 @@ export class Dependents { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Dependents { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts index 5ad3d74e7..5daec9f5b 100644 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts +++ b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts @@ -150,8 +150,8 @@ export class EmployeePayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -234,8 +234,8 @@ export class EmployeePayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/employees/client/Client.ts b/src/api/resources/hris/resources/employees/client/Client.ts index 4a00af16d..256056a58 100644 --- a/src/api/resources/hris/resources/employees/client/Client.ts +++ b/src/api/resources/hris/resources/employees/client/Client.ts @@ -230,8 +230,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -314,8 +314,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -411,8 +411,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -487,8 +487,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -551,8 +551,8 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/employerBenefits/client/Client.ts b/src/api/resources/hris/resources/employerBenefits/client/Client.ts index d558c928c..ea52e76f5 100644 --- a/src/api/resources/hris/resources/employerBenefits/client/Client.ts +++ b/src/api/resources/hris/resources/employerBenefits/client/Client.ts @@ -115,8 +115,8 @@ export class EmployerBenefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class EmployerBenefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/employments/client/Client.ts b/src/api/resources/hris/resources/employments/client/Client.ts index a99264464..624c84fed 100644 --- a/src/api/resources/hris/resources/employments/client/Client.ts +++ b/src/api/resources/hris/resources/employments/client/Client.ts @@ -140,8 +140,8 @@ export class Employments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -232,8 +232,8 @@ export class Employments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/fieldMapping/client/Client.ts b/src/api/resources/hris/resources/fieldMapping/client/Client.ts index b7c7f8f03..dbf034387 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/Client.ts @@ -38,14 +38,22 @@ export class FieldMapping { /** * 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 {FieldMapping.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.hris.fieldMapping.fieldMappingsRetrieve() */ public async fieldMappingsRetrieve( + request: Merge.hris.FieldMappingsRetrieveRequest = {}, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -60,13 +68,14 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, @@ -124,6 +133,12 @@ export class FieldMapping { request: Merge.hris.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata, ..._body } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -138,15 +153,16 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", - body: serializers.hris.CreateFieldMappingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: serializers.hris.CreateFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -210,8 +226,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -285,8 +301,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -371,8 +387,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -441,8 +457,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 21c3ca085..c4a2012c1 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -14,6 +14,10 @@ * } */ 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. */ diff --git a/src/api/resources/hris/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts new file mode 100644 index 000000000..3ad738346 --- /dev/null +++ b/src/api/resources/hris/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +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/index.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/index.ts index 450f54c2b..5cc5b6db1 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/index.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/requests/index.ts @@ -1,3 +1,4 @@ +export { type FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; export { type CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; export { type PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; export { type RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/hris/resources/forceResync/client/Client.ts b/src/api/resources/hris/resources/forceResync/client/Client.ts index ba892ff9d..6226209d1 100644 --- a/src/api/resources/hris/resources/forceResync/client/Client.ts +++ b/src/api/resources/hris/resources/forceResync/client/Client.ts @@ -58,8 +58,8 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/generateKey/client/Client.ts b/src/api/resources/hris/resources/generateKey/client/Client.ts index 6aa7a77d7..b47dd356c 100644 --- a/src/api/resources/hris/resources/generateKey/client/Client.ts +++ b/src/api/resources/hris/resources/generateKey/client/Client.ts @@ -64,8 +64,8 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/groups/client/Client.ts b/src/api/resources/hris/resources/groups/client/Client.ts index f426a05c4..f99a8dea6 100644 --- a/src/api/resources/hris/resources/groups/client/Client.ts +++ b/src/api/resources/hris/resources/groups/client/Client.ts @@ -140,8 +140,8 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -228,8 +228,8 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/issues/client/Client.ts b/src/api/resources/hris/resources/issues/client/Client.ts index 897941430..2ed7fdbcc 100644 --- a/src/api/resources/hris/resources/issues/client/Client.ts +++ b/src/api/resources/hris/resources/issues/client/Client.ts @@ -135,8 +135,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/linkToken/client/Client.ts b/src/api/resources/hris/resources/linkToken/client/Client.ts index 9c1ff9bbd..aad3fbe54 100644 --- a/src/api/resources/hris/resources/linkToken/client/Client.ts +++ b/src/api/resources/hris/resources/linkToken/client/Client.ts @@ -67,8 +67,8 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts index f8c5b15a1..6c55fa76b 100644 --- a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -41,6 +41,8 @@ export interface EndUserDetailsRequest { * * `de` - de */ language?: Merge.hris.LanguageEnum; + /** 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/hris/resources/linkedAccounts/client/Client.ts b/src/api/resources/hris/resources/linkedAccounts/client/Client.ts index f148d401f..b57d3f88c 100644 --- a/src/api/resources/hris/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/hris/resources/linkedAccounts/client/Client.ts @@ -130,8 +130,8 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/locations/client/Client.ts b/src/api/resources/hris/resources/locations/client/Client.ts index 29523a517..a0c07e89e 100644 --- a/src/api/resources/hris/resources/locations/client/Client.ts +++ b/src/api/resources/hris/resources/locations/client/Client.ts @@ -130,8 +130,8 @@ export class Locations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -218,8 +218,8 @@ export class Locations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts b/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts index a5f680d66..5e2ef135d 100644 --- a/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts +++ b/src/api/resources/hris/resources/locations/client/requests/LocationsListRequest.ts @@ -55,7 +55,7 @@ export interface LocationsListRequest { /** * Deprecated. Use show_enum_origins. */ - remoteFields?: "location_type"; + remoteFields?: Merge.hris.LocationsListRequestRemoteFields; /** * The API provider's ID for the given object. */ @@ -63,5 +63,5 @@ export interface LocationsListRequest { /** * 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?: "location_type"; + 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 index 18c3e1ec9..4a2db4402 100644 --- a/src/api/resources/hris/resources/locations/client/requests/LocationsRetrieveRequest.ts +++ b/src/api/resources/hris/resources/locations/client/requests/LocationsRetrieveRequest.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../../../../index"; + /** * @example * {} @@ -14,9 +16,9 @@ export interface LocationsRetrieveRequest { /** * Deprecated. Use show_enum_origins. */ - remoteFields?: "location_type"; + 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?: "location_type"; + showEnumOrigins?: Merge.hris.LocationsRetrieveRequestShowEnumOrigins; } diff --git a/src/api/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts b/src/api/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts new file mode 100644 index 000000000..39d546c46 --- /dev/null +++ b/src/api/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LocationsListRequestRemoteFields = "country" | "country,location_type" | "location_type"; + +export const LocationsListRequestRemoteFields = { + Country: "country", + CountryLocationType: "country,location_type", + LocationType: "location_type", +} as const; diff --git a/src/api/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts new file mode 100644 index 000000000..5aa2eec75 --- /dev/null +++ b/src/api/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LocationsListRequestShowEnumOrigins = "country" | "country,location_type" | "location_type"; + +export const LocationsListRequestShowEnumOrigins = { + Country: "country", + CountryLocationType: "country,location_type", + LocationType: "location_type", +} as const; diff --git a/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts b/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts new file mode 100644 index 000000000..a45690570 --- /dev/null +++ b/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LocationsRetrieveRequestRemoteFields = "country" | "country,location_type" | "location_type"; + +export const LocationsRetrieveRequestRemoteFields = { + Country: "country", + CountryLocationType: "country,location_type", + LocationType: "location_type", +} as const; diff --git a/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts b/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts new file mode 100644 index 000000000..6ad16ef96 --- /dev/null +++ b/src/api/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LocationsRetrieveRequestShowEnumOrigins = "country" | "country,location_type" | "location_type"; + +export const LocationsRetrieveRequestShowEnumOrigins = { + Country: "country", + CountryLocationType: "country,location_type", + LocationType: "location_type", +} as const; diff --git a/src/api/resources/hris/resources/locations/types/index.ts b/src/api/resources/hris/resources/locations/types/index.ts index 0db95afd4..45bd9980a 100644 --- a/src/api/resources/hris/resources/locations/types/index.ts +++ b/src/api/resources/hris/resources/locations/types/index.ts @@ -1 +1,5 @@ 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 index 5c69b9c7a..4d298c1e2 100644 --- a/src/api/resources/hris/resources/passthrough/client/Client.ts +++ b/src/api/resources/hris/resources/passthrough/client/Client.ts @@ -65,8 +65,8 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/payGroups/client/Client.ts b/src/api/resources/hris/resources/payGroups/client/Client.ts index 3dbb80c96..2c77cf4ad 100644 --- a/src/api/resources/hris/resources/payGroups/client/Client.ts +++ b/src/api/resources/hris/resources/payGroups/client/Client.ts @@ -115,8 +115,8 @@ export class PayGroups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class PayGroups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/payrollRuns/client/Client.ts b/src/api/resources/hris/resources/payrollRuns/client/Client.ts index 0e39cc9a9..e0bb4fa92 100644 --- a/src/api/resources/hris/resources/payrollRuns/client/Client.ts +++ b/src/api/resources/hris/resources/payrollRuns/client/Client.ts @@ -150,8 +150,8 @@ export class PayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -238,8 +238,8 @@ export class PayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/regenerateKey/client/Client.ts b/src/api/resources/hris/resources/regenerateKey/client/Client.ts index 8fc1b98eb..020c882e6 100644 --- a/src/api/resources/hris/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/hris/resources/regenerateKey/client/Client.ts @@ -64,8 +64,8 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/scopes/client/Client.ts b/src/api/resources/hris/resources/scopes/client/Client.ts index 39068608c..c57183eb7 100644 --- a/src/api/resources/hris/resources/scopes/client/Client.ts +++ b/src/api/resources/hris/resources/scopes/client/Client.ts @@ -60,8 +60,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -129,8 +129,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -190,6 +190,10 @@ export class Scopes { * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", @@ -219,8 +223,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts index 23fb0a3ac..03f4cc62e 100644 --- a/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ b/src/api/resources/hris/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts @@ -16,6 +16,10 @@ import * as Merge from "../../../../../../index"; * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", diff --git a/src/api/resources/hris/resources/syncStatus/client/Client.ts b/src/api/resources/hris/resources/syncStatus/client/Client.ts index d2342024e..6ff39dcb8 100644 --- a/src/api/resources/hris/resources/syncStatus/client/Client.ts +++ b/src/api/resources/hris/resources/syncStatus/client/Client.ts @@ -72,8 +72,8 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/teams/client/Client.ts b/src/api/resources/hris/resources/teams/client/Client.ts index 88c747c86..c4e36d4e5 100644 --- a/src/api/resources/hris/resources/teams/client/Client.ts +++ b/src/api/resources/hris/resources/teams/client/Client.ts @@ -125,8 +125,8 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/timeOff/client/Client.ts b/src/api/resources/hris/resources/timeOff/client/Client.ts index f98b8faba..333eeccc4 100644 --- a/src/api/resources/hris/resources/timeOff/client/Client.ts +++ b/src/api/resources/hris/resources/timeOff/client/Client.ts @@ -170,8 +170,8 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -254,8 +254,8 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -347,8 +347,8 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -415,8 +415,8 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts b/src/api/resources/hris/resources/timeOffBalances/client/Client.ts index 2cbece26f..bfc9c382a 100644 --- a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts +++ b/src/api/resources/hris/resources/timeOffBalances/client/Client.ts @@ -140,8 +140,8 @@ export class TimeOffBalances { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -232,8 +232,8 @@ export class TimeOffBalances { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts index e5b46b7fd..666d2d893 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts @@ -55,6 +55,7 @@ export class TimesheetEntries { employeeId, endedAfter, endedBefore, + expand, includeDeletedData, includeRemoteData, includeShellData, @@ -84,11 +85,15 @@ export class TimesheetEntries { } if (endedAfter != null) { - _queryParams["ended_after"] = endedAfter; + _queryParams["ended_after"] = endedAfter.toISOString(); } if (endedBefore != null) { - _queryParams["ended_before"] = endedBefore; + _queryParams["ended_before"] = endedBefore.toISOString(); + } + + if (expand != null) { + _queryParams["expand"] = expand; } if (includeDeletedData != null) { @@ -124,11 +129,11 @@ export class TimesheetEntries { } if (startedAfter != null) { - _queryParams["started_after"] = startedAfter; + _queryParams["started_after"] = startedAfter.toISOString(); } if (startedBefore != null) { - _queryParams["started_before"] = startedBefore; + _queryParams["started_before"] = startedBefore.toISOString(); } const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -145,8 +150,8 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -229,8 +234,8 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -292,8 +297,12 @@ export class TimesheetEntries { request: Merge.hris.TimesheetEntriesRetrieveRequest = {}, requestOptions?: TimesheetEntries.RequestOptions ): Promise { - const { includeRemoteData } = request; + const { expand, includeRemoteData } = request; const _queryParams: Record = {}; + if (expand != null) { + _queryParams["expand"] = expand; + } + if (includeRemoteData != null) { _queryParams["include_remote_data"] = includeRemoteData.toString(); } @@ -312,8 +321,8 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -382,8 +391,8 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts index e9efc6d88..954c4a028 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts @@ -28,11 +28,15 @@ export interface TimesheetEntriesListRequest { /** * If provided, will only return timesheet entries ended after this datetime. */ - endedAfter?: string; + endedAfter?: Date; /** * If provided, will only return timesheet entries ended before this datetime. */ - endedBefore?: string; + 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/). */ @@ -68,9 +72,9 @@ export interface TimesheetEntriesListRequest { /** * If provided, will only return timesheet entries started after this datetime. */ - startedAfter?: string; + startedAfter?: Date; /** * If provided, will only return timesheet entries started before this datetime. */ - startedBefore?: string; + 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 index a75795ba0..7cdab0d07 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts @@ -7,6 +7,10 @@ * {} */ 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. */ diff --git a/src/api/resources/hris/resources/webhookReceivers/client/Client.ts b/src/api/resources/hris/resources/webhookReceivers/client/Client.ts index df5422fb6..05428d9c3 100644 --- a/src/api/resources/hris/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/hris/resources/webhookReceivers/client/Client.ts @@ -58,8 +58,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -132,8 +132,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/hris/types/AuditLogEvent.ts b/src/api/resources/hris/types/AuditLogEvent.ts index db8c6a258..01de13dc5 100644 --- a/src/api/resources/hris/types/AuditLogEvent.ts +++ b/src/api/resources/hris/types/AuditLogEvent.ts @@ -56,6 +56,9 @@ export interface AuditLogEvent { * - `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 diff --git a/src/api/resources/hris/types/AuditLogEventEventType.ts b/src/api/resources/hris/types/AuditLogEventEventType.ts index 2b4bd8785..a12f9696c 100644 --- a/src/api/resources/hris/types/AuditLogEventEventType.ts +++ b/src/api/resources/hris/types/AuditLogEventEventType.ts @@ -38,6 +38,9 @@ import * as Merge from "../../../index"; * - `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 diff --git a/src/api/resources/hris/types/Employee.ts b/src/api/resources/hris/types/Employee.ts index 287296979..b29cbc6b6 100644 --- a/src/api/resources/hris/types/Employee.ts +++ b/src/api/resources/hris/types/Employee.ts @@ -9,7 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Employee` object is used to represent any person who has been employed by a company. + * 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 * diff --git a/src/api/resources/hris/types/EmployeeRequest.ts b/src/api/resources/hris/types/EmployeeRequest.ts index a4c39d9b1..2446f4ee0 100644 --- a/src/api/resources/hris/types/EmployeeRequest.ts +++ b/src/api/resources/hris/types/EmployeeRequest.ts @@ -9,7 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Employee` object is used to represent any person who has been employed by a company. + * 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 * diff --git a/src/api/resources/hris/types/EmployerBenefit.ts b/src/api/resources/hris/types/EmployerBenefit.ts index 63f4d6409..eb0d471cd 100644 --- a/src/api/resources/hris/types/EmployerBenefit.ts +++ b/src/api/resources/hris/types/EmployerBenefit.ts @@ -42,5 +42,5 @@ export interface EmployerBenefit { /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.hris.RemoteData[]; } diff --git a/src/api/resources/hris/types/Employment.ts b/src/api/resources/hris/types/Employment.ts index 7efe65109..fc79249fc 100644 --- a/src/api/resources/hris/types/Employment.ts +++ b/src/api/resources/hris/types/Employment.ts @@ -11,7 +11,7 @@ import * as Merge from "../../../index"; * * The `Employment` object is used to represent a job position at a company. * - * Please note: When there is a change in pay or title, integrations with historical data will create new Employment objects while integrations without historical data will update existing ones. + * 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 * diff --git a/src/api/resources/hris/types/EventTypeEnum.ts b/src/api/resources/hris/types/EventTypeEnum.ts index a0809652b..c6e8f16c3 100644 --- a/src/api/resources/hris/types/EventTypeEnum.ts +++ b/src/api/resources/hris/types/EventTypeEnum.ts @@ -34,6 +34,9 @@ * - `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 @@ -74,6 +77,9 @@ export type EventTypeEnum = | "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" @@ -114,6 +120,9 @@ export const EventTypeEnum = { 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", diff --git a/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts index f17f7fdcd..826f27981 100644 --- a/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/api/resources/hris/types/FieldMappingApiInstanceRemoteField.ts @@ -5,7 +5,7 @@ import * as Merge from "../../../index"; export interface FieldMappingApiInstanceRemoteField { - remoteKeyName: string; - schema: Record; + remoteKeyName?: string; + schema?: Record; remoteEndpointInfo: Merge.hris.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; } diff --git a/src/api/resources/hris/types/FieldPermissionDeserializer.ts b/src/api/resources/hris/types/FieldPermissionDeserializer.ts index 6c23a3691..1be021a9f 100644 --- a/src/api/resources/hris/types/FieldPermissionDeserializer.ts +++ b/src/api/resources/hris/types/FieldPermissionDeserializer.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializer { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts index cfd7d73df..6d94068e3 100644 --- a/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts +++ b/src/api/resources/hris/types/FieldPermissionDeserializerRequest.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializerRequest { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/hris/types/RemoteData.ts b/src/api/resources/hris/types/RemoteData.ts index 0f2f4454c..928b06e7a 100644 --- a/src/api/resources/hris/types/RemoteData.ts +++ b/src/api/resources/hris/types/RemoteData.ts @@ -2,7 +2,19 @@ * 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; data?: unknown; } diff --git a/src/api/resources/hris/types/TimesheetEntry.ts b/src/api/resources/hris/types/TimesheetEntry.ts index 2717c8a9a..604080cd7 100644 --- a/src/api/resources/hris/types/TimesheetEntry.ts +++ b/src/api/resources/hris/types/TimesheetEntry.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../index"; + /** * # The Timesheet Entry Object * @@ -22,7 +24,7 @@ export interface TimesheetEntry { /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee the timesheet entry is for. */ - employee?: string; + employee?: Merge.hris.TimesheetEntryEmployee; /** The number of hours logged by the employee. */ hoursWorked?: number; /** The time at which the employee started work. */ @@ -32,5 +34,5 @@ export interface TimesheetEntry { /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; - remoteData?: (Record | undefined)[]; + remoteData?: Merge.hris.RemoteData[]; } diff --git a/src/api/resources/hris/types/TimesheetEntryEmployee.ts b/src/api/resources/hris/types/TimesheetEntryEmployee.ts new file mode 100644 index 000000000..e4a9e49e7 --- /dev/null +++ b/src/api/resources/hris/types/TimesheetEntryEmployee.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 index f3cf0d79b..2a41b5d86 100644 --- a/src/api/resources/hris/types/TimesheetEntryRequest.ts +++ b/src/api/resources/hris/types/TimesheetEntryRequest.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../index"; + /** * # The Timesheet Entry Object * @@ -15,7 +17,7 @@ */ export interface TimesheetEntryRequest { /** The employee the timesheet entry is for. */ - employee?: string; + employee?: Merge.hris.TimesheetEntryRequestEmployee; /** The number of hours logged by the employee. */ hoursWorked?: number; /** The time at which the employee started work. */ diff --git a/src/api/resources/hris/types/TimesheetEntryRequestEmployee.ts b/src/api/resources/hris/types/TimesheetEntryRequestEmployee.ts new file mode 100644 index 000000000..f18db0742 --- /dev/null +++ b/src/api/resources/hris/types/TimesheetEntryRequestEmployee.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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/index.ts b/src/api/resources/hris/types/index.ts index 19b748534..e866ec9de 100644 --- a/src/api/resources/hris/types/index.ts +++ b/src/api/resources/hris/types/index.ts @@ -182,7 +182,9 @@ export * from "./TimeOffRequestRequestType"; export * from "./TimeOffRequest"; export * from "./TimeOffResponse"; export * from "./TimeOffStatusEnum"; +export * from "./TimesheetEntryEmployee"; export * from "./TimesheetEntry"; +export * from "./TimesheetEntryRequestEmployee"; export * from "./TimesheetEntryRequest"; export * from "./TimesheetEntryResponse"; export * from "./UnitsEnum"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 2be011c93..2c925acf7 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,6 +1,6 @@ +export * as filestorage from "./filestorage"; export * as ats from "./ats"; +export * as ticketing from "./ticketing"; export * as crm from "./crm"; -export * as filestorage from "./filestorage"; export * as hris from "./hris"; -export * as ticketing from "./ticketing"; export * as accounting from "./accounting"; diff --git a/src/api/resources/ticketing/resources/accountDetails/client/Client.ts b/src/api/resources/ticketing/resources/accountDetails/client/Client.ts index 141273ba0..dbb5666d7 100644 --- a/src/api/resources/ticketing/resources/accountDetails/client/Client.ts +++ b/src/api/resources/ticketing/resources/accountDetails/client/Client.ts @@ -58,8 +58,8 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/accountToken/client/Client.ts b/src/api/resources/ticketing/resources/accountToken/client/Client.ts index 4a4d15574..803526d3f 100644 --- a/src/api/resources/ticketing/resources/accountToken/client/Client.ts +++ b/src/api/resources/ticketing/resources/accountToken/client/Client.ts @@ -62,8 +62,8 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/accounts/client/Client.ts b/src/api/resources/ticketing/resources/accounts/client/Client.ts index c891dd2c2..62c22b92a 100644 --- a/src/api/resources/ticketing/resources/accounts/client/Client.ts +++ b/src/api/resources/ticketing/resources/accounts/client/Client.ts @@ -115,8 +115,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts b/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts index a6c1c2c49..6cf43f5d7 100644 --- a/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts @@ -65,8 +65,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -141,8 +141,8 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/attachments/client/Client.ts b/src/api/resources/ticketing/resources/attachments/client/Client.ts index da6cc6328..5e4e8cb4c 100644 --- a/src/api/resources/ticketing/resources/attachments/client/Client.ts +++ b/src/api/resources/ticketing/resources/attachments/client/Client.ts @@ -131,8 +131,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -215,8 +215,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -302,8 +302,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -375,8 +375,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -440,8 +440,8 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts index efce34a08..8b89cd57a 100644 --- a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts +++ b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts @@ -88,8 +88,8 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 72b9c9242..70181ee38 100644 --- a/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `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; /** diff --git a/src/api/resources/ticketing/resources/availableActions/client/Client.ts b/src/api/resources/ticketing/resources/availableActions/client/Client.ts index 34a1aa0ab..9ebc51d70 100644 --- a/src/api/resources/ticketing/resources/availableActions/client/Client.ts +++ b/src/api/resources/ticketing/resources/availableActions/client/Client.ts @@ -58,8 +58,8 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/collections/client/Client.ts b/src/api/resources/ticketing/resources/collections/client/Client.ts index 7cffb2c92..c04d2b9dd 100644 --- a/src/api/resources/ticketing/resources/collections/client/Client.ts +++ b/src/api/resources/ticketing/resources/collections/client/Client.ts @@ -140,8 +140,8 @@ export class Collections { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -232,8 +232,8 @@ export class Collections { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -277,108 +277,6 @@ export class Collections { } } - /** - * Returns a list of `User` objects. - * - * @param {string} parentId - * @param {Merge.ticketing.CollectionsUsersListRequest} request - * @param {Collections.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.ticketing.collections.usersList("parent_id") - */ - public async usersList( - parentId: string, - request: Merge.ticketing.CollectionsUsersListRequest = {}, - requestOptions?: Collections.RequestOptions - ): Promise { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = {}; - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (expand != null) { - _queryParams["expand"] = expand; - } - - if (includeDeletedData != null) { - _queryParams["include_deleted_data"] = includeDeletedData.toString(); - } - - if (includeRemoteData != null) { - _queryParams["include_remote_data"] = includeRemoteData.toString(); - } - - if (includeShellData != null) { - _queryParams["include_shell_data"] = includeShellData.toString(); - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `ticketing/v1/collections/${encodeURIComponent(parentId)}/users` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ticketing.PaginatedUserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError( - "Timeout exceeded when calling GET /ticketing/v1/collections/{parent_id}/users." - ); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - protected async _getAuthorizationHeader(): Promise { return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts index 8f32cfcdd..bc312a530 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts +++ b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../../../../index"; + /** * @example * {} @@ -26,7 +28,7 @@ export interface CollectionsListRequest { /** * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_collection"; + expand?: Merge.ticketing.CollectionsListRequestExpand; /** * Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts index 2072c4fa8..95b78a172 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Merge from "../../../../../../index"; + /** * @example * {} @@ -10,7 +12,7 @@ export interface CollectionsRetrieveRequest { /** * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_collection"; + expand?: Merge.ticketing.CollectionsRetrieveRequestExpand; /** * Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ticketing/resources/collections/client/requests/index.ts b/src/api/resources/ticketing/resources/collections/client/requests/index.ts index 41428534d..19208c5d6 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/index.ts +++ b/src/api/resources/ticketing/resources/collections/client/requests/index.ts @@ -1,3 +1,2 @@ export { type CollectionsListRequest } from "./CollectionsListRequest"; export { type CollectionsRetrieveRequest } from "./CollectionsRetrieveRequest"; -export { type CollectionsUsersListRequest } from "./CollectionsUsersListRequest"; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestExpand.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestExpand.ts new file mode 100644 index 000000000..73adb879e --- /dev/null +++ b/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestExpand.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CollectionsListRequestExpand = "parent_collection" | "teams" | "teams,parent_collection"; + +export const CollectionsListRequestExpand = { + ParentCollection: "parent_collection", + Teams: "teams", + TeamsParentCollection: "teams,parent_collection", +} as const; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpand.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpand.ts new file mode 100644 index 000000000..7232bd29c --- /dev/null +++ b/src/api/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpand.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CollectionsRetrieveRequestExpand = "parent_collection" | "teams" | "teams,parent_collection"; + +export const CollectionsRetrieveRequestExpand = { + ParentCollection: "parent_collection", + Teams: "teams", + TeamsParentCollection: "teams,parent_collection", +} as const; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsUsersListRequestExpand.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsUsersListRequestExpand.ts deleted file mode 100644 index 5231ce8d2..000000000 --- a/src/api/resources/ticketing/resources/collections/types/CollectionsUsersListRequestExpand.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type CollectionsUsersListRequestExpand = "roles" | "teams" | "teams,roles"; - -export const CollectionsUsersListRequestExpand = { - Roles: "roles", - Teams: "teams", - TeamsRoles: "teams,roles", -} as const; diff --git a/src/api/resources/ticketing/resources/collections/types/index.ts b/src/api/resources/ticketing/resources/collections/types/index.ts index 5502dfd18..9c2069633 100644 --- a/src/api/resources/ticketing/resources/collections/types/index.ts +++ b/src/api/resources/ticketing/resources/collections/types/index.ts @@ -1 +1,2 @@ -export * from "./CollectionsUsersListRequestExpand"; +export * from "./CollectionsListRequestExpand"; +export * from "./CollectionsRetrieveRequestExpand"; diff --git a/src/api/resources/ticketing/resources/comments/client/Client.ts b/src/api/resources/ticketing/resources/comments/client/Client.ts index fd3df32c7..8c55cf8a9 100644 --- a/src/api/resources/ticketing/resources/comments/client/Client.ts +++ b/src/api/resources/ticketing/resources/comments/client/Client.ts @@ -130,8 +130,8 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -214,8 +214,8 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -299,8 +299,8 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -367,8 +367,8 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/contacts/client/Client.ts b/src/api/resources/ticketing/resources/contacts/client/Client.ts index af834ac48..5768ea6f5 100644 --- a/src/api/resources/ticketing/resources/contacts/client/Client.ts +++ b/src/api/resources/ticketing/resources/contacts/client/Client.ts @@ -120,8 +120,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -291,8 +291,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -359,8 +359,8 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts b/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts index 1fba1a3cd..63fdbd28b 100644 --- a/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts @@ -56,8 +56,8 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts index d6b9b60a0..e854d97ad 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts @@ -38,14 +38,22 @@ export class FieldMapping { /** * 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 {FieldMapping.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.ticketing.fieldMapping.fieldMappingsRetrieve() */ public async fieldMappingsRetrieve( + request: Merge.ticketing.FieldMappingsRetrieveRequest = {}, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -60,13 +68,14 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, @@ -124,6 +133,12 @@ export class FieldMapping { request: Merge.ticketing.CreateFieldMappingRequest, requestOptions?: FieldMapping.RequestOptions ): Promise { + const { excludeRemoteFieldMetadata, ..._body } = request; + const _queryParams: Record = {}; + if (excludeRemoteFieldMetadata != null) { + _queryParams["exclude_remote_field_metadata"] = excludeRemoteFieldMetadata.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, @@ -138,15 +153,16 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", - body: serializers.ticketing.CreateFieldMappingRequest.jsonOrThrow(request, { + body: serializers.ticketing.CreateFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -212,8 +228,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -287,8 +303,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -373,8 +389,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -443,8 +459,8 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 21c3ca085..c4a2012c1 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -14,6 +14,10 @@ * } */ 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. */ diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts new file mode 100644 index 000000000..3ad738346 --- /dev/null +++ b/src/api/resources/ticketing/resources/fieldMapping/client/requests/FieldMappingsRetrieveRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +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/index.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/index.ts index 450f54c2b..5cc5b6db1 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/index.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/requests/index.ts @@ -1,3 +1,4 @@ +export { type FieldMappingsRetrieveRequest } from "./FieldMappingsRetrieveRequest"; export { type CreateFieldMappingRequest } from "./CreateFieldMappingRequest"; export { type PatchedEditFieldMappingRequest } from "./PatchedEditFieldMappingRequest"; export { type RemoteFieldsRetrieveRequest } from "./RemoteFieldsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/forceResync/client/Client.ts b/src/api/resources/ticketing/resources/forceResync/client/Client.ts index cf9555345..10ab5c5af 100644 --- a/src/api/resources/ticketing/resources/forceResync/client/Client.ts +++ b/src/api/resources/ticketing/resources/forceResync/client/Client.ts @@ -60,8 +60,8 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/generateKey/client/Client.ts b/src/api/resources/ticketing/resources/generateKey/client/Client.ts index 737e2c24d..1946a82fb 100644 --- a/src/api/resources/ticketing/resources/generateKey/client/Client.ts +++ b/src/api/resources/ticketing/resources/generateKey/client/Client.ts @@ -64,8 +64,8 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/issues/client/Client.ts b/src/api/resources/ticketing/resources/issues/client/Client.ts index 69af079e8..c80623eec 100644 --- a/src/api/resources/ticketing/resources/issues/client/Client.ts +++ b/src/api/resources/ticketing/resources/issues/client/Client.ts @@ -135,8 +135,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/linkToken/client/Client.ts b/src/api/resources/ticketing/resources/linkToken/client/Client.ts index c560375a7..af5b4ffc1 100644 --- a/src/api/resources/ticketing/resources/linkToken/client/Client.ts +++ b/src/api/resources/ticketing/resources/linkToken/client/Client.ts @@ -67,8 +67,8 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 63e149a8e..dd57088aa 100644 --- a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -44,6 +44,8 @@ export interface EndUserDetailsRequest { * * `de` - de */ language?: Merge.ticketing.LanguageEnum; + /** 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/ticketing/resources/linkedAccounts/client/Client.ts b/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts index db9c73491..42479eb3e 100644 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts @@ -130,8 +130,8 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/passthrough/client/Client.ts b/src/api/resources/ticketing/resources/passthrough/client/Client.ts index c726738c5..3155f6d81 100644 --- a/src/api/resources/ticketing/resources/passthrough/client/Client.ts +++ b/src/api/resources/ticketing/resources/passthrough/client/Client.ts @@ -65,8 +65,8 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/projects/client/Client.ts b/src/api/resources/ticketing/resources/projects/client/Client.ts index 7c194028a..020b06516 100644 --- a/src/api/resources/ticketing/resources/projects/client/Client.ts +++ b/src/api/resources/ticketing/resources/projects/client/Client.ts @@ -115,8 +115,8 @@ export class Projects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Projects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -295,8 +295,8 @@ export class Projects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts b/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts index 363e457df..53b646dc8 100644 --- a/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts @@ -64,8 +64,8 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/roles/client/Client.ts b/src/api/resources/ticketing/resources/roles/client/Client.ts index af82aa9a7..907fdccfa 100644 --- a/src/api/resources/ticketing/resources/roles/client/Client.ts +++ b/src/api/resources/ticketing/resources/roles/client/Client.ts @@ -115,8 +115,8 @@ export class Roles { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Roles { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/scopes/client/Client.ts b/src/api/resources/ticketing/resources/scopes/client/Client.ts index 8f0310bcf..6b17a277f 100644 --- a/src/api/resources/ticketing/resources/scopes/client/Client.ts +++ b/src/api/resources/ticketing/resources/scopes/client/Client.ts @@ -60,8 +60,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -129,8 +129,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -192,6 +192,10 @@ export class Scopes { * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", @@ -221,8 +225,8 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts b/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts index 0466b3904..fa02ec1e3 100644 --- a/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts +++ b/src/api/resources/ticketing/resources/scopes/client/requests/LinkedAccountCommonModelScopeDeserializerRequest.ts @@ -16,6 +16,10 @@ import * as Merge from "../../../../../../index"; * "WRITE": { * isEnabled: false * } + * }, + * fieldPermissions: { + * enabledFields: ["avatar", "home_location"], + * disabledFields: ["work_location"] * } * }, { * modelName: "Benefit", diff --git a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts index c482d722c..acb637f2b 100644 --- a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts +++ b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts @@ -72,8 +72,8 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/tags/client/Client.ts b/src/api/resources/ticketing/resources/tags/client/Client.ts index ea2bc32f1..7b20b4c2f 100644 --- a/src/api/resources/ticketing/resources/tags/client/Client.ts +++ b/src/api/resources/ticketing/resources/tags/client/Client.ts @@ -115,8 +115,8 @@ export class Tags { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Tags { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/teams/client/Client.ts b/src/api/resources/ticketing/resources/teams/client/Client.ts index ca10aa4ac..3bd2337c0 100644 --- a/src/api/resources/ticketing/resources/teams/client/Client.ts +++ b/src/api/resources/ticketing/resources/teams/client/Client.ts @@ -115,8 +115,8 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -195,8 +195,8 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/tickets/client/Client.ts b/src/api/resources/ticketing/resources/tickets/client/Client.ts index a2e0a78a5..06cc2f726 100644 --- a/src/api/resources/ticketing/resources/tickets/client/Client.ts +++ b/src/api/resources/ticketing/resources/tickets/client/Client.ts @@ -225,8 +225,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -309,8 +309,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -406,8 +406,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -492,8 +492,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -541,20 +541,20 @@ export class Tickets { } /** - * Returns a list of `User` objects. + * Returns a list of `Viewer` objects. * - * @param {string} parentId - * @param {Merge.ticketing.TicketsCollaboratorsListRequest} request + * @param {string} ticketId + * @param {Merge.ticketing.TicketsViewersListRequest} request * @param {Tickets.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.ticketing.tickets.collaboratorsList("parent_id") + * await client.ticketing.tickets.viewersList("ticket_id") */ - public async collaboratorsList( - parentId: string, - request: Merge.ticketing.TicketsCollaboratorsListRequest = {}, + public async viewersList( + ticketId: string, + request: Merge.ticketing.TicketsViewersListRequest = {}, requestOptions?: Tickets.RequestOptions - ): Promise { + ): Promise { const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; const _queryParams: Record = {}; if (cursor != null) { @@ -584,7 +584,7 @@ export class Tickets { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `ticketing/v1/tickets/${encodeURIComponent(parentId)}/collaborators` + `ticketing/v1/tickets/${encodeURIComponent(ticketId)}/viewers` ), method: "GET", headers: { @@ -595,8 +595,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -609,7 +609,7 @@ export class Tickets { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.ticketing.PaginatedUserList.parseOrThrow(_response.body, { + return serializers.ticketing.PaginatedViewerList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -633,7 +633,7 @@ export class Tickets { }); case "timeout": throw new errors.MergeTimeoutError( - "Timeout exceeded when calling GET /ticketing/v1/tickets/{parent_id}/collaborators." + "Timeout exceeded when calling GET /ticketing/v1/tickets/{ticket_id}/viewers." ); case "unknown": throw new errors.MergeError({ @@ -669,8 +669,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -738,8 +738,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -838,8 +838,8 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts index dc8aaab66..54d53eaaf 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts @@ -128,13 +128,8 @@ export interface TicketsListRequest { showEnumOrigins?: Merge.ticketing.TicketsListRequestShowEnumOrigins; /** * If provided, will only return tickets of this status. - * - * - `OPEN` - OPEN - * - `CLOSED` - CLOSED - * - `IN_PROGRESS` - IN_PROGRESS - * - `ON_HOLD` - ON_HOLD */ - status?: Merge.ticketing.TicketsListRequestStatus; + status?: string; /** * If provided, will only return tickets matching the tags; multiple tags can be separated by commas. */ diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsUsersListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts similarity index 91% rename from src/api/resources/ticketing/resources/collections/client/requests/CollectionsUsersListRequest.ts rename to src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts index 5c8f2b084..6400d1086 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsUsersListRequest.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts @@ -8,7 +8,7 @@ import * as Merge from "../../../../../../index"; * @example * {} */ -export interface CollectionsUsersListRequest { +export interface TicketsViewersListRequest { /** * The pagination cursor value. */ @@ -16,7 +16,7 @@ export interface CollectionsUsersListRequest { /** * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.CollectionsUsersListRequestExpand; + 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/). */ diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/index.ts b/src/api/resources/ticketing/resources/tickets/client/requests/index.ts index 742fc8f2b..91425126e 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/index.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/index.ts @@ -2,5 +2,5 @@ export { type TicketsListRequest } from "./TicketsListRequest"; export { type TicketEndpointRequest } from "./TicketEndpointRequest"; export { type TicketsRetrieveRequest } from "./TicketsRetrieveRequest"; export { type PatchedTicketEndpointRequest } from "./PatchedTicketEndpointRequest"; -export { type TicketsCollaboratorsListRequest } from "./TicketsCollaboratorsListRequest"; +export { type TicketsViewersListRequest } from "./TicketsViewersListRequest"; export { type TicketsRemoteFieldClassesListRequest } from "./TicketsRemoteFieldClassesListRequest"; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsCollaboratorsListRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsCollaboratorsListRequestExpand.ts deleted file mode 100644 index 3af268ed8..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsCollaboratorsListRequestExpand.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type TicketsCollaboratorsListRequestExpand = "roles" | "teams" | "teams,roles"; - -export const TicketsCollaboratorsListRequestExpand = { - Roles: "roles", - Teams: "teams", - TeamsRoles: "teams,roles", -} as const; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts index b0f366a81..fd8036e1d 100644 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts @@ -11,6 +11,22 @@ export type TicketsListRequestExpand = | "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" @@ -20,6 +36,22 @@ export type TicketsListRequestExpand = | "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" @@ -29,6 +61,22 @@ export type TicketsListRequestExpand = | "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" @@ -52,6 +100,22 @@ export type TicketsListRequestExpand = | "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" @@ -61,6 +125,22 @@ export type TicketsListRequestExpand = | "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" @@ -70,6 +150,22 @@ export type TicketsListRequestExpand = | "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" @@ -93,6 +189,22 @@ export type TicketsListRequestExpand = | "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" @@ -116,6 +228,22 @@ export type TicketsListRequestExpand = | "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" @@ -140,6 +268,22 @@ export const TicketsListRequestExpand = { 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", @@ -149,6 +293,23 @@ export const TicketsListRequestExpand = { 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", @@ -159,6 +320,27 @@ export const TicketsListRequestExpand = { 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", @@ -182,6 +364,23 @@ export const TicketsListRequestExpand = { 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", @@ -192,6 +391,27 @@ export const TicketsListRequestExpand = { 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", @@ -204,6 +424,34 @@ export const TicketsListRequestExpand = { 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: @@ -229,6 +477,30 @@ export const TicketsListRequestExpand = { 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", @@ -252,6 +524,23 @@ export const TicketsListRequestExpand = { 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", 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 6acf723eb..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type TicketsListRequestStatus = "CLOSED" | "IN_PROGRESS" | "ON_HOLD" | "OPEN"; - -export const TicketsListRequestStatus = { - Closed: "CLOSED", - InProgress: "IN_PROGRESS", - OnHold: "ON_HOLD", - Open: "OPEN", -} as const; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts index bc957ddaa..9af480bec 100644 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts @@ -11,6 +11,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -20,6 +36,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -29,6 +61,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -52,6 +100,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -61,6 +125,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -70,6 +150,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -93,6 +189,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -116,6 +228,22 @@ export type TicketsRetrieveRequestExpand = | "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" @@ -140,6 +268,22 @@ export const TicketsRetrieveRequestExpand = { 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", @@ -149,6 +293,23 @@ export const TicketsRetrieveRequestExpand = { 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", @@ -159,6 +320,27 @@ export const TicketsRetrieveRequestExpand = { 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", @@ -182,6 +364,23 @@ export const TicketsRetrieveRequestExpand = { 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", @@ -192,6 +391,27 @@ export const TicketsRetrieveRequestExpand = { 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", @@ -204,6 +424,34 @@ export const TicketsRetrieveRequestExpand = { 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: @@ -229,6 +477,30 @@ export const TicketsRetrieveRequestExpand = { 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", @@ -252,6 +524,23 @@ export const TicketsRetrieveRequestExpand = { 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", diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts new file mode 100644 index 000000000..b589efc9b --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TicketsViewersListRequestExpand = "team" | "user" | "user,team"; + +export const TicketsViewersListRequestExpand = { + Team: "team", + User: "user", + UserTeam: "user,team", +} as const; diff --git a/src/api/resources/ticketing/resources/tickets/types/index.ts b/src/api/resources/ticketing/resources/tickets/types/index.ts index db8c09ad9..c3763c104 100644 --- a/src/api/resources/ticketing/resources/tickets/types/index.ts +++ b/src/api/resources/ticketing/resources/tickets/types/index.ts @@ -2,8 +2,7 @@ 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 "./TicketsCollaboratorsListRequestExpand"; +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 index bb9de9784..a59d1a9bb 100644 --- a/src/api/resources/ticketing/resources/users/client/Client.ts +++ b/src/api/resources/ticketing/resources/users/client/Client.ts @@ -125,8 +125,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -209,8 +209,8 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts b/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts index c3c6881bd..16a086bf4 100644 --- a/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts @@ -58,8 +58,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -134,8 +134,8 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.1.1", - "User-Agent": "@mergeapi/merge-node-client/1.1.1", + "X-Fern-SDK-Version": "1.1.2", + "User-Agent": "@mergeapi/merge-node-client/1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/ticketing/types/AuditLogEvent.ts b/src/api/resources/ticketing/types/AuditLogEvent.ts index 010ce70af..9c1739767 100644 --- a/src/api/resources/ticketing/types/AuditLogEvent.ts +++ b/src/api/resources/ticketing/types/AuditLogEvent.ts @@ -56,6 +56,9 @@ export interface AuditLogEvent { * - `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 diff --git a/src/api/resources/ticketing/types/AuditLogEventEventType.ts b/src/api/resources/ticketing/types/AuditLogEventEventType.ts index dcb1110b0..8e3329f9d 100644 --- a/src/api/resources/ticketing/types/AuditLogEventEventType.ts +++ b/src/api/resources/ticketing/types/AuditLogEventEventType.ts @@ -38,6 +38,9 @@ import * as Merge from "../../../index"; * - `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 diff --git a/src/api/resources/ticketing/types/Collection.ts b/src/api/resources/ticketing/types/Collection.ts index fb448350b..f0d713ee4 100644 --- a/src/api/resources/ticketing/types/Collection.ts +++ b/src/api/resources/ticketing/types/Collection.ts @@ -9,8 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Collection` object is used to represent collections of tickets. Collections may include other collections as - * sub collections. + * 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 * @@ -37,6 +36,7 @@ export interface Collection { collectionType?: Merge.ticketing.CollectionCollectionType; /** The parent collection for this collection. */ parentCollection?: Merge.ticketing.CollectionParentCollection; + teams?: (Merge.ticketing.CollectionTeamsItem | 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; /** diff --git a/src/api/resources/ticketing/types/CollectionTeamsItem.ts b/src/api/resources/ticketing/types/CollectionTeamsItem.ts new file mode 100644 index 000000000..813a855e3 --- /dev/null +++ b/src/api/resources/ticketing/types/CollectionTeamsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type CollectionTeamsItem = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/EventTypeEnum.ts b/src/api/resources/ticketing/types/EventTypeEnum.ts index a0809652b..c6e8f16c3 100644 --- a/src/api/resources/ticketing/types/EventTypeEnum.ts +++ b/src/api/resources/ticketing/types/EventTypeEnum.ts @@ -34,6 +34,9 @@ * - `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 @@ -74,6 +77,9 @@ export type EventTypeEnum = | "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" @@ -114,6 +120,9 @@ export const EventTypeEnum = { 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", diff --git a/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts b/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts index 37ce9a67c..cc399b399 100644 --- a/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/api/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts @@ -5,7 +5,7 @@ import * as Merge from "../../../index"; export interface FieldMappingApiInstanceRemoteField { - remoteKeyName: string; - schema: Record; + remoteKeyName?: string; + schema?: Record; remoteEndpointInfo: Merge.ticketing.FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo; } diff --git a/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts b/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts index 6c23a3691..1be021a9f 100644 --- a/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts +++ b/src/api/resources/ticketing/types/FieldPermissionDeserializer.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializer { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts b/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts index cfd7d73df..6d94068e3 100644 --- a/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts +++ b/src/api/resources/ticketing/types/FieldPermissionDeserializerRequest.ts @@ -3,6 +3,6 @@ */ export interface FieldPermissionDeserializerRequest { - enabled?: unknown[]; - disabled?: unknown[]; + enabledFields?: unknown[]; + disabledFields?: unknown[]; } diff --git a/src/api/resources/ticketing/types/PaginatedViewerList.ts b/src/api/resources/ticketing/types/PaginatedViewerList.ts new file mode 100644 index 000000000..612045b98 --- /dev/null +++ b/src/api/resources/ticketing/types/PaginatedViewerList.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 index 7c5805a9f..7b4b731fd 100644 --- a/src/api/resources/ticketing/types/PatchedTicketRequest.ts +++ b/src/api/resources/ticketing/types/PatchedTicketRequest.ts @@ -9,7 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Ticket` object is used to represent a ticket or a task within a system. + * The `Ticket` object is used to represent a ticket, issue, task or case. * * ### Usage Example * @@ -18,7 +18,10 @@ import * as Merge from "../../../index"; 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. */ assignees?: (string | undefined)[]; + /** The `Teams` that are assigned to this ticket. This does not include `Teams` who just have view access to this ticket. */ + assignedTeams?: (string | undefined)[]; /** The user who created this ticket. */ creator?: string; /** The ticket's due date. */ @@ -34,6 +37,7 @@ export interface PatchedTicketRequest { 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; @@ -44,6 +48,7 @@ export interface PatchedTicketRequest { /** The ticket's parent ticket. */ parentTicket?: string; tags?: (string | undefined)[]; + roles?: (string | undefined)[]; /** When the ticket was completed. */ completedAt?: Date; /** The 3rd party url of the Ticket. */ diff --git a/src/api/resources/ticketing/types/RemoteData.ts b/src/api/resources/ticketing/types/RemoteData.ts index 0f2f4454c..928b06e7a 100644 --- a/src/api/resources/ticketing/types/RemoteData.ts +++ b/src/api/resources/ticketing/types/RemoteData.ts @@ -2,7 +2,19 @@ * 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; data?: unknown; } diff --git a/src/api/resources/ticketing/types/Team.ts b/src/api/resources/ticketing/types/Team.ts index 1ae6cb168..0929270d0 100644 --- a/src/api/resources/ticketing/types/Team.ts +++ b/src/api/resources/ticketing/types/Team.ts @@ -9,7 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Team` object is used to represent a team within the company receiving the ticket. + * The `Team` object is used to represent one or more `Users` within the company receiving the ticket. * * ### Usage Example * diff --git a/src/api/resources/ticketing/types/Ticket.ts b/src/api/resources/ticketing/types/Ticket.ts index 87a330526..e6dc82f37 100644 --- a/src/api/resources/ticketing/types/Ticket.ts +++ b/src/api/resources/ticketing/types/Ticket.ts @@ -9,7 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Ticket` object is used to represent a ticket or a task within a system. + * The `Ticket` object is used to represent a ticket, issue, task or case. * * ### Usage Example * @@ -25,7 +25,10 @@ export interface Ticket { 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. */ 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. */ + assignedTeams?: (Merge.ticketing.TicketAssignedTeamsItem | undefined)[]; /** The user who created this ticket. */ creator?: Merge.ticketing.TicketCreator; /** The ticket's due date. */ @@ -41,6 +44,7 @@ export interface Ticket { 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; @@ -52,6 +56,7 @@ export interface Ticket { parentTicket?: Merge.ticketing.TicketParentTicket; attachments?: (Merge.ticketing.TicketAttachmentsItem | undefined)[]; tags?: (string | undefined)[]; + roles?: (string | undefined)[]; /** When the third party's ticket was created. */ remoteCreatedAt?: Date; /** When the third party's ticket was updated. */ diff --git a/src/api/resources/ticketing/types/TicketAssignedTeamsItem.ts b/src/api/resources/ticketing/types/TicketAssignedTeamsItem.ts new file mode 100644 index 000000000..829cfa51e --- /dev/null +++ b/src/api/resources/ticketing/types/TicketAssignedTeamsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type TicketAssignedTeamsItem = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/TicketRequest.ts b/src/api/resources/ticketing/types/TicketRequest.ts index 2d35a277f..e0c70f1d4 100644 --- a/src/api/resources/ticketing/types/TicketRequest.ts +++ b/src/api/resources/ticketing/types/TicketRequest.ts @@ -9,7 +9,7 @@ import * as Merge from "../../../index"; * * ### Description * - * The `Ticket` object is used to represent a ticket or a task within a system. + * The `Ticket` object is used to represent a ticket, issue, task or case. * * ### Usage Example * @@ -18,7 +18,10 @@ import * as Merge from "../../../index"; 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. */ 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. */ + assignedTeams?: (Merge.ticketing.TicketRequestAssignedTeamsItem | undefined)[]; /** The user who created this ticket. */ creator?: Merge.ticketing.TicketRequestCreator; /** The ticket's due date. */ @@ -34,6 +37,7 @@ export interface TicketRequest { 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; @@ -45,6 +49,7 @@ export interface TicketRequest { parentTicket?: Merge.ticketing.TicketRequestParentTicket; attachments?: (Merge.ticketing.TicketRequestAttachmentsItem | undefined)[]; tags?: (string | undefined)[]; + roles?: (string | undefined)[]; /** When the ticket was completed. */ completedAt?: Date; /** The 3rd party url of the Ticket. */ diff --git a/src/api/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts b/src/api/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts new file mode 100644 index 000000000..348336680 --- /dev/null +++ b/src/api/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type TicketRequestAssignedTeamsItem = string | Merge.ticketing.Team; diff --git a/src/api/resources/ticketing/types/User.ts b/src/api/resources/ticketing/types/User.ts index ce4a7e73a..32a397daa 100644 --- a/src/api/resources/ticketing/types/User.ts +++ b/src/api/resources/ticketing/types/User.ts @@ -9,7 +9,8 @@ import * as Merge from "../../../index"; * * ### Description * - * The `User` object is used to represent an employee within a company. + * 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 * diff --git a/src/api/resources/ticketing/types/Viewer.ts b/src/api/resources/ticketing/types/Viewer.ts new file mode 100644 index 000000000..cf0ee6b99 --- /dev/null +++ b/src/api/resources/ticketing/types/Viewer.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..a225e6f99 --- /dev/null +++ b/src/api/resources/ticketing/types/ViewerTeam.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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 new file mode 100644 index 000000000..97b054119 --- /dev/null +++ b/src/api/resources/ticketing/types/ViewerUser.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * 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/index.ts b/src/api/resources/ticketing/types/index.ts index a12ad7898..0575fe001 100644 --- a/src/api/resources/ticketing/types/index.ts +++ b/src/api/resources/ticketing/types/index.ts @@ -20,6 +20,7 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CollectionCollectionType"; export * from "./CollectionParentCollection"; +export * from "./CollectionTeamsItem"; export * from "./CollectionAccessLevel"; export * from "./Collection"; export * from "./CollectionTypeEnum"; @@ -91,6 +92,7 @@ export * from "./PaginatedTagList"; export * from "./PaginatedTeamList"; export * from "./PaginatedTicketList"; export * from "./PaginatedUserList"; +export * from "./PaginatedViewerList"; export * from "./PatchedTicketRequestStatus"; export * from "./PatchedTicketRequestPriority"; export * from "./PatchedTicketRequest"; @@ -123,6 +125,7 @@ export * from "./SyncStatusStatusEnum"; export * from "./Tag"; export * from "./Team"; export * from "./TicketAssigneesItem"; +export * from "./TicketAssignedTeamsItem"; export * from "./TicketCreator"; export * from "./TicketStatus"; export * from "./TicketCollectionsItem"; @@ -135,6 +138,7 @@ export * from "./Ticket"; export * from "./TicketAccessEnum"; export * from "./TicketActionsEnum"; export * from "./TicketRequestAssigneesItem"; +export * from "./TicketRequestAssignedTeamsItem"; export * from "./TicketRequestCreator"; export * from "./TicketRequestStatus"; export * from "./TicketRequestCollectionsItem"; @@ -152,5 +156,8 @@ export * from "./UserTeamsItem"; export * from "./UserRolesItem"; export * from "./User"; export * from "./ValidationProblemSource"; +export * from "./ViewerTeam"; +export * from "./ViewerUser"; +export * from "./Viewer"; export * from "./WarningValidationProblem"; export * from "./WebhookReceiver"; diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/index.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/index.ts new file mode 100644 index 000000000..eea524d65 --- /dev/null +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/index.ts @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000..594ecc66a --- /dev/null +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts @@ -0,0 +1,47 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + 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 new file mode 100644 index 000000000..1ec79a6f1 --- /dev/null +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts @@ -0,0 +1,47 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + 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 new file mode 100644 index 000000000..e77fb4471 --- /dev/null +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts @@ -0,0 +1,2 @@ +export * from "./GeneralLedgerTransactionsListRequestExpand"; +export * from "./GeneralLedgerTransactionsRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/resources/index.ts b/src/serialization/resources/accounting/resources/index.ts index 1387cefe0..1b383fa7f 100644 --- a/src/serialization/resources/accounting/resources/index.ts +++ b/src/serialization/resources/accounting/resources/index.ts @@ -10,6 +10,8 @@ export * as creditNotes from "./creditNotes"; export * from "./creditNotes/types"; export * as expenses from "./expenses"; export * from "./expenses/types"; +export * as generalLedgerTransactions from "./generalLedgerTransactions"; +export * from "./generalLedgerTransactions/types"; export * as invoices from "./invoices"; export * from "./invoices/types"; export * as issues from "./issues"; diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts new file mode 100644 index 000000000..4c2893cbe --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestStatus.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + type Raw = "DRAFT" | "OPEN" | "PAID" | "PARTIALLY_PAID" | "SUBMITTED" | "VOID"; +} diff --git a/src/serialization/resources/accounting/resources/invoices/types/index.ts b/src/serialization/resources/accounting/resources/invoices/types/index.ts index 0f37ec2ca..6066a0bb6 100644 --- a/src/serialization/resources/accounting/resources/invoices/types/index.ts +++ b/src/serialization/resources/accounting/resources/invoices/types/index.ts @@ -1,3 +1,4 @@ export * from "./InvoicesListRequestExpand"; +export * from "./InvoicesListRequestStatus"; export * from "./InvoicesListRequestType"; export * from "./InvoicesRetrieveRequestExpand"; diff --git a/src/serialization/resources/accounting/types/AccountCurrency.ts b/src/serialization/resources/accounting/types/AccountCurrency.ts index 59332c5dd..f3b4179d3 100644 --- a/src/serialization/resources/accounting/types/AccountCurrency.ts +++ b/src/serialization/resources/accounting/types/AccountCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const AccountCurrency: core.serialization.Schema< serializers.accounting.AccountCurrency.Raw, Merge.accounting.AccountCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace AccountCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/AccountRequestCurrency.ts b/src/serialization/resources/accounting/types/AccountRequestCurrency.ts index 98245c5f3..4d3fce53a 100644 --- a/src/serialization/resources/accounting/types/AccountRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/AccountRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const AccountRequestCurrency: core.serialization.Schema< serializers.accounting.AccountRequestCurrency.Raw, Merge.accounting.AccountRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace AccountRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts b/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts index 701dacc18..445caf92d 100644 --- a/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts +++ b/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const BalanceSheetCurrency: core.serialization.Schema< serializers.accounting.BalanceSheetCurrency.Raw, Merge.accounting.BalanceSheetCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace BalanceSheetCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts b/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts index 386727354..26aa4c5db 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const BankFeedAccountCurrency: core.serialization.Schema< serializers.accounting.BankFeedAccountCurrency.Raw, Merge.accounting.BankFeedAccountCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace BankFeedAccountCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts index e1bca6fb2..abd6faeea 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const BankFeedAccountRequestCurrency: core.serialization.Schema< serializers.accounting.BankFeedAccountRequestCurrency.Raw, Merge.accounting.BankFeedAccountRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace BankFeedAccountRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts b/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts index 58066e30f..e0e715c41 100644 --- a/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts +++ b/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CashFlowStatementCurrency: core.serialization.Schema< serializers.accounting.CashFlowStatementCurrency.Raw, Merge.accounting.CashFlowStatementCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace CashFlowStatementCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts b/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts index 1bbe0e200..d3d778f67 100644 --- a/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts +++ b/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CompanyInfoCurrency: core.serialization.Schema< serializers.accounting.CompanyInfoCurrency.Raw, Merge.accounting.CompanyInfoCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace CompanyInfoCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CreditNote.ts b/src/serialization/resources/accounting/types/CreditNote.ts index 7d924b3b7..3c1f05cb8 100644 --- a/src/serialization/resources/accounting/types/CreditNote.ts +++ b/src/serialization/resources/accounting/types/CreditNote.ts @@ -46,7 +46,6 @@ export const CreditNote: core.serialization.ObjectSchema< "applied_payments", core.serialization.list(CreditNoteAppliedPaymentsItem.optional()).optional() ), - remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), accountingPeriod: core.serialization.property("accounting_period", CreditNoteAccountingPeriod.optional()), appliedToLines: core.serialization.property( "applied_to_lines", @@ -54,6 +53,7 @@ export const CreditNote: core.serialization.ObjectSchema< .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() @@ -83,9 +83,9 @@ export declare namespace CreditNote { remote_updated_at?: string | null; payments?: (CreditNotePaymentsItem.Raw | null | undefined)[] | null; applied_payments?: (CreditNoteAppliedPaymentsItem.Raw | null | undefined)[] | null; - remote_was_deleted?: boolean | 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/CreditNoteCurrency.ts b/src/serialization/resources/accounting/types/CreditNoteCurrency.ts index 4ccdb438d..340783327 100644 --- a/src/serialization/resources/accounting/types/CreditNoteCurrency.ts +++ b/src/serialization/resources/accounting/types/CreditNoteCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CreditNoteCurrency: core.serialization.Schema< serializers.accounting.CreditNoteCurrency.Raw, Merge.accounting.CreditNoteCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace CreditNoteCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts index 9e4aaa060..3cec76171 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.ts @@ -5,12 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { PaymentLineItem } from "./PaymentLineItem"; export const CreditNoteRequestAppliedPaymentsItem: core.serialization.Schema< serializers.accounting.CreditNoteRequestAppliedPaymentsItem.Raw, Merge.accounting.CreditNoteRequestAppliedPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), core.serialization.unknown()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); export declare namespace CreditNoteRequestAppliedPaymentsItem { - type Raw = string | unknown; + type Raw = string | PaymentLineItem.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts b/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts index e3c6e53cc..22830d743 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CreditNoteRequestCurrency: core.serialization.Schema< serializers.accounting.CreditNoteRequestCurrency.Raw, Merge.accounting.CreditNoteRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace CreditNoteRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts index 2ba19cde3..eb1ce8649 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CreditNoteLineItem } from "./CreditNoteLineItem"; +import { CreditNoteLineItemRequest } from "./CreditNoteLineItemRequest"; export const CreditNoteRequestLineItemsItem: core.serialization.Schema< serializers.accounting.CreditNoteRequestLineItemsItem.Raw, Merge.accounting.CreditNoteRequestLineItemsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteLineItem]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteLineItemRequest]); export declare namespace CreditNoteRequestLineItemsItem { - type Raw = string | CreditNoteLineItem.Raw; + type Raw = string | CreditNoteLineItemRequest.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseCurrency.ts b/src/serialization/resources/accounting/types/ExpenseCurrency.ts index 0c3936368..d3ac10ad2 100644 --- a/src/serialization/resources/accounting/types/ExpenseCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseCurrency: core.serialization.Schema< serializers.accounting.ExpenseCurrency.Raw, Merge.accounting.ExpenseCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace ExpenseCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts b/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts index 047871773..7fe411797 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseLineCurrency: core.serialization.Schema< serializers.accounting.ExpenseLineCurrency.Raw, Merge.accounting.ExpenseLineCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace ExpenseLineCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts index 7c2d60a22..82b1eb6a3 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseLineRequestCurrency: core.serialization.Schema< serializers.accounting.ExpenseLineRequestCurrency.Raw, Merge.accounting.ExpenseLineRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace ExpenseLineRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts index 8a0e5a392..841723b31 100644 --- a/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseRequestCurrency: core.serialization.Schema< serializers.accounting.ExpenseRequestCurrency.Raw, Merge.accounting.ExpenseRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace ExpenseRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransaction.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransaction.ts new file mode 100644 index 000000000..771859c15 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransaction.ts @@ -0,0 +1,74 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { GeneralLedgerTransactionUnderlyingTransactionType } from "./GeneralLedgerTransactionUnderlyingTransactionType"; +import { GeneralLedgerTransactionAccountingPeriod } from "./GeneralLedgerTransactionAccountingPeriod"; +import { GeneralLedgerTransactionCompany } from "./GeneralLedgerTransactionCompany"; +import { GeneralLedgerTransactionTrackingCategoriesItem } from "./GeneralLedgerTransactionTrackingCategoriesItem"; +import { GeneralLedgerTransactionGeneralLedgerTransactionLinesItem } from "./GeneralLedgerTransactionGeneralLedgerTransactionLinesItem"; +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 { + 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 new file mode 100644 index 000000000..a4b4e428c --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionAccountingPeriod.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | AccountingPeriod.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionCompany.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionCompany.ts new file mode 100644 index 000000000..8dac94051 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionCompany.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts new file mode 100644 index 000000000..e24bfabe6 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionGeneralLedgerTransactionLinesItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | GeneralLedgerTransactionLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts new file mode 100644 index 000000000..09fbc4a5d --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLine.ts @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { GeneralLedgerTransactionLineAccount } from "./GeneralLedgerTransactionLineAccount"; +import { GeneralLedgerTransactionLineCompany } from "./GeneralLedgerTransactionLineCompany"; +import { GeneralLedgerTransactionLineEmployee } from "./GeneralLedgerTransactionLineEmployee"; +import { GeneralLedgerTransactionLineContact } from "./GeneralLedgerTransactionLineContact"; +import { GeneralLedgerTransactionLineBaseCurrency } from "./GeneralLedgerTransactionLineBaseCurrency"; +import { GeneralLedgerTransactionLineTransactionCurrency } from "./GeneralLedgerTransactionLineTransactionCurrency"; +import { TrackingCategory } from "./TrackingCategory"; +import { GeneralLedgerTransactionLineItem } from "./GeneralLedgerTransactionLineItem"; + +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(), + 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(TrackingCategory).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 { + 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; + base_currency?: GeneralLedgerTransactionLineBaseCurrency.Raw | null; + transaction_currency?: GeneralLedgerTransactionLineTransactionCurrency.Raw | null; + exchange_rate?: string | null; + description?: string | null; + tracking_categories?: TrackingCategory.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 new file mode 100644 index 000000000..01da34f5d --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineAccount.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | Account.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts new file mode 100644 index 000000000..7097e4885 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const GeneralLedgerTransactionLineBaseCurrency: core.serialization.Schema< + serializers.accounting.GeneralLedgerTransactionLineBaseCurrency.Raw, + Merge.accounting.GeneralLedgerTransactionLineBaseCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace GeneralLedgerTransactionLineBaseCurrency { + type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts new file mode 100644 index 000000000..51ffbec45 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineCompany.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineContact.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineContact.ts new file mode 100644 index 000000000..0fae87c63 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineContact.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts new file mode 100644 index 000000000..a579eb500 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineEmployee.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | Employee.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineItem.ts new file mode 100644 index 000000000..a9b061e02 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | Item.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts new file mode 100644 index 000000000..285fd3244 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const GeneralLedgerTransactionLineTransactionCurrency: core.serialization.Schema< + serializers.accounting.GeneralLedgerTransactionLineTransactionCurrency.Raw, + Merge.accounting.GeneralLedgerTransactionLineTransactionCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace GeneralLedgerTransactionLineTransactionCurrency { + type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts new file mode 100644 index 000000000..d2d082e89 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionTrackingCategoriesItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts new file mode 100644 index 000000000..c2966abc6 --- /dev/null +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = UnderlyingTransactionTypeEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts b/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts index 8c439f5db..532d4c8f1 100644 --- a/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts +++ b/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const IncomeStatementCurrency: core.serialization.Schema< serializers.accounting.IncomeStatementCurrency.Raw, Merge.accounting.IncomeStatementCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace IncomeStatementCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceCurrency.ts b/src/serialization/resources/accounting/types/InvoiceCurrency.ts index 7162341cc..5109b067c 100644 --- a/src/serialization/resources/accounting/types/InvoiceCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceCurrency: core.serialization.Schema< serializers.accounting.InvoiceCurrency.Raw, Merge.accounting.InvoiceCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace InvoiceCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts b/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts index 338d367f4..451eee8c4 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceLineItemCurrency: core.serialization.Schema< serializers.accounting.InvoiceLineItemCurrency.Raw, Merge.accounting.InvoiceLineItemCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace InvoiceLineItemCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts index abd4356c1..4a657cc88 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceLineItemRequestCurrency: core.serialization.Schema< serializers.accounting.InvoiceLineItemRequestCurrency.Raw, Merge.accounting.InvoiceLineItemRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace InvoiceLineItemRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts b/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts index 82e1d4415..00b7555e7 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceRequestCurrency: core.serialization.Schema< serializers.accounting.InvoiceRequestCurrency.Raw, Merge.accounting.InvoiceRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace InvoiceRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalEntryCurrency.ts b/src/serialization/resources/accounting/types/JournalEntryCurrency.ts index b4f0dbbd3..3d56a11c2 100644 --- a/src/serialization/resources/accounting/types/JournalEntryCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalEntryCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalEntryCurrency: core.serialization.Schema< serializers.accounting.JournalEntryCurrency.Raw, Merge.accounting.JournalEntryCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace JournalEntryCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts b/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts index 53cc9a257..303506b29 100644 --- a/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalEntryRequestCurrency: core.serialization.Schema< serializers.accounting.JournalEntryRequestCurrency.Raw, Merge.accounting.JournalEntryRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace JournalEntryRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalLineCurrency.ts b/src/serialization/resources/accounting/types/JournalLineCurrency.ts index f00d94112..d248a1ac2 100644 --- a/src/serialization/resources/accounting/types/JournalLineCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalLineCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalLineCurrency: core.serialization.Schema< serializers.accounting.JournalLineCurrency.Raw, Merge.accounting.JournalLineCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace JournalLineCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts b/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts index 51b990f92..47eb1fd5d 100644 --- a/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalLineRequestCurrency: core.serialization.Schema< serializers.accounting.JournalLineRequestCurrency.Raw, Merge.accounting.JournalLineRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace JournalLineRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts b/src/serialization/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts new file mode 100644 index 000000000..beae204c5 --- /dev/null +++ b/src/serialization/resources/accounting/types/PaginatedGeneralLedgerTransactionList.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + interface Raw { + next?: string | null; + previous?: string | null; + results?: GeneralLedgerTransaction.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts index 3745baa5b..bc697e927 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequestAppliedToLinesItem.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { PaymentLineItem } from "./PaymentLineItem"; +import { PaymentLineItemRequest } from "./PaymentLineItemRequest"; export const PatchedPaymentRequestAppliedToLinesItem: core.serialization.Schema< serializers.accounting.PatchedPaymentRequestAppliedToLinesItem.Raw, Merge.accounting.PatchedPaymentRequestAppliedToLinesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItem]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentLineItemRequest]); export declare namespace PatchedPaymentRequestAppliedToLinesItem { - type Raw = string | PaymentLineItem.Raw; + type Raw = string | PaymentLineItemRequest.Raw; } diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts index 3a3d5ca75..feacefafd 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PatchedPaymentRequestCurrency: core.serialization.Schema< serializers.accounting.PatchedPaymentRequestCurrency.Raw, Merge.accounting.PatchedPaymentRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PatchedPaymentRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PaymentCurrency.ts b/src/serialization/resources/accounting/types/PaymentCurrency.ts index d5c35a9d8..ca4fee1c6 100644 --- a/src/serialization/resources/accounting/types/PaymentCurrency.ts +++ b/src/serialization/resources/accounting/types/PaymentCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PaymentCurrency: core.serialization.Schema< serializers.accounting.PaymentCurrency.Raw, Merge.accounting.PaymentCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PaymentCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts b/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts index 76a130e63..47e9b4f3e 100644 --- a/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PaymentRequestCurrency: core.serialization.Schema< serializers.accounting.PaymentRequestCurrency.Raw, Merge.accounting.PaymentRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PaymentRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts index 50af13e03..517cfd7cd 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderCurrency.Raw, Merge.accounting.PurchaseOrderCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PurchaseOrderCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts index e74fe97cf..7a327138e 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderLineItemCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderLineItemCurrency.Raw, Merge.accounting.PurchaseOrderLineItemCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PurchaseOrderLineItemCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts index 4e7427d94..09a3a6bd2 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderLineItemRequestCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderLineItemRequestCurrency.Raw, Merge.accounting.PurchaseOrderLineItemRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PurchaseOrderLineItemRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts index 6bb649f74..c6d95a679 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderRequestCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderRequestCurrency.Raw, Merge.accounting.PurchaseOrderRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace PurchaseOrderRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/TrackingCategory.ts b/src/serialization/resources/accounting/types/TrackingCategory.ts index 45a4f1c2d..d7560a016 100644 --- a/src/serialization/resources/accounting/types/TrackingCategory.ts +++ b/src/serialization/resources/accounting/types/TrackingCategory.ts @@ -8,7 +8,6 @@ import * as core from "../../../../core"; import { TrackingCategoryStatus } from "./TrackingCategoryStatus"; import { TrackingCategoryCategoryType } from "./TrackingCategoryCategoryType"; import { TrackingCategoryCompany } from "./TrackingCategoryCompany"; -import { RemoteData } from "./RemoteData"; export const TrackingCategory: core.serialization.ObjectSchema< serializers.accounting.TrackingCategory.Raw, @@ -28,7 +27,6 @@ export const TrackingCategory: core.serialization.ObjectSchema< "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 TrackingCategory { @@ -44,6 +42,5 @@ export declare namespace TrackingCategory { company?: TrackingCategoryCompany.Raw | null; remote_was_deleted?: boolean | null; field_mappings?: Record | null; - remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/accounting/types/TransactionCurrency.ts b/src/serialization/resources/accounting/types/TransactionCurrency.ts index e0f1a4c91..eac43bd48 100644 --- a/src/serialization/resources/accounting/types/TransactionCurrency.ts +++ b/src/serialization/resources/accounting/types/TransactionCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const TransactionCurrency: core.serialization.Schema< serializers.accounting.TransactionCurrency.Raw, Merge.accounting.TransactionCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace TransactionCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CurrencyEnum.ts b/src/serialization/resources/accounting/types/TransactionCurrencyEnum.ts similarity index 97% rename from src/serialization/resources/accounting/types/CurrencyEnum.ts rename to src/serialization/resources/accounting/types/TransactionCurrencyEnum.ts index 83d6f48ea..a212504f6 100644 --- a/src/serialization/resources/accounting/types/CurrencyEnum.ts +++ b/src/serialization/resources/accounting/types/TransactionCurrencyEnum.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -export const CurrencyEnum: core.serialization.Schema< - serializers.accounting.CurrencyEnum.Raw, - Merge.accounting.CurrencyEnum +export const TransactionCurrencyEnum: core.serialization.Schema< + serializers.accounting.TransactionCurrencyEnum.Raw, + Merge.accounting.TransactionCurrencyEnum > = core.serialization.enum_([ "XUA", "AFN", @@ -318,7 +318,7 @@ export const CurrencyEnum: core.serialization.Schema< "ZWL", ]); -export declare namespace CurrencyEnum { +export declare namespace TransactionCurrencyEnum { type Raw = | "XUA" | "AFN" diff --git a/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts b/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts index 3f6515bf5..550aee82f 100644 --- a/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts +++ b/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const TransactionLineItemCurrency: core.serialization.Schema< serializers.accounting.TransactionLineItemCurrency.Raw, Merge.accounting.TransactionLineItemCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace TransactionLineItemCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/UnderlyingTransactionTypeEnum.ts b/src/serialization/resources/accounting/types/UnderlyingTransactionTypeEnum.ts new file mode 100644 index 000000000..8673892c3 --- /dev/null +++ b/src/serialization/resources/accounting/types/UnderlyingTransactionTypeEnum.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; + +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 { + type Raw = "INVOICE" | "EXPENSE" | "TRANSACTION" | "JOURNAL_ENTRY" | "PAYMENT" | "VENDOR_CREDIT" | "CREDIT_NOTE"; +} diff --git a/src/serialization/resources/accounting/types/VendorCreditCurrency.ts b/src/serialization/resources/accounting/types/VendorCreditCurrency.ts index eb96faf69..ba03d484c 100644 --- a/src/serialization/resources/accounting/types/VendorCreditCurrency.ts +++ b/src/serialization/resources/accounting/types/VendorCreditCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const VendorCreditCurrency: core.serialization.Schema< serializers.accounting.VendorCreditCurrency.Raw, Merge.accounting.VendorCreditCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace VendorCreditCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts b/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts index 531f447b0..c0c33f6dd 100644 --- a/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CurrencyEnum } from "./CurrencyEnum"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const VendorCreditRequestCurrency: core.serialization.Schema< serializers.accounting.VendorCreditRequestCurrency.Raw, Merge.accounting.VendorCreditRequestCurrency -> = core.serialization.undiscriminatedUnion([CurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); export declare namespace VendorCreditRequestCurrency { - type Raw = CurrencyEnum.Raw | string; + type Raw = TransactionCurrencyEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/index.ts b/src/serialization/resources/accounting/types/index.ts index 68210b836..05d5f368e 100644 --- a/src/serialization/resources/accounting/types/index.ts +++ b/src/serialization/resources/accounting/types/index.ts @@ -115,7 +115,6 @@ export * from "./CreditNoteRequest"; export * from "./CreditNoteResponse"; export * from "./CreditNoteStatusEnum"; export * from "./CreditOrDebitEnum"; -export * from "./CurrencyEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -172,6 +171,20 @@ export * from "./FieldMappingInstanceResponse"; export * from "./FieldPermissionDeserializer"; export * from "./FieldPermissionDeserializerRequest"; export * from "./FieldTypeEnum"; +export * from "./GeneralLedgerTransactionUnderlyingTransactionType"; +export * from "./GeneralLedgerTransactionAccountingPeriod"; +export * from "./GeneralLedgerTransactionCompany"; +export * from "./GeneralLedgerTransactionTrackingCategoriesItem"; +export * from "./GeneralLedgerTransactionGeneralLedgerTransactionLinesItem"; +export * from "./GeneralLedgerTransaction"; +export * from "./GeneralLedgerTransactionLineAccount"; +export * from "./GeneralLedgerTransactionLineCompany"; +export * from "./GeneralLedgerTransactionLineEmployee"; +export * from "./GeneralLedgerTransactionLineContact"; +export * from "./GeneralLedgerTransactionLineBaseCurrency"; +export * from "./GeneralLedgerTransactionLineTransactionCurrency"; +export * from "./GeneralLedgerTransactionLineItem"; +export * from "./GeneralLedgerTransactionLine"; export * from "./IncomeStatementCurrency"; export * from "./IncomeStatementCompany"; export * from "./IncomeStatement"; @@ -280,6 +293,7 @@ export * from "./PaginatedContactList"; export * from "./PaginatedCreditNoteList"; export * from "./PaginatedEmployeeList"; export * from "./PaginatedExpenseList"; +export * from "./PaginatedGeneralLedgerTransactionList"; export * from "./PaginatedIncomeStatementList"; export * from "./PaginatedInvoiceList"; export * from "./PaginatedIssueList"; @@ -384,9 +398,11 @@ export * from "./TransactionCurrency"; export * from "./TransactionTrackingCategoriesItem"; export * from "./TransactionAccountingPeriod"; export * from "./Transaction"; +export * from "./TransactionCurrencyEnum"; export * from "./TransactionLineItemItem"; export * from "./TransactionLineItemCurrency"; export * from "./TransactionLineItem"; +export * from "./UnderlyingTransactionTypeEnum"; export * from "./ValidationProblemSource"; export * from "./VendorCreditVendor"; export * from "./VendorCreditCurrency"; diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 3a5b83372..6f64a9a0d 100644 --- a/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -8,7 +8,7 @@ import * as core from "../../../../../../../core"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.ats.CreateFieldMappingRequest.Raw, - Merge.ats.CreateFieldMappingRequest + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), diff --git a/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 9fc620ff7..09d2eabfb 100644 --- a/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -39,6 +39,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: LanguageEnum.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() @@ -61,6 +62,7 @@ export declare namespace EndUserDetailsRequest { IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: LanguageEnum.Raw | null; + are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/ats/types/EventTypeEnum.ts b/src/serialization/resources/ats/types/EventTypeEnum.ts index 90e252c97..53d927c3a 100644 --- a/src/serialization/resources/ats/types/EventTypeEnum.ts +++ b/src/serialization/resources/ats/types/EventTypeEnum.ts @@ -39,6 +39,9 @@ export const EventTypeEnum: core.serialization.Schema = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), + 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 @@ -21,8 +21,8 @@ export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema export declare namespace FieldMappingApiInstanceRemoteField { interface Raw { - remote_key_name: string; - schema: Record; + remote_key_name?: string | null; + schema?: Record | null; remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; } } diff --git a/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts b/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts index 16ad0534c..9022aa08d 100644 --- a/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts +++ b/src/serialization/resources/ats/types/FieldPermissionDeserializer.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializer: core.serialization.ObjectSchema< serializers.ats.FieldPermissionDeserializer.Raw, Merge.ats.FieldPermissionDeserializer > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + 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 index 812dec412..c6e3da142 100644 --- a/src/serialization/resources/ats/types/FieldPermissionDeserializerRequest.ts +++ b/src/serialization/resources/ats/types/FieldPermissionDeserializerRequest.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializerRequest: core.serialization.ObjectSchema serializers.ats.FieldPermissionDeserializerRequest.Raw, Merge.ats.FieldPermissionDeserializerRequest > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + enabled_fields?: unknown[] | null; + disabled_fields?: unknown[] | null; } } diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 476154ac3..326c208c4 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -8,7 +8,7 @@ import * as core from "../../../../../../../core"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.crm.CreateFieldMappingRequest.Raw, - Merge.crm.CreateFieldMappingRequest + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), diff --git a/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts index a6f18da29..6d2298c95 100644 --- a/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -39,6 +39,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: LanguageEnum.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() @@ -61,6 +62,7 @@ export declare namespace EndUserDetailsRequest { IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: LanguageEnum.Raw | null; + are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/crm/types/EventTypeEnum.ts b/src/serialization/resources/crm/types/EventTypeEnum.ts index 0b837837d..37db8c9d1 100644 --- a/src/serialization/resources/crm/types/EventTypeEnum.ts +++ b/src/serialization/resources/crm/types/EventTypeEnum.ts @@ -39,6 +39,9 @@ export const EventTypeEnum: core.serialization.Schema = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), + 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 @@ -21,8 +21,8 @@ export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema export declare namespace FieldMappingApiInstanceRemoteField { interface Raw { - remote_key_name: string; - schema: Record; + remote_key_name?: string | null; + schema?: Record | null; remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; } } diff --git a/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts b/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts index f1a2f09b9..4c7464df2 100644 --- a/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts +++ b/src/serialization/resources/crm/types/FieldPermissionDeserializer.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializer: core.serialization.ObjectSchema< serializers.crm.FieldPermissionDeserializer.Raw, Merge.crm.FieldPermissionDeserializer > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + 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 index 452abceb1..af71a04be 100644 --- a/src/serialization/resources/crm/types/FieldPermissionDeserializerRequest.ts +++ b/src/serialization/resources/crm/types/FieldPermissionDeserializerRequest.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializerRequest: core.serialization.ObjectSchema serializers.crm.FieldPermissionDeserializerRequest.Raw, Merge.crm.FieldPermissionDeserializerRequest > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + enabled_fields?: unknown[] | null; + disabled_fields?: unknown[] | null; } } 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 6a92be50c..dd1ec36a9 100644 --- a/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -8,7 +8,7 @@ import * as core from "../../../../../../../core"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.filestorage.CreateFieldMappingRequest.Raw, - Merge.filestorage.CreateFieldMappingRequest + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), diff --git a/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 404cbce62..408355120 100644 --- a/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -39,6 +39,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: LanguageEnum.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() @@ -61,6 +62,7 @@ export declare namespace EndUserDetailsRequest { IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: LanguageEnum.Raw | null; + are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/filestorage/types/Drive.ts b/src/serialization/resources/filestorage/types/Drive.ts index e2fd6f132..31e6ef5bc 100644 --- a/src/serialization/resources/filestorage/types/Drive.ts +++ b/src/serialization/resources/filestorage/types/Drive.ts @@ -5,6 +5,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { RemoteData } from "./RemoteData"; export const Drive: core.serialization.ObjectSchema = core.serialization.object({ @@ -20,12 +21,7 @@ export const Drive: core.serialization.ObjectSchema | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/filestorage/types/EventTypeEnum.ts b/src/serialization/resources/filestorage/types/EventTypeEnum.ts index d1697708b..3b752a409 100644 --- a/src/serialization/resources/filestorage/types/EventTypeEnum.ts +++ b/src/serialization/resources/filestorage/types/EventTypeEnum.ts @@ -41,6 +41,9 @@ export const EventTypeEnum: core.serialization.Schema< "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", @@ -83,6 +86,9 @@ export declare namespace EventTypeEnum { | "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" diff --git a/src/serialization/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts index 4c272a31e..ca3861c70 100644 --- a/src/serialization/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/serialization/resources/filestorage/types/FieldMappingApiInstanceRemoteField.ts @@ -11,8 +11,8 @@ export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema serializers.filestorage.FieldMappingApiInstanceRemoteField.Raw, Merge.filestorage.FieldMappingApiInstanceRemoteField > = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), + 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 @@ -21,8 +21,8 @@ export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema export declare namespace FieldMappingApiInstanceRemoteField { interface Raw { - remote_key_name: string; - schema: Record; + remote_key_name?: string | null; + schema?: Record | null; remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; } } diff --git a/src/serialization/resources/filestorage/types/FieldPermissionDeserializer.ts b/src/serialization/resources/filestorage/types/FieldPermissionDeserializer.ts index 303fed206..fcb0d1e07 100644 --- a/src/serialization/resources/filestorage/types/FieldPermissionDeserializer.ts +++ b/src/serialization/resources/filestorage/types/FieldPermissionDeserializer.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializer: core.serialization.ObjectSchema< serializers.filestorage.FieldPermissionDeserializer.Raw, Merge.filestorage.FieldPermissionDeserializer > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + enabled_fields?: unknown[] | null; + disabled_fields?: unknown[] | null; } } diff --git a/src/serialization/resources/filestorage/types/FieldPermissionDeserializerRequest.ts b/src/serialization/resources/filestorage/types/FieldPermissionDeserializerRequest.ts index 3e4fcbcbc..b36deccb1 100644 --- a/src/serialization/resources/filestorage/types/FieldPermissionDeserializerRequest.ts +++ b/src/serialization/resources/filestorage/types/FieldPermissionDeserializerRequest.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializerRequest: core.serialization.ObjectSchema serializers.filestorage.FieldPermissionDeserializerRequest.Raw, Merge.filestorage.FieldPermissionDeserializerRequest > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + enabled_fields?: unknown[] | null; + disabled_fields?: unknown[] | null; } } diff --git a/src/serialization/resources/filestorage/types/File_.ts b/src/serialization/resources/filestorage/types/File_.ts index 25043c0f0..0bb990094 100644 --- a/src/serialization/resources/filestorage/types/File_.ts +++ b/src/serialization/resources/filestorage/types/File_.ts @@ -8,6 +8,7 @@ import * as core from "../../../../core"; import { FileFolder } from "./FileFolder"; import { FilePermissions } from "./FilePermissions"; import { FileDrive } from "./FileDrive"; +import { RemoteData } from "./RemoteData"; export const File_: core.serialization.ObjectSchema = core.serialization.object({ @@ -31,12 +32,7 @@ export const File_: core.serialization.ObjectSchema | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/filestorage/types/Folder.ts b/src/serialization/resources/filestorage/types/Folder.ts index f680855d4..d8e989481 100644 --- a/src/serialization/resources/filestorage/types/Folder.ts +++ b/src/serialization/resources/filestorage/types/Folder.ts @@ -7,6 +7,7 @@ import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import { FolderDrive } from "./FolderDrive"; import { FolderPermissions } from "./FolderPermissions"; +import { RemoteData } from "./RemoteData"; export const Folder: core.serialization.ObjectSchema = core.serialization.object({ @@ -31,12 +32,7 @@ export const Folder: core.serialization.ObjectSchema | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/filestorage/types/Group.ts b/src/serialization/resources/filestorage/types/Group.ts index f7132176b..e7fc9d1ab 100644 --- a/src/serialization/resources/filestorage/types/Group.ts +++ b/src/serialization/resources/filestorage/types/Group.ts @@ -5,6 +5,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { RemoteData } from "./RemoteData"; export const Group: core.serialization.ObjectSchema = core.serialization.object({ @@ -14,17 +15,18 @@ export const Group: core.serialization.ObjectSchema serializers.filestorage.GroupChildGroupsItem)) + .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() - ), + remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), }); export declare namespace Group { @@ -35,8 +37,9 @@ export declare namespace Group { modified_at?: string | null; name?: string | null; users: string[]; + child_groups?: serializers.filestorage.GroupChildGroupsItem.Raw[] | null; remote_was_deleted?: boolean | null; field_mappings?: Record | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/filestorage/types/GroupChildGroupsItem.ts b/src/serialization/resources/filestorage/types/GroupChildGroupsItem.ts new file mode 100644 index 000000000..b85281f9f --- /dev/null +++ b/src/serialization/resources/filestorage/types/GroupChildGroupsItem.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; + +export const GroupChildGroupsItem: core.serialization.Schema< + serializers.filestorage.GroupChildGroupsItem.Raw, + Merge.filestorage.GroupChildGroupsItem +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.lazyObject(() => serializers.filestorage.Group), +]); + +export declare namespace GroupChildGroupsItem { + type Raw = string | serializers.filestorage.Group.Raw; +} diff --git a/src/serialization/resources/filestorage/types/PaginatedGroupList.ts b/src/serialization/resources/filestorage/types/PaginatedGroupList.ts index 2719a2e30..c2c743c83 100644 --- a/src/serialization/resources/filestorage/types/PaginatedGroupList.ts +++ b/src/serialization/resources/filestorage/types/PaginatedGroupList.ts @@ -5,7 +5,6 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { Group } from "./Group"; export const PaginatedGroupList: core.serialization.ObjectSchema< serializers.filestorage.PaginatedGroupList.Raw, @@ -13,13 +12,13 @@ export const PaginatedGroupList: core.serialization.ObjectSchema< > = core.serialization.object({ next: core.serialization.string().optional(), previous: core.serialization.string().optional(), - results: core.serialization.list(Group).optional(), + results: core.serialization.list(core.serialization.lazyObject(() => serializers.filestorage.Group)).optional(), }); export declare namespace PaginatedGroupList { interface Raw { next?: string | null; previous?: string | null; - results?: Group.Raw[] | null; + results?: serializers.filestorage.Group.Raw[] | null; } } diff --git a/src/serialization/resources/filestorage/types/PermissionGroup.ts b/src/serialization/resources/filestorage/types/PermissionGroup.ts index a74cb13b9..72dfdae1c 100644 --- a/src/serialization/resources/filestorage/types/PermissionGroup.ts +++ b/src/serialization/resources/filestorage/types/PermissionGroup.ts @@ -5,13 +5,15 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { Group } from "./Group"; export const PermissionGroup: core.serialization.Schema< serializers.filestorage.PermissionGroup.Raw, Merge.filestorage.PermissionGroup -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Group]); +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.lazyObject(() => serializers.filestorage.Group), +]); export declare namespace PermissionGroup { - type Raw = string | Group.Raw; + type Raw = string | serializers.filestorage.Group.Raw; } diff --git a/src/serialization/resources/filestorage/types/PermissionRequestGroup.ts b/src/serialization/resources/filestorage/types/PermissionRequestGroup.ts index efc45062f..2818f8892 100644 --- a/src/serialization/resources/filestorage/types/PermissionRequestGroup.ts +++ b/src/serialization/resources/filestorage/types/PermissionRequestGroup.ts @@ -5,13 +5,15 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { Group } from "./Group"; export const PermissionRequestGroup: core.serialization.Schema< serializers.filestorage.PermissionRequestGroup.Raw, Merge.filestorage.PermissionRequestGroup -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Group]); +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.lazyObject(() => serializers.filestorage.Group), +]); export declare namespace PermissionRequestGroup { - type Raw = string | Group.Raw; + type Raw = string | serializers.filestorage.Group.Raw; } diff --git a/src/serialization/resources/filestorage/types/RemoteData.ts b/src/serialization/resources/filestorage/types/RemoteData.ts new file mode 100644 index 000000000..98329bc45 --- /dev/null +++ b/src/serialization/resources/filestorage/types/RemoteData.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; + +export const RemoteData: core.serialization.ObjectSchema< + serializers.filestorage.RemoteData.Raw, + Merge.filestorage.RemoteData +> = core.serialization.object({ + path: core.serialization.string(), + data: core.serialization.unknown().optional(), +}); + +export declare namespace RemoteData { + interface Raw { + path: string; + data?: unknown | null; + } +} diff --git a/src/serialization/resources/filestorage/types/User.ts b/src/serialization/resources/filestorage/types/User.ts index bf658b180..dd89a05b1 100644 --- a/src/serialization/resources/filestorage/types/User.ts +++ b/src/serialization/resources/filestorage/types/User.ts @@ -5,6 +5,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { RemoteData } from "./RemoteData"; export const User: core.serialization.ObjectSchema = core.serialization.object({ @@ -20,12 +21,7 @@ export const User: core.serialization.ObjectSchema | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/filestorage/types/index.ts b/src/serialization/resources/filestorage/types/index.ts index 8e0eabbec..44155eb1e 100644 --- a/src/serialization/resources/filestorage/types/index.ts +++ b/src/serialization/resources/filestorage/types/index.ts @@ -54,6 +54,7 @@ export * from "./FolderRequestDrive"; export * from "./FolderRequestPermissionsItem"; export * from "./FolderRequestPermissions"; export * from "./FolderRequest"; +export * from "./GroupChildGroupsItem"; export * from "./Group"; export * from "./IndividualCommonModelScopeDeserializer"; export * from "./IndividualCommonModelScopeDeserializerRequest"; @@ -89,6 +90,7 @@ export * from "./PermissionRequestGroup"; export * from "./PermissionRequestType"; export * from "./PermissionRequestRolesItem"; export * from "./PermissionRequest"; +export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; diff --git a/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index ba09e8117..886cf042c 100644 --- a/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/hris/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -8,7 +8,7 @@ import * as core from "../../../../../../../core"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.hris.CreateFieldMappingRequest.Raw, - Merge.hris.CreateFieldMappingRequest + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), diff --git a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 2e9d2467c..c25a22863 100644 --- a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -39,6 +39,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: LanguageEnum.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() @@ -61,6 +62,7 @@ export declare namespace EndUserDetailsRequest { IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: LanguageEnum.Raw | null; + are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts b/src/serialization/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts new file mode 100644 index 000000000..4401d29ab --- /dev/null +++ b/src/serialization/resources/hris/resources/locations/types/LocationsListRequestRemoteFields.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + 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 new file mode 100644 index 000000000..c4184f78a --- /dev/null +++ b/src/serialization/resources/hris/resources/locations/types/LocationsListRequestShowEnumOrigins.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + 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 new file mode 100644 index 000000000..df5687258 --- /dev/null +++ b/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestRemoteFields.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + 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 new file mode 100644 index 000000000..425fc71be --- /dev/null +++ b/src/serialization/resources/hris/resources/locations/types/LocationsRetrieveRequestShowEnumOrigins.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +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 { + 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 index 0db95afd4..45bd9980a 100644 --- a/src/serialization/resources/hris/resources/locations/types/index.ts +++ b/src/serialization/resources/hris/resources/locations/types/index.ts @@ -1 +1,5 @@ export * from "./LocationsListRequestLocationType"; +export * from "./LocationsListRequestRemoteFields"; +export * from "./LocationsListRequestShowEnumOrigins"; +export * from "./LocationsRetrieveRequestRemoteFields"; +export * from "./LocationsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/types/EmployerBenefit.ts b/src/serialization/resources/hris/types/EmployerBenefit.ts index cbc56bafe..00d8b16e6 100644 --- a/src/serialization/resources/hris/types/EmployerBenefit.ts +++ b/src/serialization/resources/hris/types/EmployerBenefit.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import { EmployerBenefitBenefitPlanType } from "./EmployerBenefitBenefitPlanType"; +import { RemoteData } from "./RemoteData"; export const EmployerBenefit: core.serialization.ObjectSchema< serializers.hris.EmployerBenefit.Raw, @@ -24,12 +25,7 @@ export const EmployerBenefit: core.serialization.ObjectSchema< "field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() ), - remoteData: core.serialization.property( - "remote_data", - core.serialization - .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()) - .optional() - ), + remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), }); export declare namespace EmployerBenefit { @@ -44,6 +40,6 @@ export declare namespace EmployerBenefit { deduction_code?: string | null; remote_was_deleted?: boolean | null; field_mappings?: Record | null; - remote_data?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/hris/types/EventTypeEnum.ts b/src/serialization/resources/hris/types/EventTypeEnum.ts index fc1b98302..51cde539d 100644 --- a/src/serialization/resources/hris/types/EventTypeEnum.ts +++ b/src/serialization/resources/hris/types/EventTypeEnum.ts @@ -39,6 +39,9 @@ export const EventTypeEnum: core.serialization.Schema = core.serialization.object({ - remoteKeyName: core.serialization.property("remote_key_name", core.serialization.string()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), + 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 @@ -21,8 +21,8 @@ export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema export declare namespace FieldMappingApiInstanceRemoteField { interface Raw { - remote_key_name: string; - schema: Record; + remote_key_name?: string | null; + schema?: Record | null; remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; } } diff --git a/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts b/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts index a8c0d0bdf..f3c00ec20 100644 --- a/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts +++ b/src/serialization/resources/hris/types/FieldPermissionDeserializer.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializer: core.serialization.ObjectSchema< serializers.hris.FieldPermissionDeserializer.Raw, Merge.hris.FieldPermissionDeserializer > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + 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 index bdf4516b1..5ba579f19 100644 --- a/src/serialization/resources/hris/types/FieldPermissionDeserializerRequest.ts +++ b/src/serialization/resources/hris/types/FieldPermissionDeserializerRequest.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializerRequest: core.serialization.ObjectSchema serializers.hris.FieldPermissionDeserializerRequest.Raw, Merge.hris.FieldPermissionDeserializerRequest > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + enabled_fields?: unknown[] | null; + disabled_fields?: unknown[] | null; } } diff --git a/src/serialization/resources/hris/types/TimesheetEntry.ts b/src/serialization/resources/hris/types/TimesheetEntry.ts index b0bdd7c8c..547ac6cdb 100644 --- a/src/serialization/resources/hris/types/TimesheetEntry.ts +++ b/src/serialization/resources/hris/types/TimesheetEntry.ts @@ -5,6 +5,8 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { TimesheetEntryEmployee } from "./TimesheetEntryEmployee"; +import { RemoteData } from "./RemoteData"; export const TimesheetEntry: core.serialization.ObjectSchema< serializers.hris.TimesheetEntry.Raw, @@ -14,7 +16,7 @@ export const TimesheetEntry: core.serialization.ObjectSchema< remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), createdAt: core.serialization.property("created_at", core.serialization.date().optional()), modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - employee: core.serialization.string().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()), @@ -23,12 +25,7 @@ export const TimesheetEntry: core.serialization.ObjectSchema< "field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() ), - remoteData: core.serialization.property( - "remote_data", - core.serialization - .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()) - .optional() - ), + remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), }); export declare namespace TimesheetEntry { @@ -37,12 +34,12 @@ export declare namespace TimesheetEntry { remote_id?: string | null; created_at?: string | null; modified_at?: string | null; - employee?: 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?: (Record | null | undefined)[] | null; + remote_data?: RemoteData.Raw[] | null; } } diff --git a/src/serialization/resources/hris/types/TimesheetEntryEmployee.ts b/src/serialization/resources/hris/types/TimesheetEntryEmployee.ts new file mode 100644 index 000000000..54ca81a27 --- /dev/null +++ b/src/serialization/resources/hris/types/TimesheetEntryEmployee.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; + +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 { + 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 index 995a6ad8f..3785e11fa 100644 --- a/src/serialization/resources/hris/types/TimesheetEntryRequest.ts +++ b/src/serialization/resources/hris/types/TimesheetEntryRequest.ts @@ -5,12 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { TimesheetEntryRequestEmployee } from "./TimesheetEntryRequestEmployee"; export const TimesheetEntryRequest: core.serialization.ObjectSchema< serializers.hris.TimesheetEntryRequest.Raw, Merge.hris.TimesheetEntryRequest > = core.serialization.object({ - employee: core.serialization.string().optional(), + 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()), @@ -26,7 +27,7 @@ export const TimesheetEntryRequest: core.serialization.ObjectSchema< export declare namespace TimesheetEntryRequest { interface Raw { - employee?: string | null; + employee?: TimesheetEntryRequestEmployee.Raw | null; hours_worked?: number | null; start_time?: string | null; end_time?: string | null; diff --git a/src/serialization/resources/hris/types/TimesheetEntryRequestEmployee.ts b/src/serialization/resources/hris/types/TimesheetEntryRequestEmployee.ts new file mode 100644 index 000000000..527ce0c49 --- /dev/null +++ b/src/serialization/resources/hris/types/TimesheetEntryRequestEmployee.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; + +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 { + type Raw = string | serializers.hris.Employee.Raw; +} diff --git a/src/serialization/resources/hris/types/index.ts b/src/serialization/resources/hris/types/index.ts index 19b748534..e866ec9de 100644 --- a/src/serialization/resources/hris/types/index.ts +++ b/src/serialization/resources/hris/types/index.ts @@ -182,7 +182,9 @@ export * from "./TimeOffRequestRequestType"; export * from "./TimeOffRequest"; export * from "./TimeOffResponse"; export * from "./TimeOffStatusEnum"; +export * from "./TimesheetEntryEmployee"; export * from "./TimesheetEntry"; +export * from "./TimesheetEntryRequestEmployee"; export * from "./TimesheetEntryRequest"; export * from "./TimesheetEntryResponse"; export * from "./UnitsEnum"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 2be011c93..2c925acf7 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,6 +1,6 @@ +export * as filestorage from "./filestorage"; export * as ats from "./ats"; +export * as ticketing from "./ticketing"; export * as crm from "./crm"; -export * as filestorage from "./filestorage"; export * as hris from "./hris"; -export * as ticketing from "./ticketing"; export * as accounting from "./accounting"; diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestExpand.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestExpand.ts new file mode 100644 index 000000000..02d52dd2b --- /dev/null +++ b/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestExpand.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const CollectionsListRequestExpand: core.serialization.Schema< + serializers.ticketing.CollectionsListRequestExpand.Raw, + Merge.ticketing.CollectionsListRequestExpand +> = core.serialization.enum_(["parent_collection", "teams", "teams,parent_collection"]); + +export declare namespace CollectionsListRequestExpand { + type Raw = "parent_collection" | "teams" | "teams,parent_collection"; +} diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpand.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpand.ts new file mode 100644 index 000000000..dba2692d2 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpand.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const CollectionsRetrieveRequestExpand: core.serialization.Schema< + serializers.ticketing.CollectionsRetrieveRequestExpand.Raw, + Merge.ticketing.CollectionsRetrieveRequestExpand +> = core.serialization.enum_(["parent_collection", "teams", "teams,parent_collection"]); + +export declare namespace CollectionsRetrieveRequestExpand { + type Raw = "parent_collection" | "teams" | "teams,parent_collection"; +} diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsUsersListRequestExpand.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsUsersListRequestExpand.ts deleted file mode 100644 index a3ab77def..000000000 --- a/src/serialization/resources/ticketing/resources/collections/types/CollectionsUsersListRequestExpand.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../index"; -import * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; - -export const CollectionsUsersListRequestExpand: core.serialization.Schema< - serializers.ticketing.CollectionsUsersListRequestExpand.Raw, - Merge.ticketing.CollectionsUsersListRequestExpand -> = core.serialization.enum_(["roles", "teams", "teams,roles"]); - -export declare namespace CollectionsUsersListRequestExpand { - type Raw = "roles" | "teams" | "teams,roles"; -} diff --git a/src/serialization/resources/ticketing/resources/collections/types/index.ts b/src/serialization/resources/ticketing/resources/collections/types/index.ts index 5502dfd18..9c2069633 100644 --- a/src/serialization/resources/ticketing/resources/collections/types/index.ts +++ b/src/serialization/resources/ticketing/resources/collections/types/index.ts @@ -1 +1,2 @@ -export * from "./CollectionsUsersListRequestExpand"; +export * from "./CollectionsListRequestExpand"; +export * from "./CollectionsRetrieveRequestExpand"; diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 4d805eeee..1c6a548df 100644 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -8,7 +8,7 @@ import * as core from "../../../../../../../core"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.ticketing.CreateFieldMappingRequest.Raw, - Merge.ticketing.CreateFieldMappingRequest + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), diff --git a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts index adb0a6293..41587bffd 100644 --- a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -39,6 +39,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: LanguageEnum.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() @@ -61,6 +62,7 @@ export declare namespace EndUserDetailsRequest { IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: LanguageEnum.Raw | null; + are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsCollaboratorsListRequestExpand.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsCollaboratorsListRequestExpand.ts deleted file mode 100644 index 8c57c5b60..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsCollaboratorsListRequestExpand.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../index"; -import * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; - -export const TicketsCollaboratorsListRequestExpand: core.serialization.Schema< - serializers.ticketing.TicketsCollaboratorsListRequestExpand.Raw, - Merge.ticketing.TicketsCollaboratorsListRequestExpand -> = core.serialization.enum_(["roles", "teams", "teams,roles"]); - -export declare namespace TicketsCollaboratorsListRequestExpand { - type Raw = "roles" | "teams" | "teams,roles"; -} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts index 394b54d88..6453550d3 100644 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts @@ -18,6 +18,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -27,6 +43,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -36,6 +68,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -59,6 +107,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -68,6 +132,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -77,6 +157,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -100,6 +196,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -123,6 +235,22 @@ export const TicketsListRequestExpand: core.serialization.Schema< "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", @@ -149,6 +277,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -158,6 +302,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -167,6 +327,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -190,6 +366,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -199,6 +391,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -208,6 +416,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -231,6 +455,22 @@ export declare namespace TicketsListRequestExpand { | "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" @@ -254,6 +494,22 @@ export declare namespace TicketsListRequestExpand { | "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" 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 7783d01c0..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestStatus.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../index"; -import * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; - -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 { - 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 index 4ea9b598d..77a279dd3 100644 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts @@ -18,6 +18,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -27,6 +43,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -36,6 +68,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -59,6 +107,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -68,6 +132,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -77,6 +157,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -100,6 +196,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -123,6 +235,22 @@ export const TicketsRetrieveRequestExpand: core.serialization.Schema< "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", @@ -149,6 +277,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -158,6 +302,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -167,6 +327,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -190,6 +366,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -199,6 +391,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -208,6 +416,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -231,6 +455,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" @@ -254,6 +494,22 @@ export declare namespace TicketsRetrieveRequestExpand { | "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" diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts new file mode 100644 index 000000000..86fb25683 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; + +export const TicketsViewersListRequestExpand: core.serialization.Schema< + serializers.ticketing.TicketsViewersListRequestExpand.Raw, + Merge.ticketing.TicketsViewersListRequestExpand +> = core.serialization.enum_(["team", "user", "user,team"]); + +export declare namespace TicketsViewersListRequestExpand { + 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 index db8c09ad9..c3763c104 100644 --- a/src/serialization/resources/ticketing/resources/tickets/types/index.ts +++ b/src/serialization/resources/ticketing/resources/tickets/types/index.ts @@ -2,8 +2,7 @@ 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 "./TicketsCollaboratorsListRequestExpand"; +export * from "./TicketsViewersListRequestExpand"; diff --git a/src/serialization/resources/ticketing/types/Collection.ts b/src/serialization/resources/ticketing/types/Collection.ts index ab4d3dfc9..1ad64a149 100644 --- a/src/serialization/resources/ticketing/types/Collection.ts +++ b/src/serialization/resources/ticketing/types/Collection.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import { CollectionCollectionType } from "./CollectionCollectionType"; +import { CollectionTeamsItem } from "./CollectionTeamsItem"; import { CollectionAccessLevel } from "./CollectionAccessLevel"; import { RemoteData } from "./RemoteData"; @@ -24,6 +25,7 @@ export const Collection: core.serialization.ObjectSchema< "parent_collection", core.serialization.lazy(() => serializers.ticketing.CollectionParentCollection).optional() ), + teams: core.serialization.list(CollectionTeamsItem.optional()).optional(), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), accessLevel: core.serialization.property("access_level", CollectionAccessLevel.optional()), fieldMappings: core.serialization.property( @@ -43,6 +45,7 @@ export declare namespace Collection { description?: string | null; collection_type?: CollectionCollectionType.Raw | null; parent_collection?: serializers.ticketing.CollectionParentCollection.Raw | null; + teams?: (CollectionTeamsItem.Raw | null | undefined)[] | null; remote_was_deleted?: boolean | null; access_level?: CollectionAccessLevel.Raw | null; field_mappings?: Record | null; diff --git a/src/serialization/resources/ticketing/types/CollectionTeamsItem.ts b/src/serialization/resources/ticketing/types/CollectionTeamsItem.ts new file mode 100644 index 000000000..eb5786f97 --- /dev/null +++ b/src/serialization/resources/ticketing/types/CollectionTeamsItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { Team } from "./Team"; + +export const CollectionTeamsItem: core.serialization.Schema< + serializers.ticketing.CollectionTeamsItem.Raw, + Merge.ticketing.CollectionTeamsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Team]); + +export declare namespace CollectionTeamsItem { + type Raw = string | Team.Raw; +} diff --git a/src/serialization/resources/ticketing/types/EventTypeEnum.ts b/src/serialization/resources/ticketing/types/EventTypeEnum.ts index b9598fec4..15075f00b 100644 --- a/src/serialization/resources/ticketing/types/EventTypeEnum.ts +++ b/src/serialization/resources/ticketing/types/EventTypeEnum.ts @@ -41,6 +41,9 @@ export const EventTypeEnum: core.serialization.Schema< "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", @@ -83,6 +86,9 @@ export declare namespace EventTypeEnum { | "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" diff --git a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts b/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts index 24e7c1a31..6ab106e53 100644 --- a/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts +++ b/src/serialization/resources/ticketing/types/FieldMappingApiInstanceRemoteField.ts @@ -11,8 +11,8 @@ 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()), - schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()), + 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 @@ -21,8 +21,8 @@ export const FieldMappingApiInstanceRemoteField: core.serialization.ObjectSchema export declare namespace FieldMappingApiInstanceRemoteField { interface Raw { - remote_key_name: string; - schema: Record; + remote_key_name?: string | null; + schema?: Record | null; remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.Raw; } } diff --git a/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts b/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts index 1029bbd30..a6d6b01d5 100644 --- a/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts +++ b/src/serialization/resources/ticketing/types/FieldPermissionDeserializer.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializer: core.serialization.ObjectSchema< serializers.ticketing.FieldPermissionDeserializer.Raw, Merge.ticketing.FieldPermissionDeserializer > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + 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 index 63d9743bf..6a0795537 100644 --- a/src/serialization/resources/ticketing/types/FieldPermissionDeserializerRequest.ts +++ b/src/serialization/resources/ticketing/types/FieldPermissionDeserializerRequest.ts @@ -10,13 +10,19 @@ export const FieldPermissionDeserializerRequest: core.serialization.ObjectSchema serializers.ticketing.FieldPermissionDeserializerRequest.Raw, Merge.ticketing.FieldPermissionDeserializerRequest > = core.serialization.object({ - enabled: core.serialization.list(core.serialization.unknown()).optional(), - disabled: core.serialization.list(core.serialization.unknown()).optional(), + 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 { interface Raw { - enabled?: unknown[] | null; - disabled?: unknown[] | null; + enabled_fields?: unknown[] | null; + disabled_fields?: unknown[] | null; } } diff --git a/src/serialization/resources/ticketing/types/PaginatedViewerList.ts b/src/serialization/resources/ticketing/types/PaginatedViewerList.ts new file mode 100644 index 000000000..fa192762a --- /dev/null +++ b/src/serialization/resources/ticketing/types/PaginatedViewerList.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + 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 index eb43ad6ea..6aa7ab10a 100644 --- a/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts +++ b/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts @@ -15,6 +15,10 @@ export const PatchedTicketRequest: core.serialization.ObjectSchema< > = 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(), @@ -25,6 +29,7 @@ export const PatchedTicketRequest: core.serialization.ObjectSchema< contact: core.serialization.string().optional(), parentTicket: core.serialization.property("parent_ticket", core.serialization.string().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: PatchedTicketRequestPriority.optional(), @@ -43,6 +48,7 @@ export declare namespace PatchedTicketRequest { 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; @@ -53,6 +59,7 @@ export declare namespace PatchedTicketRequest { contact?: string | null; parent_ticket?: string | null; tags?: (string | null | undefined)[] | null; + roles?: (string | null | undefined)[] | null; completed_at?: string | null; ticket_url?: string | null; priority?: PatchedTicketRequestPriority.Raw | null; diff --git a/src/serialization/resources/ticketing/types/Ticket.ts b/src/serialization/resources/ticketing/types/Ticket.ts index a47562f27..e3124a264 100644 --- a/src/serialization/resources/ticketing/types/Ticket.ts +++ b/src/serialization/resources/ticketing/types/Ticket.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import { TicketAssigneesItem } from "./TicketAssigneesItem"; +import { TicketAssignedTeamsItem } from "./TicketAssignedTeamsItem"; import { TicketCreator } from "./TicketCreator"; import { TicketStatus } from "./TicketStatus"; import { TicketCollectionsItem } from "./TicketCollectionsItem"; @@ -23,6 +24,10 @@ export const Ticket: core.serialization.ObjectSchema serializers.ticketing.TicketAttachmentsItem).optional()) .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()), @@ -61,6 +67,7 @@ export declare namespace Ticket { 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; @@ -72,6 +79,7 @@ export declare namespace Ticket { parent_ticket?: serializers.ticketing.TicketParentTicket.Raw | null; attachments?: (serializers.ticketing.TicketAttachmentsItem.Raw | null | undefined)[] | 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; diff --git a/src/serialization/resources/ticketing/types/TicketAssignedTeamsItem.ts b/src/serialization/resources/ticketing/types/TicketAssignedTeamsItem.ts new file mode 100644 index 000000000..92a3b0b76 --- /dev/null +++ b/src/serialization/resources/ticketing/types/TicketAssignedTeamsItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | Team.Raw; +} diff --git a/src/serialization/resources/ticketing/types/TicketRequest.ts b/src/serialization/resources/ticketing/types/TicketRequest.ts index 0e337de61..76d0d2cd8 100644 --- a/src/serialization/resources/ticketing/types/TicketRequest.ts +++ b/src/serialization/resources/ticketing/types/TicketRequest.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import { TicketRequestAssigneesItem } from "./TicketRequestAssigneesItem"; +import { TicketRequestAssignedTeamsItem } from "./TicketRequestAssignedTeamsItem"; import { TicketRequestCreator } from "./TicketRequestCreator"; import { TicketRequestStatus } from "./TicketRequestStatus"; import { TicketRequestCollectionsItem } from "./TicketRequestCollectionsItem"; @@ -22,6 +23,10 @@ export const TicketRequest: core.serialization.ObjectSchema< > = 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(), @@ -33,6 +38,7 @@ export const TicketRequest: core.serialization.ObjectSchema< parentTicket: core.serialization.property("parent_ticket", TicketRequestParentTicket.optional()), attachments: core.serialization.list(TicketRequestAttachmentsItem.optional()).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(), @@ -51,6 +57,7 @@ export declare namespace TicketRequest { 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; @@ -62,6 +69,7 @@ export declare namespace TicketRequest { parent_ticket?: TicketRequestParentTicket.Raw | null; attachments?: (TicketRequestAttachmentsItem.Raw | null | undefined)[] | null; tags?: (string | null | undefined)[] | null; + roles?: (string | null | undefined)[] | null; completed_at?: string | null; ticket_url?: string | null; priority?: TicketRequestPriority.Raw | null; diff --git a/src/serialization/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts b/src/serialization/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts new file mode 100644 index 000000000..ce6041846 --- /dev/null +++ b/src/serialization/resources/ticketing/types/TicketRequestAssignedTeamsItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + type Raw = string | Team.Raw; +} diff --git a/src/serialization/resources/ticketing/types/Viewer.ts b/src/serialization/resources/ticketing/types/Viewer.ts new file mode 100644 index 000000000..f97d4ee14 --- /dev/null +++ b/src/serialization/resources/ticketing/types/Viewer.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { 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 { + 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 new file mode 100644 index 000000000..f444687f4 --- /dev/null +++ b/src/serialization/resources/ticketing/types/ViewerTeam.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { Team } from "./Team"; + +export const ViewerTeam: core.serialization.Schema = + core.serialization.undiscriminatedUnion([core.serialization.string(), Team]); + +export declare namespace ViewerTeam { + type Raw = string | Team.Raw; +} diff --git a/src/serialization/resources/ticketing/types/ViewerUser.ts b/src/serialization/resources/ticketing/types/ViewerUser.ts new file mode 100644 index 000000000..f3069d4fa --- /dev/null +++ b/src/serialization/resources/ticketing/types/ViewerUser.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { User } from "./User"; + +export const ViewerUser: core.serialization.Schema = + core.serialization.undiscriminatedUnion([core.serialization.string(), User]); + +export declare namespace ViewerUser { + type Raw = string | User.Raw; +} diff --git a/src/serialization/resources/ticketing/types/index.ts b/src/serialization/resources/ticketing/types/index.ts index a12ad7898..0575fe001 100644 --- a/src/serialization/resources/ticketing/types/index.ts +++ b/src/serialization/resources/ticketing/types/index.ts @@ -20,6 +20,7 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CollectionCollectionType"; export * from "./CollectionParentCollection"; +export * from "./CollectionTeamsItem"; export * from "./CollectionAccessLevel"; export * from "./Collection"; export * from "./CollectionTypeEnum"; @@ -91,6 +92,7 @@ export * from "./PaginatedTagList"; export * from "./PaginatedTeamList"; export * from "./PaginatedTicketList"; export * from "./PaginatedUserList"; +export * from "./PaginatedViewerList"; export * from "./PatchedTicketRequestStatus"; export * from "./PatchedTicketRequestPriority"; export * from "./PatchedTicketRequest"; @@ -123,6 +125,7 @@ export * from "./SyncStatusStatusEnum"; export * from "./Tag"; export * from "./Team"; export * from "./TicketAssigneesItem"; +export * from "./TicketAssignedTeamsItem"; export * from "./TicketCreator"; export * from "./TicketStatus"; export * from "./TicketCollectionsItem"; @@ -135,6 +138,7 @@ export * from "./Ticket"; export * from "./TicketAccessEnum"; export * from "./TicketActionsEnum"; export * from "./TicketRequestAssigneesItem"; +export * from "./TicketRequestAssignedTeamsItem"; export * from "./TicketRequestCreator"; export * from "./TicketRequestStatus"; export * from "./TicketRequestCollectionsItem"; @@ -152,5 +156,8 @@ export * from "./UserTeamsItem"; export * from "./UserRolesItem"; export * from "./User"; export * from "./ValidationProblemSource"; +export * from "./ViewerTeam"; +export * from "./ViewerUser"; +export * from "./Viewer"; export * from "./WarningValidationProblem"; export * from "./WebhookReceiver"; diff --git a/src/version.ts b/src/version.ts index b5aacc024..8bdb832b5 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "1.1.1"; +export const SDK_VERSION = "1.1.2"; diff --git a/yarn.lock b/yarn.lock index a03360adc..49484255e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,10 +19,10 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/compat-data@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.3.tgz#99488264a56b2aded63983abd6a417f03b92ed02" - integrity sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g== +"@babel/compat-data@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.5.tgz#df93ac37f4417854130e21d72c66ff3d4b897fc7" + integrity sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": version "7.26.0" @@ -45,23 +45,23 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.26.0", "@babel/generator@^7.26.3", "@babel/generator@^7.7.2": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.3.tgz#ab8d4360544a425c90c248df7059881f4b2ce019" - integrity sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ== +"@babel/generator@^7.26.0", "@babel/generator@^7.26.5", "@babel/generator@^7.7.2": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.5.tgz#e44d4ab3176bbcaf78a5725da5f1dc28802a9458" + integrity sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw== dependencies: - "@babel/parser" "^7.26.3" - "@babel/types" "^7.26.3" + "@babel/parser" "^7.26.5" + "@babel/types" "^7.26.5" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" "@babel/helper-compilation-targets@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz#55af025ce365be3cdc0c1c1e56c6af617ce88875" - integrity sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz#75d92bb8d8d51301c0d49e52a65c9a7fe94514d8" + integrity sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA== dependencies: - "@babel/compat-data" "^7.25.9" + "@babel/compat-data" "^7.26.5" "@babel/helper-validator-option" "^7.25.9" browserslist "^4.24.0" lru-cache "^5.1.1" @@ -85,9 +85,9 @@ "@babel/traverse" "^7.25.9" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.8.0": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz#9cbdd63a9443a2c92a725cca7ebca12cc8dd9f46" - integrity sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" + integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== "@babel/helper-string-parser@^7.25.9": version "7.25.9" @@ -112,12 +112,12 @@ "@babel/template" "^7.25.9" "@babel/types" "^7.26.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.9", "@babel/parser@^7.26.0", "@babel/parser@^7.26.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.3.tgz#8c51c5db6ddf08134af1ddbacf16aaab48bac234" - integrity sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.9", "@babel/parser@^7.26.0", "@babel/parser@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.5.tgz#6fec9aebddef25ca57a935c86dbb915ae2da3e1f" + integrity sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw== dependencies: - "@babel/types" "^7.26.3" + "@babel/types" "^7.26.5" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -248,22 +248,22 @@ "@babel/types" "^7.25.9" "@babel/traverse@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.3.tgz#1ebfc75bd748d8f96b3cc63af5e82ebd4c37ba35" - integrity sha512-yTmc8J+Sj8yLzwr4PD5Xb/WF3bOYu2C2OoSZPzbuqRm4n98XirsbzaX+GloeO376UnSYIYJ4NCanwV5/ugZkwA== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.5.tgz#6d0be3e772ff786456c1a37538208286f6e79021" + integrity sha512-rkOSPOw+AXbgtwUga3U4u8RpoK9FEFWBNAlTpcnkLFjL5CT+oyHNuUUC/xx6XefEJ16r38r8Bc/lfp6rYuHeJQ== dependencies: "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.3" - "@babel/parser" "^7.26.3" + "@babel/generator" "^7.26.5" + "@babel/parser" "^7.26.5" "@babel/template" "^7.25.9" - "@babel/types" "^7.26.3" + "@babel/types" "^7.26.5" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.0", "@babel/types@^7.26.3", "@babel/types@^7.3.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.3.tgz#37e79830f04c2b5687acc77db97fbc75fb81f3c0" - integrity sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.0", "@babel/types@^7.26.5", "@babel/types@^7.3.3": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.5.tgz#7a1e1c01d28e26d1fe7f8ec9567b3b92b9d07747" + integrity sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -482,9 +482,9 @@ chalk "^4.0.0" "@jridgewell/gen-mapping@^0.3.5": - version "0.3.5" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" - integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + version "0.3.8" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz#4f0e06362e01362f823d348f1872b08f666d8142" + integrity sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA== dependencies: "@jridgewell/set-array" "^1.2.1" "@jridgewell/sourcemap-codec" "^1.4.10" @@ -513,7 +513,7 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.20", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== @@ -642,7 +642,7 @@ "@types/tough-cookie" "*" parse5 "^7.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.8": +"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== @@ -656,9 +656,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.10.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766" - integrity sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ== + version "22.10.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.7.tgz#14a1ca33fd0ebdd9d63593ed8d3fbc882a6d28d7" + integrity sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg== dependencies: undici-types "~6.20.0" @@ -877,11 +877,25 @@ agent-base@6: dependencies: debug "4" +ajv-formats@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + ajv-keywords@^3.5.2: version "3.5.2" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== +ajv-keywords@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" @@ -892,6 +906,16 @@ ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0, ajv@^8.9.0: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -1025,13 +1049,13 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.24.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.2.tgz#f5845bc91069dbd55ee89faf9822e1d885d16580" - integrity sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg== + version "4.24.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" + integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== dependencies: - caniuse-lite "^1.0.30001669" - electron-to-chromium "^1.5.41" - node-releases "^2.0.18" + caniuse-lite "^1.0.30001688" + electron-to-chromium "^1.5.73" + node-releases "^2.0.19" update-browserslist-db "^1.1.1" bs-logger@0.x: @@ -1061,16 +1085,21 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -call-bind@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" - integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== +call-bind-apply-helpers@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz#32e5892e6361b29b0b545ba6f7763378daca2840" + integrity sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g== dependencies: - es-define-property "^1.0.0" es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.4" - set-function-length "^1.2.1" + +call-bound@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.3.tgz#41cfd032b593e39176a71533ab4f384aa04fd681" + integrity sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA== + dependencies: + call-bind-apply-helpers "^1.0.1" + get-intrinsic "^1.2.6" callsites@^3.0.0: version "3.1.0" @@ -1087,10 +1116,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001669: - version "1.0.30001686" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz#0e04b8d90de8753188e93c9989d56cb19d902670" - integrity sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA== +caniuse-lite@^1.0.30001688: + version "1.0.30001695" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001695.tgz#39dfedd8f94851132795fdf9b79d29659ad9c4d4" + integrity sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1222,9 +1251,9 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.3.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" - integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== + version "4.4.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" + integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== dependencies: ms "^2.1.3" @@ -1243,15 +1272,6 @@ deepmerge@^4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== -define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -1274,10 +1294,19 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -electron-to-chromium@^1.5.41: - version "1.5.69" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.69.tgz#7268a4251e82fc83a7cdc9ab51e7154bb2813038" - integrity sha512-zz4e7EbJqqtdQtwt61ZYKrfEYlV0HpGbIGRVFGOO9YBZIhg0BDXtBcWxpqyAm6oyPl2Zp8tc5FrPpCZQH/Yazg== +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +electron-to-chromium@^1.5.73: + version "1.5.84" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.84.tgz#8e334ca206bb293a20b16418bf454783365b0a95" + integrity sha512-I+DQ8xgafao9Ha6y0qjHHvpZ9OfyA1qKlkHkjywxzniORU2awxyz7f/iVJcULmrF2yrM3nHQf+iDjJtbbexd/g== emittery@^0.13.1: version "0.13.1" @@ -1290,9 +1319,9 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1: - version "5.17.1" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15" - integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg== + version "5.18.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.0.tgz#91eb1db193896b9801251eeff1c6980278b1e404" + integrity sha512-0/r0MySGYG8YqlayBZ6MuCfECmHFdJ5qyPh8s8wa5Hnm6SaFLSK1VYCbj+NKp090Nm1caZhD+QTnmxO7esYGyQ== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -1309,12 +1338,10 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" - integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== - dependencies: - get-intrinsic "^1.2.4" +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== es-errors@^1.3.0: version "1.3.0" @@ -1322,9 +1349,16 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-module-lexer@^1.2.1: - version "1.5.4" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.4.tgz#a8efec3a3da991e60efa6b633a7cad6ab8d26b78" - integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw== + version "1.6.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21" + integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ== + +es-object-atoms@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== + dependencies: + es-errors "^1.3.0" escalade@^3.1.1, escalade@^3.2.0: version "3.2.0" @@ -1423,7 +1457,7 @@ expect@^29.0.0, expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== @@ -1433,6 +1467,11 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-sta resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== +fast-uri@^3.0.1: + version "3.0.6" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.6.tgz#88f130b77cfaea2378d56bf970dea21257a68748" + integrity sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw== + fb-watchman@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" @@ -1494,22 +1533,35 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" - integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== +get-intrinsic@^1.2.5, get-intrinsic@^1.2.6: + version "1.2.7" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.7.tgz#dcfcb33d3272e15f445d15124bc0a216189b9044" + integrity sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA== dependencies: + call-bind-apply-helpers "^1.0.1" + es-define-property "^1.0.1" es-errors "^1.3.0" + es-object-atoms "^1.0.0" function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" + get-proto "^1.0.0" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-proto@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -1537,7 +1589,7 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -gopd@^1.0.1: +gopd@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== @@ -1552,26 +1604,12 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.1.0.tgz#deb10494cbbe8809bce168a3b961f42969f5ed43" - integrity sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q== - dependencies: - call-bind "^1.0.7" - -has-symbols@^1.0.3: +has-symbols@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== -hasown@^2.0.0, hasown@^2.0.2: +hasown@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== @@ -1655,10 +1693,10 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== -is-core-module@^2.13.0: - version "2.15.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" - integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== +is-core-module@^2.16.0: + version "2.16.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" + integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== dependencies: hasown "^2.0.2" @@ -2177,9 +2215,9 @@ jsdom@^20.0.0: xml-name-validator "^4.0.0" jsesc@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" - integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== + version "3.1.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" + integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: version "2.3.1" @@ -2191,6 +2229,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" @@ -2254,6 +2297,11 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + merge-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" @@ -2318,10 +2366,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.18: - version "2.0.18" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" - integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== +node-releases@^2.0.19: + version "2.0.19" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" + integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== normalize-path@^3.0.0: version "3.0.0" @@ -2340,7 +2388,7 @@ nwsapi@^2.2.2: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.16.tgz#177760bba02c351df1d2644e220c31dfec8cdb43" integrity sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ== -object-inspect@^1.13.1: +object-inspect@^1.13.3: version "1.13.3" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a" integrity sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA== @@ -2422,7 +2470,7 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -picocolors@^1.0.0, picocolors@^1.1.0: +picocolors@^1.0.0, picocolors@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== @@ -2513,9 +2561,9 @@ react-is@^18.0.0: integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== readable-stream@^4.5.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.5.2.tgz#9e7fc4c45099baeed934bff6eb97ba6cf2729e09" - integrity sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g== + version "4.7.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.7.0.tgz#cedbd8a1146c13dfff8dab14068028d58c15ac91" + integrity sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg== dependencies: abort-controller "^3.0.0" buffer "^6.0.3" @@ -2528,6 +2576,11 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" @@ -2551,11 +2604,11 @@ resolve.exports@^2.0.0: integrity sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A== resolve@^1.20.0: - version "1.22.8" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" - integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== + version "1.22.10" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.10.tgz#b663e83ffb09bbf2386944736baae803029b8b39" + integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== dependencies: - is-core-module "^2.13.0" + is-core-module "^2.16.0" path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" @@ -2581,7 +2634,7 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^3.1.1, schema-utils@^3.2.0: +schema-utils@^3.2.0: version "3.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== @@ -2590,6 +2643,16 @@ schema-utils@^3.1.1, schema-utils@^3.2.0: ajv "^6.12.5" ajv-keywords "^3.5.2" +schema-utils@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.0.tgz#3b669f04f71ff2dfb5aba7ce2d5a9d79b35622c0" + integrity sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.9.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.1.0" + semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" @@ -2600,25 +2663,13 @@ semver@^7.3.4, semver@^7.5.3, semver@^7.5.4: resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== -serialize-javascript@^6.0.1: +serialize-javascript@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== dependencies: randombytes "^2.1.0" -set-function-length@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -2631,15 +2682,45 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +side-channel-list@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" + integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + side-channel@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" - integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== + version "1.1.0" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9" + integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== dependencies: - call-bind "^1.0.7" es-errors "^1.3.0" - get-intrinsic "^1.2.4" - object-inspect "^1.13.1" + object-inspect "^1.13.3" + side-channel-list "^1.0.0" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" @@ -2770,20 +2851,20 @@ tapable@^2.1.1, tapable@^2.2.0: integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== terser-webpack-plugin@^5.3.10: - version "5.3.10" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz#904f4c9193c6fd2a03f693a2150c62a92f40d199" - integrity sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w== + version "5.3.11" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz#93c21f44ca86634257cac176f884f942b7ba3832" + integrity sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ== dependencies: - "@jridgewell/trace-mapping" "^0.3.20" + "@jridgewell/trace-mapping" "^0.3.25" jest-worker "^27.4.5" - schema-utils "^3.1.1" - serialize-javascript "^6.0.1" - terser "^5.26.0" + schema-utils "^4.3.0" + serialize-javascript "^6.0.2" + terser "^5.31.1" -terser@^5.26.0: - version "5.36.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.36.0.tgz#8b0dbed459ac40ff7b4c9fd5a3a2029de105180e" - integrity sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w== +terser@^5.31.1: + version "5.37.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.37.0.tgz#38aa66d1cfc43d0638fab54e43ff8a4f72a21ba3" + integrity sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -2848,9 +2929,9 @@ ts-jest@29.1.1: yargs-parser "^21.0.1" ts-loader@^9.3.1: - version "9.5.1" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.1.tgz#63d5912a86312f1fbe32cef0859fb8b2193d9b89" - integrity sha512-rNH3sK9kGZcH9dYzC7CewQm4NtxJTjSEVRJ2DyBZR7f8/wcta+iV44UPCXc5+nzDzivKtlzV6c9P4e+oFhDLYg== + version "9.5.2" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020" + integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw== dependencies: chalk "^4.1.0" enhanced-resolve "^5.0.0" @@ -2884,12 +2965,12 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5" - integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A== + version "1.1.2" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz#97e9c96ab0ae7bcac08e9ae5151d26e6bc6b5580" + integrity sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg== dependencies: escalade "^3.2.0" - picocolors "^1.1.0" + picocolors "^1.1.1" uri-js@^4.2.2: version "4.4.1" @@ -2958,9 +3039,9 @@ webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.94.0: - version "5.97.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.97.0.tgz#1c5e3b9319f8c6decb19b142e776d90e629d5c40" - integrity sha512-CWT8v7ShSfj7tGs4TLRtaOLmOCPWhoKEvp+eA7FVx8Xrjb3XfT0aXdxDItnRZmE8sHcH+a8ayDrJCOjXKxVFfQ== + version "5.97.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.97.1.tgz#972a8320a438b56ff0f1d94ade9e82eac155fa58" + integrity sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6"