Skip to content

Commit 3faac8d

Browse files
Release 1.8.19
1 parent 88b278d commit 3faac8d

19 files changed

Lines changed: 113 additions & 104 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flagright",
3-
"version": "1.8.18",
3+
"version": "1.8.19",
44
"private": false,
55
"repository": "https://github.com/flagright/flagright-node",
66
"main": "./index.js",

reference.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ await client.batch.verifyTransaction({
237237
validateDestinationUserId: "true",
238238
data: [
239239
{
240-
type: "type",
241-
transactionId: "transactionId",
242-
timestamp: 1.1,
240+
type: "DEPOSIT",
241+
transactionId: "7b80a539eea6e78acbd6d458e5971482",
242+
timestamp: 1641654664000,
243243
},
244244
],
245245
});
@@ -352,9 +352,9 @@ await client.batch.get("batchId", {
352352
await client.batch.createTransactionEvents({
353353
data: [
354354
{
355-
transactionState: "CREATED",
356-
timestamp: 1.1,
357-
transactionId: "transactionId",
355+
transactionState: "SUCCESSFUL",
356+
timestamp: 1641654664000,
357+
transactionId: "443dea26147a406b957d9ee3a1247b11",
358358
},
359359
],
360360
});
@@ -410,8 +410,8 @@ await client.batch.createConsumerUsers({
410410
lockKycRiskLevel: "true",
411411
data: [
412412
{
413-
userId: "userId",
414-
createdTimestamp: 1.1,
413+
userId: "96647cfd9e8fe66ee0f3362e011e34e8",
414+
createdTimestamp: 1641654664000,
415415
},
416416
],
417417
});
@@ -467,8 +467,8 @@ await client.batch.createBusinessUsers({
467467
lockKycRiskLevel: "true",
468468
data: [
469469
{
470-
userId: "userId",
471-
createdTimestamp: 1.1,
470+
userId: "BU-1",
471+
createdTimestamp: 1641654664000,
472472
legalEntity: {
473473
companyGeneralDetails: {
474474
legalName: "Ozkan Hazelnut Export JSC",
@@ -531,8 +531,8 @@ await client.batch.createConsumerUserEvents({
531531
lockKycRiskLevel: "true",
532532
data: [
533533
{
534-
timestamp: 1.1,
535-
userId: "userId",
534+
timestamp: 1641654664000,
535+
userId: "96647cfd9e8fe66ee0f3362e011e34e8",
536536
},
537537
],
538538
});
@@ -588,8 +588,8 @@ await client.batch.createBusinessUserEvents({
588588
lockKycRiskLevel: "true",
589589
data: [
590590
{
591-
timestamp: 1.1,
592-
userId: "userId",
591+
timestamp: 1641654664000,
592+
userId: "BU-1",
593593
},
594594
],
595595
});
@@ -957,7 +957,7 @@ Calling `GET /consumer/user/{userId}` will return the entire user payload and ru
957957
<dd>
958958

959959
```typescript
960-
await client.consumerUsers.get("userId");
960+
await client.consumerUsers.get("96647cfd9e8fe66ee0f3362e011e34e8");
961961
```
962962

963963
</dd>
@@ -1038,8 +1038,8 @@ await client.businessUsers.create({
10381038
lockKycRiskLevel: "true",
10391039
validateUserId: "true",
10401040
body: {
1041-
userId: "userId",
1042-
createdTimestamp: 1.1,
1041+
userId: "BU-1",
1042+
createdTimestamp: 1641654664000,
10431043
legalEntity: {
10441044
companyGeneralDetails: {
10451045
legalName: "Ozkan Hazelnut Export JSC",
@@ -1115,7 +1115,7 @@ Calling `GET /business/user/{userId}` will return the entire User payload and ru
11151115
<dd>
11161116

11171117
```typescript
1118-
await client.businessUsers.get("userId");
1118+
await client.businessUsers.get("BU-1");
11191119
```
11201120

11211121
</dd>
@@ -1203,8 +1203,8 @@ await client.consumerUserEvents.create({
12031203
lockKycRiskLevel: "true",
12041204
lockCraRiskLevel: "true",
12051205
body: {
1206-
timestamp: 1.1,
1207-
userId: "userId",
1206+
timestamp: 1641654664000,
1207+
userId: "96647cfd9e8fe66ee0f3362e011e34e8",
12081208
},
12091209
});
12101210
```
@@ -1359,8 +1359,11 @@ await client.businessUserEvents.create({
13591359
lockKycRiskLevel: "true",
13601360
lockCraRiskLevel: "true",
13611361
body: {
1362-
timestamp: 1.1,
1363-
userId: "userId",
1362+
timestamp: 1641654664000,
1363+
userId: "BU-1",
1364+
eventId: "event-123",
1365+
reason: "User status update",
1366+
eventDescription: "Business user status changed",
13641367
},
13651368
});
13661369
```

src/api/resources/batch/client/Client.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export class Batch {
4545
* validateOriginUserId: "true",
4646
* validateDestinationUserId: "true",
4747
* data: [{
48-
* type: "type",
49-
* transactionId: "transactionId",
50-
* timestamp: 1.1
48+
* type: "DEPOSIT",
49+
* transactionId: "7b80a539eea6e78acbd6d458e5971482",
50+
* timestamp: 1641654664000
5151
* }]
5252
* })
5353
*/
@@ -88,8 +88,8 @@ export class Batch {
8888
headers: {
8989
"X-Fern-Language": "JavaScript",
9090
"X-Fern-SDK-Name": "flagright",
91-
"X-Fern-SDK-Version": "1.8.18",
92-
"User-Agent": "flagright/1.8.18",
91+
"X-Fern-SDK-Version": "1.8.19",
92+
"User-Agent": "flagright/1.8.19",
9393
"X-Fern-Runtime": core.RUNTIME.type,
9494
"X-Fern-Runtime-Version": core.RUNTIME.version,
9595
...(await this._getCustomAuthorizationHeaders()),
@@ -222,8 +222,8 @@ export class Batch {
222222
headers: {
223223
"X-Fern-Language": "JavaScript",
224224
"X-Fern-SDK-Name": "flagright",
225-
"X-Fern-SDK-Version": "1.8.18",
226-
"User-Agent": "flagright/1.8.18",
225+
"X-Fern-SDK-Version": "1.8.19",
226+
"User-Agent": "flagright/1.8.19",
227227
"X-Fern-Runtime": core.RUNTIME.type,
228228
"X-Fern-Runtime-Version": core.RUNTIME.version,
229229
...(await this._getCustomAuthorizationHeaders()),
@@ -320,9 +320,9 @@ export class Batch {
320320
* @example
321321
* await client.batch.createTransactionEvents({
322322
* data: [{
323-
* transactionState: "CREATED",
324-
* timestamp: 1.1,
325-
* transactionId: "transactionId"
323+
* transactionState: "SUCCESSFUL",
324+
* timestamp: 1641654664000,
325+
* transactionId: "443dea26147a406b957d9ee3a1247b11"
326326
* }]
327327
* })
328328
*/
@@ -348,8 +348,8 @@ export class Batch {
348348
headers: {
349349
"X-Fern-Language": "JavaScript",
350350
"X-Fern-SDK-Name": "flagright",
351-
"X-Fern-SDK-Version": "1.8.18",
352-
"User-Agent": "flagright/1.8.18",
351+
"X-Fern-SDK-Version": "1.8.19",
352+
"User-Agent": "flagright/1.8.19",
353353
"X-Fern-Runtime": core.RUNTIME.type,
354354
"X-Fern-Runtime-Version": core.RUNTIME.version,
355355
...(await this._getCustomAuthorizationHeaders()),
@@ -455,8 +455,8 @@ export class Batch {
455455
* lockCraRiskLevel: "true",
456456
* lockKycRiskLevel: "true",
457457
* data: [{
458-
* userId: "userId",
459-
* createdTimestamp: 1.1
458+
* userId: "96647cfd9e8fe66ee0f3362e011e34e8",
459+
* createdTimestamp: 1641654664000
460460
* }]
461461
* })
462462
*/
@@ -496,8 +496,8 @@ export class Batch {
496496
headers: {
497497
"X-Fern-Language": "JavaScript",
498498
"X-Fern-SDK-Name": "flagright",
499-
"X-Fern-SDK-Version": "1.8.18",
500-
"User-Agent": "flagright/1.8.18",
499+
"X-Fern-SDK-Version": "1.8.19",
500+
"User-Agent": "flagright/1.8.19",
501501
"X-Fern-Runtime": core.RUNTIME.type,
502502
"X-Fern-Runtime-Version": core.RUNTIME.version,
503503
...(await this._getCustomAuthorizationHeaders()),
@@ -594,8 +594,8 @@ export class Batch {
594594
* lockCraRiskLevel: "true",
595595
* lockKycRiskLevel: "true",
596596
* data: [{
597-
* userId: "userId",
598-
* createdTimestamp: 1.1,
597+
* userId: "BU-1",
598+
* createdTimestamp: 1641654664000,
599599
* legalEntity: {
600600
* companyGeneralDetails: {
601601
* legalName: "Ozkan Hazelnut Export JSC",
@@ -642,8 +642,8 @@ export class Batch {
642642
headers: {
643643
"X-Fern-Language": "JavaScript",
644644
"X-Fern-SDK-Name": "flagright",
645-
"X-Fern-SDK-Version": "1.8.18",
646-
"User-Agent": "flagright/1.8.18",
645+
"X-Fern-SDK-Version": "1.8.19",
646+
"User-Agent": "flagright/1.8.19",
647647
"X-Fern-Runtime": core.RUNTIME.type,
648648
"X-Fern-Runtime-Version": core.RUNTIME.version,
649649
...(await this._getCustomAuthorizationHeaders()),
@@ -740,8 +740,8 @@ export class Batch {
740740
* lockCraRiskLevel: "true",
741741
* lockKycRiskLevel: "true",
742742
* data: [{
743-
* timestamp: 1.1,
744-
* userId: "userId"
743+
* timestamp: 1641654664000,
744+
* userId: "96647cfd9e8fe66ee0f3362e011e34e8"
745745
* }]
746746
* })
747747
*/
@@ -781,8 +781,8 @@ export class Batch {
781781
headers: {
782782
"X-Fern-Language": "JavaScript",
783783
"X-Fern-SDK-Name": "flagright",
784-
"X-Fern-SDK-Version": "1.8.18",
785-
"User-Agent": "flagright/1.8.18",
784+
"X-Fern-SDK-Version": "1.8.19",
785+
"User-Agent": "flagright/1.8.19",
786786
"X-Fern-Runtime": core.RUNTIME.type,
787787
"X-Fern-Runtime-Version": core.RUNTIME.version,
788788
...(await this._getCustomAuthorizationHeaders()),
@@ -881,8 +881,8 @@ export class Batch {
881881
* lockCraRiskLevel: "true",
882882
* lockKycRiskLevel: "true",
883883
* data: [{
884-
* timestamp: 1.1,
885-
* userId: "userId"
884+
* timestamp: 1641654664000,
885+
* userId: "BU-1"
886886
* }]
887887
* })
888888
*/
@@ -922,8 +922,8 @@ export class Batch {
922922
headers: {
923923
"X-Fern-Language": "JavaScript",
924924
"X-Fern-SDK-Name": "flagright",
925-
"X-Fern-SDK-Version": "1.8.18",
926-
"User-Agent": "flagright/1.8.18",
925+
"X-Fern-SDK-Version": "1.8.19",
926+
"User-Agent": "flagright/1.8.19",
927927
"X-Fern-Runtime": core.RUNTIME.type,
928928
"X-Fern-Runtime-Version": core.RUNTIME.version,
929929
...(await this._getCustomAuthorizationHeaders()),

src/api/resources/batch/client/requests/BusinessBatchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import * as Flagright from "../../../../index";
1010
* lockCraRiskLevel: "true",
1111
* lockKycRiskLevel: "true",
1212
* data: [{
13-
* userId: "userId",
14-
* createdTimestamp: 1.1,
13+
* userId: "BU-1",
14+
* createdTimestamp: 1641654664000,
1515
* legalEntity: {
1616
* companyGeneralDetails: {
1717
* legalName: "Ozkan Hazelnut Export JSC",

src/api/resources/batch/client/requests/BusinessUserEventBatchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import * as Flagright from "../../../../index";
1010
* lockCraRiskLevel: "true",
1111
* lockKycRiskLevel: "true",
1212
* data: [{
13-
* timestamp: 1.1,
14-
* userId: "userId"
13+
* timestamp: 1641654664000,
14+
* userId: "BU-1"
1515
* }]
1616
* }
1717
*/

src/api/resources/batch/client/requests/ConsumerUserEventBatchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import * as Flagright from "../../../../index";
1010
* lockCraRiskLevel: "true",
1111
* lockKycRiskLevel: "true",
1212
* data: [{
13-
* timestamp: 1.1,
14-
* userId: "userId"
13+
* timestamp: 1641654664000,
14+
* userId: "96647cfd9e8fe66ee0f3362e011e34e8"
1515
* }]
1616
* }
1717
*/

src/api/resources/batch/client/requests/TransactionBatchRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import * as Flagright from "../../../../index";
1010
* validateOriginUserId: "true",
1111
* validateDestinationUserId: "true",
1212
* data: [{
13-
* type: "type",
14-
* transactionId: "transactionId",
15-
* timestamp: 1.1
13+
* type: "DEPOSIT",
14+
* transactionId: "7b80a539eea6e78acbd6d458e5971482",
15+
* timestamp: 1641654664000
1616
* }]
1717
* }
1818
*/

src/api/resources/batch/client/requests/TransactionEventBatchRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import * as Flagright from "../../../../index";
88
* @example
99
* {
1010
* data: [{
11-
* transactionState: "CREATED",
12-
* timestamp: 1.1,
13-
* transactionId: "transactionId"
11+
* transactionState: "SUCCESSFUL",
12+
* timestamp: 1641654664000,
13+
* transactionId: "443dea26147a406b957d9ee3a1247b11"
1414
* }]
1515
* }
1616
*/

src/api/resources/batch/client/requests/UserBatchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import * as Flagright from "../../../../index";
1010
* lockCraRiskLevel: "true",
1111
* lockKycRiskLevel: "true",
1212
* data: [{
13-
* userId: "userId",
14-
* createdTimestamp: 1.1
13+
* userId: "96647cfd9e8fe66ee0f3362e011e34e8",
14+
* createdTimestamp: 1641654664000
1515
* }]
1616
* }
1717
*/

src/api/resources/businessUserEvents/client/Client.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ export class BusinessUserEvents {
6767
* lockKycRiskLevel: "true",
6868
* lockCraRiskLevel: "true",
6969
* body: {
70-
* timestamp: 1.1,
71-
* userId: "userId"
70+
* timestamp: 1641654664000,
71+
* userId: "BU-1",
72+
* eventId: "event-123",
73+
* reason: "User status update",
74+
* eventDescription: "Business user status changed"
7275
* }
7376
* })
7477
*/
@@ -114,8 +117,8 @@ export class BusinessUserEvents {
114117
headers: {
115118
"X-Fern-Language": "JavaScript",
116119
"X-Fern-SDK-Name": "flagright",
117-
"X-Fern-SDK-Version": "1.8.18",
118-
"User-Agent": "flagright/1.8.18",
120+
"X-Fern-SDK-Version": "1.8.19",
121+
"User-Agent": "flagright/1.8.19",
119122
"X-Fern-Runtime": core.RUNTIME.type,
120123
"X-Fern-Runtime-Version": core.RUNTIME.version,
121124
...(await this._getCustomAuthorizationHeaders()),
@@ -245,8 +248,8 @@ export class BusinessUserEvents {
245248
headers: {
246249
"X-Fern-Language": "JavaScript",
247250
"X-Fern-SDK-Name": "flagright",
248-
"X-Fern-SDK-Version": "1.8.18",
249-
"User-Agent": "flagright/1.8.18",
251+
"X-Fern-SDK-Version": "1.8.19",
252+
"User-Agent": "flagright/1.8.19",
250253
"X-Fern-Runtime": core.RUNTIME.type,
251254
"X-Fern-Runtime-Version": core.RUNTIME.version,
252255
...(await this._getCustomAuthorizationHeaders()),

0 commit comments

Comments
 (0)