@messenger-box/platform-client 0.0.1-alpha.465 → 0.0.1-alpha.469
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 +4 -0
- package/lib/generated-model.d.ts +44 -0
- package/lib/index.js +30 -2
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generated-model.tsx +48 -0
- package/src/graphql/queries/teams-query.gql +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/platform-client",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.469",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@container-stack/file-info-client": "^0.0.53",
|
|
23
|
-
"@messenger-box/core": "0.0.1-alpha.
|
|
23
|
+
"@messenger-box/core": "0.0.1-alpha.469",
|
|
24
24
|
"key-mirror": "1.0.1",
|
|
25
25
|
"moment-timezone": "0.5.33"
|
|
26
26
|
},
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"typescript": {
|
|
35
35
|
"definition": "lib/index.d.ts"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "7d83e06383b61e2df192f0eb951a17a02cb3b276"
|
|
38
38
|
}
|
package/src/generated-model.tsx
CHANGED
|
@@ -4996,6 +4996,24 @@ export type IGetOrganizationTeamsQuery = (
|
|
|
4996
4996
|
)>>> }
|
|
4997
4997
|
);
|
|
4998
4998
|
|
|
4999
|
+
export type IGetOrganizationTeamQueryVariables = Exact<{
|
|
5000
|
+
orgName: Scalars['String'];
|
|
5001
|
+
teamName: Scalars['String'];
|
|
5002
|
+
}>;
|
|
5003
|
+
|
|
5004
|
+
|
|
5005
|
+
export type IGetOrganizationTeamQuery = (
|
|
5006
|
+
{ __typename?: 'Query' }
|
|
5007
|
+
& { getTeam?: Maybe<(
|
|
5008
|
+
{ __typename?: 'AccountTeam' }
|
|
5009
|
+
& Pick<IAccountTeam, 'title' | 'orgName' | 'name' | 'id' | 'createdAt' | 'updatedAt' | '_id'>
|
|
5010
|
+
& { teamMembers?: Maybe<Array<Maybe<(
|
|
5011
|
+
{ __typename?: 'TeamMember' }
|
|
5012
|
+
& Pick<ITeamMember, 'id' | 'name' | 'email' | 'username' | 'userId' | 'status' | 'role'>
|
|
5013
|
+
)>>> }
|
|
5014
|
+
)> }
|
|
5015
|
+
);
|
|
5016
|
+
|
|
4999
5017
|
export type IUserAccountQueryVariables = Exact<{
|
|
5000
5018
|
userId: Scalars['String'];
|
|
5001
5019
|
}>;
|
|
@@ -8779,6 +8797,36 @@ export function useGetOrganizationTeamsLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
8779
8797
|
export type GetOrganizationTeamsQueryHookResult = ReturnType<typeof useGetOrganizationTeamsQuery>;
|
|
8780
8798
|
export type GetOrganizationTeamsLazyQueryHookResult = ReturnType<typeof useGetOrganizationTeamsLazyQuery>;
|
|
8781
8799
|
export type GetOrganizationTeamsQueryResult = Apollo.QueryResult<IGetOrganizationTeamsQuery, IGetOrganizationTeamsQueryVariables>;
|
|
8800
|
+
export const GetOrganizationTeamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetOrganizationTeam"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"teamName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getTeam"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orgName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgName"}}},{"kind":"Argument","name":{"kind":"Name","value":"teamName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"teamName"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"orgName"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"_id"}},{"kind":"Field","name":{"kind":"Name","value":"teamMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}}]}}]}}]} as unknown as DocumentNode;
|
|
8801
|
+
|
|
8802
|
+
/**
|
|
8803
|
+
* __useGetOrganizationTeamQuery__
|
|
8804
|
+
*
|
|
8805
|
+
* To run a query within a React component, call `useGetOrganizationTeamQuery` and pass it any options that fit your needs.
|
|
8806
|
+
* When your component renders, `useGetOrganizationTeamQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8807
|
+
* you can use to render your UI.
|
|
8808
|
+
*
|
|
8809
|
+
* @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;
|
|
8810
|
+
*
|
|
8811
|
+
* @example
|
|
8812
|
+
* const { data, loading, error } = useGetOrganizationTeamQuery({
|
|
8813
|
+
* variables: {
|
|
8814
|
+
* orgName: // value for 'orgName'
|
|
8815
|
+
* teamName: // value for 'teamName'
|
|
8816
|
+
* },
|
|
8817
|
+
* });
|
|
8818
|
+
*/
|
|
8819
|
+
export function useGetOrganizationTeamQuery(baseOptions: Apollo.QueryHookOptions<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>) {
|
|
8820
|
+
const options = {...defaultOptions, ...baseOptions}
|
|
8821
|
+
return Apollo.useQuery<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>(GetOrganizationTeamDocument, options);
|
|
8822
|
+
}
|
|
8823
|
+
export function useGetOrganizationTeamLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>) {
|
|
8824
|
+
const options = {...defaultOptions, ...baseOptions}
|
|
8825
|
+
return Apollo.useLazyQuery<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>(GetOrganizationTeamDocument, options);
|
|
8826
|
+
}
|
|
8827
|
+
export type GetOrganizationTeamQueryHookResult = ReturnType<typeof useGetOrganizationTeamQuery>;
|
|
8828
|
+
export type GetOrganizationTeamLazyQueryHookResult = ReturnType<typeof useGetOrganizationTeamLazyQuery>;
|
|
8829
|
+
export type GetOrganizationTeamQueryResult = Apollo.QueryResult<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>;
|
|
8782
8830
|
export const UserAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getUserAccount"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"userId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userId"}}}],"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":"fullName"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}]},{"kind":"Field","name":{"kind":"Name","value":"picture"}},{"kind":"Field","name":{"kind":"Name","value":"alias"}},{"kind":"Field","name":{"kind":"Name","value":"tokens"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"valid"}}]}}]}}]} as unknown as DocumentNode;
|
|
8783
8831
|
|
|
8784
8832
|
/**
|
|
@@ -19,3 +19,24 @@ query GetOrganizationTeams($orgName: String) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
query GetOrganizationTeam($orgName: String!, $teamName: String!) {
|
|
24
|
+
getTeam(orgName: $orgName, teamName: $teamName) {
|
|
25
|
+
title
|
|
26
|
+
orgName
|
|
27
|
+
name
|
|
28
|
+
id
|
|
29
|
+
createdAt
|
|
30
|
+
updatedAt
|
|
31
|
+
_id
|
|
32
|
+
teamMembers {
|
|
33
|
+
id
|
|
34
|
+
name
|
|
35
|
+
email
|
|
36
|
+
username
|
|
37
|
+
userId
|
|
38
|
+
status
|
|
39
|
+
role
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|