Skip to content

Commit

Permalink
Release 1.5.25
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 13, 2023
1 parent 880d222 commit d752fdb
Show file tree
Hide file tree
Showing 86 changed files with 1,020 additions and 351 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flatfile/api",
"version": "1.5.24",
"version": "1.5.25",
"private": false,
"repository": "https://github.com/FlatFilers/flatfile-node",
"main": "./index.js",
Expand Down
23 changes: 14 additions & 9 deletions src/api/resources/agents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -103,7 +103,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -178,7 +178,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -262,7 +262,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -330,10 +330,15 @@ export class Agents {
public async getEnvironmentAgentLogs(
request: Flatfile.GetEnvironmentAgentLogsRequest,
requestOptions?: Agents.RequestOptions
): Promise<Flatfile.GetAgentLogsResponse> {
const { environmentId, pageSize, pageNumber } = request;
): Promise<Flatfile.GetDetailedAgentLogsResponse> {
const { environmentId, spaceId, success, pageSize, pageNumber } = request;
const _queryParams = new URLSearchParams();
_queryParams.append("environmentId", environmentId);
_queryParams.append("spaceId", spaceId);
if (success != null) {
_queryParams.append("success", success.toString());
}

if (pageSize != null) {
_queryParams.append("pageSize", pageSize.toString());
}
Expand All @@ -353,14 +358,14 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
});
if (_response.ok) {
return await serializers.GetAgentLogsResponse.parseOrThrow(_response.body, {
return await serializers.GetDetailedAgentLogsResponse.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
Expand Down Expand Up @@ -431,7 +436,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import * as Flatfile from "../../../..";

export interface GetEnvironmentAgentLogsRequest {
environmentId: Flatfile.EnvironmentId;
spaceId: Flatfile.SpaceId;
success?: boolean;
/**
* Number of logs to return in a page (default 20)
*/
Expand Down
36 changes: 36 additions & 0 deletions src/api/resources/agents/types/DetailedAgentLog.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flatfile from "../../..";

/**
* A log of an agent execution
*
* @example
* {
* eventId: "us_evt_9cuesESa7W9cuesE",
* success: true,
* createdAt: new Date("2022-09-18T00:19:57.007Z"),
* completedAt: new Date("2022-09-18T00:20:04.007Z"),
* duration: 500,
* topic: "space:created",
* context: {},
* log: "SUCCESS"
* }
*/
export interface DetailedAgentLog {
eventId: Flatfile.EventId;
/** Whether the agent execution was successful */
success: boolean;
createdAt: Date;
completedAt: Date;
/** The duration of the agent execution */
duration: number;
/** The topics of the agent execution */
topic: string;
/** The context of the agent execution */
context: Record<string, any>;
/** The log of the agent execution */
log?: string;
}
30 changes: 30 additions & 0 deletions src/api/resources/agents/types/GetDetailedAgentLogsResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flatfile from "../../..";

/**
* @example
* {
* pagination: {
* currentPage: 3,
* pageCount: 50,
* totalCount: 100
* },
* data: [{
* eventId: "us_evt_9cuesESa7W9cuesE",
* success: true,
* createdAt: new Date("2022-09-18T00:19:57.007Z"),
* completedAt: new Date("2022-09-18T00:20:04.007Z"),
* duration: 500,
* topic: "space:created",
* context: {},
* log: "SUCCESS"
* }]
* }
*/
export interface GetDetailedAgentLogsResponse {
pagination?: Flatfile.Pagination;
data: Flatfile.DetailedAgentLog[];
}
2 changes: 2 additions & 0 deletions src/api/resources/agents/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ export * from "./AgentConfig";
export * from "./Agent";
export * from "./Compiler";
export * from "./GetAgentLogsResponse";
export * from "./GetDetailedAgentLogsResponse";
export * from "./AgentLog";
export * from "./DetailedAgentLog";
6 changes: 3 additions & 3 deletions src/api/resources/auth/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Auth {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -132,7 +132,7 @@ export class Auth {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -216,7 +216,7 @@ export class Auth {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/cells/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Cells {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/commons/types/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export interface Action {
icon?: string;
requireAllValid?: boolean;
requireSelection?: boolean;
inputForm?: Record<string, any>;
}
10 changes: 5 additions & 5 deletions src/api/resources/documents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Documents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -126,7 +126,7 @@ export class Documents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
body: await serializers.DocumentConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -210,7 +210,7 @@ export class Documents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -294,7 +294,7 @@ export class Documents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
body: await serializers.DocumentConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -378,7 +378,7 @@ export class Documents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/environments/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Environments {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -110,7 +110,7 @@ export class Environments {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
body: await serializers.EnvironmentConfigCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -171,7 +171,7 @@ export class Environments {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -252,7 +252,7 @@ export class Environments {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -331,7 +331,7 @@ export class Environments {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
body: await serializers.EnvironmentConfigUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -389,7 +389,7 @@ export class Environments {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/events/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class Events {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -135,7 +135,7 @@ export class Events {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
body: await serializers.CreateEventConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -211,7 +211,7 @@ export class Events {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -260,7 +260,7 @@ export class Events {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -327,7 +327,7 @@ export class Events {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.24",
"X-Fern-SDK-Version": "1.5.25",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
Loading

0 comments on commit d752fdb

Please sign in to comment.