Skip to content

Commit

Permalink
Release 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 14, 2024
1 parent 5974cdd commit f5a6ce5
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 30 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.0",
"version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"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.6.0",
"X-Fern-SDK-Version": "1.6.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
15 changes: 15 additions & 0 deletions src/api/types/AlertOpenedDetails.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.
*/

export interface AlertOpenedDetails {
alertId?: string;
status?: string;
transactionIds?: string[];
ruleName?: string;
ruleDescription?: string;
ruleId?: string;
ruleInstanceId?: string;
caseId?: string;
userId?: string;
}
1 change: 1 addition & 0 deletions src/api/types/WebhookEventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export type WebhookEventData =
| Flagright.CaseClosedDetails
| Flagright.CaseOpenedDetails
| Flagright.AlertClosedDetails
| Flagright.AlertOpenedDetails
| Flagright.TransactionStatusDetails
| Flagright.KycStatusDetails;
4 changes: 3 additions & 1 deletion src/api/types/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export type WebhookEventType =
| "ALERT_CLOSED"
| "TRANSACTION_STATUS_UPDATED"
| "KYC_STATUS_UPDATED"
| "CASE_OPENED";
| "CASE_OPENED"
| "ALERT_OPENED";

export const WebhookEventType = {
CaseClosed: "CASE_CLOSED",
Expand All @@ -17,4 +18,5 @@ export const WebhookEventType = {
TransactionStatusUpdated: "TRANSACTION_STATUS_UPDATED",
KycStatusUpdated: "KYC_STATUS_UPDATED",
CaseOpened: "CASE_OPENED",
AlertOpened: "ALERT_OPENED",
} 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 @@ -87,6 +87,7 @@ export * from "./UserStateDetails";
export * from "./CaseClosedDetails";
export * from "./CaseOpenedDetails";
export * from "./AlertClosedDetails";
export * from "./AlertOpenedDetails";
export * from "./TransactionStatusDetails";
export * from "./RiskLevel";
export * from "./CardExpiry";
Expand Down
36 changes: 36 additions & 0 deletions src/serialization/types/AlertOpenedDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* 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 AlertOpenedDetails: core.serialization.ObjectSchema<
serializers.AlertOpenedDetails.Raw,
Flagright.AlertOpenedDetails
> = core.serialization.object({
alertId: core.serialization.string().optional(),
status: core.serialization.string().optional(),
transactionIds: core.serialization.list(core.serialization.string()).optional(),
ruleName: core.serialization.string().optional(),
ruleDescription: core.serialization.string().optional(),
ruleId: core.serialization.string().optional(),
ruleInstanceId: core.serialization.string().optional(),
caseId: core.serialization.string().optional(),
userId: core.serialization.string().optional(),
});

export declare namespace AlertOpenedDetails {
interface Raw {
alertId?: string | null;
status?: string | null;
transactionIds?: string[] | null;
ruleName?: string | null;
ruleDescription?: string | null;
ruleId?: string | null;
ruleInstanceId?: string | null;
caseId?: string | null;
userId?: string | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/WebhookEventData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const WebhookEventData: core.serialization.Schema<serializers.WebhookEven
core.serialization.lazyObject(async () => (await import("..")).CaseClosedDetails),
core.serialization.lazyObject(async () => (await import("..")).CaseOpenedDetails),
core.serialization.lazyObject(async () => (await import("..")).AlertClosedDetails),
core.serialization.lazyObject(async () => (await import("..")).AlertOpenedDetails),
core.serialization.lazyObject(async () => (await import("..")).TransactionStatusDetails),
core.serialization.lazyObject(async () => (await import("..")).KycStatusDetails),
]);
Expand All @@ -22,6 +23,7 @@ export declare namespace WebhookEventData {
| serializers.CaseClosedDetails.Raw
| serializers.CaseOpenedDetails.Raw
| serializers.AlertClosedDetails.Raw
| serializers.AlertOpenedDetails.Raw
| serializers.TransactionStatusDetails.Raw
| serializers.KycStatusDetails.Raw;
}
4 changes: 3 additions & 1 deletion src/serialization/types/WebhookEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const WebhookEventType: core.serialization.Schema<serializers.WebhookEven
"TRANSACTION_STATUS_UPDATED",
"KYC_STATUS_UPDATED",
"CASE_OPENED",
"ALERT_OPENED",
]);

