@seamapi/types 1.375.2 → 1.376.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.
Files changed (25) hide show
  1. package/dist/connect.cjs +127 -142
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +351 -298
  4. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +182 -150
  5. package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -3
  6. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-users/index.d.ts +1 -1
  8. package/lib/seam/connect/models/acs/acs-users/index.js +1 -1
  9. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-users/{pending-modifications.d.ts → pending-mutations.d.ts} +191 -106
  11. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +90 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -0
  13. package/lib/seam/connect/openapi.d.ts +56 -56
  14. package/lib/seam/connect/openapi.js +80 -98
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +119 -98
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +2 -3
  19. package/src/lib/seam/connect/models/acs/acs-users/index.ts +1 -1
  20. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +110 -0
  21. package/src/lib/seam/connect/openapi.ts +80 -98
  22. package/src/lib/seam/connect/route-types.ts +126 -98
  23. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +0 -85
  24. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +0 -1
  25. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +0 -109
@@ -8617,21 +8617,25 @@ export interface Routes {
8617
8617
  }
8618
8618
  >
8619
8619
  /** */
8620
- pending_modifications?:
8620
+ pending_mutations?:
8621
8621
  | Array<
8622
8622
  | {
8623
8623
  created_at: string
8624
- modification_code: 'create'
8624
+ mutation_code: 'creating'
8625
8625
  }
