Skip to content

Commit

Permalink
Release 1.5.23
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 5, 2023
1 parent fb17e34 commit 1b211d6
Show file tree
Hide file tree
Showing 142 changed files with 1,104 additions and 1,291 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.22",
"version": "1.5.23",
"private": false,
"repository": "https://github.com/FlatFilers/flatfile-node",
"main": "./index.js",
Expand Down
12 changes: 6 additions & 6 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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -353,7 +353,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -431,7 +431,7 @@ export class Agents {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 2 additions & 0 deletions src/api/resources/commons/types/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ export interface Action {
operation?: string;
mode?: Flatfile.ActionMode;
label: string;
tooltip?: string;
type?: string;
description?: string;
schedule?: Flatfile.ActionSchedule;
primary?: boolean;
confirm?: boolean;
icon?: string;
requireAllValid?: boolean;
requireSelection?: boolean;
}
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/environments/types/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export interface Environment {
guestAuthentication: Flatfile.GuestAuthenticationEnum[];
features: Record<string, any>;
metadata: Record<string, any>;
translationsPath?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface EnvironmentConfigCreate {
isProd: boolean;
guestAuthentication?: Flatfile.GuestAuthenticationEnum[];
metadata?: Record<string, any>;
translationPath?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface EnvironmentConfigUpdate {
isProd?: boolean;
guestAuthentication?: Flatfile.GuestAuthenticationEnum[];
metadata?: Record<string, any>;
translationPath?: string;
}
23 changes: 13 additions & 10 deletions src/api/resources/events/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ export class Events {
* Event topics that the Flatfile Platform emits.
*/
public async list(
request: Flatfile.ListEventsRequest,
request: Flatfile.ListEventsRequest = {},
requestOptions?: Events.RequestOptions
): Promise<Flatfile.ListAllEventsResponse> {
const { environmentId, spaceId, domain, topic, since, pageSize, pageNumber, includeAcknowledged } = request;
const _queryParams = new URLSearchParams();
_queryParams.append("environmentId", environmentId);
if (environmentId != null) {
_queryParams.append("environmentId", environmentId);
}

if (spaceId != null) {
_queryParams.append("spaceId", spaceId);
}
Expand All @@ -49,7 +52,7 @@ export class Events {
}

if (since != null) {
_queryParams.append("since", since);
_queryParams.append("since", since.toISOString());
}

if (pageSize != null) {
Expand All @@ -75,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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -118,7 +121,7 @@ export class Events {
* @throws {@link Flatfile.NotFoundError}
*/
public async create(
request: Flatfile.Event,
request: Flatfile.CreateEventConfig,
requestOptions?: Events.RequestOptions
): Promise<Flatfile.EventResponse> {
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand All @@ -132,10 +135,10 @@ export class Events {
"X-Disable-Hooks": "true",
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@flatfile/api",
"X-Fern-SDK-Version": "1.5.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
body: await serializers.Event.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
body: await serializers.CreateEventConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
});
if (_response.ok) {
Expand Down Expand Up @@ -208,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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -257,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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -324,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.22",
"X-Fern-SDK-Version": "1.5.23",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
16 changes: 11 additions & 5 deletions src/api/resources/events/client/requests/ListEventsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
import * as Flatfile from "../../../..";

export interface ListEventsRequest {
environmentId: Flatfile.EnvironmentId;
spaceId?: string;
/**
* Filter by environment
*/
environmentId?: Flatfile.EnvironmentId;
/**
* Filter by space
*/
spaceId?: Flatfile.SpaceId;
/**
* Filter by event domain
*/
Expand All @@ -18,13 +24,13 @@ export interface ListEventsRequest {
/**
* Filter by event timestamp
*/
since?: string;
since?: Date;
/**
* Number of tokens to return in a page (default 10)
* Number of results to return in a page (default 10)
*/
pageSize?: number;
/**
* Based on pageSize, which page of records to return
* Based on pageSize, which page of results to return
*/
pageNumber?: number;
/**
Expand Down
10 changes: 0 additions & 10 deletions src/api/resources/events/types/BaseEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import * as Flatfile from "../../..";

export interface BaseEvent {
id: Flatfile.EventId;
/** The domain of the event */
domain: Flatfile.Domain;
topic: Flatfile.EventTopic;
/** The context of the event */
context: Flatfile.Context;
/** The attributes of the event */
Expand All @@ -17,14 +15,6 @@ export interface BaseEvent {
callbackUrl?: string;
/** The url to retrieve the data associated with the event */
dataUrl?: string;
/** Date the event was created */
createdAt: Date;
/** Date the event was deleted */
deletedAt?: Date;
/** Date the event was acknowledged */
acknowledgedAt?: Date;
/** The actor (user or system) who acknowledged the event */
acknowledgedBy?: string;
target?: string;
origin?: Flatfile.Origin;
namespaces?: string[];
Expand Down
9 changes: 0 additions & 9 deletions src/api/resources/events/types/ClientInitializedEvent.ts

This file was deleted.

Loading

0 comments on commit 1b211d6

Please sign in to comment.