Skip to content

Commit

Permalink
Release 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 5, 2024
1 parent bc853c1 commit 5974cdd
Show file tree
Hide file tree
Showing 12 changed files with 176 additions and 164 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.5.13",
"version": "1.6.0",
"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 @@ -76,7 +76,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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 @@ -69,7 +69,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -166,7 +166,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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 @@ -76,7 +76,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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 @@ -102,7 +102,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -199,7 +199,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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 @@ -79,7 +79,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -176,7 +176,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"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 @@ -126,7 +126,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -224,7 +224,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.5.13",
"X-Fern-SDK-Version": "1.6.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/CardDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export interface CardDetails {
cardFunding?: Flagright.CardFunding;
/** Authentication of Card */
cardAuthenticated?: boolean;
/** Card Present */
cardPresent?: boolean;
paymentChannel?: string;
cardType?: Flagright.CardType;
merchantDetails?: Flagright.CardMerchantDetails;
Expand Down
4 changes: 3 additions & 1 deletion src/api/types/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ export type WebhookEventType =
| "USER_STATE_UPDATED"
| "ALERT_CLOSED"
| "TRANSACTION_STATUS_UPDATED"
| "KYC_STATUS_UPDATED";
| "KYC_STATUS_UPDATED"
| "CASE_OPENED";

export const WebhookEventType = {
CaseClosed: "CASE_CLOSED",
UserStateUpdated: "USER_STATE_UPDATED",
AlertClosed: "ALERT_CLOSED",
TransactionStatusUpdated: "TRANSACTION_STATUS_UPDATED",
KycStatusUpdated: "KYC_STATUS_UPDATED",
CaseOpened: "CASE_OPENED",
} as const;
2 changes: 2 additions & 0 deletions src/serialization/types/CardDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const CardDetails: core.serialization.ObjectSchema<serializers.CardDetail
cardBrand: core.serialization.lazy(async () => (await import("..")).CardBrand).optional(),
cardFunding: core.serialization.lazy(async () => (await import("..")).CardFunding).optional(),
cardAuthenticated: core.serialization.boolean().optional(),
cardPresent: core.serialization.boolean().optional(),
paymentChannel: core.serialization.string().optional(),
cardType: core.serialization.lazy(async () => (await import("..")).CardType).optional(),
merchantDetails: core.serialization.lazyObject(async () => (await import("..")).CardMerchantDetails).optional(),
Expand All @@ -39,6 +40,7 @@ export declare namespace CardDetails {
cardBrand?: serializers.CardBrand.Raw | null;
cardFunding?: serializers.CardFunding.Raw | null;
cardAuthenticated?: boolean | null;
cardPresent?: boolean | null;
paymentChannel?: string | null;
cardType?: serializers.CardType.Raw | null;
merchantDetails?: serializers.CardMerchantDetails.Raw | null;
Expand Down
4 changes: 3 additions & 1 deletion src/serialization/types/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const WebhookEventType: core.serialization.Schema<serializers.WebhookEven
"ALERT_CLOSED",
"TRANSACTION_STATUS_UPDATED",
"KYC_STATUS_UPDATED",
"CASE_OPENED",
]);

export declare namespace WebhookEventType {
Expand All @@ -21,5 +22,6 @@ export declare namespace WebhookEventType {
| "USER_STATE_UPDATED"
| "ALERT_CLOSED"
| "TRANSACTION_STATUS_UPDATED"
| "KYC_STATUS_UPDATED";
| "KYC_STATUS_UPDATED"
| "CASE_OPENED";
}
Loading

0 comments on commit 5974cdd

Please sign in to comment.