8626
8626
  | {
8627
8627
  created_at: string
8628
- modification_code: 'profile'
8629
- modified_from: {
8628
+ mutation_code: 'deleting'
8629
+ }
8630
+ | {
8631
+ created_at: string
8632
+ mutation_code: 'updating_user_information'
8633
+ from: {
8630
8634
  email_address?: (string | null) | undefined
8631
8635
  full_name?: (string | null) | undefined
8632
8636
  phone_number?: ((string | undefined) | null) | undefined
8633
8637
  }
8634
- modified_to: {
8638
+ to: {
8635
8639
  email_address?: (string | null) | undefined
8636
8640
  full_name?: (string | null) | undefined
8637
8641
  phone_number?: ((string | undefined) | null) | undefined
@@ -8639,14 +8643,14 @@ export interface Routes {
8639
8643
  }
8640
8644
  | {
8641
8645
  created_at: string
8642
- modification_code: 'access_schedule'
8643
- modified_from: {
8646
+ mutation_code: 'updating_access_schedule'
8647
+ from: {
8644
8648
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
8645
8649
  starts_at: string
8646
8650
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
8647
8651
  ends_at: string | null
8648
8652
  }
8649
- modified_to: {
8653
+ to: {
8650
8654
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
8651
8655
  starts_at: string
8652
8656
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -8655,21 +8659,21 @@ export interface Routes {
8655
8659
  }
8656
8660
  | {
8657
8661
  created_at: string
8658
- modification_code: 'suspension_state'
8659
- modified_from: {
8662
+ mutation_code: 'updating_suspension_state'
8663
+ from: {
8660
8664
  is_suspended: boolean
8661
8665
  }
8662
- modified_to: {
8666
+ to: {
8663
8667
  is_suspended: boolean
8664
8668
  }
8665
8669
  }
8666
8670
  | {
8667
8671
  created_at: string
8668
- modification_code: 'acs_access_group_membership'
8669
- modified_from: {
8672
+ mutation_code: 'updating_group_membership'
8673
+ from: {
8670
8674
  acs_access_group_id: string | null
8671
8675
  }
8672
- modified_to: {
8676
+ to: {
8673
8677
  acs_access_group_id: string | null
8674
8678
  }
8675
8679
  }
@@ -13942,21 +13946,25 @@ export interface Routes {
13942
13946
  }
13943
13947
  >
13944
13948
  /** */
13945
- pending_modifications?:
13949
+ pending_mutations?:
13946
13950
  | Array<
13947
13951
  | {
13948
13952
  created_at: string
13949
- modification_code: 'create'
13953
+ mutation_code: 'creating'
13954
+ }
13955
+ | {
13956
+ created_at: string
13957
+ mutation_code: 'deleting'
13950
13958
  }
13951
13959
  | {
13952
13960
  created_at: string
13953
- modification_code: 'profile'
13954
- modified_from: {
13961
+ mutation_code: 'updating_user_information'
13962
+ from: {
13955
13963
  email_address?: (string | null) | undefined
13956
13964
  full_name?: (string | null) | undefined
13957
13965
  phone_number?: ((string | undefined) | null) | undefined
13958
13966
  }
13959
- modified_to: {
13967
+ to: {
13960
13968
  email_address?: (string | null) | undefined
13961
13969
  full_name?: (string | null) | undefined
13962
13970
  phone_number?: ((string | undefined) | null) | undefined
@@ -13964,14 +13972,14 @@ export interface Routes {
13964
13972
  }
13965
13973
  | {
13966
13974
  created_at: string
13967
- modification_code: 'access_schedule'
13968
- modified_from: {
13975
+ mutation_code: 'updating_access_schedule'
13976
+ from: {
13969
13977
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
13970
13978
  starts_at: string
13971
13979
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
13972
13980
  ends_at: string | null
13973
13981
  }
13974
- modified_to: {
13982
+ to: {
13975
13983
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
13976
13984
  starts_at: string
13977
13985
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -13980,21 +13988,21 @@ export interface Routes {
13980
13988
  }
13981
13989
  | {
13982
13990
  created_at: string
13983
- modification_code: 'suspension_state'
13984
- modified_from: {
13991
+ mutation_code: 'updating_suspension_state'
13992
+ from: {
13985
13993
  is_suspended: boolean
13986
13994
  }
13987
- modified_to: {
13995
+ to: {
13988
13996
  is_suspended: boolean
13989
13997
  }
13990
13998
  }
13991
13999
  | {
13992
14000
  created_at: string
13993
- modification_code: 'acs_access_group_membership'
13994
- modified_from: {
14001
+ mutation_code: 'updating_group_membership'
14002
+ from: {
13995
14003
  acs_access_group_id: string | null
13996
14004
  }
13997
- modified_to: {
14005
+ to: {
13998
14006
  acs_access_group_id: string | null
13999
14007
  }
14000
14008
  }
@@ -14157,21 +14165,25 @@ export interface Routes {
14157
14165
  }
14158
14166
  >
14159
14167
  /** */
14160
- pending_modifications?:
14168
+ pending_mutations?:
14161
14169
  | Array<
14162
14170
  | {
14163
14171
  created_at: string
14164
- modification_code: 'create'
14172
+ mutation_code: 'creating'
14165
14173
  }
14166
14174
  | {
14167
14175
  created_at: string
14168
- modification_code: 'profile'
14169
- modified_from: {
14176
+ mutation_code: 'deleting'
14177
+ }
14178
+ | {
14179
+ created_at: string
14180
+ mutation_code: 'updating_user_information'
14181
+ from: {
14170
14182
  email_address?: (string | null) | undefined
14171
14183
  full_name?: (string | null) | undefined
14172
14184
  phone_number?: ((string | undefined) | null) | undefined
14173
14185
  }
14174
- modified_to: {
14186
+ to: {
14175
14187
  email_address?: (string | null) | undefined
14176
14188
  full_name?: (string | null) | undefined
14177
14189
  phone_number?: ((string | undefined) | null) | undefined
@@ -14179,14 +14191,14 @@ export interface Routes {
14179
14191
  }
14180
14192
  | {
14181
14193
  created_at: string
14182
- modification_code: 'access_schedule'
14183
- modified_from: {
14194
+ mutation_code: 'updating_access_schedule'
14195
+ from: {
14184
14196
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14185
14197
  starts_at: string
14186
14198
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14187
14199
  ends_at: string | null
14188
14200
  }
14189
- modified_to: {
14201
+ to: {
14190
14202
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14191
14203
  starts_at: string
14192
14204
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -14195,21 +14207,21 @@ export interface Routes {
14195
14207
  }
14196
14208
  | {
14197
14209
  created_at: string
14198
- modification_code: 'suspension_state'
14199
- modified_from: {
14210
+ mutation_code: 'updating_suspension_state'
14211
+ from: {
14200
14212
  is_suspended: boolean
14201
14213
  }
14202
- modified_to: {
14214
+ to: {
14203
14215
  is_suspended: boolean
14204
14216
  }
14205
14217
  }
14206
14218
  | {
14207
14219
  created_at: string
14208
- modification_code: 'acs_access_group_membership'
14209
- modified_from: {
14220
+ mutation_code: 'updating_group_membership'
14221
+ from: {
14210
14222
  acs_access_group_id: string | null
14211
14223
  }
14212
- modified_to: {
14224
+ to: {
14213
14225
  acs_access_group_id: string | null
14214
14226
  }
14215
14227
  }
@@ -14368,21 +14380,25 @@ export interface Routes {
14368
14380
  }
14369
14381
  >
14370
14382
  /** */
14371
- pending_modifications?:
14383
+ pending_mutations?:
14372
14384
  | Array<
14373
14385
  | {
14374
14386
  created_at: string
14375
- modification_code: 'create'
14387
+ mutation_code: 'creating'
14376
14388
  }
14377
14389
  | {
14378
14390
  created_at: string
14379
- modification_code: 'profile'
14380
- modified_from: {
14391
+ mutation_code: 'deleting'
14392
+ }
14393
+ | {
14394
+ created_at: string
14395
+ mutation_code: 'updating_user_information'
14396
+ from: {
14381
14397
  email_address?: (string | null) | undefined
14382
14398
  full_name?: (string | null) | undefined
14383
14399
  phone_number?: ((string | undefined) | null) | undefined
14384
14400
  }
14385
- modified_to: {
14401
+ to: {
14386
14402
  email_address?: (string | null) | undefined
14387
14403
  full_name?: (string | null) | undefined
14388
14404
  phone_number?: ((string | undefined) | null) | undefined
@@ -14390,14 +14406,14 @@ export interface Routes {
14390
14406
  }
14391
14407
  | {
14392
14408
  created_at: string
14393
- modification_code: 'access_schedule'
14394
- modified_from: {
14409
+ mutation_code: 'updating_access_schedule'
14410
+ from: {
14395
14411
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14396
14412
  starts_at: string
14397
14413
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14398
14414
  ends_at: string | null
14399
14415
  }
14400
- modified_to: {
14416
+ to: {
14401
14417
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14402
14418
  starts_at: string
14403
14419
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -14406,21 +14422,21 @@ export interface Routes {
14406
14422
  }
14407
14423
  | {
14408
14424
  created_at: string
14409
- modification_code: 'suspension_state'
14410
- modified_from: {
14425
+ mutation_code: 'updating_suspension_state'
14426
+ from: {
14411
14427
  is_suspended: boolean
14412
14428
  }
14413
- modified_to: {
14429
+ to: {
14414
14430
  is_suspended: boolean
14415
14431
  }
14416
14432
  }
14417
14433
  | {
14418
14434
  created_at: string
14419
- modification_code: 'acs_access_group_membership'
14420
- modified_from: {
14435
+ mutation_code: 'updating_group_membership'
14436
+ from: {
14421
14437
  acs_access_group_id: string | null
14422
14438
  }
14423
- modified_to: {
14439
+ to: {
14424
14440
  acs_access_group_id: string | null
14425
14441
  }
14426
14442
  }
@@ -14711,21 +14727,25 @@ export interface Routes {
14711
14727
  }
14712
14728
  >
14713
14729
  /** */
14714
- pending_modifications?:
14730
+ pending_mutations?:
14715
14731
  | Array<
14716
14732
  | {
14717
14733
  created_at: string
14718
- modification_code: 'create'
14734
+ mutation_code: 'creating'
14719
14735
  }
14720
14736
  | {
14721
14737
  created_at: string
14722
- modification_code: 'profile'
14723
- modified_from: {
14738
+ mutation_code: 'deleting'
14739
+ }
14740
+ | {
14741
+ created_at: string
14742
+ mutation_code: 'updating_user_information'
14743
+ from: {
14724
14744
  email_address?: (string | null) | undefined
14725
14745
  full_name?: (string | null) | undefined
14726
14746
  phone_number?: ((string | undefined) | null) | undefined
14727
14747
  }
14728
- modified_to: {
14748
+ to: {
14729
14749
  email_address?: (string | null) | undefined
14730
14750
  full_name?: (string | null) | undefined
14731
14751
  phone_number?: ((string | undefined) | null) | undefined
@@ -14733,14 +14753,14 @@ export interface Routes {
14733
14753
  }
14734
14754
  | {
14735
14755
  created_at: string
14736
- modification_code: 'access_schedule'
14737
- modified_from: {
14756
+ mutation_code: 'updating_access_schedule'
14757
+ from: {
14738
14758
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14739
14759
  starts_at: string
14740
14760
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14741
14761
  ends_at: string | null
14742
14762
  }
14743
- modified_to: {
14763
+ to: {
14744
14764
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14745
14765
  starts_at: string
14746
14766
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -14749,21 +14769,21 @@ export interface Routes {
14749
14769
  }
14750
14770
  | {
14751
14771
  created_at: string
14752
- modification_code: 'suspension_state'
14753
- modified_from: {
14772
+ mutation_code: 'updating_suspension_state'
14773
+ from: {
14754
14774
  is_suspended: boolean
14755
14775
  }
14756
- modified_to: {
14776
+ to: {
14757
14777
  is_suspended: boolean
14758
14778
  }
14759
14779
  }
14760
14780
  | {
14761
14781
  created_at: string
14762
- modification_code: 'acs_access_group_membership'
14763
- modified_from: {
14782
+ mutation_code: 'updating_group_membership'
14783
+ from: {
14764
14784
  acs_access_group_id: string | null
14765
14785
  }
14766
- modified_to: {
14786
+ to: {
14767
14787
  acs_access_group_id: string | null
14768
14788
  }
14769
14789
  }
@@ -14912,21 +14932,25 @@ export interface Routes {
14912
14932
  }
14913
14933
  >
14914
14934
  /** */
14915
- pending_modifications?:
14935
+ pending_mutations?:
14916
14936
  | Array<
14917
14937
  | {
14918
14938
  created_at: string
14919
- modification_code: 'create'
14939
+ mutation_code: 'creating'
14940
+ }
14941
+ | {
14942
+ created_at: string
14943
+ mutation_code: 'deleting'
14920
14944
  }
14921
14945
  | {
14922
14946
  created_at: string
14923
- modification_code: 'profile'
14924
- modified_from: {
14947
+ mutation_code: 'updating_user_information'
14948
+ from: {
14925
14949
  email_address?: (string | null) | undefined
14926
14950
  full_name?: (string | null) | undefined
14927
14951
  phone_number?: ((string | undefined) | null) | undefined
14928
14952
  }
14929
- modified_to: {
14953
+ to: {
14930
14954
  email_address?: (string | null) | undefined
14931
14955
  full_name?: (string | null) | undefined
14932
14956
  phone_number?: ((string | undefined) | null) | undefined
@@ -14934,14 +14958,14 @@ export interface Routes {
14934
14958
  }
14935
14959
  | {
14936
14960
  created_at: string
14937
- modification_code: 'access_schedule'
14938
- modified_from: {
14961
+ mutation_code: 'updating_access_schedule'
14962
+ from: {
14939
14963
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14940
14964
  starts_at: string
14941
14965
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14942
14966
  ends_at: string | null
14943
14967
  }
14944
- modified_to: {
14968
+ to: {
14945
14969
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14946
14970
  starts_at: string
14947
14971
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -14950,21 +14974,21 @@ export interface Routes {
14950
14974
  }
14951
14975
  | {
14952
14976
  created_at: string
14953
- modification_code: 'suspension_state'
14954
- modified_from: {
14977
+ mutation_code: 'updating_suspension_state'
14978
+ from: {
14955
14979
  is_suspended: boolean
14956
14980
  }
14957
- modified_to: {
14981
+ to: {
14958
14982
  is_suspended: boolean
14959
14983
  }
14960
14984
  }
14961
14985
  | {
14962
14986
  created_at: string
14963
- modification_code: 'acs_access_group_membership'
14964
- modified_from: {
14987
+ mutation_code: 'updating_group_membership'
14988
+ from: {
14965
14989
  acs_access_group_id: string | null
14966
14990
  }
14967
- modified_to: {
14991
+ to: {
14968
14992
  acs_access_group_id: string | null
14969
14993
  }
14970
14994
  }
@@ -49893,21 +49917,25 @@ export interface Routes {
49893
49917
  }
49894
49918
  >
49895
49919
  /** */
49896
- pending_modifications?:
49920
+ pending_mutations?:
49897
49921
  | Array<
49898
49922
  | {
49899
49923
  created_at: string
49900
- modification_code: 'create'
49924
+ mutation_code: 'creating'
49925
+ }
49926
+ | {
49927
+ created_at: string
49928
+ mutation_code: 'deleting'
49901
49929
  }
49902
49930
  | {
49903
49931
  created_at: string
49904
- modification_code: 'profile'
49905
- modified_from: {
49932
+ mutation_code: 'updating_user_information'
49933
+ from: {
49906
49934
  email_address?: (string | null) | undefined
49907
49935
  full_name?: (string | null) | undefined
49908
49936
  phone_number?: ((string | undefined) | null) | undefined
49909
49937
  }
49910
- modified_to: {
49938
+ to: {
49911
49939
  email_address?: (string | null) | undefined
49912
49940
  full_name?: (string | null) | undefined
49913
49941
  phone_number?: ((string | undefined) | null) | undefined
@@ -49915,14 +49943,14 @@ export interface Routes {
49915
49943
  }
49916
49944
  | {
49917
49945
  created_at: string
49918
- modification_code: 'access_schedule'
49919
- modified_from: {
49946
+ mutation_code: 'updating_access_schedule'
49947
+ from: {
49920
49948
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
49921
49949
  starts_at: string
49922
49950
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
49923
49951
  ends_at: string | null
49924
49952
  }
49925
- modified_to: {
49953
+ to: {
49926
49954
  /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
49927
49955
  starts_at: string
49928
49956
  /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
@@ -49931,21 +49959,21 @@ export interface Routes {
49931
49959
  }
49932
49960
  | {
49933
49961
  created_at: string
49934
- modification_code: 'suspension_state'
49935
- modified_from: {
49962
+ mutation_code: 'updating_suspension_state'
49963
+ from: {
49936
49964
  is_suspended: boolean
49937
49965
  }
49938
- modified_to: {
49966
+ to: {
49939
49967
  is_suspended: boolean
49940
49968
  }
49941
49969
  }
49942
49970
  | {
49943
49971
  created_at: string
49944
- modification_code: 'acs_access_group_membership'
49945
- modified_from: {
49972
+ mutation_code: 'updating_group_membership'
49973
+ from: {
49946
49974
  acs_access_group_id: string | null
49947
49975
  }
49948
- modified_to: {
49976
+ to: {
49949
49977
  acs_access_group_id: string | null
49950
49978
  }
49951
49979
  }
@@ -1,85 +0,0 @@
1
- import { z } from 'zod';
2
- import { phone_number } from '../../phone-number.js';
3
- import { schedule } from '../../schedule.js';
4
- const common_pending_modification = z.object({
5
- created_at: z.string().datetime(),
6
- });
7
- const lifecycle_create = common_pending_modification.extend({
8
- modification_code: z.literal('create'),
9
- });
10
- const acs_user_profile = z.object({
11
- email_address: z.string().email().nullable(),
12
- full_name: z.string().nullable(),
13
- phone_number: phone_number.optional().nullable(),
14
- });
15
- const profile_pending_modification = common_pending_modification.extend({
16
- modification_code: z.literal('profile'),
17
- modified_from: acs_user_profile.partial(),
18
- modified_to: acs_user_profile.partial(),
19
- });
20
- const access_schedule_pending_modification = common_pending_modification.extend({
21
- modification_code: z.literal('access_schedule'),
22
- modified_from: schedule,
23
- modified_to: schedule,
24
- });
25
- const suspension_state_pending_modification = common_pending_modification.extend({
26
- modification_code: z.literal('suspension_state'),
27
- modified_from: z.object({ is_suspended: z.boolean() }),
28
- modified_to: z.object({ is_suspended: z.boolean() }),
29
- });
30
- const acs_access_group_membership_pending_modification = common_pending_modification.extend({
31
- modification_code: z.literal('acs_access_group_membership'),
32
- modified_from: z.object({
33
- acs_access_group_id: z.string().uuid().nullable(),
34
- }),
35
- modified_to: z.object({
36
- acs_access_group_id: z.string().uuid().nullable(),
37
- }),
38
- });
39
- export const acs_user_pending_modification = z.discriminatedUnion('modification_code', [
40
- lifecycle_create,
41
- profile_pending_modification,
42
- access_schedule_pending_modification,
43
- suspension_state_pending_modification,
44
- acs_access_group_membership_pending_modification,
45
- ]);
46
- const acs_user_pending_modifications_map = z.object({
47
- lifecycle_create: lifecycle_create.optional().nullable(),
48
- 'profile.full_name': common_pending_modification
49
- .extend({
50
- modification_code: z.literal('profile'),
51
- modified_from: z.object({
52
- full_name: z.string().nullable(),
53
- }),
54
- modified_to: z.object({
55
- full_name: z.string().nullable(),
56
- }),
57
- })
58
- .optional()
59
- .nullable(),
60
- 'profile.email_address': common_pending_modification
61
- .extend({
62
- modification_code: z.literal('profile'),
63
- modified_from: z.object({
64
- email_address: z.string().email().nullable(),
65
- }),
66
- modified_to: z.object({
67
- email_address: z.string().email().nullable(),
68
- }),
69
- })
70
- .optional()
71
- .nullable(),
72
- 'profile.phone_number': common_pending_modification
73
- .extend({
74
- modification_code: z.literal('profile'),
75
- modified_from: z.object({
76
- phone_number: phone_number.nullable(),
77
- }),
78
- modified_to: z.object({
79
- phone_number: phone_number.nullable(),
80
- }),
81
- })
82
- .optional()
83
- .nullable(),
84
- });
85
- //# sourceMappingURL=pending-modifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pending-modifications.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MA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