@constructive-io/react 0.19.5 → 0.19.6

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 (45) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +6 -6
  4. package/admin/hooks/invalidation.js +15 -15
  5. package/admin/hooks/mutation-keys.d.ts +12 -12
  6. package/admin/hooks/mutation-keys.js +8 -8
  7. package/admin/hooks/mutations/index.d.ts +3 -3
  8. package/admin/hooks/mutations/index.js +3 -3
  9. package/admin/hooks/queries/index.d.ts +2 -2
  10. package/admin/hooks/queries/index.js +2 -2
  11. package/admin/hooks/query-keys.d.ts +14 -14
  12. package/admin/hooks/query-keys.js +9 -9
  13. package/admin/orm/index.d.ts +2 -2
  14. package/admin/orm/index.js +2 -2
  15. package/admin/orm/input-types.d.ts +190 -183
  16. package/admin/orm/models/index.d.ts +1 -1
  17. package/admin/orm/models/index.js +3 -3
  18. package/admin/schema-types.d.ts +147 -141
  19. package/admin/types.d.ts +18 -17
  20. package/esm/admin/hooks/index.d.ts +1 -1
  21. package/esm/admin/hooks/index.js +1 -1
  22. package/esm/admin/hooks/invalidation.d.ts +6 -6
  23. package/esm/admin/hooks/invalidation.js +16 -16
  24. package/esm/admin/hooks/mutation-keys.d.ts +12 -12
  25. package/esm/admin/hooks/mutation-keys.js +7 -7
  26. package/esm/admin/hooks/mutations/index.d.ts +3 -3
  27. package/esm/admin/hooks/mutations/index.js +3 -3
  28. package/esm/admin/hooks/queries/index.d.ts +2 -2
  29. package/esm/admin/hooks/queries/index.js +2 -2
  30. package/esm/admin/hooks/query-keys.d.ts +14 -14
  31. package/esm/admin/hooks/query-keys.js +8 -8
  32. package/esm/admin/orm/index.d.ts +2 -2
  33. package/esm/admin/orm/index.js +2 -2
  34. package/esm/admin/orm/input-types.d.ts +190 -183
  35. package/esm/admin/orm/models/index.d.ts +1 -1
  36. package/esm/admin/orm/models/index.js +1 -1
  37. package/esm/admin/schema-types.d.ts +147 -141
  38. package/esm/admin/types.d.ts +18 -17
  39. package/esm/public/orm/input-types.d.ts +10 -1
  40. package/esm/public/schema-types.d.ts +111 -105
  41. package/esm/public/types.d.ts +1 -0
  42. package/package.json +4 -4
  43. package/public/orm/input-types.d.ts +10 -1
  44. package/public/schema-types.d.ts +111 -105
  45. package/public/types.d.ts +1 -0
@@ -210,7 +210,7 @@ export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC
210
210
  /** Methods to use when ordering `AppClaimedInvite`. */
211
211
  export type AppClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
212
212
  /** Methods to use when ordering `OrgInvite`. */
213
- export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
213
+ export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
214
214
  /** Methods to use when ordering `OrgClaimedInvite`. */
215
215
  export type OrgClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
216
216
  /** Methods to use when ordering `AuditLog`. */
