@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messenger-box/platform-client",
3
- "version": "0.0.1-alpha.190",
3
+ "version": "0.0.1-alpha.191",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -19,7 +19,7 @@
19
19
  "watch": "yarn build:lib:watch"
20
20
  },
21
21
  "dependencies": {
22
- "@messenger-box/core": "0.0.1-alpha.190",
22
+ "@messenger-box/core": "0.0.1-alpha.191",
23
23
  "key-mirror": "1.0.1",
24
24
  "moment-timezone": "0.5.33"
25
25
  },
@@ -33,5 +33,5 @@
33
33
  "typescript": {
34
34
  "definition": "lib/index.d.ts"
35
35
  },
36
- "gitHead": "f25fb61c1f7d29a08355d18ca5c29321d53516c3"
36
+ "gitHead": "922c1b688510e6f5f3643860ca3896a10daeb5ee"
37
37
  }
@@ -2766,6 +2766,15 @@ export type IQuerychannelsArgs = {
2766
2766
  };
2767
2767
 
2768
2768
 
2769
+ export type IQuerychannelsByUserArgs = {
2770
+ role?: Maybe<Scalars['String']>;
2771
+ criteria?: Maybe<Scalars['AnyObject']>;
2772
+ limit?: Maybe<Scalars['Int']>;
2773
+ skip?: Maybe<Scalars['Int']>;
2774
+ sort?: Maybe<ISort>;
2775
+ };
2776
+
2777
+
2769
2778
  export type IQuerycurrentUserArgs = {
2770
2779
  auth0Id: Scalars['String'];
2771
2780
  };
@@ -4018,7 +4027,13 @@ export type IGetAllChannelQuery = (
4018
4027
  )>>> }
4019
4028
  );
4020
4029
 
4021
- export type IGetChannelsByUserQueryVariables = Exact<{ [key: string]: never; }>;
4030
+ export type IGetChannelsByUserQueryVariables = Exact<{
4031
+ role?: Maybe<Scalars['String']>;
4032
+ criteria?: Maybe<Scalars['AnyObject']>;
4033
+ limit?: Maybe<Scalars['Int']>;
4034
+ skip?: Maybe<Scalars['Int']>;
4035
+ sort?: Maybe<ISort>;
4036
+ }>;
4022
4037
 
4023
4038
 
