@dench.com/cli 2.2.0 → 2.2.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.
@@ -1068,6 +1068,65 @@ const rawApiOperations = [
1068
1068
  responseSchema: anyResponse,
1069
1069
  backend: gateway("POST", "/enrichment/company/search"),
1070
1070
  }),
1071
+ op({
1072
+ id: "crm.templates.list",
1073
+ group: "crm",
1074
+ summary:
1075
+ "List one-click CRM templates (objects + automations + sample rows) with per-workspace installed flags.",
1076
+ cli: "dench crm templates list",
1077
+ method: "GET",
1078
+ path: "/crm/templates",
1079
+ requestSchema: noBody,
1080
+ responseSchema: anyResponse,
1081
+ backend: convex("query", "functions/crm/templates:listAvailable"),
1082
+ }),
1083
+ op({
1084
+ id: "crm.templates.install",
1085
+ group: "crm",
1086
+ summary:
1087
+ "Install a CRM template. Idempotent: re-installs top up missing pieces and never duplicate objects, automations, or sample rows.",
1088
+ cli: "dench crm templates install",
1089
+ method: "POST",
1090
+ path: "/crm/templates/{templateId}/install",
1091
+ requestSchema: noBody,
1092
+ responseSchema: anyResponse,
1093
+ backend: convex("mutation", "functions/crm/templates:install"),
1094
+ }),
1095
+ op({
1096
+ id: "crm.templates.removeSampleData",
1097
+ group: "crm",
1098
+ summary:
1099
+ "Delete a CRM template's sample rows (tagged \"Sample\"); schema, views, and automations stay.",
1100
+ cli: "dench crm templates remove-sample-data",
1101
+ method: "POST",
1102
+ path: "/crm/templates/{templateId}/remove-sample-data",
1103
+ requestSchema: noBody,
1104
+ responseSchema: anyResponse,
1105
+ backend: convex("mutation", "functions/crm/templates:removeSampleData"),
1106
+ }),
1107
+ op({
1108
+ id: "crm.automations.list",
1109
+ group: "crm",
1110
+ summary:
1111
+ "List deterministic CRM automations (rules that fire inside entry writes, e.g. qualified prospect → opportunity).",
1112
+ cli: "dench crm automations list",
1113
+ method: "GET",
1114
+ path: "/crm/automations",
1115
+ requestSchema: noBody,
1116
+ responseSchema: anyResponse,
1117
+ backend: convex("query", "functions/crm/automations:list"),
1118
+ }),
1119
+ op({
1120
+ id: "crm.automations.setEnabled",
1121
+ group: "crm",
1122
+ summary: "Enable or disable a CRM automation.",
1123
+ cli: "dench crm automations enable|disable",
1124
+ method: "PATCH",
1125
+ path: "/crm/automations/{automationId}",
1126
+ requestSchema: anyObject,
1127
+ responseSchema: anyResponse,
1128
+ backend: convex("mutation", "functions/crm/automations:setEnabled"),
1129
+ }),
1071
1130
  op({
1072
1131
  id: "crm.import",
1073
1132
  group: "local",
@@ -1184,6 +1243,29 @@ const rawApiOperations = [
1184
1243
  "functions/emailCampaignsNode:refreshIdentityStatus",
1185
1244
  ),
1186
1245
  }),
1246
+ op({
1247
+ id: "email.identity.disable",
1248
+ group: "email",
1249
+ summary:
1250
+ "Soft-disable a sender (or every sender on a domain) for the workspace; sends are blocked until restored.",
1251
+ cli: "dench email identity disable",
1252
+ method: "POST",
1253
+ path: "/email/sending-identities/{identity}/disable",
1254
+ requestSchema: anyObject,
1255
+ responseSchema: anyResponse,
1256
+ backend: convex("mutation", "functions/emailCampaigns:disableIdentity"),
1257
+ }),
1258
+ op({
1259
+ id: "email.identity.restore",
1260
+ group: "email",
1261
+ summary: "Restore a previously disabled sender for the workspace.",
1262
+ cli: "dench email identity restore",
1263
+ method: "POST",
1264
+ path: "/email/sending-identities/{identity}/restore",
1265
+ requestSchema: anyObject,
1266
+ responseSchema: anyResponse,
1267
+ backend: convex("mutation", "functions/emailCampaigns:restoreIdentity"),
1268
+ }),
1187
1269
  op({
1188
1270
  id: "email.send",
1189
1271
  group: "email",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dench.com/cli",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Dench agent workspace CLI. v2 unifies auth behind `dench signin`; the legacy `dench login` / `dench onboard` / `dench setup` / `dench what-can-i-do` / `dench register` commands now error with a redirect.",
5
5
  "type": "module",
6
6
  "bin": {