Skip to content

Commit

Permalink
Release 1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 6, 2024
1 parent 24941c3 commit ca1a8c8
Show file tree
Hide file tree
Showing 16 changed files with 173 additions and 53 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.4",
"version": "1.3.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 @@ -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.4",
"X-Fern-SDK-Version": "1.3.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 @@ -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.4",
"X-Fern-SDK-Version": "1.3.5",
},
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.4",
"X-Fern-SDK-Version": "1.3.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 @@ -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.4",
"X-Fern-SDK-Version": "1.3.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 @@ -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.4",
"X-Fern-SDK-Version": "1.3.5",
},
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.4",
"X-Fern-SDK-Version": "1.3.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 @@ -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.4",
"X-Fern-SDK-Version": "1.3.5",
},
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.4",
"X-Fern-SDK-Version": "1.3.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.3.4",
"X-Fern-SDK-Version": "1.3.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.3.4",
"X-Fern-SDK-Version": "1.3.5",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
4 changes: 4 additions & 0 deletions src/api/types/EmploymentStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

export type EmploymentStatus =
| "UNEMPLOYED"
| "EMPLOYED"
| "SELF_EMPLOYED"
| "STUDENT"
| "FULL_TIME"
| "PART_TIME"
Expand All @@ -13,6 +15,8 @@ export type EmploymentStatus =

