Skip to content

Commit

Permalink
Release 1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 9, 2024
1 parent ca1a8c8 commit 85a73d6
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 14 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.3.5",
"version": "1.3.6",
"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 @@ -598,7 +598,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
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 @@ -583,7 +583,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
contentType: "application/json",
body: await serializers.Business.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -656,7 +656,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
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 @@ -505,7 +505,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
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 @@ -499,7 +499,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
contentType: "application/json",
body: await serializers.User.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -569,7 +569,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
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 @@ -98,7 +98,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
contentType: "application/json",
body: await serializers.TransactionEvent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -171,7 +171,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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
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.3.5",
"X-Fern-SDK-Version": "1.3.6",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
10 changes: 10 additions & 0 deletions src/api/types/CaseOpenedDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface CaseOpenedDetails {
caseId?: string;
status?: string;
userId?: string;
transactionIds?: string[];
}
1 change: 1 addition & 0 deletions src/api/types/WebhookEventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as Flagright from "..";
export type WebhookEventData =
| Flagright.UserStateDetails
| Flagright.CaseClosedDetails
| Flagright.CaseOpenedDetails
| Flagright.AlertClosedDetails
| Flagright.TransactionStatusDetails
| Flagright.KycStatusDetails;
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export * from "./PepStatus";
export * from "./KycStatusDetails";
export * from "./UserStateDetails";
export * from "./CaseClosedDetails";
export * from "./CaseOpenedDetails";
export * from "./AlertClosedDetails";
export * from "./TransactionStatusDetails";
export * from "./RiskLevel";
Expand Down
26 changes: 26 additions & 0 deletions src/serialization/types/CaseOpenedDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* 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 CaseOpenedDetails: core.serialization.ObjectSchema<
serializers.CaseOpenedDetails.Raw,
Flagright.CaseOpenedDetails
> = core.serialization.object({
caseId: core.serialization.string().optional(),
status: core.serialization.string().optional(),
userId: core.serialization.string().optional(),
transactionIds: core.serialization.list(core.serialization.string()).optional(),
});

export declare namespace CaseOpenedDetails {
interface Raw {
caseId?: string | null;
status?: string | null;
userId?: string | null;
transactionIds?: string[] | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/WebhookEventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const WebhookEventData: core.serialization.Schema<serializers.WebhookEven
core.serialization.undiscriminatedUnion([
core.serialization.lazyObject(async () => (await import("..")).UserStateDetails),
core.serialization.lazyObject(async () => (await import("..")).CaseClosedDetails),
core.serialization.lazyObject(async () => (await import("..")).CaseOpenedDetails),
core.serialization.lazyObject(async () => (await import("..")).AlertClosedDetails),
core.serialization.lazyObject(async () => (await import("..")).TransactionStatusDetails),
core.serialization.lazyObject(async () => (await import("..")).KycStatusDetails),
Expand All @@ -19,6 +20,7 @@ export declare namespace WebhookEventData {
type Raw =
| serializers.UserStateDetails.Raw
| serializers.CaseClosedDetails.Raw
| serializers.CaseOpenedDetails.Raw
| serializers.AlertClosedDetails.Raw
| serializers.TransactionStatusDetails.Raw
| serializers.KycStatusDetails.Raw;
Expand Down
1 change: 1 addition & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export * from "./PepStatus";
export * from "./KycStatusDetails";
export * from "./UserStateDetails";
export * from "./CaseClosedDetails";
export * from "./CaseOpenedDetails";
export * from "./AlertClosedDetails";
export * from "./TransactionStatusDetails";
export * from "./RiskLevel";
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
form-data "^4.0.0"

"@types/node@*":
version "20.11.16"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.16.tgz#4411f79411514eb8e2926f036c86c9f0e4ec6708"
integrity sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ==
version "20.11.17"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.17.tgz#cdd642d0e62ef3a861f88ddbc2b61e32578a9292"
integrity sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==
dependencies:
undici-types "~5.26.4"

Expand Down

0 comments on commit 85a73d6

Please sign in to comment.