@seamapi/types 1.241.0 → 1.242.0
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/connect.cjs +204 -95
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +250 -120
- package/lib/seam/connect/models/acs/acs-user.d.ts +169 -140
- package/lib/seam/connect/models/acs/acs-user.js +32 -30
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +36 -18
- package/lib/seam/connect/openapi.js +173 -69
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +112 -42
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +41 -35
- package/src/lib/seam/connect/openapi.ts +200 -69
- package/src/lib/seam/connect/route-types.ts +119 -42
|
@@ -2342,24 +2342,22 @@ export interface Routes {
|
|
|
2342
2342
|
message: string;
|
|
2343
2343
|
warning_code: 'being_deleted';
|
|
2344
2344
|
} | {
|
|
2345
|
+
/** Date and time at which Seam created the error. */
|
|
2345
2346
|
created_at: string;
|
|
2347
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2346
2348
|
message: string;
|
|
2347
2349
|
warning_code: 'failed_to_update_on_acs_system';
|
|
2348
2350
|
} | {
|
|
2349
2351
|
created_at: string;
|
|
2350
2352
|
message: string;
|
|
2351
2353
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
2352
|
-
} | {
|
|
2353
|
-
created_at: string;
|
|
2354
|
-
message: string;
|
|
2355
|
-
warning_code: 'salto_site_user_suspended';
|
|
2356
2354
|
}>;
|
|
2357
2355
|
errors: Array<{
|
|
2358
2356
|
/** Date and time at which Seam created the error. */
|
|
2359
2357
|
created_at: string;
|
|
2360
2358
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2361
2359
|
message: string;
|
|
2362
|
-
error_code: '
|
|
2360
|
+
error_code: 'deleted_externally';
|
|
2363
2361
|
} | {
|
|
2364
2362
|
/** Date and time at which Seam created the error. */
|
|
2365
2363
|
created_at: string;
|
|
@@ -2371,7 +2369,19 @@ export interface Routes {
|
|
|
2371
2369
|
created_at: string;
|
|
2372
2370
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2373
2371
|
message: string;
|
|
2374
|
-
|
|
2372
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
2373
|
+
} | {
|
|
2374
|
+
/** Date and time at which Seam created the error. */
|
|
2375
|
+
created_at: string;
|
|
2376
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2377
|
+
message: string;
|
|
2378
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
2379
|
+
} | {
|
|
2380
|
+
/** Date and time at which Seam created the error. */
|
|
2381
|
+
created_at: string;
|
|
2382
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2383
|
+
message: string;
|
|
2384
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
2375
2385
|
}>;
|
|
2376
2386
|
full_name?: string | undefined;
|
|
2377
2387
|
/**
|
|
@@ -3444,24 +3454,22 @@ export interface Routes {
|
|
|
3444
3454
|
message: string;
|
|
3445
3455
|
warning_code: 'being_deleted';
|
|
3446
3456
|
} | {
|
|
3457
|
+
/** Date and time at which Seam created the error. */
|
|
3447
3458
|
created_at: string;
|
|
3459
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3448
3460
|
message: string;
|
|
3449
3461
|
warning_code: 'failed_to_update_on_acs_system';
|
|
3450
3462
|
} | {
|
|
3451
3463
|
created_at: string;
|
|
3452
3464
|
message: string;
|
|
3453
3465
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3454
|
-
} | {
|
|
3455
|
-
created_at: string;
|
|
3456
|
-
message: string;
|
|
3457
|
-
warning_code: 'salto_site_user_suspended';
|
|
3458
3466
|
}>;
|
|
3459
3467
|
errors: Array<{
|
|
3460
3468
|
/** Date and time at which Seam created the error. */
|
|
3461
3469
|
created_at: string;
|
|
3462
3470
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3463
3471
|
message: string;
|
|
3464
|
-
error_code: '
|
|
3472
|
+
error_code: 'deleted_externally';
|
|
3465
3473
|
} | {
|
|
3466
3474
|
/** Date and time at which Seam created the error. */
|
|
3467
3475
|
created_at: string;
|
|
@@ -3473,7 +3481,19 @@ export interface Routes {
|
|
|
3473
3481
|
created_at: string;
|
|
3474
3482
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3475
3483
|
message: string;
|
|
3476
|
-
|
|
3484
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
3485
|
+
} | {
|
|
3486
|
+
/** Date and time at which Seam created the error. */
|
|
3487
|
+
created_at: string;
|
|
3488
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3489
|
+
message: string;
|
|
3490
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
3491
|
+
} | {
|
|
3492
|
+
/** Date and time at which Seam created the error. */
|
|
3493
|
+
created_at: string;
|
|
3494
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3495
|
+
message: string;
|
|
3496
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
3477
3497
|
}>;
|
|
3478
3498
|
full_name?: string | undefined;
|
|
3479
3499
|
/**
|
|
@@ -3531,24 +3551,22 @@ export interface Routes {
|
|
|
3531
3551
|
message: string;
|
|
3532
3552
|
warning_code: 'being_deleted';
|
|
3533
3553
|
} | {
|
|
3554
|
+
/** Date and time at which Seam created the error. */
|
|
3534
3555
|
created_at: string;
|
|
3556
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3535
3557
|
message: string;
|
|
3536
3558
|
warning_code: 'failed_to_update_on_acs_system';
|
|
3537
3559
|
} | {
|
|
3538
3560
|
created_at: string;
|
|
3539
3561
|
message: string;
|
|
3540
3562
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3541
|
-
} | {
|
|
3542
|
-
created_at: string;
|
|
3543
|
-
message: string;
|
|
3544
|
-
warning_code: 'salto_site_user_suspended';
|
|
3545
3563
|
}>;
|
|
3546
3564
|
errors: Array<{
|
|
3547
3565
|
/** Date and time at which Seam created the error. */
|
|
3548
3566
|
created_at: string;
|
|
3549
3567
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3550
3568
|
message: string;
|
|
3551
|
-
error_code: '
|
|
3569
|
+
error_code: 'deleted_externally';
|
|
3552
3570
|
} | {
|
|
3553
3571
|
/** Date and time at which Seam created the error. */
|
|
3554
3572
|
created_at: string;
|
|
@@ -3560,7 +3578,19 @@ export interface Routes {
|
|
|
3560
3578
|
created_at: string;
|
|
3561
3579
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3562
3580
|
message: string;
|
|
3563
|
-
|
|
3581
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
3582
|
+
} | {
|
|
3583
|
+
/** Date and time at which Seam created the error. */
|
|
3584
|
+
created_at: string;
|
|
3585
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3586
|
+
message: string;
|
|
3587
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
3588
|
+
} | {
|
|
3589
|
+
/** Date and time at which Seam created the error. */
|
|
3590
|
+
created_at: string;
|
|
3591
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3592
|
+
message: string;
|
|
3593
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
3564
3594
|
}>;
|
|
3565
3595
|
full_name?: string | undefined;
|
|
3566
3596
|
/**
|
|
@@ -3612,24 +3642,22 @@ export interface Routes {
|
|
|
3612
3642
|
message: string;
|
|
3613
3643
|
warning_code: 'being_deleted';
|
|
3614
3644
|
} | {
|
|
3645
|
+
/** Date and time at which Seam created the error. */
|
|
3615
3646
|
created_at: string;
|
|
3647
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3616
3648
|
message: string;
|
|
3617
3649
|
warning_code: 'failed_to_update_on_acs_system';
|
|
3618
3650
|
} | {
|
|
3619
3651
|
created_at: string;
|
|
3620
3652
|
message: string;
|
|
3621
3653
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3622
|
-
} | {
|
|
3623
|
-
created_at: string;
|
|
3624
|
-
message: string;
|
|
3625
|
-
warning_code: 'salto_site_user_suspended';
|
|
3626
3654
|
}>;
|
|
3627
3655
|
errors: Array<{
|
|
3628
3656
|
/** Date and time at which Seam created the error. */
|
|
3629
3657
|
created_at: string;
|
|
3630
3658
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3631
3659
|
message: string;
|
|
3632
|
-
error_code: '
|
|
3660
|
+
error_code: 'deleted_externally';
|
|
3633
3661
|
} | {
|
|
3634
3662
|
/** Date and time at which Seam created the error. */
|
|
3635
3663
|
created_at: string;
|
|
@@ -3641,7 +3669,19 @@ export interface Routes {
|
|
|
3641
3669
|
created_at: string;
|
|
3642
3670
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3643
3671
|
message: string;
|
|
3644
|
-
|
|
3672
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
3673
|
+
} | {
|
|
3674
|
+
/** Date and time at which Seam created the error. */
|
|
3675
|
+
created_at: string;
|
|
3676
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3677
|
+
message: string;
|
|
3678
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
3679
|
+
} | {
|
|
3680
|
+
/** Date and time at which Seam created the error. */
|
|
3681
|
+
created_at: string;
|
|
3682
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3683
|
+
message: string;
|
|
3684
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
3645
3685
|
}>;
|
|
3646
3686
|
full_name?: string | undefined;
|
|
3647
3687
|
/**
|
|
@@ -3758,24 +3798,22 @@ export interface Routes {
|
|
|
3758
3798
|
message: string;
|
|
3759
3799
|
warning_code: 'being_deleted';
|
|
3760
3800
|
} | {
|
|
3801
|
+
/** Date and time at which Seam created the error. */
|
|
3761
3802
|
created_at: string;
|
|
3803
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3762
3804
|
message: string;
|
|
3763
3805
|
warning_code: 'failed_to_update_on_acs_system';
|
|
3764
3806
|
} | {
|
|
3765
3807
|
created_at: string;
|
|
3766
3808
|
message: string;
|
|
3767
3809
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3768
|
-
} | {
|
|
3769
|
-
created_at: string;
|
|
3770
|
-
message: string;
|
|
3771
|
-
warning_code: 'salto_site_user_suspended';
|
|
3772
3810
|
}>;
|
|
3773
3811
|
errors: Array<{
|
|
3774
3812
|
/** Date and time at which Seam created the error. */
|
|
3775
3813
|
created_at: string;
|
|
3776
3814
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3777
3815
|
message: string;
|
|
3778
|
-
error_code: '
|
|
3816
|
+
error_code: 'deleted_externally';
|
|
3779
3817
|
} | {
|
|
3780
3818
|
/** Date and time at which Seam created the error. */
|
|
3781
3819
|
created_at: string;
|
|
@@ -3787,7 +3825,19 @@ export interface Routes {
|
|
|
3787
3825
|
created_at: string;
|
|
3788
3826
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3789
3827
|
message: string;
|
|
3790
|
-
|
|
3828
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
3829
|
+
} | {
|
|
3830
|
+
/** Date and time at which Seam created the error. */
|
|
3831
|
+
created_at: string;
|
|
3832
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3833
|
+
message: string;
|
|
3834
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
3835
|
+
} | {
|
|
3836
|
+
/** Date and time at which Seam created the error. */
|
|
3837
|
+
created_at: string;
|
|
3838
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3839
|
+
message: string;
|
|
3840
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
3791
3841
|
}>;
|
|
3792
3842
|
full_name?: string | undefined;
|
|
3793
3843
|
/**
|
|
@@ -3838,24 +3888,22 @@ export interface Routes {
|
|
|
3838
3888
|
message: string;
|
|
3839
3889
|
warning_code: 'being_deleted';
|
|
3840
3890
|
} | {
|
|
3891
|
+
/** Date and time at which Seam created the error. */
|
|
3841
3892
|
created_at: string;
|
|
3893
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3842
3894
|
message: string;
|
|
3843
3895
|
warning_code: 'failed_to_update_on_acs_system';
|
|
3844
3896
|
} | {
|
|
3845
3897
|
created_at: string;
|
|
3846
3898
|
message: string;
|
|
3847
3899
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3848
|
-
} | {
|
|
3849
|
-
created_at: string;
|
|
3850
|
-
message: string;
|
|
3851
|
-
warning_code: 'salto_site_user_suspended';
|
|
3852
3900
|
}>;
|
|
3853
3901
|
errors: Array<{
|
|
3854
3902
|
/** Date and time at which Seam created the error. */
|
|
3855
3903
|
created_at: string;
|
|
3856
3904
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3857
3905
|
message: string;
|
|
3858
|
-
error_code: '
|
|
3906
|
+
error_code: 'deleted_externally';
|
|
3859
3907
|
} | {
|
|
3860
3908
|
/** Date and time at which Seam created the error. */
|
|
3861
3909
|
created_at: string;
|
|
@@ -3867,7 +3915,19 @@ export interface Routes {
|
|
|
3867
3915
|
created_at: string;
|
|
3868
3916
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3869
3917
|
message: string;
|
|
3870
|
-
|
|
3918
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
3919
|
+
} | {
|
|
3920
|
+
/** Date and time at which Seam created the error. */
|
|
3921
|
+
created_at: string;
|
|
3922
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3923
|
+
message: string;
|
|
3924
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
3925
|
+
} | {
|
|
3926
|
+
/** Date and time at which Seam created the error. */
|
|
3927
|
+
created_at: string;
|
|
3928
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3929
|
+
message: string;
|
|
3930
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
3871
3931
|
}>;
|
|
3872
3932
|
full_name?: string | undefined;
|
|
3873
3933
|
/**
|
|
@@ -15890,24 +15950,22 @@ export interface Routes {
|
|
|
15890
15950
|
message: string;
|
|
15891
15951
|
warning_code: 'being_deleted';
|
|
15892
15952
|
} | {
|
|
15953
|
+
/** Date and time at which Seam created the error. */
|
|
15893
15954
|
created_at: string;
|
|
15955
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
15894
15956
|
message: string;
|
|
15895
15957
|
warning_code: 'failed_to_update_on_acs_system';
|
|
15896
15958
|
} | {
|
|
15897
15959
|
created_at: string;
|
|
15898
15960
|
message: string;
|
|
15899
15961
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
15900
|
-
} | {
|
|
15901
|
-
created_at: string;
|
|
15902
|
-
message: string;
|
|
15903
|
-
warning_code: 'salto_site_user_suspended';
|
|
15904
15962
|
}>;
|
|
15905
15963
|
errors: Array<{
|
|
15906
15964
|
/** Date and time at which Seam created the error. */
|
|
15907
15965
|
created_at: string;
|
|
15908
15966
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
15909
15967
|
message: string;
|
|
15910
|
-
error_code: '
|
|
15968
|
+
error_code: 'deleted_externally';
|
|
15911
15969
|
} | {
|
|
15912
15970
|
/** Date and time at which Seam created the error. */
|
|
15913
15971
|
created_at: string;
|
|
@@ -15919,7 +15977,19 @@ export interface Routes {
|
|
|
15919
15977
|
created_at: string;
|
|
15920
15978
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
15921
15979
|
message: string;
|
|
15922
|
-
|
|
15980
|
+
warning_code: 'failed_to_create_on_acs_system';
|
|
15981
|
+
} | {
|
|
15982
|
+
/** Date and time at which Seam created the error. */
|
|
15983
|
+
created_at: string;
|
|
15984
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
15985
|
+
message: string;
|
|
15986
|
+
warning_code: 'failed_to_update_on_acs_system';
|
|
15987
|
+
} | {
|
|
15988
|
+
/** Date and time at which Seam created the error. */
|
|
15989
|
+
created_at: string;
|
|
15990
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
15991
|
+
message: string;
|
|
15992
|
+
warning_code: 'failed_to_delete_on_acs_system';
|
|
15923
15993
|
}>;
|
|
15924
15994
|
full_name?: string | undefined;
|
|
15925
15995
|
/**
|
package/package.json
CHANGED
|
@@ -25,12 +25,12 @@ const common_acs_user_error = z.object({
|
|
|
25
25
|
),
|
|
26
26
|
})
|
|
27
27
|
|
|
28
|
-
const
|
|
28
|
+
const acs_users_deleted_externally = common_acs_user_error
|
|
29
29
|
.extend({
|
|
30
|
-
error_code: z.literal('
|
|
30
|
+
error_code: z.literal('deleted_externally'),
|
|
31
31
|
})
|
|
32
32
|
.describe(
|
|
33
|
-
`Indicates that the user was deleted from the ACS system outside of Seam.`,
|
|
33
|
+
`Indicates that the ACS user was deleted from the ACS system outside of Seam.`,
|
|
34
34
|
)
|
|
35
35
|
|
|
36
36
|
const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
|
|
@@ -41,37 +41,63 @@ const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
|
|
|
41
41
|
`Indicates that the user could not be subscribed on Salto KS because the subscription limit has been exceeded.`,
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const acs_users_failed_to_create_on_acs_system = common_acs_user_error
|
|
45
|
+
.extend({
|
|
46
|
+
warning_code: z.literal('failed_to_create_on_acs_system'),
|
|
47
|
+
})
|
|
48
|
+
.describe(
|
|
49
|
+
`Indicates that the user was not created on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
const acs_users_failed_to_update_on_acs_system = common_acs_user_error
|
|
53
|
+
.extend({
|
|
54
|
+
warning_code: z.literal('failed_to_update_on_acs_system'),
|
|
55
|
+
})
|
|
56
|
+
.describe(
|
|
57
|
+
`Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
|
|
61
|
+
.extend({
|
|
62
|
+
warning_code: z.literal('failed_to_delete_on_acs_system'),
|
|
63
|
+
})
|
|
64
|
+
.describe(
|
|
65
|
+
`Indicates that the user was not deleted on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`,
|
|
66
|
+
)
|
|
47
67
|
|
|
48
68
|
const acs_user_errors = z
|
|
49
69
|
.union([
|
|
50
|
-
|
|
70
|
+
acs_users_deleted_externally,
|
|
51
71
|
acs_users_salto_ks_subscription_limit_exceeded,
|
|
52
|
-
|
|
72
|
+
acs_users_failed_to_create_on_acs_system,
|
|
73
|
+
acs_users_failed_to_update_on_acs_system,
|
|
74
|
+
acs_users_failed_to_delete_on_acs_system,
|
|
53
75
|
])
|
|
54
76
|
.describe('Error associated with the `acs_user`.')
|
|
55
77
|
|
|
56
78
|
export const acs_users_error_map = z.object({
|
|
57
|
-
|
|
58
|
-
.optional()
|
|
59
|
-
.nullable(),
|
|
79
|
+
deleted_externally: acs_users_deleted_externally.optional().nullable(),
|
|
60
80
|
salto_ks_subscription_limit_exceeded:
|
|
61
81
|
acs_users_salto_ks_subscription_limit_exceeded.optional().nullable(),
|
|
62
|
-
|
|
82
|
+
failed_to_create_on_acs_system: acs_users_failed_to_create_on_acs_system
|
|
83
|
+
.optional()
|
|
84
|
+
.nullable(),
|
|
85
|
+
failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system
|
|
86
|
+
.optional()
|
|
87
|
+
.nullable(),
|
|
88
|
+
failed_to_delete_on_acs_system: acs_users_failed_to_delete_on_acs_system
|
|
63
89
|
.optional()
|
|
64
90
|
.nullable(),
|
|
65
91
|
})
|
|
66
92
|
|
|
67
93
|
export type AcsUsersErrorMap = z.infer<typeof acs_users_error_map>
|
|
68
94
|
|
|
69
|
-
const
|
|
95
|
+
const common_acs_user_warning = z.object({
|
|
70
96
|
created_at: z.string().datetime(),
|
|
71
97
|
message: z.string(),
|
|
72
98
|
})
|
|
73
99
|
|
|
74
|
-
const acs_users_being_deleted =
|
|
100
|
+
const acs_users_being_deleted = common_acs_user_warning
|
|
75
101
|
.extend({
|
|
76
102
|
warning_code: z.literal('being_deleted'),
|
|
77
103
|
})
|
|
@@ -79,7 +105,7 @@ const acs_users_being_deleted = common_acs_users_warning
|
|
|
79
105
|
`Indicates that the user is being deleted from the ACS system. This is a temporary state, and the user will be deleted shortly.`,
|
|
80
106
|
)
|
|
81
107
|
|
|
82
|
-
const acs_users_salto_ks_user_not_subscribed =
|
|
108
|
+
const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
|
|
83
109
|
.extend({
|
|
84
110
|
warning_code: z.literal('salto_ks_user_not_subscribed'),
|
|
85
111
|
})
|
|
@@ -87,30 +113,11 @@ const acs_users_salto_ks_user_not_subscribed = common_acs_users_warning
|
|
|
87
113
|
`Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn’t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.`,
|
|
88
114
|
)
|
|
89
115
|
|
|
90
|
-
const acs_users_failed_to_update_on_acs_system = common_acs_users_warning
|
|
91
|
-
.extend({
|
|
92
|
-
warning_code: z.literal('failed_to_update_on_acs_system'),
|
|
93
|
-
})
|
|
94
|
-
.describe(
|
|
95
|
-
`Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`,
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
// TODO: Some acs_users already have this warning, so we need to keep it here until we migrate
|
|
99
|
-
const acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
|
|
100
|
-
warning_code: z.literal('salto_site_user_suspended'),
|
|
101
|
-
})
|
|
102
|
-
|
|
103
116
|
export const acs_users_warning_map = z.object({
|
|
104
117
|
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
105
|
-
failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system
|
|
106
|
-
.optional()
|
|
107
|
-
.nullable(),
|
|
108
118
|
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed
|
|
109
119
|
.optional()
|
|
110
120
|
.nullable(),
|
|
111
|
-
salto_site_user_suspended: acs_users_salto_site_user_suspended
|
|
112
|
-
.optional()
|
|
113
|
-
.nullable(),
|
|
114
121
|
})
|
|
115
122
|
|
|
116
123
|
export const acs_users_warnings = z
|
|
@@ -118,7 +125,6 @@ export const acs_users_warnings = z
|
|
|
118
125
|
acs_users_being_deleted,
|
|
119
126
|
acs_users_failed_to_update_on_acs_system,
|
|
120
127
|
acs_users_salto_ks_user_not_subscribed,
|
|
121
|
-
acs_users_salto_site_user_suspended,
|
|
122
128
|
])
|
|
123
129
|
.describe('Warning associated with the `acs_user`.')
|
|
124
130
|
|