From 8ec98b89d43ace312f89d13216aa0bd6a59a37ad Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 20:31:30 +0000 Subject: [PATCH] Release 1.8.6 --- package.json | 2 +- src/api/resources/accounts/client/Client.ts | 4 +- src/api/resources/agents/client/Client.ts | 22 +-- src/api/resources/apps/client/Client.ts | 8 +- src/api/resources/assistant/client/Client.ts | 10 +- src/api/resources/auth/client/Client.ts | 8 +- src/api/resources/cells/client/Client.ts | 2 +- src/api/resources/commits/client/Client.ts | 6 +- .../dataRetentionPolicies/client/Client.ts | 10 +- src/api/resources/documents/client/Client.ts | 10 +- .../documents/types/ListDocumentsResponse.ts | 50 +++-- .../resources/entitlements/client/Client.ts | 2 +- .../resources/environments/client/Client.ts | 12 +- src/api/resources/events/client/Client.ts | 10 +- src/api/resources/files/client/Client.ts | 12 +- src/api/resources/foreigndb/client/Client.ts | 10 +- src/api/resources/guests/client/Client.ts | 20 +- src/api/resources/jobs/client/Client.ts | 34 ++-- src/api/resources/jobs/types/JobConfig.ts | 2 + .../resources/jobs/types/JobOutcomeNext.ts | 5 + .../jobs/types/JobOutcomeNextFileObject.ts | 8 + .../jobs/types/JobOutcomeNextFiles.ts | 10 + src/api/resources/jobs/types/JobStatus.ts | 4 +- src/api/resources/jobs/types/index.ts | 2 + src/api/resources/mapping/client/Client.ts | 24 +-- src/api/resources/records/client/Client.ts | 10 +- src/api/resources/roles/client/Client.ts | 2 +- src/api/resources/secrets/client/Client.ts | 6 +- src/api/resources/sheets/client/Client.ts | 22 +-- src/api/resources/snapshots/client/Client.ts | 12 +- src/api/resources/spaces/client/Client.ts | 16 +- .../spaces/types/InternalSpaceConfigBase.ts | 1 + src/api/resources/users/client/Client.ts | 22 +-- src/api/resources/versions/client/Client.ts | 2 +- src/api/resources/views/client/Client.ts | 22 ++- .../views/client/requests/ListViewsRequest.ts | 8 + .../views/types/ListViewsResponse.ts | 3 +- src/api/resources/views/types/View.ts | 5 +- src/api/resources/views/types/ViewResponse.ts | 3 +- src/api/resources/workbooks/client/Client.ts | 14 +- .../documents/types/ListDocumentsResponse.ts | 6 +- .../resources/jobs/types/JobConfig.ts | 2 + .../resources/jobs/types/JobOutcomeNext.ts | 7 + .../jobs/types/JobOutcomeNextFileObject.ts | 22 +++ .../jobs/types/JobOutcomeNextFiles.ts | 23 +++ .../resources/jobs/types/JobStatus.ts | 12 +- .../resources/jobs/types/index.ts | 2 + .../resources/views/types/View.ts | 2 + yarn.lock | 182 +++++++++--------- 49 files changed, 413 insertions(+), 280 deletions(-) create mode 100644 src/api/resources/jobs/types/JobOutcomeNextFileObject.ts create mode 100644 src/api/resources/jobs/types/JobOutcomeNextFiles.ts create mode 100644 src/serialization/resources/jobs/types/JobOutcomeNextFileObject.ts create mode 100644 src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts diff --git a/package.json b/package.json index 61ac2fc5..e604a3af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flatfile/api", - "version": "1.8.5", + "version": "1.8.6", "private": false, "repository": "https://github.com/FlatFilers/flatfile-node", "main": "./index.js", diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts index b32a5d2e..c3132572 100644 --- a/src/api/resources/accounts/client/Client.ts +++ b/src/api/resources/accounts/client/Client.ts @@ -43,7 +43,7 @@ export class Accounts { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -106,7 +106,7 @@ export class Accounts { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts index e8831968..88f09036 100644 --- a/src/api/resources/agents/client/Client.ts +++ b/src/api/resources/agents/client/Client.ts @@ -43,7 +43,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -125,7 +125,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -208,7 +208,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -293,7 +293,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -388,7 +388,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -486,7 +486,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -587,7 +587,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -679,7 +679,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -790,7 +790,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -901,7 +901,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -994,7 +994,7 @@ export class Agents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts index d35087e3..b982b954 100644 --- a/src/api/resources/apps/client/Client.ts +++ b/src/api/resources/apps/client/Client.ts @@ -40,7 +40,7 @@ export class Apps { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -98,7 +98,7 @@ export class Apps { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -169,7 +169,7 @@ export class Apps { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -241,7 +241,7 @@ export class Apps { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts index 577e66d9..995785f1 100644 --- a/src/api/resources/assistant/client/Client.ts +++ b/src/api/resources/assistant/client/Client.ts @@ -56,7 +56,7 @@ export class Assistant { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -118,7 +118,7 @@ export class Assistant { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -182,7 +182,7 @@ export class Assistant { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -246,7 +246,7 @@ export class Assistant { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -308,7 +308,7 @@ export class Assistant { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts index 7b1f9af0..57136cc4 100644 --- a/src/api/resources/auth/client/Client.ts +++ b/src/api/resources/auth/client/Client.ts @@ -52,7 +52,7 @@ export class Auth { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -143,7 +143,7 @@ export class Auth { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -236,7 +236,7 @@ export class Auth { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -329,7 +329,7 @@ export class Auth { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts index 8663f695..20c64e31 100644 --- a/src/api/resources/cells/client/Client.ts +++ b/src/api/resources/cells/client/Client.ts @@ -105,7 +105,7 @@ export class Cells { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts index 32a56676..d3dc9768 100644 --- a/src/api/resources/commits/client/Client.ts +++ b/src/api/resources/commits/client/Client.ts @@ -48,7 +48,7 @@ export class Commits { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -131,7 +131,7 @@ export class Commits { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -214,7 +214,7 @@ export class Commits { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts index c108c105..2550605c 100644 --- a/src/api/resources/dataRetentionPolicies/client/Client.ts +++ b/src/api/resources/dataRetentionPolicies/client/Client.ts @@ -56,7 +56,7 @@ export class DataRetentionPolicies { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -147,7 +147,7 @@ export class DataRetentionPolicies { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -234,7 +234,7 @@ export class DataRetentionPolicies { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -325,7 +325,7 @@ export class DataRetentionPolicies { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -409,7 +409,7 @@ export class DataRetentionPolicies { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts index bdeac390..b4ee9a08 100644 --- a/src/api/resources/documents/client/Client.ts +++ b/src/api/resources/documents/client/Client.ts @@ -48,7 +48,7 @@ export class Documents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -145,7 +145,7 @@ export class Documents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -235,7 +235,7 @@ export class Documents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -328,7 +328,7 @@ export class Documents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -415,7 +415,7 @@ export class Documents { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/documents/types/ListDocumentsResponse.ts b/src/api/resources/documents/types/ListDocumentsResponse.ts index 677fda3c..9a5b949b 100644 --- a/src/api/resources/documents/types/ListDocumentsResponse.ts +++ b/src/api/resources/documents/types/ListDocumentsResponse.ts @@ -8,26 +8,40 @@ import * as Flatfile from "../../.."; * @example * { * data: [{ - * data: { - * id: "us_dc_YOUR_ID", - * spaceId: "us_sp_YOUR_ID", - * environmentId: "us_env_YOUR_ID", - * title: "My Document 1", - * body: "My information", - * treatments: [], - * actions: [{ - * operation: "submitAction", - * mode: Flatfile.ActionMode.Foreground, - * label: "Submit", - * description: "Submit data to webhook.site", - * primary: true - * }], - * createdAt: new Date("2022-09-18T00:19:57.007Z"), - * updatedAt: new Date("2022-09-18T00:19:57.007Z") - * } + * id: "us_dc_YOUR_ID", + * spaceId: "us_sp_YOUR_ID", + * environmentId: "us_env_YOUR_ID", + * title: "My Document 1", + * body: "My information", + * treatments: [], + * actions: [{ + * operation: "submitAction", + * mode: Flatfile.ActionMode.Foreground, + * label: "Submit", + * description: "Submit data to webhook.site", + * primary: true + * }], + * createdAt: new Date("2022-09-18T00:19:57.007Z"), + * updatedAt: new Date("2022-09-18T00:19:57.007Z") + * }, { + * id: "us_dc_YOUR_ID", + * spaceId: "us_sp_YOUR_ID", + * environmentId: "us_env_YOUR_ID", + * title: "Updated Title", + * body: "Updated My information", + * treatments: [], + * actions: [{ + * operation: "submitAction", + * mode: Flatfile.ActionMode.Foreground, + * label: "Submit", + * description: "Submit data to webhook.site", + * primary: true + * }], + * createdAt: new Date("2022-09-18T00:19:57.007Z"), + * updatedAt: new Date("2022-09-18T00:19:57.007Z") * }] * } */ export interface ListDocumentsResponse { - data: Flatfile.DocumentResponse[]; + data: Flatfile.Document[]; } diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts index d4cb9acd..7bd0d4bb 100644 --- a/src/api/resources/entitlements/client/Client.ts +++ b/src/api/resources/entitlements/client/Client.ts @@ -53,7 +53,7 @@ export class Entitlements { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts index 09fc1f09..aba51e9d 100644 --- a/src/api/resources/environments/client/Client.ts +++ b/src/api/resources/environments/client/Client.ts @@ -56,7 +56,7 @@ export class Environments { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -126,7 +126,7 @@ export class Environments { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -195,7 +195,7 @@ export class Environments { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -282,7 +282,7 @@ export class Environments { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -375,7 +375,7 @@ export class Environments { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -436,7 +436,7 @@ export class Environments { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index c8697b0f..b1b0a03c 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -80,7 +80,7 @@ export class Events { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -156,7 +156,7 @@ export class Events { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -235,7 +235,7 @@ export class Events { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -287,7 +287,7 @@ export class Events { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -360,7 +360,7 @@ export class Events { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts index 658a5bc1..5c2491fa 100644 --- a/src/api/resources/files/client/Client.ts +++ b/src/api/resources/files/client/Client.ts @@ -61,7 +61,7 @@ export class Files { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -139,7 +139,7 @@ export class Files { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -212,7 +212,7 @@ export class Files { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -291,7 +291,7 @@ export class Files { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -380,7 +380,7 @@ export class Files { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -460,7 +460,7 @@ export class Files { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts index f2893b78..6dcfeb5f 100644 --- a/src/api/resources/foreigndb/client/Client.ts +++ b/src/api/resources/foreigndb/client/Client.ts @@ -46,7 +46,7 @@ export class Foreigndb { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -130,7 +130,7 @@ export class Foreigndb { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -213,7 +213,7 @@ export class Foreigndb { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -296,7 +296,7 @@ export class Foreigndb { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -380,7 +380,7 @@ export class Foreigndb { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts index 68f909bd..d83d9896 100644 --- a/src/api/resources/guests/client/Client.ts +++ b/src/api/resources/guests/client/Client.ts @@ -55,7 +55,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -128,7 +128,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -190,7 +190,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -248,7 +248,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -313,7 +313,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -382,7 +382,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -444,7 +444,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -539,7 +539,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -637,7 +637,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -733,7 +733,7 @@ export class Guests { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts index d671d440..b61606d0 100644 --- a/src/api/resources/jobs/client/Client.ts +++ b/src/api/resources/jobs/client/Client.ts @@ -74,7 +74,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -130,7 +130,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -183,7 +183,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -239,7 +239,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -292,7 +292,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -350,7 +350,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -411,7 +411,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -510,7 +510,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -570,7 +570,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -639,7 +639,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -704,7 +704,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -778,7 +778,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -856,7 +856,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -924,7 +924,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -983,7 +983,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1041,7 +1041,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1107,7 +1107,7 @@ export class Jobs { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/jobs/types/JobConfig.ts b/src/api/resources/jobs/types/JobConfig.ts index 76e0fbd2..42bdc80c 100644 --- a/src/api/resources/jobs/types/JobConfig.ts +++ b/src/api/resources/jobs/types/JobConfig.ts @@ -51,4 +51,6 @@ export interface JobConfig { partExecution?: Flatfile.JobPartExecution; /** The id of the parent job */ parentId?: Flatfile.JobId; + /** The ids of the jobs that must complete before this job can start */ + predecessorIds?: Flatfile.JobId[]; } diff --git a/src/api/resources/jobs/types/JobOutcomeNext.ts b/src/api/resources/jobs/types/JobOutcomeNext.ts index 4a7b2f09..0e21039e 100644 --- a/src/api/resources/jobs/types/JobOutcomeNext.ts +++ b/src/api/resources/jobs/types/JobOutcomeNext.ts @@ -15,6 +15,7 @@ export type JobOutcomeNext = | Flatfile.JobOutcomeNext.Id | Flatfile.JobOutcomeNext.Url | Flatfile.JobOutcomeNext.Download + | Flatfile.JobOutcomeNext.Files | Flatfile.JobOutcomeNext.Wait | Flatfile.JobOutcomeNext.Snapshot | Flatfile.JobOutcomeNext.Retry; @@ -32,6 +33,10 @@ export declare namespace JobOutcomeNext { type: "download"; } + interface Files extends Flatfile.JobOutcomeNextFiles { + type: "files"; + } + interface Wait extends Flatfile.JobOutcomeNextWait { type: "wait"; } diff --git a/src/api/resources/jobs/types/JobOutcomeNextFileObject.ts b/src/api/resources/jobs/types/JobOutcomeNextFileObject.ts new file mode 100644 index 00000000..2f4a79b8 --- /dev/null +++ b/src/api/resources/jobs/types/JobOutcomeNextFileObject.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface JobOutcomeNextFileObject { + fileId: string; + label?: string; +} diff --git a/src/api/resources/jobs/types/JobOutcomeNextFiles.ts b/src/api/resources/jobs/types/JobOutcomeNextFiles.ts new file mode 100644 index 00000000..3c90bcd9 --- /dev/null +++ b/src/api/resources/jobs/types/JobOutcomeNextFiles.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +export interface JobOutcomeNextFiles { + file: Flatfile.JobOutcomeNextFileObject[]; + label?: string; +} diff --git a/src/api/resources/jobs/types/JobStatus.ts b/src/api/resources/jobs/types/JobStatus.ts index db749df8..0243ee20 100644 --- a/src/api/resources/jobs/types/JobStatus.ts +++ b/src/api/resources/jobs/types/JobStatus.ts @@ -28,7 +28,8 @@ export type JobStatus = | "executing" | "complete" | "failed" - | "canceled"; + | "canceled" + | "waiting"; export const JobStatus = { Created: "created", @@ -39,4 +40,5 @@ export const JobStatus = { Complete: "complete", Failed: "failed", Canceled: "canceled", + Waiting: "waiting", } as const; diff --git a/src/api/resources/jobs/types/index.ts b/src/api/resources/jobs/types/index.ts index 1d5f9ea2..be674463 100644 --- a/src/api/resources/jobs/types/index.ts +++ b/src/api/resources/jobs/types/index.ts @@ -31,6 +31,8 @@ export * from "./JobOutcomeNext"; export * from "./JobOutcomeNextId"; export * from "./JobOutcomeNextUrl"; export * from "./JobOutcomeNextDownload"; +export * from "./JobOutcomeNextFileObject"; +export * from "./JobOutcomeNextFiles"; export * from "./JobOutcomeNextWait"; export * from "./JobOutcomeNextRetry"; export * from "./JobOutcomeNextSnapshot"; diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts index 2ab98506..8a1def7b 100644 --- a/src/api/resources/mapping/client/Client.ts +++ b/src/api/resources/mapping/client/Client.ts @@ -45,7 +45,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -129,7 +129,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -267,7 +267,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -341,7 +341,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -425,7 +425,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -509,7 +509,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -593,7 +593,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -680,7 +680,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -769,7 +769,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -863,7 +863,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -948,7 +948,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1038,7 +1038,7 @@ export class Mapping { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts index ab5cd3ce..f8f4994a 100644 --- a/src/api/resources/records/client/Client.ts +++ b/src/api/resources/records/client/Client.ts @@ -151,7 +151,7 @@ export class Records { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -263,7 +263,7 @@ export class Records { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -367,7 +367,7 @@ export class Records { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -465,7 +465,7 @@ export class Records { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -583,7 +583,7 @@ export class Records { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts index 1f1f5849..613eb294 100644 --- a/src/api/resources/roles/client/Client.ts +++ b/src/api/resources/roles/client/Client.ts @@ -40,7 +40,7 @@ export class Roles { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts index 0c8dce91..c2ef5622 100644 --- a/src/api/resources/secrets/client/Client.ts +++ b/src/api/resources/secrets/client/Client.ts @@ -60,7 +60,7 @@ export class Secrets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -152,7 +152,7 @@ export class Secrets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -239,7 +239,7 @@ export class Secrets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts index af795951..e368501e 100644 --- a/src/api/resources/sheets/client/Client.ts +++ b/src/api/resources/sheets/client/Client.ts @@ -52,7 +52,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -114,7 +114,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -174,7 +174,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -260,7 +260,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -404,7 +404,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -517,7 +517,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -579,7 +579,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -671,7 +671,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -735,7 +735,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -821,7 +821,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -962,7 +962,7 @@ export class Sheets { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts index 56da28b1..e2e05496 100644 --- a/src/api/resources/snapshots/client/Client.ts +++ b/src/api/resources/snapshots/client/Client.ts @@ -51,7 +51,7 @@ export class Snapshots { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -143,7 +143,7 @@ export class Snapshots { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -236,7 +236,7 @@ export class Snapshots { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -323,7 +323,7 @@ export class Snapshots { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -414,7 +414,7 @@ export class Snapshots { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -525,7 +525,7 @@ export class Snapshots { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts index a1e714c5..ad833e9d 100644 --- a/src/api/resources/spaces/client/Client.ts +++ b/src/api/resources/spaces/client/Client.ts @@ -97,7 +97,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -179,7 +179,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -266,7 +266,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -349,7 +349,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -445,7 +445,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -535,7 +535,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -622,7 +622,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -705,7 +705,7 @@ export class Spaces { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts index 2fd85c38..61393730 100644 --- a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +++ b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts @@ -7,6 +7,7 @@ import * as Flatfile from "../../.."; export interface InternalSpaceConfigBase { spaceConfigId?: Flatfile.SpaceConfigId; environmentId?: Flatfile.EnvironmentId; + /** The ID of the primary workbook for the space. This should not be included in create space requests. */ primaryWorkbookId?: Flatfile.WorkbookId; /** Metadata for the space */ metadata?: any; diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 6ffde26a..1a1e55f8 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -54,7 +54,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -126,7 +126,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -188,7 +188,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -247,7 +247,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -302,7 +302,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -363,7 +363,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -458,7 +458,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -556,7 +556,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -659,7 +659,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -722,7 +722,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -781,7 +781,7 @@ export class Users { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts index 05c5e08d..405f58a7 100644 --- a/src/api/resources/versions/client/Client.ts +++ b/src/api/resources/versions/client/Client.ts @@ -40,7 +40,7 @@ export class Versions { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/views/client/Client.ts b/src/api/resources/views/client/Client.ts index e3765e8c..0b8bf1e3 100644 --- a/src/api/resources/views/client/Client.ts +++ b/src/api/resources/views/client/Client.ts @@ -26,7 +26,7 @@ export class Views { constructor(protected readonly _options: Views.Options = {}) {} /** - * Returns all views for user and sheet + * Returns all views for the sheet * @throws {@link Flatfile.BadRequestError} * @throws {@link Flatfile.NotFoundError} * @@ -39,9 +39,17 @@ export class Views { request: Flatfile.ListViewsRequest, requestOptions?: Views.RequestOptions ): Promise { - const { sheetId } = request; + const { sheetId, pageSize, pageNumber } = request; const _queryParams: Record = {}; _queryParams["sheetId"] = sheetId; + if (pageSize != null) { + _queryParams["pageSize"] = pageSize.toString(); + } + + if (pageNumber != null) { + _queryParams["pageNumber"] = pageNumber.toString(); + } + const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, @@ -53,7 +61,7 @@ export class Views { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -150,7 +158,7 @@ export class Views { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -234,7 +242,7 @@ export class Views { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -330,7 +338,7 @@ export class Views { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -412,7 +420,7 @@ export class Views { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/views/client/requests/ListViewsRequest.ts b/src/api/resources/views/client/requests/ListViewsRequest.ts index 87b0341b..23bbd1a3 100644 --- a/src/api/resources/views/client/requests/ListViewsRequest.ts +++ b/src/api/resources/views/client/requests/ListViewsRequest.ts @@ -15,4 +15,12 @@ export interface ListViewsRequest { * The associated sheet ID of the view. */ sheetId: Flatfile.SheetId; + /** + * Number of prompts to return in a page (default 10) + */ + pageSize?: number; + /** + * Based on pageSize, which page of prompts to return + */ + pageNumber?: number; } diff --git a/src/api/resources/views/types/ListViewsResponse.ts b/src/api/resources/views/types/ListViewsResponse.ts index d04f9b7c..aa58b08b 100644 --- a/src/api/resources/views/types/ListViewsResponse.ts +++ b/src/api/resources/views/types/ListViewsResponse.ts @@ -17,7 +17,8 @@ import * as Flatfile from "../../.."; * q: "firstname like %John%", * sortField: "email", * sortDirection: Flatfile.SortDirection.Asc - * } + * }, + * createdBy: "us_usr_YOUR_ID" * }], * pagination: { * currentPage: 3, diff --git a/src/api/resources/views/types/View.ts b/src/api/resources/views/types/View.ts index acee5c6d..540e7d5c 100644 --- a/src/api/resources/views/types/View.ts +++ b/src/api/resources/views/types/View.ts @@ -18,7 +18,8 @@ import * as Flatfile from "../../.."; * q: "firstname like %John%", * sortField: "email", * sortDirection: Flatfile.SortDirection.Asc - * } + * }, + * createdBy: "us_usr_YOUR_ID" * } */ export interface View { @@ -30,4 +31,6 @@ export interface View { name: string; /** The view filters of the view */ config: Flatfile.ViewConfig; + /** ID of the actor who created the view */ + createdBy: string; } diff --git a/src/api/resources/views/types/ViewResponse.ts b/src/api/resources/views/types/ViewResponse.ts index 919cc078..5583fc9f 100644 --- a/src/api/resources/views/types/ViewResponse.ts +++ b/src/api/resources/views/types/ViewResponse.ts @@ -17,7 +17,8 @@ import * as Flatfile from "../../.."; * q: "firstname like %John%", * sortField: "email", * sortDirection: Flatfile.SortDirection.Asc - * } + * }, + * createdBy: "us_usr_YOUR_ID" * } * } */ diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts index f3a2c4bc..fa558b3a 100644 --- a/src/api/resources/workbooks/client/Client.ts +++ b/src/api/resources/workbooks/client/Client.ts @@ -59,7 +59,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -166,7 +166,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -243,7 +243,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -329,7 +329,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -426,7 +426,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -518,7 +518,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -579,7 +579,7 @@ export class Workbooks { "X-Disable-Hooks": "true", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@flatfile/api", - "X-Fern-SDK-Version": "1.8.5", + "X-Fern-SDK-Version": "1.8.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/serialization/resources/documents/types/ListDocumentsResponse.ts b/src/serialization/resources/documents/types/ListDocumentsResponse.ts index 6de1ff3f..0d3e0012 100644 --- a/src/serialization/resources/documents/types/ListDocumentsResponse.ts +++ b/src/serialization/resources/documents/types/ListDocumentsResponse.ts @@ -5,17 +5,17 @@ import * as serializers from "../../.."; import * as Flatfile from "../../../../api"; import * as core from "../../../../core"; -import { DocumentResponse } from "./DocumentResponse"; +import { Document } from "./Document"; export const ListDocumentsResponse: core.serialization.ObjectSchema< serializers.ListDocumentsResponse.Raw, Flatfile.ListDocumentsResponse > = core.serialization.object({ - data: core.serialization.list(DocumentResponse), + data: core.serialization.list(Document), }); export declare namespace ListDocumentsResponse { interface Raw { - data: DocumentResponse.Raw[]; + data: Document.Raw[]; } } diff --git a/src/serialization/resources/jobs/types/JobConfig.ts b/src/serialization/resources/jobs/types/JobConfig.ts index 46c63845..e285aeda 100644 --- a/src/serialization/resources/jobs/types/JobConfig.ts +++ b/src/serialization/resources/jobs/types/JobConfig.ts @@ -40,6 +40,7 @@ export const JobConfig: core.serialization.ObjectSchema | null; partExecution?: JobPartExecution.Raw | null; parentId?: JobId.Raw | null; + predecessorIds?: JobId.Raw[] | null; } } diff --git a/src/serialization/resources/jobs/types/JobOutcomeNext.ts b/src/serialization/resources/jobs/types/JobOutcomeNext.ts index b7cddc07..cdac14e7 100644 --- a/src/serialization/resources/jobs/types/JobOutcomeNext.ts +++ b/src/serialization/resources/jobs/types/JobOutcomeNext.ts @@ -8,6 +8,7 @@ import * as core from "../../../../core"; import { JobOutcomeNextId } from "./JobOutcomeNextId"; import { JobOutcomeNextUrl } from "./JobOutcomeNextUrl"; import { JobOutcomeNextDownload } from "./JobOutcomeNextDownload"; +import { JobOutcomeNextFiles } from "./JobOutcomeNextFiles"; import { JobOutcomeNextWait } from "./JobOutcomeNextWait"; import { JobOutcomeNextSnapshot } from "./JobOutcomeNextSnapshot"; import { JobOutcomeNextRetry } from "./JobOutcomeNextRetry"; @@ -18,6 +19,7 @@ export const JobOutcomeNext: core.serialization.Schema = core.serialization.object({ + fileId: core.serialization.string(), + label: core.serialization.string().optional(), +}); + +export declare namespace JobOutcomeNextFileObject { + interface Raw { + fileId: string; + label?: string | null; + } +} diff --git a/src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts b/src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts new file mode 100644 index 00000000..081b1c10 --- /dev/null +++ b/src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Flatfile from "../../../../api"; +import * as core from "../../../../core"; +import { JobOutcomeNextFileObject } from "./JobOutcomeNextFileObject"; + +export const JobOutcomeNextFiles: core.serialization.ObjectSchema< + serializers.JobOutcomeNextFiles.Raw, + Flatfile.JobOutcomeNextFiles +> = core.serialization.object({ + file: core.serialization.list(JobOutcomeNextFileObject), + label: core.serialization.string().optional(), +}); + +export declare namespace JobOutcomeNextFiles { + interface Raw { + file: JobOutcomeNextFileObject.Raw[]; + label?: string | null; + } +} diff --git a/src/serialization/resources/jobs/types/JobStatus.ts b/src/serialization/resources/jobs/types/JobStatus.ts index 88626f82..3ce8cfaf 100644 --- a/src/serialization/resources/jobs/types/JobStatus.ts +++ b/src/serialization/resources/jobs/types/JobStatus.ts @@ -16,8 +16,18 @@ export const JobStatus: core.serialization.Schema