@scout9/admin 1.0.2 → 1.0.4

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 (85) hide show
  1. package/package.json +7 -2
  2. package/src/api.ts +6222 -636
  3. package/tsconfig.tsbuildinfo +1 -1
  4. package/build/api-openai.d.ts +0 -2992
  5. package/build/api-openai.js +0 -1968
  6. package/build/api.d.ts +0 -1162
  7. package/build/api.js +0 -553
  8. package/build/base.d.ts +0 -54
  9. package/build/base.js +0 -66
  10. package/build/common.d.ts +0 -65
  11. package/build/common.js +0 -145
  12. package/build/configuration.d.ts +0 -83
  13. package/build/configuration.js +0 -91
  14. package/build/index.d.ts +0 -13
  15. package/build/index.js +0 -31
  16. package/build/schemas/common/algolia.d.ts +0 -20
  17. package/build/schemas/common/algolia.js +0 -2
  18. package/build/schemas/common/contact-map.d.ts +0 -33
  19. package/build/schemas/common/contact-map.js +0 -2
  20. package/build/schemas/common/currency.d.ts +0 -1
  21. package/build/schemas/common/currency.js +0 -2
  22. package/build/schemas/common/index.d.ts +0 -6
  23. package/build/schemas/common/index.js +0 -22
  24. package/build/schemas/common/location.d.ts +0 -5
  25. package/build/schemas/common/location.js +0 -2
  26. package/build/schemas/common/task.d.ts +0 -20
  27. package/build/schemas/common/task.js +0 -2
  28. package/build/schemas/common/time.d.ts +0 -14
  29. package/build/schemas/common/time.js +0 -2
  30. package/build/schemas/common.d.ts +0 -77
  31. package/build/schemas/common.js +0 -8
  32. package/build/schemas/conversations/context.d.ts +0 -55
  33. package/build/schemas/conversations/context.js +0 -2
  34. package/build/schemas/conversations/conversation.d.ts +0 -53
  35. package/build/schemas/conversations/conversation.js +0 -2
  36. package/build/schemas/conversations/index.d.ts +0 -6
  37. package/build/schemas/conversations/index.js +0 -22
  38. package/build/schemas/conversations/message.d.ts +0 -62
  39. package/build/schemas/conversations/message.js +0 -2
  40. package/build/schemas/conversations/parsed.d.ts +0 -7
  41. package/build/schemas/conversations/parsed.js +0 -2
  42. package/build/schemas/conversations/scheduled-conversation.d.ts +0 -31
  43. package/build/schemas/conversations/scheduled-conversation.js +0 -2
  44. package/build/schemas/conversations/webhook.d.ts +0 -8
  45. package/build/schemas/conversations/webhook.js +0 -2
  46. package/build/schemas/index.d.ts +0 -3
  47. package/build/schemas/index.js +0 -19
  48. package/build/schemas/users/businesses/agents/agent.d.ts +0 -76
  49. package/build/schemas/users/businesses/agents/agent.js +0 -2
  50. package/build/schemas/users/businesses/agents/auth.d.ts +0 -7
  51. package/build/schemas/users/businesses/agents/auth.js +0 -2
  52. package/build/schemas/users/businesses/agents/index.d.ts +0 -2
  53. package/build/schemas/users/businesses/agents/index.js +0 -18
  54. package/build/schemas/users/businesses/business-location.d.ts +0 -10
  55. package/build/schemas/users/businesses/business-location.js +0 -2
  56. package/build/schemas/users/businesses/business.d.ts +0 -32
  57. package/build/schemas/users/businesses/business.js +0 -2
  58. package/build/schemas/users/businesses/context/context-indexed.d.ts +0 -9
  59. package/build/schemas/users/businesses/context/context-indexed.js +0 -2
  60. package/build/schemas/users/businesses/context/context-saves.d.ts +0 -12
  61. package/build/schemas/users/businesses/context/context-saves.js +0 -2
  62. package/build/schemas/users/businesses/context/context.d.ts +0 -64
  63. package/build/schemas/users/businesses/context/context.js +0 -2
  64. package/build/schemas/users/businesses/context/index.d.ts +0 -2
  65. package/build/schemas/users/businesses/context/index.js +0 -18
  66. package/build/schemas/users/businesses/index.d.ts +0 -5
  67. package/build/schemas/users/businesses/index.js +0 -21
  68. package/build/schemas/users/businesses/notifications.d.ts +0 -7
  69. package/build/schemas/users/businesses/notifications.js +0 -2
  70. package/build/schemas/users/businesses/offerings/index.d.ts +0 -2
  71. package/build/schemas/users/businesses/offerings/index.js +0 -18
  72. package/build/schemas/users/businesses/offerings/offer-indexed.d.ts +0 -34
  73. package/build/schemas/users/businesses/offerings/offer-indexed.js +0 -2
  74. package/build/schemas/users/businesses/offerings/offer.d.ts +0 -29
  75. package/build/schemas/users/businesses/offerings/offer.js +0 -2
  76. package/build/schemas/users/businesses/thread.d.ts +0 -44
  77. package/build/schemas/users/businesses/thread.js +0 -2
  78. package/build/schemas/users/customers/customer.d.ts +0 -35
  79. package/build/schemas/users/customers/customer.js +0 -2
  80. package/build/schemas/users/customers/index.d.ts +0 -1
  81. package/build/schemas/users/customers/index.js +0 -17
  82. package/build/schemas/users/index.d.ts +0 -2
  83. package/build/schemas/users/index.js +0 -18
  84. package/src/.openapi-generator/FILES +0 -9
  85. package/src/.openapi-generator/VERSION +0 -1