@@ -2607,6 +2607,8 @@ export interface OrgInviteFilter {
2607
2607
  multiple?: BooleanFilter;
2608
2608
  /** Filter by the object’s `profileId` field. */
2609
2609
  profileId?: UUIDFilter;
2610
+ /** Filter by the object’s `isReadOnly` field. */
2611
+ isReadOnly?: BooleanFilter;
2610
2612
  /** Filter by the object’s `expiresAt` field. */
2611
2613
  expiresAt?: DatetimeFilter;
2612
2614
  /** Filter by the object’s `createdAt` field. */
@@ -11269,40 +11271,6 @@ export interface WebauthnSettingInput {
11269
11271
  /** Challenge TTL in seconds (default 300 = 5 minutes) */
11270
11272
  challengeExpirySeconds?: string;
11271
11273
  }
11272
- export interface CreateOrgInviteInput {
11273
- clientMutationId?: string;
11274
- /** The `OrgInvite` to be created by this mutation. */
11275
- orgInvite: OrgInviteInput;
11276
- }
11277
- /** An input for mutations affecting `OrgInvite` */
11278
- export interface OrgInviteInput {
11279
- id?: string;
11280
- /** Email address of the invited recipient */
11281
- email?: ConstructiveInternalTypeEmail;
11282
- /** User ID of the member who sent this invitation */
11283
- senderId?: string;
11284
- /** User ID of the intended recipient, if targeting a specific user */
11285
- receiverId?: string;
11286
- /** Unique random hex token used to redeem this invitation */
11287
- inviteToken?: string;
11288
- /** Whether this invitation is still valid and can be redeemed */
11289
- inviteValid?: boolean;
11290
- /** Maximum number of times this invite can be claimed; -1 means unlimited */
11291
- inviteLimit?: number;
11292
- /** Running count of how many times this invite has been claimed */
11293
- inviteCount?: number;
11294
- /** Whether this invite can be claimed by multiple recipients */
11295
- multiple?: boolean;
11296
- /** Optional JSON payload of additional invite metadata */
11297
- data?: unknown;
11298
- /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
11299
- profileId?: string;
11300
- /** Timestamp after which this invitation can no longer be redeemed */
11301
- expiresAt?: string;
11302
- createdAt?: string;
11303
- updatedAt?: string;
11304
- entityId: string;
11305
- }
11306
11274
  export interface CreateAppMembershipInput {
11307
11275
  clientMutationId?: string;
11308
11276
  /** The `AppMembership` to be created by this mutation. */
@@ -11386,6 +11354,42 @@ export interface IndexInput {
11386
11354
  createdAt?: string;
11387
11355
  updatedAt?: string;
11388
11356
  }
11357
+ export interface CreateOrgInviteInput {
11358
+ clientMutationId?: string;
11359
+ /** The `OrgInvite` to be created by this mutation. */
11360
+ orgInvite: OrgInviteInput;
11361
+ }
11362
+ /** An input for mutations affecting `OrgInvite` */
11363
+ export interface OrgInviteInput {
11364
+ id?: string;
11365
+ /** Email address of the invited recipient */
11366
+ email?: ConstructiveInternalTypeEmail;
11367
+ /** User ID of the member who sent this invitation */
11368
+ senderId?: string;
11369
+ /** User ID of the intended recipient, if targeting a specific user */
11370
+ receiverId?: string;
11371
+ /** Unique random hex token used to redeem this invitation */
11372
+ inviteToken?: string;
11373
+ /** Whether this invitation is still valid and can be redeemed */
11374
+ inviteValid?: boolean;
11375
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
11376
+ inviteLimit?: number;
11377
+ /** Running count of how many times this invite has been claimed */
11378
+ inviteCount?: number;
11379
+ /** Whether this invite can be claimed by multiple recipients */
11380
+ multiple?: boolean;
11381
+ /** Optional JSON payload of additional invite metadata */
11382
+ data?: unknown;
11383
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
11384
+ profileId?: string;
11385
+ /** Whether the resulting membership should be read-only when this invite is claimed */
11386
+ isReadOnly?: boolean;
11387
+ /** Timestamp after which this invitation can no longer be redeemed */
11388
+ expiresAt?: string;
11389
+ createdAt?: string;
11390
+ updatedAt?: string;
11391
+ entityId: string;
11392
+ }
11389
11393
  export interface CreateBillingProviderModuleInput {
11390
11394
  clientMutationId?: string;
11391
11395
  /** The `BillingProviderModule` to be created by this mutation. */
@@ -14699,41 +14703,6 @@ export interface WebauthnSettingPatch {
14699
14703
  /** Challenge TTL in seconds (default 300 = 5 minutes) */
14700
14704
  challengeExpirySeconds?: string;
14701
14705
  }
14702
- export interface UpdateOrgInviteInput {
14703
- clientMutationId?: string;
14704
- id: string;
14705
- /** An object where the defined keys will be set on the `OrgInvite` being updated. */
14706
- orgInvitePatch: OrgInvitePatch;
14707
- }
14708
- /** Represents an update to a `OrgInvite`. Fields that are set will be updated. */
14709
- export interface OrgInvitePatch {
14710
- id?: string;
14711
- /** Email address of the invited recipient */
14712
- email?: ConstructiveInternalTypeEmail;
14713
- /** User ID of the member who sent this invitation */
14714
- senderId?: string;
14715
- /** User ID of the intended recipient, if targeting a specific user */
14716
- receiverId?: string;
14717
- /** Unique random hex token used to redeem this invitation */
14718
- inviteToken?: string;
14719
- /** Whether this invitation is still valid and can be redeemed */
14720
- inviteValid?: boolean;
14721
- /** Maximum number of times this invite can be claimed; -1 means unlimited */
14722
- inviteLimit?: number;
14723
- /** Running count of how many times this invite has been claimed */
14724
- inviteCount?: number;
14725
- /** Whether this invite can be claimed by multiple recipients */
14726
- multiple?: boolean;
14727
- /** Optional JSON payload of additional invite metadata */
14728
- data?: unknown;
14729
- /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
14730
- profileId?: string;
14731
- /** Timestamp after which this invitation can no longer be redeemed */
14732
- expiresAt?: string;
14733
- createdAt?: string;
14734
- updatedAt?: string;
14735
- entityId?: string;
14736
- }
14737
14706
  export interface UpdateAppMembershipInput {
14738
14707
  clientMutationId?: string;
14739
14708
  id: string;
@@ -14820,6 +14789,43 @@ export interface IndexPatch {
14820
14789
  createdAt?: string;
14821
14790
  updatedAt?: string;
14822
14791
  }
14792
+ export interface UpdateOrgInviteInput {
14793
+ clientMutationId?: string;
14794
+ id: string;
14795
+ /** An object where the defined keys will be set on the `OrgInvite` being updated. */
14796
+ orgInvitePatch: OrgInvitePatch;
14797
+ }
14798
+ /** Represents an update to a `OrgInvite`. Fields that are set will be updated. */
14799
+ export interface OrgInvitePatch {
14800
+ id?: string;
14801
+ /** Email address of the invited recipient */
14802
+ email?: ConstructiveInternalTypeEmail;
14803
+ /** User ID of the member who sent this invitation */
14804
+ senderId?: string;
14805
+ /** User ID of the intended recipient, if targeting a specific user */
14806
+ receiverId?: string;
14807
+ /** Unique random hex token used to redeem this invitation */
14808
+ inviteToken?: string;
14809
+ /** Whether this invitation is still valid and can be redeemed */
14810
+ inviteValid?: boolean;
14811
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
14812
+ inviteLimit?: number;
14813
+ /** Running count of how many times this invite has been claimed */
14814
+ inviteCount?: number;
14815
+ /** Whether this invite can be claimed by multiple recipients */
14816
+ multiple?: boolean;
14817
+ /** Optional JSON payload of additional invite metadata */
14818
+ data?: unknown;
14819
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
14820
+ profileId?: string;
14821
+ /** Whether the resulting membership should be read-only when this invite is claimed */
14822
+ isReadOnly?: boolean;
14823
+ /** Timestamp after which this invitation can no longer be redeemed */
14824
+ expiresAt?: string;
14825
+ createdAt?: string;
14826
+ updatedAt?: string;
14827
+ entityId?: string;
14828
+ }
14823
14829
  export interface UpdateBillingProviderModuleInput {
14824
14830
  clientMutationId?: string;
14825
14831
  id: string;
@@ -16107,10 +16113,6 @@ export interface DeleteWebauthnSettingInput {
16107
16113
  /** Unique identifier for this WebAuthn settings record */
16108
16114
  id: string;
16109
16115
  }
16110
- export interface DeleteOrgInviteInput {
16111
- clientMutationId?: string;
16112
- id: string;
16113
- }
16114
16116
  export interface DeleteAppMembershipInput {
16115
16117
  clientMutationId?: string;
16116
16118
  id: string;
@@ -16123,6 +16125,10 @@ export interface DeleteIndexInput {
16123
16125
  clientMutationId?: string;
16124
16126
  id: string;
16125
16127
  }
16128
+ export interface DeleteOrgInviteInput {
16129
+ clientMutationId?: string;
16130
+ id: string;
16131
+ }
16126
16132
  export interface DeleteBillingProviderModuleInput {
16127
16133
  clientMutationId?: string;
16128
16134
  id: string;
@@ -17105,13 +17111,6 @@ export interface WebauthnSettingConnection {
17105
17111
  pageInfo: PageInfo;
17106
17112
  totalCount: number;
17107
17113
  }
17108
- /** A connection to a list of `OrgInvite` values. */
17109
- export interface OrgInviteConnection {
17110
- nodes: OrgInvite[];
17111
- edges: OrgInviteEdge[];
17112
- pageInfo: PageInfo;
17113
- totalCount: number;
17114
- }
17115
17114
  /** A connection to a list of `AppMembership` values. */
17116
17115
  export interface AppMembershipConnection {
17117
17116
  nodes: AppMembership[];
@@ -17133,6 +17132,13 @@ export interface IndexConnection {
17133
17132
  pageInfo: PageInfo;
17134
17133
  totalCount: number;
17135
17134
  }
17135
+ /** A connection to a list of `OrgInvite` values. */
17136
+ export interface OrgInviteConnection {
17137
+ nodes: OrgInvite[];
17138
+ edges: OrgInviteEdge[];
17139
+ pageInfo: PageInfo;
17140
+ totalCount: number;
17141
+ }
17136
17142
  /** A connection to a list of `BillingProviderModule` values. */
17137
17143
  export interface BillingProviderModuleConnection {
17138
17144
  nodes: BillingProviderModule[];
@@ -18180,12 +18186,6 @@ export interface CreateWebauthnSettingPayload {
18180
18186
  webauthnSetting?: WebauthnSetting | null;
18181
18187
  webauthnSettingEdge?: WebauthnSettingEdge | null;
18182
18188
  }
18183
- export interface CreateOrgInvitePayload {
18184
- clientMutationId?: string | null;
18185
- /** The `OrgInvite` that was created by this mutation. */
18186
- orgInvite?: OrgInvite | null;
18187
- orgInviteEdge?: OrgInviteEdge | null;
18188
- }
18189
18189
  export interface CreateAppMembershipPayload {
18190
18190
  clientMutationId?: string | null;
18191
18191
  /** The `AppMembership` that was created by this mutation. */
@@ -18204,6 +18204,12 @@ export interface CreateIndexPayload {
18204
18204
  index?: Index | null;
18205
18205
  indexEdge?: IndexEdge | null;
18206
18206
  }
18207
+ export interface CreateOrgInvitePayload {
18208
+ clientMutationId?: string | null;
18209
+ /** The `OrgInvite` that was created by this mutation. */
18210
+ orgInvite?: OrgInvite | null;
18211
+ orgInviteEdge?: OrgInviteEdge | null;
18212
+ }
18207
18213
  export interface CreateBillingProviderModulePayload {
18208
18214
  clientMutationId?: string | null;
18209
18215
  /** The `BillingProviderModule` that was created by this mutation. */
@@ -19014,12 +19020,6 @@ export interface UpdateWebauthnSettingPayload {
19014
19020
  webauthnSetting?: WebauthnSetting | null;
19015
19021
  webauthnSettingEdge?: WebauthnSettingEdge | null;
19016
19022
  }
19017
- export interface UpdateOrgInvitePayload {
19018
- clientMutationId?: string | null;
19019
- /** The `OrgInvite` that was updated by this mutation. */
19020
- orgInvite?: OrgInvite | null;
19021
- orgInviteEdge?: OrgInviteEdge | null;
19022
- }
19023
19023
  export interface UpdateAppMembershipPayload {
19024
19024
  clientMutationId?: string | null;
19025
19025
  /** The `AppMembership` that was updated by this mutation. */
@@ -19038,6 +19038,12 @@ export interface UpdateIndexPayload {
19038
19038
  index?: Index | null;
19039
19039
  indexEdge?: IndexEdge | null;
19040
19040
  }
19041
+ export interface UpdateOrgInvitePayload {
19042
+ clientMutationId?: string | null;
19043
+ /** The `OrgInvite` that was updated by this mutation. */
19044
+ orgInvite?: OrgInvite | null;
19045
+ orgInviteEdge?: OrgInviteEdge | null;
19046
+ }
19041
19047
  export interface UpdateBillingProviderModulePayload {
19042
19048
  clientMutationId?: string | null;
19043
19049
  /** The `BillingProviderModule` that was updated by this mutation. */
@@ -19848,12 +19854,6 @@ export interface DeleteWebauthnSettingPayload {
19848
19854
  webauthnSetting?: WebauthnSetting | null;
19849
19855
  webauthnSettingEdge?: WebauthnSettingEdge | null;
19850
19856
  }
19851
- export interface DeleteOrgInvitePayload {
19852
- clientMutationId?: string | null;
19853
- /** The `OrgInvite` that was deleted by this mutation. */
19854
- orgInvite?: OrgInvite | null;
19855
- orgInviteEdge?: OrgInviteEdge | null;
19856
- }
19857
19857
  export interface DeleteAppMembershipPayload {
19858
19858
  clientMutationId?: string | null;
19859
19859
  /** The `AppMembership` that was deleted by this mutation. */
@@ -19872,6 +19872,12 @@ export interface DeleteIndexPayload {
19872
19872
  index?: Index | null;
19873
19873
  indexEdge?: IndexEdge | null;
19874
19874
  }
19875
+ export interface DeleteOrgInvitePayload {
19876
+ clientMutationId?: string | null;
19877
+ /** The `OrgInvite` that was deleted by this mutation. */
19878
+ orgInvite?: OrgInvite | null;
19879
+ orgInviteEdge?: OrgInviteEdge | null;
19880
+ }
19875
19881
  export interface DeleteBillingProviderModulePayload {
19876
19882
  clientMutationId?: string | null;
19877
19883
  /** The `BillingProviderModule` that was deleted by this mutation. */
@@ -20767,12 +20773,6 @@ export interface WebauthnSettingEdge {
20767
20773
  /** The `WebauthnSetting` at the end of the edge. */
20768
20774
  node?: WebauthnSetting | null;
20769
20775
  }
20770
- /** A `OrgInvite` edge in the connection. */
20771
- export interface OrgInviteEdge {
20772
- cursor?: string | null;
20773
- /** The `OrgInvite` at the end of the edge. */
20774
- node?: OrgInvite | null;
20775
- }
20776
20776
  /** A `AppMembership` edge in the connection. */
20777
20777
  export interface AppMembershipEdge {
20778
20778
  cursor?: string | null;
@@ -20791,6 +20791,12 @@ export interface IndexEdge {
20791
20791
  /** The `Index` at the end of the edge. */
20792
20792
  node?: Index | null;
20793
20793
  }
20794
+ /** A `OrgInvite` edge in the connection. */
20795
+ export interface OrgInviteEdge {
20796
+ cursor?: string | null;
20797
+ /** The `OrgInvite` at the end of the edge. */
20798
+ node?: OrgInvite | null;
20799
+ }
20794
20800
  /** A `BillingProviderModule` edge in the connection. */
20795
20801
  export interface BillingProviderModuleEdge {
20796
20802
  cursor?: string | null;
package/public/types.d.ts CHANGED
@@ -1350,6 +1350,7 @@ export interface OrgInvite {
1350
1350
  multiple: boolean | null;
1351
1351
  data: unknown | null;
1352
1352
  profileId: string | null;
1353
+ isReadOnly: boolean | null;
1353
1354
  expiresAt: string | null;
1354
1355
  createdAt: string | null;
1355
1356
  updatedAt: string | null;