@droz-js/sdk 0.12.0 → 0.12.2
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/drozbot.d.ts +3 -0
- package/src/nucleus.d.ts +2 -0
- package/src/sdks/drozbot.d.ts +19 -0
- package/src/sdks/drozbot.js +18 -1
- package/src/sdks/nucleus.d.ts +19 -1
- package/src/sdks/nucleus.js +7 -2
package/package.json
CHANGED
package/src/drozbot.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
33
33
|
listDrozBotInstances(variables?: import("./sdks/drozbot").Exact<{
|
|
34
34
|
[key: string]: never;
|
|
35
35
|
}>, options?: unknown): Promise<import("./sdks/drozbot").ListDrozBotInstancesQuery>;
|
|
36
|
+
getCustomerByPhone(variables: import("./sdks/drozbot").Exact<{
|
|
37
|
+
phone: import("./sdks/drozbot").Scalars["PhoneNumber"]["input"];
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").GetCustomerByPhoneQuery>;
|
|
36
39
|
createDrozBotInstance(variables: import("./sdks/drozbot").Exact<{
|
|
37
40
|
input: import("./sdks/drozbot").CreateDrozBotInstanceInput;
|
|
38
41
|
}>, options?: unknown): Promise<import("./sdks/drozbot").CreateDrozBotInstanceMutation>;
|
package/src/nucleus.d.ts
CHANGED
|
@@ -154,7 +154,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
154
154
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListCustomersQuery>;
|
|
155
155
|
searchCustomers(variables?: import("./sdks/nucleus").Exact<{
|
|
156
156
|
query?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["String"]["input"]>;
|
|
157
|
+
filters?: import("./sdks/nucleus").InputMaybe<Array<import("./sdks/nucleus").CustomerSearchFilterInput> | import("./sdks/nucleus").CustomerSearchFilterInput>;
|
|
157
158
|
page?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["Number"]["input"]>;
|
|
159
|
+
perPage?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["Number"]["input"]>;
|
|
158
160
|
}>, options?: unknown): Promise<import("./sdks/nucleus").SearchCustomersQuery>;
|
|
159
161
|
dynamicSearchCustomer(variables: import("./sdks/nucleus").Exact<{
|
|
160
162
|
data: import("./sdks/nucleus").DynamicSearchInput;
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -261,6 +261,11 @@ export type CreateManyDrozBotTicketCommentsInput = {
|
|
|
261
261
|
export declare enum DrozBotAssessType {
|
|
262
262
|
Nps = "NPS"
|
|
263
263
|
}
|
|
264
|
+
export type DrozBotCustomer = {
|
|
265
|
+
id: Scalars['ID']['output'];
|
|
266
|
+
name: Scalars['String']['output'];
|
|
267
|
+
phones?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
268
|
+
};
|
|
264
269
|
export type DrozBotInstance = {
|
|
265
270
|
createdAt: Scalars['DateTime']['output'];
|
|
266
271
|
credentialId: Scalars['ID']['output'];
|
|
@@ -447,6 +452,7 @@ export type PredictIntentInput = {
|
|
|
447
452
|
};
|
|
448
453
|
export type Query = {
|
|
449
454
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
455
|
+
getCustomerByPhone?: Maybe<DrozBotCustomer>;
|
|
450
456
|
getDrozBotInstance?: Maybe<DrozBotInstance>;
|
|
451
457
|
getDrozbotAiAction?: Maybe<AiAction>;
|
|
452
458
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
@@ -459,6 +465,9 @@ export type Query = {
|
|
|
459
465
|
listWhatsAppBots: Array<DrozBotWhatsAppBot>;
|
|
460
466
|
version?: Maybe<Scalars['String']['output']>;
|
|
461
467
|
};
|
|
468
|
+
export type QueryGetCustomerByPhoneArgs = {
|
|
469
|
+
phone: Scalars['PhoneNumber']['input'];
|
|
470
|
+
};
|
|
462
471
|
export type QueryGetDrozBotInstanceArgs = {
|
|
463
472
|
id: Scalars['ID']['input'];
|
|
464
473
|
};
|
|
@@ -640,6 +649,7 @@ export type RequestDrozBotAssessMutationVariables = Exact<{
|
|
|
640
649
|
export type RequestDrozBotAssessMutation = Pick<Mutation, 'requestDrozBotAssess'>;
|
|
641
650
|
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'isTest' | 'integrationType' | 'createdAt' | 'updatedAt'>;
|
|
642
651
|
export type DrozBotTicketCommentFragment = Pick<DrozBotTicketComment, 'id' | 'ticketId'>;
|
|
652
|
+
export type DrozBotCustomerFragment = Pick<DrozBotCustomer, 'id' | 'name' | 'phones'>;
|
|
643
653
|
export type GetDrozBotInstanceQueryVariables = Exact<{
|
|
644
654
|
id: Scalars['ID']['input'];
|
|
645
655
|
}>;
|
|
@@ -652,6 +662,12 @@ export type ListDrozBotInstancesQueryVariables = Exact<{
|
|
|
652
662
|
export type ListDrozBotInstancesQuery = {
|
|
653
663
|
listDrozBotInstances: Array<Maybe<DrozbotFragment>>;
|
|
654
664
|
};
|
|
665
|
+
export type GetCustomerByPhoneQueryVariables = Exact<{
|
|
666
|
+
phone: Scalars['PhoneNumber']['input'];
|
|
667
|
+
}>;
|
|
668
|
+
export type GetCustomerByPhoneQuery = {
|
|
669
|
+
getCustomerByPhone?: Maybe<DrozBotCustomerFragment>;
|
|
670
|
+
};
|
|
655
671
|
export type CreateDrozBotInstanceMutationVariables = Exact<{
|
|
656
672
|
input: CreateDrozBotInstanceInput;
|
|
657
673
|
}>;
|
|
@@ -752,6 +768,7 @@ export declare const AiActionVariableFilledFragmentDoc = "\n fragment aiActio
|
|
|
752
768
|
export declare const AiActionVariablesBlockFragmentDoc = "\n fragment aiActionVariablesBlock on AiActionVariablesBlock {\n found {\n ...aiActionVariableFound\n }\n missing {\n ...aiActionVariableMissing\n }\n filled {\n ...aiActionVariableFilled\n }\n}\n ";
|
|
753
769
|
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
754
770
|
export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
771
|
+
export declare const DrozBotCustomerFragmentDoc = "\n fragment drozBotCustomer on DrozBotCustomer {\n id\n name\n phones\n}\n ";
|
|
755
772
|
export declare const IntentDictionaryFragmentDoc = "\n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
756
773
|
export declare const IntentFragmentDoc = "\n fragment intent on Intent {\n label\n score\n}\n ";
|
|
757
774
|
export declare const DrozBotWhatsAppBotFragmentDoc = "\n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
@@ -765,6 +782,7 @@ export declare const RunDrozbotAiActionDocument = "\n mutation runDrozbotAiAc
|
|
|
765
782
|
export declare const RequestDrozBotAssessDocument = "\n mutation requestDrozBotAssess($input: RequestDrozBotAssessInput!) {\n requestDrozBotAssess(input: $input)\n}\n ";
|
|
766
783
|
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
767
784
|
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
785
|
+
export declare const GetCustomerByPhoneDocument = "\n query getCustomerByPhone($phone: PhoneNumber!) {\n getCustomerByPhone(phone: $phone) {\n ...drozBotCustomer\n }\n}\n \n fragment drozBotCustomer on DrozBotCustomer {\n id\n name\n phones\n}\n ";
|
|
768
786
|
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
769
787
|
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
770
788
|
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
@@ -791,6 +809,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
791
809
|
requestDrozBotAssess(variables: RequestDrozBotAssessMutationVariables, options?: C): Promise<RequestDrozBotAssessMutation>;
|
|
792
810
|
getDrozBotInstance(variables: GetDrozBotInstanceQueryVariables, options?: C): Promise<GetDrozBotInstanceQuery>;
|
|
793
811
|
listDrozBotInstances(variables?: ListDrozBotInstancesQueryVariables, options?: C): Promise<ListDrozBotInstancesQuery>;
|
|
812
|
+
getCustomerByPhone(variables: GetCustomerByPhoneQueryVariables, options?: C): Promise<GetCustomerByPhoneQuery>;
|
|
794
813
|
createDrozBotInstance(variables: CreateDrozBotInstanceMutationVariables, options?: C): Promise<CreateDrozBotInstanceMutation>;
|
|
795
814
|
updateDrozBotInstance(variables: UpdateDrozBotInstanceMutationVariables, options?: C): Promise<UpdateDrozBotInstanceMutation>;
|
|
796
815
|
removeDrozBotInstance(variables: RemoveDrozBotInstanceMutationVariables, options?: C): Promise<RemoveDrozBotInstanceMutation>;
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.RequestDrozBotAssessDocument = exports.RunDrozbotAiActionDocument = exports.RemoveDrozbotAiActionDocument = exports.UpdateDrozbotAiActionDocument = exports.CreateDrozbotAiActionDocument = exports.GetDrozbotAiActionDocument = exports.ListDrozbotAiActionsDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.AiActionVariablesBlockFragmentDoc = exports.AiActionVariableFilledFragmentDoc = exports.AiActionVariableMissingFragmentDoc = exports.AiActionVariableFoundFragmentDoc = exports.AiActionFragmentDoc = exports.AiActionVariableFragmentDoc = exports.Typenames = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.GetCustomerByPhoneDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.RequestDrozBotAssessDocument = exports.RunDrozbotAiActionDocument = exports.RemoveDrozbotAiActionDocument = exports.UpdateDrozbotAiActionDocument = exports.CreateDrozbotAiActionDocument = exports.GetDrozbotAiActionDocument = exports.ListDrozbotAiActionsDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotCustomerFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.AiActionVariablesBlockFragmentDoc = exports.AiActionVariableFilledFragmentDoc = exports.AiActionVariableMissingFragmentDoc = exports.AiActionVariableFoundFragmentDoc = exports.AiActionFragmentDoc = exports.AiActionVariableFragmentDoc = exports.Typenames = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -134,6 +134,13 @@ exports.DrozBotTicketCommentFragmentDoc = `
|
|
|
134
134
|
ticketId
|
|
135
135
|
}
|
|
136
136
|
`;
|
|
137
|
+
exports.DrozBotCustomerFragmentDoc = `
|
|
138
|
+
fragment drozBotCustomer on DrozBotCustomer {
|
|
139
|
+
id
|
|
140
|
+
name
|
|
141
|
+
phones
|
|
142
|
+
}
|
|
143
|
+
`;
|
|
137
144
|
exports.IntentDictionaryFragmentDoc = `
|
|
138
145
|
fragment intentDictionary on IntentDictionary {
|
|
139
146
|
id
|
|
@@ -268,6 +275,13 @@ exports.ListDrozBotInstancesDocument = `
|
|
|
268
275
|
}
|
|
269
276
|
}
|
|
270
277
|
${exports.DrozbotFragmentDoc}`;
|
|
278
|
+
exports.GetCustomerByPhoneDocument = `
|
|
279
|
+
query getCustomerByPhone($phone: PhoneNumber!) {
|
|
280
|
+
getCustomerByPhone(phone: $phone) {
|
|
281
|
+
...drozBotCustomer
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
${exports.DrozBotCustomerFragmentDoc}`;
|
|
271
285
|
exports.CreateDrozBotInstanceDocument = `
|
|
272
286
|
mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {
|
|
273
287
|
createDrozBotInstance(input: $input) {
|
|
@@ -400,6 +414,9 @@ function getSdk(requester) {
|
|
|
400
414
|
listDrozBotInstances(variables, options) {
|
|
401
415
|
return requester(exports.ListDrozBotInstancesDocument, variables, options);
|
|
402
416
|
},
|
|
417
|
+
getCustomerByPhone(variables, options) {
|
|
418
|
+
return requester(exports.GetCustomerByPhoneDocument, variables, options);
|
|
419
|
+
},
|
|
403
420
|
createDrozBotInstance(variables, options) {
|
|
404
421
|
return requester(exports.CreateDrozBotInstanceDocument, variables, options);
|
|
405
422
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -372,6 +372,20 @@ export type Customer = {
|
|
|
372
372
|
export declare enum CustomerIndex {
|
|
373
373
|
ByExternalId = "byExternalId"
|
|
374
374
|
}
|
|
375
|
+
export type CustomerSearchFilterInput = {
|
|
376
|
+
AND?: InputMaybe<Array<CustomerSearchFilterInput>>;
|
|
377
|
+
OR?: InputMaybe<Array<CustomerSearchFilterInput>>;
|
|
378
|
+
alternateName?: InputMaybe<StringMatcherInput>;
|
|
379
|
+
createdAt?: InputMaybe<NumberMatcherInput>;
|
|
380
|
+
documents?: InputMaybe<StringMatcherInput>;
|
|
381
|
+
emails?: InputMaybe<StringMatcherInput>;
|
|
382
|
+
externalIds?: InputMaybe<StringMatcherInput>;
|
|
383
|
+
id?: InputMaybe<StringMatcherInput>;
|
|
384
|
+
name?: InputMaybe<StringMatcherInput>;
|
|
385
|
+
phones?: InputMaybe<StringMatcherInput>;
|
|
386
|
+
status?: InputMaybe<StringMatcherInput>;
|
|
387
|
+
updatedAt?: InputMaybe<NumberMatcherInput>;
|
|
388
|
+
};
|
|
375
389
|
export type CustomerSearchResults = {
|
|
376
390
|
nodes: Array<Customer>;
|
|
377
391
|
stats: SearchResultsStats;
|
|
@@ -899,7 +913,9 @@ export type QuerySearchAgentsArgs = {
|
|
|
899
913
|
query?: InputMaybe<Scalars['String']['input']>;
|
|
900
914
|
};
|
|
901
915
|
export type QuerySearchCustomersArgs = {
|
|
916
|
+
filters?: InputMaybe<Array<CustomerSearchFilterInput>>;
|
|
902
917
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
918
|
+
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
903
919
|
query?: InputMaybe<Scalars['String']['input']>;
|
|
904
920
|
};
|
|
905
921
|
export type QuerySearchSessionsArgs = {
|
|
@@ -1535,7 +1551,9 @@ export type ListCustomersQuery = {
|
|
|
1535
1551
|
};
|
|
1536
1552
|
export type SearchCustomersQueryVariables = Exact<{
|
|
1537
1553
|
query?: InputMaybe<Scalars['String']['input']>;
|
|
1554
|
+
filters?: InputMaybe<Array<CustomerSearchFilterInput> | CustomerSearchFilterInput>;
|
|
1538
1555
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
1556
|
+
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
1539
1557
|
}>;
|
|
1540
1558
|
export type SearchCustomersQuery = {
|
|
1541
1559
|
searchCustomers: {
|
|
@@ -1905,7 +1923,7 @@ export declare const RemoveSystemCredentialsDocument = "\n mutation removeSys
|
|
|
1905
1923
|
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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
|
1906
1924
|
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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
|
1907
1925
|
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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
|
1908
|
-
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query
|
|
1926
|
+
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $filters: [CustomerSearchFilterInput!], $page: Number, $perPage: Number) {\n searchCustomers(\n query: $query\n filters: $filters\n page: $page\n perPage: $perPage\n ) {\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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
|
1909
1927
|
export declare const DynamicSearchCustomerDocument = "\n query dynamicSearchCustomer($data: DynamicSearchInput!, $page: Number) {\n dynamicSearchCustomer(data: $data, 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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
|
1910
1928
|
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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
|
1911
1929
|
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 mergeHistory\n createdAt\n updatedAt\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -733,8 +733,13 @@ exports.ListCustomersDocument = `
|
|
|
733
733
|
}
|
|
734
734
|
${exports.CustomerFragmentDoc}`;
|
|
735
735
|
exports.SearchCustomersDocument = `
|
|
736
|
-
query searchCustomers($query: String, $page: Number) {
|
|
737
|
-
searchCustomers(
|
|
736
|
+
query searchCustomers($query: String, $filters: [CustomerSearchFilterInput!], $page: Number, $perPage: Number) {
|
|
737
|
+
searchCustomers(
|
|
738
|
+
query: $query
|
|
739
|
+
filters: $filters
|
|
740
|
+
page: $page
|
|
741
|
+
perPage: $perPage
|
|
742
|
+
) {
|
|
738
743
|
nodes {
|
|
739
744
|
...customer
|
|
740
745
|
}
|