Skip to content

Commit

Permalink
Release 1.6.22
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 7, 2024
1 parent f8495e5 commit e0e24d7
Show file tree
Hide file tree
Showing 24 changed files with 128 additions and 33 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.21",
"version": "1.6.22",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
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 @@ -75,7 +75,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.21",
"X-Fern-SDK-Version": "1.6.22",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -172,7 +172,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.21",
"X-Fern-SDK-Version": "1.6.22",
"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 @@ -70,7 +70,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.21",
"X-Fern-SDK-Version": "1.6.22",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -168,7 +168,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.21",
"X-Fern-SDK-Version": "1.6.22",
"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 @@ -75,7 +75,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.21",
"X-Fern-SDK-Version": "1.6.22",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -172,7 +172,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.21",
"X-Fern-SDK-Version": "1.6.22",
"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 @@ -103,7 +103,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.21",
"X-Fern-SDK-Version": "1.6.22",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -201,7 +201,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.21",
"X-Fern-SDK-Version": "1.6.22",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/consumerUsers/client/requests/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export interface User {
/** User's legal identity documents - See Document Model for details */
legalDocuments?: Flagright.LegalDocument[];
contactDetails?: Flagright.ContactDetails;
employmentDetails?: Flagright.EmploymentDetails;
transactionLimits?: Flagright.TransactionLimits;
expectedIncome?: Flagright.ExpectedIncome;
riskLevel?: Flagright.RiskLevel;
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.21",
"X-Fern-SDK-Version": "1.6.22",
"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.21",
"X-Fern-SDK-Version": "1.6.22",
"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.21",
"X-Fern-SDK-Version": "1.6.22",
"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.21",
"X-Fern-SDK-Version": "1.6.22",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/Address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export interface Address {
state?: string;
/** User's country of residence */
country: string;
/** Type of the address (ex - Residential, Postal, etc.) */
addressType?: string;
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
}
15 changes: 15 additions & 0 deletions src/api/types/EmploymentDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Details of User's employment
*/
export interface EmploymentDetails {
/** Sector of employment */
employmentSector?: string;
/** Name of the employer */
employerName?: string;
/** The industry in which the business operates for a business customer */
businessIndustry?: string[];
}
16 changes: 16 additions & 0 deletions src/api/types/MartialStatus.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.
*/

/**
* Martial status of the individual
*/
export type MartialStatus = "DIVORCED" | "MARRIED" | "SINGLE" | "WIDOWED" | "NA";

export const MartialStatus = {
Divorced: "DIVORCED",
Married: "MARRIED",
Single: "SINGLE",
Widowed: "WIDOWED",
Na: "NA",
} as const;
3 changes: 3 additions & 0 deletions src/api/types/UserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ export interface UserDetails {
name: Flagright.ConsumerName;
/** Date of birth of the user (YYYY-MM-DD) */
dateOfBirth?: string;
/** Internal category of the user */
userCategory?: string;
countryOfResidence?: Flagright.CountryCode;
countryOfNationality?: Flagright.CountryCode;
gender?: Flagright.Gender;
martialStatus?: Flagright.MartialStatus;
placeOfBirth?: Flagright.PlaceOfBirth;
}
1 change: 1 addition & 0 deletions src/api/types/UserOptional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface UserOptional {
/** User's legal identity documents - See Document Model for details */
legalDocuments?: Flagright.LegalDocument[];
contactDetails?: Flagright.ContactDetails;
employmentDetails?: Flagright.EmploymentDetails;
transactionLimits?: Flagright.TransactionLimits;
expectedIncome?: Flagright.ExpectedIncome;
riskLevel?: Flagright.RiskLevel;
Expand Down
1 change: 1 addition & 0 deletions src/api/types/UserWithRulesResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface UserWithRulesResult {
/** User's legal identity documents - See Document Model for details */
legalDocuments?: Flagright.LegalDocument[];
contactDetails?: Flagright.ContactDetails;
employmentDetails?: Flagright.EmploymentDetails;
transactionLimits?: Flagright.TransactionLimits;
expectedIncome?: Flagright.ExpectedIncome;
riskLevel?: Flagright.RiskLevel;
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from "./UserOptional";
export * from "./ConsumerUserSegment";
export * from "./Person";
export * from "./LegalDocument";
export * from "./EmploymentDetails";
export * from "./Tag";
export * from "./EmailId";
export * from "./TransactionOriginPaymentDetails";
Expand Down Expand Up @@ -133,6 +134,7 @@ export * from "./BusinessWithRulesResultSavedPaymentDetailsItem";
export * from "./BusinessWithRulesResult";
export * from "./BooleanString";
export * from "./Gender";
export * from "./MartialStatus";
export * from "./CardBrand";
export * from "./CardFunding";
export * from "./CardType";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const User: core.serialization.Schema<serializers.User.Raw, Flagright.Use
.list(core.serialization.lazyObject(async () => (await import("../../../..")).LegalDocument))
.optional(),
contactDetails: core.serialization.lazyObject(async () => (await import("../../../..")).ContactDetails).optional(),
employmentDetails: core.serialization
.lazyObject(async () => (await import("../../../..")).EmploymentDetails)
.optional(),
transactionLimits: core.serialization
.lazyObject(async () => (await import("../../../..")).TransactionLimits)
.optional(),
Expand Down Expand Up @@ -60,6 +63,7 @@ export declare namespace User {
occupation?: string | null;
legalDocuments?: serializers.LegalDocument.Raw[] | null;
contactDetails?: serializers.ContactDetails.Raw | null;
employmentDetails?: serializers.EmploymentDetails.Raw | null;
transactionLimits?: serializers.TransactionLimits.Raw | null;
expectedIncome?: serializers.ExpectedIncome.Raw | null;
riskLevel?: serializers.RiskLevel.Raw | null;
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/Address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const Address: core.serialization.ObjectSchema<serializers.Address.Raw, F
city: core.serialization.string(),
state: core.serialization.string().optional(),
country: core.serialization.string(),
addressType: core.serialization.string().optional(),
tags: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Tag)).optional(),
});