4024
4039
  export type IGetChannelsByUserQuery = (
@@ -4267,6 +4282,8 @@ export type IResolversTypes = {
4267
4282
  ChannelFilterInput: IChannelFilterInput;
4268
4283
  ChannelPrivacy: IChannelPrivacy;
4269
4284
  ChannelSort: IChannelSort;
4285
+ Sort: ISort;
4286
+ SortEnum: ISortEnum;
4270
4287
  OrganizationInvitationDecode: ResolverTypeWrapper<IOrganizationInvitationDecode>;
4271
4288
  SettingsGroup: ResolverTypeWrapper<ISettingsGroup>;
4272
4289
  Range: ResolverTypeWrapper<IRange>;
@@ -4320,8 +4337,6 @@ export type IResolversTypes = {
4320
4337
  UserDevice: ResolverTypeWrapper<IUserDevice>;
4321
4338
  FileInfo: ResolverTypeWrapper<IFileInfo>;
4322
4339
  FileRefType: IFileRefType;
4323
- Sort: ISort;
4324
- SortEnum: ISortEnum;
4325
4340
  FilesInfo: ResolverTypeWrapper<IFilesInfo>;
4326
4341
  IntegrationConfigurationFilterInput: IIntegrationConfigurationFilterInput;
4327
4342
  IntegrationConfiguration: ResolverTypeWrapper<IIntegrationConfiguration>;
@@ -4556,6 +4571,7 @@ export type IResolversParentTypes = {
4556
4571
  ChannelMember: IChannelMember;
4557
4572
  AnyObject: Scalars['AnyObject'];
4558
4573
  ChannelFilterInput: IChannelFilterInput;
4574
+ Sort: ISort;
4559
4575
  OrganizationInvitationDecode: IOrganizationInvitationDecode;
4560
4576
  SettingsGroup: ISettingsGroup;
4561
4577
  Range: IRange;
@@ -4603,7 +4619,6 @@ export type IResolversParentTypes = {
4603
4619
  UserMetadata: IUserMetadata;
4604
4620
  UserDevice: IUserDevice;
4605
4621
  FileInfo: IFileInfo;
4606
- Sort: ISort;
4607
4622
  FilesInfo: IFilesInfo;
4608
4623
  IntegrationConfigurationFilterInput: IIntegrationConfigurationFilterInput;
4609
4624
  IntegrationConfiguration: IIntegrationConfiguration;
@@ -6076,7 +6091,7 @@ export type IProjectSourceResolvers<ContextType = any, ParentType extends IResol
6076
6091
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
6077
6092
  channelByName?: Resolver<Maybe<IResolversTypes['Channel']>, ParentType, ContextType, RequireFields<IQuerychannelByNameArgs, 'name'>>;
6078
6093
  channels?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType, RequireFields<IQuerychannelsArgs, 'filter'>>;
6079
- channelsByUser?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType>;
6094
+ channelsByUser?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType, RequireFields<IQuerychannelsByUserArgs, never>>;
6080
6095
  currentUser?: Resolver<Maybe<IResolversTypes['UserAccount']>, ParentType, ContextType, RequireFields<IQuerycurrentUserArgs, 'auth0Id'>>;
6081
6096
  decodeOrganizationInvitation?: Resolver<Maybe<IResolversTypes['OrganizationInvitationDecode']>, ParentType, ContextType, RequireFields<IQuerydecodeOrganizationInvitationArgs, 'token'>>;
6082
6097
  defaultPermissions?: Resolver<Maybe<Array<Maybe<IResolversTypes['SettingsGroup']>>>, ParentType, ContextType, RequireFields<IQuerydefaultPermissionsArgs, never>>;
@@ -6965,7 +6980,7 @@ export function useGetAllChannelLazyQuery(baseOptions?: Apollo.LazyQueryHookOpti
6965
6980
  export type GetAllChannelQueryHookResult = ReturnType<typeof useGetAllChannelQuery>;
6966
6981
  export type GetAllChannelLazyQueryHookResult = ReturnType<typeof useGetAllChannelLazyQuery>;
6967
6982
  export type GetAllChannelQueryResult = Apollo.QueryResult<IGetAllChannelQuery, IGetAllChannelQueryVariables>;
6968
- export const 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"}}]}}]} as unknown as DocumentNode;
6983
+ export const 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"}}]}}]} as unknown as DocumentNode;
6969
6984
 
6970
6985
  /**
6971
6986
  * __useGetChannelsByUserQuery__
@@ -6979,6 +6994,11 @@ export const GetChannelsByUserDocument = {"kind":"Document","definitions":[{"kin
6979
6994
  * @example
6980
6995
  * const { data, loading, error } = useGetChannelsByUserQuery({
6981
6996
  * variables: {
6997
+ * role: // value for 'role'
6998
+ * criteria: // value for 'criteria'
6999
+ * limit: // value for 'limit'
7000
+ * skip: // value for 'skip'
7001
+ * sort: // value for 'sort'
6982
7002
  * },
6983
7003
  * });
6984
7004
  */
@@ -1,5 +1,5 @@
1
- query GetChannelsByUser{
2
- channelsByUser{
1
+ query GetChannelsByUser($role:String, $criteria:AnyObject, $limit:Int, $skip:Int, $sort:Sort){
2
+ channelsByUser(role:$role, criteria:$criteria, limit:$limit, skip:$skip, sort:$sort){
3
3
  id
4
4
  title
5
5
  description