clivly 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -33
- package/{adapter-BpAfha3z.d.mts → adapter-BXykDFyG.d.mts} +1 -1
- package/{adapter-BvSigBPG.d.cts → adapter-BiUN_I3u.d.cts} +1 -1
- package/{auth-adapter-CsZE4ugg.d.cts → auth-adapter-BNvri2gX.d.mts} +1 -1
- package/{auth-adapter-Q6CL2VHr.d.mts → auth-adapter-D2MUT1Hk.d.cts} +1 -1
- package/auth-better-auth.d.cts +1 -1
- package/auth-better-auth.d.mts +1 -1
- package/auth-clerk.d.cts +1 -1
- package/auth-clerk.d.mts +1 -1
- package/auth-workos.d.cts +1 -1
- package/auth-workos.d.mts +1 -1
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-drizzle.d.cts +1 -1
- package/core-drizzle.d.mts +1 -1
- package/core-entity-config.cjs +1 -1
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +1 -1
- package/core-entity-heuristics.cjs +16 -15
- package/core-entity-heuristics.d.cts +3 -3
- package/core-entity-heuristics.d.mts +3 -3
- package/core-entity-heuristics.mjs +1 -1
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mappings-config.cjs +1 -1
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +1 -1
- package/core-sync-engine.cjs +1 -1
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +1 -1
- package/core-types.d.cts +2 -2
- package/core-types.d.mts +2 -2
- package/core-view-compiler.cjs +1 -1
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +1 -1
- package/core.cjs +7 -7
- package/core.d.cts +10 -10
- package/core.d.mts +10 -10
- package/core.mjs +7 -7
- package/{drizzle-MUNZgh1l.d.cts → drizzle-B9cjBavj.d.cts} +1 -1
- package/{drizzle-UJbPCzPJ.d.mts → drizzle-L5FOGe_-.d.mts} +1 -1
- package/drizzle.cjs +2 -2
- package/drizzle.d.cts +3 -3
- package/drizzle.d.mts +3 -3
- package/drizzle.mjs +2 -2
- package/{entity-config-nWWgJXLw.cjs → entity-config-DiCJ6mhI.cjs} +1 -1
- package/{entity-config-BF7pcXFB.d.cts → entity-config-X-KlnYXX.d.mts} +1 -1
- package/{entity-config-pzamFSKw.d.mts → entity-config-dNclLyBM.d.cts} +1 -1
- package/{entity-config-DQVSprlG.mjs → entity-config-g_oMPXlN.mjs} +1 -1
- package/entity-heuristics-CIParuQe.cjs +655 -0
- package/entity-heuristics-DE5ujoHw.mjs +566 -0
- package/index.cjs +69 -20
- package/index.mjs +57 -8
- package/{internal-DtLZyjf8.mjs → internal-9oDwwbNg.mjs} +1 -1
- package/{internal-CjJy-cy1.cjs → internal-BKYt5j0l.cjs} +1 -1
- package/{internal-Gie7hCpK.d.mts → internal-COALpgov.d.cts} +1 -1
- package/{internal-C-uvosSL.d.cts → internal-D3q4FPcA.d.mts} +1 -1
- package/internal-adapter.d.cts +1 -1
- package/internal-adapter.d.mts +1 -1
- package/internal-auth-adapter.d.cts +1 -1
- package/internal-auth-adapter.d.mts +1 -1
- package/internal-drizzle.d.cts +1 -1
- package/internal-drizzle.d.mts +1 -1
- package/internal-entity-config.cjs +1 -1
- package/internal-entity-config.d.cts +1 -1
- package/internal-entity-config.d.mts +1 -1
- package/internal-entity-config.mjs +1 -1
- package/internal-entity-heuristics.cjs +16 -575
- package/internal-entity-heuristics.d.cts +3 -1
- package/internal-entity-heuristics.d.mts +3 -1
- package/internal-entity-heuristics.mjs +1 -562
- package/internal-mapping-form.d.cts +1 -1
- package/internal-mapping-form.d.mts +1 -1
- package/internal-mappings-config.cjs +1 -1
- package/internal-mappings-config.d.cts +1 -1
- package/internal-mappings-config.d.mts +1 -1
- package/internal-mappings-config.mjs +1 -1
- package/internal-sync-engine.cjs +1 -1
- package/internal-sync-engine.d.cts +1 -1
- package/internal-sync-engine.d.mts +1 -1
- package/internal-sync-engine.mjs +1 -1
- package/internal-types.d.cts +2 -2
- package/internal-types.d.mts +2 -2
- package/internal-view-compiler.cjs +1 -1
- package/internal-view-compiler.d.cts +1 -1
- package/internal-view-compiler.d.mts +1 -1
- package/internal-view-compiler.mjs +1 -1
- package/internal.cjs +7 -7
- package/internal.d.cts +10 -10
- package/internal.d.mts +10 -10
- package/internal.mjs +7 -7
- package/{mapping-form-BymksK7h.d.mts → mapping-form-Bpvgf5b8.d.mts} +1 -1
- package/{mapping-form-Cmf8y-1m.d.cts → mapping-form-CV7y6qox.d.cts} +1 -1
- package/{mappings-config-Dsz6rcJb.d.cts → mappings-config-BBppW9fp.d.cts} +1 -1
- package/{mappings-config-DBG-KnYl.cjs → mappings-config-CNxBrbt9.cjs} +1 -1
- package/{mappings-config-C7FPwrJT.mjs → mappings-config-D_g20PyS.mjs} +1 -1
- package/{mappings-config-ktJhxmHm.d.mts → mappings-config-Dmm0H6p_.d.mts} +1 -1
- package/{namespace-probe-By8SCnym.d.mts → namespace-probe-BAXprXQh.d.mts} +49 -5
- package/{namespace-probe-CTkb35Ro.d.cts → namespace-probe-qgjiudCo.d.cts} +49 -5
- package/package.json +1 -7
- package/{projection-DNi_2dVa.mjs → projection-BkYXvjTr.mjs} +2434 -1147
- package/{projection-B8RtxuEq.cjs → projection-By63gMC-.cjs} +2434 -1147
- package/{projection-sql-BYv40Hen.mjs → projection-sql-C3gZE3GS.mjs} +1 -1
- package/{projection-sql-SuhzhsMe.cjs → projection-sql-CHz7KzNS.cjs} +1 -1
- package/{schemas-DySv963y.d.cts → schemas-BSuo_eZQ.d.cts} +97 -35
- package/{schemas-DySv963y.d.mts → schemas-BSuo_eZQ.d.mts} +97 -35
- package/{sdk-BJ3OkhCq.cjs → sdk-D53fH4uu.cjs} +164 -28
- package/{sdk-CXrarwvs.mjs → sdk-D5J7kRQm.mjs} +164 -28
- package/sdk.cjs +2 -2
- package/sdk.d.cts +4 -4
- package/sdk.d.mts +4 -4
- package/sdk.mjs +2 -2
- package/{sync-engine-D9ltfqkD.d.cts → sync-engine-C7W0Gkq0.d.cts} +2 -2
- package/{sync-engine-C_SwnFgF.d.mts → sync-engine-C9Q2FkR9.d.mts} +2 -2
- package/{sync-engine-BTUoH82k.mjs → sync-engine-CwdLkmch.mjs} +1 -1
- package/{sync-engine-DBlSP9r2.cjs → sync-engine-Di-vF26b.cjs} +1 -1
- package/{types-BtQCi_qP.d.cts → types-C08UluBS.d.cts} +23 -2
- package/{types-CTOl3pAX.d.mts → types-CZsSYbeC.d.mts} +23 -2
- package/{view-compiler-B8tJ5IGw.mjs → view-compiler-CLTi1VL-.mjs} +2 -2
- package/{view-compiler-Ce_QE3dh.cjs → view-compiler-DaOz5QVl.cjs} +2 -2
- package/{view-compiler-BZgZisTG.d.mts → view-compiler-M23WiVGG.d.mts} +1 -1
- package/{view-compiler-D7GLf1n8.d.cts → view-compiler-cXqt4X-c.d.cts} +1 -1
- package/vite.d.cts +1 -1
- package/vite.d.mts +1 -1
package/sdk.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
3
|
-
const require_sdk = require("./sdk-
|
|
2
|
+
const require_entity_config = require("./entity-config-DiCJ6mhI.cjs");
|
|
3
|
+
const require_sdk = require("./sdk-D53fH4uu.cjs");
|
|
4
4
|
exports.CURSOR_KEY_PREFIX = require_sdk.CURSOR_KEY_PREFIX;
|
|
5
5
|
exports.ClivlyAuthError = require_sdk.ClivlyAuthError;
|
|
6
6
|
exports.ClivlyError = require_sdk.ClivlyError;
|
package/sdk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-
|
|
2
|
-
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-
|
|
1
|
+
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-dNclLyBM.cjs";
|
|
2
|
+
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, b as ExposurePolicy, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-qgjiudCo.cjs";
|
|
3
3
|
export declare function isPlaceholderUrl(value: string): boolean;
|
|
4
|
-
export declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
4
|
+
export declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser, resolveVisitorIp }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
5
5
|
export declare class ClivlyError extends Error {
|
|
6
6
|
/** HTTP status, or null when the request never completed (network error). */
|
|
7
7
|
readonly status: number | null;
|
|
@@ -60,4 +60,4 @@ export declare function kvCursorStore(kv: CursorKV, options?: {
|
|
|
60
60
|
* clearly-marked TODOs) and land with the Cloudflare infrastructure.
|
|
61
61
|
*/
|
|
62
62
|
export declare function createClivlySDK(config: ClivlySDKConfig): ClivlySDK;
|
|
63
|
-
export { type ChatSessionRequestBody, type ChatWidgetVisitor, type ClivlyConnectReason, type ClivlyConnectResult, type ClivlyEntitiesConfig, type ClivlySDK, type ClivlySDKConfig, type ClivlyUser, type ConfigValidationError, type ConfigValidationResult, type CreateChatSessionHandlerOptions, type CursorStore, type CustomObjectDeclaration, type DiscoveredSchemaTable, type DiscoveredTable, type DoctorCheck, type DoctorReport, type EnsureSchemaResult, type EnsuredMappingResult, type EnsuredObjectTypeResult, type RemoteProjectionsDescription, type SyncTriggerDescription, customObjectDeclarations, defineClivlyConfig, validateEntitiesConfig };
|
|
63
|
+
export { type ChatSessionRequestBody, type ChatWidgetVisitor, type ClivlyConnectReason, type ClivlyConnectResult, type ClivlyEntitiesConfig, type ClivlySDK, type ClivlySDKConfig, type ClivlyUser, type ConfigValidationError, type ConfigValidationResult, type CreateChatSessionHandlerOptions, type CursorStore, type CustomObjectDeclaration, type DiscoveredSchemaTable, type DiscoveredTable, type DoctorCheck, type DoctorReport, type EnsureSchemaResult, type EnsuredMappingResult, type EnsuredObjectTypeResult, type ExposurePolicy, type RemoteProjectionsDescription, type SyncTriggerDescription, customObjectDeclarations, defineClivlyConfig, validateEntitiesConfig };
|
package/sdk.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-
|
|
2
|
-
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-
|
|
1
|
+
import { C as customObjectDeclarations, M as validateEntitiesConfig, a as ClivlyEntitiesConfig, f as CustomObjectDeclaration, l as ConfigValidationError, m as DiscoveredSchemaTable, u as ConfigValidationResult, w as defineClivlyConfig } from "./entity-config-X-KlnYXX.mjs";
|
|
2
|
+
import { _ as RemoteProjectionsDescription, a as ClivlyConnectResult, b as ExposurePolicy, c as ClivlyUser, d as DiscoveredTable, f as DoctorCheck, g as EnsuredObjectTypeResult, h as EnsuredMappingResult, i as ClivlyConnectReason, l as CreateChatSessionHandlerOptions, m as EnsureSchemaResult, n as ChatSessionRequestBody, o as ClivlySDK, p as DoctorReport, r as ChatWidgetVisitor, s as ClivlySDKConfig, u as CursorStore, y as SyncTriggerDescription } from "./namespace-probe-BAXprXQh.mjs";
|
|
3
3
|
export declare function isPlaceholderUrl(value: string): boolean;
|
|
4
|
-
export declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
4
|
+
export declare function createChatSessionHandler({ allowedOrigins, apiKey, apiUrl, fetchImpl, resolveUser, resolveVisitorIp }: CreateChatSessionHandlerOptions): (request: Request) => Promise<Response>;
|
|
5
5
|
export declare class ClivlyError extends Error {
|
|
6
6
|
/** HTTP status, or null when the request never completed (network error). */
|
|
7
7
|
readonly status: number | null;
|
|
@@ -60,4 +60,4 @@ export declare function kvCursorStore(kv: CursorKV, options?: {
|
|
|
60
60
|
* clearly-marked TODOs) and land with the Cloudflare infrastructure.
|
|
61
61
|
*/
|
|
62
62
|
export declare function createClivlySDK(config: ClivlySDKConfig): ClivlySDK;
|
|
63
|
-
export { type ChatSessionRequestBody, type ChatWidgetVisitor, type ClivlyConnectReason, type ClivlyConnectResult, type ClivlyEntitiesConfig, type ClivlySDK, type ClivlySDKConfig, type ClivlyUser, type ConfigValidationError, type ConfigValidationResult, type CreateChatSessionHandlerOptions, type CursorStore, type CustomObjectDeclaration, type DiscoveredSchemaTable, type DiscoveredTable, type DoctorCheck, type DoctorReport, type EnsureSchemaResult, type EnsuredMappingResult, type EnsuredObjectTypeResult, type RemoteProjectionsDescription, type SyncTriggerDescription, customObjectDeclarations, defineClivlyConfig, validateEntitiesConfig };
|
|
63
|
+
export { type ChatSessionRequestBody, type ChatWidgetVisitor, type ClivlyConnectReason, type ClivlyConnectResult, type ClivlyEntitiesConfig, type ClivlySDK, type ClivlySDKConfig, type ClivlyUser, type ConfigValidationError, type ConfigValidationResult, type CreateChatSessionHandlerOptions, type CursorStore, type CustomObjectDeclaration, type DiscoveredSchemaTable, type DiscoveredTable, type DoctorCheck, type DoctorReport, type EnsureSchemaResult, type EnsuredMappingResult, type EnsuredObjectTypeResult, type ExposurePolicy, type RemoteProjectionsDescription, type SyncTriggerDescription, customObjectDeclarations, defineClivlyConfig, validateEntitiesConfig };
|
package/sdk.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as defineClivlyConfig, g as validateEntitiesConfig, s as customObjectDeclarations } from "./entity-config-
|
|
2
|
-
import { a as ClivlyAuthError, c as ClivlyRateLimitError, i as memoryCursorStore, l as createChatSessionHandler, n as createClivlySDK, o as ClivlyError, r as kvCursorStore, s as ClivlyNetworkError, t as CURSOR_KEY_PREFIX, u as isPlaceholderUrl } from "./sdk-
|
|
1
|
+
import { c as defineClivlyConfig, g as validateEntitiesConfig, s as customObjectDeclarations } from "./entity-config-g_oMPXlN.mjs";
|
|
2
|
+
import { a as ClivlyAuthError, c as ClivlyRateLimitError, i as memoryCursorStore, l as createChatSessionHandler, n as createClivlySDK, o as ClivlyError, r as kvCursorStore, s as ClivlyNetworkError, t as CURSOR_KEY_PREFIX, u as isPlaceholderUrl } from "./sdk-D5J7kRQm.mjs";
|
|
3
3
|
export { CURSOR_KEY_PREFIX, ClivlyAuthError, ClivlyError, ClivlyNetworkError, ClivlyRateLimitError, createChatSessionHandler, createClivlySDK, customObjectDeclarations, defineClivlyConfig, isPlaceholderUrl, kvCursorStore, memoryCursorStore, validateEntitiesConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClivlyEntitiesConfig } from "./entity-config-
|
|
2
|
-
import { n as CompiledView, t as CompileOptions } from "./view-compiler-
|
|
1
|
+
import { a as ClivlyEntitiesConfig } from "./entity-config-dNclLyBM.cjs";
|
|
2
|
+
import { n as CompiledView, t as CompileOptions } from "./view-compiler-cXqt4X-c.cjs";
|
|
3
3
|
/**
|
|
4
4
|
* Sync engine (Phase 3) — materializes the read-only entity views into Clivly's
|
|
5
5
|
* own mirror tables (`crm_companies`, `crm_contacts`).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClivlyEntitiesConfig } from "./entity-config-
|
|
2
|
-
import { n as CompiledView, t as CompileOptions } from "./view-compiler-
|
|
1
|
+
import { a as ClivlyEntitiesConfig } from "./entity-config-X-KlnYXX.mjs";
|
|
2
|
+
import { n as CompiledView, t as CompileOptions } from "./view-compiler-M23WiVGG.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Sync engine (Phase 3) — materializes the read-only entity views into Clivly's
|
|
5
5
|
* own mirror tables (`crm_companies`, `crm_contacts`).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as compileEntityViews } from "./view-compiler-
|
|
1
|
+
import { r as compileEntityViews } from "./view-compiler-CLTi1VL-.mjs";
|
|
2
2
|
// ../core/src/sync-engine.ts
|
|
3
3
|
/** Actions that remove something — only safe when the source set is complete. */
|
|
4
4
|
function isRemovalAction(action) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_view_compiler = require("./view-compiler-
|
|
1
|
+
const require_view_compiler = require("./view-compiler-DaOz5QVl.cjs");
|
|
2
2
|
// ../core/src/sync-engine.ts
|
|
3
3
|
/** Actions that remove something — only safe when the source set is complete. */
|
|
4
4
|
function isRemovalAction(action) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as output, f as $strict, l as ZodString, o as ZodObject, r as ZodEnum, s as ZodOptional, t as ZodArray } from "./schemas-
|
|
1
|
+
import { d as output, f as $strict, l as ZodString, o as ZodObject, r as ZodEnum, s as ZodOptional, t as ZodArray } from "./schemas-BSuo_eZQ.cjs";
|
|
2
2
|
/** AND conditions over deliberately mapped host fields, never SQL identifiers. */
|
|
3
3
|
declare const contactSegmentSchema: ZodArray<ZodObject<{
|
|
4
4
|
field: ZodString;
|
|
@@ -57,6 +57,8 @@ interface Contact {
|
|
|
57
57
|
name: string;
|
|
58
58
|
orgId: string;
|
|
59
59
|
phone: string | null;
|
|
60
|
+
/** Where the contact came from, set once at creation; null if not recorded. */
|
|
61
|
+
source?: ContactSource | null;
|
|
60
62
|
/**
|
|
61
63
|
* The host row this contact mirrors, or null when it was created in the CRM.
|
|
62
64
|
*
|
|
@@ -156,6 +158,11 @@ interface Task {
|
|
|
156
158
|
*/
|
|
157
159
|
dueAllDay?: boolean | null;
|
|
158
160
|
dueAt: Date | null;
|
|
161
|
+
/**
|
|
162
|
+
* How long a timed task runs from `dueAt`, in minutes. Null: a point in
|
|
163
|
+
* time. Always null for an all-day or undated task.
|
|
164
|
+
*/
|
|
165
|
+
durationMinutes?: number | null;
|
|
159
166
|
entityId: string | null;
|
|
160
167
|
entityType: TaskEntityType | null;
|
|
161
168
|
id: string;
|
|
@@ -188,11 +195,15 @@ interface Activity {
|
|
|
188
195
|
summary: string;
|
|
189
196
|
type: ActivityType;
|
|
190
197
|
}
|
|
198
|
+
/** Where a contact came from; null when it was not recorded. */
|
|
199
|
+
type ContactSource = "agent" | "app_sync" | "chat" | "import" | "inbound_email" | "manual" | "outbound_email";
|
|
191
200
|
interface CreateContactInput {
|
|
192
201
|
companyId?: string;
|
|
193
202
|
email: string;
|
|
194
203
|
name: string;
|
|
195
204
|
phone?: string;
|
|
205
|
+
/** Defaults to `manual`: a person created it. */
|
|
206
|
+
source?: ContactSource;
|
|
196
207
|
status?: ContactStatus;
|
|
197
208
|
title?: string;
|
|
198
209
|
}
|
|
@@ -250,6 +261,11 @@ interface CreateTaskInput {
|
|
|
250
261
|
*/
|
|
251
262
|
dueAllDay?: boolean | null;
|
|
252
263
|
dueAt?: Date;
|
|
264
|
+
/**
|
|
265
|
+
* How long a timed task runs from `dueAt`, in minutes. Null: a point in
|
|
266
|
+
* time. Always null for an all-day or undated task.
|
|
267
|
+
*/
|
|
268
|
+
durationMinutes?: number | null;
|
|
253
269
|
entityId?: string;
|
|
254
270
|
entityType?: TaskEntityType;
|
|
255
271
|
priority?: TaskPriority;
|
|
@@ -264,6 +280,11 @@ interface UpdateTaskInput {
|
|
|
264
280
|
*/
|
|
265
281
|
dueAllDay?: boolean | null;
|
|
266
282
|
dueAt?: Date | null;
|
|
283
|
+
/**
|
|
284
|
+
* How long a timed task runs from `dueAt`, in minutes. Null: a point in
|
|
285
|
+
* time. Always null for an all-day or undated task.
|
|
286
|
+
*/
|
|
287
|
+
durationMinutes?: number | null;
|
|
267
288
|
entityId?: string | null;
|
|
268
289
|
entityType?: TaskEntityType | null;
|
|
269
290
|
priority?: TaskPriority;
|
|
@@ -347,4 +368,4 @@ interface TaskFilters {
|
|
|
347
368
|
priority?: TaskPriority;
|
|
348
369
|
status?: TaskStatus;
|
|
349
370
|
}
|
|
350
|
-
export {
|
|
371
|
+
export { TaskStatus as A, PipelineStageConfig as C, TaskEntityType as D, Task as E, ValueInterval as F, isClosedStageType as I, ContactSegment as L, UpdateContactInput as M, UpdateDealInput as N, TaskFilters as O, UpdateTaskInput as P, contactSegmentSchema as R, PipelineKind as S, StageType as T, Note as _, Contact as a, PageRequest as b, ContactStatus as c, CreateContactInput as d, CreateDealInput as f, DealStage as g, Deal as h, CompanyFilters as i, UpdateCompanyInput as j, TaskPriority as k, CreateActivityInput as l, CrmRole as m, ActivityType as n, ContactFilters as o, CreateTaskInput as p, Company as r, ContactSource as s, Activity as t, CreateCompanyInput as u, OPEN_STAGE_TYPE as v, RecordSource as w, PipelineConfig as x, Page as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as output, f as $strict, l as ZodString, o as ZodObject, r as ZodEnum, s as ZodOptional, t as ZodArray } from "./schemas-
|
|
1
|
+
import { d as output, f as $strict, l as ZodString, o as ZodObject, r as ZodEnum, s as ZodOptional, t as ZodArray } from "./schemas-BSuo_eZQ.mjs";
|
|
2
2
|
/** AND conditions over deliberately mapped host fields, never SQL identifiers. */
|
|
3
3
|
declare const contactSegmentSchema: ZodArray<ZodObject<{
|
|
4
4
|
field: ZodString;
|
|
@@ -57,6 +57,8 @@ interface Contact {
|
|
|
57
57
|
name: string;
|
|
58
58
|
orgId: string;
|
|
59
59
|
phone: string | null;
|
|
60
|
+
/** Where the contact came from, set once at creation; null if not recorded. */
|
|
61
|
+
source?: ContactSource | null;
|
|
60
62
|
/**
|
|
61
63
|
* The host row this contact mirrors, or null when it was created in the CRM.
|
|
62
64
|
*
|
|
@@ -156,6 +158,11 @@ interface Task {
|
|
|
156
158
|
*/
|
|
157
159
|
dueAllDay?: boolean | null;
|
|
158
160
|
dueAt: Date | null;
|
|
161
|
+
/**
|
|
162
|
+
* How long a timed task runs from `dueAt`, in minutes. Null: a point in
|
|
163
|
+
* time. Always null for an all-day or undated task.
|
|
164
|
+
*/
|
|
165
|
+
durationMinutes?: number | null;
|
|
159
166
|
entityId: string | null;
|
|
160
167
|
entityType: TaskEntityType | null;
|
|
161
168
|
id: string;
|
|
@@ -188,11 +195,15 @@ interface Activity {
|
|
|
188
195
|
summary: string;
|
|
189
196
|
type: ActivityType;
|
|
190
197
|
}
|
|
198
|
+
/** Where a contact came from; null when it was not recorded. */
|
|
199
|
+
type ContactSource = "agent" | "app_sync" | "chat" | "import" | "inbound_email" | "manual" | "outbound_email";
|
|
191
200
|
interface CreateContactInput {
|
|
192
201
|
companyId?: string;
|
|
193
202
|
email: string;
|
|
194
203
|
name: string;
|
|
195
204
|
phone?: string;
|
|
205
|
+
/** Defaults to `manual`: a person created it. */
|
|
206
|
+
source?: ContactSource;
|
|
196
207
|
status?: ContactStatus;
|
|
197
208
|
title?: string;
|
|
198
209
|
}
|
|
@@ -250,6 +261,11 @@ interface CreateTaskInput {
|
|
|
250
261
|
*/
|
|
251
262
|
dueAllDay?: boolean | null;
|
|
252
263
|
dueAt?: Date;
|
|
264
|
+
/**
|
|
265
|
+
* How long a timed task runs from `dueAt`, in minutes. Null: a point in
|
|
266
|
+
* time. Always null for an all-day or undated task.
|
|
267
|
+
*/
|
|
268
|
+
durationMinutes?: number | null;
|
|
253
269
|
entityId?: string;
|
|
254
270
|
entityType?: TaskEntityType;
|
|
255
271
|
priority?: TaskPriority;
|
|
@@ -264,6 +280,11 @@ interface UpdateTaskInput {
|
|
|
264
280
|
*/
|
|
265
281
|
dueAllDay?: boolean | null;
|
|
266
282
|
dueAt?: Date | null;
|
|
283
|
+
/**
|
|
284
|
+
* How long a timed task runs from `dueAt`, in minutes. Null: a point in
|
|
285
|
+
* time. Always null for an all-day or undated task.
|
|
286
|
+
*/
|
|
287
|
+
durationMinutes?: number | null;
|
|
267
288
|
entityId?: string | null;
|
|
268
289
|
entityType?: TaskEntityType | null;
|
|
269
290
|
priority?: TaskPriority;
|
|
@@ -347,4 +368,4 @@ interface TaskFilters {
|
|
|
347
368
|
priority?: TaskPriority;
|
|
348
369
|
status?: TaskStatus;
|
|
349
370
|
}
|
|
350
|
-
export {
|
|
371
|
+
export { TaskStatus as A, PipelineStageConfig as C, TaskEntityType as D, Task as E, ValueInterval as F, isClosedStageType as I, ContactSegment as L, UpdateContactInput as M, UpdateDealInput as N, TaskFilters as O, UpdateTaskInput as P, contactSegmentSchema as R, PipelineKind as S, StageType as T, Note as _, Contact as a, PageRequest as b, ContactStatus as c, CreateContactInput as d, CreateDealInput as f, DealStage as g, Deal as h, CompanyFilters as i, UpdateCompanyInput as j, TaskPriority as k, CreateActivityInput as l, CrmRole as m, ActivityType as n, ContactFilters as o, CreateTaskInput as p, Company as r, ContactSource as s, Activity as t, CreateCompanyInput as u, OPEN_STAGE_TYPE as v, RecordSource as w, PipelineConfig as x, Page as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BASE_REF } from "./projection-
|
|
2
|
-
import { i as compileProjectionJoins, n as compileProjectionFrom, o as compileProjectionSelect, s as quoteIdent } from "./projection-sql-
|
|
1
|
+
import { t as BASE_REF } from "./projection-BkYXvjTr.mjs";
|
|
2
|
+
import { i as compileProjectionJoins, n as compileProjectionFrom, o as compileProjectionSelect, s as quoteIdent } from "./projection-sql-C3gZE3GS.mjs";
|
|
3
3
|
// ../core/src/view-compiler.ts
|
|
4
4
|
/**
|
|
5
5
|
* View compiler (Phase 2) — turns a validated entity config into read-only
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_projection = require("./projection-
|
|
2
|
-
const require_projection_sql = require("./projection-sql-
|
|
1
|
+
const require_projection = require("./projection-By63gMC-.cjs");
|
|
2
|
+
const require_projection_sql = require("./projection-sql-CHz7KzNS.cjs");
|
|
3
3
|
// ../core/src/view-compiler.ts
|
|
4
4
|
/**
|
|
5
5
|
* View compiler (Phase 2) — turns a validated entity config into read-only
|
package/vite.d.cts
CHANGED
package/vite.d.mts
CHANGED