Skip to content

Commit

Permalink
Release 1.6.34
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 8, 2024
1 parent d6a37f4 commit d349ff9
Show file tree
Hide file tree
Showing 23 changed files with 82 additions and 29 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.6.33",
"version": "1.6.34",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/batch/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -164,7 +164,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -273,7 +273,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -378,7 +378,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -476,7 +476,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -576,7 +576,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -188,7 +188,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -78,7 +78,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -177,7 +177,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down 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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -111,7 +111,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -210,7 +210,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -80,7 +80,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -178,7 +178,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -127,7 +127,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -226,7 +226,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.6.33",
"X-Fern-SDK-Version": "1.6.34",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/CompanyGeneralDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export interface CompanyGeneralDetails {
/** Segmentation of the business user */
userSegment?: Flagright.BusinessUserSegment;
userRegistrationStatus?: Flagright.UserRegistrationStatus;
/** Alias names of the business entity */
alias?: string[];
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
}
1 change: 1 addition & 0 deletions src/api/types/CompanyRegistrationDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface CompanyRegistrationDetails {
/** Commercial registry registration number for the company in its registration country */
registrationIdentifier: string;
registrationCountry: Flagright.CountryCode;
taxResidenceCountry?: Flagright.CountryCode;
/** Tax ID number of the registered entity */
taxIdentifier?: string;
/** Type of legal entity, e.g., Limited Liability */
Expand Down
8 changes: 8 additions & 0 deletions src/api/types/CraRiskLevelUpdatedDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface CraRiskLevelUpdatedDetails {
riskLevel?: string;
userId?: string;
}
3 changes: 3 additions & 0 deletions src/api/types/UserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ export interface UserDetails {
/** Internal category of the user */
userCategory?: string;
countryOfResidence?: Flagright.CountryCode;
countryOfTaxResidence?: Flagright.CountryCode;
countryOfNationality?: Flagright.CountryCode;
gender?: Flagright.Gender;
maritalStatus?: Flagright.MaritalStatus;
placeOfBirth?: Flagright.PlaceOfBirth;
/** Alias names of the user */
alias?: string[];
}
3 changes: 2 additions & 1 deletion src/api/types/WebhookEventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export type WebhookEventData =
| Flagright.AlertOpenedDetails
| Flagright.TransactionStatusDetails
| Flagright.KycStatusDetails
| Flagright.UserTagsUpdate;
| Flagright.UserTagsUpdate
| Flagright.CraRiskLevelUpdatedDetails;
4 changes: 3 additions & 1 deletion src/api/types/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export type WebhookEventType =
| "KYC_STATUS_UPDATED"
| "CASE_OPENED"
| "ALERT_OPENED"
| "USER_TAGS_UPDATED";
| "USER_TAGS_UPDATED"
| "CRA_RISK_LEVEL_UPDATED";

export const WebhookEventType = {
CaseClosed: "CASE_CLOSED",
Expand All @@ -21,4 +22,5 @@ export const WebhookEventType = {
CaseOpened: "CASE_OPENED",
AlertOpened: "ALERT_OPENED",
UserTagsUpdated: "USER_TAGS_UPDATED",
CraRiskLevelUpdated: "CRA_RISK_LEVEL_UPDATED",
} as const;
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export * from "./PosEntryMode";
export * from "./TransactionType";
export * from "./WebhookEventBaseTriggeredBy";
export * from "./WebhookEventBase";
export * from "./CraRiskLevelUpdatedDetails";
export * from "./WebhookEventTriggeredBy";
export * from "./WebhookEventData";
export * from "./WebhookEvent";
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/CompanyGeneralDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const CompanyGeneralDetails: core.serialization.ObjectSchema<
mainProductsServicesSold: core.serialization.list(core.serialization.string()).optional(),
userSegment: core.serialization.lazy(async () => (await import("..")).BusinessUserSegment).optional(),
userRegistrationStatus: core.serialization.lazy(async () => (await import("..")).UserRegistrationStatus).optional(),
alias: core.serialization.list(core.serialization.string()).optional(),
tags: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Tag)).optional(),
});

