@droz-js/sdk 0.6.21 → 0.7.1

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.
Files changed (50) hide show
  1. package/package.json +9 -12
  2. package/src/casasbahia.d.ts +3 -1
  3. package/src/casasbahia.js +3 -1
  4. package/src/chatwidget-ws.d.ts +3 -1
  5. package/src/chatwidget-ws.js +4 -2
  6. package/src/chatwidget.d.ts +3 -1
  7. package/src/chatwidget.js +3 -1
  8. package/src/client/helpers.d.ts +7 -7
  9. package/src/client/helpers.js +2 -2
  10. package/src/drozadmin.d.ts +3 -1
  11. package/src/drozadmin.js +3 -1
  12. package/src/drozai.d.ts +3 -1
  13. package/src/drozai.js +3 -1
  14. package/src/drozbot.d.ts +3 -1
  15. package/src/drozbot.js +3 -1
  16. package/src/drozchat-ws.d.ts +3 -1
  17. package/src/drozchat-ws.js +3 -1
  18. package/src/drozchat.d.ts +3 -1
  19. package/src/drozchat.js +3 -1
  20. package/src/droznexo.d.ts +9 -4
  21. package/src/droznexo.js +3 -1
  22. package/src/logger.d.ts +3 -1
  23. package/src/logger.js +3 -1
  24. package/src/mercadolivre.d.ts +3 -1
  25. package/src/mercadolivre.js +3 -1
  26. package/src/nucleus.d.ts +3 -0
  27. package/src/reclameaqui.d.ts +3 -1
  28. package/src/reclameaqui.js +3 -1
  29. package/src/sdks/ai.d.ts +5 -0
  30. package/src/sdks/casasbahia.d.ts +5 -0
  31. package/src/sdks/chatwidget.d.ts +20 -1
  32. package/src/sdks/drozbot.d.ts +5 -0
  33. package/src/sdks/drozchat.d.ts +5 -0
  34. package/src/sdks/drozcommons.d.ts +5 -0
  35. package/src/sdks/droznexo.d.ts +48 -23
  36. package/src/sdks/droznexo.js +35 -21
  37. package/src/sdks/logger.d.ts +5 -0
  38. package/src/sdks/mercadolivre.d.ts +5 -0
  39. package/src/sdks/nucleus.d.ts +18 -0
  40. package/src/sdks/nucleus.js +12 -2
  41. package/src/sdks/reclameaqui.d.ts +5 -0
  42. package/src/sdks/utilities.d.ts +5 -0
  43. package/src/sdks/whatsapp.d.ts +5 -0
  44. package/src/sdks/zendesk.d.ts +5 -0
  45. package/src/utilities.d.ts +3 -1
  46. package/src/utilities.js +3 -1
  47. package/src/whatsapp.d.ts +3 -1
  48. package/src/whatsapp.js +3 -1
  49. package/src/zendesk.d.ts +3 -1
  50. package/src/zendesk.js +3 -1
