Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Nov 21, 2023
1 parent 4e4eef9 commit 827c750
Show file tree
Hide file tree
Showing 21 changed files with 93 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.0.7",
"version": "1.1.0",
"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 @@ -69,7 +69,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
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 @@ -56,7 +56,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
contentType: "application/json",
body: await serializers.Business.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -125,7 +125,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
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 @@ -69,7 +69,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
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 @@ -55,7 +55,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
contentType: "application/json",
body: await serializers.User.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -121,7 +121,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
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 @@ -63,7 +63,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
contentType: "application/json",
body: await serializers.TransactionEvent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -133,7 +133,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
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 @@ -74,7 +74,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -144,7 +144,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.0.7",
"X-Fern-SDK-Version": "1.1.0",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
10 changes: 10 additions & 0 deletions src/api/types/CaseSubjectType.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 type CaseSubjectType = "USER" | "PAYMENT";

export const CaseSubjectType = {
User: "USER",
Payment: "PAYMENT",
} as const;
8 changes: 8 additions & 0 deletions src/api/types/CurrencyCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export type CurrencyCode =
| "CVX"
| "CZK"
| "DAI"
| "DIF"
| "LSR"
| "SRC"
| "BRB"
| "DASH"
| "DCR"
| "DFI"
Expand Down Expand Up @@ -338,6 +342,10 @@ export const CurrencyCode = {
Cvx: "CVX",
Czk: "CZK",
Dai: "DAI",
Dif: "DIF",
Lsr: "LSR",
Src: "SRC",
Brb: "BRB",
Dash: "DASH",
Dcr: "DCR",
Dfi: "DFI",
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/RuleHitMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import * as Flagright from "..";
* Details of rule execution, for internal purposes only
*/
export interface RuleHitMeta {
subjectType?: Flagright.CaseSubjectType;
createCaseFor?: Flagright.CaseSubjectType;
hitDirections?: Flagright.RuleHitDirection[];
falsePositiveDetails?: Flagright.FalsePositiveDetails;
sanctionsDetails?: Flagright.SanctionsDetails[];
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/TransactionBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as Flagright from "..";
* Model for transaction base Payload
*/
export interface TransactionBase {
type_?: Flagright.TransactionType;
type_: Flagright.TransactionType;
/** Unique transaction identifier <span style="white-space: nowrap">`non-empty`</span> */
transactionId: string;
/** Timestamp of when transaction took place */
Expand Down
1 change: 1 addition & 0 deletions src/api/types/WebhookEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as Flagright from "..";
export interface WebhookEvent {
id: string;
type_: Flagright.WebhookEventType;
triggeredBy?: Flagright.WebhookEventTriggeredBy;
data: Flagright.WebhookEventData;
createdTimestamp: number;
}
10 changes: 10 additions & 0 deletions src/api/types/WebhookEventTriggeredBy.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 type WebhookEventTriggeredBy = "MANUAL" | "SYSTEM";

export const WebhookEventTriggeredBy = {
Manual: "MANUAL",
System: "SYSTEM",
} as const;
2 changes: 2 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export * from "./TransactionLimitsPaymentMethodLimits";
export * from "./RuleAction";
export * from "./RuleHitMeta";
export * from "./RuleHitDirection";
export * from "./CaseSubjectType";
export * from "./RuleNature";
export * from "./RuleLabels";
export * from "./CaseManagementEvent";
Expand Down Expand Up @@ -90,6 +91,7 @@ export * from "./RiskLevel";
export * from "./CardExpiry";
export * from "./TransactionType";
export * from "./WebhookEvent";
export * from "./WebhookEventTriggeredBy";
export * from "./WebhookEventData";
export * from "./WebhookEventType";
export * from "./ListType";
Expand Down
14 changes: 14 additions & 0 deletions src/serialization/types/CaseSubjectType.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 serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const CaseSubjectType: core.serialization.Schema<serializers.CaseSubjectType.Raw, Flagright.CaseSubjectType> =
core.serialization.enum_(["USER", "PAYMENT"]);

export declare namespace CaseSubjectType {
type Raw = "USER" | "PAYMENT";
}
8 changes: 8 additions & 0 deletions src/serialization/types/CurrencyCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export const CurrencyCode: core.serialization.Schema<serializers.CurrencyCode.Ra
"CVX",
"CZK",
"DAI",
"DIF",
"LSR",
"SRC",
"BRB",
"DASH",
"DCR",
"DFI",
Expand Down Expand Up @@ -345,6 +349,10 @@ export declare namespace CurrencyCode {
| "CVX"
| "CZK"
| "DAI"
| "DIF"
| "LSR"
| "SRC"
| "BRB"
| "DASH"
| "DCR"
| "DFI"
Expand Down
4 changes: 4 additions & 0 deletions src/serialization/types/RuleHitMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import * as core from "../../core";

export const RuleHitMeta: core.serialization.ObjectSchema<serializers.RuleHitMeta.Raw, Flagright.RuleHitMeta> =
core.serialization.object({
subjectType: core.serialization.lazy(async () => (await import("..")).CaseSubjectType).optional(),
createCaseFor: core.serialization.lazy(async () => (await import("..")).CaseSubjectType).optional(),
hitDirections: core.serialization
.list(core.serialization.lazy(async () => (await import("..")).RuleHitDirection))
.optional(),
Expand All @@ -21,6 +23,8 @@ export const RuleHitMeta: core.serialization.ObjectSchema<serializers.RuleHitMet

export declare namespace RuleHitMeta {
interface Raw {
subjectType?: serializers.CaseSubjectType.Raw | null;
createCaseFor?: serializers.CaseSubjectType.Raw | null;
hitDirections?: serializers.RuleHitDirection.Raw[] | null;
falsePositiveDetails?: serializers.FalsePositiveDetails.Raw | null;
sanctionsDetails?: serializers.SanctionsDetails.Raw[] | null;
Expand Down
4 changes: 2 additions & 2 deletions src/serialization/types/TransactionBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const TransactionBase: core.serialization.ObjectSchema<
> = core.serialization.object({
type_: core.serialization.property(
"type",
core.serialization.lazy(async () => (await import("..")).TransactionType).optional()
core.serialization.lazy(async () => (await import("..")).TransactionType)
),
transactionId: core.serialization.string(),
timestamp: core.serialization.number(),
Expand All @@ -22,7 +22,7 @@ export const TransactionBase: core.serialization.ObjectSchema<

export declare namespace TransactionBase {
interface Raw {
type?: serializers.TransactionType.Raw | null;
type: serializers.TransactionType.Raw;
transactionId: string;
timestamp: number;
originUserId?: string | null;
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/WebhookEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const WebhookEvent: core.serialization.ObjectSchema<serializers.WebhookEv
"type",
core.serialization.lazy(async () => (await import("..")).WebhookEventType)
),
triggeredBy: core.serialization.lazy(async () => (await import("..")).WebhookEventTriggeredBy).optional(),
data: core.serialization.lazy(async () => (await import("..")).WebhookEventData),
createdTimestamp: core.serialization.number(),
});
Expand All @@ -21,6 +22,7 @@ export declare namespace WebhookEvent {
interface Raw {
id: string;
type: serializers.WebhookEventType.Raw;
triggeredBy?: serializers.WebhookEventTriggeredBy.Raw | null;
data: serializers.WebhookEventData.Raw;
createdTimestamp: number;
}
Expand Down
16 changes: 16 additions & 0 deletions src/serialization/types/WebhookEventTriggeredBy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* 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 WebhookEventTriggeredBy: core.serialization.Schema<
serializers.WebhookEventTriggeredBy.Raw,
Flagright.WebhookEventTriggeredBy
> = core.serialization.enum_(["MANUAL", "SYSTEM"]);

export declare namespace WebhookEventTriggeredBy {
type Raw = "MANUAL" | "SYSTEM";
}
2 changes: 2 additions & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export * from "./TransactionLimitsPaymentMethodLimits";
export * from "./RuleAction";
export * from "./RuleHitMeta";
export * from "./RuleHitDirection";
export * from "./CaseSubjectType";
export * from "./RuleNature";
export * from "./RuleLabels";
export * from "./CaseManagementEvent";
Expand Down Expand Up @@ -90,6 +91,7 @@ export * from "./RiskLevel";
export * from "./CardExpiry";
export * from "./TransactionType";
export * from "./WebhookEvent";
export * from "./WebhookEventTriggeredBy";
export * from "./WebhookEventData";
export * from "./WebhookEventType";
export * from "./ListType";
Expand Down

0 comments on commit 827c750

Please sign in to comment.