diff --git a/package.json b/package.json index 3829976e..1ac2b242 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flatfile/api", - "version": "1.8.3", + "version": "1.8.4", "private": false, "repository": "https://github.com/FlatFilers/flatfile-node", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index cb04dd82..e6547462 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -29,6 +29,7 @@ import { Snapshots } from "./api/resources/snapshots/client/Client"; import { Spaces } from "./api/resources/spaces/client/Client"; import { Users } from "./api/resources/users/client/Client"; import { Versions } from "./api/resources/versions/client/Client"; +import { Views } from "./api/resources/views/client/Client"; import { Workbooks } from "./api/resources/workbooks/client/Client"; export declare namespace FlatfileClient { @@ -197,6 +198,12 @@ export class FlatfileClient { return (this._versions ??= new Versions(this._options)); } + protected _views: Views | undefined; + + public get views(): Views { + return (this._views ??= new Views(this._options)); + } + protected _workbooks: Workbooks | undefined; public get workbooks(): Workbooks { diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts index 376c62cc..e60f6aa0 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 d024bb2e..379907f1 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 ae969307..722d45d9 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 5842123f..0042ebfa 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 bd0b707a..3641cfcf 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 c153113b..abf66dd0 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.3", + "X-Fern-SDK-Version": "1.8.4", "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 7ae39bcb..a86524dc 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/commons/types/ViewId.ts b/src/api/resources/commons/types/ViewId.ts new file mode 100644 index 00000000..7fd38b4d --- /dev/null +++ b/src/api/resources/commons/types/ViewId.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * View ID + * + * @example + * "us_vi_YOUR_ID" + */ +export type ViewId = string; diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts index baa887dd..c74eb675 100644 --- a/src/api/resources/commons/types/index.ts +++ b/src/api/resources/commons/types/index.ts @@ -23,6 +23,7 @@ export * from "./MappingId"; export * from "./ProgramId"; export * from "./FamilyId"; export * from "./PromptId"; +export * from "./ViewId"; export * from "./DataRetentionPolicyId"; export * from "./Pagination"; export * from "./PageSize"; diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts index fe4b327c..ce924944 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 c07576ab..b77b6aaa 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts index 05cd299a..a987c09c 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.3", + "X-Fern-SDK-Version": "1.8.4", "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 3d15182c..a71f98a4 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 89602dfe..2976bd52 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 a24e9318..8e7e83f2 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 d9392127..c5abb2b5 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 bf4c145c..d2078207 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 21a77dd7..58af0eea 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -52,6 +52,8 @@ export * as users from "./users"; export * from "./users/types"; export * as versions from "./versions"; export * from "./versions/types"; +export * as views from "./views"; +export * from "./views/types"; export * as workbooks from "./workbooks"; export * from "./workbooks/types"; export * from "./commons/errors"; @@ -74,4 +76,5 @@ export * from "./snapshots/client/requests"; export * from "./spaces/client/requests"; export * from "./users/client/requests"; export * from "./versions/client/requests"; +export * from "./views/client/requests"; export * from "./workbooks/client/requests"; diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts index e9de3305..64c9a3ec 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts index 87994fe8..e2982a20 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 92f04a5c..6ef5915e 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 965dc66e..a0ce6a4d 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.3", + "X-Fern-SDK-Version": "1.8.4", "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 9e2fed1c..f313a98f 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 25015424..4663e4e4 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 7b4b39dc..27114b34 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 52fb830a..d13dbe8c 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 69ff49e2..b4163e63 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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 7eaab151..a6f9aad2 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.3", + "X-Fern-SDK-Version": "1.8.4", "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 new file mode 100644 index 00000000..10e0582c --- /dev/null +++ b/src/api/resources/views/client/Client.ts @@ -0,0 +1,463 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Flatfile from "../../.."; +import urlJoin from "url-join"; +import * as serializers from "../../../../serialization"; +import * as errors from "../../../../errors"; + +export declare namespace Views { + interface Options { + environment?: core.Supplier; + token?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + timeoutInSeconds?: number; + maxRetries?: number; + } +} + +export class Views { + constructor(protected readonly _options: Views.Options = {}) {} + + /** + * Returns all views for user and sheet + * @throws {@link Flatfile.BadRequestError} + * @throws {@link Flatfile.NotFoundError} + * + * @example + * await flatfile.views.list({ + * sheetId: "us_sh_YOUR_ID" + * }) + */ + public async list( + request: Flatfile.ListViewsRequest, + requestOptions?: Views.RequestOptions + ): Promise { + const { sheetId } = request; + const _queryParams: Record = {}; + _queryParams["sheetId"] = sheetId; + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, + "/views" + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Disable-Hooks": "true", + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@flatfile/api", + "X-Fern-SDK-Version": "1.8.4", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ListViewsResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Flatfile.BadRequestError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new Flatfile.NotFoundError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FlatfileTimeoutError(); + case "unknown": + throw new errors.FlatfileError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Add a new view to the space + * @throws {@link Flatfile.BadRequestError} + * @throws {@link Flatfile.NotFoundError} + * + * @example + * await flatfile.views.create({ + * sheetId: "us_sh_YOUR_ID", + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * }) + */ + public async create( + request: Flatfile.ViewCreate, + requestOptions?: Views.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, + "/views" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Disable-Hooks": "true", + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@flatfile/api", + "X-Fern-SDK-Version": "1.8.4", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + body: await serializers.ViewCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ViewResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Flatfile.BadRequestError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new Flatfile.NotFoundError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FlatfileTimeoutError(); + case "unknown": + throw new errors.FlatfileError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Returns a single view + * @throws {@link Flatfile.BadRequestError} + * @throws {@link Flatfile.NotFoundError} + * + * @example + * await flatfile.views.get("us_vi_YOUR_ID") + */ + public async get(viewId: Flatfile.ViewId, requestOptions?: Views.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, + `/views/${await serializers.ViewId.jsonOrThrow(viewId)}` + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Disable-Hooks": "true", + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@flatfile/api", + "X-Fern-SDK-Version": "1.8.4", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ViewResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Flatfile.BadRequestError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new Flatfile.NotFoundError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FlatfileTimeoutError(); + case "unknown": + throw new errors.FlatfileError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Updates a single view + * @throws {@link Flatfile.BadRequestError} + * @throws {@link Flatfile.NotFoundError} + * + * @example + * await flatfile.views.update("us_vi_YOUR_ID", { + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * }) + */ + public async update( + viewId: Flatfile.ViewId, + request: Flatfile.ViewUpdate, + requestOptions?: Views.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, + `/views/${await serializers.ViewId.jsonOrThrow(viewId)}` + ), + method: "PATCH", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Disable-Hooks": "true", + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@flatfile/api", + "X-Fern-SDK-Version": "1.8.4", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + body: await serializers.ViewUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ViewResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new Flatfile.BadRequestError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new Flatfile.NotFoundError( + await serializers.Errors.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FlatfileTimeoutError(); + case "unknown": + throw new errors.FlatfileError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Deletes a single view + * + * @example + * await flatfile.views.delete("us_vi_YOUR_ID") + */ + public async delete(viewId: Flatfile.ViewId, requestOptions?: Views.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, + `/views/${await serializers.ViewId.jsonOrThrow(viewId)}` + ), + method: "DELETE", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Disable-Hooks": "true", + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@flatfile/api", + "X-Fern-SDK-Version": "1.8.4", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.Success.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.FlatfileError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.FlatfileTimeoutError(); + case "unknown": + throw new errors.FlatfileError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader() { + const bearer = await core.Supplier.get(this._options.token); + if (bearer != null) { + return `Bearer ${bearer}`; + } + + return undefined; + } +} diff --git a/src/api/resources/views/client/index.ts b/src/api/resources/views/client/index.ts new file mode 100644 index 00000000..415726b7 --- /dev/null +++ b/src/api/resources/views/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/views/client/requests/ListViewsRequest.ts b/src/api/resources/views/client/requests/ListViewsRequest.ts new file mode 100644 index 00000000..87b0341b --- /dev/null +++ b/src/api/resources/views/client/requests/ListViewsRequest.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../../.."; + +/** + * @example + * { + * sheetId: "us_sh_YOUR_ID" + * } + */ +export interface ListViewsRequest { + /** + * The associated sheet ID of the view. + */ + sheetId: Flatfile.SheetId; +} diff --git a/src/api/resources/views/client/requests/index.ts b/src/api/resources/views/client/requests/index.ts new file mode 100644 index 00000000..ca751ea7 --- /dev/null +++ b/src/api/resources/views/client/requests/index.ts @@ -0,0 +1 @@ +export { ListViewsRequest } from "./ListViewsRequest"; diff --git a/src/api/resources/views/index.ts b/src/api/resources/views/index.ts new file mode 100644 index 00000000..c9240f83 --- /dev/null +++ b/src/api/resources/views/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/resources/views/types/ListViewsResponse.ts b/src/api/resources/views/types/ListViewsResponse.ts new file mode 100644 index 00000000..d04f9b7c --- /dev/null +++ b/src/api/resources/views/types/ListViewsResponse.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +/** + * @example + * { + * data: [{ + * id: "us_vi_YOUR_ID", + * sheetId: "us_sh_YOUR_ID", + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * }], + * pagination: { + * currentPage: 3, + * pageCount: 50, + * totalCount: 100 + * } + * } + */ +export interface ListViewsResponse { + pagination?: Flatfile.Pagination; + data: Flatfile.View[]; +} diff --git a/src/api/resources/views/types/View.ts b/src/api/resources/views/types/View.ts new file mode 100644 index 00000000..acee5c6d --- /dev/null +++ b/src/api/resources/views/types/View.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +/** + * A view + * + * @example + * { + * id: "us_vi_YOUR_ID", + * sheetId: "us_sh_YOUR_ID", + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * } + */ +export interface View { + /** The ID of the view */ + id: Flatfile.ViewId; + /** The associated sheet ID of the view */ + sheetId: Flatfile.SheetId; + /** The name of the view */ + name: string; + /** The view filters of the view */ + config: Flatfile.ViewConfig; +} diff --git a/src/api/resources/views/types/ViewConfig.ts b/src/api/resources/views/types/ViewConfig.ts new file mode 100644 index 00000000..2176fbc9 --- /dev/null +++ b/src/api/resources/views/types/ViewConfig.ts @@ -0,0 +1,51 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +/** + * The configuration of a view. Filters, sorting, and search query. + * + * @example + * { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + */ +export interface ViewConfig { + /** Deprecated, use `commitId` instead. */ + versionId?: Flatfile.VersionId; + commitId?: Flatfile.CommitId; + /** Deprecated, use `sinceCommitId` instead. */ + sinceVersionId?: Flatfile.VersionId; + sinceCommitId?: Flatfile.CommitId; + sortField?: Flatfile.SortField; + sortDirection?: Flatfile.SortDirection; + filter?: Flatfile.Filter; + /** Name of field by which to filter records */ + filterField?: Flatfile.FilterField; + searchValue?: Flatfile.SearchValue; + searchField?: Flatfile.SearchField; + /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records. Maximum of 100 allowed. */ + ids?: Flatfile.RecordId[]; + /** Number of records to return in a page (default 10,000) */ + pageSize?: number; + /** Based on pageSize, which page of records to return (Note - numbers start at 1) */ + pageNumber?: number; + /** **DEPRECATED** Use GET /sheets/:sheetId/counts */ + includeCounts?: boolean; + /** The length of the record result set, returned as counts.total */ + includeLength?: boolean; + /** If true, linked records will be included in the results. Defaults to false. */ + includeLinks?: boolean; + /** Include error messages, defaults to false. */ + includeMessages?: boolean; + /** if "for" is provided, the query parameters will be pulled from the event payload */ + for?: Flatfile.EventId; + /** An FFQL query used to filter the result set */ + q?: string; +} diff --git a/src/api/resources/views/types/ViewCreate.ts b/src/api/resources/views/types/ViewCreate.ts new file mode 100644 index 00000000..5a0144f4 --- /dev/null +++ b/src/api/resources/views/types/ViewCreate.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +/** + * @example + * { + * sheetId: "us_sh_YOUR_ID", + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * } + */ +export interface ViewCreate { + sheetId: Flatfile.SheetId; + name: string; + config: Flatfile.ViewConfig; +} diff --git a/src/api/resources/views/types/ViewResponse.ts b/src/api/resources/views/types/ViewResponse.ts new file mode 100644 index 00000000..919cc078 --- /dev/null +++ b/src/api/resources/views/types/ViewResponse.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +/** + * @example + * { + * data: { + * id: "us_vi_YOUR_ID", + * sheetId: "us_sh_YOUR_ID", + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * } + * } + */ +export interface ViewResponse { + data: Flatfile.View; +} diff --git a/src/api/resources/views/types/ViewUpdate.ts b/src/api/resources/views/types/ViewUpdate.ts new file mode 100644 index 00000000..bafc3527 --- /dev/null +++ b/src/api/resources/views/types/ViewUpdate.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Flatfile from "../../.."; + +/** + * @example + * { + * name: "My View", + * config: { + * filter: Flatfile.Filter.Error, + * filterField: "email", + * q: "firstname like %John%", + * sortField: "email", + * sortDirection: Flatfile.SortDirection.Asc + * } + * } + */ +export interface ViewUpdate { + name?: string; + config: Flatfile.ViewConfig; +} diff --git a/src/api/resources/views/types/index.ts b/src/api/resources/views/types/index.ts new file mode 100644 index 00000000..078b6518 --- /dev/null +++ b/src/api/resources/views/types/index.ts @@ -0,0 +1,6 @@ +export * from "./ViewConfig"; +export * from "./View"; +export * from "./ListViewsResponse"; +export * from "./ViewResponse"; +export * from "./ViewCreate"; +export * from "./ViewUpdate"; diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts index 9c3c8408..2b894209 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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "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.3", + "X-Fern-SDK-Version": "1.8.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/serialization/resources/commons/types/ViewId.ts b/src/serialization/resources/commons/types/ViewId.ts new file mode 100644 index 00000000..6d7b58d0 --- /dev/null +++ b/src/serialization/resources/commons/types/ViewId.ts @@ -0,0 +1,13 @@ +/** + * 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"; + +export const ViewId: core.serialization.Schema = core.serialization.string(); + +export declare namespace ViewId { + type Raw = string; +} diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts index baa887dd..c74eb675 100644 --- a/src/serialization/resources/commons/types/index.ts +++ b/src/serialization/resources/commons/types/index.ts @@ -23,6 +23,7 @@ export * from "./MappingId"; export * from "./ProgramId"; export * from "./FamilyId"; export * from "./PromptId"; +export * from "./ViewId"; export * from "./DataRetentionPolicyId"; export * from "./Pagination"; export * from "./PageSize"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 5843137a..19a6b2a2 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -52,6 +52,8 @@ export * as users from "./users"; export * from "./users/types"; export * as versions from "./versions"; export * from "./versions/types"; +export * as views from "./views"; +export * from "./views/types"; export * as workbooks from "./workbooks"; export * from "./workbooks/types"; export * from "./files/client/requests"; diff --git a/src/serialization/resources/views/index.ts b/src/serialization/resources/views/index.ts new file mode 100644 index 00000000..eea524d6 --- /dev/null +++ b/src/serialization/resources/views/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/serialization/resources/views/types/ListViewsResponse.ts b/src/serialization/resources/views/types/ListViewsResponse.ts new file mode 100644 index 00000000..39f51258 --- /dev/null +++ b/src/serialization/resources/views/types/ListViewsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 { Pagination } from "../../commons/types/Pagination"; +import { View } from "./View"; + +export const ListViewsResponse: core.serialization.ObjectSchema< + serializers.ListViewsResponse.Raw, + Flatfile.ListViewsResponse +> = core.serialization.object({ + pagination: Pagination.optional(), + data: core.serialization.list(View), +}); + +export declare namespace ListViewsResponse { + interface Raw { + pagination?: Pagination.Raw | null; + data: View.Raw[]; + } +} diff --git a/src/serialization/resources/views/types/View.ts b/src/serialization/resources/views/types/View.ts new file mode 100644 index 00000000..c387b7f1 --- /dev/null +++ b/src/serialization/resources/views/types/View.ts @@ -0,0 +1,26 @@ +/** + * 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 { ViewId } from "../../commons/types/ViewId"; +import { SheetId } from "../../commons/types/SheetId"; +import { ViewConfig } from "./ViewConfig"; + +export const View: core.serialization.ObjectSchema = core.serialization.object({ + id: ViewId, + sheetId: SheetId, + name: core.serialization.string(), + config: ViewConfig, +}); + +export declare namespace View { + interface Raw { + id: ViewId.Raw; + sheetId: SheetId.Raw; + name: string; + config: ViewConfig.Raw; + } +} diff --git a/src/serialization/resources/views/types/ViewConfig.ts b/src/serialization/resources/views/types/ViewConfig.ts new file mode 100644 index 00000000..809f5b91 --- /dev/null +++ b/src/serialization/resources/views/types/ViewConfig.ts @@ -0,0 +1,64 @@ +/** + * 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 { VersionId } from "../../commons/types/VersionId"; +import { CommitId } from "../../commons/types/CommitId"; +import { SortField } from "../../commons/types/SortField"; +import { SortDirection } from "../../commons/types/SortDirection"; +import { Filter } from "../../commons/types/Filter"; +import { FilterField } from "../../commons/types/FilterField"; +import { SearchValue } from "../../commons/types/SearchValue"; +import { SearchField } from "../../commons/types/SearchField"; +import { RecordId } from "../../commons/types/RecordId"; +import { EventId } from "../../commons/types/EventId"; + +export const ViewConfig: core.serialization.ObjectSchema = + core.serialization.object({ + versionId: VersionId.optional(), + commitId: CommitId.optional(), + sinceVersionId: VersionId.optional(), + sinceCommitId: CommitId.optional(), + sortField: SortField.optional(), + sortDirection: SortDirection.optional(), + filter: Filter.optional(), + filterField: FilterField.optional(), + searchValue: SearchValue.optional(), + searchField: SearchField.optional(), + ids: core.serialization.list(RecordId).optional(), + pageSize: core.serialization.number().optional(), + pageNumber: core.serialization.number().optional(), + includeCounts: core.serialization.boolean().optional(), + includeLength: core.serialization.boolean().optional(), + includeLinks: core.serialization.boolean().optional(), + includeMessages: core.serialization.boolean().optional(), + for: EventId.optional(), + q: core.serialization.string().optional(), + }); + +export declare namespace ViewConfig { + interface Raw { + versionId?: VersionId.Raw | null; + commitId?: CommitId.Raw | null; + sinceVersionId?: VersionId.Raw | null; + sinceCommitId?: CommitId.Raw | null; + sortField?: SortField.Raw | null; + sortDirection?: SortDirection.Raw | null; + filter?: Filter.Raw | null; + filterField?: FilterField.Raw | null; + searchValue?: SearchValue.Raw | null; + searchField?: SearchField.Raw | null; + ids?: RecordId.Raw[] | null; + pageSize?: number | null; + pageNumber?: number | null; + includeCounts?: boolean | null; + includeLength?: boolean | null; + includeLinks?: boolean | null; + includeMessages?: boolean | null; + for?: EventId.Raw | null; + q?: string | null; + } +} diff --git a/src/serialization/resources/views/types/ViewCreate.ts b/src/serialization/resources/views/types/ViewCreate.ts new file mode 100644 index 00000000..d2a3e213 --- /dev/null +++ b/src/serialization/resources/views/types/ViewCreate.ts @@ -0,0 +1,24 @@ +/** + * 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 { SheetId } from "../../commons/types/SheetId"; +import { ViewConfig } from "./ViewConfig"; + +export const ViewCreate: core.serialization.ObjectSchema = + core.serialization.object({ + sheetId: SheetId, + name: core.serialization.string(), + config: ViewConfig, + }); + +export declare namespace ViewCreate { + interface Raw { + sheetId: SheetId.Raw; + name: string; + config: ViewConfig.Raw; + } +} diff --git a/src/serialization/resources/views/types/ViewResponse.ts b/src/serialization/resources/views/types/ViewResponse.ts new file mode 100644 index 00000000..c209f95c --- /dev/null +++ b/src/serialization/resources/views/types/ViewResponse.ts @@ -0,0 +1,19 @@ +/** + * 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 { View } from "./View"; + +export const ViewResponse: core.serialization.ObjectSchema = + core.serialization.object({ + data: View, + }); + +export declare namespace ViewResponse { + interface Raw { + data: View.Raw; + } +} diff --git a/src/serialization/resources/views/types/ViewUpdate.ts b/src/serialization/resources/views/types/ViewUpdate.ts new file mode 100644 index 00000000..1c248453 --- /dev/null +++ b/src/serialization/resources/views/types/ViewUpdate.ts @@ -0,0 +1,21 @@ +/** + * 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 { ViewConfig } from "./ViewConfig"; + +export const ViewUpdate: core.serialization.ObjectSchema = + core.serialization.object({ + name: core.serialization.string().optional(), + config: ViewConfig, + }); + +export declare namespace ViewUpdate { + interface Raw { + name?: string | null; + config: ViewConfig.Raw; + } +} diff --git a/src/serialization/resources/views/types/index.ts b/src/serialization/resources/views/types/index.ts new file mode 100644 index 00000000..078b6518 --- /dev/null +++ b/src/serialization/resources/views/types/index.ts @@ -0,0 +1,6 @@ +export * from "./ViewConfig"; +export * from "./View"; +export * from "./ListViewsResponse"; +export * from "./ViewResponse"; +export * from "./ViewCreate"; +export * from "./ViewUpdate";