clivly 0.11.0-next.0 → 0.12.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/adapter-DTMeGGsl.d.cts +101 -0
- package/adapter-DhPBRNpi.d.mts +101 -0
- package/{auth-adapter-B4vVyUiX.d.mts → auth-adapter-C6rDx3XH.d.mts} +1 -1
- package/{auth-adapter-Cvc_sOpY.d.cts → auth-adapter-Csk9KkvI.d.cts} +1 -1
- package/auth-better-auth.d.cts +6 -6
- package/auth-better-auth.d.mts +6 -6
- package/auth-clerk.d.cts +5 -5
- package/auth-clerk.d.mts +5 -5
- package/auth-workos.d.cts +5 -5
- package/auth-workos.d.mts +5 -5
- 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.d.cts +1 -1
- package/core-entity-heuristics.d.mts +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 +12 -7
- package/core.d.cts +10 -10
- package/core.d.mts +10 -10
- package/core.mjs +8 -8
- package/{drizzle-C_0pIDpx.d.mts → drizzle-CiK37zJm.d.cts} +1 -1
- package/{drizzle-D3DcaC2d.d.cts → drizzle-ehVWLSrN.d.mts} +1 -1
- package/drizzle.cjs +3 -2
- package/drizzle.d.cts +24 -9
- package/drizzle.d.mts +24 -9
- package/drizzle.mjs +3 -2
- package/{entity-config-CbS2DGmA.d.cts → entity-config-ApnT5j3X.d.cts} +1734 -16
- package/{entity-config-EZg9BtqD.cjs → entity-config-BI4RYNKL.cjs} +18 -2
- package/{entity-config-CbS2DGmA.d.mts → entity-config-CKcj4-M_.d.mts} +1735 -16
- package/{entity-config-CO0TEwZC.mjs → entity-config-Ccfb2IL9.mjs} +27 -3
- package/index.cjs +15 -11
- package/index.d.cts +10 -11
- package/index.d.mts +10 -11
- package/index.mjs +15 -11
- package/{internal-Cz59xMj8.cjs → internal-BxtvxF7Z.cjs} +136 -0
- package/{internal-B8cq-xP-.d.cts → internal-Cmx7Zevf.d.mts} +104 -2
- 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 +9 -7
- package/internal-entity-heuristics.d.cts +21 -21
- package/internal-entity-heuristics.d.mts +21 -21
- package/internal-entity-heuristics.mjs +9 -7
- 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-Bgiimp5D.mjs → internal-u0Bks5Gr.mjs} +107 -1
- package/{internal-DEV1NCQc.d.mts → internal-vH5Rlg6Q.d.cts} +104 -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 +12 -7
- package/internal.d.cts +10 -10
- package/internal.d.mts +10 -10
- package/internal.mjs +8 -8
- package/{mapping-form-BBgP1iEf.d.cts → mapping-form-Btn-7gzv.d.mts} +1 -1
- package/{mapping-form-B_vX_kZJ.d.mts → mapping-form-XsLLCqW_.d.cts} +1 -1
- package/{mappings-config-BRP_Dev5.cjs → mappings-config-BCsRLohT.cjs} +2 -1
- package/{mappings-config-fAfUoVuD.mjs → mappings-config-CwQNQ6bA.mjs} +2 -1
- package/{mappings-config-BXdSUl-K.d.mts → mappings-config-D6_oCi2Q.d.mts} +3 -1
- package/{mappings-config-Cvw7RDSb.d.cts → mappings-config-iJzbcUMp.d.cts} +3 -1
- package/{namespace-probe-DC4YsI6m.d.cts → namespace-probe-C5RLl74M.d.cts} +1 -1
- package/{namespace-probe-BWZ7f1fg.d.mts → namespace-probe-CNQKSmxz.d.mts} +1 -1
- package/package.json +1 -1
- package/{projection-Dz6_i1-w.cjs → projection-BELgANG2.cjs} +32 -23
- package/{projection-CSGJbZlZ.mjs → projection-DvNewmI1.mjs} +32 -23
- package/{projection-sql-CbXCKt3s.cjs → projection-sql-DuCtFE9t.cjs} +1 -1
- package/{projection-sql-iHoiYr1R.mjs → projection-sql-DweUaWRc.mjs} +1 -1
- package/{sdk-UCBezLoT.cjs → sdk-BvGSxBQc.cjs} +3 -3
- package/{sdk-CsR4W9QQ.mjs → sdk-C-Pjxj2y.mjs} +3 -3
- package/sdk.cjs +2 -2
- package/sdk.d.cts +10 -10
- package/sdk.d.mts +10 -10
- package/sdk.mjs +2 -2
- package/{sync-engine-BQRApDAG.d.mts → sync-engine--M9EaONC.d.mts} +2 -2
- package/{sync-engine-CTSIcLlZ.mjs → sync-engine-Df2MCs_n.mjs} +1 -1
- package/{sync-engine-B0FT1ax6.cjs → sync-engine-Dwm_KDUS.cjs} +1 -1
- package/{sync-engine-qxbrOEJX.d.cts → sync-engine-V3_UutGv.d.cts} +2 -2
- package/types-B17TWEOL.d.cts +288 -0
- package/types-B17TWEOL.d.mts +288 -0
- package/{view-compiler-BzKk8nY3.mjs → view-compiler-C-6RydKK.mjs} +2 -2
- package/{view-compiler-CdnLqPQx.d.mts → view-compiler-Cq8apvZ4.d.cts} +1 -1
- package/{view-compiler-P4GHpOHt.d.cts → view-compiler-CwKVoK1w.d.mts} +1 -1
- package/{view-compiler-ZKZbd3SK.cjs → view-compiler-xiwm5iar.cjs} +2 -2
- package/vite.d.cts +4 -5
- package/vite.d.mts +4 -5
- package/adapter-BQl13eS3.d.mts +0 -45
- package/adapter-CA8bA6o-.d.cts +0 -45
- package/types-S0N0hqOV.d.cts +0 -188
- package/types-S0N0hqOV.d.mts +0 -188
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, M as UpdateDealInput, N as UpdateTaskInput, T as Task, a as Contact, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, i as CompanyFilters, j as UpdateContactInput, l as CreateCompanyInput, m as Deal, o as ContactFilters, r as Company, t as Activity, u as CreateContactInput, v as Page, y as PageRequest } from "./types-B17TWEOL.cjs";
|
|
2
|
+
//#region ../core/src/adapter.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The contract every ORM implementation fulfils. `packages/drizzle` is the first
|
|
5
|
+
* implementation; Prisma/Kysely/TypeORM can follow without changes to consumers.
|
|
6
|
+
*
|
|
7
|
+
* Every method is scoped to a single organization (`orgId`) — the adapter is the
|
|
8
|
+
* one place tenant isolation is enforced for CRM data. Implementations only ever
|
|
9
|
+
* read/write Clivly-owned `crm_*` tables; they never mutate host business tables.
|
|
10
|
+
*/
|
|
11
|
+
interface CRMAdapter {
|
|
12
|
+
/**
|
|
13
|
+
* Soft-delete: sets `archivedAt` so the row drops out of lists while the
|
|
14
|
+
* deals, activities and tasks that reference it keep resolving. Mirrors the
|
|
15
|
+
* sync engine's archive-on-leave doctrine — a contact that disappears from
|
|
16
|
+
* the host view is archived, never deleted, for exactly this reason.
|
|
17
|
+
*/
|
|
18
|
+
archiveCompany(orgId: string, id: string): Promise<Company>;
|
|
19
|
+
archiveContact(orgId: string, id: string): Promise<Contact>;
|
|
20
|
+
archiveTask(orgId: string, id: string): Promise<Task>;
|
|
21
|
+
completeTask(orgId: string, id: string): Promise<Task>;
|
|
22
|
+
createActivity(orgId: string, data: CreateActivityInput): Promise<Activity>;
|
|
23
|
+
createCompany(orgId: string, data: CreateCompanyInput): Promise<Company>;
|
|
24
|
+
createContact(orgId: string, data: CreateContactInput): Promise<Contact>;
|
|
25
|
+
createDeal(orgId: string, data: CreateDealInput): Promise<Deal>;
|
|
26
|
+
createTask(orgId: string, data: CreateTaskInput): Promise<Task>;
|
|
27
|
+
deleteDeal(orgId: string, id: string): Promise<Deal | null>;
|
|
28
|
+
getActivities(orgId: string, contactId: string): Promise<Activity[]>;
|
|
29
|
+
getCompanies(orgId: string, filters?: CompanyFilters): Promise<Company[]>;
|
|
30
|
+
/**
|
|
31
|
+
* The companies named by `ids`, for resolving a page of contacts to company
|
|
32
|
+
* names.
|
|
33
|
+
*
|
|
34
|
+
* `contacts.list` used to build that map from `getCompanies(orgId)` — every
|
|
35
|
+
* company in the org, to label at most one per listed contact. Scoping the
|
|
36
|
+
* fetch to the ids actually referenced keeps a bounded page of contacts from
|
|
37
|
+
* dragging an unbounded sibling query behind it.
|
|
38
|
+
*
|
|
39
|
+
* Returns only the rows that exist; a missing id is not an error, because a
|
|
40
|
+
* contact can reference a company archived since the page was built.
|
|
41
|
+
*/
|
|
42
|
+
getCompaniesByIds(orgId: string, ids: string[]): Promise<Company[]>;
|
|
43
|
+
getCompany(orgId: string, id: string): Promise<Company | null>;
|
|
44
|
+
getContact(orgId: string, id: string): Promise<Contact | null>;
|
|
45
|
+
getContacts(orgId: string, filters?: ContactFilters): Promise<Contact[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The contacts named by `ids`, for resolving a page of deals to contact
|
|
48
|
+
* names. See {@link CRMAdapter.getCompaniesByIds} — `deals.list` had the
|
|
49
|
+
* same unbounded-sibling problem.
|
|
50
|
+
*
|
|
51
|
+
* Deliberately unfiltered by archive state: a live deal pointing at an
|
|
52
|
+
* archived contact must still render that contact's name, which is the same
|
|
53
|
+
* reason `deals.list` never passed `excludeArchived` to `getContacts`.
|
|
54
|
+
*/
|
|
55
|
+
getContactsByIds(orgId: string, ids: string[]): Promise<Contact[]>;
|
|
56
|
+
getDeal(orgId: string, id: string): Promise<Deal | null>;
|
|
57
|
+
getDeals(orgId: string, filters?: {
|
|
58
|
+
source?: RecordSource;
|
|
59
|
+
}): Promise<Deal[]>;
|
|
60
|
+
getTasks(orgId: string, filters?: TaskFilters): Promise<Task[]>;
|
|
61
|
+
/**
|
|
62
|
+
* One page of companies, newest first.
|
|
63
|
+
*
|
|
64
|
+
* Separate from `getCompanies` rather than a `limit` on `CompanyFilters`,
|
|
65
|
+
* and that is the whole point: an optional field on a shared filter type is
|
|
66
|
+
* silently inheritable, and the callers that must never inherit it are the
|
|
67
|
+
* ones where truncation corrupts data rather than merely hiding rows.
|
|
68
|
+
* `importContacts` builds its dedup set from the unpaged read — a truncated
|
|
69
|
+
* set resurrects a contact archived as a duplicate. A distinct method makes
|
|
70
|
+
* "this call is paginated" a decision at every call site.
|
|
71
|
+
*/
|
|
72
|
+
listCompaniesPage(orgId: string, filters?: CompanyFilters, page?: PageRequest): Promise<Page<Company>>;
|
|
73
|
+
/** One page of contacts, newest first. See {@link CRMAdapter.listCompaniesPage}. */
|
|
74
|
+
listContactsPage(orgId: string, filters?: ContactFilters, page?: PageRequest): Promise<Page<Contact>>;
|
|
75
|
+
/** One page of deals, newest first. See {@link CRMAdapter.listCompaniesPage}. */
|
|
76
|
+
listDealsPage(orgId: string, filters?: {
|
|
77
|
+
source?: RecordSource;
|
|
78
|
+
}, page?: PageRequest): Promise<Page<Deal>>;
|
|
79
|
+
/**
|
|
80
|
+
* Move a deal to `stage` and reorder it directly after `afterId` (null = top
|
|
81
|
+
* of the column). The adapter computes the fractional `position` from the
|
|
82
|
+
* target column's current order; callers never pass a numeric position.
|
|
83
|
+
*/
|
|
84
|
+
moveDeal(orgId: string, id: string, stage: Deal["stage"], afterId: string | null): Promise<Deal>;
|
|
85
|
+
reopenTask(orgId: string, id: string): Promise<Task>;
|
|
86
|
+
/**
|
|
87
|
+
* Clear `archivedAt`, putting the row back in the lists. The inverse of
|
|
88
|
+
* `archiveCompany` / `archiveContact`, and what an "Undo" on an archive
|
|
89
|
+
* toast calls — archiving is reversible, so the UI should be able to say so.
|
|
90
|
+
*/
|
|
91
|
+
unarchiveCompany(orgId: string, id: string): Promise<Company>;
|
|
92
|
+
unarchiveContact(orgId: string, id: string): Promise<Contact>;
|
|
93
|
+
updateCompany(orgId: string, id: string, data: UpdateCompanyInput): Promise<Company>;
|
|
94
|
+
updateContact(orgId: string, id: string, data: UpdateContactInput): Promise<Contact>;
|
|
95
|
+
updateDeal(orgId: string, id: string, data: UpdateDealInput): Promise<Deal>;
|
|
96
|
+
updateDealStage(orgId: string, id: string, stage: Deal["stage"]): Promise<Deal>;
|
|
97
|
+
updateTask(orgId: string, id: string, data: UpdateTaskInput): Promise<Task>;
|
|
98
|
+
updateTaskStatus(orgId: string, id: string, status: Task["status"]): Promise<Task>;
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
export { CRMAdapter as t };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, M as UpdateDealInput, N as UpdateTaskInput, T as Task, a as Contact, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, i as CompanyFilters, j as UpdateContactInput, l as CreateCompanyInput, m as Deal, o as ContactFilters, r as Company, t as Activity, u as CreateContactInput, v as Page, y as PageRequest } from "./types-B17TWEOL.mjs";
|
|
2
|
+
//#region ../core/src/adapter.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The contract every ORM implementation fulfils. `packages/drizzle` is the first
|
|
5
|
+
* implementation; Prisma/Kysely/TypeORM can follow without changes to consumers.
|
|
6
|
+
*
|
|
7
|
+
* Every method is scoped to a single organization (`orgId`) — the adapter is the
|
|
8
|
+
* one place tenant isolation is enforced for CRM data. Implementations only ever
|
|
9
|
+
* read/write Clivly-owned `crm_*` tables; they never mutate host business tables.
|
|
10
|
+
*/
|
|
11
|
+
interface CRMAdapter {
|
|
12
|
+
/**
|
|
13
|
+
* Soft-delete: sets `archivedAt` so the row drops out of lists while the
|
|
14
|
+
* deals, activities and tasks that reference it keep resolving. Mirrors the
|
|
15
|
+
* sync engine's archive-on-leave doctrine — a contact that disappears from
|
|
16
|
+
* the host view is archived, never deleted, for exactly this reason.
|
|
17
|
+
*/
|
|
18
|
+
archiveCompany(orgId: string, id: string): Promise<Company>;
|
|
19
|
+
archiveContact(orgId: string, id: string): Promise<Contact>;
|
|
20
|
+
archiveTask(orgId: string, id: string): Promise<Task>;
|
|
21
|
+
completeTask(orgId: string, id: string): Promise<Task>;
|
|
22
|
+
createActivity(orgId: string, data: CreateActivityInput): Promise<Activity>;
|
|
23
|
+
createCompany(orgId: string, data: CreateCompanyInput): Promise<Company>;
|
|
24
|
+
createContact(orgId: string, data: CreateContactInput): Promise<Contact>;
|
|
25
|
+
createDeal(orgId: string, data: CreateDealInput): Promise<Deal>;
|
|
26
|
+
createTask(orgId: string, data: CreateTaskInput): Promise<Task>;
|
|
27
|
+
deleteDeal(orgId: string, id: string): Promise<Deal | null>;
|
|
28
|
+
getActivities(orgId: string, contactId: string): Promise<Activity[]>;
|
|
29
|
+
getCompanies(orgId: string, filters?: CompanyFilters): Promise<Company[]>;
|
|
30
|
+
/**
|
|
31
|
+
* The companies named by `ids`, for resolving a page of contacts to company
|
|
32
|
+
* names.
|
|
33
|
+
*
|
|
34
|
+
* `contacts.list` used to build that map from `getCompanies(orgId)` — every
|
|
35
|
+
* company in the org, to label at most one per listed contact. Scoping the
|
|
36
|
+
* fetch to the ids actually referenced keeps a bounded page of contacts from
|
|
37
|
+
* dragging an unbounded sibling query behind it.
|
|
38
|
+
*
|
|
39
|
+
* Returns only the rows that exist; a missing id is not an error, because a
|
|
40
|
+
* contact can reference a company archived since the page was built.
|
|
41
|
+
*/
|
|
42
|
+
getCompaniesByIds(orgId: string, ids: string[]): Promise<Company[]>;
|
|
43
|
+
getCompany(orgId: string, id: string): Promise<Company | null>;
|
|
44
|
+
getContact(orgId: string, id: string): Promise<Contact | null>;
|
|
45
|
+
getContacts(orgId: string, filters?: ContactFilters): Promise<Contact[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The contacts named by `ids`, for resolving a page of deals to contact
|
|
48
|
+
* names. See {@link CRMAdapter.getCompaniesByIds} — `deals.list` had the
|
|
49
|
+
* same unbounded-sibling problem.
|
|
50
|
+
*
|
|
51
|
+
* Deliberately unfiltered by archive state: a live deal pointing at an
|
|
52
|
+
* archived contact must still render that contact's name, which is the same
|
|
53
|
+
* reason `deals.list` never passed `excludeArchived` to `getContacts`.
|
|
54
|
+
*/
|
|
55
|
+
getContactsByIds(orgId: string, ids: string[]): Promise<Contact[]>;
|
|
56
|
+
getDeal(orgId: string, id: string): Promise<Deal | null>;
|
|
57
|
+
getDeals(orgId: string, filters?: {
|
|
58
|
+
source?: RecordSource;
|
|
59
|
+
}): Promise<Deal[]>;
|
|
60
|
+
getTasks(orgId: string, filters?: TaskFilters): Promise<Task[]>;
|
|
61
|
+
/**
|
|
62
|
+
* One page of companies, newest first.
|
|
63
|
+
*
|
|
64
|
+
* Separate from `getCompanies` rather than a `limit` on `CompanyFilters`,
|
|
65
|
+
* and that is the whole point: an optional field on a shared filter type is
|
|
66
|
+
* silently inheritable, and the callers that must never inherit it are the
|
|
67
|
+
* ones where truncation corrupts data rather than merely hiding rows.
|
|
68
|
+
* `importContacts` builds its dedup set from the unpaged read — a truncated
|
|
69
|
+
* set resurrects a contact archived as a duplicate. A distinct method makes
|
|
70
|
+
* "this call is paginated" a decision at every call site.
|
|
71
|
+
*/
|
|
72
|
+
listCompaniesPage(orgId: string, filters?: CompanyFilters, page?: PageRequest): Promise<Page<Company>>;
|
|
73
|
+
/** One page of contacts, newest first. See {@link CRMAdapter.listCompaniesPage}. */
|
|
74
|
+
listContactsPage(orgId: string, filters?: ContactFilters, page?: PageRequest): Promise<Page<Contact>>;
|
|
75
|
+
/** One page of deals, newest first. See {@link CRMAdapter.listCompaniesPage}. */
|
|
76
|
+
listDealsPage(orgId: string, filters?: {
|
|
77
|
+
source?: RecordSource;
|
|
78
|
+
}, page?: PageRequest): Promise<Page<Deal>>;
|
|
79
|
+
/**
|
|
80
|
+
* Move a deal to `stage` and reorder it directly after `afterId` (null = top
|
|
81
|
+
* of the column). The adapter computes the fractional `position` from the
|
|
82
|
+
* target column's current order; callers never pass a numeric position.
|
|
83
|
+
*/
|
|
84
|
+
moveDeal(orgId: string, id: string, stage: Deal["stage"], afterId: string | null): Promise<Deal>;
|
|
85
|
+
reopenTask(orgId: string, id: string): Promise<Task>;
|
|
86
|
+
/**
|
|
87
|
+
* Clear `archivedAt`, putting the row back in the lists. The inverse of
|
|
88
|
+
* `archiveCompany` / `archiveContact`, and what an "Undo" on an archive
|
|
89
|
+
* toast calls — archiving is reversible, so the UI should be able to say so.
|
|
90
|
+
*/
|
|
91
|
+
unarchiveCompany(orgId: string, id: string): Promise<Company>;
|
|
92
|
+
unarchiveContact(orgId: string, id: string): Promise<Contact>;
|
|
93
|
+
updateCompany(orgId: string, id: string, data: UpdateCompanyInput): Promise<Company>;
|
|
94
|
+
updateContact(orgId: string, id: string, data: UpdateContactInput): Promise<Contact>;
|
|
95
|
+
updateDeal(orgId: string, id: string, data: UpdateDealInput): Promise<Deal>;
|
|
96
|
+
updateDealStage(orgId: string, id: string, stage: Deal["stage"]): Promise<Deal>;
|
|
97
|
+
updateTask(orgId: string, id: string, data: UpdateTaskInput): Promise<Task>;
|
|
98
|
+
updateTaskStatus(orgId: string, id: string, status: Task["status"]): Promise<Task>;
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
export { CRMAdapter as t };
|
package/auth-better-auth.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Csk9KkvI.cjs";
|
|
2
2
|
//#region ../auth-better-auth/src/map.d.ts
|
|
3
3
|
interface BetterAuthLikeUser {
|
|
4
4
|
email?: string | null;
|
|
5
5
|
id: string;
|
|
6
6
|
name?: string | null;
|
|
7
7
|
}
|
|
8
|
-
declare function betterAuthUserToClivlyUser(user: BetterAuthLikeUser): ClivlyUser | null;
|
|
8
|
+
export declare function betterAuthUserToClivlyUser(user: BetterAuthLikeUser): ClivlyUser | null;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region ../auth-better-auth/src/index.d.ts
|
|
11
|
-
interface BetterAuthLike {
|
|
11
|
+
export interface BetterAuthLike {
|
|
12
12
|
api: {
|
|
13
13
|
getSession(args: {
|
|
14
14
|
headers: Headers;
|
|
@@ -17,7 +17,7 @@ interface BetterAuthLike {
|
|
|
17
17
|
} | null>;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
interface BetterAuthAdapterOptions {
|
|
20
|
+
export interface BetterAuthAdapterOptions {
|
|
21
21
|
/** Your better-auth instance (the object returned by `betterAuth({...})`). */
|
|
22
22
|
auth: BetterAuthLike;
|
|
23
23
|
}
|
|
@@ -27,6 +27,6 @@ interface BetterAuthAdapterOptions {
|
|
|
27
27
|
* Answers "who is this person?" only — CRM authorization lives in the separate
|
|
28
28
|
* `crm_members` layer.
|
|
29
29
|
*/
|
|
30
|
-
declare function createBetterAuthAdapter(options: BetterAuthAdapterOptions): ClivlyAuthAdapter;
|
|
30
|
+
export declare function createBetterAuthAdapter(options: BetterAuthAdapterOptions): ClivlyAuthAdapter;
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export type { BetterAuthLikeUser };
|
package/auth-better-auth.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-C6rDx3XH.mjs";
|
|
2
2
|
//#region ../auth-better-auth/src/map.d.ts
|
|
3
3
|
interface BetterAuthLikeUser {
|
|
4
4
|
email?: string | null;
|
|
5
5
|
id: string;
|
|
6
6
|
name?: string | null;
|
|
7
7
|
}
|
|
8
|
-
declare function betterAuthUserToClivlyUser(user: BetterAuthLikeUser): ClivlyUser | null;
|
|
8
|
+
export declare function betterAuthUserToClivlyUser(user: BetterAuthLikeUser): ClivlyUser | null;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region ../auth-better-auth/src/index.d.ts
|
|
11
|
-
interface BetterAuthLike {
|
|
11
|
+
export interface BetterAuthLike {
|
|
12
12
|
api: {
|
|
13
13
|
getSession(args: {
|
|
14
14
|
headers: Headers;
|
|
@@ -17,7 +17,7 @@ interface BetterAuthLike {
|
|
|
17
17
|
} | null>;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
interface BetterAuthAdapterOptions {
|
|
20
|
+
export interface BetterAuthAdapterOptions {
|
|
21
21
|
/** Your better-auth instance (the object returned by `betterAuth({...})`). */
|
|
22
22
|
auth: BetterAuthLike;
|
|
23
23
|
}
|
|
@@ -27,6 +27,6 @@ interface BetterAuthAdapterOptions {
|
|
|
27
27
|
* Answers "who is this person?" only — CRM authorization lives in the separate
|
|
28
28
|
* `crm_members` layer.
|
|
29
29
|
*/
|
|
30
|
-
declare function createBetterAuthAdapter(options: BetterAuthAdapterOptions): ClivlyAuthAdapter;
|
|
30
|
+
export declare function createBetterAuthAdapter(options: BetterAuthAdapterOptions): ClivlyAuthAdapter;
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export type { BetterAuthLikeUser };
|
package/auth-clerk.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Csk9KkvI.cjs";
|
|
2
2
|
//#region ../auth-clerk/src/map.d.ts
|
|
3
3
|
interface ClerkLikeUser {
|
|
4
4
|
emailAddresses?: Array<{
|
|
@@ -10,10 +10,10 @@ interface ClerkLikeUser {
|
|
|
10
10
|
lastName?: string | null;
|
|
11
11
|
primaryEmailAddressId?: string | null;
|
|
12
12
|
}
|
|
13
|
-
declare function clerkUserToClivlyUser(user: ClerkLikeUser): ClivlyUser | null;
|
|
13
|
+
export declare function clerkUserToClivlyUser(user: ClerkLikeUser): ClivlyUser | null;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region ../auth-clerk/src/index.d.ts
|
|
16
|
-
interface ClerkAuthAdapterOptions {
|
|
16
|
+
export interface ClerkAuthAdapterOptions {
|
|
17
17
|
/** Origins allowed to make authenticated requests (CSRF protection). */
|
|
18
18
|
authorizedParties?: string[];
|
|
19
19
|
/** Clerk publishable key (pk_…) — improves handshake reliability. */
|
|
@@ -26,6 +26,6 @@ interface ClerkAuthAdapterOptions {
|
|
|
26
26
|
* app's Clerk session on each request. Answers "who is this person?" only —
|
|
27
27
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
28
28
|
*/
|
|
29
|
-
declare function createClerkAuthAdapter(options: ClerkAuthAdapterOptions): ClivlyAuthAdapter;
|
|
29
|
+
export declare function createClerkAuthAdapter(options: ClerkAuthAdapterOptions): ClivlyAuthAdapter;
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export type { ClerkLikeUser };
|
package/auth-clerk.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-C6rDx3XH.mjs";
|
|
2
2
|
//#region ../auth-clerk/src/map.d.ts
|
|
3
3
|
interface ClerkLikeUser {
|
|
4
4
|
emailAddresses?: Array<{
|
|
@@ -10,10 +10,10 @@ interface ClerkLikeUser {
|
|
|
10
10
|
lastName?: string | null;
|
|
11
11
|
primaryEmailAddressId?: string | null;
|
|
12
12
|
}
|
|
13
|
-
declare function clerkUserToClivlyUser(user: ClerkLikeUser): ClivlyUser | null;
|
|
13
|
+
export declare function clerkUserToClivlyUser(user: ClerkLikeUser): ClivlyUser | null;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region ../auth-clerk/src/index.d.ts
|
|
16
|
-
interface ClerkAuthAdapterOptions {
|
|
16
|
+
export interface ClerkAuthAdapterOptions {
|
|
17
17
|
/** Origins allowed to make authenticated requests (CSRF protection). */
|
|
18
18
|
authorizedParties?: string[];
|
|
19
19
|
/** Clerk publishable key (pk_…) — improves handshake reliability. */
|
|
@@ -26,6 +26,6 @@ interface ClerkAuthAdapterOptions {
|
|
|
26
26
|
* app's Clerk session on each request. Answers "who is this person?" only —
|
|
27
27
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
28
28
|
*/
|
|
29
|
-
declare function createClerkAuthAdapter(options: ClerkAuthAdapterOptions): ClivlyAuthAdapter;
|
|
29
|
+
export declare function createClerkAuthAdapter(options: ClerkAuthAdapterOptions): ClivlyAuthAdapter;
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export type { ClerkLikeUser };
|
package/auth-workos.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-Csk9KkvI.cjs";
|
|
2
2
|
//#region ../auth-workos/src/map.d.ts
|
|
3
3
|
interface WorkOSLikeUser {
|
|
4
4
|
email: string;
|
|
@@ -6,10 +6,10 @@ interface WorkOSLikeUser {
|
|
|
6
6
|
id: string;
|
|
7
7
|
lastName?: string | null;
|
|
8
8
|
}
|
|
9
|
-
declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
|
|
9
|
+
export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../auth-workos/src/index.d.ts
|
|
12
|
-
interface WorkOSAuthAdapterOptions {
|
|
12
|
+
export interface WorkOSAuthAdapterOptions {
|
|
13
13
|
/** WorkOS API key (sk_…). */
|
|
14
14
|
apiKey: string;
|
|
15
15
|
/** WorkOS client ID (client_…). */
|
|
@@ -24,6 +24,6 @@ interface WorkOSAuthAdapterOptions {
|
|
|
24
24
|
* resolves the CRM end-user's identity. Answers "who is this person?" only —
|
|
25
25
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
26
26
|
*/
|
|
27
|
-
declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
|
|
27
|
+
export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
|
|
28
28
|
//#endregion
|
|
29
|
-
export {
|
|
29
|
+
export type { WorkOSLikeUser };
|
package/auth-workos.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { n as ClivlyUser, t as ClivlyAuthAdapter } from "./auth-adapter-C6rDx3XH.mjs";
|
|
2
2
|
//#region ../auth-workos/src/map.d.ts
|
|
3
3
|
interface WorkOSLikeUser {
|
|
4
4
|
email: string;
|
|
@@ -6,10 +6,10 @@ interface WorkOSLikeUser {
|
|
|
6
6
|
id: string;
|
|
7
7
|
lastName?: string | null;
|
|
8
8
|
}
|
|
9
|
-
declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
|
|
9
|
+
export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../auth-workos/src/index.d.ts
|
|
12
|
-
interface WorkOSAuthAdapterOptions {
|
|
12
|
+
export interface WorkOSAuthAdapterOptions {
|
|
13
13
|
/** WorkOS API key (sk_…). */
|
|
14
14
|
apiKey: string;
|
|
15
15
|
/** WorkOS client ID (client_…). */
|
|
@@ -24,6 +24,6 @@ interface WorkOSAuthAdapterOptions {
|
|
|
24
24
|
* resolves the CRM end-user's identity. Answers "who is this person?" only —
|
|
25
25
|
* CRM authorization lives in the separate `crm_members` layer.
|
|
26
26
|
*/
|
|
27
|
-
declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
|
|
27
|
+
export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
|
|
28
28
|
//#endregion
|
|
29
|
-
export {
|
|
29
|
+
export type { WorkOSLikeUser };
|
package/core-adapter.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CRMAdapter } from "./adapter-
|
|
1
|
+
import { t as CRMAdapter } from "./adapter-DTMeGGsl.cjs";
|
|
2
2
|
export { CRMAdapter };
|
package/core-adapter.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CRMAdapter } from "./adapter-
|
|
1
|
+
import { t as CRMAdapter } from "./adapter-DhPBRNpi.mjs";
|
|
2
2
|
export { CRMAdapter };
|
package/core-auth-adapter.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-Csk9KkvI.cjs";
|
|
2
2
|
export { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom };
|
package/core-auth-adapter.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-
|
|
1
|
+
import { a as authCustom, i as MembershipResolver, n as ClivlyUser, r as CrmMembership, t as ClivlyAuthAdapter } from "./auth-adapter-C6rDx3XH.mjs";
|
|
2
2
|
export { ClivlyAuthAdapter, ClivlyUser, CrmMembership, MembershipResolver, authCustom };
|
package/core-drizzle.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-
|
|
1
|
+
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-CiK37zJm.cjs";
|
|
2
2
|
import "./internal-drizzle.cjs";
|
|
3
3
|
export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
|
package/core-drizzle.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-
|
|
1
|
+
import { n as buildUniqueConstraints, r as discoverFromDrizzle, t as buildColumnsMeta } from "./drizzle-ehVWLSrN.mjs";
|
|
2
2
|
import "./internal-drizzle.mjs";
|
|
3
3
|
export { buildColumnsMeta, buildUniqueConstraints, discoverFromDrizzle };
|
package/core-entity-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_entity_config = require("./entity-config-
|
|
2
|
+
const require_entity_config = require("./entity-config-BI4RYNKL.cjs");
|
|
3
3
|
//#region src/core-entity-config.ts
|
|
4
4
|
require("./deprecate-subpath-B9ngvizt.cjs").warnDeprecatedSubpath("clivly/core/entity-config", "clivly/internal/entity-config");
|
|
5
5
|
//#endregion
|
package/core-entity-config.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-
|
|
1
|
+
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-ApnT5j3X.cjs";
|
|
2
2
|
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, REQUIRED_FIELDS, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, validateEntitiesConfig };
|
package/core-entity-config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-
|
|
1
|
+
import { A as relationshipsSchema, C as customObjectDeclarations, D as missingRequiredFields, E as filterSchema, M as validateEntitiesConfig, O as projectionFields, S as RelationshipsMap, T as entitiesConfigSchema, _ as MATERIALIZING_CONCEPTS, a as ClivlyEntitiesConfig, b as RelationshipSpec, c as ClivlyEntityConfigInput, d as CrmConcept, f as CustomObjectDeclaration, g as FilterValue, h as FilterExpr, i as ClivlyConfigError, j as requiredFieldsFor, k as relationshipSchema, l as ConfigValidationError, m as DiscoveredSchemaTable, n as CRM_CONCEPTS, o as ClivlyEntitiesConfigInput, p as DiscoveredColumnMeta, r as CUSTOM_CONCEPT, s as ClivlyEntityConfig, t as CANONICAL_FIELDS, u as ConfigValidationResult, v as MaterializingConcept, w as defineClivlyConfig, x as RelationshipVia, y as REQUIRED_FIELDS } from "./entity-config-CKcj4-M_.mjs";
|
|
2
2
|
export { CANONICAL_FIELDS, CRM_CONCEPTS, CUSTOM_CONCEPT, ClivlyConfigError, ClivlyEntitiesConfig, ClivlyEntitiesConfigInput, ClivlyEntityConfig, ClivlyEntityConfigInput, ConfigValidationError, ConfigValidationResult, CrmConcept, CustomObjectDeclaration, DiscoveredColumnMeta, DiscoveredSchemaTable, FilterExpr, FilterValue, MATERIALIZING_CONCEPTS, MaterializingConcept, REQUIRED_FIELDS, RelationshipSpec, RelationshipVia, RelationshipsMap, customObjectDeclarations, defineClivlyConfig, entitiesConfigSchema, filterSchema, missingRequiredFields, projectionFields, relationshipSchema, relationshipsSchema, requiredFieldsFor, validateEntitiesConfig };
|
package/core-entity-config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MATERIALIZING_CONCEPTS, c as defineClivlyConfig, d as missingRequiredFields, f as projectionFields, g as validateEntitiesConfig, h as requiredFieldsFor, i as ClivlyConfigError, l as entitiesConfigSchema, m as relationshipsSchema, n as CRM_CONCEPTS, o as REQUIRED_FIELDS, p as relationshipSchema, r as CUSTOM_CONCEPT, s as customObjectDeclarations, t as CANONICAL_FIELDS, u as filterSchema } from "./entity-config-
|
|
1
|
+
import { a as MATERIALIZING_CONCEPTS, c as defineClivlyConfig, d as missingRequiredFields, f as projectionFields, g as validateEntitiesConfig, h as requiredFieldsFor, i as ClivlyConfigError, l as entitiesConfigSchema, m as relationshipsSchema, n as CRM_CONCEPTS, o as REQUIRED_FIELDS, p as relationshipSchema, r as CUSTOM_CONCEPT, s as customObjectDeclarations, t as CANONICAL_FIELDS, u as filterSchema } from "./entity-config-Ccfb2IL9.mjs";
|
|
2
2
|
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
3
3
|
//#region src/core-entity-config.ts
|
|
4
4
|
warnDeprecatedSubpath("clivly/core/entity-config", "clivly/internal/entity-config");
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { p as DiscoveredColumnMeta } from "./entity-config-
|
|
1
|
+
import { p as DiscoveredColumnMeta } from "./entity-config-ApnT5j3X.cjs";
|
|
2
2
|
import { FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping } from "./internal-entity-heuristics.cjs";
|
|
3
3
|
export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { p as DiscoveredColumnMeta } from "./entity-config-
|
|
1
|
+
import { p as DiscoveredColumnMeta } from "./entity-config-CKcj4-M_.mjs";
|
|
2
2
|
import { FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping } from "./internal-entity-heuristics.mjs";
|
|
3
3
|
export { type DiscoveredColumnMeta, FieldSuggestion, RelationshipSuggestion, ScoredTable, SuggestedVia, TARGET_CONCEPTS, TargetConcept, hasDefiningColumn, hasSensitiveColumns, isFrameworkTable, matchesConcept, requiredFieldsFor, scoreConcepts, scoreFieldMap, scoreRelationships, suggestCursorField, suggestDiscriminatorColumns, toFieldMap, topConcept, validateMapping };
|
package/core-mapping-form.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-
|
|
1
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-XsLLCqW_.cjs";
|
|
2
2
|
export { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
|
package/core-mapping-form.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-
|
|
1
|
+
import { i as relationshipViaSignature, n as buildFilterFromDiscriminator, r as buildRelationships, t as RelationshipCandidate } from "./mapping-form-Btn-7gzv.mjs";
|
|
2
2
|
export { RelationshipCandidate, buildFilterFromDiscriminator, buildRelationships, relationshipViaSignature };
|
package/core-mappings-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_mappings_config = require("./mappings-config-
|
|
2
|
+
const require_mappings_config = require("./mappings-config-BCsRLohT.cjs");
|
|
3
3
|
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
4
4
|
require("./internal-mappings-config.cjs");
|
|
5
5
|
//#region src/core-mappings-config.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as mappingsToEntitiesConfig, n as MappingFromConfig, r as entitiesToMappings, t as EntityMappingRow } from "./mappings-config-
|
|
1
|
+
import { i as mappingsToEntitiesConfig, n as MappingFromConfig, r as entitiesToMappings, t as EntityMappingRow } from "./mappings-config-iJzbcUMp.cjs";
|
|
2
2
|
export { EntityMappingRow, MappingFromConfig, entitiesToMappings, mappingsToEntitiesConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as mappingsToEntitiesConfig, n as MappingFromConfig, r as entitiesToMappings, t as EntityMappingRow } from "./mappings-config-
|
|
1
|
+
import { i as mappingsToEntitiesConfig, n as MappingFromConfig, r as entitiesToMappings, t as EntityMappingRow } from "./mappings-config-D6_oCi2Q.mjs";
|
|
2
2
|
export { EntityMappingRow, MappingFromConfig, entitiesToMappings, mappingsToEntitiesConfig };
|
package/core-mappings-config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as mappingsToEntitiesConfig, t as entitiesToMappings } from "./mappings-config-
|
|
1
|
+
import { n as mappingsToEntitiesConfig, t as entitiesToMappings } from "./mappings-config-CwQNQ6bA.mjs";
|
|
2
2
|
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
3
3
|
import "./internal-mappings-config.mjs";
|
|
4
4
|
//#region src/core-mappings-config.ts
|
package/core-sync-engine.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sync_engine = require("./sync-engine-
|
|
2
|
+
const require_sync_engine = require("./sync-engine-Dwm_KDUS.cjs");
|
|
3
3
|
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
4
4
|
require("./internal-sync-engine.cjs");
|
|
5
5
|
//#region src/core-sync-engine.ts
|
package/core-sync-engine.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine-
|
|
1
|
+
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine-V3_UutGv.cjs";
|
|
2
2
|
export { EntitySyncResult, MirrorRecord, PersistAction, PreviewResult, PreviewWarning, SourceRow, SyncAction, SyncResult, SyncStore, computeSampleWarnings, previewSync, reconcile, runSync };
|
package/core-sync-engine.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine
|
|
1
|
+
import { a as PreviewWarning, c as SyncResult, d as previewSync, f as reconcile, i as PreviewResult, l as SyncStore, n as MirrorRecord, o as SourceRow, p as runSync, r as PersistAction, s as SyncAction, t as EntitySyncResult, u as computeSampleWarnings } from "./sync-engine--M9EaONC.mjs";
|
|
2
2
|
export { EntitySyncResult, MirrorRecord, PersistAction, PreviewResult, PreviewWarning, SourceRow, SyncAction, SyncResult, SyncStore, computeSampleWarnings, previewSync, reconcile, runSync };
|
package/core-sync-engine.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as runSync, n as previewSync, r as reconcile, t as computeSampleWarnings } from "./sync-engine-
|
|
1
|
+
import { i as runSync, n as previewSync, r as reconcile, t as computeSampleWarnings } from "./sync-engine-Df2MCs_n.mjs";
|
|
2
2
|
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
3
3
|
import "./internal-sync-engine.mjs";
|
|
4
4
|
//#region src/core-sync-engine.ts
|
package/core-types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType };
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, E as TaskEntityType, F as isClosedStageType, M as UpdateDealInput, N as UpdateTaskInput, O as TaskPriority, P as ValueInterval, S as PipelineStageConfig, T as Task, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateContactInput, k as TaskStatus, l as CreateCompanyInput, m as Deal, n as ActivityType, o as ContactFilters, p as CrmRole, r as Company, s as ContactStatus, t as Activity, u as CreateContactInput, v as Page, w as StageType, x as PipelineKind, y as PageRequest } from "./types-B17TWEOL.cjs";
|
|
2
|
+
export { Activity, ActivityType, Company, CompanyFilters, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, Page, PageRequest, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateCompanyInput, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType };
|
package/core-types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { Activity, ActivityType, Company, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType };
|
|
1
|
+
import { A as UpdateCompanyInput, C as RecordSource, D as TaskFilters, E as TaskEntityType, F as isClosedStageType, M as UpdateDealInput, N as UpdateTaskInput, O as TaskPriority, P as ValueInterval, S as PipelineStageConfig, T as Task, _ as OPEN_STAGE_TYPE, a as Contact, b as PipelineConfig, c as CreateActivityInput, d as CreateDealInput, f as CreateTaskInput, g as Note, h as DealStage, i as CompanyFilters, j as UpdateContactInput, k as TaskStatus, l as CreateCompanyInput, m as Deal, n as ActivityType, o as ContactFilters, p as CrmRole, r as Company, s as ContactStatus, t as Activity, u as CreateContactInput, v as Page, w as StageType, x as PipelineKind, y as PageRequest } from "./types-B17TWEOL.mjs";
|
|
2
|
+
export { Activity, ActivityType, Company, CompanyFilters, Contact, ContactFilters, ContactStatus, CreateActivityInput, CreateCompanyInput, CreateContactInput, CreateDealInput, CreateTaskInput, CrmRole, Deal, DealStage, Note, OPEN_STAGE_TYPE, Page, PageRequest, PipelineConfig, PipelineKind, PipelineStageConfig, RecordSource, StageType, Task, TaskEntityType, TaskFilters, TaskPriority, TaskStatus, UpdateCompanyInput, UpdateContactInput, UpdateDealInput, UpdateTaskInput, ValueInterval, isClosedStageType };
|
package/core-view-compiler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_view_compiler = require("./view-compiler-
|
|
2
|
+
const require_view_compiler = require("./view-compiler-xiwm5iar.cjs");
|
|
3
3
|
const require_deprecate_subpath = require("./deprecate-subpath-B9ngvizt.cjs");
|
|
4
4
|
require("./internal-view-compiler.cjs");
|
|
5
5
|
//#region src/core-view-compiler.ts
|
package/core-view-compiler.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compileEntityView, c as explainViewExecutionError, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-
|
|
1
|
+
import { a as compileEntityView, c as explainViewExecutionError, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-Cq8apvZ4.cjs";
|
|
2
2
|
export { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig, explainViewExecutionError };
|
package/core-view-compiler.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compileEntityView, c as explainViewExecutionError, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-
|
|
1
|
+
import { a as compileEntityView, c as explainViewExecutionError, i as ExplainResult, n as CompiledView, o as compileEntityViews, r as DEFAULT_VIEW_PREFIX, s as explainEntitiesConfig, t as CompileOptions } from "./view-compiler-CwKVoK1w.mjs";
|
|
2
2
|
export { CompileOptions, CompiledView, DEFAULT_VIEW_PREFIX, ExplainResult, compileEntityView, compileEntityViews, explainEntitiesConfig, explainViewExecutionError };
|
package/core-view-compiler.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as explainViewExecutionError, i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-
|
|
1
|
+
import { a as explainViewExecutionError, i as explainEntitiesConfig, n as compileEntityView, r as compileEntityViews, t as DEFAULT_VIEW_PREFIX } from "./view-compiler-C-6RydKK.mjs";
|
|
2
2
|
import { t as warnDeprecatedSubpath } from "./deprecate-subpath-CmvZtCpE.mjs";
|
|
3
3
|
import "./internal-view-compiler.mjs";
|
|
4
4
|
//#region src/core-view-compiler.ts
|