@open-mercato/core 0.6.5-develop.5382.1.f542de69af → 0.6.6-develop.5412.1.e2a52b14f0
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/.turbo/turbo-build.log +1 -1
- package/dist/helpers/integration/crmFixtures.js +4 -0
- package/dist/helpers/integration/crmFixtures.js.map +2 -2
- package/dist/modules/attachments/api/route.js +2 -0
- package/dist/modules/attachments/api/route.js.map +2 -2
- package/dist/modules/attachments/lib/access.js +18 -0
- package/dist/modules/attachments/lib/access.js.map +2 -2
- package/dist/modules/auth/services/rbacService.js +3 -2
- package/dist/modules/auth/services/rbacService.js.map +2 -2
- package/dist/modules/customer_accounts/backend/customer_accounts/settings/domain/components/Diagnostics.js +0 -3
- package/dist/modules/customer_accounts/backend/customer_accounts/settings/domain/components/Diagnostics.js.map +2 -2
- package/dist/modules/customers/api/deals/route.js +43 -2
- package/dist/modules/customers/api/deals/route.js.map +2 -2
- package/dist/modules/customers/api/deals/summary/route.js +402 -0
- package/dist/modules/customers/api/deals/summary/route.js.map +7 -0
- package/dist/modules/customers/backend/customers/deals/[id]/hooks/useDealActivities.js +16 -5
- package/dist/modules/customers/backend/customers/deals/[id]/hooks/useDealActivities.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/[id]/hooks/useDealData.js +22 -5
- package/dist/modules/customers/backend/customers/deals/[id]/hooks/useDealData.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/[id]/page.js +12 -2
- package/dist/modules/customers/backend/customers/deals/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.js +221 -56
- package/dist/modules/customers/backend/customers/deals/page.js.map +3 -3
- package/dist/modules/customers/backend/customers/deals/pipeline/page.js +1 -1
- package/dist/modules/customers/backend/customers/deals/pipeline/page.js.map +2 -2
- package/dist/modules/customers/cli.js +15 -9
- package/dist/modules/customers/cli.js.map +2 -2
- package/dist/modules/customers/components/DealsKpiStrip.js +282 -0
- package/dist/modules/customers/components/DealsKpiStrip.js.map +7 -0
- package/dist/modules/customers/components/detail/ConfirmDealLostDialog.js +0 -1
- package/dist/modules/customers/components/detail/ConfirmDealLostDialog.js.map +2 -2
- package/dist/modules/customers/components/detail/DealForm.js +100 -17
- package/dist/modules/customers/components/detail/DealForm.js.map +2 -2
- package/dist/modules/customers/components/detail/ScheduleActivityDialog.js +1 -2
- package/dist/modules/customers/components/detail/ScheduleActivityDialog.js.map +2 -2
- package/dist/modules/customers/components/kpi/PipelineStageBar.js +63 -0
- package/dist/modules/customers/components/kpi/PipelineStageBar.js.map +7 -0
- package/dist/modules/customers/lib/dealsMetrics.js +82 -0
- package/dist/modules/customers/lib/dealsMetrics.js.map +7 -0
- package/dist/modules/directory/subscribers/invalidateOrgScopeCache.js +2 -1
- package/dist/modules/directory/subscribers/invalidateOrgScopeCache.js.map +2 -2
- package/dist/modules/directory/utils/organizationScope.js +59 -27
- package/dist/modules/directory/utils/organizationScope.js.map +2 -2
- package/dist/modules/entities/api/entities.js +7 -0
- package/dist/modules/entities/api/entities.js.map +2 -2
- package/dist/modules/entities/api/records.js +26 -15
- package/dist/modules/entities/api/records.js.map +2 -2
- package/dist/modules/entities/backend/entities/user/[entityId]/records/[recordId]/page.js +14 -0
- package/dist/modules/entities/backend/entities/user/[entityId]/records/[recordId]/page.js.map +2 -2
- package/dist/modules/entities/backend/entities/user/[entityId]/records/create/page.js +14 -0
- package/dist/modules/entities/backend/entities/user/[entityId]/records/create/page.js.map +2 -2
- package/dist/modules/entities/backend/entities/user/[entityId]/records/page.js +12 -0
- package/dist/modules/entities/backend/entities/user/[entityId]/records/page.js.map +2 -2
- package/dist/modules/entities/components/useRecordsEntityGuard.js +30 -0
- package/dist/modules/entities/components/useRecordsEntityGuard.js.map +7 -0
- package/dist/modules/query_index/lib/engine.js +4 -2
- package/dist/modules/query_index/lib/engine.js.map +2 -2
- package/dist/modules/staff/api/team-members.js +9 -2
- package/dist/modules/staff/api/team-members.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.js +24 -1
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.js.map +2 -2
- package/dist/modules/staff/backend/staff/team-members/[id]/page.js +11 -6
- package/dist/modules/staff/backend/staff/team-members/[id]/page.js.map +2 -2
- package/dist/modules/staff/commands/team-members.js +1 -1
- package/dist/modules/staff/commands/team-members.js.map +2 -2
- package/dist/modules/staff/components/TeamMemberForm.js +1 -1
- package/dist/modules/staff/components/TeamMemberForm.js.map +2 -2
- package/dist/modules/staff/lib/scheduleSwitch.js +23 -0
- package/dist/modules/staff/lib/scheduleSwitch.js.map +7 -0
- package/dist/modules/workflows/backend/definitions/create/page.js +1 -2
- package/dist/modules/workflows/backend/definitions/create/page.js.map +2 -2
- package/dist/modules/workflows/backend/definitions/visual-editor/page.js +1 -2
- package/dist/modules/workflows/backend/definitions/visual-editor/page.js.map +2 -2
- package/dist/modules/workflows/components/DefinitionTriggersEditor.js +1 -2
- package/dist/modules/workflows/components/DefinitionTriggersEditor.js.map +2 -2
- package/dist/modules/workflows/components/NodeEditDialog.js +4 -13
- package/dist/modules/workflows/components/NodeEditDialog.js.map +2 -2
- package/dist/modules/workflows/components/NodeEditDialogCrudForm.js +4 -13
- package/dist/modules/workflows/components/NodeEditDialogCrudForm.js.map +2 -2
- package/dist/modules/workflows/components/WorkflowGraphImpl.js +1 -4
- package/dist/modules/workflows/components/WorkflowGraphImpl.js.map +2 -2
- package/dist/modules/workflows/components/fields/FormFieldArrayEditor.js +2 -5
- package/dist/modules/workflows/components/fields/FormFieldArrayEditor.js.map +2 -2
- package/package.json +8 -8
- package/src/helpers/integration/crmFixtures.ts +21 -1
- package/src/modules/attachments/AGENTS.md +79 -0
- package/src/modules/attachments/api/route.ts +2 -0
- package/src/modules/attachments/lib/access.ts +36 -0
- package/src/modules/auth/services/rbacService.ts +11 -2
- package/src/modules/customer_accounts/backend/customer_accounts/settings/domain/components/Diagnostics.tsx +0 -3
- package/src/modules/customers/api/deals/route.ts +51 -2
- package/src/modules/customers/api/deals/summary/route.ts +496 -0
- package/src/modules/customers/backend/customers/deals/[id]/hooks/useDealActivities.ts +28 -6
- package/src/modules/customers/backend/customers/deals/[id]/hooks/useDealData.ts +33 -6
- package/src/modules/customers/backend/customers/deals/[id]/page.tsx +17 -2
- package/src/modules/customers/backend/customers/deals/page.tsx +254 -66
- package/src/modules/customers/backend/customers/deals/pipeline/page.tsx +1 -2
- package/src/modules/customers/cli.ts +15 -15
- package/src/modules/customers/components/DealsKpiStrip.tsx +389 -0
- package/src/modules/customers/components/detail/ConfirmDealLostDialog.tsx +0 -1
- package/src/modules/customers/components/detail/DealForm.tsx +121 -19
- package/src/modules/customers/components/detail/ScheduleActivityDialog.tsx +1 -2
- package/src/modules/customers/components/kpi/PipelineStageBar.tsx +77 -0
- package/src/modules/customers/i18n/de.json +43 -0
- package/src/modules/customers/i18n/en.json +43 -0
- package/src/modules/customers/i18n/es.json +43 -0
- package/src/modules/customers/i18n/pl.json +43 -0
- package/src/modules/customers/lib/dealsMetrics.ts +159 -0
- package/src/modules/directory/subscribers/invalidateOrgScopeCache.ts +3 -1
- package/src/modules/directory/utils/organizationScope.ts +85 -30
- package/src/modules/entities/api/entities.ts +11 -0
- package/src/modules/entities/api/records.ts +46 -25
- package/src/modules/entities/backend/entities/user/[entityId]/records/[recordId]/page.tsx +15 -0
- package/src/modules/entities/backend/entities/user/[entityId]/records/create/page.tsx +15 -0
- package/src/modules/entities/backend/entities/user/[entityId]/records/page.tsx +23 -0
- package/src/modules/entities/components/useRecordsEntityGuard.ts +41 -0
- package/src/modules/entities/i18n/de.json +1 -0
- package/src/modules/entities/i18n/en.json +1 -0
- package/src/modules/entities/i18n/es.json +1 -0
- package/src/modules/entities/i18n/pl.json +1 -0
- package/src/modules/query_index/lib/engine.ts +11 -5
- package/src/modules/staff/api/team-members.ts +9 -2
- package/src/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.ts +31 -1
- package/src/modules/staff/backend/staff/team-members/[id]/page.tsx +18 -8
- package/src/modules/staff/commands/team-members.ts +5 -2
- package/src/modules/staff/components/TeamMemberForm.tsx +4 -1
- package/src/modules/staff/i18n/de.json +1 -0
- package/src/modules/staff/i18n/en.json +1 -0
- package/src/modules/staff/i18n/es.json +1 -0
- package/src/modules/staff/i18n/pl.json +1 -0
- package/src/modules/staff/lib/scheduleSwitch.ts +46 -0
- package/src/modules/workflows/backend/definitions/create/page.tsx +1 -2
- package/src/modules/workflows/backend/definitions/visual-editor/page.tsx +1 -2
- package/src/modules/workflows/components/DefinitionTriggersEditor.tsx +1 -2
- package/src/modules/workflows/components/NodeEditDialog.tsx +1 -4
- package/src/modules/workflows/components/NodeEditDialogCrudForm.tsx +4 -7
- package/src/modules/workflows/components/WorkflowGraphImpl.tsx +1 -2
- package/src/modules/workflows/components/fields/FormFieldArrayEditor.tsx +2 -3
|
@@ -167,7 +167,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
167
167
|
primaryPhone: "+1 415-555-0148",
|
|
168
168
|
source: "partner_referral",
|
|
169
169
|
lifecycleStage: "customer",
|
|
170
|
-
status: "
|
|
170
|
+
status: "active",
|
|
171
171
|
custom: {
|
|
172
172
|
relationship_health: "healthy",
|
|
173
173
|
renewal_quarter: "Q3",
|
|
@@ -224,7 +224,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
224
224
|
phone: "+1 628-555-0199",
|
|
225
225
|
timezone: "America/Los_Angeles",
|
|
226
226
|
linkedInUrl: "https://www.linkedin.com/in/danielcho-energy/",
|
|
227
|
-
source: "
|
|
227
|
+
source: "cold_outreach",
|
|
228
228
|
custom: {
|
|
229
229
|
buying_role: "economic_buyer",
|
|
230
230
|
preferred_pronouns: "he/him",
|
|
@@ -298,7 +298,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
298
298
|
valueCurrency: "USD",
|
|
299
299
|
expectedCloseAt: isoDaysFromNow(65),
|
|
300
300
|
probability: 40,
|
|
301
|
-
source: "
|
|
301
|
+
source: "web_form",
|
|
302
302
|
custom: {
|
|
303
303
|
competitive_risk: "high",
|
|
304
304
|
implementation_complexity: "complex",
|
|
@@ -372,7 +372,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
372
372
|
description: "Boston-based analytics platform helping consumer brands optimize merchandising decisions.",
|
|
373
373
|
primaryEmail: "info@harborviewanalytics.com",
|
|
374
374
|
primaryPhone: "+1 617-555-0024",
|
|
375
|
-
source: "
|
|
375
|
+
source: "event",
|
|
376
376
|
lifecycleStage: "prospect",
|
|
377
377
|
status: "active",
|
|
378
378
|
custom: {
|
|
@@ -404,7 +404,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
404
404
|
phone: "+1 617-555-0168",
|
|
405
405
|
timezone: "America/New_York",
|
|
406
406
|
linkedInUrl: "https://www.linkedin.com/in/arjunpatel-sales/",
|
|
407
|
-
source: "
|
|
407
|
+
source: "event",
|
|
408
408
|
custom: {
|
|
409
409
|
buying_role: "economic_buyer",
|
|
410
410
|
preferred_pronouns: "he/him",
|
|
@@ -422,7 +422,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
422
422
|
phone: "+1 617-555-0179",
|
|
423
423
|
timezone: "America/New_York",
|
|
424
424
|
linkedInUrl: "https://www.linkedin.com/in/lenaortiz-retail/",
|
|
425
|
-
source: "
|
|
425
|
+
source: "event",
|
|
426
426
|
custom: {
|
|
427
427
|
buying_role: "champion",
|
|
428
428
|
preferred_pronouns: "she/her",
|
|
@@ -441,7 +441,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
441
441
|
valueCurrency: "USD",
|
|
442
442
|
expectedCloseAt: isoDaysFromNow(-25),
|
|
443
443
|
probability: 100,
|
|
444
|
-
source: "
|
|
444
|
+
source: "event",
|
|
445
445
|
custom: {
|
|
446
446
|
competitive_risk: "low",
|
|
447
447
|
implementation_complexity: "standard",
|
|
@@ -496,7 +496,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
496
496
|
valueCurrency: "USD",
|
|
497
497
|
expectedCloseAt: isoDaysFromNow(120),
|
|
498
498
|
probability: 35,
|
|
499
|
-
source: "
|
|
499
|
+
source: "cold_outreach",
|
|
500
500
|
custom: {
|
|
501
501
|
competitive_risk: "medium",
|
|
502
502
|
implementation_complexity: "complex",
|
|
@@ -573,7 +573,7 @@ const CUSTOMER_EXAMPLES = [
|
|
|
573
573
|
primaryPhone: "+1 512-555-0456",
|
|
574
574
|
source: "customer_referral",
|
|
575
575
|
lifecycleStage: "customer",
|
|
576
|
-
status: "
|
|
576
|
+
status: "active",
|
|
577
577
|
custom: {
|
|
578
578
|
relationship_health: "healthy",
|
|
579
579
|
renewal_quarter: "Q1",
|
|
@@ -2647,6 +2647,12 @@ async function ensureCustomerCustomFieldDefinitions(em, tenantId) {
|
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
2649
|
export {
|
|
2650
|
+
CUSTOMER_EXAMPLES,
|
|
2651
|
+
DEAL_STATUS_DEFAULTS,
|
|
2652
|
+
ENTITY_LIFECYCLE_STAGE_DEFAULTS,
|
|
2653
|
+
ENTITY_SOURCE_DEFAULTS,
|
|
2654
|
+
ENTITY_STATUS_DEFAULTS,
|
|
2655
|
+
PIPELINE_STAGE_DEFAULTS,
|
|
2650
2656
|
cli_default as default,
|
|
2651
2657
|
ensureCustomerCustomFieldDefinitions,
|
|
2652
2658
|
seedCurrencyDictionary,
|