@droz-js/sdk 0.9.82 → 0.9.83
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 +1 -1
- package/src/sdks/nucleus.d.ts +7 -3
- package/src/sdks/nucleus.js +7 -3
package/package.json
CHANGED
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -359,6 +359,10 @@ export declare enum CustomerIndex {
|
|
|
359
359
|
ByExternalId = "byExternalId",
|
|
360
360
|
ByPhone = "byPhone"
|
|
361
361
|
}
|
|
362
|
+
export type CustomerSearchResults = {
|
|
363
|
+
nodes: Array<Customer>;
|
|
364
|
+
stats: SearchResultsStats;
|
|
365
|
+
};
|
|
362
366
|
export declare enum CustomerStatus {
|
|
363
367
|
Active = "Active",
|
|
364
368
|
Archived = "Archived",
|
|
@@ -740,7 +744,7 @@ export type Query = {
|
|
|
740
744
|
listStateMachineConfigsByStatus: StateMachineConfigConnection;
|
|
741
745
|
listSystemRoles: Array<Role>;
|
|
742
746
|
searchAgents: AgentConnection;
|
|
743
|
-
searchCustomers:
|
|
747
|
+
searchCustomers: CustomerSearchResults;
|
|
744
748
|
searchSessions: Array<IndexedSession>;
|
|
745
749
|
version?: Maybe<Scalars['String']['output']>;
|
|
746
750
|
};
|
|
@@ -1461,7 +1465,7 @@ export type SearchCustomersQueryVariables = Exact<{
|
|
|
1461
1465
|
export type SearchCustomersQuery = {
|
|
1462
1466
|
searchCustomers: {
|
|
1463
1467
|
nodes: Array<CustomerFragment>;
|
|
1464
|
-
|
|
1468
|
+
stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
|
|
1465
1469
|
};
|
|
1466
1470
|
};
|
|
1467
1471
|
export type CreateCustomerMutationVariables = Exact<{
|
|
@@ -1805,7 +1809,7 @@ export declare const RemoveSystemCredentialsDocument = "\n mutation removeSys
|
|
|
1805
1809
|
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1806
1810
|
export declare const BatchGetCustomersByIdDocument = "\n query batchGetCustomersById($ids: [ID!]!) {\n batchGetCustomersById(ids: $ids) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1807
1811
|
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1808
|
-
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query, page: $page) {\n nodes {\n ...customer\n }\n
|
|
1812
|
+
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query, page: $page) {\n nodes {\n ...customer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1809
1813
|
export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1810
1814
|
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1811
1815
|
export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED