@aglyn/plugins-crm 1.29.1 → 1.29.3
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/package.json +14 -14
- package/src/lib/plan-entitlements.js +0 -4
- package/src/lib/plan-entitlements.js.map +1 -1
- package/src/lib/transfer/aliases.js +8 -2
- package/src/lib/transfer/aliases.js.map +1 -1
- package/src/lib/transfer/contact-import-steps.d.ts +36 -0
- package/src/lib/transfer/contact-import-steps.js +81 -0
- package/src/lib/transfer/contact-import-steps.js.map +1 -0
- package/src/lib/transfer/contacts.js +119 -17
- package/src/lib/transfer/contacts.js.map +1 -1
- package/src/lib/transfer/customer-consent-plan.d.ts +90 -0
- package/src/lib/transfer/customer-consent-plan.js +258 -0
- package/src/lib/transfer/customer-consent-plan.js.map +1 -0
- package/src/lib/transfer/customer-sources.d.ts +68 -0
- package/src/lib/transfer/customer-sources.js +420 -0
- package/src/lib/transfer/customer-sources.js.map +1 -0
- package/src/lib/transfer/fields.js +7 -3
- package/src/lib/transfer/fields.js.map +1 -1
- package/src/lib/transfer/imported-consent.server.d.ts +74 -0
- package/src/lib/transfer/imported-consent.server.js +241 -0
- package/src/lib/transfer/imported-consent.server.js.map +1 -0
- package/src/lib/transfer/ui.d.ts +5 -1
- package/src/lib/transfer/ui.js +21 -2
- package/src/lib/transfer/ui.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-crm",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.29.
|
|
29
|
-
"@aglyn/shared-data-enums": "1.29.
|
|
30
|
-
"@aglyn/shared-data-mdi": "1.29.
|
|
31
|
-
"@aglyn/shared-ui-jsx": "1.29.
|
|
32
|
-
"@aglyn/shared-ui-next": "1.29.
|
|
33
|
-
"@aglyn/shared-ui-snackstack": "1.29.
|
|
34
|
-
"@aglyn/shared-util-email": "1.29.
|
|
35
|
-
"@aglyn/shared-util-http": "1.29.
|
|
36
|
-
"@aglyn/shared-util-timestamp": "1.29.
|
|
37
|
-
"@aglyn/shared-util-tools": "1.29.
|
|
38
|
-
"@aglyn/tenant-data-admin": "1.29.
|
|
39
|
-
"@aglyn/tenant-feature-instance": "1.29.
|
|
40
|
-
"@aglyn/tenant-runtime": "1.29.
|
|
28
|
+
"@aglyn/aglyn": "1.29.3",
|
|
29
|
+
"@aglyn/shared-data-enums": "1.29.3",
|
|
30
|
+
"@aglyn/shared-data-mdi": "1.29.3",
|
|
31
|
+
"@aglyn/shared-ui-jsx": "1.29.3",
|
|
32
|
+
"@aglyn/shared-ui-next": "1.29.3",
|
|
33
|
+
"@aglyn/shared-ui-snackstack": "1.29.3",
|
|
34
|
+
"@aglyn/shared-util-email": "1.29.3",
|
|
35
|
+
"@aglyn/shared-util-http": "1.29.3",
|
|
36
|
+
"@aglyn/shared-util-timestamp": "1.29.3",
|
|
37
|
+
"@aglyn/shared-util-tools": "1.29.3",
|
|
38
|
+
"@aglyn/tenant-data-admin": "1.29.3",
|
|
39
|
+
"@aglyn/tenant-feature-instance": "1.29.3",
|
|
40
|
+
"@aglyn/tenant-runtime": "1.29.3",
|
|
41
41
|
"@dnd-kit/core": "^6.3.1",
|
|
42
42
|
"@dnd-kit/utilities": "^3.2.2",
|
|
43
43
|
"@swc/helpers": "0.5.24",
|
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
// sends.
|
|
33
33
|
starter: 35,
|
|
34
34
|
pro: 150,
|
|
35
|
-
business: 200,
|
|
36
|
-
scale: 300,
|
|
37
|
-
advanced: 500,
|
|
38
|
-
agency: 1000,
|
|
39
35
|
// Finite like the campaign allowance beside it, and for the same reason
|
|
40
36
|
// one-to-one mail is capped on every other tier: a rep with a template and
|
|
41
37
|
// a list can put thousands of messages onto the platform's sending
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/plugins/crm/src/lib/plan-entitlements.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Types only: the manifest generator loads this module on its own to compile\n// the plan figures, so nothing here may reach a core module at runtime.\nimport type { OrgPlan } from '@aglyn/aglyn/foundation/definitions/org-billing.types'\nimport type { PluginPlanEntitlementsDeclaration } from '@aglyn/aglyn/plugin-manager/plugin-plan-entitlements'\n\n/**\n * THE CRM'S PLAN BAND (AGL-3080): the one-to-one email pace each plan\n * includes. Compiled into core's `PLAN_ENTITLEMENTS` by the manifest\n * generator (`register.planEntitlements`); this is where the figure is\n * written, beside the reasoning that sized it.\n */\ndeclare module '@aglyn/aglyn/plugin-manager/plugin-entitlement-keys' {\n interface PluginEntitlementQuotas {\n /**\n * One-to-one emails a workspace may send from CRM records per UTC day —\n * the message a rep writes to one person from their contact page, as\n * against a campaign (`emailSendsPerMonth`) or transactional mail.\n *\n * A HARD cap on every tier and a daily one, because it is the only send\n * class a person can produce by hand at volume: a campaign is one act\n * over a metered audience, and a receipt follows an order somebody paid\n * for, but a rep with a template and a list can put a thousand messages\n * onto the platform's sending reputation in an afternoon. The day\n * boundary is what makes the cap a pace rather than a wall — tomorrow the\n * count is zero again — and the number is sized so that every tier holds\n * its margin with the whole day spent, which is the arithmetic the Drive\n * pricing decision of 2026-09-05 records. `checkCrmEmailQuota` reads it;\n * the counter it is enforced against is\n * `orgs/{orgId}/crmEmailUsage/{day}`.\n *\n * Every send still counts on the org's `emailSends` cost meter, like any\n * other message the provider charged for. 0 on Free, which has no CRM,\n * and finite on every paid tier, Enterprise's 2,000 included.\n *\n * ## This ladder and `emailSendsPerMonth` are NOT the same ladder\n *\n * They answer to different principles, deliberately, and a tier's two\n * numbers are not expected to look like each other. `emailSendsPerMonth`\n * is sized against SHARED-DOMAIN REPUTATION: campaign mail is bulk on a\n * pool every tier without its own verified sending domain rides under\n * `p=reject`, so what one workspace sends is a cost every other workspace\n * pays. This one is sized against COGS SHARE: one-to-one mail is a\n * per-tier margin question, which is why it is a daily pace rather than a\n * monthly band.\n *\n * The two are far apart at the entry tier — a band of 0 beside a real\n * daily allowance — and that reads as an inconsistency until the\n * principles are named. It is not one. One-to-one mail is addressed to a\n * single person, usually inside a relationship the recipient started, and\n * it reaches the provider through a per-user pace limit, both suppression\n * lists, a `declined` consent basis as a hard stop, and an atomic daily\n * reservation. Complaint rates on it are structurally unlike bulk.\n * Reconciling the two ladders would price a reply to one customer as\n * though it carried a campaign's reputation risk.\n */\n crmEmailsPerDay?: number\n }\n}\n\n/** The one-to-one emails each plan may send a UTC day — see the key's docblock. */\nexport const CRM_EMAILS_PER_DAY_BY_PLAN: Readonly<Record<OrgPlan, number>> = {\n // No one-to-one email on Free, which has no CRM: the send lives on a\n // record's page, and Free opens no record. Zero here is what\n // `checkCrmEmailQuota` refuses against, so a per-org grant of\n // `features.crm` alone still sends nothing until the band is raised with\n // it.\n free: 0,\n // One-to-one email from a CRM record, per UTC day (AGL-2611). A hard daily\n // pace rather than a monthly meter, sized so the whole day spent at $0.0009\n // a message leaves the tier's CRM axis inside the 20% cost share the Drive\n // pricing decision of 2026-09-05 sets. 35 a day is $0.95 a month against a\n // $16 annual price — 50 was, until the whole Starter tier had to cover its\n // full-use cost plus 30% (AGL-3469). Every send still lands on the\n // `emailSends` cost meter beside the transactional mail this tier already\n // sends.\n starter: 35,\n pro: 150,\n
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/crm/src/lib/plan-entitlements.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Types only: the manifest generator loads this module on its own to compile\n// the plan figures, so nothing here may reach a core module at runtime.\nimport type { OrgPlan } from '@aglyn/aglyn/foundation/definitions/org-billing.types'\nimport type { PluginPlanEntitlementsDeclaration } from '@aglyn/aglyn/plugin-manager/plugin-plan-entitlements'\n\n/**\n * THE CRM'S PLAN BAND (AGL-3080): the one-to-one email pace each plan\n * includes. Compiled into core's `PLAN_ENTITLEMENTS` by the manifest\n * generator (`register.planEntitlements`); this is where the figure is\n * written, beside the reasoning that sized it.\n */\ndeclare module '@aglyn/aglyn/plugin-manager/plugin-entitlement-keys' {\n interface PluginEntitlementQuotas {\n /**\n * One-to-one emails a workspace may send from CRM records per UTC day —\n * the message a rep writes to one person from their contact page, as\n * against a campaign (`emailSendsPerMonth`) or transactional mail.\n *\n * A HARD cap on every tier and a daily one, because it is the only send\n * class a person can produce by hand at volume: a campaign is one act\n * over a metered audience, and a receipt follows an order somebody paid\n * for, but a rep with a template and a list can put a thousand messages\n * onto the platform's sending reputation in an afternoon. The day\n * boundary is what makes the cap a pace rather than a wall — tomorrow the\n * count is zero again — and the number is sized so that every tier holds\n * its margin with the whole day spent, which is the arithmetic the Drive\n * pricing decision of 2026-09-05 records. `checkCrmEmailQuota` reads it;\n * the counter it is enforced against is\n * `orgs/{orgId}/crmEmailUsage/{day}`.\n *\n * Every send still counts on the org's `emailSends` cost meter, like any\n * other message the provider charged for. 0 on Free, which has no CRM,\n * and finite on every paid tier, Enterprise's 2,000 included.\n *\n * ## This ladder and `emailSendsPerMonth` are NOT the same ladder\n *\n * They answer to different principles, deliberately, and a tier's two\n * numbers are not expected to look like each other. `emailSendsPerMonth`\n * is sized against SHARED-DOMAIN REPUTATION: campaign mail is bulk on a\n * pool every tier without its own verified sending domain rides under\n * `p=reject`, so what one workspace sends is a cost every other workspace\n * pays. This one is sized against COGS SHARE: one-to-one mail is a\n * per-tier margin question, which is why it is a daily pace rather than a\n * monthly band.\n *\n * The two are far apart at the entry tier — a band of 0 beside a real\n * daily allowance — and that reads as an inconsistency until the\n * principles are named. It is not one. One-to-one mail is addressed to a\n * single person, usually inside a relationship the recipient started, and\n * it reaches the provider through a per-user pace limit, both suppression\n * lists, a `declined` consent basis as a hard stop, and an atomic daily\n * reservation. Complaint rates on it are structurally unlike bulk.\n * Reconciling the two ladders would price a reply to one customer as\n * though it carried a campaign's reputation risk.\n */\n crmEmailsPerDay?: number\n }\n}\n\n/** The one-to-one emails each plan may send a UTC day — see the key's docblock. */\nexport const CRM_EMAILS_PER_DAY_BY_PLAN: Readonly<Record<OrgPlan, number>> = {\n // No one-to-one email on Free, which has no CRM: the send lives on a\n // record's page, and Free opens no record. Zero here is what\n // `checkCrmEmailQuota` refuses against, so a per-org grant of\n // `features.crm` alone still sends nothing until the band is raised with\n // it.\n free: 0,\n // One-to-one email from a CRM record, per UTC day (AGL-2611). A hard daily\n // pace rather than a monthly meter, sized so the whole day spent at $0.0009\n // a message leaves the tier's CRM axis inside the 20% cost share the Drive\n // pricing decision of 2026-09-05 sets. 35 a day is $0.95 a month against a\n // $16 annual price — 50 was, until the whole Starter tier had to cover its\n // full-use cost plus 30% (AGL-3469). Every send still lands on the\n // `emailSends` cost meter beside the transactional mail this tier already\n // sends.\n starter: 35,\n pro: 150,\n // Finite like the campaign allowance beside it, and for the same reason\n // one-to-one mail is capped on every other tier: a rep with a template and\n // a list can put thousands of messages onto the platform's sending\n // reputation in an afternoon. A negotiated agreement whose reps need more\n // than 2,000 a day says so, and the override is what carries it.\n enterprise: 2_000,\n}\n\n/** The CRM's plan figures, for the manifest generator. */\nexport function crmPlanEntitlements(): PluginPlanEntitlementsDeclaration {\n return {\n quotas: [\n {\n key: 'crmEmailsPerDay',\n label: 'One-to-one emails / day',\n byPlan: CRM_EMAILS_PER_DAY_BY_PLAN,\n },\n ],\n }\n}\n"],"names":["CRM_EMAILS_PER_DAY_BY_PLAN","free","starter","pro","enterprise","crmPlanEntitlements","quotas","key","label","byPlan"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,6EAA6E;AAC7E,wEAAwE;AA0DxE,iFAAiF,GACjF,OAAO,MAAMA,6BAAgE;IAC3E,qEAAqE;IACrE,6DAA6D;IAC7D,8DAA8D;IAC9D,yEAAyE;IACzE,MAAM;IACNC,MAAM;IACN,2EAA2E;IAC3E,4EAA4E;IAC5E,2EAA2E;IAC3E,2EAA2E;IAC3E,2EAA2E;IAC3E,mEAAmE;IACnE,0EAA0E;IAC1E,SAAS;IACTC,SAAS;IACTC,KAAK;IACL,wEAAwE;IACxE,2EAA2E;IAC3E,mEAAmE;IACnE,0EAA0E;IAC1E,iEAAiE;IACjEC,YAAY;AACd,EAAC;AAED,wDAAwD,GACxD,OAAO,SAASC;IACd,OAAO;QACLC,QAAQ;YACN;gBACEC,KAAK;gBACLC,OAAO;gBACPC,QAAQT;YACV;SACD;IACH;AACF"}
|
|
@@ -22,7 +22,10 @@ import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
|
22
22
|
* exact aliases and shows where a match came from ("Salesforce"), so a
|
|
23
23
|
* Salesforce report, a HubSpot export, an Apollo list or a Pipedrive file
|
|
24
24
|
* maps itself. They live here, beside the fields they name: the platform's
|
|
25
|
-
* core knows no product's vocabulary.
|
|
25
|
+
* core knows no product's vocabulary. A store's customer file — Shopify,
|
|
26
|
+
* Wix, Squarespace — is recognized the same way, by the dictionaries of
|
|
27
|
+
* `customer-sources.ts` (AGL-4245), which also reads what its marketing
|
|
28
|
+
* column means.
|
|
26
29
|
*
|
|
27
30
|
* A column whose meaning is the OPPOSITE of a field is left out on purpose:
|
|
28
31
|
* Salesforce's "Email Opt Out" and HubSpot's "Unsubscribed" are refusals,
|
|
@@ -32,6 +35,7 @@ import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
|
32
35
|
* The platform's own dictionary is the CRM's earlier CSV export, so a file taken out before
|
|
33
36
|
* the field picker existed still comes back in.
|
|
34
37
|
*=========================================*/ import { PLATFORM_BRAND_NAME } from "@aglyn/aglyn/app-utils/platform-brand";
|
|
38
|
+
import { CUSTOMER_ALIAS_DICTIONARIES } from "./customer-sources.js";
|
|
35
39
|
const SALESFORCE = 'Salesforce';
|
|
36
40
|
const HUBSPOT = 'HubSpot';
|
|
37
41
|
const APOLLO = 'Apollo';
|
|
@@ -453,7 +457,9 @@ const OWN = `${PLATFORM_BRAND_NAME} (earlier export)`;
|
|
|
453
457
|
'Other country'
|
|
454
458
|
]
|
|
455
459
|
}))
|
|
456
|
-
}
|
|
460
|
+
},
|
|
461
|
+
// A store's customer file (AGL-4245).
|
|
462
|
+
...CUSTOMER_ALIAS_DICTIONARIES
|
|
457
463
|
];
|
|
458
464
|
/*==========================================
|
|
459
465
|
* COMPANIES
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../libs/plugins/crm/src/lib/transfer/aliases.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*==========================================\n * OTHER PRODUCTS' EXPORT HEADERS (AGL-3527).\n *\n * The column names the CRMs people arrive from write into their exports,\n * per field id of `fields.ts`. The import's header matcher reads them as\n * exact aliases and shows where a match came from (\"Salesforce\"), so a\n * Salesforce report, a HubSpot export, an Apollo list or a Pipedrive file\n * maps itself. They live here, beside the fields they name: the platform's\n * core knows no product's vocabulary.\n *\n * A column whose meaning is the OPPOSITE of a field is left out on purpose:\n * Salesforce's \"Email Opt Out\" and HubSpot's \"Unsubscribed\" are refusals,\n * and mapping either to Marketing consent would read every refusal as a\n * grant.\n *\n * The platform's own dictionary is the CRM's earlier CSV export, so a file taken out before\n * the field picker existed still comes back in.\n *=========================================*/\n\nimport { PLATFORM_BRAND_NAME } from '@aglyn/aglyn/app-utils/platform-brand'\nimport type { TransferAliasDictionary } from '@aglyn/aglyn/data-transfer'\n\nconst SALESFORCE = 'Salesforce'\nconst HUBSPOT = 'HubSpot'\nconst APOLLO = 'Apollo'\nconst PIPEDRIVE = 'Pipedrive'\nconst OWN = `${PLATFORM_BRAND_NAME} (earlier export)`\n\n/** The six address columns each product writes, under one prefix. */\nfunction address(prefix: string, words: {\n street: readonly string[]\n street2?: readonly string[]\n city: readonly string[]\n state: readonly string[]\n postalCode: readonly string[]\n country: readonly string[]\n}): Record<string, readonly string[]> {\n return {\n [`${prefix}Street`]: words.street,\n ...(words.street2 ? { [`${prefix}Street2`]: words.street2 } : {}),\n [`${prefix}City`]: words.city,\n [`${prefix}State`]: words.state,\n [`${prefix}PostalCode`]: words.postalCode,\n [`${prefix}Country`]: words.country,\n }\n}\n\n/*==========================================\n * CONTACTS\n *=========================================*/\n\nexport const CONTACT_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n salutation: ['Salutation'],\n firstName: ['First Name'],\n lastName: ['Last Name'],\n name: ['Full Name', 'Contact Name'],\n email: ['Email'],\n phone: ['Phone', 'Business Phone'],\n mobilePhone: ['Mobile Phone', 'Mobile'],\n homePhone: ['Home Phone'],\n otherPhone: ['Other Phone'],\n fax: ['Fax', 'Business Fax'],\n assistantName: ['Assistant', \"Assistant's Name\"],\n assistantPhone: ['Asst. Phone', 'Assistant Phone'],\n jobTitle: ['Title'],\n department: ['Department'],\n birthdate: ['Birthdate'],\n company: ['Account Name', 'Account'],\n reportsTo: ['Reports To', 'Reports To: Email'],\n owner: ['Contact Owner', 'Owner Name', 'Contact Owner Email'],\n leadSource: ['Lead Source'],\n doNotCall: ['Do Not Call'],\n notes: ['Description', 'Contact Description'],\n ...address('mailing', {\n street: ['Mailing Street', 'Mailing Address Line 1'],\n street2: ['Mailing Address Line 2'],\n city: ['Mailing City'],\n state: ['Mailing State/Province', 'Mailing State'],\n postalCode: ['Mailing Zip/Postal Code', 'Mailing Zip', 'Mailing Postal Code'],\n country: ['Mailing Country', 'Mailing Country Code'],\n }),\n ...address('other', {\n street: ['Other Street', 'Other Address Line 1'],\n street2: ['Other Address Line 2'],\n city: ['Other City'],\n state: ['Other State/Province', 'Other State'],\n postalCode: ['Other Zip/Postal Code', 'Other Zip', 'Other Postal Code'],\n country: ['Other Country', 'Other Country Code'],\n }),\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n salutation: ['Salutation'],\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n phone: ['Phone Number'],\n mobilePhone: ['Mobile Phone Number'],\n fax: ['Fax Number'],\n jobTitle: ['Job Title'],\n department: ['Department'],\n birthdate: ['Date of birth'],\n company: ['Associated Company', 'Company Name', 'Company'],\n owner: ['Contact owner', 'HubSpot Owner'],\n lifecycleStage: ['Lifecycle Stage'],\n leadSource: ['Original Source', 'Original source'],\n notes: ['Message'],\n ...address('mailing', {\n street: ['Street Address'],\n street2: ['Street Address 2'],\n city: ['City'],\n state: ['State/Region', 'State'],\n postalCode: ['Postal Code', 'Zip'],\n country: ['Country/Region', 'Country'],\n }),\n },\n },\n {\n source: APOLLO,\n aliases: {\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n phone: ['Work Direct Phone', 'First Phone', 'Corporate Phone'],\n mobilePhone: ['Mobile Phone'],\n homePhone: ['Home Phone'],\n otherPhone: ['Other Phone'],\n jobTitle: ['Title'],\n department: ['Departments'],\n company: ['Company', 'Company Name for Emails'],\n owner: ['Contact Owner'],\n tags: ['Lists'],\n ...address('mailing', {\n street: ['Street'],\n city: ['City'],\n state: ['State'],\n postalCode: ['Postal Code'],\n country: ['Country'],\n }),\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n name: ['Person - Name', 'Name'],\n firstName: ['Person - First name', 'First name'],\n lastName: ['Person - Last name', 'Last name'],\n email: ['Person - Email - Work', 'Person - Email', 'Email - Work', 'Person - Email - Other', 'Person - Email - Home'],\n phone: ['Person - Phone - Work', 'Person - Phone', 'Phone - Work'],\n mobilePhone: ['Person - Phone - Mobile', 'Phone - Mobile'],\n homePhone: ['Person - Phone - Home', 'Phone - Home'],\n otherPhone: ['Person - Phone - Other', 'Phone - Other'],\n jobTitle: ['Person - Job title', 'Job title'],\n company: ['Person - Organization', 'Organization'],\n owner: ['Person - Owner', 'Owner'],\n tags: ['Person - Labels', 'Person - Label', 'Labels', 'Label'],\n birthdate: ['Person - Birthday'],\n notes: ['Person - Notes'],\n ...address('mailing', {\n street: ['Person - Postal address - Street/road name', 'Person - Postal address'],\n city: ['Person - Postal address - City/town/village/locality'],\n state: ['Person - Postal address - State/county'],\n postalCode: ['Person - Postal address - ZIP/Postal code'],\n country: ['Person - Postal address - Country'],\n }),\n },\n },\n {\n source: OWN,\n aliases: {\n name: ['Name'],\n company: ['Company'],\n owner: ['Owner'],\n assistantName: ['Assistant'],\n ...address('mailing', {\n street: ['Mailing address line 1', 'Address line 1'],\n street2: ['Mailing address line 2', 'Address line 2'],\n city: ['Mailing city'],\n state: ['Mailing state'],\n postalCode: ['Mailing postal code'],\n country: ['Mailing country'],\n }),\n ...address('other', {\n street: ['Other address line 1'],\n street2: ['Other address line 2'],\n city: ['Other city'],\n state: ['Other state'],\n postalCode: ['Other postal code'],\n country: ['Other country'],\n }),\n },\n },\n]\n\n/*==========================================\n * COMPANIES\n *=========================================*/\n\nexport const COMPANY_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n name: ['Account Name'],\n parentCompany: ['Parent Account', 'Parent Account Name'],\n accountNumber: ['Account Number'],\n site: ['Account Site'],\n type: ['Type', 'Account Type'],\n industry: ['Industry'],\n annualRevenue: ['Annual Revenue'],\n rating: ['Rating', 'Account Rating'],\n phone: ['Phone', 'Account Phone'],\n fax: ['Fax', 'Account Fax'],\n website: ['Website'],\n tickerSymbol: ['Ticker Symbol'],\n ownership: ['Ownership'],\n numberOfEmployees: ['Employees'],\n sicCode: ['SIC Code'],\n owner: ['Account Owner', 'Account Owner Email'],\n accountSource: ['Account Source'],\n notes: ['Description', 'Account Description'],\n ...address('billing', {\n street: ['Billing Street', 'Billing Address Line 1'],\n street2: ['Billing Address Line 2'],\n city: ['Billing City'],\n state: ['Billing State/Province', 'Billing State'],\n postalCode: ['Billing Zip/Postal Code', 'Billing Zip', 'Billing Postal Code'],\n country: ['Billing Country', 'Billing Country Code'],\n }),\n ...address('shipping', {\n street: ['Shipping Street', 'Shipping Address Line 1'],\n street2: ['Shipping Address Line 2'],\n city: ['Shipping City'],\n state: ['Shipping State/Province', 'Shipping State'],\n postalCode: ['Shipping Zip/Postal Code', 'Shipping Zip', 'Shipping Postal Code'],\n country: ['Shipping Country', 'Shipping Country Code'],\n }),\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n name: ['Company name', 'Name'],\n domain: ['Company Domain Name', 'Company domain name'],\n website: ['Website URL'],\n phone: ['Phone Number'],\n industry: ['Industry'],\n type: ['Type'],\n numberOfEmployees: ['Number of Employees'],\n annualRevenue: ['Annual Revenue'],\n parentCompany: ['Parent Company'],\n owner: ['Company owner'],\n notes: ['Description'],\n ...address('billing', {\n street: ['Street Address'],\n street2: ['Street Address 2'],\n city: ['City'],\n state: ['State/Region'],\n postalCode: ['Postal Code'],\n country: ['Country/Region'],\n }),\n },\n },\n {\n source: APOLLO,\n aliases: {\n name: ['Company', 'Company Name'],\n website: ['Website'],\n numberOfEmployees: ['# Employees'],\n industry: ['Industry'],\n phone: ['Company Phone'],\n annualRevenue: ['Annual Revenue'],\n sicCode: ['SIC Codes'],\n owner: ['Account Owner'],\n notes: ['Short Description'],\n ...address('billing', {\n street: ['Company Street', 'Company Address'],\n city: ['Company City'],\n state: ['Company State'],\n postalCode: ['Company Postal Code'],\n country: ['Company Country'],\n }),\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n name: ['Organization - Name', 'Name'],\n website: ['Organization - Website'],\n numberOfEmployees: ['Organization - Number of employees'],\n annualRevenue: ['Organization - Annual revenue'],\n industry: ['Organization - Industry'],\n owner: ['Organization - Owner', 'Owner'],\n tags: ['Organization - Labels', 'Organization - Label', 'Labels', 'Label'],\n ...address('billing', {\n street: ['Organization - Address - Street/road name', 'Organization - Address'],\n city: ['Organization - Address - City/town/village/locality'],\n state: ['Organization - Address - State/county'],\n postalCode: ['Organization - Address - ZIP/Postal code'],\n country: ['Organization - Address - Country'],\n }),\n },\n },\n {\n source: OWN,\n aliases: {\n name: ['Company'],\n owner: ['Owner'],\n ...address('billing', {\n street: ['Billing address line 1'],\n street2: ['Billing address line 2'],\n city: ['Billing city'],\n state: ['Billing state'],\n postalCode: ['Billing postal code'],\n country: ['Billing country'],\n }),\n ...address('shipping', {\n street: ['Shipping address line 1'],\n street2: ['Shipping address line 2'],\n city: ['Shipping city'],\n state: ['Shipping state'],\n postalCode: ['Shipping postal code'],\n country: ['Shipping country'],\n }),\n },\n },\n]\n\n/*==========================================\n * LEADS (AGL-3528)\n *=========================================*/\n\nexport const LEAD_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n salutation: ['Salutation'],\n firstName: ['First Name'],\n lastName: ['Last Name'],\n name: ['Full Name', 'Lead Name'],\n email: ['Email'],\n company: ['Company', 'Company / Account'],\n jobTitle: ['Title'],\n phone: ['Phone'],\n mobilePhone: ['Mobile Phone', 'Mobile'],\n fax: ['Fax'],\n website: ['Website'],\n industry: ['Industry'],\n rating: ['Rating'],\n numberOfEmployees: ['No. of Employees', 'Employees'],\n annualRevenue: ['Annual Revenue'],\n status: ['Lead Status'],\n owner: ['Lead Owner', 'Owner Name'],\n leadSource: ['Lead Source'],\n doNotCall: ['Do Not Call'],\n notes: ['Description'],\n ...address('address', {\n street: ['Street', 'Address Line 1'],\n city: ['City'],\n state: ['State/Province', 'State'],\n postalCode: ['Zip/Postal Code', 'Zip', 'Postal Code'],\n country: ['Country', 'Country Code'],\n }),\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n company: ['Company Name'],\n jobTitle: ['Job Title'],\n phone: ['Phone Number'],\n mobilePhone: ['Mobile Phone Number'],\n website: ['Website URL'],\n industry: ['Industry'],\n annualRevenue: ['Annual Revenue'],\n numberOfEmployees: ['Number of Employees'],\n status: ['Lead Status'],\n owner: ['Contact owner'],\n leadSource: ['Original Source'],\n ...address('address', {\n street: ['Street Address'],\n city: ['City'],\n state: ['State/Region'],\n postalCode: ['Postal Code'],\n country: ['Country/Region'],\n }),\n },\n },\n {\n source: APOLLO,\n aliases: {\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n company: ['Company', 'Company Name for Emails'],\n jobTitle: ['Title'],\n phone: ['Work Direct Phone', 'First Phone', 'Corporate Phone'],\n mobilePhone: ['Mobile Phone'],\n website: ['Website'],\n industry: ['Industry'],\n numberOfEmployees: ['# Employees'],\n annualRevenue: ['Annual Revenue'],\n owner: ['Contact Owner'],\n tags: ['Lists'],\n ...address('address', {\n street: ['Street'],\n city: ['City'],\n state: ['State'],\n postalCode: ['Postal Code'],\n country: ['Country'],\n }),\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n name: ['Lead - Title', 'Person - Name'],\n email: ['Person - Email - Work', 'Person - Email'],\n phone: ['Person - Phone - Work', 'Person - Phone'],\n company: ['Organization - Name', 'Lead - Organization'],\n owner: ['Lead - Owner', 'Owner'],\n tags: ['Lead - Labels', 'Labels'],\n leadSource: ['Lead - Source', 'Source'],\n },\n },\n {\n source: OWN,\n aliases: {\n owner: ['Owner'],\n ...address('address', {\n street: ['Address line 1'],\n street2: ['Address line 2'],\n city: ['City'],\n state: ['State'],\n postalCode: ['Postal code'],\n country: ['Country'],\n }),\n },\n },\n]\n\n/*==========================================\n * DEALS (AGL-3528)\n *=========================================*/\n\nexport const DEAL_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n title: ['Opportunity Name'],\n externalId: ['Opportunity ID', 'Opportunity Id'],\n stage: ['Stage'],\n amount: ['Amount'],\n expectedClose: ['Close Date'],\n type: ['Type'],\n leadSource: ['Lead Source'],\n nextStep: ['Next Step'],\n probability: ['Probability (%)', 'Probability'],\n forecastCategory: ['Forecast Category'],\n company: ['Account Name'],\n contact: ['Contact Email', 'Primary Contact Email'],\n owner: ['Opportunity Owner', 'Owner Name'],\n campaign: ['Primary Campaign Source'],\n notes: ['Description'],\n lostReason: ['Loss Reason', 'Closed Lost Reason'],\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n title: ['Deal Name'],\n externalId: ['Record ID'],\n pipeline: ['Pipeline'],\n stage: ['Deal Stage'],\n amount: ['Amount'],\n expectedClose: ['Close Date'],\n type: ['Deal Type'],\n owner: ['Deal owner'],\n company: ['Associated Company'],\n contact: ['Associated Contact'],\n lostReason: ['Closed Lost Reason'],\n notes: ['Deal Description'],\n forecastCategory: ['Forecast category'],\n probability: ['Deal probability'],\n nextStep: ['Next step'],\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n title: ['Deal - Title', 'Title'],\n externalId: ['Deal - ID'],\n pipeline: ['Deal - Pipeline'],\n stage: ['Deal - Stage'],\n amount: ['Deal - Value', 'Value'],\n expectedClose: ['Deal - Expected close date', 'Expected close date'],\n owner: ['Deal - Owner'],\n company: ['Deal - Organization', 'Organization'],\n contact: ['Person - Email', 'Deal - Contact person email'],\n probability: ['Deal - Probability'],\n lostReason: ['Deal - Lost reason'],\n },\n },\n]\n\n/*==========================================\n * TASKS (AGL-3528)\n *=========================================*/\n\nexport const TASK_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n title: ['Subject'],\n externalId: ['Activity ID', 'Task ID'],\n type: ['Task Subtype', 'Type'],\n priority: ['Priority'],\n status: ['Status'],\n dueAt: ['Due Date', 'Activity Date'],\n assignee: ['Assigned To', 'Assigned'],\n notes: ['Comments'],\n contact: ['Contact Email'],\n company: ['Company / Account', 'Account Name'],\n deal: ['Opportunity Name', 'Related To'],\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n title: ['Task Title'],\n externalId: ['Record ID'],\n type: ['Task Type'],\n priority: ['Priority'],\n status: ['Task Status'],\n dueAt: ['Due Date'],\n assignee: ['Assigned to', 'Activity assigned to'],\n notes: ['Notes'],\n contact: ['Associated Contact'],\n company: ['Associated Company'],\n deal: ['Associated Deal'],\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n title: ['Activity - Subject', 'Subject'],\n externalId: ['Activity - ID'],\n type: ['Activity - Type'],\n dueAt: ['Activity - Due date', 'Due date'],\n assignee: ['Activity - Assigned to user', 'Assigned to user'],\n notes: ['Activity - Note', 'Note'],\n contact: ['Person - Email'],\n company: ['Organization - Name'],\n deal: ['Deal - Title'],\n },\n },\n]\n"],"names":["PLATFORM_BRAND_NAME","SALESFORCE","HUBSPOT","APOLLO","PIPEDRIVE","OWN","address","prefix","words","street","street2","city","state","postalCode","country","CONTACT_ALIASES","source","aliases","salutation","firstName","lastName","name","email","phone","mobilePhone","homePhone","otherPhone","fax","assistantName","assistantPhone","jobTitle","department","birthdate","company","reportsTo","owner","leadSource","doNotCall","notes","lifecycleStage","tags","COMPANY_ALIASES","parentCompany","accountNumber","site","type","industry","annualRevenue","rating","website","tickerSymbol","ownership","numberOfEmployees","sicCode","accountSource","domain","LEAD_ALIASES","status","DEAL_ALIASES","title","externalId","stage","amount","expectedClose","nextStep","probability","forecastCategory","contact","campaign","lostReason","pipeline","TASK_ALIASES","priority","dueAt","assignee","deal"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;;;;;;;;;;2CAiB2C,GAE3C,SAASA,mBAAmB,QAAQ,wCAAuC;AAG3E,MAAMC,aAAa;AACnB,MAAMC,UAAU;AAChB,MAAMC,SAAS;AACf,MAAMC,YAAY;AAClB,MAAMC,MAAM,GAAGL,oBAAoB,iBAAiB,CAAC;AAErD,mEAAmE,GACnE,SAASM,QAAQC,MAAc,EAAEC,KAOhC;IACC,OAAO;QACL,CAAC,GAAGD,OAAO,MAAM,CAAC,CAAC,EAAEC,MAAMC,MAAM;OAC7BD,MAAME,OAAO,GAAG;QAAE,CAAC,GAAGH,OAAO,OAAO,CAAC,CAAC,EAAEC,MAAME,OAAO;IAAC,IAAI,CAAC;QAC/D,CAAC,GAAGH,OAAO,IAAI,CAAC,CAAC,EAAEC,MAAMG,IAAI;QAC7B,CAAC,GAAGJ,OAAO,KAAK,CAAC,CAAC,EAAEC,MAAMI,KAAK;QAC/B,CAAC,GAAGL,OAAO,UAAU,CAAC,CAAC,EAAEC,MAAMK,UAAU;QACzC,CAAC,GAAGN,OAAO,OAAO,CAAC,CAAC,EAAEC,MAAMM,OAAO;;AAEvC;AAEA;;2CAE2C,GAE3C,OAAO,MAAMC,kBAAsD;IACjE;QACEC,QAAQf;QACRgB,SAAS;YACPC,YAAY;gBAAC;aAAa;YAC1BC,WAAW;gBAAC;aAAa;YACzBC,UAAU;gBAAC;aAAY;YACvBC,MAAM;gBAAC;gBAAa;aAAe;YACnCC,OAAO;gBAAC;aAAQ;YAChBC,OAAO;gBAAC;gBAAS;aAAiB;YAClCC,aAAa;gBAAC;gBAAgB;aAAS;YACvCC,WAAW;gBAAC;aAAa;YACzBC,YAAY;gBAAC;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AC;aAAY;YACnB2B,UAAU;gBAAC;aAAW;YACtBf,QAAQ;gBAAC;aAAc;YACvBgB,OAAO;gBAAC;aAAW;YACnBC,UAAU;gBAAC;gBAAe;aAAuB;YACjDpC,OAAO;gBAAC;aAAQ;YAChB6B,SAAS;gBAAC;aAAqB;YAC/BlC,SAAS;gBAAC;aAAqB;YAC/B0C,MAAM;gBAAC;aAAkB;QAC3B;IACF;IACA;QACE3D,QAAQZ;QACRa,SAAS;YACP0C,OAAO;gBAAC;gBAAsB;aAAU;YACxCC,YAAY;gBAAC;aAAgB;YAC7Bf,MAAM;gBAAC;aAAkB;YACzB4B,OAAO;gBAAC;gBAAuB;aAAW;YAC1CC,UAAU;gBAAC;gBAA+B;aAAmB;YAC7DpC,OAAO;gBAAC;gBAAmB;aAAO;YAClC6B,SAAS;gBAAC;aAAiB;YAC3BlC,SAAS;gBAAC;aAAsB;YAChC0C,MAAM;gBAAC;aAAe;QACxB;IACF;CACD,CAAA"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../libs/plugins/crm/src/lib/transfer/aliases.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*==========================================\n * OTHER PRODUCTS' EXPORT HEADERS (AGL-3527).\n *\n * The column names the CRMs people arrive from write into their exports,\n * per field id of `fields.ts`. The import's header matcher reads them as\n * exact aliases and shows where a match came from (\"Salesforce\"), so a\n * Salesforce report, a HubSpot export, an Apollo list or a Pipedrive file\n * maps itself. They live here, beside the fields they name: the platform's\n * core knows no product's vocabulary. A store's customer file — Shopify,\n * Wix, Squarespace — is recognized the same way, by the dictionaries of\n * `customer-sources.ts` (AGL-4245), which also reads what its marketing\n * column means.\n *\n * A column whose meaning is the OPPOSITE of a field is left out on purpose:\n * Salesforce's \"Email Opt Out\" and HubSpot's \"Unsubscribed\" are refusals,\n * and mapping either to Marketing consent would read every refusal as a\n * grant.\n *\n * The platform's own dictionary is the CRM's earlier CSV export, so a file taken out before\n * the field picker existed still comes back in.\n *=========================================*/\n\nimport { PLATFORM_BRAND_NAME } from '@aglyn/aglyn/app-utils/platform-brand'\nimport type { TransferAliasDictionary } from '@aglyn/aglyn/data-transfer'\nimport { CUSTOMER_ALIAS_DICTIONARIES } from './customer-sources'\n\nconst SALESFORCE = 'Salesforce'\nconst HUBSPOT = 'HubSpot'\nconst APOLLO = 'Apollo'\nconst PIPEDRIVE = 'Pipedrive'\nconst OWN = `${PLATFORM_BRAND_NAME} (earlier export)`\n\n/** The six address columns each product writes, under one prefix. */\nfunction address(prefix: string, words: {\n street: readonly string[]\n street2?: readonly string[]\n city: readonly string[]\n state: readonly string[]\n postalCode: readonly string[]\n country: readonly string[]\n}): Record<string, readonly string[]> {\n return {\n [`${prefix}Street`]: words.street,\n ...(words.street2 ? { [`${prefix}Street2`]: words.street2 } : {}),\n [`${prefix}City`]: words.city,\n [`${prefix}State`]: words.state,\n [`${prefix}PostalCode`]: words.postalCode,\n [`${prefix}Country`]: words.country,\n }\n}\n\n/*==========================================\n * CONTACTS\n *=========================================*/\n\nexport const CONTACT_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n salutation: ['Salutation'],\n firstName: ['First Name'],\n lastName: ['Last Name'],\n name: ['Full Name', 'Contact Name'],\n email: ['Email'],\n phone: ['Phone', 'Business Phone'],\n mobilePhone: ['Mobile Phone', 'Mobile'],\n homePhone: ['Home Phone'],\n otherPhone: ['Other Phone'],\n fax: ['Fax', 'Business Fax'],\n assistantName: ['Assistant', \"Assistant's Name\"],\n assistantPhone: ['Asst. Phone', 'Assistant Phone'],\n jobTitle: ['Title'],\n department: ['Department'],\n birthdate: ['Birthdate'],\n company: ['Account Name', 'Account'],\n reportsTo: ['Reports To', 'Reports To: Email'],\n owner: ['Contact Owner', 'Owner Name', 'Contact Owner Email'],\n leadSource: ['Lead Source'],\n doNotCall: ['Do Not Call'],\n notes: ['Description', 'Contact Description'],\n ...address('mailing', {\n street: ['Mailing Street', 'Mailing Address Line 1'],\n street2: ['Mailing Address Line 2'],\n city: ['Mailing City'],\n state: ['Mailing State/Province', 'Mailing State'],\n postalCode: ['Mailing Zip/Postal Code', 'Mailing Zip', 'Mailing Postal Code'],\n country: ['Mailing Country', 'Mailing Country Code'],\n }),\n ...address('other', {\n street: ['Other Street', 'Other Address Line 1'],\n street2: ['Other Address Line 2'],\n city: ['Other City'],\n state: ['Other State/Province', 'Other State'],\n postalCode: ['Other Zip/Postal Code', 'Other Zip', 'Other Postal Code'],\n country: ['Other Country', 'Other Country Code'],\n }),\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n salutation: ['Salutation'],\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n phone: ['Phone Number'],\n mobilePhone: ['Mobile Phone Number'],\n fax: ['Fax Number'],\n jobTitle: ['Job Title'],\n department: ['Department'],\n birthdate: ['Date of birth'],\n company: ['Associated Company', 'Company Name', 'Company'],\n owner: ['Contact owner', 'HubSpot Owner'],\n lifecycleStage: ['Lifecycle Stage'],\n leadSource: ['Original Source', 'Original source'],\n notes: ['Message'],\n ...address('mailing', {\n street: ['Street Address'],\n street2: ['Street Address 2'],\n city: ['City'],\n state: ['State/Region', 'State'],\n postalCode: ['Postal Code', 'Zip'],\n country: ['Country/Region', 'Country'],\n }),\n },\n },\n {\n source: APOLLO,\n aliases: {\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n phone: ['Work Direct Phone', 'First Phone', 'Corporate Phone'],\n mobilePhone: ['Mobile Phone'],\n homePhone: ['Home Phone'],\n otherPhone: ['Other Phone'],\n jobTitle: ['Title'],\n department: ['Departments'],\n company: ['Company', 'Company Name for Emails'],\n owner: ['Contact Owner'],\n tags: ['Lists'],\n ...address('mailing', {\n street: ['Street'],\n city: ['City'],\n state: ['State'],\n postalCode: ['Postal Code'],\n country: ['Country'],\n }),\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n name: ['Person - Name', 'Name'],\n firstName: ['Person - First name', 'First name'],\n lastName: ['Person - Last name', 'Last name'],\n email: ['Person - Email - Work', 'Person - Email', 'Email - Work', 'Person - Email - Other', 'Person - Email - Home'],\n phone: ['Person - Phone - Work', 'Person - Phone', 'Phone - Work'],\n mobilePhone: ['Person - Phone - Mobile', 'Phone - Mobile'],\n homePhone: ['Person - Phone - Home', 'Phone - Home'],\n otherPhone: ['Person - Phone - Other', 'Phone - Other'],\n jobTitle: ['Person - Job title', 'Job title'],\n company: ['Person - Organization', 'Organization'],\n owner: ['Person - Owner', 'Owner'],\n tags: ['Person - Labels', 'Person - Label', 'Labels', 'Label'],\n birthdate: ['Person - Birthday'],\n notes: ['Person - Notes'],\n ...address('mailing', {\n street: ['Person - Postal address - Street/road name', 'Person - Postal address'],\n city: ['Person - Postal address - City/town/village/locality'],\n state: ['Person - Postal address - State/county'],\n postalCode: ['Person - Postal address - ZIP/Postal code'],\n country: ['Person - Postal address - Country'],\n }),\n },\n },\n {\n source: OWN,\n aliases: {\n name: ['Name'],\n company: ['Company'],\n owner: ['Owner'],\n assistantName: ['Assistant'],\n ...address('mailing', {\n street: ['Mailing address line 1', 'Address line 1'],\n street2: ['Mailing address line 2', 'Address line 2'],\n city: ['Mailing city'],\n state: ['Mailing state'],\n postalCode: ['Mailing postal code'],\n country: ['Mailing country'],\n }),\n ...address('other', {\n street: ['Other address line 1'],\n street2: ['Other address line 2'],\n city: ['Other city'],\n state: ['Other state'],\n postalCode: ['Other postal code'],\n country: ['Other country'],\n }),\n },\n },\n // A store's customer file (AGL-4245).\n ...CUSTOMER_ALIAS_DICTIONARIES,\n]\n\n/*==========================================\n * COMPANIES\n *=========================================*/\n\nexport const COMPANY_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n name: ['Account Name'],\n parentCompany: ['Parent Account', 'Parent Account Name'],\n accountNumber: ['Account Number'],\n site: ['Account Site'],\n type: ['Type', 'Account Type'],\n industry: ['Industry'],\n annualRevenue: ['Annual Revenue'],\n rating: ['Rating', 'Account Rating'],\n phone: ['Phone', 'Account Phone'],\n fax: ['Fax', 'Account Fax'],\n website: ['Website'],\n tickerSymbol: ['Ticker Symbol'],\n ownership: ['Ownership'],\n numberOfEmployees: ['Employees'],\n sicCode: ['SIC Code'],\n owner: ['Account Owner', 'Account Owner Email'],\n accountSource: ['Account Source'],\n notes: ['Description', 'Account Description'],\n ...address('billing', {\n street: ['Billing Street', 'Billing Address Line 1'],\n street2: ['Billing Address Line 2'],\n city: ['Billing City'],\n state: ['Billing State/Province', 'Billing State'],\n postalCode: ['Billing Zip/Postal Code', 'Billing Zip', 'Billing Postal Code'],\n country: ['Billing Country', 'Billing Country Code'],\n }),\n ...address('shipping', {\n street: ['Shipping Street', 'Shipping Address Line 1'],\n street2: ['Shipping Address Line 2'],\n city: ['Shipping City'],\n state: ['Shipping State/Province', 'Shipping State'],\n postalCode: ['Shipping Zip/Postal Code', 'Shipping Zip', 'Shipping Postal Code'],\n country: ['Shipping Country', 'Shipping Country Code'],\n }),\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n name: ['Company name', 'Name'],\n domain: ['Company Domain Name', 'Company domain name'],\n website: ['Website URL'],\n phone: ['Phone Number'],\n industry: ['Industry'],\n type: ['Type'],\n numberOfEmployees: ['Number of Employees'],\n annualRevenue: ['Annual Revenue'],\n parentCompany: ['Parent Company'],\n owner: ['Company owner'],\n notes: ['Description'],\n ...address('billing', {\n street: ['Street Address'],\n street2: ['Street Address 2'],\n city: ['City'],\n state: ['State/Region'],\n postalCode: ['Postal Code'],\n country: ['Country/Region'],\n }),\n },\n },\n {\n source: APOLLO,\n aliases: {\n name: ['Company', 'Company Name'],\n website: ['Website'],\n numberOfEmployees: ['# Employees'],\n industry: ['Industry'],\n phone: ['Company Phone'],\n annualRevenue: ['Annual Revenue'],\n sicCode: ['SIC Codes'],\n owner: ['Account Owner'],\n notes: ['Short Description'],\n ...address('billing', {\n street: ['Company Street', 'Company Address'],\n city: ['Company City'],\n state: ['Company State'],\n postalCode: ['Company Postal Code'],\n country: ['Company Country'],\n }),\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n name: ['Organization - Name', 'Name'],\n website: ['Organization - Website'],\n numberOfEmployees: ['Organization - Number of employees'],\n annualRevenue: ['Organization - Annual revenue'],\n industry: ['Organization - Industry'],\n owner: ['Organization - Owner', 'Owner'],\n tags: ['Organization - Labels', 'Organization - Label', 'Labels', 'Label'],\n ...address('billing', {\n street: ['Organization - Address - Street/road name', 'Organization - Address'],\n city: ['Organization - Address - City/town/village/locality'],\n state: ['Organization - Address - State/county'],\n postalCode: ['Organization - Address - ZIP/Postal code'],\n country: ['Organization - Address - Country'],\n }),\n },\n },\n {\n source: OWN,\n aliases: {\n name: ['Company'],\n owner: ['Owner'],\n ...address('billing', {\n street: ['Billing address line 1'],\n street2: ['Billing address line 2'],\n city: ['Billing city'],\n state: ['Billing state'],\n postalCode: ['Billing postal code'],\n country: ['Billing country'],\n }),\n ...address('shipping', {\n street: ['Shipping address line 1'],\n street2: ['Shipping address line 2'],\n city: ['Shipping city'],\n state: ['Shipping state'],\n postalCode: ['Shipping postal code'],\n country: ['Shipping country'],\n }),\n },\n },\n]\n\n/*==========================================\n * LEADS (AGL-3528)\n *=========================================*/\n\nexport const LEAD_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n salutation: ['Salutation'],\n firstName: ['First Name'],\n lastName: ['Last Name'],\n name: ['Full Name', 'Lead Name'],\n email: ['Email'],\n company: ['Company', 'Company / Account'],\n jobTitle: ['Title'],\n phone: ['Phone'],\n mobilePhone: ['Mobile Phone', 'Mobile'],\n fax: ['Fax'],\n website: ['Website'],\n industry: ['Industry'],\n rating: ['Rating'],\n numberOfEmployees: ['No. of Employees', 'Employees'],\n annualRevenue: ['Annual Revenue'],\n status: ['Lead Status'],\n owner: ['Lead Owner', 'Owner Name'],\n leadSource: ['Lead Source'],\n doNotCall: ['Do Not Call'],\n notes: ['Description'],\n ...address('address', {\n street: ['Street', 'Address Line 1'],\n city: ['City'],\n state: ['State/Province', 'State'],\n postalCode: ['Zip/Postal Code', 'Zip', 'Postal Code'],\n country: ['Country', 'Country Code'],\n }),\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n company: ['Company Name'],\n jobTitle: ['Job Title'],\n phone: ['Phone Number'],\n mobilePhone: ['Mobile Phone Number'],\n website: ['Website URL'],\n industry: ['Industry'],\n annualRevenue: ['Annual Revenue'],\n numberOfEmployees: ['Number of Employees'],\n status: ['Lead Status'],\n owner: ['Contact owner'],\n leadSource: ['Original Source'],\n ...address('address', {\n street: ['Street Address'],\n city: ['City'],\n state: ['State/Region'],\n postalCode: ['Postal Code'],\n country: ['Country/Region'],\n }),\n },\n },\n {\n source: APOLLO,\n aliases: {\n firstName: ['First Name'],\n lastName: ['Last Name'],\n email: ['Email'],\n company: ['Company', 'Company Name for Emails'],\n jobTitle: ['Title'],\n phone: ['Work Direct Phone', 'First Phone', 'Corporate Phone'],\n mobilePhone: ['Mobile Phone'],\n website: ['Website'],\n industry: ['Industry'],\n numberOfEmployees: ['# Employees'],\n annualRevenue: ['Annual Revenue'],\n owner: ['Contact Owner'],\n tags: ['Lists'],\n ...address('address', {\n street: ['Street'],\n city: ['City'],\n state: ['State'],\n postalCode: ['Postal Code'],\n country: ['Country'],\n }),\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n name: ['Lead - Title', 'Person - Name'],\n email: ['Person - Email - Work', 'Person - Email'],\n phone: ['Person - Phone - Work', 'Person - Phone'],\n company: ['Organization - Name', 'Lead - Organization'],\n owner: ['Lead - Owner', 'Owner'],\n tags: ['Lead - Labels', 'Labels'],\n leadSource: ['Lead - Source', 'Source'],\n },\n },\n {\n source: OWN,\n aliases: {\n owner: ['Owner'],\n ...address('address', {\n street: ['Address line 1'],\n street2: ['Address line 2'],\n city: ['City'],\n state: ['State'],\n postalCode: ['Postal code'],\n country: ['Country'],\n }),\n },\n },\n]\n\n/*==========================================\n * DEALS (AGL-3528)\n *=========================================*/\n\nexport const DEAL_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n title: ['Opportunity Name'],\n externalId: ['Opportunity ID', 'Opportunity Id'],\n stage: ['Stage'],\n amount: ['Amount'],\n expectedClose: ['Close Date'],\n type: ['Type'],\n leadSource: ['Lead Source'],\n nextStep: ['Next Step'],\n probability: ['Probability (%)', 'Probability'],\n forecastCategory: ['Forecast Category'],\n company: ['Account Name'],\n contact: ['Contact Email', 'Primary Contact Email'],\n owner: ['Opportunity Owner', 'Owner Name'],\n campaign: ['Primary Campaign Source'],\n notes: ['Description'],\n lostReason: ['Loss Reason', 'Closed Lost Reason'],\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n title: ['Deal Name'],\n externalId: ['Record ID'],\n pipeline: ['Pipeline'],\n stage: ['Deal Stage'],\n amount: ['Amount'],\n expectedClose: ['Close Date'],\n type: ['Deal Type'],\n owner: ['Deal owner'],\n company: ['Associated Company'],\n contact: ['Associated Contact'],\n lostReason: ['Closed Lost Reason'],\n notes: ['Deal Description'],\n forecastCategory: ['Forecast category'],\n probability: ['Deal probability'],\n nextStep: ['Next step'],\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n title: ['Deal - Title', 'Title'],\n externalId: ['Deal - ID'],\n pipeline: ['Deal - Pipeline'],\n stage: ['Deal - Stage'],\n amount: ['Deal - Value', 'Value'],\n expectedClose: ['Deal - Expected close date', 'Expected close date'],\n owner: ['Deal - Owner'],\n company: ['Deal - Organization', 'Organization'],\n contact: ['Person - Email', 'Deal - Contact person email'],\n probability: ['Deal - Probability'],\n lostReason: ['Deal - Lost reason'],\n },\n },\n]\n\n/*==========================================\n * TASKS (AGL-3528)\n *=========================================*/\n\nexport const TASK_ALIASES: readonly TransferAliasDictionary[] = [\n {\n source: SALESFORCE,\n aliases: {\n title: ['Subject'],\n externalId: ['Activity ID', 'Task ID'],\n type: ['Task Subtype', 'Type'],\n priority: ['Priority'],\n status: ['Status'],\n dueAt: ['Due Date', 'Activity Date'],\n assignee: ['Assigned To', 'Assigned'],\n notes: ['Comments'],\n contact: ['Contact Email'],\n company: ['Company / Account', 'Account Name'],\n deal: ['Opportunity Name', 'Related To'],\n },\n },\n {\n source: HUBSPOT,\n aliases: {\n title: ['Task Title'],\n externalId: ['Record ID'],\n type: ['Task Type'],\n priority: ['Priority'],\n status: ['Task Status'],\n dueAt: ['Due Date'],\n assignee: ['Assigned to', 'Activity assigned to'],\n notes: ['Notes'],\n contact: ['Associated Contact'],\n company: ['Associated Company'],\n deal: ['Associated Deal'],\n },\n },\n {\n source: PIPEDRIVE,\n aliases: {\n title: ['Activity - Subject', 'Subject'],\n externalId: ['Activity - ID'],\n type: ['Activity - Type'],\n dueAt: ['Activity - Due date', 'Due date'],\n assignee: ['Activity - Assigned to user', 'Assigned to user'],\n notes: ['Activity - Note', 'Note'],\n contact: ['Person - Email'],\n company: ['Organization - Name'],\n deal: ['Deal - Title'],\n },\n },\n]\n"],"names":["PLATFORM_BRAND_NAME","CUSTOMER_ALIAS_DICTIONARIES","SALESFORCE","HUBSPOT","APOLLO","PIPEDRIVE","OWN","address","prefix","words","street","street2","city","state","postalCode","country","CONTACT_ALIASES","source","aliases","salutation","firstName","lastName","name","email","phone","mobilePhone","homePhone","otherPhone","fax","assistantName","assistantPhone","jobTitle","department","birthdate","company","reportsTo","owner","leadSource","doNotCall","notes","lifecycleStage","tags","COMPANY_ALIASES","parentCompany","accountNumber","site","type","industry","annualRevenue","rating","website","tickerSymbol","ownership","numberOfEmployees","sicCode","accountSource","domain","LEAD_ALIASES","status","DEAL_ALIASES","title","externalId","stage","amount","expectedClose","nextStep","probability","forecastCategory","contact","campaign","lostReason","pipeline","TASK_ALIASES","priority","dueAt","assignee","deal"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;;;;;;;;;;;;;2CAoB2C,GAE3C,SAASA,mBAAmB,QAAQ,wCAAuC;AAE3E,SAASC,2BAA2B,QAAQ,wBAAoB;AAEhE,MAAMC,aAAa;AACnB,MAAMC,UAAU;AAChB,MAAMC,SAAS;AACf,MAAMC,YAAY;AAClB,MAAMC,MAAM,GAAGN,oBAAoB,iBAAiB,CAAC;AAErD,mEAAmE,GACnE,SAASO,QAAQC,MAAc,EAAEC,KAOhC;IACC,OAAO;QACL,CAAC,GAAGD,OAAO,MAAM,CAAC,CAAC,EAAEC,MAAMC,MAAM;OAC7BD,MAAME,OAAO,GAAG;QAAE,CAAC,GAAGH,OAAO,OAAO,CAAC,CAAC,EAAEC,MAAME,OAAO;IAAC,IAAI,CAAC;QAC/D,CAAC,GAAGH,OAAO,IAAI,CAAC,CAAC,EAAEC,MAAMG,IAAI;QAC7B,CAAC,GAAGJ,OAAO,KAAK,CAAC,CAAC,EAAEC,MAAMI,KAAK;QAC/B,CAAC,GAAGL,OAAO,UAAU,CAAC,CAAC,EAAEC,MAAMK,UAAU;QACzC,CAAC,GAAGN,OAAO,OAAO,CAAC,CAAC,EAAEC,MAAMM,OAAO;;AAEvC;AAEA;;2CAE2C,GAE3C,OAAO,MAAMC,kBAAsD;IACjE;QACEC,QAAQf;QACRgB,SAAS;YACPC,YAAY;gBAAC;aAAa;YAC1BC,WAAW;gBAAC;aAAa;YACzBC,UAAU;gBAAC;aAAY;YACvBC,MAAM;gBAAC;gBAAa;aAAe;YACnCC,OAAO;gBAAC;aAAQ;YAChBC,OAAO;gBAAC;gBAAS;aAAiB;YAClCC,aAAa;gBAAC;gBAAgB;aAAS;YACvCC,WAAW;gBAAC;aAAa;YACzBC,Y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AY;gBAAC;aAAY;YACzBf,MAAM;gBAAC;aAAY;YACnB2B,UAAU;gBAAC;aAAW;YACtBf,QAAQ;gBAAC;aAAc;YACvBgB,OAAO;gBAAC;aAAW;YACnBC,UAAU;gBAAC;gBAAe;aAAuB;YACjDpC,OAAO;gBAAC;aAAQ;YAChB6B,SAAS;gBAAC;aAAqB;YAC/BlC,SAAS;gBAAC;aAAqB;YAC/B0C,MAAM;gBAAC;aAAkB;QAC3B;IACF;IACA;QACE3D,QAAQZ;QACRa,SAAS;YACP0C,OAAO;gBAAC;gBAAsB;aAAU;YACxCC,YAAY;gBAAC;aAAgB;YAC7Bf,MAAM;gBAAC;aAAkB;YACzB4B,OAAO;gBAAC;gBAAuB;aAAW;YAC1CC,UAAU;gBAAC;gBAA+B;aAAmB;YAC7DpC,OAAO;gBAAC;gBAAmB;aAAO;YAClC6B,SAAS;gBAAC;aAAiB;YAC3BlC,SAAS;gBAAC;aAAsB;YAChC0C,MAAM;gBAAC;aAAe;QACxB;IACF;CACD,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* THE CONTACT IMPORT'S PERMISSION STEP (AGL-4245), drawn inside the console's
|
|
19
|
+
* import wizard after Conflicts (`ui.ts`).
|
|
20
|
+
*
|
|
21
|
+
* A store's customer file records who agreed to marketing email. This is the
|
|
22
|
+
* statement that carries those opt-ins: the default is no, so nobody is opted
|
|
23
|
+
* in unless the person importing says these people agreed to hear from this
|
|
24
|
+
* business. The step is complete with the default, because most contact files
|
|
25
|
+
* hold no such column; the dry run then counts the opt-ins left out and says
|
|
26
|
+
* where to bring them in.
|
|
27
|
+
*
|
|
28
|
+
* The answer rides in the wizard's `extras` under the step's id. The server
|
|
29
|
+
* records who gave it from the dry run's own request, never from here.
|
|
30
|
+
*/
|
|
31
|
+
import type { TransferWizardStepProps } from '@aglyn/aglyn/plugin-manager/plugin-transfer-resources';
|
|
32
|
+
/** "Permission": whether the file's opt-ins come in. */
|
|
33
|
+
export declare function ContactConsentStep(props: TransferWizardStepProps): import("react").JSX.Element;
|
|
34
|
+
export declare namespace ContactConsentStep {
|
|
35
|
+
var displayName: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ 'use client';
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { FormControl, FormControlLabel, Radio, RadioGroup, Stack, Typography } from "@mui/material";
|
|
19
|
+
import { useEffect } from "react";
|
|
20
|
+
import { CONTACT_CONSENT_STEP_ID, readContactConsentAnswer } from "./customer-sources.js";
|
|
21
|
+
/** "Permission": whether the file's opt-ins come in. */ export function ContactConsentStep(props) {
|
|
22
|
+
const { value, setValue, setComplete } = props;
|
|
23
|
+
const { attest } = readContactConsentAnswer({
|
|
24
|
+
[CONTACT_CONSENT_STEP_ID]: value
|
|
25
|
+
});
|
|
26
|
+
useEffect(()=>{
|
|
27
|
+
// The default is an answer: nobody is opted in from the file.
|
|
28
|
+
if (value === undefined || value === null) setValue({
|
|
29
|
+
attest: false
|
|
30
|
+
});
|
|
31
|
+
setComplete(true);
|
|
32
|
+
}, [
|
|
33
|
+
value,
|
|
34
|
+
setValue,
|
|
35
|
+
setComplete
|
|
36
|
+
]);
|
|
37
|
+
return /*#__PURE__*/ _jsxs(Stack, {
|
|
38
|
+
spacing: 2,
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
41
|
+
variant: "body2",
|
|
42
|
+
color: "text.secondary",
|
|
43
|
+
children: 'A customer file from Shopify, Wix or Squarespace says who agreed to ' + 'get marketing email from your store. Choose whether those opt-ins ' + 'come in. A file without that column is not affected.'
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ _jsx(FormControl, {
|
|
46
|
+
children: /*#__PURE__*/ _jsxs(RadioGroup, {
|
|
47
|
+
value: attest ? 'attest' : 'none',
|
|
48
|
+
onChange: (event)=>setValue({
|
|
49
|
+
attest: event.target.value === 'attest'
|
|
50
|
+
}),
|
|
51
|
+
children: [
|
|
52
|
+
/*#__PURE__*/ _jsx(FormControlLabel, {
|
|
53
|
+
value: "none",
|
|
54
|
+
control: /*#__PURE__*/ _jsx(Radio, {}),
|
|
55
|
+
label: /*#__PURE__*/ _jsx(Typography, {
|
|
56
|
+
variant: "body2",
|
|
57
|
+
children: 'Don’t opt anyone in from this file. People can still sign up ' + 'on your site’s forms.'
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ _jsx(FormControlLabel, {
|
|
61
|
+
value: "attest",
|
|
62
|
+
control: /*#__PURE__*/ _jsx(Radio, {}),
|
|
63
|
+
label: /*#__PURE__*/ _jsx(Typography, {
|
|
64
|
+
variant: "body2",
|
|
65
|
+
children: 'The people this file says yes for agreed to hear from my ' + 'business, and I can show how if asked. Opt them in. This ' + 'statement is saved with my name, the date and the file it ' + 'came from on each person it opts in.'
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
72
|
+
variant: "body2",
|
|
73
|
+
color: "text.secondary",
|
|
74
|
+
children: 'Whichever you choose, an unsubscribe in the file is always kept, ' + 'and nobody who unsubscribed here is opted back in. Text message ' + 'choices are not brought in. The dry run shows how many people each ' + 'of these applies to.'
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
ContactConsentStep.displayName = 'ContactConsentStep';
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=contact-import-steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../libs/plugins/crm/src/lib/transfer/contact-import-steps.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n'use client'\n\n/**\n * THE CONTACT IMPORT'S PERMISSION STEP (AGL-4245), drawn inside the console's\n * import wizard after Conflicts (`ui.ts`).\n *\n * A store's customer file records who agreed to marketing email. This is the\n * statement that carries those opt-ins: the default is no, so nobody is opted\n * in unless the person importing says these people agreed to hear from this\n * business. The step is complete with the default, because most contact files\n * hold no such column; the dry run then counts the opt-ins left out and says\n * where to bring them in.\n *\n * The answer rides in the wizard's `extras` under the step's id. The server\n * records who gave it from the dry run's own request, never from here.\n */\n\nimport type { TransferWizardStepProps } from '@aglyn/aglyn/plugin-manager/plugin-transfer-resources'\nimport { FormControl, FormControlLabel, Radio, RadioGroup, Stack, Typography } from '@mui/material'\nimport { useEffect } from 'react'\nimport { CONTACT_CONSENT_STEP_ID, readContactConsentAnswer } from './customer-sources'\n\n/** \"Permission\": whether the file's opt-ins come in. */\nexport function ContactConsentStep(props: TransferWizardStepProps) {\n const { value, setValue, setComplete } = props\n const { attest } = readContactConsentAnswer({ [CONTACT_CONSENT_STEP_ID]: value })\n useEffect(() => {\n // The default is an answer: nobody is opted in from the file.\n if (value === undefined || value === null) setValue({ attest: false })\n setComplete(true)\n }, [value, setValue, setComplete])\n return (\n <Stack spacing={2}>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'A customer file from Shopify, Wix or Squarespace says who agreed to ' +\n 'get marketing email from your store. Choose whether those opt-ins ' +\n 'come in. A file without that column is not affected.'}\n </Typography>\n <FormControl>\n <RadioGroup\n value={attest ? 'attest' : 'none'}\n onChange={(event) => setValue({ attest: event.target.value === 'attest' })}\n >\n <FormControlLabel\n value=\"none\"\n control={<Radio />}\n label={\n <Typography variant=\"body2\">\n {'Don’t opt anyone in from this file. People can still sign up ' +\n 'on your site’s forms.'}\n </Typography>\n }\n />\n <FormControlLabel\n value=\"attest\"\n control={<Radio />}\n label={\n <Typography variant=\"body2\">\n {'The people this file says yes for agreed to hear from my ' +\n 'business, and I can show how if asked. Opt them in. This ' +\n 'statement is saved with my name, the date and the file it ' +\n 'came from on each person it opts in.'}\n </Typography>\n }\n />\n </RadioGroup>\n </FormControl>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Whichever you choose, an unsubscribe in the file is always kept, ' +\n 'and nobody who unsubscribed here is opted back in. Text message ' +\n 'choices are not brought in. The dry run shows how many people each ' +\n 'of these applies to.'}\n </Typography>\n </Stack>\n )\n}\nContactConsentStep.displayName = 'ContactConsentStep'\n"],"names":["FormControl","FormControlLabel","Radio","RadioGroup","Stack","Typography","useEffect","CONTACT_CONSENT_STEP_ID","readContactConsentAnswer","ContactConsentStep","props","value","setValue","setComplete","attest","undefined","spacing","variant","color","onChange","event","target","control","label","displayName"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;AAkBA,SAASA,WAAW,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,UAAU,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAe;AACnG,SAASC,SAAS,QAAQ,QAAO;AACjC,SAASC,uBAAuB,EAAEC,wBAAwB,QAAQ,wBAAoB;AAEtF,sDAAsD,GACtD,OAAO,SAASC,mBAAmBC,KAA8B;IAC/D,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,WAAW,EAAE,GAAGH;IACzC,MAAM,EAAEI,MAAM,EAAE,GAAGN,yBAAyB;QAAE,CAACD,wBAAwB,EAAEI;IAAM;IAC/EL,UAAU;QACR,8DAA8D;QAC9D,IAAIK,UAAUI,aAAaJ,UAAU,MAAMC,SAAS;YAAEE,QAAQ;QAAM;QACpED,YAAY;IACd,GAAG;QAACF;QAAOC;QAAUC;KAAY;IACjC,qBACE,MAACT;QAAMY,SAAS;;0BACd,KAACX;gBAAWY,SAAQ;gBAAQC,OAAM;0BAC/B,yEACC,uEACA;;0BAEJ,KAAClB;0BACC,cAAA,MAACG;oBACCQ,OAAOG,SAAS,WAAW;oBAC3BK,UAAU,CAACC,QAAUR,SAAS;4BAAEE,QAAQM,MAAMC,MAAM,CAACV,KAAK,KAAK;wBAAS;;sCAExE,KAACV;4BACCU,OAAM;4BACNW,uBAAS,KAACpB;4BACVqB,qBACE,KAAClB;gCAAWY,SAAQ;0CACjB,kEACC;;;sCAIR,KAAChB;4BACCU,OAAM;4BACNW,uBAAS,KAACpB;4BACVqB,qBACE,KAAClB;gCAAWY,SAAQ;0CACjB,8DACC,8DACA,+DACA;;;;;;0BAMZ,KAACZ;gBAAWY,SAAQ;gBAAQC,OAAM;0BAC/B,sEACC,qEACA,wEACA;;;;AAIV;AACAT,mBAAmBe,WAAW,GAAG"}
|