@messenger-box/platform-client 0.0.1-alpha.190 → 0.0.1-alpha.191
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/CHANGELOG.md +11 -0
- package/lib/generated-model.d.ts +31 -7
- package/lib/index.js +6 -1
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generated-model.tsx +26 -6
- package/src/graphql/queries/channels-by-user.gql +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.0.1-alpha.191](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.190...v0.0.1-alpha.191) (2022-07-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **messenger:** add filters to users channel query ([6b349c6](https://github.com/cdmbase/messenger-box/commit/6b349c6db204413dd3f5eb991f8fc8d80a0304a2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.0.1-alpha.190](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.189...v0.0.1-alpha.190) (2022-07-07)
|
|
7
18
|
|
|
8
19
|
|
package/lib/generated-model.d.ts
CHANGED
|
@@ -2399,6 +2399,13 @@ export declare type IQuerychannelByNameArgs = {
|
|
|
2399
2399
|
export declare type IQuerychannelsArgs = {
|
|
2400
2400
|
filter?: Maybe<IChannelFilterInput>;
|
|
2401
2401
|
};
|
|
2402
|
+
export declare type IQuerychannelsByUserArgs = {
|
|
2403
|
+
role?: Maybe<Scalars['String']>;
|
|
2404
|
+
criteria?: Maybe<Scalars['AnyObject']>;
|
|
2405
|
+
limit?: Maybe<Scalars['Int']>;
|
|
2406
|
+
skip?: Maybe<Scalars['Int']>;
|
|
2407
|
+
sort?: Maybe<ISort>;
|
|
2408
|
+
};
|
|
2402
2409
|
export declare type IQuerycurrentUserArgs = {
|
|
2403
2410
|
auth0Id: Scalars['String'];
|
|
2404
2411
|
};
|
|
@@ -3402,7 +3409,11 @@ export declare type IGetAllChannelQuery = ({
|
|
|
3402
3409
|
})>>>;
|
|
3403
3410
|
});
|
|
3404
3411
|
export declare type IGetChannelsByUserQueryVariables = Exact<{
|
|
3405
|
-
[
|
|
3412
|
+
role?: Maybe<Scalars['String']>;
|
|
3413
|
+
criteria?: Maybe<Scalars['AnyObject']>;
|
|
3414
|
+
limit?: Maybe<Scalars['Int']>;
|
|
3415
|
+
skip?: Maybe<Scalars['Int']>;
|
|
3416
|
+
sort?: Maybe<ISort>;
|
|
3406
3417
|
}>;
|
|
3407
3418
|
export declare type IGetChannelsByUserQuery = ({
|
|
3408
3419
|
__typename?: 'Query';
|
|
@@ -3580,6 +3591,8 @@ export declare type IResolversTypes = {
|
|
|
3580
3591
|
ChannelFilterInput: IChannelFilterInput;
|
|
3581
3592
|
ChannelPrivacy: IChannelPrivacy;
|
|
3582
3593
|
ChannelSort: IChannelSort;
|
|
3594
|
+
Sort: ISort;
|
|
3595
|
+
SortEnum: ISortEnum;
|
|
3583
3596
|
OrganizationInvitationDecode: ResolverTypeWrapper<IOrganizationInvitationDecode>;
|
|
3584
3597
|
SettingsGroup: ResolverTypeWrapper<ISettingsGroup>;
|
|
3585
3598
|
Range: ResolverTypeWrapper<IRange>;
|
|
@@ -3635,8 +3648,6 @@ export declare type IResolversTypes = {
|
|
|
3635
3648
|
UserDevice: ResolverTypeWrapper<IUserDevice>;
|
|
3636
3649
|
FileInfo: ResolverTypeWrapper<IFileInfo>;
|
|
3637
3650
|
FileRefType: IFileRefType;
|
|
3638
|
-
Sort: ISort;
|
|
3639
|
-
SortEnum: ISortEnum;
|
|
3640
3651
|
FilesInfo: ResolverTypeWrapper<IFilesInfo>;
|
|
3641
3652
|
IntegrationConfigurationFilterInput: IIntegrationConfigurationFilterInput;
|
|
3642
3653
|
IntegrationConfiguration: ResolverTypeWrapper<IIntegrationConfiguration>;
|
|
@@ -3880,6 +3891,7 @@ export declare type IResolversParentTypes = {
|
|
|
3880
3891
|
ChannelMember: IChannelMember;
|
|
3881
3892
|
AnyObject: Scalars['AnyObject'];
|
|
3882
3893
|
ChannelFilterInput: IChannelFilterInput;
|
|
3894
|
+
Sort: ISort;
|
|
3883
3895
|
OrganizationInvitationDecode: IOrganizationInvitationDecode;
|
|
3884
3896
|
SettingsGroup: ISettingsGroup;
|
|
3885
3897
|
Range: IRange;
|
|
@@ -3929,7 +3941,6 @@ export declare type IResolversParentTypes = {
|
|
|
3929
3941
|
UserMetadata: IUserMetadata;
|
|
3930
3942
|
UserDevice: IUserDevice;
|
|
3931
3943
|
FileInfo: IFileInfo;
|
|
3932
|
-
Sort: ISort;
|
|
3933
3944
|
FilesInfo: IFilesInfo;
|
|
3934
3945
|
IntegrationConfigurationFilterInput: IIntegrationConfigurationFilterInput;
|
|
3935
3946
|
IntegrationConfiguration: IIntegrationConfiguration;
|
|
@@ -5276,7 +5287,7 @@ export declare type IProjectSourceResolvers<ContextType = any, ParentType extend
|
|
|
5276
5287
|
export declare type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
5277
5288
|
channelByName?: Resolver<Maybe<IResolversTypes['Channel']>, ParentType, ContextType, RequireFields<IQuerychannelByNameArgs, 'name'>>;
|
|
5278
5289
|
channels?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType, RequireFields<IQuerychannelsArgs, 'filter'>>;
|
|
5279
|
-
channelsByUser?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType
|
|
5290
|
+
channelsByUser?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType, RequireFields<IQuerychannelsByUserArgs, never>>;
|
|
5280
5291
|
currentUser?: Resolver<Maybe<IResolversTypes['UserAccount']>, ParentType, ContextType, RequireFields<IQuerycurrentUserArgs, 'auth0Id'>>;
|
|
5281
5292
|
decodeOrganizationInvitation?: Resolver<Maybe<IResolversTypes['OrganizationInvitationDecode']>, ParentType, ContextType, RequireFields<IQuerydecodeOrganizationInvitationArgs, 'token'>>;
|
|
5282
5293
|
defaultPermissions?: Resolver<Maybe<Array<Maybe<IResolversTypes['SettingsGroup']>>>, ParentType, ContextType, RequireFields<IQuerydefaultPermissionsArgs, never>>;
|
|
@@ -6125,14 +6136,27 @@ export declare const GetChannelsByUserDocument: DocumentNode;
|
|
|
6125
6136
|
* @example
|
|
6126
6137
|
* const { data, loading, error } = useGetChannelsByUserQuery({
|
|
6127
6138
|
* variables: {
|
|
6139
|
+
* role: // value for 'role'
|
|
6140
|
+
* criteria: // value for 'criteria'
|
|
6141
|
+
* limit: // value for 'limit'
|
|
6142
|
+
* skip: // value for 'skip'
|
|
6143
|
+
* sort: // value for 'sort'
|
|
6128
6144
|
* },
|
|
6129
6145
|
* });
|
|
6130
6146
|
*/
|
|
6131
6147
|
export declare function useGetChannelsByUserQuery(baseOptions?: Apollo.QueryHookOptions<IGetChannelsByUserQuery, IGetChannelsByUserQueryVariables>): Apollo.QueryResult<IGetChannelsByUserQuery, Exact<{
|
|
6132
|
-
|
|
6148
|
+
role?: string;
|
|
6149
|
+
criteria?: any;
|
|
6150
|
+
limit?: number;
|
|
6151
|
+
skip?: number;
|
|
6152
|
+
sort?: ISort;
|
|
6133
6153
|
}>>;
|
|
6134
6154
|
export declare function useGetChannelsByUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetChannelsByUserQuery, IGetChannelsByUserQueryVariables>): Apollo.QueryTuple<IGetChannelsByUserQuery, Exact<{
|
|
6135
|
-
|
|
6155
|
+
role?: string;
|
|
6156
|
+
criteria?: any;
|
|
6157
|
+
limit?: number;
|
|
6158
|
+
skip?: number;
|
|
6159
|
+
sort?: ISort;
|
|
6136
6160
|
}>>;
|
|
6137
6161
|
export declare type GetChannelsByUserQueryHookResult = ReturnType<typeof useGetChannelsByUserQuery>;
|
|
6138
6162
|
export declare type GetChannelsByUserLazyQueryHookResult = ReturnType<typeof useGetChannelsByUserLazyQuery>;
|
package/lib/index.js
CHANGED
|
@@ -843,7 +843,7 @@ function useGetAllChannelLazyQuery(baseOptions) {
|
|
|
843
843
|
return Apollo.useLazyQuery(exports.GetAllChannelDocument, options);
|
|
844
844
|
}
|
|
845
845
|
exports.useGetAllChannelLazyQuery = useGetAllChannelLazyQuery;
|
|
846
|
-
exports.GetChannelsByUserDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetChannelsByUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "channelsByUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "MessengerUser" } }] } }] } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "MessengerUser" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "UserAccount" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "givenName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "familyName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "picture" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }] };
|
|
846
|
+
exports.GetChannelsByUserDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetChannelsByUser" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "role" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "criteria" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "AnyObject" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "skip" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "sort" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Sort" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "channelsByUser" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "role" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "role" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "criteria" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "criteria" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "skip" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "skip" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "sort" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "sort" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "MessengerUser" } }] } }] } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "MessengerUser" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "UserAccount" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "givenName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "familyName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "picture" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }] };
|
|
847
847
|
/**
|
|
848
848
|
* __useGetChannelsByUserQuery__
|
|
849
849
|
*
|
|
@@ -856,6 +856,11 @@ exports.GetChannelsByUserDocument = { "kind": "Document", "definitions": [{ "kin
|
|
|
856
856
|
* @example
|
|
857
857
|
* const { data, loading, error } = useGetChannelsByUserQuery({
|
|
858
858
|
* variables: {
|
|
859
|
+
* role: // value for 'role'
|
|
860
|
+
* criteria: // value for 'criteria'
|
|
861
|
+
* limit: // value for 'limit'
|
|
862
|
+
* skip: // value for 'skip'
|
|
863
|
+
* sort: // value for 'sort'
|
|
859
864
|
* },
|
|
860
865
|
* });
|
|
861
866
|
*/
|