@droz-js/sdk 0.6.21 → 0.7.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 +8 -11
- package/src/casasbahia.d.ts +3 -1
- package/src/casasbahia.js +3 -1
- package/src/chatwidget-ws.d.ts +3 -1
- package/src/chatwidget-ws.js +4 -2
- package/src/chatwidget.d.ts +3 -1
- package/src/chatwidget.js +3 -1
- package/src/client/helpers.d.ts +7 -7
- package/src/client/helpers.js +2 -2
- package/src/drozadmin.d.ts +3 -1
- package/src/drozadmin.js +3 -1
- package/src/drozai.d.ts +3 -1
- package/src/drozai.js +3 -1
- package/src/drozbot.d.ts +3 -1
- package/src/drozbot.js +3 -1
- package/src/drozchat-ws.d.ts +3 -1
- package/src/drozchat-ws.js +3 -1
- package/src/drozchat.d.ts +3 -1
- package/src/drozchat.js +3 -1
- package/src/droznexo.d.ts +6 -1
- package/src/droznexo.js +3 -1
- package/src/logger.d.ts +3 -1
- package/src/logger.js +3 -1
- package/src/mercadolivre.d.ts +3 -1
- package/src/mercadolivre.js +3 -1
- package/src/nucleus.d.ts +3 -0
- package/src/reclameaqui.d.ts +3 -1
- package/src/reclameaqui.js +3 -1
- package/src/sdks/chatwidget.d.ts +15 -1
- package/src/sdks/droznexo.d.ts +19 -0
- package/src/sdks/droznexo.js +11 -1
- package/src/sdks/nucleus.d.ts +13 -0
- package/src/sdks/nucleus.js +12 -2
- package/src/utilities.d.ts +3 -1
- package/src/utilities.js +3 -1
- package/src/whatsapp.d.ts +3 -1
- package/src/whatsapp.js +3 -1
- package/src/zendesk.d.ts +3 -1
- package/src/zendesk.js +3 -1
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
8
|
-
"./*": "./src/*.js"
|
|
9
|
-
"./server": "./src/index.ts",
|
|
10
|
-
"./server/*": "./src/*.ts"
|
|
8
|
+
"./*": "./src/*.js"
|
|
11
9
|
},
|
|
12
10
|
"scripts": {
|
|
13
11
|
"test": "jest",
|
|
14
12
|
"pretest": "npm run clean",
|
|
15
13
|
"clean": "npx rimraf src/*.js src/*.d.ts src/**/*.js src/**/*.d.ts",
|
|
16
14
|
"prebuild": "npm run clean",
|
|
17
|
-
"
|
|
18
|
-
"prepublishOnly": "npm run
|
|
19
|
-
"postpublish": "npm run clean"
|
|
15
|
+
"transpile": "tsc --project tsconfig-build.json",
|
|
16
|
+
"prepublishOnly": "npm run transpile",
|
|
17
|
+
"postpublish": "npm run clean",
|
|
18
|
+
"prepack": "clean-package",
|
|
19
|
+
"postpack": "clean-package restore"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"graphql": "^16.8.1",
|
|
@@ -24,13 +24,10 @@
|
|
|
24
24
|
"isomorphic-ws": "^5.0.0",
|
|
25
25
|
"inbatches": "^0.0.10"
|
|
26
26
|
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"mock-socket": "^9.3.1"
|
|
29
|
-
},
|
|
30
27
|
"files": [
|
|
31
28
|
"package.json",
|
|
32
29
|
"src/**/*.js",
|
|
33
30
|
"src/**/*.d.ts",
|
|
34
31
|
"README.md"
|
|
35
32
|
]
|
|
36
|
-
}
|
|
33
|
+
}
|
package/src/casasbahia.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/casasbahia';
|
|
2
|
-
|
|
2
|
+
declare const Casasbahia_base: 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;
|
|
@@ -28,3 +28,5 @@ export declare const Casasbahia: new (options?: import("./client/http").HttpClie
|
|
|
28
28
|
input: import("./sdks/casasbahia").ApplySolutionInput;
|
|
29
29
|
}>, options?: unknown): Promise<import("./sdks/casasbahia").ApplySolutionMutation>;
|
|
30
30
|
};
|
|
31
|
+
export declare class Casasbahia extends Casasbahia_base {
|
|
32
|
+
}
|
package/src/casasbahia.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.Casasbahia = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const casasbahia_1 = require("./sdks/casasbahia");
|
|
20
20
|
__exportStar(require("./sdks/casasbahia"), exports);
|
|
21
|
-
|
|
21
|
+
class Casasbahia extends (0, http_1.HttpClientBuilder)(casasbahia_1.serviceName, casasbahia_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.Casasbahia = Casasbahia;
|
package/src/chatwidget-ws.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/chatwidget';
|
|
2
|
-
|
|
2
|
+
declare const ChatWidgetWs_base: new () => {
|
|
3
3
|
readonly ws: any;
|
|
4
4
|
connect(): Promise<void>;
|
|
5
5
|
} & {
|
|
@@ -28,3 +28,5 @@ export declare const ChatwidgetWs: new () => {
|
|
|
28
28
|
sessionId: string;
|
|
29
29
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/chatwidget").OnChatWidgetMessageSubscription>;
|
|
30
30
|
};
|
|
31
|
+
export declare class ChatWidgetWs extends ChatWidgetWs_base {
|
|
32
|
+
}
|
package/src/chatwidget-ws.js
CHANGED
|
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ChatWidgetWs = void 0;
|
|
18
18
|
const ws_1 = require("./client/ws");
|
|
19
19
|
const chatwidget_1 = require("./sdks/chatwidget");
|
|
20
20
|
__exportStar(require("./sdks/chatwidget"), exports);
|
|
21
|
-
|
|
21
|
+
class ChatWidgetWs extends (0, ws_1.WsClientBuilder)(chatwidget_1.serviceName, chatwidget_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.ChatWidgetWs = ChatWidgetWs;
|
package/src/chatwidget.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/chatwidget';
|
|
2
|
-
|
|
2
|
+
declare const ChatWidget_base: 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;
|
|
@@ -31,3 +31,5 @@ export declare const ChatWidget: new (options?: import("./client/http").HttpClie
|
|
|
31
31
|
sessionId: string;
|
|
32
32
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/chatwidget").OnChatWidgetMessageSubscription>;
|
|
33
33
|
};
|
|
34
|
+
export declare class ChatWidget extends ChatWidget_base {
|
|
35
|
+
}
|
package/src/chatwidget.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.ChatWidget = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const chatwidget_1 = require("./sdks/chatwidget");
|
|
20
20
|
__exportStar(require("./sdks/chatwidget"), exports);
|
|
21
|
-
|
|
21
|
+
class ChatWidget extends (0, http_1.HttpClientBuilder)(chatwidget_1.serviceName, chatwidget_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.ChatWidget = ChatWidget;
|
package/src/client/helpers.d.ts
CHANGED
|
@@ -15,14 +15,14 @@ export declare class SdkConfigurationError extends Error {
|
|
|
15
15
|
export declare function toAuthorizationProvider(type?: string, ...values: string[]): AuthorizationProvider;
|
|
16
16
|
export declare function resolveAuthorization(provider?: AuthorizationProvider): Promise<string>;
|
|
17
17
|
export declare function mapGraphqlResponse<T>(response: ExecutionResult<T> | Error): T;
|
|
18
|
-
declare class AsyncIterableIteratorMapper<
|
|
18
|
+
declare class AsyncIterableIteratorMapper<From = any, To = any> implements AsyncIterableIterator<To> {
|
|
19
19
|
private from;
|
|
20
20
|
private mapper;
|
|
21
|
-
constructor(from: AsyncIterableIterator<ExecutionResult<
|
|
22
|
-
next(...args: [] | [undefined]): Promise<IteratorResult<
|
|
23
|
-
return(value?: any): Promise<IteratorResult<
|
|
24
|
-
throw(e?: any): Promise<IteratorResult<
|
|
25
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<
|
|
21
|
+
constructor(from: AsyncIterableIterator<ExecutionResult<From, any>>, mapper: (response: ExecutionResult<From, any>) => To);
|
|
22
|
+
next(...args: [] | [undefined]): Promise<IteratorResult<To, any>>;
|
|
23
|
+
return(value?: any): Promise<IteratorResult<To, any>>;
|
|
24
|
+
throw(e?: any): Promise<IteratorResult<To, any>>;
|
|
25
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<To>;
|
|
26
26
|
}
|
|
27
|
-
export declare function mapAsyncIterableGraphqlResponse<
|
|
27
|
+
export declare function mapAsyncIterableGraphqlResponse<From, To>(iterable: AsyncIterableIterator<ExecutionResult<From, any>>, mapper?: (response: ExecutionResult<From, any>) => To): AsyncIterableIteratorMapper<From, To>;
|
|
28
28
|
export {};
|
package/src/client/helpers.js
CHANGED
|
@@ -114,7 +114,7 @@ class AsyncIterableIteratorMapper {
|
|
|
114
114
|
return this;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function mapAsyncIterableGraphqlResponse(iterable) {
|
|
118
|
-
return new AsyncIterableIteratorMapper(iterable,
|
|
117
|
+
function mapAsyncIterableGraphqlResponse(iterable, mapper = mapGraphqlResponse) {
|
|
118
|
+
return new AsyncIterableIteratorMapper(iterable, mapper);
|
|
119
119
|
}
|
|
120
120
|
exports.mapAsyncIterableGraphqlResponse = mapAsyncIterableGraphqlResponse;
|
package/src/drozadmin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/drozcommons';
|
|
2
|
-
|
|
2
|
+
declare const DrozAdmin_base: 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;
|
|
@@ -75,3 +75,5 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
75
75
|
input: import("./sdks/drozcommons").RemoveTenantInput;
|
|
76
76
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantMutation>;
|
|
77
77
|
};
|
|
78
|
+
export declare class DrozAdmin extends DrozAdmin_base {
|
|
79
|
+
}
|
package/src/drozadmin.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozAdmin = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const drozcommons_1 = require("./sdks/drozcommons");
|
|
20
20
|
__exportStar(require("./sdks/drozcommons"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozAdmin extends (0, http_1.HttpClientBuilder)(drozcommons_1.serviceName, drozcommons_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozAdmin = DrozAdmin;
|
package/src/drozai.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/ai';
|
|
2
|
-
|
|
2
|
+
declare const DrozAi_base: 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;
|
|
@@ -46,3 +46,5 @@ export declare const DrozAi: new (options?: import("./client/http").HttpClientOp
|
|
|
46
46
|
input: import("./sdks/ai").RemoveQnAInstanceInput;
|
|
47
47
|
}>, options?: unknown): Promise<import("./sdks/ai").RemoveQnAInstanceMutation>;
|
|
48
48
|
};
|
|
49
|
+
export declare class DrozAi extends DrozAi_base {
|
|
50
|
+
}
|
package/src/drozai.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozAi = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const ai_1 = require("./sdks/ai");
|
|
20
20
|
__exportStar(require("./sdks/ai"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozAi extends (0, http_1.HttpClientBuilder)(ai_1.serviceName, ai_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozAi = DrozAi;
|
package/src/drozbot.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/drozbot';
|
|
2
|
-
|
|
2
|
+
declare const DrozBot_base: 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;
|
|
@@ -28,3 +28,5 @@ export declare const DrozBot: new (options?: import("./client/http").HttpClientO
|
|
|
28
28
|
input: import("./sdks/drozbot").CreateDrozBotTicketCommentInput;
|
|
29
29
|
}>, options?: unknown): Promise<import("./sdks/drozbot").CreateDrozBotTicketCommentMutation>;
|
|
30
30
|
};
|
|
31
|
+
export declare class DrozBot extends DrozBot_base {
|
|
32
|
+
}
|
package/src/drozbot.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozBot = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const drozbot_1 = require("./sdks/drozbot");
|
|
20
20
|
__exportStar(require("./sdks/drozbot"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozBot extends (0, http_1.HttpClientBuilder)(drozbot_1.serviceName, drozbot_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozBot = DrozBot;
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/drozchat';
|
|
2
|
-
|
|
2
|
+
declare const DrozChatWs_base: new () => {
|
|
3
3
|
readonly ws: any;
|
|
4
4
|
connect(): Promise<void>;
|
|
5
5
|
} & {
|
|
@@ -109,3 +109,5 @@ export declare const DrozChatWs: new () => {
|
|
|
109
109
|
ticketId: string;
|
|
110
110
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
111
111
|
};
|
|
112
|
+
export declare class DrozChatWs extends DrozChatWs_base {
|
|
113
|
+
}
|
package/src/drozchat-ws.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozChatWs = void 0;
|
|
|
18
18
|
const ws_1 = require("./client/ws");
|
|
19
19
|
const drozchat_1 = require("./sdks/drozchat");
|
|
20
20
|
__exportStar(require("./sdks/drozchat"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozChatWs extends (0, ws_1.WsClientBuilder)(drozchat_1.serviceName, drozchat_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozChatWs = DrozChatWs;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/drozchat';
|
|
2
|
-
|
|
2
|
+
declare const DrozChat_base: 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;
|
|
@@ -112,3 +112,5 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
|
|
|
112
112
|
ticketId: string;
|
|
113
113
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
114
114
|
};
|
|
115
|
+
export declare class DrozChat extends DrozChat_base {
|
|
116
|
+
}
|
package/src/drozchat.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozChat = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const drozchat_1 = require("./sdks/drozchat");
|
|
20
20
|
__exportStar(require("./sdks/drozchat"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozChat extends (0, http_1.HttpClientBuilder)(drozchat_1.serviceName, drozchat_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozChat = DrozChat;
|
package/src/droznexo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/droznexo';
|
|
2
|
-
|
|
2
|
+
declare const DrozNexo_base: 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;
|
|
@@ -38,6 +38,9 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
|
|
|
38
38
|
publishFlow(variables: import("./sdks/droznexo").Exact<{
|
|
39
39
|
input: import("./sdks/droznexo").PublishFlowInput;
|
|
40
40
|
}>, options?: unknown): Promise<import("./sdks/droznexo").PublishFlowMutation>;
|
|
41
|
+
testFlow(variables: import("./sdks/droznexo").Exact<{
|
|
42
|
+
input: import("./sdks/droznexo").TestFlowInput;
|
|
43
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").TestFlowMutation>;
|
|
41
44
|
removeFlow(variables: import("./sdks/droznexo").Exact<{
|
|
42
45
|
input: import("./sdks/droznexo").RemoveFlowInput;
|
|
43
46
|
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveFlowMutation>;
|
|
@@ -48,3 +51,5 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
|
|
|
48
51
|
input: import("./sdks/droznexo").RemoveSimpleConnectionInput;
|
|
49
52
|
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveSimpleConnectionMutation>;
|
|
50
53
|
};
|
|
54
|
+
export declare class DrozNexo extends DrozNexo_base {
|
|
55
|
+
}
|
package/src/droznexo.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozNexo = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const droznexo_1 = require("./sdks/droznexo");
|
|
20
20
|
__exportStar(require("./sdks/droznexo"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozNexo extends (0, http_1.HttpClientBuilder)(droznexo_1.serviceName, droznexo_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozNexo = DrozNexo;
|
package/src/logger.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/logger';
|
|
2
|
-
|
|
2
|
+
declare const Logger_base: 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;
|
|
@@ -18,3 +18,5 @@ export declare const Logger: new (options?: import("./client/http").HttpClientOp
|
|
|
18
18
|
next?: object;
|
|
19
19
|
}>, options?: unknown): Promise<import("./sdks/logger").ListMessagesQuery>;
|
|
20
20
|
};
|
|
21
|
+
export declare class Logger extends Logger_base {
|
|
22
|
+
}
|
package/src/logger.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.Logger = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const logger_1 = require("./sdks/logger");
|
|
20
20
|
__exportStar(require("./sdks/logger"), exports);
|
|
21
|
-
|
|
21
|
+
class Logger extends (0, http_1.HttpClientBuilder)(logger_1.serviceName, logger_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.Logger = Logger;
|
package/src/mercadolivre.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/mercadolivre';
|
|
2
|
-
|
|
2
|
+
declare const MercadoLivre_base: 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;
|
|
@@ -22,3 +22,5 @@ export declare const MercadoLivre: new (options?: import("./client/http").HttpCl
|
|
|
22
22
|
input: import("./sdks/mercadolivre").RemoveMercadoLivreInstanceInput;
|
|
23
23
|
}>, options?: unknown): Promise<import("./sdks/mercadolivre").RemoveMercadoLivreInstanceMutation>;
|
|
24
24
|
};
|
|
25
|
+
export declare class MercadoLivre extends MercadoLivre_base {
|
|
26
|
+
}
|
package/src/mercadolivre.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.MercadoLivre = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const mercadolivre_1 = require("./sdks/mercadolivre");
|
|
20
20
|
__exportStar(require("./sdks/mercadolivre"), exports);
|
|
21
|
-
|
|
21
|
+
class MercadoLivre extends (0, http_1.HttpClientBuilder)(mercadolivre_1.serviceName, mercadolivre_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.MercadoLivre = MercadoLivre;
|
package/src/nucleus.d.ts
CHANGED
|
@@ -155,6 +155,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
155
155
|
input: import("./sdks/nucleus").StartSessionInput;
|
|
156
156
|
withCustomer?: boolean;
|
|
157
157
|
}>, options?: unknown): Promise<import("./sdks/nucleus").StartSessionMutation>;
|
|
158
|
+
startCustomSession(variables: import("./sdks/nucleus").Exact<{
|
|
159
|
+
input: import("./sdks/nucleus").StartSessionInput;
|
|
160
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").StartCustomSessionMutation>;
|
|
158
161
|
getSession(variables: import("./sdks/nucleus").Exact<{
|
|
159
162
|
sessionId: string;
|
|
160
163
|
withCustomer?: boolean;
|
package/src/reclameaqui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/reclameaqui';
|
|
2
|
-
|
|
2
|
+
declare const Reclameaqui_base: 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;
|
|
@@ -43,3 +43,5 @@ export declare const Reclameaqui: new (options?: import("./client/http").HttpCli
|
|
|
43
43
|
input: import("./sdks/reclameaqui").ForceReSyncReclameAquiTicketInput;
|
|
44
44
|
}>, options?: unknown): Promise<import("./sdks/reclameaqui").ForceReSyncReclameAquiTicketMutation>;
|
|
45
45
|
};
|
|
46
|
+
export declare class Reclameaqui extends Reclameaqui_base {
|
|
47
|
+
}
|
package/src/reclameaqui.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.Reclameaqui = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const reclameaqui_1 = require("./sdks/reclameaqui");
|
|
20
20
|
__exportStar(require("./sdks/reclameaqui"), exports);
|
|
21
|
-
|
|
21
|
+
class Reclameaqui extends (0, http_1.HttpClientBuilder)(reclameaqui_1.serviceName, reclameaqui_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.Reclameaqui = Reclameaqui;
|
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -135,6 +135,19 @@ export type ChatWidget = {
|
|
|
135
135
|
name: Scalars['String']['output'];
|
|
136
136
|
updatedAt: Scalars['DateTime']['output'];
|
|
137
137
|
};
|
|
138
|
+
export type ChatWidgetContextInput = {
|
|
139
|
+
currency?: InputMaybe<Scalars['Currency']['input']>;
|
|
140
|
+
locale?: InputMaybe<Scalars['Locale']['input']>;
|
|
141
|
+
timezone?: InputMaybe<Scalars['Timezone']['input']>;
|
|
142
|
+
};
|
|
143
|
+
export type ChatWidgetCustomerInput = {
|
|
144
|
+
alternateName?: InputMaybe<Scalars['String']['input']>;
|
|
145
|
+
documents?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
146
|
+
emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
|
|
147
|
+
externalIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
|
|
148
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
149
|
+
phones?: InputMaybe<Array<InputMaybe<Scalars['PhoneNumber']['input']>>>;
|
|
150
|
+
};
|
|
138
151
|
export type ChatWidgetMessage = {
|
|
139
152
|
id: Scalars['ID']['output'];
|
|
140
153
|
payload: Array<ChatWidgetMessagePayload>;
|
|
@@ -246,7 +259,8 @@ export type SendMessageToChatWidgetInput = {
|
|
|
246
259
|
};
|
|
247
260
|
export type StartChatWidgetSessionInput = {
|
|
248
261
|
chatId: Scalars['ID']['input'];
|
|
249
|
-
|
|
262
|
+
context?: InputMaybe<ChatWidgetContextInput>;
|
|
263
|
+
customer?: InputMaybe<ChatWidgetCustomerInput>;
|
|
250
264
|
};
|
|
251
265
|
export type StringMatcher = {
|
|
252
266
|
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -234,6 +234,7 @@ export type Mutation = {
|
|
|
234
234
|
publishFlow: Flow;
|
|
235
235
|
removeFlow: Flow;
|
|
236
236
|
removeSimpleConnection: SimpleConnection;
|
|
237
|
+
testFlow: TestFlowSession;
|
|
237
238
|
updateFlow: Flow;
|
|
238
239
|
version?: Maybe<Scalars['String']['output']>;
|
|
239
240
|
};
|
|
@@ -255,6 +256,9 @@ export type MutationRemoveFlowArgs = {
|
|
|
255
256
|
export type MutationRemoveSimpleConnectionArgs = {
|
|
256
257
|
input: RemoveSimpleConnectionInput;
|
|
257
258
|
};
|
|
259
|
+
export type MutationTestFlowArgs = {
|
|
260
|
+
input: TestFlowInput;
|
|
261
|
+
};
|
|
258
262
|
export type MutationUpdateFlowArgs = {
|
|
259
263
|
input: UpdateFlowInput;
|
|
260
264
|
};
|
|
@@ -394,6 +398,13 @@ export type StringMatcherInput = {
|
|
|
394
398
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
395
399
|
ne?: InputMaybe<Scalars['String']['input']>;
|
|
396
400
|
};
|
|
401
|
+
export type TestFlowInput = {
|
|
402
|
+
id: Scalars['ID']['input'];
|
|
403
|
+
versionId: Scalars['ID']['input'];
|
|
404
|
+
};
|
|
405
|
+
export type TestFlowSession = {
|
|
406
|
+
sessionId: Scalars['ID']['output'];
|
|
407
|
+
};
|
|
397
408
|
export declare enum Typenames {
|
|
398
409
|
Any = "Any",
|
|
399
410
|
Flows = "Flows",
|
|
@@ -504,6 +515,12 @@ export type PublishFlowMutationVariables = Exact<{
|
|
|
504
515
|
export type PublishFlowMutation = {
|
|
505
516
|
publishFlow: FlowFragment;
|
|
506
517
|
};
|
|
518
|
+
export type TestFlowMutationVariables = Exact<{
|
|
519
|
+
input: TestFlowInput;
|
|
520
|
+
}>;
|
|
521
|
+
export type TestFlowMutation = {
|
|
522
|
+
testFlow: Pick<TestFlowSession, 'sessionId'>;
|
|
523
|
+
};
|
|
507
524
|
export type RemoveFlowMutationVariables = Exact<{
|
|
508
525
|
input: RemoveFlowInput;
|
|
509
526
|
}>;
|
|
@@ -538,6 +555,7 @@ export declare const CreateFlowDocument = "\n mutation createFlow($input: Cre
|
|
|
538
555
|
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
539
556
|
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
540
557
|
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
558
|
+
export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
|
|
541
559
|
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
542
560
|
export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
543
561
|
export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
@@ -553,6 +571,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
553
571
|
editFlow(variables: EditFlowMutationVariables, options?: C): Promise<EditFlowMutation>;
|
|
554
572
|
updateFlow(variables: UpdateFlowMutationVariables, options?: C): Promise<UpdateFlowMutation>;
|
|
555
573
|
publishFlow(variables: PublishFlowMutationVariables, options?: C): Promise<PublishFlowMutation>;
|
|
574
|
+
testFlow(variables: TestFlowMutationVariables, options?: C): Promise<TestFlowMutation>;
|
|
556
575
|
removeFlow(variables: RemoveFlowMutationVariables, options?: C): Promise<RemoveFlowMutation>;
|
|
557
576
|
createSimpleConnection(variables: CreateSimpleConnectionMutationVariables, options?: C): Promise<CreateSimpleConnectionMutation>;
|
|
558
577
|
removeSimpleConnection(variables: RemoveSimpleConnectionMutationVariables, options?: C): Promise<RemoveSimpleConnectionMutation>;
|
package/src/sdks/droznexo.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.getSdk = exports.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.GetLicenceDocument = exports.GetUsageStatisticsDocument = exports.FlowFragmentDoc = exports.EdgeFragmentDoc = exports.NodeFragmentDoc = exports.SimpleConnectionFragmentDoc = exports.SimpleConnectionSuggestionFragmentDoc = exports.AppAndAppInstanceFragmentDoc = exports.Typenames = exports.FlowStatus = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.TestFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.GetLicenceDocument = exports.GetUsageStatisticsDocument = exports.FlowFragmentDoc = exports.EdgeFragmentDoc = exports.NodeFragmentDoc = exports.SimpleConnectionFragmentDoc = exports.SimpleConnectionSuggestionFragmentDoc = exports.AppAndAppInstanceFragmentDoc = exports.Typenames = exports.FlowStatus = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -228,6 +228,13 @@ exports.PublishFlowDocument = `
|
|
|
228
228
|
${exports.AppAndAppInstanceFragmentDoc}
|
|
229
229
|
${exports.NodeFragmentDoc}
|
|
230
230
|
${exports.EdgeFragmentDoc}`;
|
|
231
|
+
exports.TestFlowDocument = `
|
|
232
|
+
mutation testFlow($input: TestFlowInput!) {
|
|
233
|
+
testFlow(input: $input) {
|
|
234
|
+
sessionId
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`;
|
|
231
238
|
exports.RemoveFlowDocument = `
|
|
232
239
|
mutation removeFlow($input: RemoveFlowInput!) {
|
|
233
240
|
removeFlow(input: $input) {
|
|
@@ -286,6 +293,9 @@ function getSdk(requester) {
|
|
|
286
293
|
publishFlow(variables, options) {
|
|
287
294
|
return requester(exports.PublishFlowDocument, variables, options);
|
|
288
295
|
},
|
|
296
|
+
testFlow(variables, options) {
|
|
297
|
+
return requester(exports.TestFlowDocument, variables, options);
|
|
298
|
+
},
|
|
289
299
|
removeFlow(variables, options) {
|
|
290
300
|
return requester(exports.RemoveFlowDocument, variables, options);
|
|
291
301
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -435,6 +435,7 @@ export type Mutation = {
|
|
|
435
435
|
removeSystemCredentials?: Maybe<SafeCredentials>;
|
|
436
436
|
removeTagsFromSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
437
437
|
setSessionAttribute?: Maybe<Scalars['JSON']['output']>;
|
|
438
|
+
startCustomSession?: Maybe<Session>;
|
|
438
439
|
startSession?: Maybe<Session>;
|
|
439
440
|
unregisterAppInstance?: Maybe<AppInstance>;
|
|
440
441
|
updateAgent?: Maybe<Agent>;
|
|
@@ -523,6 +524,9 @@ export type MutationRemoveTagsFromSessionAttributesArgs = {
|
|
|
523
524
|
export type MutationSetSessionAttributeArgs = {
|
|
524
525
|
input: SetSessionAttributeInput;
|
|
525
526
|
};
|
|
527
|
+
export type MutationStartCustomSessionArgs = {
|
|
528
|
+
input: StartSessionInput;
|
|
529
|
+
};
|
|
526
530
|
export type MutationStartSessionArgs = {
|
|
527
531
|
input: StartSessionInput;
|
|
528
532
|
};
|
|
@@ -871,6 +875,7 @@ export type SetSessionAttributeInput = {
|
|
|
871
875
|
export type StartSessionInput = {
|
|
872
876
|
context?: InputMaybe<SessionContextInput>;
|
|
873
877
|
customer: GetOrCreateCustomerInput;
|
|
878
|
+
stateMachineId?: InputMaybe<Scalars['ID']['input']>;
|
|
874
879
|
triggerDrn: Scalars['ID']['input'];
|
|
875
880
|
};
|
|
876
881
|
export type StateMachineConfig = {
|
|
@@ -1355,6 +1360,12 @@ export type StartSessionMutation = {
|
|
|
1355
1360
|
customer?: CustomerFragment;
|
|
1356
1361
|
} & SessionFragment)>;
|
|
1357
1362
|
};
|
|
1363
|
+
export type StartCustomSessionMutationVariables = Exact<{
|
|
1364
|
+
input: StartSessionInput;
|
|
1365
|
+
}>;
|
|
1366
|
+
export type StartCustomSessionMutation = {
|
|
1367
|
+
startCustomSession?: Maybe<SessionFragment>;
|
|
1368
|
+
};
|
|
1358
1369
|
export type GetSessionQueryVariables = Exact<{
|
|
1359
1370
|
sessionId: Scalars['ID']['input'];
|
|
1360
1371
|
withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -1585,6 +1596,7 @@ export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n
|
|
|
1585
1596
|
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\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 ";
|
|
1586
1597
|
export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
|
|
1587
1598
|
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 createdAt\n updatedAt\n}\n ";
|
|
1599
|
+
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 ";
|
|
1588
1600
|
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\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 createdAt\n updatedAt\n}\n ";
|
|
1589
1601
|
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1590
1602
|
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
@@ -1660,6 +1672,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1660
1672
|
getSystemRole(variables: GetSystemRoleQueryVariables, options?: C): Promise<GetSystemRoleQuery>;
|
|
1661
1673
|
checkPermissions(variables: CheckPermissionsQueryVariables, options?: C): Promise<CheckPermissionsQuery>;
|
|
1662
1674
|
startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
|
|
1675
|
+
startCustomSession(variables: StartCustomSessionMutationVariables, options?: C): Promise<StartCustomSessionMutation>;
|
|
1663
1676
|
getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
|
|
1664
1677
|
getSessionSchema(variables?: GetSessionSchemaQueryVariables, options?: C): Promise<GetSessionSchemaQuery>;
|
|
1665
1678
|
getSessionSchemaForAppId(variables: GetSessionSchemaForAppIdQueryVariables, options?: C): Promise<GetSessionSchemaForAppIdQuery>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = 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.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.getSdk = void 0;
|
|
5
|
+
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.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = 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.GetOrCreateCustomerDocument = exports.ListCustomersDocument = 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 = void 0;
|
|
6
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = void 0;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
9
9
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -693,6 +693,13 @@ exports.StartSessionDocument = `
|
|
|
693
693
|
}
|
|
694
694
|
${exports.SessionFragmentDoc}
|
|
695
695
|
${exports.CustomerFragmentDoc}`;
|
|
696
|
+
exports.StartCustomSessionDocument = `
|
|
697
|
+
mutation startCustomSession($input: StartSessionInput!) {
|
|
698
|
+
startCustomSession(input: $input) {
|
|
699
|
+
...session
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
${exports.SessionFragmentDoc}`;
|
|
696
703
|
exports.GetSessionDocument = `
|
|
697
704
|
query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {
|
|
698
705
|
getSession(sessionId: $sessionId) {
|
|
@@ -1053,6 +1060,9 @@ function getSdk(requester) {
|
|
|
1053
1060
|
startSession(variables, options) {
|
|
1054
1061
|
return requester(exports.StartSessionDocument, variables, options);
|
|
1055
1062
|
},
|
|
1063
|
+
startCustomSession(variables, options) {
|
|
1064
|
+
return requester(exports.StartCustomSessionDocument, variables, options);
|
|
1065
|
+
},
|
|
1056
1066
|
getSession(variables, options) {
|
|
1057
1067
|
return requester(exports.GetSessionDocument, variables, options);
|
|
1058
1068
|
},
|
package/src/utilities.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/utilities';
|
|
2
|
-
|
|
2
|
+
declare const DrozUtilities_base: 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;
|
|
@@ -82,3 +82,5 @@ export declare const DrozUtilities: new (options?: import("./client/http").HttpC
|
|
|
82
82
|
input: import("./sdks/utilities").RemovePromptAppInput;
|
|
83
83
|
}>, options?: unknown): Promise<import("./sdks/utilities").RemovePromptInstanceMutation>;
|
|
84
84
|
};
|
|
85
|
+
export declare class DrozUtilities extends DrozUtilities_base {
|
|
86
|
+
}
|
package/src/utilities.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.DrozUtilities = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const utilities_1 = require("./sdks/utilities");
|
|
20
20
|
__exportStar(require("./sdks/utilities"), exports);
|
|
21
|
-
|
|
21
|
+
class DrozUtilities extends (0, http_1.HttpClientBuilder)(utilities_1.serviceName, utilities_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.DrozUtilities = DrozUtilities;
|
package/src/whatsapp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/whatsapp';
|
|
2
|
-
|
|
2
|
+
declare const WhatsApp_base: 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;
|
|
@@ -25,3 +25,5 @@ export declare const WhatsApp: new (options?: import("./client/http").HttpClient
|
|
|
25
25
|
input: import("./sdks/whatsapp").RemoveWhatsAppInstanceInput;
|
|
26
26
|
}>, options?: unknown): Promise<import("./sdks/whatsapp").RemoveWhatsAppInstanceMutation>;
|
|
27
27
|
};
|
|
28
|
+
export declare class WhatsApp extends WhatsApp_base {
|
|
29
|
+
}
|
package/src/whatsapp.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.WhatsApp = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const whatsapp_1 = require("./sdks/whatsapp");
|
|
20
20
|
__exportStar(require("./sdks/whatsapp"), exports);
|
|
21
|
-
|
|
21
|
+
class WhatsApp extends (0, http_1.HttpClientBuilder)(whatsapp_1.serviceName, whatsapp_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.WhatsApp = WhatsApp;
|
package/src/zendesk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './sdks/zendesk';
|
|
2
|
-
|
|
2
|
+
declare const Zendesk_base: 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;
|
|
@@ -37,3 +37,5 @@ export declare const Zendesk: new (options?: import("./client/http").HttpClientO
|
|
|
37
37
|
input: import("./sdks/zendesk").RemoveZendeskInstanceInput;
|
|
38
38
|
}>, options?: unknown): Promise<import("./sdks/zendesk").RemoveZendeskInstanceMutation>;
|
|
39
39
|
};
|
|
40
|
+
export declare class Zendesk extends Zendesk_base {
|
|
41
|
+
}
|
package/src/zendesk.js
CHANGED
|
@@ -18,4 +18,6 @@ exports.Zendesk = void 0;
|
|
|
18
18
|
const http_1 = require("./client/http");
|
|
19
19
|
const zendesk_1 = require("./sdks/zendesk");
|
|
20
20
|
__exportStar(require("./sdks/zendesk"), exports);
|
|
21
|
-
|
|
21
|
+
class Zendesk extends (0, http_1.HttpClientBuilder)(zendesk_1.serviceName, zendesk_1.getSdk) {
|
|
22
|
+
}
|
|
23
|
+
exports.Zendesk = Zendesk;
|