@droz-js/sdk 0.12.10 → 0.12.12
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/drozchat-ws.d.ts +9 -0
- package/src/drozchat.d.ts +9 -0
- package/src/nucleus.d.ts +1 -1
- package/src/sdks/drozbot.d.ts +2 -0
- package/src/sdks/drozbot.js +1 -0
- package/src/sdks/drozchat.d.ts +57 -0
- package/src/sdks/drozchat.js +55 -3
- package/src/sdks/nucleus.d.ts +19 -7
- package/src/sdks/nucleus.js +17 -4
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -82,6 +82,15 @@ declare const DrozChatWs_base: new () => {
|
|
|
82
82
|
removeDrozChatAgentGroupAgent(variables: import("./sdks/drozchat").Exact<{
|
|
83
83
|
input: import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentInput;
|
|
84
84
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentMutation>;
|
|
85
|
+
getSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
86
|
+
[key: string]: never;
|
|
87
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetSurveyQuery>;
|
|
88
|
+
upsertSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
89
|
+
input: import("./sdks/drozchat").UpsertSurveyInput;
|
|
90
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertSurveyMutation>;
|
|
91
|
+
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
92
|
+
[key: string]: never;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
85
94
|
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
86
95
|
[key: string]: never;
|
|
87
96
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -85,6 +85,15 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
85
85
|
removeDrozChatAgentGroupAgent(variables: import("./sdks/drozchat").Exact<{
|
|
86
86
|
input: import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentInput;
|
|
87
87
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatAgentGroupAgentMutation>;
|
|
88
|
+
getSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
89
|
+
[key: string]: never;
|
|
90
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetSurveyQuery>;
|
|
91
|
+
upsertSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
92
|
+
input: import("./sdks/drozchat").UpsertSurveyInput;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertSurveyMutation>;
|
|
94
|
+
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
95
|
+
[key: string]: never;
|
|
96
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
88
97
|
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
89
98
|
[key: string]: never;
|
|
90
99
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
package/src/nucleus.d.ts
CHANGED
|
@@ -196,7 +196,7 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
196
196
|
[key: string]: never;
|
|
197
197
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListSystemRolesQuery>;
|
|
198
198
|
getSystemRole(variables: import("./sdks/nucleus").Exact<{
|
|
199
|
-
id: import("./sdks/nucleus").
|
|
199
|
+
id: import("./sdks/nucleus").SystemRole;
|
|
200
200
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetSystemRoleQuery>;
|
|
201
201
|
checkPermissions(variables: import("./sdks/nucleus").Exact<{
|
|
202
202
|
can: import("./sdks/nucleus").Can;
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export type CreateManyDrozBotTicketCommentsInput = {
|
|
|
204
204
|
sender: DrozBotTicketMessageSender;
|
|
205
205
|
};
|
|
206
206
|
export declare enum DrozBotAssessType {
|
|
207
|
+
Csat = "CSAT",
|
|
207
208
|
Nps = "NPS"
|
|
208
209
|
}
|
|
209
210
|
export type DrozBotCustomer = {
|
|
@@ -276,6 +277,7 @@ export declare enum DrozBotWhatsAppTemplateTypes {
|
|
|
276
277
|
Text = "TEXT"
|
|
277
278
|
}
|
|
278
279
|
export type DrozBotWhatsAppTemplateUser = {
|
|
280
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
279
281
|
phone: Scalars['String']['input'];
|
|
280
282
|
vars: Array<Scalars['String']['input']>;
|
|
281
283
|
};
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -18,6 +18,7 @@ var Can;
|
|
|
18
18
|
})(Can || (exports.Can = Can = {}));
|
|
19
19
|
var DrozBotAssessType;
|
|
20
20
|
(function (DrozBotAssessType) {
|
|
21
|
+
DrozBotAssessType["Csat"] = "CSAT";
|
|
21
22
|
DrozBotAssessType["Nps"] = "NPS";
|
|
22
23
|
})(DrozBotAssessType || (exports.DrozBotAssessType = DrozBotAssessType = {}));
|
|
23
24
|
var DrozBotIntegrationType;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -378,6 +378,7 @@ export type Mutation = {
|
|
|
378
378
|
disableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
379
379
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
380
380
|
disableNpsSurvey: NpsSurvey;
|
|
381
|
+
disableSurvey: Survey;
|
|
381
382
|
enableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
382
383
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
383
384
|
generateAnalyticsToken?: Maybe<AnalyticsToken>;
|
|
@@ -396,6 +397,7 @@ export type Mutation = {
|
|
|
396
397
|
updateTrigger: Trigger;
|
|
397
398
|
updateView: View;
|
|
398
399
|
upsertNpsSurvey: NpsSurvey;
|
|
400
|
+
upsertSurvey: Survey;
|
|
399
401
|
version?: Maybe<Scalars['String']['output']>;
|
|
400
402
|
};
|
|
401
403
|
export type MutationAddDrozChatAgentGroupAgentArgs = {
|
|
@@ -521,6 +523,9 @@ export type MutationUpdateViewArgs = {
|
|
|
521
523
|
export type MutationUpsertNpsSurveyArgs = {
|
|
522
524
|
input: UpsertNpsSurveyInput;
|
|
523
525
|
};
|
|
526
|
+
export type MutationUpsertSurveyArgs = {
|
|
527
|
+
input: UpsertSurveyInput;
|
|
528
|
+
};
|
|
524
529
|
export type NpsSurvey = {
|
|
525
530
|
channels: Array<NpsSurveyChannels>;
|
|
526
531
|
commentMessage: Scalars['String']['output'];
|
|
@@ -561,6 +566,7 @@ export type Query = {
|
|
|
561
566
|
getGlobalConfiguration?: Maybe<GlobalConfiguration>;
|
|
562
567
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
563
568
|
getNpsSurvey?: Maybe<NpsSurvey>;
|
|
569
|
+
getSurvey?: Maybe<Survey>;
|
|
564
570
|
getTicket?: Maybe<Ticket>;
|
|
565
571
|
getTrigger?: Maybe<Trigger>;
|
|
566
572
|
getView?: Maybe<View>;
|
|
@@ -766,6 +772,22 @@ export declare enum SubscriptionAction {
|
|
|
766
772
|
Removed = "REMOVED",
|
|
767
773
|
Updated = "UPDATED"
|
|
768
774
|
}
|
|
775
|
+
export type Survey = {
|
|
776
|
+
channels: Array<SurveyChannels>;
|
|
777
|
+
commentMessage: Scalars['String']['output'];
|
|
778
|
+
createdAt: Scalars['DateTime']['output'];
|
|
779
|
+
enabled: Scalars['Boolean']['output'];
|
|
780
|
+
evaluationMessage: Scalars['String']['output'];
|
|
781
|
+
type: SurveyTypes;
|
|
782
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
783
|
+
};
|
|
784
|
+
export declare enum SurveyChannels {
|
|
785
|
+
WhatsApp = "WhatsApp"
|
|
786
|
+
}
|
|
787
|
+
export declare enum SurveyTypes {
|
|
788
|
+
Csat = "CSAT",
|
|
789
|
+
Nps = "NPS"
|
|
790
|
+
}
|
|
769
791
|
export type Ticket = {
|
|
770
792
|
assignedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
771
793
|
assignee?: Maybe<DrozChatAgent>;
|
|
@@ -798,6 +820,7 @@ export type Ticket = {
|
|
|
798
820
|
updatedAt: Scalars['DateTime']['output'];
|
|
799
821
|
};
|
|
800
822
|
export declare enum TicketAssessType {
|
|
823
|
+
Csat = "CSAT",
|
|
801
824
|
Nps = "NPS"
|
|
802
825
|
}
|
|
803
826
|
export declare enum TicketAutoAssignerType {
|
|
@@ -1036,6 +1059,7 @@ export declare enum Typenames {
|
|
|
1036
1059
|
NpsSurvey = "NpsSurvey",
|
|
1037
1060
|
Protocols = "Protocols",
|
|
1038
1061
|
QuickAnswers = "QuickAnswers",
|
|
1062
|
+
Survey = "Survey",
|
|
1039
1063
|
Tags = "Tags",
|
|
1040
1064
|
TicketMappings = "TicketMappings",
|
|
1041
1065
|
TicketMessages = "TicketMessages",
|
|
@@ -1096,6 +1120,13 @@ export type UpsertNpsSurveyInput = {
|
|
|
1096
1120
|
enabled: Scalars['Boolean']['input'];
|
|
1097
1121
|
evaluationMessage: Scalars['String']['input'];
|
|
1098
1122
|
};
|
|
1123
|
+
export type UpsertSurveyInput = {
|
|
1124
|
+
channels: Array<SurveyChannels>;
|
|
1125
|
+
commentMessage: Scalars['String']['input'];
|
|
1126
|
+
enabled: Scalars['Boolean']['input'];
|
|
1127
|
+
evaluationMessage: Scalars['String']['input'];
|
|
1128
|
+
type: SurveyTypes;
|
|
1129
|
+
};
|
|
1099
1130
|
export type View = {
|
|
1100
1131
|
createdAt: Scalars['DateTime']['output'];
|
|
1101
1132
|
filters: Scalars['JSONObject']['output'];
|
|
@@ -1269,6 +1300,25 @@ export type RemoveDrozChatAgentGroupAgentMutationVariables = Exact<{
|
|
|
1269
1300
|
export type RemoveDrozChatAgentGroupAgentMutation = {
|
|
1270
1301
|
removeDrozChatAgentGroupAgent?: Maybe<DrozChatAgentGroupFragment>;
|
|
1271
1302
|
};
|
|
1303
|
+
export type SurveyFragment = Pick<Survey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'type' | 'createdAt' | 'updatedAt'>;
|
|
1304
|
+
export type GetSurveyQueryVariables = Exact<{
|
|
1305
|
+
[key: string]: never;
|
|
1306
|
+
}>;
|
|
1307
|
+
export type GetSurveyQuery = {
|
|
1308
|
+
getSurvey?: Maybe<SurveyFragment>;
|
|
1309
|
+
};
|
|
1310
|
+
export type UpsertSurveyMutationVariables = Exact<{
|
|
1311
|
+
input: UpsertSurveyInput;
|
|
1312
|
+
}>;
|
|
1313
|
+
export type UpsertSurveyMutation = {
|
|
1314
|
+
upsertSurvey: SurveyFragment;
|
|
1315
|
+
};
|
|
1316
|
+
export type DisableSurveyMutationVariables = Exact<{
|
|
1317
|
+
[key: string]: never;
|
|
1318
|
+
}>;
|
|
1319
|
+
export type DisableSurveyMutation = {
|
|
1320
|
+
disableSurvey: SurveyFragment;
|
|
1321
|
+
};
|
|
1272
1322
|
export type NpsSurveyFragment = Pick<NpsSurvey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'createdAt' | 'updatedAt'>;
|
|
1273
1323
|
export type GetNpsSurveyQueryVariables = Exact<{
|
|
1274
1324
|
[key: string]: never;
|
|
@@ -1679,6 +1729,7 @@ export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on
|
|
|
1679
1729
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1680
1730
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
1681
1731
|
export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1732
|
+
export declare const SurveyFragmentDoc = "\n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
1682
1733
|
export declare const NpsSurveyFragmentDoc = "\n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1683
1734
|
export declare const QuickAnswerFragmentDoc = "\n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1684
1735
|
export declare const QuickAnswerFacetsFragmentDoc = "\n fragment quickAnswerFacets on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n}\n ";
|
|
@@ -1721,6 +1772,9 @@ export declare const DisableDrozChatAgentGroupDocument = "\n mutation disable
|
|
|
1721
1772
|
export declare const EnableDrozChatAgentGroupDocument = "\n mutation enableDrozChatAgentGroup($input: EnableDrozChatAgentGroupInput!) {\n enableDrozChatAgentGroup(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1722
1773
|
export declare const AddDrozChatAgentGroupAgentDocument = "\n mutation addDrozChatAgentGroupAgent($input: AddDrozChatAgentGroupAgentInput!) {\n addDrozChatAgentGroupAgent(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1723
1774
|
export declare const RemoveDrozChatAgentGroupAgentDocument = "\n mutation removeDrozChatAgentGroupAgent($input: RemoveDrozChatAgentGroupAgentInput!) {\n removeDrozChatAgentGroupAgent(input: $input) {\n ...drozChatAgentGroup\n }\n}\n \n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1775
|
+
export declare const GetSurveyDocument = "\n query getSurvey {\n getSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
1776
|
+
export declare const UpsertSurveyDocument = "\n mutation upsertSurvey($input: UpsertSurveyInput!) {\n upsertSurvey(input: $input) {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
1777
|
+
export declare const DisableSurveyDocument = "\n mutation disableSurvey {\n disableSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
1724
1778
|
export declare const GetNpsSurveyDocument = "\n query getNpsSurvey {\n getNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1725
1779
|
export declare const UpsertNpsSurveyDocument = "\n mutation upsertNpsSurvey($input: UpsertNpsSurveyInput!) {\n upsertNpsSurvey(input: $input) {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1726
1780
|
export declare const DisableNpsSurveyDocument = "\n mutation disableNpsSurvey {\n disableNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1796,6 +1850,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1796
1850
|
enableDrozChatAgentGroup(variables: EnableDrozChatAgentGroupMutationVariables, options?: C): Promise<EnableDrozChatAgentGroupMutation>;
|
|
1797
1851
|
addDrozChatAgentGroupAgent(variables: AddDrozChatAgentGroupAgentMutationVariables, options?: C): Promise<AddDrozChatAgentGroupAgentMutation>;
|
|
1798
1852
|
removeDrozChatAgentGroupAgent(variables: RemoveDrozChatAgentGroupAgentMutationVariables, options?: C): Promise<RemoveDrozChatAgentGroupAgentMutation>;
|
|
1853
|
+
getSurvey(variables?: GetSurveyQueryVariables, options?: C): Promise<GetSurveyQuery>;
|
|
1854
|
+
upsertSurvey(variables: UpsertSurveyMutationVariables, options?: C): Promise<UpsertSurveyMutation>;
|
|
1855
|
+
disableSurvey(variables?: DisableSurveyMutationVariables, options?: C): Promise<DisableSurveyMutation>;
|
|
1799
1856
|
getNpsSurvey(variables?: GetNpsSurveyQueryVariables, options?: C): Promise<GetNpsSurveyQuery>;
|
|
1800
1857
|
upsertNpsSurvey(variables: UpsertNpsSurveyMutationVariables, options?: C): Promise<UpsertNpsSurveyMutation>;
|
|
1801
1858
|
disableNpsSurvey(variables?: DisableNpsSurveyMutationVariables, options?: C): Promise<DisableNpsSurveyMutation>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = void 0;
|
|
4
|
+
exports.ListNotesDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.NpsSurveyFragmentDoc = exports.SurveyFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.NpsSurveyChannels = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.SearchTicketsByCustomerDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.DisableNpsSurveyDocument = exports.UpsertNpsSurveyDocument = exports.GetNpsSurveyDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.RemoveDrozChatAgentGroupAgentDocument = exports.AddDrozChatAgentGroupAgentDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AppInstanceStatus;
|
|
9
9
|
(function (AppInstanceStatus) {
|
|
@@ -36,8 +36,18 @@ var SubscriptionAction;
|
|
|
36
36
|
SubscriptionAction["Removed"] = "REMOVED";
|
|
37
37
|
SubscriptionAction["Updated"] = "UPDATED";
|
|
38
38
|
})(SubscriptionAction || (exports.SubscriptionAction = SubscriptionAction = {}));
|
|
39
|
+
var SurveyChannels;
|
|
40
|
+
(function (SurveyChannels) {
|
|
41
|
+
SurveyChannels["WhatsApp"] = "WhatsApp";
|
|
42
|
+
})(SurveyChannels || (exports.SurveyChannels = SurveyChannels = {}));
|
|
43
|
+
var SurveyTypes;
|
|
44
|
+
(function (SurveyTypes) {
|
|
45
|
+
SurveyTypes["Csat"] = "CSAT";
|
|
46
|
+
SurveyTypes["Nps"] = "NPS";
|
|
47
|
+
})(SurveyTypes || (exports.SurveyTypes = SurveyTypes = {}));
|
|
39
48
|
var TicketAssessType;
|
|
40
49
|
(function (TicketAssessType) {
|
|
50
|
+
TicketAssessType["Csat"] = "CSAT";
|
|
41
51
|
TicketAssessType["Nps"] = "NPS";
|
|
42
52
|
})(TicketAssessType || (exports.TicketAssessType = TicketAssessType = {}));
|
|
43
53
|
var TicketAutoAssignerType;
|
|
@@ -121,6 +131,7 @@ var Typenames;
|
|
|
121
131
|
Typenames["NpsSurvey"] = "NpsSurvey";
|
|
122
132
|
Typenames["Protocols"] = "Protocols";
|
|
123
133
|
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
134
|
+
Typenames["Survey"] = "Survey";
|
|
124
135
|
Typenames["Tags"] = "Tags";
|
|
125
136
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
126
137
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
@@ -165,6 +176,17 @@ exports.DrozChatAgentGroupFragmentDoc = `
|
|
|
165
176
|
deletedAt
|
|
166
177
|
}
|
|
167
178
|
`;
|
|
179
|
+
exports.SurveyFragmentDoc = `
|
|
180
|
+
fragment survey on Survey {
|
|
181
|
+
channels
|
|
182
|
+
evaluationMessage
|
|
183
|
+
commentMessage
|
|
184
|
+
enabled
|
|
185
|
+
type
|
|
186
|
+
createdAt
|
|
187
|
+
updatedAt
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
168
190
|
exports.NpsSurveyFragmentDoc = `
|
|
169
191
|
fragment npsSurvey on NpsSurvey {
|
|
170
192
|
channels
|
|
@@ -652,6 +674,27 @@ exports.RemoveDrozChatAgentGroupAgentDocument = `
|
|
|
652
674
|
}
|
|
653
675
|
}
|
|
654
676
|
${exports.DrozChatAgentGroupFragmentDoc}`;
|
|
677
|
+
exports.GetSurveyDocument = `
|
|
678
|
+
query getSurvey {
|
|
679
|
+
getSurvey {
|
|
680
|
+
...survey
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
${exports.SurveyFragmentDoc}`;
|
|
684
|
+
exports.UpsertSurveyDocument = `
|
|
685
|
+
mutation upsertSurvey($input: UpsertSurveyInput!) {
|
|
686
|
+
upsertSurvey(input: $input) {
|
|
687
|
+
...survey
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
${exports.SurveyFragmentDoc}`;
|
|
691
|
+
exports.DisableSurveyDocument = `
|
|
692
|
+
mutation disableSurvey {
|
|
693
|
+
disableSurvey {
|
|
694
|
+
...survey
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
${exports.SurveyFragmentDoc}`;
|
|
655
698
|
exports.GetNpsSurveyDocument = `
|
|
656
699
|
query getNpsSurvey {
|
|
657
700
|
getNpsSurvey {
|
|
@@ -1305,6 +1348,15 @@ function getSdk(requester) {
|
|
|
1305
1348
|
removeDrozChatAgentGroupAgent(variables, options) {
|
|
1306
1349
|
return requester(exports.RemoveDrozChatAgentGroupAgentDocument, variables, options);
|
|
1307
1350
|
},
|
|
1351
|
+
getSurvey(variables, options) {
|
|
1352
|
+
return requester(exports.GetSurveyDocument, variables, options);
|
|
1353
|
+
},
|
|
1354
|
+
upsertSurvey(variables, options) {
|
|
1355
|
+
return requester(exports.UpsertSurveyDocument, variables, options);
|
|
1356
|
+
},
|
|
1357
|
+
disableSurvey(variables, options) {
|
|
1358
|
+
return requester(exports.DisableSurveyDocument, variables, options);
|
|
1359
|
+
},
|
|
1308
1360
|
getNpsSurvey(variables, options) {
|
|
1309
1361
|
return requester(exports.GetNpsSurveyDocument, variables, options);
|
|
1310
1362
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export type Scalars = {
|
|
|
124
124
|
};
|
|
125
125
|
export type AddRoleToAgentInput = {
|
|
126
126
|
agentId: Scalars['ID']['input'];
|
|
127
|
-
roleId:
|
|
127
|
+
roleId: SystemRole;
|
|
128
128
|
};
|
|
129
129
|
export type AddTagsToSessionAttributesInput = {
|
|
130
130
|
sessionId: Scalars['ID']['input'];
|
|
@@ -256,7 +256,7 @@ export declare enum Can {
|
|
|
256
256
|
}
|
|
257
257
|
export type ChangeAgentRoleInput = {
|
|
258
258
|
agentId: Scalars['ID']['input'];
|
|
259
|
-
roleId:
|
|
259
|
+
roleId: SystemRole;
|
|
260
260
|
};
|
|
261
261
|
export type ChangeAgentStatusInput = {
|
|
262
262
|
status: AgentStatus;
|
|
@@ -275,7 +275,7 @@ export type CreateAgentInput = {
|
|
|
275
275
|
};
|
|
276
276
|
export type CreateApiKeyAgentInput = {
|
|
277
277
|
name: Scalars['String']['input'];
|
|
278
|
-
roles:
|
|
278
|
+
roles: Array<SystemRole>;
|
|
279
279
|
};
|
|
280
280
|
export type CreateCredentialsInput = {
|
|
281
281
|
credentials: Scalars['JSON']['input'];
|
|
@@ -861,7 +861,7 @@ export type QueryGetStorageArgs = {
|
|
|
861
861
|
id: Scalars['ID']['input'];
|
|
862
862
|
};
|
|
863
863
|
export type QueryGetSystemRoleArgs = {
|
|
864
|
-
id:
|
|
864
|
+
id: SystemRole;
|
|
865
865
|
};
|
|
866
866
|
export type QueryGetXStateMachineConfigArgs = {
|
|
867
867
|
id: Scalars['ID']['input'];
|
|
@@ -940,7 +940,7 @@ export type RemoveCronJobInput = {
|
|
|
940
940
|
};
|
|
941
941
|
export type RemoveRoleFromAgentInput = {
|
|
942
942
|
agentId: Scalars['ID']['input'];
|
|
943
|
-
roleId:
|
|
943
|
+
roleId: SystemRole;
|
|
944
944
|
};
|
|
945
945
|
export type RemoveStateMachineConfigInput = {
|
|
946
946
|
id: Scalars['ID']['input'];
|
|
@@ -1140,6 +1140,18 @@ export type StringMatcherInput = {
|
|
|
1140
1140
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
1141
1141
|
ne?: InputMaybe<Scalars['String']['input']>;
|
|
1142
1142
|
};
|
|
1143
|
+
export declare enum SystemRole {
|
|
1144
|
+
CampaignsAdmin = "CampaignsAdmin",
|
|
1145
|
+
DrozBotIntegration = "DrozBotIntegration",
|
|
1146
|
+
DrozChatAdmin = "DrozChatAdmin",
|
|
1147
|
+
DrozChatAgent = "DrozChatAgent",
|
|
1148
|
+
DrozChatManager = "DrozChatManager",
|
|
1149
|
+
DrozNexoAdmin = "DrozNexoAdmin",
|
|
1150
|
+
DrozNexoAgent = "DrozNexoAgent",
|
|
1151
|
+
SuperAdmin = "SuperAdmin",
|
|
1152
|
+
WhatsAppIntegration = "WhatsAppIntegration",
|
|
1153
|
+
ZendeskIntegration = "ZendeskIntegration"
|
|
1154
|
+
}
|
|
1143
1155
|
export declare enum Typenames {
|
|
1144
1156
|
Agents = "Agents",
|
|
1145
1157
|
Any = "Any",
|
|
@@ -1641,7 +1653,7 @@ export type ListSystemRolesQuery = {
|
|
|
1641
1653
|
listSystemRoles: Array<RoleFragment>;
|
|
1642
1654
|
};
|
|
1643
1655
|
export type GetSystemRoleQueryVariables = Exact<{
|
|
1644
|
-
id:
|
|
1656
|
+
id: SystemRole;
|
|
1645
1657
|
}>;
|
|
1646
1658
|
export type GetSystemRoleQuery = {
|
|
1647
1659
|
getSystemRole?: Maybe<RoleFragment>;
|
|
@@ -1936,7 +1948,7 @@ export declare const CreateCronJobDocument = "\n mutation createCronJob($inpu
|
|
|
1936
1948
|
export declare const UpdateCronJobDocument = "\n mutation updateCronJob($input: UpdateCronJobInput!) {\n updateCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
|
|
1937
1949
|
export declare const RemoveCronJobDocument = "\n mutation removeCronJob($input: RemoveCronJobInput!) {\n removeCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
|
|
1938
1950
|
export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1939
|
-
export declare const GetSystemRoleDocument = "\n query getSystemRole($id:
|
|
1951
|
+
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: SystemRole!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1940
1952
|
export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
|
|
1941
1953
|
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\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 ";
|
|
1942
1954
|
export declare const StartCustomSessionDocument = "\n mutation startCustomSession($input: StartSessionInput!) {\n startCustomSession(input: $input) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = void 0;
|
|
4
|
+
exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.ChangeAgentStatusDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SettingsFragmentDoc = exports.SessionSchemaFragmentDoc = exports.IndexedSessionFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.SystemRole = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.OperationMode = exports.CustomerStatus = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = exports.AgentStatus = void 0;
|
|
5
|
+
exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.MergeCustomersDocument = exports.DeleteCustomerDocument = exports.UpdateCustomerDocument = exports.GetOrCreateCustomerDocument = exports.CreateCustomerDocument = exports.DynamicSearchCustomerDocument = exports.SearchCustomersDocument = exports.ListCustomersDocument = exports.BatchGetCustomersByIdDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.ResendConfirmationEmailDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = exports.ChangeAgentRoleDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AgentStatus;
|
|
9
9
|
(function (AgentStatus) {
|
|
@@ -74,6 +74,19 @@ var StateMachineConfigStatus;
|
|
|
74
74
|
StateMachineConfigStatus["Published"] = "Published";
|
|
75
75
|
StateMachineConfigStatus["Removed"] = "Removed";
|
|
76
76
|
})(StateMachineConfigStatus || (exports.StateMachineConfigStatus = StateMachineConfigStatus = {}));
|
|
77
|
+
var SystemRole;
|
|
78
|
+
(function (SystemRole) {
|
|
79
|
+
SystemRole["CampaignsAdmin"] = "CampaignsAdmin";
|
|
80
|
+
SystemRole["DrozBotIntegration"] = "DrozBotIntegration";
|
|
81
|
+
SystemRole["DrozChatAdmin"] = "DrozChatAdmin";
|
|
82
|
+
SystemRole["DrozChatAgent"] = "DrozChatAgent";
|
|
83
|
+
SystemRole["DrozChatManager"] = "DrozChatManager";
|
|
84
|
+
SystemRole["DrozNexoAdmin"] = "DrozNexoAdmin";
|
|
85
|
+
SystemRole["DrozNexoAgent"] = "DrozNexoAgent";
|
|
86
|
+
SystemRole["SuperAdmin"] = "SuperAdmin";
|
|
87
|
+
SystemRole["WhatsAppIntegration"] = "WhatsAppIntegration";
|
|
88
|
+
SystemRole["ZendeskIntegration"] = "ZendeskIntegration";
|
|
89
|
+
})(SystemRole || (exports.SystemRole = SystemRole = {}));
|
|
77
90
|
var Typenames;
|
|
78
91
|
(function (Typenames) {
|
|
79
92
|
Typenames["Agents"] = "Agents";
|
|
@@ -848,7 +861,7 @@ exports.ListSystemRolesDocument = `
|
|
|
848
861
|
${exports.RoleFragmentDoc}
|
|
849
862
|
${exports.PolicyFragmentDoc}`;
|
|
850
863
|
exports.GetSystemRoleDocument = `
|
|
851
|
-
query getSystemRole($id:
|
|
864
|
+
query getSystemRole($id: SystemRole!) {
|
|
852
865
|
getSystemRole(id: $id) {
|
|
853
866
|
...role
|
|
854
867
|
}
|