Skip to content

Commit

Permalink
Release 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 26, 2024
1 parent c8f42f7 commit 3b0997d
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagright",
"version": "1.4.4",
"version": "1.4.5",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/businessUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
body: await serializers.Business.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -374,7 +374,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/consumerUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
body: await serializers.User.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -243,7 +243,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactionEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
body: await serializers.TransactionEvent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -199,7 +199,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -206,7 +206,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.4.4",
"X-Fern-SDK-Version": "1.4.5",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/WebhookEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as Flagright from "..";

export interface WebhookEvent extends Flagright.WebhookEvent {
export interface WebhookEvent extends Flagright.WebhookEventBase {
type: Flagright.WebhookEventType;
data: Flagright.WebhookEventData;
}
14 changes: 14 additions & 0 deletions src/api/types/WebhookEventBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "..";

export interface WebhookEventBase {
/** Unique identifier for the event */
id: string;
/** Event triggered by a user or system */
triggeredBy: Flagright.WebhookEventBaseTriggeredBy;
/** Time at which the event was created. Measured in ms since the Unix epoch. */
createdTimestamp: number;
}
3 changes: 2 additions & 1 deletion src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ export * from "./RiskLevel";
export * from "./CardExpiry";
export * from "./TransactionType";
export * from "./WebhookEventBaseTriggeredBy";
export * from "./WebhookEvent";
export * from "./WebhookEventBase";
export * from "./WebhookEventData";
export * from "./WebhookEvent";
export * from "./WebhookEventType";
export * from "./ListType";
export * from "./ListSubtype";
Expand Down
4 changes: 2 additions & 2 deletions src/serialization/types/WebhookEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export const WebhookEvent: core.serialization.ObjectSchema<serializers.WebhookEv
type: core.serialization.lazy(async () => (await import("..")).WebhookEventType),
data: core.serialization.lazy(async () => (await import("..")).WebhookEventData),
})
.extend(core.serialization.lazyObject(async () => (await import("..")).WebhookEvent));
.extend(core.serialization.lazyObject(async () => (await import("..")).WebhookEventBase));

export declare namespace WebhookEvent {
interface Raw extends serializers.WebhookEvent.Raw {
interface Raw extends serializers.WebhookEventBase.Raw {
type: serializers.WebhookEventType.Raw;
data: serializers.WebhookEventData.Raw;
}
Expand Down
24 changes: 24 additions & 0 deletions src/serialization/types/WebhookEventBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const WebhookEventBase: core.serialization.ObjectSchema<
serializers.WebhookEventBase.Raw,
Flagright.WebhookEventBase
> = core.serialization.object({
id: core.serialization.string(),
triggeredBy: core.serialization.lazy(async () => (await import("..")).WebhookEventBaseTriggeredBy),
createdTimestamp: core.serialization.number(),
});

export declare namespace WebhookEventBase {
interface Raw {
id: string;
triggeredBy: serializers.WebhookEventBaseTriggeredBy.Raw;
createdTimestamp: number;
}
}
3 changes: 2 additions & 1 deletion src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ export * from "./RiskLevel";
export * from "./CardExpiry";
export * from "./TransactionType";
export * from "./WebhookEventBaseTriggeredBy";
export * from "./WebhookEvent";
export * from "./WebhookEventBase";
export * from "./WebhookEventData";
export * from "./WebhookEvent";
export * from "./WebhookEventType";
export * from "./ListType";
export * from "./ListSubtype";
Expand Down

0 comments on commit 3b0997d

Please sign in to comment.