@droz-js/sdk 0.9.102 → 0.10.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.9.102",
4
+ "version": "0.10.0",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -157,6 +157,10 @@ export type AgentInfo = {
157
157
  name: Scalars['String']['output'];
158
158
  picture?: Maybe<Scalars['String']['output']>;
159
159
  };
160
+ export type AgentSearchResults = {
161
+ nodes: Array<Agent>;
162
+ stats: SearchResultsStats;
163
+ };
160
164
  export declare enum AgentStatus {
161
165
  Off = "OFF",
162
166
  On = "ON"
@@ -766,7 +770,7 @@ export type Query = {
766
770
  listStateMachineConfigVersions: Array<StateMachineConfig>;
767
771
  listStateMachineConfigsByStatus: StateMachineConfigConnection;
768
772
  listSystemRoles: Array<Role>;
769
- searchAgents: AgentConnection;
773
+ searchAgents: AgentSearchResults;
770
774
  searchCustomers: CustomerSearchResults;
771
775
  searchSessions: SessionSearchResults;
772
776
  version?: Maybe<Scalars['String']['output']>;
@@ -1248,7 +1252,7 @@ export type SearchAgentsQueryVariables = Exact<{
1248
1252
  export type SearchAgentsQuery = {
1249
1253
  searchAgents: {
1250
1254
  nodes: Array<AgentFragment>;
1251
- pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
1255
+ stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
1252
1256
  };
1253
1257
  };
1254
1258
  export type UpdateMyProfileMutationVariables = Exact<{
@@ -1839,7 +1843,7 @@ export declare const GetAgentByEmailDocument = "\n query getAgentByEmail($ema
1839
1843
  export declare const GetAgentsDocument = "\n query getAgents($ids: [ID!]!) {\n getAgents(ids: $ids) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1840
1844
  export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1841
1845
  export declare const ListApiKeyAgentsDocument = "\n query listApiKeyAgents($next: Base64) {\n listApiKeyAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1842
- export declare const SearchAgentsDocument = "\n query searchAgents($query: String, $page: Number) {\n searchAgents(query: $query, page: $page) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1846
+ export declare const SearchAgentsDocument = "\n query searchAgents($query: String, $page: Number) {\n searchAgents(query: $query, page: $page) {\n nodes {\n ...agent\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1843
1847
  export declare const UpdateMyProfileDocument = "\n mutation updateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1844
1848
  export declare const ChangeAgentStatusDocument = "\n mutation changeAgentStatus($input: ChangeAgentStatusInput!) {\n changeAgentStatus(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
1845
1849
  export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n cognitoUserStatus\n systemAgent\n removed\n groupMappings\n createdAt\n updatedAt\n}\n ";
@@ -426,9 +426,13 @@ exports.SearchAgentsDocument = `
426
426
  nodes {
427
427
  ...agent
428
428
  }
429
- pageInfo {
430
- hasNext
431
- next
429
+ stats {
430
+ found
431
+ outOf
432
+ page
433
+ totalPages
434
+ perPage
435
+ searchTime
432
436
  }
433
437
  }
434
438
  }