package/package.json CHANGED
@@ -1,36 +1,33 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.6.21",
4
+ "version": "0.7.1",
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
- "build": "tsc --project tsconfig-build.json",
18
- "prepublishOnly": "npm run build",
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
- "graphql": "^16.8.1",
22
+ "graphql": "^16.8.2",
23
23
  "graphql-ws": "^5.16.0",
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
+ }
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/casasbahia';
2
- export declare const Casasbahia: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.Casasbahia = (0, http_1.HttpClientBuilder)(casasbahia_1.serviceName, casasbahia_1.getSdk);
21
+ class Casasbahia extends (0, http_1.HttpClientBuilder)(casasbahia_1.serviceName, casasbahia_1.getSdk) {
22
+ }
23
+ exports.Casasbahia = Casasbahia;
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/chatwidget';
2
- export declare const ChatwidgetWs: new () => {
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
+ }
@@ -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.ChatwidgetWs = void 0;
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
- exports.ChatwidgetWs = (0, ws_1.WsClientBuilder)(chatwidget_1.serviceName, chatwidget_1.getSdk);
21
+ class ChatWidgetWs extends (0, ws_1.WsClientBuilder)(chatwidget_1.serviceName, chatwidget_1.getSdk) {
22
+ }
23
+ exports.ChatWidgetWs = ChatWidgetWs;
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/chatwidget';
2
- export declare const ChatWidget: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.ChatWidget = (0, http_1.HttpClientBuilder)(chatwidget_1.serviceName, chatwidget_1.getSdk);
21
+ class ChatWidget extends (0, http_1.HttpClientBuilder)(chatwidget_1.serviceName, chatwidget_1.getSdk) {
22
+ }
23
+ exports.ChatWidget = ChatWidget;
@@ -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<T = any> implements AsyncIterableIterator<T> {
18
+ declare class AsyncIterableIteratorMapper<From = any, To = any> implements AsyncIterableIterator<To> {
19
19
  private from;
20
20
  private mapper;
21
- constructor(from: AsyncIterableIterator<ExecutionResult<T, any>>, mapper: (response: ExecutionResult<T, any>) => T);
22
- next(...args: [] | [undefined]): Promise<IteratorResult<T, any>>;
23
- return(value?: any): Promise<IteratorResult<T, any>>;
24
- throw(e?: any): Promise<IteratorResult<T, any>>;
25
- [Symbol.asyncIterator](): AsyncIterableIterator<T>;
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<T>(iterable: AsyncIterableIterator<ExecutionResult<T, any>>): AsyncIterableIteratorMapper<T>;
27
+ export declare function mapAsyncIterableGraphqlResponse<From, To>(iterable: AsyncIterableIterator<ExecutionResult<From, any>>, mapper?: (response: ExecutionResult<From, any>) => To): AsyncIterableIteratorMapper<From, To>;
28
28
  export {};
@@ -114,7 +114,7 @@ class AsyncIterableIteratorMapper {
114
114
  return this;
115
115
  }
116
116
  }
117
- function mapAsyncIterableGraphqlResponse(iterable) {
118
- return new AsyncIterableIteratorMapper(iterable, mapGraphqlResponse);
117
+ function mapAsyncIterableGraphqlResponse(iterable, mapper = mapGraphqlResponse) {
118
+ return new AsyncIterableIteratorMapper(iterable, mapper);
119
119
  }
120
120
  exports.mapAsyncIterableGraphqlResponse = mapAsyncIterableGraphqlResponse;
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/drozcommons';
2
- export declare const DrozAdmin: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.DrozAdmin = (0, http_1.HttpClientBuilder)(drozcommons_1.serviceName, drozcommons_1.getSdk);
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
- export declare const DrozAi: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.DrozAi = (0, http_1.HttpClientBuilder)(ai_1.serviceName, ai_1.getSdk);
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
- export declare const DrozBot: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.DrozBot = (0, http_1.HttpClientBuilder)(drozbot_1.serviceName, drozbot_1.getSdk);
21
+ class DrozBot extends (0, http_1.HttpClientBuilder)(drozbot_1.serviceName, drozbot_1.getSdk) {
22
+ }
23
+ exports.DrozBot = DrozBot;
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/drozchat';
2
- export declare const DrozChatWs: new () => {
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
+ }
@@ -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
- exports.DrozChatWs = (0, ws_1.WsClientBuilder)(drozchat_1.serviceName, drozchat_1.getSdk);
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
- export declare const DrozChat: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.DrozChat = (0, http_1.HttpClientBuilder)(drozchat_1.serviceName, drozchat_1.getSdk);
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
- export declare const DrozNexo: new (options?: import("./client/http").HttpClientOptions) => {
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;
@@ -9,9 +9,6 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
9
9
  getUsageStatistics(variables?: import("./sdks/droznexo").Exact<{
10
10
  [key: string]: never;
11
11
  }>, options?: unknown): Promise<import("./sdks/droznexo").GetUsageStatisticsQuery>;
12
- getLicence(variables?: import("./sdks/droznexo").Exact<{
13
- [key: string]: never;
14
- }>, options?: unknown): Promise<import("./sdks/droznexo").GetLicenceQuery>;
15
12
  getFlow(variables: import("./sdks/droznexo").Exact<{
16
13
  id: string;
17
14
  versionId: string;
@@ -38,6 +35,9 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
38
35
  publishFlow(variables: import("./sdks/droznexo").Exact<{
39
36
  input: import("./sdks/droznexo").PublishFlowInput;
40
37
  }>, options?: unknown): Promise<import("./sdks/droznexo").PublishFlowMutation>;
38
+ testFlow(variables: import("./sdks/droznexo").Exact<{
39
+ input: import("./sdks/droznexo").TestFlowInput;
40
+ }>, options?: unknown): Promise<import("./sdks/droznexo").TestFlowMutation>;
41
41
  removeFlow(variables: import("./sdks/droznexo").Exact<{
42
42
  input: import("./sdks/droznexo").RemoveFlowInput;
43
43
  }>, options?: unknown): Promise<import("./sdks/droznexo").RemoveFlowMutation>;
@@ -47,4 +47,9 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
47
47
  removeSimpleConnection(variables: import("./sdks/droznexo").Exact<{
48
48
  input: import("./sdks/droznexo").RemoveSimpleConnectionInput;
49
49
  }>, options?: unknown): Promise<import("./sdks/droznexo").RemoveSimpleConnectionMutation>;
50
+ getLicence(variables?: import("./sdks/droznexo").Exact<{
51
+ [key: string]: never;
52
+ }>, options?: unknown): Promise<import("./sdks/droznexo").GetLicenceQuery>;
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
- exports.DrozNexo = (0, http_1.HttpClientBuilder)(droznexo_1.serviceName, droznexo_1.getSdk);
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
- export declare const Logger: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.Logger = (0, http_1.HttpClientBuilder)(logger_1.serviceName, logger_1.getSdk);
21
+ class Logger extends (0, http_1.HttpClientBuilder)(logger_1.serviceName, logger_1.getSdk) {
22
+ }
23
+ exports.Logger = Logger;
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/mercadolivre';
2
- export declare const MercadoLivre: new (options?: import("./client/http").HttpClientOptions) => {
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
+ }
@@ -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
- exports.MercadoLivre = (0, http_1.HttpClientBuilder)(mercadolivre_1.serviceName, mercadolivre_1.getSdk);
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;
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/reclameaqui';
2
- export declare const Reclameaqui: new (options?: import("./client/http").HttpClientOptions) => {
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
+ }
@@ -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
- exports.Reclameaqui = (0, http_1.HttpClientBuilder)(reclameaqui_1.serviceName, reclameaqui_1.getSdk);
21
+ class Reclameaqui extends (0, http_1.HttpClientBuilder)(reclameaqui_1.serviceName, reclameaqui_1.getSdk) {
22
+ }
23
+ exports.Reclameaqui = Reclameaqui;
package/src/sdks/ai.d.ts CHANGED
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -135,6 +140,19 @@ export type ChatWidget = {
135
140
  name: Scalars['String']['output'];
136
141
  updatedAt: Scalars['DateTime']['output'];
137
142
  };
143
+ export type ChatWidgetContextInput = {
144
+ currency?: InputMaybe<Scalars['Currency']['input']>;
145
+ locale?: InputMaybe<Scalars['Locale']['input']>;
146
+ timezone?: InputMaybe<Scalars['Timezone']['input']>;
147
+ };
148
+ export type ChatWidgetCustomerInput = {
149
+ alternateName?: InputMaybe<Scalars['String']['input']>;
150
+ documents?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
151
+ emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
152
+ externalIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
153
+ name?: InputMaybe<Scalars['String']['input']>;
154
+ phones?: InputMaybe<Array<InputMaybe<Scalars['PhoneNumber']['input']>>>;
155
+ };
138
156
  export type ChatWidgetMessage = {
139
157
  id: Scalars['ID']['output'];
140
158
  payload: Array<ChatWidgetMessagePayload>;
@@ -246,7 +264,8 @@ export type SendMessageToChatWidgetInput = {
246
264
  };
247
265
  export type StartChatWidgetSessionInput = {
248
266
  chatId: Scalars['ID']['input'];
249
- userIdentifier: Scalars['ID']['input'];
267
+ context?: InputMaybe<ChatWidgetContextInput>;
268
+ customer?: InputMaybe<ChatWidgetCustomerInput>;
250
269
  };
251
270
  export type StringMatcher = {
252
271
  btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -126,6 +126,11 @@ export type AddTagsToTicketInput = {
126
126
  tags: Array<Scalars['String']['input']>;
127
127
  ticketId: Scalars['ID']['input'];
128
128
  };
129
+ export type AgentInfo = {
130
+ id: Scalars['ID']['output'];
131
+ name: Scalars['String']['output'];
132
+ picture?: Maybe<Scalars['String']['output']>;
133
+ };
129
134
  export type AgentSearchResultsFacet = {
130
135
  name: Scalars['String']['output'];
131
136
  stats?: Maybe<SearchResultsFacetStats>;
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export type AppAndAppInstance = {
122
127
  app: DrozNexoApp;
123
128
  appInstance: DrozNexoAppInstance;
@@ -196,7 +201,7 @@ export type EditFlowInput = {
196
201
  };
197
202
  export type Flow = {
198
203
  createdAt: Scalars['DateTime']['output'];
199
- createdBy?: Maybe<Scalars['String']['output']>;
204
+ createdBy?: Maybe<AgentInfo>;
200
205
  description?: Maybe<Scalars['String']['output']>;
201
206
  edges: Array<Edge>;
202
207
  id: Scalars['ID']['output'];
@@ -234,6 +239,7 @@ export type Mutation = {
234
239
  publishFlow: Flow;
235
240
  removeFlow: Flow;
236
241
  removeSimpleConnection: SimpleConnection;
242
+ testFlow: TestFlowSession;
237
243
  updateFlow: Flow;
238
244
  version?: Maybe<Scalars['String']['output']>;
239
245
  };
@@ -255,6 +261,9 @@ export type MutationRemoveFlowArgs = {
255
261
  export type MutationRemoveSimpleConnectionArgs = {
256
262
  input: RemoveSimpleConnectionInput;
257
263
  };
264
+ export type MutationTestFlowArgs = {
265
+ input: TestFlowInput;
266
+ };
258
267
  export type MutationUpdateFlowArgs = {
259
268
  input: UpdateFlowInput;
260
269
  };
@@ -394,6 +403,13 @@ export type StringMatcherInput = {
394
403
  lte?: InputMaybe<Scalars['String']['input']>;
395
404
  ne?: InputMaybe<Scalars['String']['input']>;
396
405
  };
406
+ export type TestFlowInput = {
407
+ id: Scalars['ID']['input'];
408
+ versionId: Scalars['ID']['input'];
409
+ };
410
+ export type TestFlowSession = {
411
+ sessionId: Scalars['ID']['output'];
412
+ };
397
413
  export declare enum Typenames {
398
414
  Any = "Any",
399
415
  Flows = "Flows",
@@ -426,7 +442,8 @@ export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
426
442
  data: AppAndAppInstanceFragment;
427
443
  });
428
444
  export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>;
429
- export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdBy' | 'createdAt' | 'updatedAt'> & {
445
+ export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt'> & {
446
+ createdBy?: Maybe<Pick<AgentInfo, 'id' | 'name' | 'picture'>>;
430
447
  triggers: Array<AppAndAppInstanceFragment>;
431
448
  nodes: Array<NodeFragment>;
432
449
  edges: Array<EdgeFragment>;
@@ -437,17 +454,6 @@ export type GetUsageStatisticsQueryVariables = Exact<{
437
454
  export type GetUsageStatisticsQuery = {
438
455
  getUsageStatistics?: Maybe<Pick<DrozNexoUsageStatistics, 'totalSecrets' | 'totalAppInstances' | 'totalConnections'>>;
439
456
  };
440
- export type GetLicenceQueryVariables = Exact<{
441
- [key: string]: never;
442
- }>;
443
- export type GetLicenceQuery = {
444
- getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
445
- billing: {
446
- automate: Pick<AutomateConfiguration, 'isEnabled'>;
447
- reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
448
- };
449
- })>;
450
- };
451
457
  export type GetFlowQueryVariables = Exact<{
452
458
  id: Scalars['ID']['input'];
453
459
  versionId: Scalars['ID']['input'];
@@ -504,6 +510,12 @@ export type PublishFlowMutationVariables = Exact<{
504
510
  export type PublishFlowMutation = {
505
511
  publishFlow: FlowFragment;
506
512
  };
513
+ export type TestFlowMutationVariables = Exact<{
514
+ input: TestFlowInput;
515
+ }>;
516
+ export type TestFlowMutation = {
517
+ testFlow: Pick<TestFlowSession, 'sessionId'>;
518
+ };
507
519
  export type RemoveFlowMutationVariables = Exact<{
508
520
  input: RemoveFlowInput;
509
521
  }>;
@@ -522,29 +534,40 @@ export type RemoveSimpleConnectionMutationVariables = Exact<{
522
534
  export type RemoveSimpleConnectionMutation = {
523
535
  removeSimpleConnection: SimpleConnectionFragment;
524
536
  };
537
+ export type GetLicenceQueryVariables = Exact<{
538
+ [key: string]: never;
539
+ }>;
540
+ export type GetLicenceQuery = {
541
+ getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
542
+ billing: {
543
+ automate: Pick<AutomateConfiguration, 'isEnabled'>;
544
+ reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
545
+ };
546
+ })>;
547
+ };
525
548
  export declare const AppAndAppInstanceFragmentDoc = "\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 ";
526
549
  export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
527
550
  export declare const SimpleConnectionFragmentDoc = "\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 ";
528
551
  export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
529
552
  export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
530
- export declare const FlowFragmentDoc = "\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 ";
553
+ export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
531
554
  export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
532
- export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
533
- export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\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 ";
534
- export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\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 ";
555
+ export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\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 id\n name\n picture\n }\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 ";
556
+ export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\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 ";
535
557
  export declare const ListSimpleSuggestionsDocument = "\n query listSimpleSuggestions {\n listSimpleConnectionSuggestions {\n ...simpleConnectionSuggestion\n }\n}\n \n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\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 ";
536
558
  export declare const ListSimpleConnectionsDocument = "\n query listSimpleConnections($next: Base64) {\n listSimpleConnections(next: $next) {\n nodes {\n ...simpleConnection\n }\n pageInfo {\n next\n hasNext\n }\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 ";
537
- export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(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 ";
538
- 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
- 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
- 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 ";
541
- 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 ";
559
+ export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(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 id\n name\n picture\n }\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 ";
560
+ 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 id\n name\n picture\n }\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 ";
561
+ 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 id\n name\n picture\n }\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 ";
562
+ 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 id\n name\n picture\n }\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 ";
563
+ export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
564
+ 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 id\n name\n picture\n }\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
565
  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
566
  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 ";
567
+ export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
544
568
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
545
569
  export declare function getSdk<C>(requester: Requester<C>): {
546
570
  getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
547
- getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
548
571
  getFlow(variables: GetFlowQueryVariables, options?: C): Promise<GetFlowQuery>;
549
572
  listFlows(variables?: ListFlowsQueryVariables, options?: C): Promise<ListFlowsQuery>;
550
573
  listSimpleSuggestions(variables?: ListSimpleSuggestionsQueryVariables, options?: C): Promise<ListSimpleSuggestionsQuery>;
@@ -553,9 +576,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
553
576
  editFlow(variables: EditFlowMutationVariables, options?: C): Promise<EditFlowMutation>;
554
577
  updateFlow(variables: UpdateFlowMutationVariables, options?: C): Promise<UpdateFlowMutation>;
555
578
  publishFlow(variables: PublishFlowMutationVariables, options?: C): Promise<PublishFlowMutation>;
579
+ testFlow(variables: TestFlowMutationVariables, options?: C): Promise<TestFlowMutation>;
556
580
  removeFlow(variables: RemoveFlowMutationVariables, options?: C): Promise<RemoveFlowMutation>;
557
581
  createSimpleConnection(variables: CreateSimpleConnectionMutationVariables, options?: C): Promise<CreateSimpleConnectionMutation>;
558
582
  removeSimpleConnection(variables: RemoveSimpleConnectionMutationVariables, options?: C): Promise<RemoveSimpleConnectionMutation>;
583
+ getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
559
584
  };
560
585
  export type Sdk = ReturnType<typeof getSdk>;
561
586
  export declare const serviceName = "@droz/droznexo";
@@ -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.GetLicenceDocument = 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.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";
@@ -101,7 +101,11 @@ exports.FlowFragmentDoc = `
101
101
  description
102
102
  status
103
103
  languages
104
- createdBy
104
+ createdBy {
105
+ id
106
+ name
107
+ picture
108
+ }
105
109
  triggers {
106
110
  ...appAndAppInstance
107
111
  }
@@ -124,22 +128,6 @@ exports.GetUsageStatisticsDocument = `
124
128
  }
125
129
  }
126
130
  `;
127
- exports.GetLicenceDocument = `
128
- query getLicence {
129
- getLicence {
130
- tenantId
131
- name
132
- billing {
133
- automate {
134
- isEnabled
135
- }
136
- reclameaqui {
137
- cutoffSyncDays
138
- }
139
- }
140
- }
141
- }
142
- `;
143
131
  exports.GetFlowDocument = `
144
132
  query getFlow($id: ID!, $versionId: ID!) {
145
133
  getFlow(id: $id, versionId: $versionId) {
@@ -228,6 +216,13 @@ exports.PublishFlowDocument = `
228
216
  ${exports.AppAndAppInstanceFragmentDoc}
229
217
  ${exports.NodeFragmentDoc}
230
218
  ${exports.EdgeFragmentDoc}`;
219
+ exports.TestFlowDocument = `
220
+ mutation testFlow($input: TestFlowInput!) {
221
+ testFlow(input: $input) {
222
+ sessionId
223
+ }
224
+ }
225
+ `;
231
226
  exports.RemoveFlowDocument = `
232
227
  mutation removeFlow($input: RemoveFlowInput!) {
233
228
  removeFlow(input: $input) {
@@ -254,14 +249,27 @@ exports.RemoveSimpleConnectionDocument = `
254
249
  }
255
250
  ${exports.SimpleConnectionFragmentDoc}
256
251
  ${exports.AppAndAppInstanceFragmentDoc}`;
252
+ exports.GetLicenceDocument = `
253
+ query getLicence {
254
+ getLicence {
255
+ tenantId
256
+ name
257
+ billing {
258
+ automate {
259
+ isEnabled
260
+ }
261
+ reclameaqui {
262
+ cutoffSyncDays
263
+ }
264
+ }
265
+ }
266
+ }
267
+ `;
257
268
  function getSdk(requester) {
258
269
  return {
259
270
  getUsageStatistics(variables, options) {
260
271
  return requester(exports.GetUsageStatisticsDocument, variables, options);
261
272
  },
262
- getLicence(variables, options) {
263
- return requester(exports.GetLicenceDocument, variables, options);
264
- },
265
273
  getFlow(variables, options) {
266
274
  return requester(exports.GetFlowDocument, variables, options);
267
275
  },
@@ -286,6 +294,9 @@ function getSdk(requester) {
286
294
  publishFlow(variables, options) {
287
295
  return requester(exports.PublishFlowDocument, variables, options);
288
296
  },
297
+ testFlow(variables, options) {
298
+ return requester(exports.TestFlowDocument, variables, options);
299
+ },
289
300
  removeFlow(variables, options) {
290
301
  return requester(exports.RemoveFlowDocument, variables, options);
291
302
  },
@@ -294,6 +305,9 @@ function getSdk(requester) {
294
305
  },
295
306
  removeSimpleConnection(variables, options) {
296
307
  return requester(exports.RemoveSimpleConnectionDocument, variables, options);
308
+ },
309
+ getLicence(variables, options) {
310
+ return requester(exports.GetLicenceDocument, variables, options);
297
311
  }
298
312
  };
299
313
  }
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -144,6 +144,11 @@ export type AgentConnection = {
144
144
  nodes: Array<Agent>;
145
145
  pageInfo: PageInfo;
146
146
  };
147
+ export type AgentInfo = {
148
+ id: Scalars['ID']['output'];
149
+ name: Scalars['String']['output'];
150
+ picture?: Maybe<Scalars['String']['output']>;
151
+ };
147
152
  export type ApiKeyAgent = {
148
153
  email: Scalars['EmailAddress']['output'];
149
154
  password: Scalars['String']['output'];
@@ -435,6 +440,7 @@ export type Mutation = {
435
440
  removeSystemCredentials?: Maybe<SafeCredentials>;
436
441
  removeTagsFromSessionAttributes?: Maybe<Scalars['JSON']['output']>;
437
442
  setSessionAttribute?: Maybe<Scalars['JSON']['output']>;
443
+ startCustomSession?: Maybe<Session>;
438
444
  startSession?: Maybe<Session>;
439
445
  unregisterAppInstance?: Maybe<AppInstance>;
440
446
  updateAgent?: Maybe<Agent>;
@@ -523,6 +529,9 @@ export type MutationRemoveTagsFromSessionAttributesArgs = {
523
529
  export type MutationSetSessionAttributeArgs = {
524
530
  input: SetSessionAttributeInput;
525
531
  };
532
+ export type MutationStartCustomSessionArgs = {
533
+ input: StartSessionInput;
534
+ };
526
535
  export type MutationStartSessionArgs = {
527
536
  input: StartSessionInput;
528
537
  };
@@ -871,6 +880,7 @@ export type SetSessionAttributeInput = {
871
880
  export type StartSessionInput = {
872
881
  context?: InputMaybe<SessionContextInput>;
873
882
  customer: GetOrCreateCustomerInput;
883
+ stateMachineId?: InputMaybe<Scalars['ID']['input']>;
874
884
  triggerDrn: Scalars['ID']['input'];
875
885
  };
876
886
  export type StateMachineConfig = {
@@ -1355,6 +1365,12 @@ export type StartSessionMutation = {
1355
1365
  customer?: CustomerFragment;
1356
1366
  } & SessionFragment)>;
1357
1367
  };
1368
+ export type StartCustomSessionMutationVariables = Exact<{
1369
+ input: StartSessionInput;
1370
+ }>;
1371
+ export type StartCustomSessionMutation = {
1372
+ startCustomSession?: Maybe<SessionFragment>;
1373
+ };
1358
1374
  export type GetSessionQueryVariables = Exact<{
1359
1375
  sessionId: Scalars['ID']['input'];
1360
1376
  withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1585,6 +1601,7 @@ export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n
1585
1601
  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
1602
  export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
1587
1603
  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 ";
1604
+ 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
1605
  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
1606
  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
1607
  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 +1677,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
1660
1677
  getSystemRole(variables: GetSystemRoleQueryVariables, options?: C): Promise<GetSystemRoleQuery>;
1661
1678
  checkPermissions(variables: CheckPermissionsQueryVariables, options?: C): Promise<CheckPermissionsQuery>;
1662
1679
  startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
1680
+ startCustomSession(variables: StartCustomSessionMutationVariables, options?: C): Promise<StartCustomSessionMutation>;
1663
1681
  getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
1664
1682
  getSessionSchema(variables?: GetSessionSchemaQueryVariables, options?: C): Promise<GetSessionSchemaQuery>;
1665
1683
  getSessionSchemaForAppId(variables: GetSessionSchemaForAppIdQueryVariables, options?: C): Promise<GetSessionSchemaForAppIdQuery>;
@@ -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.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.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = 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 = 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
  },
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -118,6 +118,11 @@ export type Scalars = {
118
118
  output: void;
119
119
  };
120
120
  };
121
+ export type AgentInfo = {
122
+ id: Scalars['ID']['output'];
123
+ name: Scalars['String']['output'];
124
+ picture?: Maybe<Scalars['String']['output']>;
125
+ };
121
126
  export declare enum AppInstanceStatus {
122
127
  Active = "Active",
123
128
  Failing = "Failing",
@@ -1,5 +1,5 @@
1
1
  export * from './sdks/utilities';
2
- export declare const DrozUtilities: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.DrozUtilities = (0, http_1.HttpClientBuilder)(utilities_1.serviceName, utilities_1.getSdk);
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
- export declare const WhatsApp: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.WhatsApp = (0, http_1.HttpClientBuilder)(whatsapp_1.serviceName, whatsapp_1.getSdk);
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
- export declare const Zendesk: new (options?: import("./client/http").HttpClientOptions) => {
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
- exports.Zendesk = (0, http_1.HttpClientBuilder)(zendesk_1.serviceName, zendesk_1.getSdk);
21
+ class Zendesk extends (0, http_1.HttpClientBuilder)(zendesk_1.serviceName, zendesk_1.getSdk) {
22
+ }
23
+ exports.Zendesk = Zendesk;