clivly 0.17.1 → 0.19.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.
Files changed (46) hide show
  1. package/README.md +15 -6
  2. package/{adapter-C63F9VZL.d.mts → adapter-BXykDFyG.d.mts} +1 -1
  3. package/{adapter-OO5g17qF.d.cts → adapter-BiUN_I3u.d.cts} +1 -1
  4. package/{auth-adapter-COMP0Fud.d.cts → auth-adapter-BNvri2gX.d.mts} +1 -1
  5. package/{auth-adapter-ZlhllVpm.d.mts → auth-adapter-D2MUT1Hk.d.cts} +1 -1
  6. package/auth-better-auth.d.cts +1 -1
  7. package/auth-better-auth.d.mts +1 -1
  8. package/auth-clerk.d.cts +1 -1
  9. package/auth-clerk.d.mts +1 -1
  10. package/auth-workos.d.cts +1 -1
  11. package/auth-workos.d.mts +1 -1
  12. package/core-adapter.d.cts +1 -1
  13. package/core-adapter.d.mts +1 -1
  14. package/core-auth-adapter.d.cts +1 -1
  15. package/core-auth-adapter.d.mts +1 -1
  16. package/core-types.d.cts +2 -2
  17. package/core-types.d.mts +2 -2
  18. package/core.d.cts +4 -4
  19. package/core.d.mts +4 -4
  20. package/drizzle.cjs +51 -2
  21. package/drizzle.d.cts +34 -2
  22. package/drizzle.d.mts +34 -2
  23. package/drizzle.mjs +50 -3
  24. package/index.cjs +64 -8
  25. package/index.mjs +64 -8
  26. package/internal-adapter.d.cts +1 -1
  27. package/internal-adapter.d.mts +1 -1
  28. package/internal-auth-adapter.d.cts +1 -1
  29. package/internal-auth-adapter.d.mts +1 -1
  30. package/internal-types.d.cts +2 -2
  31. package/internal-types.d.mts +2 -2
  32. package/internal.d.cts +4 -4
  33. package/internal.d.mts +4 -4
  34. package/{namespace-probe-BHk3NcyI.d.cts → namespace-probe-C1tm5rGh.d.cts} +92 -4
  35. package/{namespace-probe-Dt_HXcI-.d.mts → namespace-probe-ah2awcHO.d.mts} +92 -4
  36. package/package.json +1 -1
  37. package/{sdk-BZSTXPyK.cjs → sdk-BEHVvB18.cjs} +261 -31
  38. package/{sdk-KzHpSf7F.mjs → sdk-ChyrSl32.mjs} +261 -31
  39. package/sdk.cjs +1 -1
  40. package/sdk.d.cts +2 -2
  41. package/sdk.d.mts +2 -2
  42. package/sdk.mjs +1 -1
  43. package/{types-CQ2DgEH7.d.cts → types-C08UluBS.d.cts} +22 -1
  44. package/{types-C9_2vW5a.d.mts → types-CZsSYbeC.d.mts} +22 -1
  45. package/vite.d.cts +1 -1
  46. package/vite.d.mts +1 -1
@@ -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 { UpdateCompanyInput as A, RecordSource as C, TaskFilters as D, TaskEntityType as E, isClosedStageType as F, ContactSegment as I, contactSegmentSchema as L, UpdateDealInput as M, UpdateTaskInput as N, TaskPriority as O, ValueInterval as P, PipelineStageConfig as S, Task as T, OPEN_STAGE_TYPE as _, Contact as a, PipelineConfig as b, CreateActivityInput as c, CreateDealInput as d, CreateTaskInput as f, Note as g, DealStage as h, CompanyFilters as i, UpdateContactInput as j, TaskStatus as k, CreateCompanyInput as l, Deal as m, ActivityType as n, ContactFilters as o, CrmRole as p, Company as r, ContactStatus as s, Activity as t, CreateContactInput as u, Page as v, StageType as w, PipelineKind as x, PageRequest as y };
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 };
package/vite.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as ClivlySDK } from "./namespace-probe-BHk3NcyI.cjs";
1
+ import { c as ClivlySDK } from "./namespace-probe-C1tm5rGh.cjs";
2
2
  import { Plugin } from "vite";
3
3
  export interface ClivlyViteOptions {
4
4
  /** Log prefix for Clivly's boot lines. Defaults to "clivly". */
package/vite.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as ClivlySDK } from "./namespace-probe-Dt_HXcI-.mjs";
1
+ import { c as ClivlySDK } from "./namespace-probe-ah2awcHO.mjs";
2
2
  import { Plugin } from "vite";
3
3
  export interface ClivlyViteOptions {
4
4
  /** Log prefix for Clivly's boot lines. Defaults to "clivly". */