@lead-routing/cli 0.7.0 → 0.7.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/dist/index.js +3 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -173,35 +173,9 @@ async function collectConfig(opts = {}) {
|
|
|
173
173
|
const sessionSecret = generateSecret(32);
|
|
174
174
|
const engineWebhookSecret = generateSecret(32);
|
|
175
175
|
const internalApiKey = generateSecret(32);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (crmType === "hubspot") {
|
|
180
|
-
note2(
|
|
181
|
-
"Create a HubSpot app at https://developers.hubspot.com/\nYou will need the App ID, Client ID, and Client Secret.",
|
|
182
|
-
"HubSpot Credentials"
|
|
183
|
-
);
|
|
184
|
-
const rawAppId = await text2({
|
|
185
|
-
message: "HubSpot App ID",
|
|
186
|
-
placeholder: "123456",
|
|
187
|
-
validate: (v) => !v?.trim() ? "Required" : void 0
|
|
188
|
-
});
|
|
189
|
-
if (isCancel2(rawAppId)) bail2(rawAppId);
|
|
190
|
-
hubspotAppId = rawAppId.trim();
|
|
191
|
-
const rawClientId = await text2({
|
|
192
|
-
message: "HubSpot Client ID",
|
|
193
|
-
placeholder: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
|
194
|
-
validate: (v) => !v?.trim() ? "Required" : void 0
|
|
195
|
-
});
|
|
196
|
-
if (isCancel2(rawClientId)) bail2(rawClientId);
|
|
197
|
-
hubspotClientId = rawClientId.trim();
|
|
198
|
-
const rawClientSecret = await password2({
|
|
199
|
-
message: "HubSpot Client Secret",
|
|
200
|
-
validate: (v) => !v?.trim() ? "Required" : void 0
|
|
201
|
-
});
|
|
202
|
-
if (isCancel2(rawClientSecret)) bail2(rawClientSecret);
|
|
203
|
-
hubspotClientSecret = rawClientSecret.trim();
|
|
204
|
-
}
|
|
176
|
+
const hubspotAppId = void 0;
|
|
177
|
+
const hubspotClientId = void 0;
|
|
178
|
+
const hubspotClientSecret = void 0;
|
|
205
179
|
return {
|
|
206
180
|
appUrl: appUrl.trim().replace(/\/+$/, ""),
|
|
207
181
|
engineUrl: engineUrl.trim().replace(/\/+$/, ""),
|