@@ -1,55 +0,0 @@
1
- import { Timestamp } from '../common';
2
- import { ConversationParsed } from './parsed';
3
- /**
4
- * Used to put 'system' messages into the conversation
5
- * scout9-conversations/{conversationId}/context/{contextId}
6
- */
7
- export interface IConversationContextField {
8
- id: string;
9
- /**
10
- * Gets added to the message under role 'system'
11
- */
12
- time: Timestamp;
13
- context: string;
14
- note?: string;
15
- metadata?: {
16
- [key: string]: any;
17
- };
18
- /**
19
- * Conditional that need to be met in order for this context to be apart of the conversation
20
- */
21
- conditions?: IConversationContextGroup[];
22
- /**
23
- * If all conditions are met, then it will trigger the following API keys
24
- * If [info.triggers[i]] exists, then it should not trigger
25
- */
26
- triggers?: string[];
27
- }
28
- /**
29
- * Used to group context fields together
30
- */
31
- export interface IConversationContextGroup {
32
- conditions: IConversationContextFieldCondition[];
33
- }
34
- /**
35
- * Based on the data from scout9-conversations/{uid}/conversations/{convoId}/info/default
36
- * Checks to see if that data meets the given condition in order to release the API call
37
- */
38
- export interface IConversationContextFieldCondition {
39
- /**
40
- * What field in the conversation info is being checked
41
- */
42
- key: keyof ConversationParsed;
43
- /**
44
- * Operator to evaluate the info[key] against the conditional value
45
- */
46
- operator: 'eq' | '==' | 'neq' | '!=' | 'gt' | '>' | 'gte' | '>=' | 'lt' | '<' | 'lte' | '<=' | 'in' | 'nin' | 'exists' | '!!' | 'notExists' | '!' | 'contains' | 'notContains' | 'startsWith' | 'endsWith';
47
- /**
48
- * If provided, it will skip operator check and use the regex to check the value
49
- */
50
- regex?: string;
51
- /**
52
- * What is the value being checked
53
- */
54
- value: string | number | boolean | null | string[] | number[] | boolean[];
55
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,53 +0,0 @@
1
- import { Timestamp } from '../common';
2
- import { IThread } from '../users';
3
- import { ConversationEnvironment } from './message';
4
- export interface IConversationEnvironmentProps {
5
- subject?: string;
6
- /**
7
- * Used to sync email messages with the conversation
8
- *
9
- */
10
- platformEmailThreadId?: string;
11
- }
12
- /**
13
- * scout9-conversations/{conversationId}
14
- *
15
- * A two way conversation between a customer and a businesses agents
16
- */
17
- export interface IConversation extends Pick<IThread, 'onCreated' | 'onDeleted' | 'onUpdated' | 'onError'> {
18
- /**
19
- * Customer this conversation is with
20
- * scout9-businesses/{$business}/customers/{$customer}
21
- */
22
- $customer: string;
23
- /**
24
- * Business this conversation is with
25
- * scout9-businesses/{$businesses}
26
- */
27
- $business: string;
28
- /**
29
- * Agent assigned to this conversation
30
- * scout9-businesses/{$businesses}/agents/{$agents}
31
- */
32
- $agent: string;
33
- /**
34
- * Thread this conversation is in - this determines what context to pull when loading the conversation
35
- * scout9-businesses/{$businesses}/threads/{$threads}
36
- */
37
- $thread: string;
38
- /**
39
- * When the conversation is created, append these contexts to the conversation
40
- */
41
- initialContexts?: string[];
42
- initiated: Timestamp;
43
- /**
44
- * What parser functions to run for this conversation, by default will parse core fields
45
- */
46
- parse?: string[];
47
- /**
48
- * What this environment is intended for
49
- * Defaults to 'web'
50
- */
51
- environment?: ConversationEnvironment;
52
- environmentProps?: IConversationEnvironmentProps;
53
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export * from './conversation';
2
- export * from './message';
3
- export * from './context';
4
- export * from './parsed';
5
- export * from './webhook';
6
- export * from './scheduled-conversation';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./conversation"), exports);
18
- __exportStar(require("./message"), exports);
19
- __exportStar(require("./context"), exports);
20
- __exportStar(require("./parsed"), exports);
21
- __exportStar(require("./webhook"), exports);
22
- __exportStar(require("./scheduled-conversation"), exports);
@@ -1,62 +0,0 @@
1
- import { ChatCompletionRequestMessage, MessageStatus, Timestamp } from '../common';
2
- import { IConversationContextField } from './context';
3
- import { ConversationParsed } from './parsed';
4
- export type ConversationEnvironment = 'phone' | 'web' | 'email';
5
- export interface IConversationMessageEmailProps {
6
- /**
7
- * The platform that this message was sent from the assigned agent in the conversation
8
- * (this is used to help with sync/identification mainly getting the global Message-ID)
9
- */
10
- platformMessageId?: string;
11
- /**
12
- * The global message id that this message states in email headers 'Message-ID'
13
- */
14
- globalMessageId?: string;
15
- }
16
- export interface IConversationMessage extends ChatCompletionRequestMessage {
17
- time: Timestamp;
18
- contentHtml?: string;
19
- /**
20
- * When the message is created we parse the message for relevant fields
21
- */
22
- parsed?: ConversationParsed;
23
- /**
24
- * Time at which the parsed information was processed
25
- */
26
- parsedLoaded?: Timestamp;
27
- /**
28
- * The message we are replying to
29
- */
30
- replyTo?: string;
31
- emailEnvironmentProps?: IConversationMessageEmailProps;
32
- smsEnvironmentProps?: {
33
- twilioMessageId: string;
34
- };
35
- /**
36
- * @TODO the existence of this field being being perceived as an indication that the message
37
- * was recived by the client, this should be changed and handled properly
38
- */
39
- receipt?: IConversationMessageReceipt;
40
- /**
41
- * @TODO remove this in production as it will bloat the database
42
- */
43
- context?: IConversationContextField[];
44
- }
45
- export interface IConversationMessageReceipt {
46
- environment: {
47
- type: 'phone';
48
- /**
49
- * Twilio message id
50
- */
51
- sid: string;
52
- status: MessageStatus;
53
- } | {
54
- type: 'web';
55
- } | {
56
- type: 'email';
57
- status: 'sent' | 'received';
58
- };
59
- time: Timestamp;
60
- error?: string;
61
- errorCode?: string;
62
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * Data gets saved in
3
- * scout9-conversations/{conversationId}/parsed/default
4
- */
5
- export type ConversationParsed = {
6
- [field: string]: any;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- import { Timestamp } from '../common';
2
- import { IConversation } from './conversation';
3
- import { ConversationEnvironment } from './message';
4
- /**
5
- * scout9-scheduled-conversations/{conversationId}
6
- * When a conversation is scheduled to be sent at a later time
7
- */
8
- export interface IScheduledConversation extends IConversation {
9
- scheduled: Timestamp;
10
- initialMessage: string;
11
- initialMessageHtml?: string;
12
- sent?: Timestamp;
13
- /**
14
- * Attached to a schedule group
15
- * scout9-scheduled-conversation-groups/{groupId}
16
- */
17
- $group?: string;
18
- }
19
- /**
20
- * scout9-scheduled-conversation-groups/{groupId}
21
- */
22
- export interface IScheduledGroupConversation extends Omit<IScheduledConversation, '$customer' | 'environment' | '$group'> {
23
- customers: {
24
- environment: ConversationEnvironment;
25
- id: string;
26
- }[];
27
- /**
28
- * How much we should delay between schedules, defaults to 15000 (15 seconds)
29
- */
30
- delay?: number;
31
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { IConversationMessage } from './message';
2
- import { ConversationParsed } from './parsed';
3
- export type MessageWebhookType = 'conversation.scheduled' | 'conversation.created' | 'conversation.updated' | 'conversation.deleted' | 'conversation.error' | 'conversation.message.created' | 'conversation.message.updated' | 'conversation.message.deleted' | 'conversation.message.error';
4
- export interface IMessageWebhookResponse {
5
- type: MessageWebhookType;
6
- parsed?: ConversationParsed;
7
- message?: IConversationMessage;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export * from './users';
2
- export * from './conversations';
3
- export * from './common';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./users"), exports);
18
- __exportStar(require("./conversations"), exports);
19
- __exportStar(require("./common"), exports);
@@ -1,76 +0,0 @@
1
- /**
2
- * scout9-businesses/{businessId}/agents/{agentId}
3
- *
4
- * An agents is a person who works for a businesses
5
- */
6
- export type EmailServiceType = 'sendgrid' | 'gmail' | 'outlook';
7
- export interface IAgent {
8
- img?: string;
9
- firstName: string;
10
- lastName: string;
11
- inactive?: boolean;
12
- /**
13
- * Programmable phone number from Twilio
14
- */
15
- programmablePhoneNumber?: string;
16
- programmablePhoneNumberSid?: string;
17
- /**
18
- * Email address from Scout9 gmail subdomain
19
- */
20
- programmableEmail?: string;
21
- forwardEmail?: string;
22
- /**
23
- * All agents must have a phone number (used to login)
24
- */
25
- forwardPhone: string;
26
- /**
27
- * Whether or not this agent has been verified by the business.
28
- */
29
- /**
30
- * Title of the agent, defaults to "Agent"
31
- */
32
- title: string;
33
- /**
34
- * In 1 sentence, what does this agent do for customers.
35
- */
36
- context: string;
37
- /**
38
- * If provided, this means they are part of these office locations. If not provided and excludedLocations not
39
- * provided, we assume this agents can support all locations.
40
- * scout9-businesses/{businessId}/locations/{...includedLocations}
41
- */
42
- includedLocations?: string[];
43
- /**
44
- * If provided, this will take precedence over includedLocations.
45
- * scout9-businesses/{businessId}/locations/{...excludedLocations}
46
- */
47
- excludedLocations?: string[];
48
- /**
49
- * A base64 large string object of the transcript, for example if the agents name is "Jeff", then the decoded transcript would be:
50
- *
51
- * Format 1:
52
- *
53
- * Jeff: Hey Bill, so you need help with you car?
54
- *
55
- * Bill: Yes, I need to get my car fixed
56
- *
57
- * Jeff: Ok, what's the problem?
58
- *
59
- * Format 2:
60
- *
61
- * [Jeff] Hey Bill, so you need help with you car?
62
- *
63
- * [Bill] Yes, I need to get my car fixed
64
- *
65
- * [Jeff] Ok, what's the problem?
66
- *
67
- *
68
- *
69
- * The agents name "Jeff" must match exact the agents name in the database, otherwise it won't work.
70
- */
71
- transcript?: string;
72
- /**
73
- * Firebase storage reference to the audio file if available
74
- */
75
- audioRef?: string;
76
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { Timestamp } from '../../../common';
2
- import { ConversationEnvironment } from '../../../conversations';
3
- export interface IAgentReAuth {
4
- time: Timestamp;
5
- platform: ConversationEnvironment;
6
- sent?: Timestamp;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from './agent';
2
- export * from './auth';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./agent"), exports);
18
- __exportStar(require("./auth"), exports);
@@ -1,10 +0,0 @@
1
- import { Stripe } from '../../common';
2
- import { ILocation } from '../../common/location';
3
- /**
4
- * scout9-businesses/{businessId}/locations/{locationId}
5
- */
6
- export interface IBusinessLocation extends ILocation, Stripe.Address {
7
- name: string;
8
- areaCodes?: number[] | null;
9
- twilioAddressSid?: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,32 +0,0 @@
1
- /**
2
- * scout9-businesses/{businessId}
3
- */
4
- export interface IBusiness {
5
- name: string;
6
- logo?: string;
7
- icon?: string;
8
- /**
9
- * User id of the owner of this account
10
- */
11
- $owner: string;
12
- phone: string;
13
- email: string;
14
- /**
15
- * 1 sentence what does this business do?
16
- */
17
- context: string;
18
- apiKey?: string;
19
- website?: string;
20
- webhookUrl?: string;
21
- /**
22
- * Stripe customer ids for charging subscriptions
23
- */
24
- stripeCustomer?: string;
25
- stripeCustomerDev?: string;
26
- /**
27
- * Stripe connect ids for charging customers on behalf of Scout9
28
- */
29
- stripeConnect?: string;
30
- stripeConnectDev?: string;
31
- twilioAddressSid?: string;
32
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { IAlgoliaIndexedObject } from '../../../common';
2
- import { IContext } from './context';
3
- /**
4
- * scout9-businesses/{businessId}/context-indexed/{context}
5
- * An auto generated context, when a context category is created it will be indexed in a collection, resolving all stripe and
6
- * algolia references.
7
- */
8
- export interface IContextIndexed extends IContext, IAlgoliaIndexedObject {
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { Timestamp } from '../../../common';
2
- /**
3
- * When a context field receives uploaded bulk data (csv/excel/json)
4
- * scout9-businesses/{businessId}/context/{context}/saves/{save_time}
5
- */
6
- export interface IContextSaves {
7
- /**
8
- * Where the file was saved
9
- */
10
- ref: string;
11
- time: Timestamp;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,64 +0,0 @@
1
- import { ThreadLanguage } from '../thread';
2
- /**
3
- * Used to build NLP models to detect context invocation
4
- */
5
- export interface IContextDetectionParams {
6
- /**
7
- * Key word entities to detect in a contacts message
8
- */
9
- entities: {
10
- /**
11
- * @deprecated
12
- */
13
- utteranceId?: string;
14
- option: string;
15
- languages: ThreadLanguage[];
16
- text: string[];
17
- }[];
18
- /**
19
- * Documents or phrases to train the model
20
- */
21
- documents: {
22
- language: ThreadLanguage;
23
- text: string;
24
- id: string;
25
- }[];
26
- }
27
- /**
28
- * scout9-businesses/{businessId}/context/{$id}
29
- *
30
- * Context field to be used for conversation context and workflows
31
- */
32
- export interface IContext {
33
- /**
34
- * Context $id - this is used to store the context data under the given collection
35
- * scout9-businesses/{businessId}/{$id}/{row}
36
- */
37
- $id: string;
38
- /**
39
- * Name of the context
40
- */
41
- name: string;
42
- modifiable: boolean;
43
- /**
44
- * Description of the context
45
- */
46
- description?: string;
47
- /**
48
- * If provided, this can be used to detect if a given message is invoking this context
49
- */
50
- detection?: IContextDetectionParams;
51
- /**
52
- * The column that represents the id of a given context row
53
- */
54
- idColumn: string;
55
- /**
56
- * Column fields that could exist in the context
57
- */
58
- columns: string[];
59
- /**
60
- * If provided this will enforce that the given columns are required
61
- * NOTE: idColumn by default is required
62
- */
63
- requiredColumns?: string[];
64
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from './context';
2
- export * from './context-indexed';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./context"), exports);
18
- __exportStar(require("./context-indexed"), exports);
@@ -1,5 +0,0 @@
1
- export * from './business';
2
- export * from './business-location';
3
- export * from './agents';
4
- export * from './thread';
5
- export * from './notifications';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./business"), exports);
18
- __exportStar(require("./business-location"), exports);
19
- __exportStar(require("./agents"), exports);
20
- __exportStar(require("./thread"), exports);
21
- __exportStar(require("./notifications"), exports);
@@ -1,7 +0,0 @@
1
- import { Timestamp } from '../../common';
2
- export interface INotification {
3
- time: Timestamp;
4
- read?: Timestamp;
5
- content: string;
6
- href: string;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from './offer';
2
- export * from './offer-indexed';