Expand All @@ -23,6 +24,7 @@ export declare namespace Address {
city: string;
state?: string | null;
country: string;
addressType?: string | null;
tags?: serializers.Tag.Raw[] | null;
}
}
24 changes: 24 additions & 0 deletions src/serialization/types/EmploymentDetails.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 EmploymentDetails: core.serialization.ObjectSchema<
serializers.EmploymentDetails.Raw,
Flagright.EmploymentDetails
> = core.serialization.object({
employmentSector: core.serialization.string().optional(),
employerName: core.serialization.string().optional(),
businessIndustry: core.serialization.list(core.serialization.string()).optional(),
});

export declare namespace EmploymentDetails {
interface Raw {
employmentSector?: string | null;
employerName?: string | null;
businessIndustry?: string[] | null;
}
}
14 changes: 14 additions & 0 deletions src/serialization/types/MartialStatus.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 MartialStatus: core.serialization.Schema<serializers.MartialStatus.Raw, Flagright.MartialStatus> =
core.serialization.enum_(["DIVORCED", "MARRIED", "SINGLE", "WIDOWED", "NA"]);

export declare namespace MartialStatus {
type Raw = "DIVORCED" | "MARRIED" | "SINGLE" | "WIDOWED" | "NA";
}
4 changes: 4 additions & 0 deletions src/serialization/types/UserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ export const UserDetails: core.serialization.ObjectSchema<serializers.UserDetail
core.serialization.object({
name: core.serialization.lazyObject(async () => (await import("..")).ConsumerName),
dateOfBirth: core.serialization.string().optional(),
userCategory: core.serialization.string().optional(),
countryOfResidence: 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(),
martialStatus: core.serialization.lazy(async () => (await import("..")).MartialStatus).optional(),
placeOfBirth: core.serialization.lazyObject(async () => (await import("..")).PlaceOfBirth).optional(),
});

