@bcrumbs.net/bc-api 0.0.28 → 0.0.31
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/index.cjs.js +1812 -2052
- package/index.esm.js +1809 -2053
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/endpoints/rest/showcase/index.d.ts +2 -0
- package/src/lib/models/config.d.ts +5 -0
- package/src/lib/models/message.d.ts +20 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './lib/models/content';
|
|
|
18
18
|
export * from './lib/models/usage';
|
|
19
19
|
export * from './lib/models/config';
|
|
20
20
|
export * from './lib/models/form';
|
|
21
|
+
export * from './lib/models/message';
|
|
21
22
|
export * from './lib/utils';
|
|
22
23
|
export * from './lib/services/i18n';
|
|
23
24
|
export * from './lib/services/auth';
|
|
@@ -2,6 +2,8 @@ import { UsageRecordQueryResult } from '../../../models/usage';
|
|
|
2
2
|
export declare const showcaseConfigurationQuery: import("@apollo/client").DocumentNode;
|
|
3
3
|
export declare const useShowcaseConfigurationQuery: () => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
4
4
|
export declare const showcaseConfigurationQueryOptions: any;
|
|
5
|
+
export declare const menuConfigurationQuery: import("@apollo/client").DocumentNode;
|
|
6
|
+
export declare const useMenuConfigurationQuery: () => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
5
7
|
export declare const addDomain: import("@apollo/client").DocumentNode;
|
|
6
8
|
export declare const addDomainOptions: any;
|
|
7
9
|
export declare const removeDomain: import("@apollo/client").DocumentNode;
|
|
@@ -3,6 +3,7 @@ export interface BaseConfig {
|
|
|
3
3
|
templateId: number;
|
|
4
4
|
deep: number;
|
|
5
5
|
templateContextId: number;
|
|
6
|
+
modelId: number;
|
|
6
7
|
}
|
|
7
8
|
export interface Config extends BaseConfig {
|
|
8
9
|
root: number;
|
|
@@ -14,3 +15,7 @@ export interface Config extends BaseConfig {
|
|
|
14
15
|
export interface SubConfig extends BaseConfig {
|
|
15
16
|
path: string;
|
|
16
17
|
}
|
|
18
|
+
export interface MenuConfig {
|
|
19
|
+
type: string;
|
|
20
|
+
order: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const MessageTypePossibleValues: readonly ["text", "image", "audio", "document", "video", "location", "interactive", "template"];
|
|
2
|
+
export declare const IntegrationTypePossibleValues: string[];
|
|
3
|
+
export type MessageType = typeof MessageTypePossibleValues[number];
|
|
4
|
+
export type IntegrationType = typeof IntegrationTypePossibleValues[number];
|
|
5
|
+
export interface Message {
|
|
6
|
+
workspaceId: number;
|
|
7
|
+
integrationId: string;
|
|
8
|
+
integrationType: IntegrationType;
|
|
9
|
+
content: string;
|
|
10
|
+
type: MessageType;
|
|
11
|
+
messageId?: string;
|
|
12
|
+
conversationId?: string;
|
|
13
|
+
clientId?: string;
|
|
14
|
+
externalMessageId?: string;
|
|
15
|
+
externalConversationId?: string;
|
|
16
|
+
externalClientId: string;
|
|
17
|
+
traceId?: string;
|
|
18
|
+
spanId?: string;
|
|
19
|
+
debug?: boolean;
|
|
20
|
+
}
|