@droz-js/sdk 0.2.10 → 0.2.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/chatwidget-ws.d.ts +30 -0
- package/src/chatwidget-ws.js +21 -0
- package/src/chatwidget.d.ts +31 -0
- package/src/chatwidget.js +21 -0
- package/src/client/http.d.ts +4 -1
- package/src/client/http.js +13 -4
- package/src/client/ws.js +2 -1
- package/src/drozbot.d.ts +1 -1
- package/src/drozchat.d.ts +1 -1
- package/src/droznexo.d.ts +1 -1
- package/src/mercadolivre.d.ts +1 -1
- package/src/nucleus.d.ts +4 -1
- package/src/reclameaqui.d.ts +1 -1
- package/src/sdks/chatwidget.d.ts +248 -0
- package/src/sdks/chatwidget.js +118 -0
- package/src/sdks/drozbot.d.ts +10 -3
- package/src/sdks/drozchat.d.ts +36 -20
- package/src/sdks/drozchat.js +15 -2
- package/src/sdks/nucleus.d.ts +69 -33
- package/src/sdks/nucleus.js +25 -3
- package/src/zendesk.d.ts +1 -1
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = void 0;
|
|
4
|
+
exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = void 0;
|
|
6
6
|
var AppType;
|
|
7
7
|
(function (AppType) {
|
|
8
8
|
AppType["Regular"] = "Regular";
|
|
@@ -31,7 +31,7 @@ var StateMachineConfigStatus;
|
|
|
31
31
|
})(StateMachineConfigStatus || (exports.StateMachineConfigStatus = StateMachineConfigStatus = {}));
|
|
32
32
|
var Typenames;
|
|
33
33
|
(function (Typenames) {
|
|
34
|
-
Typenames["
|
|
34
|
+
Typenames["Agents"] = "Agents";
|
|
35
35
|
Typenames["Any"] = "Any";
|
|
36
36
|
Typenames["App"] = "App";
|
|
37
37
|
Typenames["AppInstances"] = "AppInstances";
|
|
@@ -69,6 +69,8 @@ exports.AppInstanceFragmentDoc = `
|
|
|
69
69
|
drn
|
|
70
70
|
name
|
|
71
71
|
transitions
|
|
72
|
+
createdAt
|
|
73
|
+
updatedAt
|
|
72
74
|
}
|
|
73
75
|
`;
|
|
74
76
|
exports.AppWithInstancesFragmentDoc = `
|
|
@@ -85,6 +87,8 @@ exports.SafeCredentialsFragmentDoc = `
|
|
|
85
87
|
id
|
|
86
88
|
type
|
|
87
89
|
description
|
|
90
|
+
createdAt
|
|
91
|
+
updatedAt
|
|
88
92
|
}
|
|
89
93
|
`;
|
|
90
94
|
exports.CronJobFragmentDoc = `
|
|
@@ -127,6 +131,8 @@ exports.StateMachineConfigFragmentDoc = `
|
|
|
127
131
|
states {
|
|
128
132
|
...stateMachineConfigState
|
|
129
133
|
}
|
|
134
|
+
createdAt
|
|
135
|
+
updatedAt
|
|
130
136
|
}
|
|
131
137
|
${exports.StateMachineConfigStateFragmentDoc}`;
|
|
132
138
|
exports.StateMachineConfigConnectionFragmentDoc = `
|
|
@@ -203,6 +209,17 @@ exports.ListAppsDocument = `
|
|
|
203
209
|
}
|
|
204
210
|
${exports.AppFragmentDoc}
|
|
205
211
|
${exports.AppInstanceFragmentDoc}`;
|
|
212
|
+
exports.GetAppInstanceDocument = `
|
|
213
|
+
query getAppInstance($drn: DRN!) {
|
|
214
|
+
getAppInstance(drn: $drn) {
|
|
215
|
+
...appInstance
|
|
216
|
+
app {
|
|
217
|
+
...app
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
${exports.AppInstanceFragmentDoc}
|
|
222
|
+
${exports.AppFragmentDoc}`;
|
|
206
223
|
exports.ListAppInstancesDocument = `
|
|
207
224
|
query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {
|
|
208
225
|
listAppInstances(appId: $appId, appType: $appType) {
|
|
@@ -248,6 +265,8 @@ exports.GetCredentialsSecretDocument = `
|
|
|
248
265
|
id
|
|
249
266
|
type
|
|
250
267
|
description
|
|
268
|
+
updatedAt
|
|
269
|
+
createdAt
|
|
251
270
|
}
|
|
252
271
|
... on BasicCredentialsType {
|
|
253
272
|
credentials {
|
|
@@ -469,6 +488,9 @@ function getSdk(requester) {
|
|
|
469
488
|
listApps(variables, options) {
|
|
470
489
|
return requester(exports.ListAppsDocument, variables, options);
|
|
471
490
|
},
|
|
491
|
+
getAppInstance(variables, options) {
|
|
492
|
+
return requester(exports.GetAppInstanceDocument, variables, options);
|
|
493
|
+
},
|
|
472
494
|
listAppInstances(variables, options) {
|
|
473
495
|
return requester(exports.ListAppInstancesDocument, variables, options);
|
|
474
496
|
},
|
package/src/zendesk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/zendesk';
|
|
2
|
-
export declare const Zendesk: new () => {
|
|
2
|
+
export declare const Zendesk: new (options?: import("./client/http").HttpClientOptions) => {
|
|
3
3
|
readonly http: any;
|
|
4
4
|
forTenant(tenant: string): any;
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|