@faiber/faiber-crm 0.10.2 → 0.11.1
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 +23 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +207 -44
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +243 -44
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +322 -0
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @faiber/faiber-crm
|
|
2
2
|
|
|
3
|
-
Typed client for the current production CRM: workspace configuration, pipelines and boards,
|
|
4
|
-
teams, companies, contacts, leads, deals, tasks, activities, marketing sources/campaigns,
|
|
3
|
+
Typed client for the current production CRM: workspace configuration, workflow dashboard statistics, pipelines and boards,
|
|
4
|
+
teams, companies, contacts, leads, deals, SOS membership, workflow assignments, tasks, activities, marketing sources/campaigns,
|
|
5
5
|
reports, durable automation, and approval-gated Agentic insights.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
@@ -18,20 +18,36 @@ const crm = new CrmApi(new FaiberClient("crm", {
|
|
|
18
18
|
}));
|
|
19
19
|
|
|
20
20
|
const leads = await crm.listLeads({ q: "Acme", status: "open" });
|
|
21
|
+
const daily = await crm.getDailyStats();
|
|
22
|
+
const assignedWorkflows = await crm.listMemberWorkflows();
|
|
23
|
+
await crm.updatePipeline(assignedWorkflows.data.data[0].id, {
|
|
24
|
+
version: assignedWorkflows.data.data[0].version,
|
|
25
|
+
daily_quota: 12,
|
|
26
|
+
priority: 10,
|
|
27
|
+
hint: "Complete the oldest leads first",
|
|
28
|
+
});
|
|
21
29
|
const overview = await crm.getOverview();
|
|
22
30
|
await crm.moveLeadStage(leadId, { stage_id: nextStageId, version: leadVersion });
|
|
31
|
+
await crm.removeLeadFromSos(leadId, {
|
|
32
|
+
headers: { "Idempotency-Key": crypto.randomUUID() },
|
|
33
|
+
});
|
|
23
34
|
```
|
|
24
35
|
|
|
25
|
-
The package exposes all
|
|
36
|
+
The package exposes all 67 currently mounted routes through `api.operations`, with concise
|
|
26
37
|
methods for each CRM business capability. Mutations use optimistic `version` fields and
|
|
27
38
|
the backend's `Idempotency-Key` header where required. All methods return complete Axios
|
|
28
39
|
responses and accept shared request options, including `AbortSignal` cancellation.
|
|
29
40
|
|
|
30
41
|
CRM authorization remains server enforced. Typical permissions are scoped by capability,
|
|
31
42
|
including `crm:lead:*`, `crm:deal:*`, `crm:company:*`, `crm:contact:*`, `crm:team:*`,
|
|
32
|
-
`crm:task:*`, `crm:activity:*`, `crm:marketing:*`, `crm:report:*`, `crm:automation:read`,
|
|
43
|
+
`crm:sos:*`, `crm:workflow_assignment:*`, `crm:task:*`, `crm:activity:*`, `crm:marketing:*`, `crm:report:*`, `crm:automation:read`,
|
|
33
44
|
`crm:settings:update`, and `crm:agent:run`; `crm:admin` is the service-wide override.
|
|
34
45
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
46
|
+
`deleteTeam` is version-safe and detaches active CRM records before soft deletion.
|
|
47
|
+
`removeTeamMember` deactivates a membership. SOS methods add or remove the SOS marker without
|
|
48
|
+
deleting the lead. Workflow assignments accept exactly one `team_id` or `user_id`; the
|
|
49
|
+
`assignTeamToWorkflow` and `assignUserToWorkflow` helpers enforce that shape.
|
|
50
|
+
Daily and lead statistics are computed by the CRM service, not inferred by clients. The SDK also
|
|
51
|
+
exposes profile/status/date lead filters, lightweight cursor pagination, lead history, deletable
|
|
52
|
+
reminders/tasks, and atomic activity-plus-reminder creation. Tenant workflows and their actions are
|
|
53
|
+
configured through the API; the generic CRM service does not seed Poulstar-specific data.
|
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68,69,70],[67,69],[67,68]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"92ad928b53550398aee405105d9bf0b77e5fcb08790544a24f69d8691f06219f","signature":"90688f8f0c1d2bd6a2dcc7e16f274df1064223b6a7d0347d44fffc6c6706ee60","impliedFormat":99},{"version":"09d373500211eca8e0377136b5ffdf9c7fb061dec5a8656e65154ffc0620c8e2","signature":"1c2804982a1e1113a2dbec54c0771a766e0a0b3b95c54730abecb83daf348b9a","impliedFormat":99},{"version":"988266dda3ad6c6eec6cdb933dc34a9086f71e38e272bba0e560823928cc2730","signature":"d7e62d2b93f73f8615e0e8f10a147285b08129ce924d297fbd17ddba60a7f7f0","impliedFormat":99},{"version":"25fc9c2533437c1b8976c45c5a870b4a827d75ba5ce917503cd7d06d2325ca81","signature":"116c85cc39ef91df7e22d571dc85f76f65c44ef6bcf3775a1c8a14a4c35a125e","impliedFormat":99}],"root":[[68,71]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[71,6],[70,7],[69,8],[68,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68,69,70],[67,69],[67,68]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"dac1156fbd7a0cb72309ac3a6468d129347e3e6e389e1440ea1965ce97365ec7","signature":"cf5d65a6f7c2315d5034280df50833cfab718f44e3d67df528e00d4c4feefdcd","impliedFormat":99},{"version":"f8b00397584eb80bed88d0b44585c68147f59f266c282dfe7cc1d2982f8f5284","signature":"87e2b231624fca09585b824aad0d6f4fba905a11f3ea98a7d809e7c917eda1f1","impliedFormat":99},{"version":"a2e80390f542dcf1eb74f76f10be437ed8bdecb1230113b6092a79fc83193183","signature":"86cc7bd27dc3d6d593c6f10f2015ec6e3b1edf399ae5559af58983aad6e2e318","impliedFormat":99},{"version":"9273c74a9da8a41931020b192972c59a36c13f43c23c302e20f5069e54d6f57d","signature":"1ba1ac0d56bcbb7c32326c838a02f78617849e1201779247e89466433046239f","impliedFormat":99}],"root":[[68,71]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[71,6],[70,7],[69,8],[68,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,36 @@ export declare class CrmApi extends ServiceApi {
|
|
|
6
6
|
readonly operations: CrmOperations;
|
|
7
7
|
context(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiContextGetResponseData>, unknown, {}>>;
|
|
8
8
|
listPipelines(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmPipelinesResponse, unknown, {}>>;
|
|
9
|
+
/** Returns only workflows assigned directly to the caller or through their teams, ordered by priority. */
|
|
10
|
+
listMemberWorkflows(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiMemberWorkflowsGetResponseItem[]>, unknown, {}>>;
|
|
11
|
+
/** Updates workflow name, priority, guidance, quota, flags, actions, and creation policy with optimistic locking. */
|
|
12
|
+
updatePipeline(id: Identifier, data: O.ApiUpdatePipelinePatchInput, options?: RequestOptions<O.ApiUpdatePipelinePatchInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiUpdatePipelinePatchResponseData>, O.ApiUpdatePipelinePatchInput, {}>>;
|
|
13
|
+
/** Returns authoritative per-workflow quota, completed-today, extra-task, and all-done values for the caller. */
|
|
14
|
+
getDailyStats(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiDailyStatsGetResponseData>, unknown, {}>>;
|
|
15
|
+
/** Returns server-calculated total, active, and inactive lead counts by workflow. */
|
|
16
|
+
getLeadStats(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiLeadStatsGetResponseData>, unknown, {}>>;
|
|
9
17
|
listTeams(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiTeamsGetResponseItem[]>, unknown, {}>>;
|
|
10
18
|
createTeam(data: O.ApiCreateTeamPostInput, options?: RequestOptions<O.ApiCreateTeamPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateTeamPostResponseData>, O.ApiCreateTeamPostInput, {}>>;
|
|
11
19
|
getTeam(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmTeamDetailResponse, unknown, {}>>;
|
|
12
20
|
addTeamMember(teamId: Identifier, data: O.ApiAddTeamMemberPostInput, options?: RequestOptions<O.ApiAddTeamMemberPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiAddTeamMemberPostResponseData>, O.ApiAddTeamMemberPostInput, {}>>;
|
|
21
|
+
/** Soft-deletes a team after optimistic version validation and detaches its active records. Requires `crm:team:delete`. */
|
|
22
|
+
deleteTeam(id: Identifier, data: O.ApiDeleteTeamDeleteInput, options?: RequestOptions<O.ApiDeleteTeamDeleteInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiDeleteTeamDeleteResponseData>, O.ApiDeleteTeamDeleteInput, {}>>;
|
|
23
|
+
/** Deactivates a current team membership. Requires `crm:team:manage_members`. */
|
|
24
|
+
removeTeamMember(teamId: Identifier, memberId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiRemoveTeamMemberDeleteResponseData>, unknown, {}>>;
|
|
25
|
+
/** Lists leads currently marked for SOS handling. Requires `crm:sos:read`. */
|
|
26
|
+
listSosLeads(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiListSosLeadsGetResponseItem[]>, unknown, {}>>;
|
|
27
|
+
/** Marks a lead for SOS handling. Requires `crm:sos:create`. */
|
|
28
|
+
addLeadToSos(leadId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiAddLeadToSosPostResponseData>, unknown, {}>>;
|
|
29
|
+
/** Removes a lead from SOS without deleting the lead. Requires `crm:sos:delete`. */
|
|
30
|
+
removeLeadFromSos(leadId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiRemoveLeadFromSosDeleteResponseData>, unknown, {}>>;
|
|
31
|
+
/** Lists team and user assignments for a workflow. Requires `crm:workflow_assignment:read`. */
|
|
32
|
+
listWorkflowAssignments(workflowId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiListWorkflowAssignmentsGetResponseItem[]>, unknown, {}>>;
|
|
33
|
+
/** Assigns exactly one team or user to a workflow. Requires `crm:workflow_assignment:manage`. */
|
|
34
|
+
createWorkflowAssignment(workflowId: Identifier, data: O.ApiCreateWorkflowAssignmentPostInput, options?: RequestOptions<O.ApiCreateWorkflowAssignmentPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateWorkflowAssignmentPostResponseData>, O.ApiCreateWorkflowAssignmentPostInput, {}>>;
|
|
35
|
+
assignTeamToWorkflow(workflowId: Identifier, teamId: Identifier, options?: RequestOptions<O.ApiCreateWorkflowAssignmentPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateWorkflowAssignmentPostResponseData>, O.ApiCreateWorkflowAssignmentPostInput, {}>>;
|
|
36
|
+
assignUserToWorkflow(workflowId: Identifier, userId: Identifier, options?: RequestOptions<O.ApiCreateWorkflowAssignmentPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateWorkflowAssignmentPostResponseData>, O.ApiCreateWorkflowAssignmentPostInput, {}>>;
|
|
37
|
+
/** Removes a workflow assignment. Requires `crm:workflow_assignment:manage`. */
|
|
38
|
+
deleteWorkflowAssignment(workflowId: Identifier, assignmentId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiDeleteWorkflowAssignmentDeleteResponseData>, unknown, {}>>;
|
|
13
39
|
listCompanies(params?: O.ApiCompaniesGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmCompanyListResponse, unknown, {}>>;
|
|
14
40
|
createCompany(data: O.ApiCreateCompanyPostInput, options?: RequestOptions<O.ApiCreateCompanyPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateCompanyPostResponseData>, O.ApiCreateCompanyPostInput, {}>>;
|
|
15
41
|
getCompany(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCompanyGetResponseData>, unknown, {}>>;
|
|
@@ -19,11 +45,17 @@ export declare class CrmApi extends ServiceApi {
|
|
|
19
45
|
getContact(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiContactGetResponseData>, unknown, {}>>;
|
|
20
46
|
updateContact(id: Identifier, data: O.ApiUpdateContactPatchInput, options?: RequestOptions<O.ApiUpdateContactPatchInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiUpdateContactPatchResponseData>, O.ApiUpdateContactPatchInput, {}>>;
|
|
21
47
|
listLeads(params?: O.ApiLeadsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmLeadListResponse, unknown, {}>>;
|
|
48
|
+
/** Lightweight cursor-paginated lead listing with profile, status-set, active-date, and priority sorting filters. */
|
|
49
|
+
listLightLeads(params?: O.ApiLightLeadsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmLeadListResponse, unknown, {}>>;
|
|
22
50
|
createLead(data: O.ApiCreateLeadPostInput, options?: RequestOptions<O.ApiCreateLeadPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateLeadPostResponseData>, O.ApiCreateLeadPostInput, {}>>;
|
|
23
51
|
getLead(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiLeadGetResponseData>, unknown, {}>>;
|
|
24
52
|
updateLead(id: Identifier, data: O.ApiUpdateLeadPatchInput, options?: RequestOptions<O.ApiUpdateLeadPatchInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiUpdateLeadPatchResponseData>, O.ApiUpdateLeadPatchInput, {}>>;
|
|
25
53
|
moveLeadStage(id: Identifier, data: O.ApiMoveLeadStagePatchInput, options?: RequestOptions<O.ApiMoveLeadStagePatchInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiMoveLeadStagePatchResponseData>, O.ApiMoveLeadStagePatchInput, {}>>;
|
|
26
54
|
assignLead(id: Identifier, data: O.ApiAssignLeadPatchInput, options?: RequestOptions<O.ApiAssignLeadPatchInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiAssignLeadPatchResponseData>, O.ApiAssignLeadPatchInput, {}>>;
|
|
55
|
+
/** Returns the immutable combined activity and audited transition history for a lead. */
|
|
56
|
+
getLeadHistory(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiLeadHistoryGetResponseItem[]>, unknown, {}>>;
|
|
57
|
+
/** Removes all current reminder tasks linked to a lead. */
|
|
58
|
+
deleteLeadReminders(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<import("@faiber/sdk-core").JsonValue>, unknown, {}>>;
|
|
27
59
|
listDeals(params?: O.ApiDealsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmDealListResponse, unknown, {}>>;
|
|
28
60
|
createDeal(data: O.ApiCreateDealPostInput, options?: RequestOptions<O.ApiCreateDealPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateDealPostResponseData>, O.ApiCreateDealPostInput, {}>>;
|
|
29
61
|
getDeal(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiDealGetResponseData>, unknown, {}>>;
|
|
@@ -34,8 +66,11 @@ export declare class CrmApi extends ServiceApi {
|
|
|
34
66
|
listTasks(params?: O.ApiTasksGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmTaskListResponse, unknown, {}>>;
|
|
35
67
|
createTask(data: O.ApiCreateTaskPostInput, options?: RequestOptions<O.ApiCreateTaskPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateTaskPostResponseData>, O.ApiCreateTaskPostInput, {}>>;
|
|
36
68
|
updateTaskStatus(id: Identifier, data: O.ApiUpdateTaskStatusPatchInput, options?: RequestOptions<O.ApiUpdateTaskStatusPatchInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiUpdateTaskStatusPatchResponseData>, O.ApiUpdateTaskStatusPatchInput, {}>>;
|
|
69
|
+
deleteTask(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiDeleteTaskDeleteResponseData>, unknown, {}>>;
|
|
37
70
|
listActivities(params?: O.ApiActivitiesGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmActivityListResponse, unknown, {}>>;
|
|
38
71
|
createActivity(data: O.ApiCreateActivityPostInput, options?: RequestOptions<O.ApiCreateActivityPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateActivityPostResponseData>, O.ApiCreateActivityPostInput, {}>>;
|
|
72
|
+
/** Atomically creates an activity/worklog and its reminder task under one idempotency key. */
|
|
73
|
+
createActivityWithReminder(data: O.ApiCreateActivityWithReminderPostInput, options?: RequestOptions<O.ApiCreateActivityWithReminderPostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateActivityWithReminderPostResponseData>, O.ApiCreateActivityWithReminderPostInput, {}>>;
|
|
39
74
|
listSources(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiSourcesGetResponseItem[]>, unknown, {}>>;
|
|
40
75
|
createSource(data: O.ApiCreateSourcePostInput, options?: RequestOptions<O.ApiCreateSourcePostInput>): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCreateSourcePostResponseData>, O.ApiCreateSourcePostInput, {}>>;
|
|
41
76
|
listCampaigns(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./types.js").CrmApiResponse<O.ApiCampaignsGetResponseItem[]>, unknown, {}>>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAEhD,0EAA0E;AAC1E,qBAAa,MAAO,SAAQ,UAAU;IACpC,QAAQ,CAAC,UAAU,gBAAkC;IAErD,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc;IAChC,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc;IACtC,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc;IAClC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAC7F,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAChD,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,KA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c;CAChD;AAED,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,10 +5,36 @@ export class CrmApi extends ServiceApi {
|
|
|
5
5
|
operations = new CrmOperations(this.client);
|
|
6
6
|
context(options) { return this.operations.apiContextGet(options); }
|
|
7
7
|
listPipelines(options) { return this.operations.apiPipelinesGet(options); }
|
|
8
|
+
/** Returns only workflows assigned directly to the caller or through their teams, ordered by priority. */
|
|
9
|
+
listMemberWorkflows(options) { return this.operations.apiMemberWorkflowsGet(options); }
|
|
10
|
+
/** Updates workflow name, priority, guidance, quota, flags, actions, and creation policy with optimistic locking. */
|
|
11
|
+
updatePipeline(id, data, options) { return this.operations.apiUpdatePipelinePatch(id, data, options); }
|
|
12
|
+
/** Returns authoritative per-workflow quota, completed-today, extra-task, and all-done values for the caller. */
|
|
13
|
+
getDailyStats(options) { return this.operations.apiDailyStatsGet(options); }
|
|
14
|
+
/** Returns server-calculated total, active, and inactive lead counts by workflow. */
|
|
15
|
+
getLeadStats(options) { return this.operations.apiLeadStatsGet(options); }
|
|
8
16
|
listTeams(options) { return this.operations.apiTeamsGet(options); }
|
|
9
17
|
createTeam(data, options) { return this.operations.apiCreateTeamPost(data, options); }
|
|
10
18
|
getTeam(id, options) { return this.operations.apiTeamGet(id, options); }
|
|
11
19
|
addTeamMember(teamId, data, options) { return this.operations.apiAddTeamMemberPost(teamId, data, options); }
|
|
20
|
+
/** Soft-deletes a team after optimistic version validation and detaches its active records. Requires `crm:team:delete`. */
|
|
21
|
+
deleteTeam(id, data, options) { return this.operations.apiDeleteTeamDelete(id, data, options); }
|
|
22
|
+
/** Deactivates a current team membership. Requires `crm:team:manage_members`. */
|
|
23
|
+
removeTeamMember(teamId, memberId, options) { return this.operations.apiRemoveTeamMemberDelete(teamId, memberId, options); }
|
|
24
|
+
/** Lists leads currently marked for SOS handling. Requires `crm:sos:read`. */
|
|
25
|
+
listSosLeads(options) { return this.operations.apiListSosLeadsGet(options); }
|
|
26
|
+
/** Marks a lead for SOS handling. Requires `crm:sos:create`. */
|
|
27
|
+
addLeadToSos(leadId, options) { return this.operations.apiAddLeadToSosPost(leadId, options); }
|
|
28
|
+
/** Removes a lead from SOS without deleting the lead. Requires `crm:sos:delete`. */
|
|
29
|
+
removeLeadFromSos(leadId, options) { return this.operations.apiRemoveLeadFromSosDelete(leadId, options); }
|
|
30
|
+
/** Lists team and user assignments for a workflow. Requires `crm:workflow_assignment:read`. */
|
|
31
|
+
listWorkflowAssignments(workflowId, options) { return this.operations.apiListWorkflowAssignmentsGet(workflowId, options); }
|
|
32
|
+
/** Assigns exactly one team or user to a workflow. Requires `crm:workflow_assignment:manage`. */
|
|
33
|
+
createWorkflowAssignment(workflowId, data, options) { return this.operations.apiCreateWorkflowAssignmentPost(workflowId, data, options); }
|
|
34
|
+
assignTeamToWorkflow(workflowId, teamId, options) { return this.createWorkflowAssignment(workflowId, { team_id: String(teamId) }, options); }
|
|
35
|
+
assignUserToWorkflow(workflowId, userId, options) { return this.createWorkflowAssignment(workflowId, { user_id: String(userId) }, options); }
|
|
36
|
+
/** Removes a workflow assignment. Requires `crm:workflow_assignment:manage`. */
|
|
37
|
+
deleteWorkflowAssignment(workflowId, assignmentId, options) { return this.operations.apiDeleteWorkflowAssignmentDelete(workflowId, assignmentId, options); }
|
|
12
38
|
listCompanies(params, options) { return this.operations.apiCompaniesGet(params, options); }
|
|
13
39
|
createCompany(data, options) { return this.operations.apiCreateCompanyPost(data, options); }
|
|
14
40
|
getCompany(id, options) { return this.operations.apiCompanyGet(id, options); }
|
|
@@ -18,11 +44,17 @@ export class CrmApi extends ServiceApi {
|
|
|
18
44
|
getContact(id, options) { return this.operations.apiContactGet(id, options); }
|
|
19
45
|
updateContact(id, data, options) { return this.operations.apiUpdateContactPatch(id, data, options); }
|
|
20
46
|
listLeads(params, options) { return this.operations.apiLeadsGet(params, options); }
|
|
47
|
+
/** Lightweight cursor-paginated lead listing with profile, status-set, active-date, and priority sorting filters. */
|
|
48
|
+
listLightLeads(params, options) { return this.operations.apiLightLeadsGet(params, options); }
|
|
21
49
|
createLead(data, options) { return this.operations.apiCreateLeadPost(data, options); }
|
|
22
50
|
getLead(id, options) { return this.operations.apiLeadGet(id, options); }
|
|
23
51
|
updateLead(id, data, options) { return this.operations.apiUpdateLeadPatch(id, data, options); }
|
|
24
52
|
moveLeadStage(id, data, options) { return this.operations.apiMoveLeadStagePatch(id, data, options); }
|
|
25
53
|
assignLead(id, data, options) { return this.operations.apiAssignLeadPatch(id, data, options); }
|
|
54
|
+
/** Returns the immutable combined activity and audited transition history for a lead. */
|
|
55
|
+
getLeadHistory(id, options) { return this.operations.apiLeadHistoryGet(id, options); }
|
|
56
|
+
/** Removes all current reminder tasks linked to a lead. */
|
|
57
|
+
deleteLeadReminders(id, options) { return this.operations.apiDeleteLeadRemindersDelete(id, options); }
|
|
26
58
|
listDeals(params, options) { return this.operations.apiDealsGet(params, options); }
|
|
27
59
|
createDeal(data, options) { return this.operations.apiCreateDealPost(data, options); }
|
|
28
60
|
getDeal(id, options) { return this.operations.apiDealGet(id, options); }
|
|
@@ -33,8 +65,11 @@ export class CrmApi extends ServiceApi {
|
|
|
33
65
|
listTasks(params, options) { return this.operations.apiTasksGet(params, options); }
|
|
34
66
|
createTask(data, options) { return this.operations.apiCreateTaskPost(data, options); }
|
|
35
67
|
updateTaskStatus(id, data, options) { return this.operations.apiUpdateTaskStatusPatch(id, data, options); }
|
|
68
|
+
deleteTask(id, options) { return this.operations.apiDeleteTaskDelete(id, options); }
|
|
36
69
|
listActivities(params, options) { return this.operations.apiActivitiesGet(params, options); }
|
|
37
70
|
createActivity(data, options) { return this.operations.apiCreateActivityPost(data, options); }
|
|
71
|
+
/** Atomically creates an activity/worklog and its reminder task under one idempotency key. */
|
|
72
|
+
createActivityWithReminder(data, options) { return this.operations.apiCreateActivityWithReminderPost(data, options); }
|
|
38
73
|
listSources(options) { return this.operations.apiSourcesGet(options); }
|
|
39
74
|
createSource(data, options) { return this.operations.apiCreateSourcePost(data, options); }
|
|
40
75
|
listCampaigns(options) { return this.operations.apiCampaignsGet(options); }
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwC,MAAM,kBAAkB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,0EAA0E;AAC1E,MAAM,OAAO,MAAO,SAAQ,UAAU;IAC3B,UAAU,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAErD,OAAO,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpF,aAAa,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5F,SAAS,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpF,UAAU,CAAC,IAA8B,EAAE,OAAkD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3J,OAAO,CAAC,EAAc,EAAE,OAAwB,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACrG,aAAa,CAAC,MAAkB,EAAE,IAAiC,EAAE,OAAqD,IAAI,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","source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