export declare namespace UserDetails {
interface Raw {
name: serializers.ConsumerName.Raw;
dateOfBirth?: string | null;
userCategory?: string | null;
countryOfResidence?: serializers.CountryCode.Raw | null;
countryOfNationality?: serializers.CountryCode.Raw | null;
gender?: serializers.Gender.Raw | null;
martialStatus?: serializers.MartialStatus.Raw | null;
placeOfBirth?: serializers.PlaceOfBirth.Raw | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/UserOptional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const UserOptional: core.serialization.ObjectSchema<serializers.UserOptio
.list(core.serialization.lazyObject(async () => (await import("..")).LegalDocument))
.optional(),
contactDetails: core.serialization.lazyObject(async () => (await import("..")).ContactDetails).optional(),
employmentDetails: core.serialization.lazyObject(async () => (await import("..")).EmploymentDetails).optional(),
transactionLimits: core.serialization.lazyObject(async () => (await import("..")).TransactionLimits).optional(),
expectedIncome: core.serialization.lazyObject(async () => (await import("..")).ExpectedIncome).optional(),
riskLevel: core.serialization.lazy(async () => (await import("..")).RiskLevel).optional(),
Expand Down Expand Up @@ -47,6 +48,7 @@ export declare namespace UserOptional {
occupation?: string | null;
legalDocuments?: serializers.LegalDocument.Raw[] | null;
contactDetails?: serializers.ContactDetails.Raw | null;
employmentDetails?: serializers.EmploymentDetails.Raw | null;
transactionLimits?: serializers.TransactionLimits.Raw | null;
expectedIncome?: serializers.ExpectedIncome.Raw | null;
riskLevel?: serializers.RiskLevel.Raw | null;
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/UserWithRulesResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const UserWithRulesResult: core.serialization.ObjectSchema<
.list(core.serialization.lazyObject(async () => (await import("..")).LegalDocument))
.optional(),
contactDetails: core.serialization.lazyObject(async () => (await import("..")).ContactDetails).optional(),
employmentDetails: core.serialization.lazyObject(async () => (await import("..")).EmploymentDetails).optional(),
transactionLimits: core.serialization.lazyObject(async () => (await import("..")).TransactionLimits).optional(),
expectedIncome: core.serialization.lazyObject(async () => (await import("..")).ExpectedIncome).optional(),
riskLevel: core.serialization.lazy(async () => (await import("..")).RiskLevel).optional(),
Expand Down Expand Up @@ -60,6 +61,7 @@ export declare namespace UserWithRulesResult {
occupation?: string | null;
legalDocuments?: serializers.LegalDocument.Raw[] | null;
contactDetails?: serializers.ContactDetails.Raw | null;
employmentDetails?: serializers.EmploymentDetails.Raw | null;
transactionLimits?: serializers.TransactionLimits.Raw | null;
expectedIncome?: serializers.ExpectedIncome.Raw | null;
riskLevel?: serializers.RiskLevel.Raw | null;
Expand Down
2 changes: 2 additions & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from "./UserOptional";
export * from "./ConsumerUserSegment";
export * from "./Person";
export * from "./LegalDocument";
export * from "./EmploymentDetails";
export * from "./Tag";
export * from "./EmailId";
export * from "./TransactionOriginPaymentDetails";
Expand Down Expand Up @@ -133,6 +134,7 @@ export * from "./BusinessWithRulesResultSavedPaymentDetailsItem";
export * from "./BusinessWithRulesResult";
export * from "./BooleanString";
export * from "./Gender";
export * from "./MartialStatus";
export * from "./CardBrand";
export * from "./CardFunding";
export * from "./CardType";
Expand Down
Loading

0 comments on commit e0e24d7

Please sign in to comment.