@fctc/interface-logic 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hook.d.mts CHANGED
@@ -291,6 +291,8 @@ declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<any, E
291
291
  method: string;
292
292
  with_context: any;
293
293
  code: string;
294
+ device: string;
295
+ location: string;
294
296
  }, unknown>;
295
297
 
296
298
  declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hook.d.ts CHANGED
@@ -291,6 +291,8 @@ declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<any, E
291
291
  method: string;
292
292
  with_context: any;
293
293
  code: string;
294
+ device: string;
295
+ location: string;
294
296
  }, unknown>;
295
297
 
296
298
  declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<any, Error, {
package/dist/hook.js CHANGED
@@ -4570,14 +4570,18 @@ var ViewService = {
4570
4570
  async verify2FA({
4571
4571
  method,
4572
4572
  with_context,
4573
- code
4573
+ code,
4574
+ device,
4575
+ location
4574
4576
  }) {
4575
4577
  const env2 = getEnv();
4576
4578
  const jsonData = {
4577
4579
  method,
4578
4580
  kwargs: {
4579
4581
  vals: {
4580
- code
4582
+ code,
4583
+ device,
4584
+ location
4581
4585
  }
4582
4586
  },
4583
4587
  with_context
@@ -4585,7 +4589,8 @@ var ViewService = {
4585
4589
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
4586
4590
  headers: {
4587
4591
  "Content-Type": "application/json"
4588
- }
4592
+ },
4593
+ withCredentials: true
4589
4594
  });
4590
4595
  },
4591
4596
  async signInSSO({
@@ -5798,12 +5803,16 @@ var useVerify2FA = () => {
5798
5803
  mutationFn: ({
5799
5804
  method,
5800
5805
  with_context,
5801
- code
5806
+ code,
5807
+ device,
5808
+ location
5802
5809
  }) => {
5803
5810
  return view_service_default.verify2FA({
5804
5811
  method,
5805
5812
  with_context,
5806
- code
5813
+ code,
5814
+ device,
5815
+ location
5807
5816
  });
5808
5817
  }
5809
5818
  });
package/dist/hook.mjs CHANGED
@@ -4467,14 +4467,18 @@ var ViewService = {
4467
4467
  async verify2FA({
4468
4468
  method,
4469
4469
  with_context,
4470
- code
4470
+ code,
4471
+ device,
4472
+ location
4471
4473
  }) {
4472
4474
  const env2 = getEnv();
4473
4475
  const jsonData = {
4474
4476
  method,
4475
4477
  kwargs: {
4476
4478
  vals: {
4477
- code
4479
+ code,
4480
+ device,
4481
+ location
4478
4482
  }
4479
4483
  },
4480
4484
  with_context
@@ -4482,7 +4486,8 @@ var ViewService = {
4482
4486
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
4483
4487
  headers: {
4484
4488
  "Content-Type": "application/json"
4485
- }
4489
+ },
4490
+ withCredentials: true
4486
4491
  });
4487
4492
  },
4488
4493
  async signInSSO({
@@ -5695,12 +5700,16 @@ var useVerify2FA = () => {
5695
5700
  mutationFn: ({
5696
5701
  method,
5697
5702
  with_context,
5698
- code
5703
+ code,
5704
+ device,
5705
+ location
5699
5706
  }) => {
5700
5707
  return view_service_default.verify2FA({
5701
5708
  method,
5702
5709
  with_context,
5703
- code
5710
+ code,
5711
+ device,
5712
+ location
5704
5713
  });
5705
5714
  }
5706
5715
  });
package/dist/index.js CHANGED
@@ -5532,14 +5532,18 @@ var ViewService = {
5532
5532
  async verify2FA({
5533
5533
  method,
5534
5534
  with_context,
5535
- code
5535
+ code,
5536
+ device,
5537
+ location
5536
5538
  }) {
5537
5539
  const env2 = getEnv();
5538
5540
  const jsonData = {
5539
5541
  method,
5540
5542
  kwargs: {
5541
5543
  vals: {
5542
- code
5544
+ code,
5545
+ device,
5546
+ location
5543
5547
  }
5544
5548
  },
5545
5549
  with_context
@@ -5547,7 +5551,8 @@ var ViewService = {
5547
5551
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
5548
5552
  headers: {
5549
5553
  "Content-Type": "application/json"
5550
- }
5554
+ },
5555
+ withCredentials: true
5551
5556
  });
5552
5557
  },
5553
5558
  async signInSSO({
@@ -6760,12 +6765,16 @@ var useVerify2FA = () => {
6760
6765
  mutationFn: ({
6761
6766
  method,
6762
6767
  with_context,
6763
- code
6768
+ code,
6769
+ device,
6770
+ location
6764
6771
  }) => {
6765
6772
  return view_service_default.verify2FA({
6766
6773
  method,
6767
6774
  with_context,
6768
- code
6775
+ code,
6776
+ device,
6777
+ location
6769
6778
  });
6770
6779
  }
6771
6780
  });
package/dist/index.mjs CHANGED
@@ -5286,14 +5286,18 @@ var ViewService = {
5286
5286
  async verify2FA({
5287
5287
  method,
5288
5288
  with_context,
5289
- code
5289
+ code,
5290
+ device,
5291
+ location
5290
5292
  }) {
5291
5293
  const env2 = getEnv();
5292
5294
  const jsonData = {
5293
5295
  method,
5294
5296
  kwargs: {
5295
5297
  vals: {
5296
- code
5298
+ code,
5299
+ device,
5300
+ location
5297
5301
  }
5298
5302
  },
5299
5303
  with_context
@@ -5301,7 +5305,8 @@ var ViewService = {
5301
5305
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
5302
5306
  headers: {
5303
5307
  "Content-Type": "application/json"
5304
- }
5308
+ },
5309
+ withCredentials: true
5305
5310
  });
5306
5311
  },
5307
5312
  async signInSSO({
@@ -6514,12 +6519,16 @@ var useVerify2FA = () => {
6514
6519
  mutationFn: ({
6515
6520
  method,
6516
6521
  with_context,
6517
- code
6522
+ code,
6523
+ device,
6524
+ location
6518
6525
  }) => {
6519
6526
  return view_service_default.verify2FA({
6520
6527
  method,
6521
6528
  with_context,
6522
- code
6529
+ code,
6530
+ device,
6531
+ location
6523
6532
  });
6524
6533
  }
6525
6534
  });
package/dist/provider.js CHANGED
@@ -3399,14 +3399,18 @@ var ViewService = {
3399
3399
  async verify2FA({
3400
3400
  method,
3401
3401
  with_context,
3402
- code
3402
+ code,
3403
+ device,
3404
+ location
3403
3405
  }) {
3404
3406
  const env2 = getEnv();
3405
3407
  const jsonData = {
3406
3408
  method,
3407
3409
  kwargs: {
3408
3410
  vals: {
3409
- code
3411
+ code,
3412
+ device,
3413
+ location
3410
3414
  }
3411
3415
  },
3412
3416
  with_context
@@ -3414,7 +3418,8 @@ var ViewService = {
3414
3418
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
3415
3419
  headers: {
3416
3420
  "Content-Type": "application/json"
3417
- }
3421
+ },
3422
+ withCredentials: true
3418
3423
  });
3419
3424
  },
3420
3425
  async signInSSO({
package/dist/provider.mjs CHANGED
@@ -3361,14 +3361,18 @@ var ViewService = {
3361
3361
  async verify2FA({
3362
3362
  method,
3363
3363
  with_context,
3364
- code
3364
+ code,
3365
+ device,
3366
+ location
3365
3367
  }) {
3366
3368
  const env2 = getEnv();
3367
3369
  const jsonData = {
3368
3370
  method,
3369
3371
  kwargs: {
3370
3372
  vals: {
3371
- code
3373
+ code,
3374
+ device,
3375
+ location
3372
3376
  }
3373
3377
  },
3374
3378
  with_context
@@ -3376,7 +3380,8 @@ var ViewService = {
3376
3380
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
3377
3381
  headers: {
3378
3382
  "Content-Type": "application/json"
3379
- }
3383
+ },
3384
+ withCredentials: true
3380
3385
  });
3381
3386
  },
3382
3387
  async signInSSO({
@@ -209,10 +209,12 @@ declare const ViewService: {
209
209
  method: string;
210
210
  with_context: any;
211
211
  }): Promise<any>;
212
- verify2FA({ method, with_context, code, }: {
212
+ verify2FA({ method, with_context, code, device, location, }: {
213
213
  method: string;
214
214
  with_context: any;
215
215
  code: string;
216
+ device: string;
217
+ location: string;
216
218
  }): Promise<any>;
217
219
  signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
218
220
  redirect_uri: string;
@@ -209,10 +209,12 @@ declare const ViewService: {
209
209
  method: string;
210
210
  with_context: any;
211
211
  }): Promise<any>;
212
- verify2FA({ method, with_context, code, }: {
212
+ verify2FA({ method, with_context, code, device, location, }: {
213
213
  method: string;
214
214
  with_context: any;
215
215
  code: string;
216
+ device: string;
217
+ location: string;
216
218
  }): Promise<any>;
217
219
  signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
218
220
  redirect_uri: string;
package/dist/services.js CHANGED
@@ -4486,14 +4486,18 @@ var ViewService = {
4486
4486
  async verify2FA({
4487
4487
  method,
4488
4488
  with_context,
4489
- code
4489
+ code,
4490
+ device,
4491
+ location
4490
4492
  }) {
4491
4493
  const env2 = getEnv();
4492
4494
  const jsonData = {
4493
4495
  method,
4494
4496
  kwargs: {
4495
4497
  vals: {
4496
- code
4498
+ code,
4499
+ device,
4500
+ location
4497
4501
  }
4498
4502
  },
4499
4503
  with_context
@@ -4501,7 +4505,8 @@ var ViewService = {
4501
4505
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
4502
4506
  headers: {
4503
4507
  "Content-Type": "application/json"
4504
- }
4508
+ },
4509
+ withCredentials: true
4505
4510
  });
4506
4511
  },
4507
4512
  async signInSSO({
package/dist/services.mjs CHANGED
@@ -4442,14 +4442,18 @@ var ViewService = {
4442
4442
  async verify2FA({
4443
4443
  method,
4444
4444
  with_context,
4445
- code
4445
+ code,
4446
+ device,
4447
+ location
4446
4448
  }) {
4447
4449
  const env2 = getEnv();
4448
4450
  const jsonData = {
4449
4451
  method,
4450
4452
  kwargs: {
4451
4453
  vals: {
4452
- code
4454
+ code,
4455
+ device,
4456
+ location
4453
4457
  }
4454
4458
  },
4455
4459
  with_context
@@ -4457,7 +4461,8 @@ var ViewService = {
4457
4461
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
4458
4462
  headers: {
4459
4463
  "Content-Type": "application/json"
4460
- }
4464
+ },
4465
+ withCredentials: true
4461
4466
  });
4462
4467
  },
4463
4468
  async signInSSO({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",