@dench.com/cli 3.11.4 → 3.11.6-staging.479

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/crm-comments.ts CHANGED
@@ -31,7 +31,9 @@ const api = {
31
31
  "functions/crm/comments:listReplies",
32
32
  ),
33
33
  get: makeFunctionReference<"query">("functions/crm/comments:get"),
34
- create: makeFunctionReference<"mutation">("functions/crm/comments:create"),
34
+ create: makeFunctionReference<"action">(
35
+ "functions/crm/comments:createAndDispatch",
36
+ ),
35
37
  edit: makeFunctionReference<"mutation">("functions/crm/comments:edit"),
36
38
  remove: makeFunctionReference<"mutation">("functions/crm/comments:remove"),
37
39
  toggleReaction: makeFunctionReference<"mutation">(
@@ -276,7 +278,7 @@ export async function runCommentsCommand(ctx: CrmCliContext): Promise<void> {
276
278
  }
277
279
  out(
278
280
  ctx,
279
- await callMutation(ctx, api.comments.create, {
281
+ await callAction(ctx, api.comments.create, {
280
282
  objectName,
281
283
  entryId,
282
284
  body,
@@ -703,7 +705,7 @@ export async function runNotesCommand(ctx: CrmCliContext): Promise<void> {
703
705
  assertNoUnknownFlags(ctx.args, "crm notes create");
704
706
  out(
705
707
  ctx,
706
- await callMutation(ctx, api.comments.create, {
708
+ await callAction(ctx, api.comments.create, {
707
709
  objectName,
708
710
  entryId,
709
711
  body,
@@ -2112,9 +2112,14 @@ const rawApiOperations = [
2112
2112
  requestSchema: anyObject,
2113
2113
  responseSchema: anyResponse,
2114
2114
  backend: {
2115
- ...convex("mutation", "functions/crm/comments:create", "bearer", {
2116
- includeRunId: true,
2117
- }),
2115
+ ...convex(
2116
+ "action",
2117
+ "functions/crm/comments:createAndDispatch",
2118
+ "bearer",
2119
+ {
2120
+ includeRunId: true,
2121
+ },
2122
+ ),
2118
2123
  transformArgs: (input) => ({ ...input, kind: "note" }),
2119
2124
  },
2120
2125
  }),
@@ -2182,9 +2187,14 @@ const rawApiOperations = [
2182
2187
  path: "/crm/objects/{objectName}/entries/{entryId}/comments",
2183
2188
  requestSchema: anyObject,
2184
2189
  responseSchema: anyResponse,
2185
- backend: convex("mutation", "functions/crm/comments:create", "bearer", {
2186
- includeRunId: true,
2187
- }),
2190
+ backend: convex(
2191
+ "action",
2192
+ "functions/crm/comments:createAndDispatch",
2193
+ "bearer",
2194
+ {
2195
+ includeRunId: true,
2196
+ },
2197
+ ),
2188
2198
  }),
2189
2199
  op({
2190
2200
  id: "crm.comments.update",
@@ -198,6 +198,8 @@ export type SearchSignalsBody = {
198
198
  excludeDomains?: string[];
199
199
  excludeCompanies?: string[];
200
200
  includeCompanies?: string[];
201
+ /** Job change only: the companies' industries. */
202
+ industries?: string[];
201
203
  postedAfter: string;
202
204
  limit?: number;
203
205
  terms?: string[];
@@ -1480,6 +1482,7 @@ export async function searchSignals(
1480
1482
  payload.excludeCompanies = body.excludeCompanies;
1481
1483
  if (body.includeCompanies?.length)
1482
1484
  payload.includeCompanies = body.includeCompanies;
1485
+ if (body.industries?.length) payload.industries = body.industries;
1483
1486
  if (body.limit !== undefined) payload.limit = body.limit;
1484
1487
  if (body.terms?.length) payload.terms = body.terms;
1485
1488
  if (body.recency) payload.recency = body.recency;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dench.com/cli",
3
- "version": "3.11.4",
3
+ "version": "3.11.6-staging.479",
4
4
  "description": "Dench agent workspace CLI.",
5
5
  "type": "module",
6
6
  "bin": {