Expand All @@ -25,6 +26,7 @@ export declare namespace CompanyGeneralDetails {
mainProductsServicesSold?: string[] | null;
userSegment?: serializers.BusinessUserSegment.Raw | null;
userRegistrationStatus?: serializers.UserRegistrationStatus.Raw | null;
alias?: string[] | null;
tags?: serializers.Tag.Raw[] | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/CompanyRegistrationDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const CompanyRegistrationDetails: core.serialization.ObjectSchema<
> = core.serialization.object({
registrationIdentifier: core.serialization.string(),
registrationCountry: core.serialization.lazy(async () => (await import("..")).CountryCode),
taxResidenceCountry: core.serialization.lazy(async () => (await import("..")).CountryCode).optional(),
taxIdentifier: core.serialization.string().optional(),
legalEntityType: core.serialization.string().optional(),
dateOfRegistration: core.serialization.string().optional(),
Expand All @@ -22,6 +23,7 @@ export declare namespace CompanyRegistrationDetails {
interface Raw {
registrationIdentifier: string;
registrationCountry: serializers.CountryCode.Raw;
taxResidenceCountry?: serializers.CountryCode.Raw | null;
taxIdentifier?: string | null;
legalEntityType?: string | null;
dateOfRegistration?: string | null;
Expand Down
22 changes: 22 additions & 0 deletions src/serialization/types/CraRiskLevelUpdatedDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* 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 CraRiskLevelUpdatedDetails: core.serialization.ObjectSchema<
serializers.CraRiskLevelUpdatedDetails.Raw,
Flagright.CraRiskLevelUpdatedDetails
> = core.serialization.object({
riskLevel: core.serialization.string().optional(),
userId: core.serialization.string().optional(),
});

export declare namespace CraRiskLevelUpdatedDetails {
interface Raw {
riskLevel?: string | null;
userId?: string | null;
}
}
4 changes: 4 additions & 0 deletions src/serialization/types/UserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ export const UserDetails: core.serialization.ObjectSchema<serializers.UserDetail
dateOfBirth: core.serialization.string().optional(),
userCategory: core.serialization.string().optional(),
countryOfResidence: core.serialization.lazy(async () => (await import("..")).CountryCode).optional(),
countryOfTaxResidence: core.serialization.lazy(async () => (await import("..")).CountryCode).optional(),
countryOfNationality: core.serialization.lazy(async () => (await import("..")).CountryCode).optional(),
gender: core.serialization.lazy(async () => (await import("..")).Gender).optional(),
maritalStatus: core.serialization.lazy(async () => (await import("..")).MaritalStatus).optional(),
placeOfBirth: core.serialization.lazyObject(async () => (await import("..")).PlaceOfBirth).optional(),
alias: core.serialization.list(core.serialization.string()).optional(),
});

export declare namespace UserDetails {
Expand All @@ -24,9 +26,11 @@ export declare namespace UserDetails {
dateOfBirth?: string | null;
userCategory?: string | null;
countryOfResidence?: serializers.CountryCode.Raw | null;
countryOfTaxResidence?: serializers.CountryCode.Raw | null;
countryOfNationality?: serializers.CountryCode.Raw | null;
gender?: serializers.Gender.Raw | null;
maritalStatus?: serializers.MaritalStatus.Raw | null;
placeOfBirth?: serializers.PlaceOfBirth.Raw | null;
alias?: string[] | null;
}
}
4 changes: 3 additions & 1 deletion src/serialization/types/WebhookEventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const WebhookEventData: core.serialization.Schema<serializers.WebhookEven
core.serialization.lazyObject(async () => (await import("..")).TransactionStatusDetails),
core.serialization.lazyObject(async () => (await import("..")).KycStatusDetails),
core.serialization.lazyObject(async () => (await import("..")).UserTagsUpdate),
core.serialization.lazyObject(async () => (await import("..")).CraRiskLevelUpdatedDetails),
]);

export declare namespace WebhookEventData {
Expand All @@ -27,5 +28,6 @@ export declare namespace WebhookEventData {
| serializers.AlertOpenedDetails.Raw
| serializers.TransactionStatusDetails.Raw
| serializers.KycStatusDetails.Raw
| serializers.UserTagsUpdate.Raw;
| serializers.UserTagsUpdate.Raw
| serializers.CraRiskLevelUpdatedDetails.Raw;
}
4 changes: 3 additions & 1 deletion src/serialization/types/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const WebhookEventType: core.serialization.Schema<serializers.WebhookEven
"CASE_OPENED",
"ALERT_OPENED",
"USER_TAGS_UPDATED",
"CRA_RISK_LEVEL_UPDATED",
]);

export declare namespace WebhookEventType {
Expand All @@ -27,5 +28,6 @@ export declare namespace WebhookEventType {
| "KYC_STATUS_UPDATED"
| "CASE_OPENED"
| "ALERT_OPENED"
| "USER_TAGS_UPDATED";
| "USER_TAGS_UPDATED"
| "CRA_RISK_LEVEL_UPDATED";
}
1 change: 1 addition & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export * from "./PosEntryMode";
export * from "./TransactionType";
export * from "./WebhookEventBaseTriggeredBy";
export * from "./WebhookEventBase";
export * from "./CraRiskLevelUpdatedDetails";
export * from "./WebhookEventTriggeredBy";
export * from "./WebhookEventData";
export * from "./WebhookEvent";
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@
form-data "^4.0.0"

"@types/node@*":
version "22.7.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.4.tgz#e35d6f48dca3255ce44256ddc05dee1c23353fcc"
integrity sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg==
version "22.7.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.5.tgz#cfde981727a7ab3611a481510b473ae54442b92b"
integrity sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==
dependencies:
undici-types "~6.19.2"

Expand Down Expand Up @@ -1033,9 +1033,9 @@ ejs@^3.1.10:
jake "^10.8.5"

electron-to-chromium@^1.5.28:
version "1.5.32"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.32.tgz#4a05ee78e29e240aabaf73a67ce9fe73f52e1bc7"
integrity sha512-M+7ph0VGBQqqpTT2YrabjNKSQ2fEl9PVx6AK3N558gDH9NO8O6XN9SXXFWRo9u9PbEg/bWq+tjXQr+eXmxubCw==
version "1.5.33"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.33.tgz#8f64698661240e70fdbc4b032e6085e391f05e09"
integrity sha512-+cYTcFB1QqD4j4LegwLfpCNxifb6dDFUAwk6RsLusCwIaZI6or2f+q8rs5tTB2YC53HhOlIbEaqHMAAC8IOIwA==

emittery@^0.13.1:
version "0.13.1"
Expand Down

0 comments on commit d349ff9

Please sign in to comment.