export const EmploymentStatus = {
Unemployed: "UNEMPLOYED",
Employed: "EMPLOYED",
SelfEmployed: "SELF_EMPLOYED",
Student: "STUDENT",
FullTime: "FULL_TIME",
PartTime: "PART_TIME",
Expand Down
13 changes: 12 additions & 1 deletion src/api/types/KycStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@
* This file was auto-generated by Fern from our API Definition.
*/

export type KycStatus = "SUCCESSFUL" | "FAILED" | "NOT_STARTED" | "IN_PROGRESS" | "MANUAL_REVIEW";
export type KycStatus =
| "SUCCESSFUL"
| "FAILED"
| "NOT_STARTED"
| "IN_PROGRESS"
| "EXPIRED"
| "NEW"
| "CANCELLED"
| "MANUAL_REVIEW";

export const KycStatus = {
Successful: "SUCCESSFUL",
Failed: "FAILED",
NotStarted: "NOT_STARTED",
InProgress: "IN_PROGRESS",
Expired: "EXPIRED",
New: "NEW",
Cancelled: "CANCELLED",
ManualReview: "MANUAL_REVIEW",
} as const;
26 changes: 25 additions & 1 deletion src/api/types/SourceOfFunds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/

export type SourceOfFunds = "Earnings" | "Savings" | "Investments/Deposits" | "Wealth" | "Gift" | "Pension";
export type SourceOfFunds =
| "Earnings"
| "Savings"
| "Investments/Deposits"
| "Wealth"
| "Gift"
| "Pension"
| "Inheritance"
| "Gambling"
| "Benefits"
| "Passive"
| "Family"
| "Insurance"
| "Legal"
| "Sales"
| "Rollover";

export const SourceOfFunds = {
Earnings: "Earnings",
Expand All @@ -11,4 +26,13 @@ export const SourceOfFunds = {
Wealth: "Wealth",
Gift: "Gift",
Pension: "Pension",
Inheritance: "Inheritance",
Gambling: "Gambling",
Benefits: "Benefits",
Passive: "Passive",
Family: "Family",
Insurance: "Insurance",
Legal: "Legal",
Sales: "Sales",
Rollover: "Rollover",
} as const;
4 changes: 3 additions & 1 deletion src/api/types/TransactionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export type TransactionState =
| "DECLINED"
| "SUSPENDED"
| "REFUNDED"
| "SUCCESSFUL";
| "SUCCESSFUL"
| "REVERSED";

export const TransactionState = {
Created: "CREATED",
Expand All @@ -24,4 +25,5 @@ export const TransactionState = {
Suspended: "SUSPENDED",
Refunded: "REFUNDED",
Successful: "SUCCESSFUL",
Reversed: "REVERSED",
} as const;
13 changes: 12 additions & 1 deletion src/serialization/types/EmploymentStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import * as core from "../../core";
export const EmploymentStatus: core.serialization.Schema<serializers.EmploymentStatus.Raw, Flagright.EmploymentStatus> =
core.serialization.enum_([
"UNEMPLOYED",
"EMPLOYED",
"SELF_EMPLOYED",
"STUDENT",
"FULL_TIME",
"PART_TIME",
Expand All @@ -18,5 +20,14 @@ export const EmploymentStatus: core.serialization.Schema<serializers.EmploymentS
]);

export declare namespace EmploymentStatus {
type Raw = "UNEMPLOYED" | "STUDENT" | "FULL_TIME" | "PART_TIME" | "SOLE_PROPRIETOR" | "PENSIONER" | "COMPANY_OWNER";
type Raw =
| "UNEMPLOYED"
| "EMPLOYED"
| "SELF_EMPLOYED"
| "STUDENT"
| "FULL_TIME"
| "PART_TIME"
| "SOLE_PROPRIETOR"
| "PENSIONER"
| "COMPANY_OWNER";
}
21 changes: 19 additions & 2 deletions src/serialization/types/KycStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,25 @@ import * as Flagright from "../../api";
import * as core from "../../core";

export const KycStatus: core.serialization.Schema<serializers.KycStatus.Raw, Flagright.KycStatus> =
core.serialization.enum_(["SUCCESSFUL", "FAILED", "NOT_STARTED", "IN_PROGRESS", "MANUAL_REVIEW"]);
core.serialization.enum_([
"SUCCESSFUL",
"FAILED",
"NOT_STARTED",
"IN_PROGRESS",
"EXPIRED",
"NEW",
"CANCELLED",
"MANUAL_REVIEW",
]);

export declare namespace KycStatus {
type Raw = "SUCCESSFUL" | "FAILED" | "NOT_STARTED" | "IN_PROGRESS" | "MANUAL_REVIEW";
type Raw =
| "SUCCESSFUL"
| "FAILED"
| "NOT_STARTED"
| "IN_PROGRESS"
| "EXPIRED"
| "NEW"
| "CANCELLED"
| "MANUAL_REVIEW";
}
35 changes: 33 additions & 2 deletions src/serialization/types/SourceOfFunds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,39 @@ import * as Flagright from "../../api";
import * as core from "../../core";

export const SourceOfFunds: core.serialization.Schema<serializers.SourceOfFunds.Raw, Flagright.SourceOfFunds> =
core.serialization.enum_(["Earnings", "Savings", "Investments/Deposits", "Wealth", "Gift", "Pension"]);
core.serialization.enum_([
"Earnings",
"Savings",
"Investments/Deposits",
"Wealth",
"Gift",
"Pension",
"Inheritance",
"Gambling",
"Benefits",
"Passive",
"Family",
"Insurance",
"Legal",
"Sales",
"Rollover",
]);

export declare namespace SourceOfFunds {
type Raw = "Earnings" | "Savings" | "Investments/Deposits" | "Wealth" | "Gift" | "Pension";
type Raw =
| "Earnings"
| "Savings"
| "Investments/Deposits"
| "Wealth"
| "Gift"
| "Pension"
| "Inheritance"
| "Gambling"
| "Benefits"
| "Passive"
| "Family"
| "Insurance"
| "Legal"
| "Sales"
| "Rollover";
}
12 changes: 11 additions & 1 deletion src/serialization/types/TransactionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@ export const TransactionState: core.serialization.Schema<serializers.Transaction
"SUSPENDED",
"REFUNDED",
"SUCCESSFUL",
"REVERSED",
]);

export declare namespace TransactionState {
type Raw = "CREATED" | "PROCESSING" | "SENT" | "EXPIRED" | "DECLINED" | "SUSPENDED" | "REFUNDED" | "SUCCESSFUL";
type Raw =
| "CREATED"
| "PROCESSING"
| "SENT"
| "EXPIRED"
| "DECLINED"
| "SUSPENDED"
| "REFUNDED"
| "SUCCESSFUL"
| "REVERSED";
}
Loading

0 comments on commit ca1a8c8

Please sign in to comment.