@adminide-stack/core 7.2.5-alpha.0 → 7.2.6-alpha.4

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.
@@ -92,7 +92,7 @@ export type Scalars = {
92
92
  output: URI | UriComponents;
93
93
  };
94
94
  };
95
- export type IAccessRole = IApplicationRole | IDefaultRole | IOrganizationRole | IResourceRole;
95
+ export type IAccessRole = IApplicationRole | IDefaultRole | IOrganizationRole | IResourceRole | IUserRole;
96
96
  /** An access token that grants to the holder the privileges of the user who created it. */
97
97
  export type IAccessToken = INode & {
98
98
  __typename?: 'AccessToken';
@@ -698,7 +698,8 @@ export declare enum IClientCacheTypeNames {
698
698
  SettingsGroup = "SettingsGroup",
699
699
  SettingsSection = "SettingsSection",
700
700
  UserAccount = "UserAccount",
701
- UserConfiguration = "UserConfiguration"
701
+ UserConfiguration = "UserConfiguration",
702
+ UserRole = "UserRole"
702
703
  }
703
704
  export declare enum IClientContainerService {
704
705
  ApolloErrorHandler = "ApolloErrorHandler",
@@ -847,6 +848,7 @@ export type IContributionRoles = {
847
848
  description?: Maybe<Scalars['String']['output']>;
848
849
  id?: Maybe<Scalars['String']['output']>;
849
850
  name?: Maybe<Scalars['String']['output']>;
851
+ originalRoleName?: Maybe<Scalars['String']['output']>;
850
852
  permissions?: Maybe<IAccessRole>;
851
853
  target?: Maybe<Scalars['Int']['output']>;
852
854
  };
@@ -1926,6 +1928,7 @@ export type IOrganization = {
1926
1928
  periodStart?: Maybe<Scalars['DateTime']['output']>;
1927
1929
  periodStop?: Maybe<Scalars['DateTime']['output']>;
1928
1930
  picture?: Maybe<Scalars['String']['output']>;
1931
+ resources?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1929
1932
  status?: Maybe<Scalars['String']['output']>;
1930
1933
  stripeId?: Maybe<Scalars['String']['output']>;
1931
1934
  stripeSubscriptionId?: Maybe<Scalars['String']['output']>;
@@ -2215,12 +2218,14 @@ export declare enum IPermissionResource {
2215
2218
  }
2216
2219
  export type IPermissionSubject = {
2217
2220
  __typename?: 'PermissionSubject';
2221
+ /** Partial role */
2222
+ accessRole?: Maybe<IAccessRole>;
2218
2223
  /** The time when this was created. */
2219
2224
  createdAt?: Maybe<Scalars['String']['output']>;
2220
2225
  /** The stringified JSON contents of the permissions. */
2221
2226
  permissions: Scalars['AnyObject']['output'];
2222
2227
  /** The URL to the roles. */
2223
- roleURL: Scalars['URI']['output'];
2228
+ roleURL?: Maybe<Scalars['URI']['output']>;
2224
2229
  };
2225
2230
  export declare enum IPermissionType {
2226
2231
  Allow = "Allow",
@@ -2459,6 +2464,7 @@ export type IQuery = {
2459
2464
  getUserContextData?: Maybe<IUserContext>;
2460
2465
  getUserOrganizations?: Maybe<Array<Maybe<IOrganization>>>;
2461
2466
  getUserOrganizationsWithRole?: Maybe<Array<Maybe<IOrganization>>>;
2467
+ getUserPermissions?: Maybe<IContributionRoles>;
2462
2468
  getUserTokenDetails?: Maybe<IUserToken>;
2463
2469
  getUsers?: Maybe<Array<Maybe<IUserAccount>>>;
2464
2470
  /** Get the available roles and its descriptions */
@@ -2790,7 +2796,12 @@ export declare enum IRole {
2790
2796
  User = "USER"
2791
2797
  }
2792
2798
  export type IRoleInput = {
2799
+ accountId?: InputMaybe<Scalars['String']['input']>;
2800
+ orgName?: InputMaybe<Scalars['String']['input']>;
2801
+ /** @deprecated Use resourceId instead */
2793
2802
  resource?: InputMaybe<Scalars['URIInput']['input']>;
2803
+ resourceId?: InputMaybe<Scalars['String']['input']>;
2804
+ resourceType?: InputMaybe<IConfigCollectionName>;
2794
2805
  roleName?: InputMaybe<Scalars['String']['input']>;
2795
2806
  target: Scalars['Int']['input'];
2796
2807
  };
@@ -3048,6 +3059,7 @@ export type IUserAccount = INode & {
3048
3059
  */
3049
3060
  accessTokens: IAccessTokenConnection;
3050
3061
  alias?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
3062
+ contributionRoles?: Maybe<Scalars['AnyObject']['output']>;
3051
3063
  email?: Maybe<Scalars['String']['output']>;
3052
3064
  emailVerified?: Maybe<Scalars['Boolean']['output']>;
3053
3065
  familyName?: Maybe<Scalars['String']['output']>;
@@ -3206,6 +3218,7 @@ export type IUserConfiguration = IIConfigurationModel & {
3206
3218
  export type IUserContext = {
3207
3219
  __typename?: 'UserContext';
3208
3220
  accountId?: Maybe<Scalars['String']['output']>;
3221
+ accountsRoles?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
3209
3222
  dummy?: Maybe<Scalars['String']['output']>;
3210
3223
  emailId?: Maybe<Scalars['String']['output']>;
3211
3224
  identity?: Maybe<Scalars['AnyObject']['output']>;
@@ -3313,6 +3326,14 @@ export type IUserProfile = IIAuth0Token & IIAuth0User & IIAuth0UserProfile & {
3313
3326
  username: Scalars['String']['output'];
3314
3327
  work_email?: Maybe<Scalars['String']['output']>;
3315
3328
  };
3329
+ export type IUserRole = IIConfigurationModel & {
3330
+ __typename?: 'UserRole';
3331
+ contents?: Maybe<Scalars['AnyObject']['output']>;
3332
+ keys?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
3333
+ overrides?: Maybe<Array<Maybe<IOverrides>>>;
3334
+ resource?: Maybe<Scalars['URI']['output']>;
3335
+ target?: Maybe<Scalars['Int']['output']>;
3336
+ };
3316
3337
  export declare enum IUserServiceAction {
3317
3338
  OnEmailVerified = "onEmailVerified"
3318
3339
  }
@@ -4523,7 +4544,19 @@ type IConfiguration_UserConfiguration_Fragment = {
4523
4544
  identifiers?: Array<string | null> | null;
4524
4545
  } | null> | null;
4525
4546
  };
4526
- export type IConfigurationFragment = IConfiguration_ApplicationConfiguration_Fragment | IConfiguration_ApplicationPolicy_Fragment | IConfiguration_ApplicationRole_Fragment | IConfiguration_DefaultConfiguration_Fragment | IConfiguration_DefaultPolicy_Fragment | IConfiguration_DefaultRole_Fragment | IConfiguration_MachineConfiguration_Fragment | IConfiguration_OrganizationConfiguration_Fragment | IConfiguration_OrganizationPolicy_Fragment | IConfiguration_OrganizationResourceConfiguration_Fragment | IConfiguration_OrganizationRole_Fragment | IConfiguration_PolicyConfiguration_Fragment | IConfiguration_ResourcePolicy_Fragment | IConfiguration_ResourceRole_Fragment | IConfiguration_UserConfiguration_Fragment;
4547
+ type IConfiguration_UserRole_Fragment = {
4548
+ __typename: 'UserRole';
4549
+ resource?: URI | null;
4550
+ target?: number | null;
4551
+ contents?: any | null;
4552
+ keys?: Array<string | null> | null;
4553
+ overrides?: Array<{
4554
+ __typename?: 'Overrides';
4555
+ contents?: any | null;
4556
+ identifiers?: Array<string | null> | null;
4557
+ } | null> | null;
4558
+ };
4559
+ export type IConfigurationFragment = IConfiguration_ApplicationConfiguration_Fragment | IConfiguration_ApplicationPolicy_Fragment | IConfiguration_ApplicationRole_Fragment | IConfiguration_DefaultConfiguration_Fragment | IConfiguration_DefaultPolicy_Fragment | IConfiguration_DefaultRole_Fragment | IConfiguration_MachineConfiguration_Fragment | IConfiguration_OrganizationConfiguration_Fragment | IConfiguration_OrganizationPolicy_Fragment | IConfiguration_OrganizationResourceConfiguration_Fragment | IConfiguration_OrganizationRole_Fragment | IConfiguration_PolicyConfiguration_Fragment | IConfiguration_ResourcePolicy_Fragment | IConfiguration_ResourceRole_Fragment | IConfiguration_UserConfiguration_Fragment | IConfiguration_UserRole_Fragment;
4527
4560
  export type IContextConfigurationFragment = {
4528
4561
  __typename?: 'OrganizationData';
4529
4562
  id: string;
@@ -4735,6 +4768,8 @@ export type IGetApplicationRoleQuery = {
4735
4768
  __typename?: 'OrganizationRole';
4736
4769
  } | {
4737
4770
  __typename?: 'ResourceRole';
4771
+ } | {
4772
+ __typename?: 'UserRole';
4738
4773
  } | null> | null;
4739
4774
  };
4740
4775
  export type IDefaultResolveSettingsQueryVariables = Exact<{
@@ -4911,6 +4946,8 @@ export type IGetDefaultRoleQuery = {
4911
4946
  __typename?: 'OrganizationRole';
4912
4947
  } | {
4913
4948
  __typename?: 'ResourceRole';
4949
+ } | {
4950
+ __typename?: 'UserRole';
4914
4951
  } | null> | null;
4915
4952
  };
4916
4953
  export type IGetTeamContextQueryVariables = Exact<{
@@ -4967,6 +5004,8 @@ export type IGetUserAccessRoleQuery = {
4967
5004
  contents?: any | null;
4968
5005
  identifiers?: Array<string | null> | null;
4969
5006
  } | null> | null;
5007
+ } | {
5008
+ __typename?: 'UserRole';
4970
5009
  } | null> | null;
4971
5010
  resourceUserRoles?: Array<{
4972
5011
  __typename?: 'ResourceUser';
@@ -4975,6 +5014,34 @@ export type IGetUserAccessRoleQuery = {
4975
5014
  } | null> | null;
4976
5015
  } | null;
4977
5016
  };
5017
+ export type IGetUserPermissionsQueryVariables = Exact<{
5018
+ [key: string]: never;
5019
+ }>;
5020
+ export type IGetUserPermissionsQuery = {
5021
+ __typename?: 'Query';
5022
+ getUserPermissions?: {
5023
+ __typename?: 'ContributionRoles';
5024
+ name?: string | null;
5025
+ target?: number | null;
5026
+ id?: string | null;
5027
+ description?: string | null;
5028
+ permissions?: {
5029
+ __typename?: 'ApplicationRole';
5030
+ } | {
5031
+ __typename?: 'DefaultRole';
5032
+ } | {
5033
+ __typename?: 'OrganizationRole';
5034
+ } | {
5035
+ __typename?: 'ResourceRole';
5036
+ } | {
5037
+ __typename?: 'UserRole';
5038
+ target?: number | null;
5039
+ keys?: Array<string | null> | null;
5040
+ contents?: any | null;
5041
+ resource?: URI | null;
5042
+ } | null;
5043
+ } | null;
5044
+ };
4978
5045
  export type IGetUserRoleQueryVariables = Exact<{
4979
5046
  orgName: Scalars['String']['input'];
4980
5047
  userId?: InputMaybe<Scalars['String']['input']>;
@@ -4986,6 +5053,18 @@ export type IGetUserRoleQuery = {
4986
5053
  role?: string | null;
4987
5054
  } | null;
4988
5055
  };
5056
+ export type IGetViewerPermissionsQueryVariables = Exact<{
5057
+ input?: InputMaybe<IRoleInput>;
5058
+ }>;
5059
+ export type IGetViewerPermissionsQuery = {
5060
+ __typename?: 'Query';
5061
+ getViewerPermissions?: {
5062
+ __typename?: 'PermissionSubject';
5063
+ createdAt?: string | null;
5064
+ permissions: any;
5065
+ roleURL?: URI | null;
5066
+ } | null;
5067
+ };
4989
5068
  export type IOpenPreferencesSettingsQueryVariables = Exact<{
4990
5069
  resource?: InputMaybe<Scalars['URI']['input']>;
4991
5070
  jsonEditor?: InputMaybe<Scalars['Boolean']['input']>;
@@ -5059,7 +5138,16 @@ export type IGetOrgRoleQueryVariables = Exact<{
5059
5138
  export type IGetOrgRoleQuery = {
5060
5139
  __typename?: 'Query';
5061
5140
  getRoles?: Array<{
5062
- __typename?: 'ApplicationRole';
5141
+ __typename: 'ApplicationRole';
5142
+ resource?: URI | null;
5143
+ target?: number | null;
5144
+ contents?: any | null;
5145
+ keys?: Array<string | null> | null;
5146
+ overrides?: Array<{
5147
+ __typename?: 'Overrides';
5148
+ contents?: any | null;
5149
+ identifiers?: Array<string | null> | null;
5150
+ } | null> | null;
5063
5151
  } | {
5064
5152
  __typename?: 'DefaultRole';
5065
5153
  } | {
@@ -5074,7 +5162,27 @@ export type IGetOrgRoleQuery = {
5074
5162
  identifiers?: Array<string | null> | null;
5075
5163
  } | null> | null;
5076
5164
  } | {
5077
- __typename?: 'ResourceRole';
5165
+ __typename: 'ResourceRole';
5166
+ resource?: URI | null;
5167
+ target?: number | null;
5168
+ contents?: any | null;
5169
+ keys?: Array<string | null> | null;
5170
+ overrides?: Array<{
5171
+ __typename?: 'Overrides';
5172
+ contents?: any | null;
5173
+ identifiers?: Array<string | null> | null;
5174
+ } | null> | null;
5175
+ } | {
5176
+ __typename: 'UserRole';
5177
+ resource?: URI | null;
5178
+ target?: number | null;
5179
+ contents?: any | null;
5180
+ keys?: Array<string | null> | null;
5181
+ overrides?: Array<{
5182
+ __typename?: 'Overrides';
5183
+ contents?: any | null;
5184
+ identifiers?: Array<string | null> | null;
5185
+ } | null> | null;
5078
5186
  } | null> | null;
5079
5187
  };
5080
5188
  export type IGetOrgWithResourcesPolicyQueryVariables = Exact<{
@@ -5150,6 +5258,17 @@ export type IGetOrgWithResourcesRoleQuery = {
5150
5258
  contents?: any | null;
5151
5259
  identifiers?: Array<string | null> | null;
5152
5260
  } | null> | null;
5261
+ } | {
5262
+ __typename: 'UserRole';
5263
+ resource?: URI | null;
5264
+ target?: number | null;
5265
+ contents?: any | null;
5266
+ keys?: Array<string | null> | null;
5267
+ overrides?: Array<{
5268
+ __typename?: 'Overrides';
5269
+ contents?: any | null;
5270
+ identifiers?: Array<string | null> | null;
5271
+ } | null> | null;
5153
5272
  } | null> | null;
5154
5273
  };
5155
5274
  export type IResolveConfigurationQueryVariables = Exact<{
@@ -5341,6 +5460,8 @@ export type IGetRoleQuery = {
5341
5460
  keys?: Array<string | null> | null;
5342
5461
  } | {
5343
5462
  __typename?: 'ResourceRole';
5463
+ } | {
5464
+ __typename?: 'UserRole';
5344
5465
  } | null;
5345
5466
  };
5346
5467
  export type IGetOrgWithResourcesConfigurationQueryVariables = Exact<{
@@ -5863,6 +5984,17 @@ export type IGetConfigurationDataQuery = {
5863
5984
  contents?: any | null;
5864
5985
  identifiers?: Array<string | null> | null;
5865
5986
  } | null> | null;
5987
+ } | {
5988
+ __typename: 'UserRole';
5989
+ resource?: URI | null;
5990
+ target?: number | null;
5991
+ contents?: any | null;
5992
+ keys?: Array<string | null> | null;
5993
+ overrides?: Array<{
5994
+ __typename?: 'Overrides';
5995
+ contents?: any | null;
5996
+ identifiers?: Array<string | null> | null;
5997
+ } | null> | null;
5866
5998
  } | null;
5867
5999
  user?: {
5868
6000
  __typename: 'ApplicationConfiguration';
@@ -6029,6 +6161,17 @@ export type IGetConfigurationDataQuery = {
6029
6161
  contents?: any | null;
6030
6162
  identifiers?: Array<string | null> | null;
6031
6163
  } | null> | null;
6164
+ } | {
6165
+ __typename: 'UserRole';
6166
+ resource?: URI | null;
6167
+ target?: number | null;
6168
+ contents?: any | null;
6169
+ keys?: Array<string | null> | null;
6170
+ overrides?: Array<{
6171
+ __typename?: 'Overrides';
6172
+ contents?: any | null;
6173
+ identifiers?: Array<string | null> | null;
6174
+ } | null> | null;
6032
6175
  } | null;
6033
6176
  machine?: {
6034
6177
  __typename: 'ApplicationConfiguration';
@@ -6195,6 +6338,17 @@ export type IGetConfigurationDataQuery = {
6195
6338
  contents?: any | null;
6196
6339
  identifiers?: Array<string | null> | null;
6197
6340
  } | null> | null;
6341
+ } | {
6342
+ __typename: 'UserRole';
6343
+ resource?: URI | null;
6344
+ target?: number | null;
6345
+ contents?: any | null;
6346
+ keys?: Array<string | null> | null;
6347
+ overrides?: Array<{
6348
+ __typename?: 'Overrides';
6349
+ contents?: any | null;
6350
+ identifiers?: Array<string | null> | null;
6351
+ } | null> | null;
6198
6352
  } | null;
6199
6353
  organization?: {
6200
6354
  __typename: 'ApplicationConfiguration';
@@ -6361,6 +6515,17 @@ export type IGetConfigurationDataQuery = {
6361
6515
  contents?: any | null;
6362
6516
  identifiers?: Array<string | null> | null;
6363
6517
  } | null> | null;
6518
+ } | {
6519
+ __typename: 'UserRole';
6520
+ resource?: URI | null;
6521
+ target?: number | null;
6522
+ contents?: any | null;
6523
+ keys?: Array<string | null> | null;
6524
+ overrides?: Array<{
6525
+ __typename?: 'Overrides';
6526
+ contents?: any | null;
6527
+ identifiers?: Array<string | null> | null;
6528
+ } | null> | null;
6364
6529
  } | null;
6365
6530
  resources?: Array<{
6366
6531
  __typename: 'ApplicationConfiguration';
@@ -6527,6 +6692,17 @@ export type IGetConfigurationDataQuery = {
6527
6692
  contents?: any | null;
6528
6693
  identifiers?: Array<string | null> | null;
6529
6694
  } | null> | null;
6695
+ } | {
6696
+ __typename: 'UserRole';
6697
+ resource?: URI | null;
6698
+ target?: number | null;
6699
+ contents?: any | null;
6700
+ keys?: Array<string | null> | null;
6701
+ overrides?: Array<{
6702
+ __typename?: 'Overrides';
6703
+ contents?: any | null;
6704
+ identifiers?: Array<string | null> | null;
6705
+ } | null> | null;
6530
6706
  } | null> | null;
6531
6707
  } | null;
6532
6708
  };
@@ -8871,6 +9047,35 @@ export type GetUserAccessRoleQueryHookResult = ReturnType<typeof useGetUserAcces
8871
9047
  export type GetUserAccessRoleLazyQueryHookResult = ReturnType<typeof useGetUserAccessRoleLazyQuery>;
8872
9048
  export type GetUserAccessRoleSuspenseQueryHookResult = ReturnType<typeof useGetUserAccessRoleSuspenseQuery>;
8873
9049
  export type GetUserAccessRoleQueryResult = Apollo.QueryResult<IGetUserAccessRoleQuery, IGetUserAccessRoleQueryVariables>;
9050
+ export declare const GetUserPermissionsDocument: DocumentNode;
9051
+ /**
9052
+ * __useGetUserPermissionsQuery__
9053
+ *
9054
+ * To run a query within a React component, call `useGetUserPermissionsQuery` and pass it any options that fit your needs.
9055
+ * When your component renders, `useGetUserPermissionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
9056
+ * you can use to render your UI.
9057
+ *
9058
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
9059
+ *
9060
+ * @example
9061
+ * const { data, loading, error } = useGetUserPermissionsQuery({
9062
+ * variables: {
9063
+ * },
9064
+ * });
9065
+ */
9066
+ export declare function useGetUserPermissionsQuery(baseOptions?: Apollo.QueryHookOptions<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>): Apollo.QueryResult<IGetUserPermissionsQuery, Exact<{
9067
+ [key: string]: never;
9068
+ }>>;
9069
+ export declare function useGetUserPermissionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>): Apollo.LazyQueryResultTuple<IGetUserPermissionsQuery, Exact<{
9070
+ [key: string]: never;
9071
+ }>>;
9072
+ export declare function useGetUserPermissionsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>): Apollo.UseSuspenseQueryResult<IGetUserPermissionsQuery, Exact<{
9073
+ [key: string]: never;
9074
+ }>>;
9075
+ export type GetUserPermissionsQueryHookResult = ReturnType<typeof useGetUserPermissionsQuery>;
9076
+ export type GetUserPermissionsLazyQueryHookResult = ReturnType<typeof useGetUserPermissionsLazyQuery>;
9077
+ export type GetUserPermissionsSuspenseQueryHookResult = ReturnType<typeof useGetUserPermissionsSuspenseQuery>;
9078
+ export type GetUserPermissionsQueryResult = Apollo.QueryResult<IGetUserPermissionsQuery, IGetUserPermissionsQueryVariables>;
8874
9079
  export declare const GetUserRoleDocument: DocumentNode;
8875
9080
  /**
8876
9081
  * __useGetUserRoleQuery__
@@ -8910,6 +9115,36 @@ export type GetUserRoleQueryHookResult = ReturnType<typeof useGetUserRoleQuery>;
8910
9115
  export type GetUserRoleLazyQueryHookResult = ReturnType<typeof useGetUserRoleLazyQuery>;
8911
9116
  export type GetUserRoleSuspenseQueryHookResult = ReturnType<typeof useGetUserRoleSuspenseQuery>;
8912
9117
  export type GetUserRoleQueryResult = Apollo.QueryResult<IGetUserRoleQuery, IGetUserRoleQueryVariables>;
9118
+ export declare const GetViewerPermissionsDocument: DocumentNode;
9119
+ /**
9120
+ * __useGetViewerPermissionsQuery__
9121
+ *
9122
+ * To run a query within a React component, call `useGetViewerPermissionsQuery` and pass it any options that fit your needs.
9123
+ * When your component renders, `useGetViewerPermissionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
9124
+ * you can use to render your UI.
9125
+ *
9126
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
9127
+ *
9128
+ * @example
9129
+ * const { data, loading, error } = useGetViewerPermissionsQuery({
9130
+ * variables: {
9131
+ * input: // value for 'input'
9132
+ * },
9133
+ * });
9134
+ */
9135
+ export declare function useGetViewerPermissionsQuery(baseOptions?: Apollo.QueryHookOptions<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>): Apollo.QueryResult<IGetViewerPermissionsQuery, Exact<{
9136
+ input?: IRoleInput;
9137
+ }>>;
9138
+ export declare function useGetViewerPermissionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>): Apollo.LazyQueryResultTuple<IGetViewerPermissionsQuery, Exact<{
9139
+ input?: IRoleInput;
9140
+ }>>;
9141
+ export declare function useGetViewerPermissionsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>): Apollo.UseSuspenseQueryResult<IGetViewerPermissionsQuery, Exact<{
9142
+ input?: IRoleInput;
9143
+ }>>;
9144
+ export type GetViewerPermissionsQueryHookResult = ReturnType<typeof useGetViewerPermissionsQuery>;
9145
+ export type GetViewerPermissionsLazyQueryHookResult = ReturnType<typeof useGetViewerPermissionsLazyQuery>;
9146
+ export type GetViewerPermissionsSuspenseQueryHookResult = ReturnType<typeof useGetViewerPermissionsSuspenseQuery>;
9147
+ export type GetViewerPermissionsQueryResult = Apollo.QueryResult<IGetViewerPermissionsQuery, IGetViewerPermissionsQueryVariables>;
8913
9148
  export declare const OpenPreferencesSettingsDocument: DocumentNode;
8914
9149
  /**
8915
9150
  * __useOpenPreferencesSettingsQuery__
@@ -9835,32 +10070,32 @@ export type NextResolverFn<T> = () => Promise<T>;
9835
10070
  export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
9836
10071
  /** Mapping of union types */
9837
10072
  export type IResolversUnionTypes<_RefType extends Record<string, unknown>> = {
9838
- AccessRole: (IApplicationRole) | (IDefaultRole) | (IOrganizationRole) | (IResourceRole);
9839
- Configuration: (IApplicationConfiguration) | (IDefaultConfiguration) | (IMachineConfiguration) | (IOrganizationConfiguration) | (IOrganizationResourceConfiguration) | (IPolicyConfiguration) | (IUserConfiguration);
9840
- ConfigurationPolicy: (IApplicationPolicy) | (IDefaultPolicy) | (IOrganizationPolicy) | (IResourcePolicy);
9841
- ResourceData: (IExternalResourceData) | (IOrganizationResourceData);
9842
- SettingsSubject: (IApplicationSettings) | (IDefaultSettings) | (IGlobalSettings) | (IMachineSettings) | (IMemorySettings) | (IOrganizationResourceSettings) | (IOrganizationSettings) | (IUserSettings);
10073
+ AccessRole: IApplicationRole | IDefaultRole | IOrganizationRole | IResourceRole | IUserRole;
10074
+ Configuration: IApplicationConfiguration | IDefaultConfiguration | IMachineConfiguration | IOrganizationConfiguration | IOrganizationResourceConfiguration | IPolicyConfiguration | IUserConfiguration;
10075
+ ConfigurationPolicy: IApplicationPolicy | IDefaultPolicy | IOrganizationPolicy | IResourcePolicy;
10076
+ ResourceData: IExternalResourceData | IOrganizationResourceData;
10077
+ SettingsSubject: IApplicationSettings | IDefaultSettings | IGlobalSettings | IMachineSettings | IMemorySettings | IOrganizationResourceSettings | IOrganizationSettings | IUserSettings;
9843
10078
  };
9844
10079
  /** Mapping of interface types */
9845
10080
  export type IResolversInterfaceTypes<_RefType extends Record<string, unknown>> = {
9846
10081
  IAuth0Identity: never;
9847
- IAuth0Token: (IUserProfile);
9848
- IAuth0User: (IUserProfile);
9849
- IAuth0UserProfile: (IUserProfile);
9850
- ICity: (ICity);
9851
- IConfigurationModel: (IApplicationConfiguration) | (IApplicationPolicy) | (IApplicationRole) | (IDefaultConfiguration) | (IDefaultPolicy) | (IDefaultRole) | (IMachineConfiguration) | (IOrganizationConfiguration) | (IOrganizationPolicy) | (IOrganizationResourceConfiguration) | (IOrganizationRole) | (IPolicyConfiguration) | (IResourcePolicy) | (IResourceRole) | (IUserConfiguration);
10082
+ IAuth0Token: IUserProfile;
10083
+ IAuth0User: IUserProfile;
10084
+ IAuth0UserProfile: IUserProfile;
10085
+ ICity: ICity;
10086
+ IConfigurationModel: IApplicationConfiguration | IApplicationPolicy | IApplicationRole | IDefaultConfiguration | IDefaultPolicy | IDefaultRole | IMachineConfiguration | IOrganizationConfiguration | IOrganizationPolicy | IOrganizationResourceConfiguration | IOrganizationRole | IPolicyConfiguration | IResourcePolicy | IResourceRole | IUserConfiguration | IUserRole;
9852
10087
  IConfigurationService: never;
9853
- ICountry: (ICountry);
9854
- IEventWithContext: (IOrganizationCreatedEvent) | (IOrganizationDeletedEvent);
9855
- IOrgUser: (IOrgUser);
9856
- IResourceData: (IExternalResourceData) | (IOrganizationResourceData);
9857
- IResourceUserRole: (IResourceUser);
10088
+ ICountry: ICountry;
10089
+ IEventWithContext: IOrganizationCreatedEvent | IOrganizationDeletedEvent;
10090
+ IOrgUser: IOrgUser;
10091
+ IResourceData: IExternalResourceData | IOrganizationResourceData;
10092
+ IResourceUserRole: IResourceUser;
9858
10093
  IResourceUtilizationSettings: never;
9859
- ISettingsSubject: (IApplicationSettings) | (IDefaultSettings) | (IGlobalSettings) | (IMachineSettings) | (IMemorySettings) | (IOrganizationResourceSettings) | (IOrganizationSettings) | (IUserSettings);
9860
- ITerritorialState: (IState);
9861
- IUser: (IAuthUser);
9862
- IUserMetadata: (IUserMetadata);
9863
- Node: (IAccessToken) | (IApiExternalAccount) | (IApiManagement) | (IUserAccount);
10094
+ ISettingsSubject: IApplicationSettings | IDefaultSettings | IGlobalSettings | IMachineSettings | IMemorySettings | IOrganizationResourceSettings | IOrganizationSettings | IUserSettings;
10095
+ ITerritorialState: IState;
10096
+ IUser: IAuthUser;
10097
+ IUserMetadata: IUserMetadata;
10098
+ Node: IAccessToken | IApiExternalAccount | IApiManagement | IUserAccount;
9864
10099
  };
9865
10100
  /** Mapping between all available schema types and the resolvers types */
9866
10101
  export type IResolversTypes = {
@@ -10044,7 +10279,9 @@ export type IResolversTypes = {
10044
10279
  PageInfo: ResolverTypeWrapper<IPageInfo>;
10045
10280
  PermissionAction: IPermissionAction;
10046
10281
  PermissionResource: IPermissionResource;
10047
- PermissionSubject: ResolverTypeWrapper<IPermissionSubject>;
10282
+ PermissionSubject: ResolverTypeWrapper<Omit<IPermissionSubject, 'accessRole'> & {
10283
+ accessRole?: Maybe<IResolversTypes['AccessRole']>;
10284
+ }>;
10048
10285
  PermissionType: IPermissionType;
10049
10286
  PhoneNumber: ResolverTypeWrapper<IPhoneNumber>;
10050
10287
  PhoneNumberInput: IPhoneNumberInput;
@@ -10146,6 +10383,7 @@ export type IResolversTypes = {
10146
10383
  UserPasswordResetInput: IUserPasswordResetInput;
10147
10384
  UserPreviousValues: ResolverTypeWrapper<IUserPreviousValues>;
10148
10385
  UserProfile: ResolverTypeWrapper<IUserProfile>;
10386
+ UserRole: ResolverTypeWrapper<IUserRole>;
10149
10387
  UserServiceAction: IUserServiceAction;
10150
10388
  UserSession: ResolverTypeWrapper<IUserSession>;
10151
10389
  UserSessionId: ResolverTypeWrapper<IUserSessionId>;
@@ -10312,7 +10550,9 @@ export type IResolversParentTypes = {
10312
10550
  OrganizationsDeletedEvent: IOrganizationsDeletedEvent;
10313
10551
  Overrides: IOverrides;
10314
10552
  PageInfo: IPageInfo;
10315
- PermissionSubject: IPermissionSubject;
10553
+ PermissionSubject: Omit<IPermissionSubject, 'accessRole'> & {
10554
+ accessRole?: Maybe<IResolversParentTypes['AccessRole']>;
10555
+ };
10316
10556
  PhoneNumber: IPhoneNumber;
10317
10557
  PhoneNumberInput: IPhoneNumberInput;
10318
10558
  PolicyConfiguration: IPolicyConfiguration;
@@ -10401,6 +10641,7 @@ export type IResolversParentTypes = {
10401
10641
  UserPasswordResetInput: IUserPasswordResetInput;
10402
10642
  UserPreviousValues: IUserPreviousValues;
10403
10643
  UserProfile: IUserProfile;
10644
+ UserRole: IUserRole;
10404
10645
  UserSession: IUserSession;
10405
10646
  UserSessionId: IUserSessionId;
10406
10647
  UserSettings: IUserSettings;
@@ -10435,7 +10676,7 @@ export type IIsAuthenticatedDirectiveResolver<Result, Parent, ContextType = MyCo
10435
10676
  export type IProfileDirectiveArgs = {};
10436
10677
  export type IProfileDirectiveResolver<Result, Parent, ContextType = MyContext, Args = IProfileDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
10437
10678
  export type IAccessRoleResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['AccessRole'] = IResolversParentTypes['AccessRole']> = {
10438
- __resolveType: TypeResolveFn<'ApplicationRole' | 'DefaultRole' | 'OrganizationRole' | 'ResourceRole', ParentType, ContextType>;
10679
+ __resolveType: TypeResolveFn<'ApplicationRole' | 'DefaultRole' | 'OrganizationRole' | 'ResourceRole' | 'UserRole', ParentType, ContextType>;
10439
10680
  };
10440
10681
  export type IAccessTokenResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['AccessToken'] = IResolversParentTypes['AccessToken']> = {
10441
10682
  createdAt?: Resolver<IResolversTypes['DateTime'], ParentType, ContextType>;
@@ -10702,6 +10943,7 @@ export type IContributionRolesResolvers<ContextType = MyContext, ParentType exte
10702
10943
  description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10703
10944
  id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10704
10945
  name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10946
+ originalRoleName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
10705
10947
  permissions?: Resolver<Maybe<IResolversTypes['AccessRole']>, ParentType, ContextType>;
10706
10948
  target?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
10707
10949
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
@@ -10914,7 +11156,7 @@ export type IICityResolvers<ContextType = MyContext, ParentType extends IResolve
10914
11156
  updatedAt?: Resolver<IResolversTypes['DateTime'], ParentType, ContextType>;
10915
11157
  };
10916
11158
  export type IIConfigurationModelResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['IConfigurationModel'] = IResolversParentTypes['IConfigurationModel']> = {
10917
- __resolveType: TypeResolveFn<'ApplicationConfiguration' | 'ApplicationPolicy' | 'ApplicationRole' | 'DefaultConfiguration' | 'DefaultPolicy' | 'DefaultRole' | 'MachineConfiguration' | 'OrganizationConfiguration' | 'OrganizationPolicy' | 'OrganizationResourceConfiguration' | 'OrganizationRole' | 'PolicyConfiguration' | 'ResourcePolicy' | 'ResourceRole' | 'UserConfiguration', ParentType, ContextType>;
11159
+ __resolveType: TypeResolveFn<'ApplicationConfiguration' | 'ApplicationPolicy' | 'ApplicationRole' | 'DefaultConfiguration' | 'DefaultPolicy' | 'DefaultRole' | 'MachineConfiguration' | 'OrganizationConfiguration' | 'OrganizationPolicy' | 'OrganizationResourceConfiguration' | 'OrganizationRole' | 'PolicyConfiguration' | 'ResourcePolicy' | 'ResourceRole' | 'UserConfiguration' | 'UserRole', ParentType, ContextType>;
10918
11160
  contents?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
10919
11161
  keys?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
10920
11162
  overrides?: Resolver<Maybe<Array<Maybe<IResolversTypes['Overrides']>>>, ParentType, ContextType>;
@@ -11220,6 +11462,7 @@ export type IOrganizationResolvers<ContextType = MyContext, ParentType extends I
11220
11462
  periodStart?: Resolver<Maybe<IResolversTypes['DateTime']>, ParentType, ContextType>;
11221
11463
  periodStop?: Resolver<Maybe<IResolversTypes['DateTime']>, ParentType, ContextType>;
11222
11464
  picture?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11465
+ resources?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
11223
11466
  status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11224
11467
  stripeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11225
11468
  stripeSubscriptionId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -11362,9 +11605,10 @@ export type IPageInfoResolvers<ContextType = MyContext, ParentType extends IReso
11362
11605
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11363
11606
  };
11364
11607
  export type IPermissionSubjectResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['PermissionSubject'] = IResolversParentTypes['PermissionSubject']> = {
11608
+ accessRole?: Resolver<Maybe<IResolversTypes['AccessRole']>, ParentType, ContextType>;
11365
11609
  createdAt?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11366
11610
  permissions?: Resolver<IResolversTypes['AnyObject'], ParentType, ContextType>;
11367
- roleURL?: Resolver<IResolversTypes['URI'], ParentType, ContextType>;
11611
+ roleURL?: Resolver<Maybe<IResolversTypes['URI']>, ParentType, ContextType>;
11368
11612
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11369
11613
  };
11370
11614
  export type IPhoneNumberResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['PhoneNumber'] = IResolversParentTypes['PhoneNumber']> = {
@@ -11526,6 +11770,7 @@ export type IQueryResolvers<ContextType = MyContext, ParentType extends IResolve
11526
11770
  getUserContextData?: Resolver<Maybe<IResolversTypes['UserContext']>, ParentType, ContextType>;
11527
11771
  getUserOrganizations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType, Partial<IQueryGetUserOrganizationsArgs>>;
11528
11772
  getUserOrganizationsWithRole?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType, Partial<IQueryGetUserOrganizationsWithRoleArgs>>;
11773
+ getUserPermissions?: Resolver<Maybe<IResolversTypes['ContributionRoles']>, ParentType, ContextType>;
11529
11774
  getUserTokenDetails?: Resolver<Maybe<IResolversTypes['UserToken']>, ParentType, ContextType, Partial<IQueryGetUserTokenDetailsArgs>>;
11530
11775
  getUsers?: Resolver<Maybe<Array<Maybe<IResolversTypes['UserAccount']>>>, ParentType, ContextType, Partial<IQueryGetUsersArgs>>;
11531
11776
  getViewerPermissions?: Resolver<Maybe<IResolversTypes['PermissionSubject']>, ParentType, ContextType, Partial<IQueryGetViewerPermissionsArgs>>;
@@ -11663,11 +11908,11 @@ export type ISubscribedOrganizationDataResolvers<ContextType = MyContext, Parent
11663
11908
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11664
11909
  };
11665
11910
  export type ISubscriptionResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
11666
- SubscribeToConfigurationUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToConfigurationUpdate", ParentType, ContextType, RequireFields<ISubscriptionSubscribeToConfigurationUpdateArgs, 'orgName'>>;
11667
- SubscribeToOrganizationContext?: SubscriptionResolver<Maybe<IResolversTypes['SubscribedOrganizationData']>, "SubscribeToOrganizationContext", ParentType, ContextType, Partial<ISubscriptionSubscribeToOrganizationContextArgs>>;
11668
- SubscribeToPermissionUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToPermissionUpdate", ParentType, ContextType, Partial<ISubscriptionSubscribeToPermissionUpdateArgs>>;
11669
- SubscribeToPolicyUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToPolicyUpdate", ParentType, ContextType, Partial<ISubscriptionSubscribeToPolicyUpdateArgs>>;
11670
- dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, "dummy", ParentType, ContextType>;
11911
+ SubscribeToConfigurationUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, 'SubscribeToConfigurationUpdate', ParentType, ContextType, RequireFields<ISubscriptionSubscribeToConfigurationUpdateArgs, 'orgName'>>;
11912
+ SubscribeToOrganizationContext?: SubscriptionResolver<Maybe<IResolversTypes['SubscribedOrganizationData']>, 'SubscribeToOrganizationContext', ParentType, ContextType, Partial<ISubscriptionSubscribeToOrganizationContextArgs>>;
11913
+ SubscribeToPermissionUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, 'SubscribeToPermissionUpdate', ParentType, ContextType, Partial<ISubscriptionSubscribeToPermissionUpdateArgs>>;
11914
+ SubscribeToPolicyUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, 'SubscribeToPolicyUpdate', ParentType, ContextType, Partial<ISubscriptionSubscribeToPolicyUpdateArgs>>;
11915
+ dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, 'dummy', ParentType, ContextType>;
11671
11916
  };
11672
11917
  export type ITeamInvitationEmailVariablesResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['TeamInvitationEmailVariables'] = IResolversParentTypes['TeamInvitationEmailVariables']> = {
11673
11918
  name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -11695,6 +11940,7 @@ export interface IUriInputScalarConfig extends GraphQLScalarTypeConfig<IResolver
11695
11940
  export type IUserAccountResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserAccount'] = IResolversParentTypes['UserAccount']> = {
11696
11941
  accessTokens?: Resolver<IResolversTypes['AccessTokenConnection'], ParentType, ContextType, Partial<IUserAccountAccessTokensArgs>>;
11697
11942
  alias?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
11943
+ contributionRoles?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
11698
11944
  email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11699
11945
  emailVerified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
11700
11946
  familyName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -11767,6 +12013,7 @@ export type IUserConfigurationResolvers<ContextType = MyContext, ParentType exte
11767
12013
  };
11768
12014
  export type IUserContextResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserContext'] = IResolversParentTypes['UserContext']> = {
11769
12015
  accountId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
12016
+ accountsRoles?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
11770
12017
  dummy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11771
12018
  emailId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11772
12019
  identity?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
@@ -11844,6 +12091,14 @@ export type IUserProfileResolvers<ContextType = MyContext, ParentType extends IR
11844
12091
  work_email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
11845
12092
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
11846
12093
  };
12094
+ export type IUserRoleResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserRole'] = IResolversParentTypes['UserRole']> = {
12095
+ contents?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType>;
12096
+ keys?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
12097
+ overrides?: Resolver<Maybe<Array<Maybe<IResolversTypes['Overrides']>>>, ParentType, ContextType>;
12098
+ resource?: Resolver<Maybe<IResolversTypes['URI']>, ParentType, ContextType>;
12099
+ target?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
12100
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
12101
+ };
11847
12102
  export type IUserSessionResolvers<ContextType = MyContext, ParentType extends IResolversParentTypes['UserSession'] = IResolversParentTypes['UserSession']> = {
11848
12103
  deviceInfo?: Resolver<Maybe<IResolversTypes['UserAuth0SessionDeviceInfo']>, ParentType, ContextType>;
11849
12104
  lastLoginAt?: Resolver<Maybe<IResolversTypes['Date']>, ParentType, ContextType>;
@@ -12064,6 +12319,7 @@ export type IResolvers<ContextType = MyContext> = {
12064
12319
  UserMetadata?: IUserMetadataResolvers<ContextType>;
12065
12320
  UserPreviousValues?: IUserPreviousValuesResolvers<ContextType>;
12066
12321
  UserProfile?: IUserProfileResolvers<ContextType>;
12322
+ UserRole?: IUserRoleResolvers<ContextType>;
12067
12323
  UserSession?: IUserSessionResolvers<ContextType>;
12068
12324
  UserSessionId?: IUserSessionIdResolvers<ContextType>;
12069
12325
  UserSettings?: IUserSettingsResolvers<ContextType>;