export declare namespace WebhookEventType {
Expand All @@ -23,5 +24,6 @@ export declare namespace WebhookEventType {
| "ALERT_CLOSED"
| "TRANSACTION_STATUS_UPDATED"
| "KYC_STATUS_UPDATED"
| "CASE_OPENED";
| "CASE_OPENED"
| "ALERT_OPENED";
}
1 change: 1 addition & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export * from "./UserStateDetails";
export * from "./CaseClosedDetails";
export * from "./CaseOpenedDetails";
export * from "./AlertClosedDetails";
export * from "./AlertOpenedDetails";
export * from "./TransactionStatusDetails";
export * from "./RiskLevel";
export * from "./CardExpiry";
Expand Down
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -806,14 +806,14 @@ braces@^3.0.3:
fill-range "^7.1.1"

browserslist@^4.22.2:
version "4.23.0"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab"
integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==
version "4.23.1"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96"
integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==
dependencies:
caniuse-lite "^1.0.30001587"
electron-to-chromium "^1.4.668"
caniuse-lite "^1.0.30001629"
electron-to-chromium "^1.4.796"
node-releases "^2.0.14"
update-browserslist-db "^1.0.13"
update-browserslist-db "^1.0.16"

[email protected]:
version "0.2.6"
Expand Down Expand Up @@ -860,10 +860,10 @@ camelcase@^6.2.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==

caniuse-lite@^1.0.30001587:
version "1.0.30001628"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001628.tgz#90b6cd85ddc2e9f831de0225f4ca5a130c8d8222"
integrity sha512-S3BnR4Kh26TBxbi5t5kpbcUlLJb9lhtDXISDPwOfI+JoC+ik0QksvkZtUVyikw3hjnkgkMPSJ8oIM9yMm9vflA==
caniuse-lite@^1.0.30001629:
version "1.0.30001634"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001634.tgz#aa563c8e7aeaf552f7ead60371bc8d803425deaa"
integrity sha512-fbBYXQ9q3+yp1q1gBk86tOFs4pyn/yxFm5ZNP18OXJDfA3txImOY9PhfxVggZ4vRHDqoU8NrKU81eN0OtzOgRA==

chalk@^2.4.2:
version "2.4.2"
Expand Down Expand Up @@ -1020,10 +1020,10 @@ diff-sequences@^29.6.3:
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921"
integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==

electron-to-chromium@^1.4.668:
version "1.4.790"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.790.tgz#2a3a5509593745c5d65d8acd66b308f2a25da041"
integrity sha512-eVGeQxpaBYbomDBa/Mehrs28MdvCXfJmEFzaMFsv8jH/MJDLIylJN81eTJ5kvx7B7p18OiPK0BkC06lydEy63A==
electron-to-chromium@^1.4.796:
version "1.4.802"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.802.tgz#49b397eadc95a49b1ac33eebee146b8e5a93773f"
integrity sha512-TnTMUATbgNdPXVSHsxvNVSG0uEd6cSZsANjm8c9HbvflZVVn1yTRcmVXYT1Ma95/ssB/Dcd30AHweH2TE+dNpA==

emittery@^0.13.1:
version "0.13.1"
Expand Down Expand Up @@ -2272,7 +2272,7 @@ undici-types@~5.26.4:
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==

update-browserslist-db@^1.0.13:
update-browserslist-db@^1.0.16:
version "1.0.16"
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356"
integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==
Expand Down

0 comments on commit f5a6ce5

Please sign in to comment.