@corto-ai/integrations-messenger 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-internal.md +151 -0
- package/README.md +46 -0
- package/package.json +11 -0
- package/src/index.d.ts +48 -0
- package/src/index.js +5 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/auth/exchange-token.d.ts +16 -0
- package/src/lib/actions/auth/exchange-token.js +6 -0
- package/src/lib/actions/auth/exchange-token.js.map +1 -0
- package/src/lib/actions/auth/index.d.ts +5 -0
- package/src/lib/actions/auth/index.js +5 -0
- package/src/lib/actions/auth/index.js.map +1 -0
- package/src/lib/actions/base.d.ts +52 -0
- package/src/lib/actions/base.js +24 -0
- package/src/lib/actions/base.js.map +1 -0
- package/src/lib/actions/contact/base.d.ts +4 -0
- package/src/lib/actions/contact/base.js +1 -0
- package/src/lib/actions/contact/base.js.map +1 -0
- package/src/lib/actions/contact/index.d.ts +7 -0
- package/src/lib/actions/contact/index.js +7 -0
- package/src/lib/actions/contact/index.js.map +1 -0
- package/src/lib/actions/contact/open-edit.d.ts +12 -0
- package/src/lib/actions/contact/open-edit.js +6 -0
- package/src/lib/actions/contact/open-edit.js.map +1 -0
- package/src/lib/actions/contact/open.d.ts +12 -0
- package/src/lib/actions/contact/open.js +6 -0
- package/src/lib/actions/contact/open.js.map +1 -0
- package/src/lib/actions/index.d.ts +39 -0
- package/src/lib/actions/index.js +13 -0
- package/src/lib/actions/index.js.map +1 -0
- package/src/lib/actions/internal/handshake.d.ts +2 -0
- package/src/lib/actions/internal/handshake.js +1 -0
- package/src/lib/actions/internal/handshake.js.map +1 -0
- package/src/lib/actions/matter/base.d.ts +4 -0
- package/src/lib/actions/matter/base.js +1 -0
- package/src/lib/actions/matter/base.js.map +1 -0
- package/src/lib/actions/matter/index.d.ts +19 -0
- package/src/lib/actions/matter/index.js +19 -0
- package/src/lib/actions/matter/index.js.map +1 -0
- package/src/lib/actions/matter/open-agent-session.d.ts +14 -0
- package/src/lib/actions/matter/open-agent-session.js +6 -0
- package/src/lib/actions/matter/open-agent-session.js.map +1 -0
- package/src/lib/actions/matter/open-chat-session.d.ts +14 -0
- package/src/lib/actions/matter/open-chat-session.js +6 -0
- package/src/lib/actions/matter/open-chat-session.js.map +1 -0
- package/src/lib/actions/matter/open-details.d.ts +12 -0
- package/src/lib/actions/matter/open-details.js +6 -0
- package/src/lib/actions/matter/open-details.js.map +1 -0
- package/src/lib/actions/matter/open-document-status.d.ts +12 -0
- package/src/lib/actions/matter/open-document-status.js +6 -0
- package/src/lib/actions/matter/open-document-status.js.map +1 -0
- package/src/lib/actions/matter/open-edit.d.ts +12 -0
- package/src/lib/actions/matter/open-edit.js +6 -0
- package/src/lib/actions/matter/open-edit.js.map +1 -0
- package/src/lib/actions/matter/open-prompt-library.d.ts +12 -0
- package/src/lib/actions/matter/open-prompt-library.js +6 -0
- package/src/lib/actions/matter/open-prompt-library.js.map +1 -0
- package/src/lib/actions/matter/open-prompt.d.ts +14 -0
- package/src/lib/actions/matter/open-prompt.js +6 -0
- package/src/lib/actions/matter/open-prompt.js.map +1 -0
- package/src/lib/actions/matter/open.d.ts +14 -0
- package/src/lib/actions/matter/open.js +6 -0
- package/src/lib/actions/matter/open.js.map +1 -0
- package/src/lib/actions/pubsub/index.d.ts +5 -0
- package/src/lib/actions/pubsub/index.js +5 -0
- package/src/lib/actions/pubsub/index.js.map +1 -0
- package/src/lib/actions/pubsub/notification.d.ts +15 -0
- package/src/lib/actions/pubsub/notification.js +11 -0
- package/src/lib/actions/pubsub/notification.js.map +1 -0
- package/src/lib/actions/settings/index.d.ts +5 -0
- package/src/lib/actions/settings/index.js +5 -0
- package/src/lib/actions/settings/index.js.map +1 -0
- package/src/lib/actions/settings/open.d.ts +13 -0
- package/src/lib/actions/settings/open.js +6 -0
- package/src/lib/actions/settings/open.js.map +1 -0
- package/src/lib/actions/utils.d.ts +11 -0
- package/src/lib/actions/utils.js +68 -0
- package/src/lib/actions/utils.js.map +1 -0
- package/src/lib/core/emitter.d.ts +10 -0
- package/src/lib/core/emitter.js +79 -0
- package/src/lib/core/emitter.js.map +1 -0
- package/src/lib/core/index.d.ts +9 -0
- package/src/lib/core/index.js +15 -0
- package/src/lib/core/index.js.map +1 -0
- package/src/lib/core/listener.d.ts +7 -0
- package/src/lib/core/listener.js +86 -0
- package/src/lib/core/listener.js.map +1 -0
- package/src/lib/core/logger.d.ts +7 -0
- package/src/lib/core/logger.js +32 -0
- package/src/lib/core/logger.js.map +1 -0
- package/src/lib/core/target.d.ts +13 -0
- package/src/lib/core/target.js +39 -0
- package/src/lib/core/target.js.map +1 -0
- package/src/lib/models/configs.d.ts +9 -0
- package/src/lib/models/configs.js +1 -0
- package/src/lib/models/configs.js.map +1 -0
- package/src/lib/models/handlers.d.ts +21 -0
- package/src/lib/models/handlers.js +1 -0
- package/src/lib/models/handlers.js.map +1 -0
- package/src/lib/models/index.d.ts +4 -0
- package/src/lib/models/index.js +5 -0
- package/src/lib/models/index.js.map +1 -0
- package/src/lib/models/messages.d.ts +22 -0
- package/src/lib/models/messages.js +7 -0
- package/src/lib/models/messages.js.map +1 -0
- package/src/lib/models/target.d.ts +7 -0
- package/src/lib/models/target.js +2 -0
- package/src/lib/models/target.js.map +1 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# integrations-messenger
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
### Initialization
|
|
8
|
+
|
|
9
|
+
Any app that's using this package must first initialize the application using `core.init`. This takes a required `id` parameter, which should be a unique identifier for the application.
|
|
10
|
+
|
|
11
|
+
- `core.init` will also kick off the handshake process for nested pages, which is any page where the `parentRef` parameter does not equal window.
|
|
12
|
+
- The `parentRef` parameter defaults to `window.parent`, so should not need to be passed in for the majority of use case.
|
|
13
|
+
|
|
14
|
+
Parent applications should also call `core.registerChild` with a reference to the iframe's `contentWindow` and the iframe's `id`.
|
|
15
|
+
|
|
16
|
+
- The `id` parameter should be the same `id` that the child passes in to the `core.init` call
|
|
17
|
+
- `core.registerChild` also is responsible for listening for and responding to the handshake from the child window. This means that, in order for the handshake to complete, the parent window should call `core.registerChild` before the iframe calls init
|
|
18
|
+
|
|
19
|
+
### Actions
|
|
20
|
+
|
|
21
|
+
This package exposes an `actions` property which contains all of the supported action emitters and listeners. These actions are grouped based on the affected entities and flows of the application.
|
|
22
|
+
|
|
23
|
+
Each action `{{action}}` will have two functions defined:
|
|
24
|
+
|
|
25
|
+
- `send{{action}}`, which is responsible for sending the action and listening for the response
|
|
26
|
+
- `handle{{action}}`, which is responsible for listening for the action and sending a response
|
|
27
|
+
|
|
28
|
+
The former is intended to be used by the child applications, to let them communicate with the host application and trigger certain flows in the application. The latter is intended to be implemented by the host application, and should process the request and return some response to the child application.
|
|
29
|
+
|
|
30
|
+
The shape of the parameters will vary based on the action, but loosely, the `send{{action}}` function will take any information required by the host application. The `handle{{action}}` will take a function which takes the same parameters as `send{{action}}`, and returns whatever information we want to send back to the child application.
|
|
31
|
+
|
|
32
|
+
#### Ex
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// in the host application
|
|
36
|
+
await core.init({id: 'host'});
|
|
37
|
+
|
|
38
|
+
core.registerChild(iframe.contentWindow, 'child');
|
|
39
|
+
|
|
40
|
+
actions.chat.handleNewChatSession(async (data) => {
|
|
41
|
+
|
|
42
|
+
// whatever processing we need to do here
|
|
43
|
+
try {
|
|
44
|
+
await someService.someApiCall();
|
|
45
|
+
return { success: true };
|
|
46
|
+
} catch (err) {
|
|
47
|
+
return { sucess: false };
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
// in the child application
|
|
52
|
+
await core.init({id: 'child'});
|
|
53
|
+
|
|
54
|
+
const response = await actions.chat.sendNewChatSession({
|
|
55
|
+
...whatever parameters
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
if(response.success) {
|
|
59
|
+
// happy path
|
|
60
|
+
} else {
|
|
61
|
+
// sad path :(
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Forwarding
|
|
66
|
+
|
|
67
|
+
In order to support multiple levels of iframe nesting, the packages inherently has a "forwarding" mechanic, which means that, for any action, if no handler is defined, we continue sending the action up or down the iframe tree. This is enabled by default, and so nothing needs to be done to opt into this behavior.
|
|
68
|
+
|
|
69
|
+
However, it is important to note that adding handlers to child applications could break functionality on the parent application, since we only forward if there isn't a defined handler for the action, so if you're not sure you should be implementing an action handler, don't.
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
### Building
|
|
74
|
+
|
|
75
|
+
Run `nx build integrations-messenger` to build the library.
|
|
76
|
+
|
|
77
|
+
### Adding new actions
|
|
78
|
+
|
|
79
|
+
In order to add a new action, you need to do a few things:
|
|
80
|
+
|
|
81
|
+
1. In `libs\integrations-messenger\src\lib\actions\base.ts`, add a new enum value to the `ActionTypeEnum`. Keep this file open -- we will return in a bit
|
|
82
|
+
2. Create a new folder/file under `src/lib/actions` -- where exactly you place this will depend on the entities affect. If you're unsure, just ask.
|
|
83
|
+
3. Define two types -- one is the request type, and the other is the response type
|
|
84
|
+
4. Create a 3rd type with the following pattern `export type {{ActionName}}DataTypeDTO = ActionDataTypeDTO<{{RequestType}},{{ResponseType}}>`
|
|
85
|
+
- You can now return to `libs\integrations-messenger\src\lib\actions\base.ts` and update the `DataTypeMap` with your new enum value and DataTypeDTO definition
|
|
86
|
+
5. Create two functions, one which is responsible for sending the command, and one which is responsible for registering the handler.
|
|
87
|
+
- We have utility functions which make this very easy to do, so all you need to do is the following:
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
const {{ActionName}} = buildActionCreatorFn(ActionTypeEnum.{{NewEnumValue}});
|
|
91
|
+
|
|
92
|
+
const handle{{ActionName}} = buildActionHandlerFn(ActionTypeEnum.{{NewEnumValue}});
|
|
93
|
+
|
|
94
|
+
export default {
|
|
95
|
+
{{your function names here}}
|
|
96
|
+
};
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
6. Depending on where you placed your new action file, you may need to update one or more `index.ts` in order to expose your action. At a minimum, you will need to update `libs\integrations-messenger\src\lib\actions\index.ts`
|
|
100
|
+
|
|
101
|
+
## Publishing
|
|
102
|
+
|
|
103
|
+
Publishing is handled by `buildspecs/integrations-messenger-buildspec.yml` and `buildspecs/integrations-messenger-deployspec.yml`.
|
|
104
|
+
|
|
105
|
+
Deployspec derives behavior from `BUILD_ARGS` only.
|
|
106
|
+
|
|
107
|
+
Environment mapping (required values):
|
|
108
|
+
|
|
109
|
+
1. `dev` -> publish mode with `dev` tag
|
|
110
|
+
2. `test` -> promote mode with `test` tag
|
|
111
|
+
3. `live` -> promote mode with `latest` tag
|
|
112
|
+
|
|
113
|
+
In this flow, publish vs promote and the dist-tag are not set manually; they are derived from the environment.
|
|
114
|
+
|
|
115
|
+
Tag semantics:
|
|
116
|
+
|
|
117
|
+
1. A dist-tag points to one version at a time.
|
|
118
|
+
2. Reusing a tag (for example `dev`) on a newer version moves the tag to that newer version.
|
|
119
|
+
3. Older versions are still available and can always be installed by exact version.
|
|
120
|
+
|
|
121
|
+
Examples:
|
|
122
|
+
|
|
123
|
+
1. Publish `0.0.1` with `dev` -> `dev` points to `0.0.1`.
|
|
124
|
+
2. Publish `0.0.2` with `dev` -> `dev` now points to `0.0.2`.
|
|
125
|
+
3. `0.0.1` still exists and can be installed directly with `@corto/integrations-messenger@0.0.1`.
|
|
126
|
+
|
|
127
|
+
The npm token is loaded from SSM Parameter Store in deployspec:
|
|
128
|
+
|
|
129
|
+
- `NPM_TOKEN` from `/FrontEnd/Npm/AuthToken`
|
|
130
|
+
- This token needs rotated every 90 days
|
|
131
|
+
|
|
132
|
+
Recommended branch strategy:
|
|
133
|
+
|
|
134
|
+
1. `develop`: use environment `dev`
|
|
135
|
+
2. `test`: use environment `test`
|
|
136
|
+
3. `master`: use environment `live`
|
|
137
|
+
|
|
138
|
+
This keeps publishing idempotent in a monorepo:
|
|
139
|
+
|
|
140
|
+
- Re-running deploy on unchanged versions does not republish.
|
|
141
|
+
- Tag updates on `test` and `master` are safe to run repeatedly.
|
|
142
|
+
|
|
143
|
+
### Versioning policy
|
|
144
|
+
|
|
145
|
+
`integrations-messenger` intentionally does not use the monorepo `check-version` target.
|
|
146
|
+
|
|
147
|
+
Reason:
|
|
148
|
+
|
|
149
|
+
1. This package is published to npm, where each new version is immutable.
|
|
150
|
+
2. Forcing version bumps during general CI validation creates unnecessary publishes and burns version numbers without meaningful package changes.
|
|
151
|
+
3. We only increment this package version when there is an actual change to `integrations-messenger` that should be released.
|
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @corto-ai/integrations-messenger
|
|
2
|
+
|
|
3
|
+
`@corto-ai/integrations-messenger` provides messaging utilities for communication between host applications and embedded integrations.
|
|
4
|
+
|
|
5
|
+
This package is currently in early development and is being published to npm to support internal/dev workflows.
|
|
6
|
+
|
|
7
|
+
## Intended use
|
|
8
|
+
|
|
9
|
+
This package is intended for teams adding applications into the CORTO platform (for example, iframe-based integrations).
|
|
10
|
+
|
|
11
|
+
For product information about CORTO, visit <https://www.docorto.ai>.
|
|
12
|
+
|
|
13
|
+
## Status
|
|
14
|
+
|
|
15
|
+
- Early development
|
|
16
|
+
- API may change between dev releases
|
|
17
|
+
- Documentation will be expanded over time
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @corto-ai/integrations-messenger
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import messenger from '@corto-ai/integrations-messenger';
|
|
29
|
+
|
|
30
|
+
await messenger.init({ id: 'my-integration-app' });
|
|
31
|
+
|
|
32
|
+
// Use messenger.actions to send or handle integration actions.
|
|
33
|
+
// Parent apps can also register child windows when needed.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
More complete usage examples and API documentation will be added in upcoming releases.
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
This library is maintained by CORTO and published as part of the regular package release workflow.
|
|
41
|
+
|
|
42
|
+
For more information, visit <https://www.docorto.ai>.
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
License details will be documented as this package moves toward stable releases.
|
package/package.json
ADDED
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export * from './lib/models';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
init: (params: {
|
|
4
|
+
id: string;
|
|
5
|
+
parentRef?: Window;
|
|
6
|
+
withLogging?: boolean;
|
|
7
|
+
}) => Promise<void>;
|
|
8
|
+
registerChild: (child: Window, id: string) => Promise<void>;
|
|
9
|
+
actions: {
|
|
10
|
+
auth: {
|
|
11
|
+
sendExchangeTokenRequest: import(".").ActionCreatorFn<import(".").ActionTypeEnum.RequestExchangeToken>;
|
|
12
|
+
handleExchangeTokenRequest: import(".").ActionHandlerFn<import(".").ActionTypeEnum.RequestExchangeToken>;
|
|
13
|
+
};
|
|
14
|
+
contact: {
|
|
15
|
+
sendOpenEditContact: import(".").ActionCreatorFn<import(".").ActionTypeEnum.ContactOpenEdit>;
|
|
16
|
+
handleOpenEditContact: import(".").ActionHandlerFn<import(".").ActionTypeEnum.ContactOpenEdit>;
|
|
17
|
+
sendOpenContact: import(".").ActionCreatorFn<import(".").ActionTypeEnum.ContactOpen>;
|
|
18
|
+
handleOpenContact: import(".").ActionHandlerFn<import(".").ActionTypeEnum.ContactOpen>;
|
|
19
|
+
};
|
|
20
|
+
matter: {
|
|
21
|
+
sendOpenMatter: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpen>;
|
|
22
|
+
handleOpenMatter: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpen>;
|
|
23
|
+
sendOpenPromptLibrary: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenPromptLibrary>;
|
|
24
|
+
handleOpenPromptLibrary: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenPromptLibrary>;
|
|
25
|
+
sendOpenPrompt: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenPrompt>;
|
|
26
|
+
handleOpenPrompt: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenPrompt>;
|
|
27
|
+
sendOpenDocumentStatus: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenDocumentStatus>;
|
|
28
|
+
handleOpenDocumentStatus: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenDocumentStatus>;
|
|
29
|
+
sendOpenEdit: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenEdit>;
|
|
30
|
+
handleOpenEdit: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenEdit>;
|
|
31
|
+
sendOpenDetails: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenDetails>;
|
|
32
|
+
handleOpenDetails: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenDetails>;
|
|
33
|
+
sendOpenChatSession: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenChatSession>;
|
|
34
|
+
handleOpenChatSession: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenChatSession>;
|
|
35
|
+
sendOpenAgentSession: import(".").ActionCreatorFn<import(".").ActionTypeEnum.MatterOpenAgentSession>;
|
|
36
|
+
handleOpenAgentSession: import(".").ActionHandlerFn<import(".").ActionTypeEnum.MatterOpenAgentSession>;
|
|
37
|
+
};
|
|
38
|
+
pubsub: {
|
|
39
|
+
sendNotificationRequest: import(".").StreamActionCreatorFn<import(".").ActionTypeEnum.PubsubNotification>;
|
|
40
|
+
handleNotificationRequest: import(".").StreamActionHandlerFn<import(".").ActionTypeEnum.PubsubNotification>;
|
|
41
|
+
};
|
|
42
|
+
settings: {
|
|
43
|
+
sendOpenSettings: import(".").ActionCreatorFn<import(".").ActionTypeEnum.SettingsOpen>;
|
|
44
|
+
handleOpenSettings: import(".").ActionHandlerFn<import(".").ActionTypeEnum.SettingsOpen>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
package/src/index.js
ADDED
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integrations-messenger/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../base';
|
|
2
|
+
import { type ActionDataTypeDTO } from '../utils';
|
|
3
|
+
type ExchangeTokenDTO = {
|
|
4
|
+
client: string;
|
|
5
|
+
sessionId: string;
|
|
6
|
+
};
|
|
7
|
+
type ExchangeTokenResponseDTO = {
|
|
8
|
+
success: boolean;
|
|
9
|
+
token: string;
|
|
10
|
+
};
|
|
11
|
+
export type ExchangeTokenDataTypeDTO = ActionDataTypeDTO<ExchangeTokenDTO, ExchangeTokenResponseDTO>;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
sendExchangeTokenRequest: import("../../models").ActionCreatorFn<ActionTypeEnum.RequestExchangeToken>;
|
|
14
|
+
handleExchangeTokenRequest: import("../../models").ActionHandlerFn<ActionTypeEnum.RequestExchangeToken>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../base';
|
|
2
|
+
import { buildActionCreatorFn, buildActionHandlerFn } from '../utils';
|
|
3
|
+
const sendExchangeTokenRequest = buildActionCreatorFn(ActionTypeEnum.RequestExchangeToken);
|
|
4
|
+
const handleExchangeTokenRequest = buildActionHandlerFn(ActionTypeEnum.RequestExchangeToken);
|
|
5
|
+
export default { sendExchangeTokenRequest, handleExchangeTokenRequest };
|
|
6
|
+
//# sourceMappingURL=exchange-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-token.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/auth/exchange-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAc9F,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAC3F,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAE7F,eAAe,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
sendExchangeTokenRequest: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.RequestExchangeToken>;
|
|
3
|
+
handleExchangeTokenRequest: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.RequestExchangeToken>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,eAAe;IACb,GAAG,aAAa;CACjB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type AdditionalMessageConfigDTO } from '../models';
|
|
2
|
+
import { type ExchangeTokenDataTypeDTO } from './auth/exchange-token';
|
|
3
|
+
import { type ContactOpenDataTypeDTO } from './contact/open';
|
|
4
|
+
import { type ContactOpenEditDataTypeDTO } from './contact/open-edit';
|
|
5
|
+
import { type HandshakeDataTypeDTO } from './internal/handshake';
|
|
6
|
+
import { type MatterOpenDataTypeDTO } from './matter/open';
|
|
7
|
+
import { type MatterOpenAgentSessionDataTypeDTO } from './matter/open-agent-session';
|
|
8
|
+
import { type MatterOpenChatSessionDataTypeDTO } from './matter/open-chat-session';
|
|
9
|
+
import { type MatterOpenDetailsDataTypeDTO } from './matter/open-details';
|
|
10
|
+
import { type MatterOpenDocumentStatusDataTypeDTO } from './matter/open-document-status';
|
|
11
|
+
import { type MatterOpenEditDataTypeDTO } from './matter/open-edit';
|
|
12
|
+
import { type MatterOpenPromptDataTypeDTO } from './matter/open-prompt';
|
|
13
|
+
import { type MatterOpenPromptLibraryDataTypeDTO } from './matter/open-prompt-library';
|
|
14
|
+
import { type PubsubNotificationDataTypeDTO } from './pubsub/notification';
|
|
15
|
+
import { type SettingsOpenDataTypeDTO } from './settings/open';
|
|
16
|
+
export declare enum InternalActionTypeEnum {
|
|
17
|
+
Handshake = "Handshake"
|
|
18
|
+
}
|
|
19
|
+
export declare enum ActionTypeEnum {
|
|
20
|
+
MatterOpenChatSession = "MatterOpenChatSession",
|
|
21
|
+
MatterOpenAgentSession = "MatterOpenAgentSession",
|
|
22
|
+
MatterOpenPromptLibrary = "MatterOpenPromptLibrary",
|
|
23
|
+
MatterOpenPrompt = "MatterOpenPrompt",
|
|
24
|
+
MatterOpenDetails = "MatterOpenDetails",
|
|
25
|
+
MatterOpenEdit = "MatterOpenEdit",
|
|
26
|
+
MatterOpenDocumentStatus = "MatterOpenDocumentStatus",
|
|
27
|
+
MatterOpen = "MatterOpen",
|
|
28
|
+
ContactOpen = "ContactOpen",
|
|
29
|
+
ContactOpenEdit = "ContactOpenEdit",
|
|
30
|
+
SettingsOpen = "SettingsOpen",
|
|
31
|
+
PubsubNotification = "PubsubNotification",
|
|
32
|
+
RequestExchangeToken = "RequestExchangeToken"
|
|
33
|
+
}
|
|
34
|
+
export declare const AdditionalMessageConfig: {
|
|
35
|
+
[key in ActionTypeEnum]?: AdditionalMessageConfigDTO;
|
|
36
|
+
};
|
|
37
|
+
export type DataTypeMapDTO = {
|
|
38
|
+
[InternalActionTypeEnum.Handshake]: HandshakeDataTypeDTO;
|
|
39
|
+
[ActionTypeEnum.MatterOpenChatSession]: MatterOpenChatSessionDataTypeDTO;
|
|
40
|
+
[ActionTypeEnum.MatterOpenAgentSession]: MatterOpenAgentSessionDataTypeDTO;
|
|
41
|
+
[ActionTypeEnum.MatterOpenPromptLibrary]: MatterOpenPromptLibraryDataTypeDTO;
|
|
42
|
+
[ActionTypeEnum.MatterOpenPrompt]: MatterOpenPromptDataTypeDTO;
|
|
43
|
+
[ActionTypeEnum.MatterOpenDetails]: MatterOpenDetailsDataTypeDTO;
|
|
44
|
+
[ActionTypeEnum.MatterOpenEdit]: MatterOpenEditDataTypeDTO;
|
|
45
|
+
[ActionTypeEnum.MatterOpenDocumentStatus]: MatterOpenDocumentStatusDataTypeDTO;
|
|
46
|
+
[ActionTypeEnum.MatterOpen]: MatterOpenDataTypeDTO;
|
|
47
|
+
[ActionTypeEnum.ContactOpen]: ContactOpenDataTypeDTO;
|
|
48
|
+
[ActionTypeEnum.ContactOpenEdit]: ContactOpenEditDataTypeDTO;
|
|
49
|
+
[ActionTypeEnum.SettingsOpen]: SettingsOpenDataTypeDTO;
|
|
50
|
+
[ActionTypeEnum.PubsubNotification]: PubsubNotificationDataTypeDTO;
|
|
51
|
+
[ActionTypeEnum.RequestExchangeToken]: ExchangeTokenDataTypeDTO;
|
|
52
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export var InternalActionTypeEnum;
|
|
2
|
+
(function (InternalActionTypeEnum) {
|
|
3
|
+
InternalActionTypeEnum["Handshake"] = "Handshake";
|
|
4
|
+
})(InternalActionTypeEnum || (InternalActionTypeEnum = {}));
|
|
5
|
+
export var ActionTypeEnum;
|
|
6
|
+
(function (ActionTypeEnum) {
|
|
7
|
+
ActionTypeEnum["MatterOpenChatSession"] = "MatterOpenChatSession";
|
|
8
|
+
ActionTypeEnum["MatterOpenAgentSession"] = "MatterOpenAgentSession";
|
|
9
|
+
ActionTypeEnum["MatterOpenPromptLibrary"] = "MatterOpenPromptLibrary";
|
|
10
|
+
ActionTypeEnum["MatterOpenPrompt"] = "MatterOpenPrompt";
|
|
11
|
+
ActionTypeEnum["MatterOpenDetails"] = "MatterOpenDetails";
|
|
12
|
+
ActionTypeEnum["MatterOpenEdit"] = "MatterOpenEdit";
|
|
13
|
+
ActionTypeEnum["MatterOpenDocumentStatus"] = "MatterOpenDocumentStatus";
|
|
14
|
+
ActionTypeEnum["MatterOpen"] = "MatterOpen";
|
|
15
|
+
ActionTypeEnum["ContactOpen"] = "ContactOpen";
|
|
16
|
+
ActionTypeEnum["ContactOpenEdit"] = "ContactOpenEdit";
|
|
17
|
+
ActionTypeEnum["SettingsOpen"] = "SettingsOpen";
|
|
18
|
+
ActionTypeEnum["PubsubNotification"] = "PubsubNotification";
|
|
19
|
+
ActionTypeEnum["RequestExchangeToken"] = "RequestExchangeToken";
|
|
20
|
+
})(ActionTypeEnum || (ActionTypeEnum = {}));
|
|
21
|
+
export const AdditionalMessageConfig = {
|
|
22
|
+
[ActionTypeEnum.PubsubNotification]: { keepAlive: true }
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/actions/base.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;AACzB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AAED,MAAM,CAAN,IAAY,cAkBX;AAlBD,WAAY,cAAc;IACxB,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,qEAAmD,CAAA;IACnD,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,mDAAiC,CAAA;IACjC,uEAAqD,CAAA;IACrD,2CAAyB,CAAA;IAEzB,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IAEnC,+CAA6B,CAAA;IAE7B,2DAAyC,CAAA;IAEzC,+DAA6C,CAAA;AAC/C,CAAC,EAlBW,cAAc,KAAd,cAAc,QAkBzB;AAED,MAAM,CAAC,MAAM,uBAAuB,GAA6D;IAC/F,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/contact/base.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
sendOpenEditContact: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.ContactOpenEdit>;
|
|
3
|
+
handleOpenEditContact: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.ContactOpenEdit>;
|
|
4
|
+
sendOpenContact: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.ContactOpen>;
|
|
5
|
+
handleOpenContact: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.ContactOpen>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,eAAe;IACb,GAAG,IAAI;IACP,GAAG,QAAQ;CACZ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ActionResponseBaseDTO } from '../../models';
|
|
2
|
+
import { ActionTypeEnum } from '../base';
|
|
3
|
+
import { type ActionDataTypeDTO } from '../utils';
|
|
4
|
+
import { type ContactRequestBaseDTO } from './base';
|
|
5
|
+
type ContactOpenEditDTO = ContactRequestBaseDTO;
|
|
6
|
+
type ContactOpenEditResponseDTO = ActionResponseBaseDTO;
|
|
7
|
+
export type ContactOpenEditDataTypeDTO = ActionDataTypeDTO<ContactOpenEditDTO, ContactOpenEditResponseDTO>;
|
|
8
|
+
declare const _default: {
|
|
9
|
+
sendOpenEditContact: import("../../models").ActionCreatorFn<ActionTypeEnum.ContactOpenEdit>;
|
|
10
|
+
handleOpenEditContact: import("../../models").ActionHandlerFn<ActionTypeEnum.ContactOpenEdit>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../base';
|
|
2
|
+
import { buildActionCreatorFn, buildActionHandlerFn } from '../utils';
|
|
3
|
+
const sendOpenEditContact = buildActionCreatorFn(ActionTypeEnum.ContactOpenEdit);
|
|
4
|
+
const handleOpenEditContact = buildActionHandlerFn(ActionTypeEnum.ContactOpenEdit);
|
|
5
|
+
export default { sendOpenEditContact, handleOpenEditContact };
|
|
6
|
+
//# sourceMappingURL=open-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-edit.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/contact/open-edit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAS9F,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AACjF,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AAEnF,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ActionResponseBaseDTO } from '../../models';
|
|
2
|
+
import { ActionTypeEnum } from '../base';
|
|
3
|
+
import { type ActionDataTypeDTO } from '../utils';
|
|
4
|
+
import { type ContactRequestBaseDTO } from './base';
|
|
5
|
+
type ContactOpenDTO = ContactRequestBaseDTO;
|
|
6
|
+
type ContactOpenResponseDTO = ActionResponseBaseDTO;
|
|
7
|
+
export type ContactOpenDataTypeDTO = ActionDataTypeDTO<ContactOpenDTO, ContactOpenResponseDTO>;
|
|
8
|
+
declare const _default: {
|
|
9
|
+
sendOpenContact: import("../../models").ActionCreatorFn<ActionTypeEnum.ContactOpen>;
|
|
10
|
+
handleOpenContact: import("../../models").ActionHandlerFn<ActionTypeEnum.ContactOpen>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../base';
|
|
2
|
+
import { buildActionCreatorFn, buildActionHandlerFn } from '../utils';
|
|
3
|
+
const sendOpenContact = buildActionCreatorFn(ActionTypeEnum.ContactOpen);
|
|
4
|
+
const handleOpenContact = buildActionHandlerFn(ActionTypeEnum.ContactOpen);
|
|
5
|
+
export default { sendOpenContact, handleOpenContact };
|
|
6
|
+
//# sourceMappingURL=open.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/contact/open.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAS9F,MAAM,eAAe,GAAG,oBAAoB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AACzE,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAE3E,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
auth: {
|
|
3
|
+
sendExchangeTokenRequest: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.RequestExchangeToken>;
|
|
4
|
+
handleExchangeTokenRequest: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.RequestExchangeToken>;
|
|
5
|
+
};
|
|
6
|
+
contact: {
|
|
7
|
+
sendOpenEditContact: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.ContactOpenEdit>;
|
|
8
|
+
handleOpenEditContact: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.ContactOpenEdit>;
|
|
9
|
+
sendOpenContact: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.ContactOpen>;
|
|
10
|
+
handleOpenContact: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.ContactOpen>;
|
|
11
|
+
};
|
|
12
|
+
matter: {
|
|
13
|
+
sendOpenMatter: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpen>;
|
|
14
|
+
handleOpenMatter: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpen>;
|
|
15
|
+
sendOpenPromptLibrary: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenPromptLibrary>;
|
|
16
|
+
handleOpenPromptLibrary: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenPromptLibrary>;
|
|
17
|
+
sendOpenPrompt: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenPrompt>;
|
|
18
|
+
handleOpenPrompt: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenPrompt>;
|
|
19
|
+
sendOpenDocumentStatus: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenDocumentStatus>;
|
|
20
|
+
handleOpenDocumentStatus: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenDocumentStatus>;
|
|
21
|
+
sendOpenEdit: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenEdit>;
|
|
22
|
+
handleOpenEdit: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenEdit>;
|
|
23
|
+
sendOpenDetails: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenDetails>;
|
|
24
|
+
handleOpenDetails: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenDetails>;
|
|
25
|
+
sendOpenChatSession: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenChatSession>;
|
|
26
|
+
handleOpenChatSession: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenChatSession>;
|
|
27
|
+
sendOpenAgentSession: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.MatterOpenAgentSession>;
|
|
28
|
+
handleOpenAgentSession: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.MatterOpenAgentSession>;
|
|
29
|
+
};
|
|
30
|
+
pubsub: {
|
|
31
|
+
sendNotificationRequest: import("../models").StreamActionCreatorFn<import("./base").ActionTypeEnum.PubsubNotification>;
|
|
32
|
+
handleNotificationRequest: import("../models").StreamActionHandlerFn<import("./base").ActionTypeEnum.PubsubNotification>;
|
|
33
|
+
};
|
|
34
|
+
settings: {
|
|
35
|
+
sendOpenSettings: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.SettingsOpen>;
|
|
36
|
+
handleOpenSettings: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.SettingsOpen>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import auth from './auth';
|
|
2
|
+
import contact from './contact';
|
|
3
|
+
import matter from './matter';
|
|
4
|
+
import pubsub from './pubsub';
|
|
5
|
+
import settings from './settings';
|
|
6
|
+
export default {
|
|
7
|
+
auth,
|
|
8
|
+
contact,
|
|
9
|
+
matter,
|
|
10
|
+
pubsub,
|
|
11
|
+
settings
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,IAAI;IACJ,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;CACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=handshake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handshake.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/internal/handshake.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/matter/base.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
sendOpenMatter: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpen>;
|
|
3
|
+
handleOpenMatter: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpen>;
|
|
4
|
+
sendOpenPromptLibrary: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenPromptLibrary>;
|
|
5
|
+
handleOpenPromptLibrary: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenPromptLibrary>;
|
|
6
|
+
sendOpenPrompt: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenPrompt>;
|
|
7
|
+
handleOpenPrompt: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenPrompt>;
|
|
8
|
+
sendOpenDocumentStatus: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenDocumentStatus>;
|
|
9
|
+
handleOpenDocumentStatus: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenDocumentStatus>;
|
|
10
|
+
sendOpenEdit: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenEdit>;
|
|
11
|
+
handleOpenEdit: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenEdit>;
|
|
12
|
+
sendOpenDetails: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenDetails>;
|
|
13
|
+
handleOpenDetails: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenDetails>;
|
|
14
|
+
sendOpenChatSession: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenChatSession>;
|
|
15
|
+
handleOpenChatSession: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenChatSession>;
|
|
16
|
+
sendOpenAgentSession: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.MatterOpenAgentSession>;
|
|
17
|
+
handleOpenAgentSession: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.MatterOpenAgentSession>;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import openMatter from './open';
|
|
2
|
+
import openAgentSession from './open-agent-session';
|
|
3
|
+
import openChatSession from './open-chat-session';
|
|
4
|
+
import openDetails from './open-details';
|
|
5
|
+
import openDocumentStatus from './open-document-status';
|
|
6
|
+
import openEdit from './open-edit';
|
|
7
|
+
import openPrompt from './open-prompt';
|
|
8
|
+
import openPromptLibrary from './open-prompt-library';
|
|
9
|
+
export default {
|
|
10
|
+
...openAgentSession,
|
|
11
|
+
...openChatSession,
|
|
12
|
+
...openDetails,
|
|
13
|
+
...openEdit,
|
|
14
|
+
...openDocumentStatus,
|
|
15
|
+
...openPrompt,
|
|
16
|
+
...openPromptLibrary,
|
|
17
|
+
...openMatter
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/matter/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,QAAQ,CAAC;AAChC,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,kBAAkB,MAAM,wBAAwB,CAAC;AACxD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AAEtD,eAAe;IACb,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,WAAW;IACd,GAAG,QAAQ;IACX,GAAG,kBAAkB;IACrB,GAAG,UAAU;IACb,GAAG,iBAAiB;IACpB,GAAG,UAAU;CACd,CAAC"}
|