@open-mercato/core 0.6.7-develop.6696.1.4236709f7e → 0.6.7-develop.6725.1.07a748cfc2
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/modules/auth/api/admin/nav.js +14 -4
- package/dist/modules/auth/api/admin/nav.js.map +2 -2
- package/dist/modules/auth/api/users/route.js +8 -19
- package/dist/modules/auth/api/users/route.js.map +2 -2
- package/dist/modules/auth/frontend/login.js +4 -1
- package/dist/modules/auth/frontend/login.js.map +2 -2
- package/dist/modules/auth/lib/backendChrome.js +31 -14
- package/dist/modules/auth/lib/backendChrome.js.map +2 -2
- package/dist/modules/customers/api/companies/[id]/route.js +3 -4
- package/dist/modules/customers/api/companies/[id]/route.js.map +2 -2
- package/dist/modules/customers/api/people/[id]/companies/enriched/route.js +3 -2
- package/dist/modules/customers/api/people/[id]/companies/enriched/route.js.map +2 -2
- package/dist/modules/customers/api/utils.js +12 -18
- package/dist/modules/customers/api/utils.js.map +2 -2
- package/dist/modules/customers/cli.js +11 -4
- package/dist/modules/customers/cli.js.map +2 -2
- package/dist/modules/customers/components/detail/ActiveDealCard.js +2 -1
- package/dist/modules/customers/components/detail/ActiveDealCard.js.map +2 -2
- package/dist/modules/customers/components/detail/CompanyKpiBar.js +6 -5
- package/dist/modules/customers/components/detail/CompanyKpiBar.js.map +2 -2
- package/dist/modules/customers/components/detail/ScheduleActivityDialog.js +4 -2
- package/dist/modules/customers/components/detail/ScheduleActivityDialog.js.map +2 -2
- package/dist/modules/customers/components/detail/dashboard/helpers.js +4 -3
- package/dist/modules/customers/components/detail/dashboard/helpers.js.map +2 -2
- package/dist/modules/customers/components/formConfig.js +14 -10
- package/dist/modules/customers/components/formConfig.js.map +2 -2
- package/dist/modules/customers/lib/dealStatus.js +38 -0
- package/dist/modules/customers/lib/dealStatus.js.map +7 -0
- package/dist/modules/dashboards/api/widgets/data/batch/route.js +4 -2
- package/dist/modules/dashboards/api/widgets/data/batch/route.js.map +2 -2
- package/dist/modules/dashboards/api/widgets/data/route.js +20 -2
- package/dist/modules/dashboards/api/widgets/data/route.js.map +2 -2
- package/dist/modules/dashboards/lib/aggregations.js +76 -40
- package/dist/modules/dashboards/lib/aggregations.js.map +2 -2
- package/dist/modules/dashboards/lib/exactDecimal.js +69 -0
- package/dist/modules/dashboards/lib/exactDecimal.js.map +7 -0
- package/dist/modules/dashboards/services/widgetDataService.js +228 -5
- package/dist/modules/dashboards/services/widgetDataService.js.map +2 -2
- package/dist/modules/feature_toggles/components/FeatureGuard.js +3 -2
- package/dist/modules/feature_toggles/components/FeatureGuard.js.map +2 -2
- package/dist/modules/feature_toggles/components/hooks/staleTime.js +5 -0
- package/dist/modules/feature_toggles/components/hooks/staleTime.js.map +7 -0
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagBoolean.js +5 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagBoolean.js.map +2 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagJson.js +5 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagJson.js.map +2 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagNumber.js +5 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagNumber.js.map +2 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagString.js +5 -2
- package/dist/modules/feature_toggles/components/hooks/useFeatureFlagString.js.map +2 -2
- package/dist/modules/inbox_ops/api/proposals/route.js +16 -1
- package/dist/modules/inbox_ops/api/proposals/route.js.map +2 -2
- package/dist/modules/inbox_ops/subscribers/search-reindex-proposal-created.js +32 -0
- package/dist/modules/inbox_ops/subscribers/search-reindex-proposal-created.js.map +7 -0
- package/dist/modules/integrations/widgets/injection/external-ids/widget.client.js +0 -5
- package/dist/modules/integrations/widgets/injection/external-ids/widget.client.js.map +2 -2
- package/dist/modules/integrations/widgets/injection/external-ids/widget.js +14 -0
- package/dist/modules/integrations/widgets/injection/external-ids/widget.js.map +7 -0
- package/dist/modules/messages/lib/searchLookup.js +8 -16
- package/dist/modules/messages/lib/searchLookup.js.map +2 -2
- package/dist/modules/payment_gateways/api/sessions/route.js +5 -0
- package/dist/modules/payment_gateways/api/sessions/route.js.map +2 -2
- package/dist/modules/payment_gateways/di.js +17 -1
- package/dist/modules/payment_gateways/di.js.map +2 -2
- package/dist/modules/payment_gateways/lib/gateway-service.js +8 -0
- package/dist/modules/payment_gateways/lib/gateway-service.js.map +2 -2
- package/dist/modules/payment_gateways/lib/order-amount-reconciliation.js +58 -0
- package/dist/modules/payment_gateways/lib/order-amount-reconciliation.js.map +7 -0
- package/dist/modules/query_index/api/openapi.js +13 -1
- package/dist/modules/query_index/api/openapi.js.map +2 -2
- package/dist/modules/query_index/api/status.js +165 -105
- package/dist/modules/query_index/api/status.js.map +2 -2
- package/dist/modules/query_index/components/QueryIndexesTable.js +128 -41
- package/dist/modules/query_index/components/QueryIndexesTable.js.map +2 -2
- package/dist/modules/query_index/lib/batch.js +11 -4
- package/dist/modules/query_index/lib/batch.js.map +2 -2
- package/dist/modules/query_index/lib/document.js +12 -5
- package/dist/modules/query_index/lib/document.js.map +2 -2
- package/dist/modules/query_index/lib/engine.js +36 -4
- package/dist/modules/query_index/lib/engine.js.map +2 -2
- package/dist/modules/query_index/lib/indexer.js +1 -1
- package/dist/modules/query_index/lib/indexer.js.map +2 -2
- package/dist/modules/query_index/lib/search-tokens.js +7 -4
- package/dist/modules/query_index/lib/search-tokens.js.map +2 -2
- package/dist/modules/sales/api/documents/factory.js +14 -3
- package/dist/modules/sales/api/documents/factory.js.map +2 -2
- package/dist/modules/sales/commands/documents.js +22 -1
- package/dist/modules/sales/commands/documents.js.map +2 -2
- package/dist/modules/sales/components/useSalesChannelsEnabled.js +2 -35
- package/dist/modules/sales/components/useSalesChannelsEnabled.js.map +2 -2
- package/dist/modules/sales/data/validators.js +25 -4
- package/dist/modules/sales/data/validators.js.map +2 -2
- package/dist/modules/sales/di.js +7 -0
- package/dist/modules/sales/di.js.map +2 -2
- package/dist/modules/sales/services/paymentOrderTotalResolver.js +52 -0
- package/dist/modules/sales/services/paymentOrderTotalResolver.js.map +7 -0
- package/package.json +7 -7
- package/src/modules/auth/api/admin/nav.ts +24 -4
- package/src/modules/auth/api/users/route.ts +8 -28
- package/src/modules/auth/frontend/login.tsx +4 -1
- package/src/modules/auth/lib/backendChrome.tsx +51 -13
- package/src/modules/customers/api/companies/[id]/route.ts +3 -4
- package/src/modules/customers/api/people/[id]/companies/enriched/route.ts +3 -2
- package/src/modules/customers/api/utils.ts +12 -31
- package/src/modules/customers/cli.ts +11 -4
- package/src/modules/customers/components/detail/ActiveDealCard.tsx +2 -1
- package/src/modules/customers/components/detail/CompanyKpiBar.tsx +6 -5
- package/src/modules/customers/components/detail/ScheduleActivityDialog.tsx +4 -0
- package/src/modules/customers/components/detail/dashboard/helpers.ts +4 -3
- package/src/modules/customers/components/formConfig.tsx +12 -8
- package/src/modules/customers/lib/dealStatus.ts +48 -0
- package/src/modules/dashboards/api/widgets/data/batch/route.ts +4 -0
- package/src/modules/dashboards/api/widgets/data/route.ts +21 -0
- package/src/modules/dashboards/lib/aggregations.ts +122 -43
- package/src/modules/dashboards/lib/exactDecimal.ts +96 -0
- package/src/modules/dashboards/services/widgetDataService.ts +342 -4
- package/src/modules/feature_toggles/components/FeatureGuard.tsx +9 -2
- package/src/modules/feature_toggles/components/hooks/staleTime.ts +5 -0
- package/src/modules/feature_toggles/components/hooks/useFeatureFlagBoolean.ts +13 -1
- package/src/modules/feature_toggles/components/hooks/useFeatureFlagJson.ts +12 -3
- package/src/modules/feature_toggles/components/hooks/useFeatureFlagNumber.ts +10 -1
- package/src/modules/feature_toggles/components/hooks/useFeatureFlagString.ts +10 -1
- package/src/modules/inbox_ops/api/proposals/route.ts +20 -1
- package/src/modules/inbox_ops/subscribers/search-reindex-proposal-created.ts +39 -0
- package/src/modules/integrations/widgets/injection/external-ids/widget.client.tsx +0 -5
- package/src/modules/integrations/widgets/injection/external-ids/widget.ts +13 -0
- package/src/modules/messages/lib/searchLookup.ts +11 -34
- package/src/modules/payment_gateways/api/sessions/route.ts +5 -0
- package/src/modules/payment_gateways/di.ts +28 -2
- package/src/modules/payment_gateways/i18n/de.json +3 -0
- package/src/modules/payment_gateways/i18n/en.json +3 -0
- package/src/modules/payment_gateways/i18n/es.json +3 -0
- package/src/modules/payment_gateways/i18n/pl.json +3 -0
- package/src/modules/payment_gateways/lib/gateway-service.ts +14 -0
- package/src/modules/payment_gateways/lib/order-amount-reconciliation.ts +93 -0
- package/src/modules/query_index/api/openapi.ts +12 -0
- package/src/modules/query_index/api/status.ts +238 -136
- package/src/modules/query_index/components/QueryIndexesTable.tsx +192 -46
- package/src/modules/query_index/i18n/de.json +5 -3
- package/src/modules/query_index/i18n/en.json +5 -3
- package/src/modules/query_index/i18n/es.json +5 -3
- package/src/modules/query_index/i18n/pl.json +5 -3
- package/src/modules/query_index/lib/batch.ts +11 -4
- package/src/modules/query_index/lib/document.ts +35 -4
- package/src/modules/query_index/lib/engine.ts +53 -5
- package/src/modules/query_index/lib/indexer.ts +1 -1
- package/src/modules/query_index/lib/search-tokens.ts +13 -4
- package/src/modules/sales/api/documents/factory.ts +28 -3
- package/src/modules/sales/commands/documents.ts +26 -2
- package/src/modules/sales/components/useSalesChannelsEnabled.ts +2 -48
- package/src/modules/sales/data/validators.ts +50 -5
- package/src/modules/sales/di.ts +9 -0
- package/src/modules/sales/services/paymentOrderTotalResolver.ts +67 -0
|
@@ -311,7 +311,7 @@ const companyDictionaryFieldDefinitions = [
|
|
|
311
311
|
layout: "third"
|
|
312
312
|
}
|
|
313
313
|
];
|
|
314
|
-
const createPrimaryPhoneField = (t) => ({
|
|
314
|
+
const createPrimaryPhoneField = (t, defaultCountryIso2) => ({
|
|
315
315
|
id: "primaryPhone",
|
|
316
316
|
label: t("customers.people.form.primaryPhone"),
|
|
317
317
|
type: "custom",
|
|
@@ -338,7 +338,8 @@ const createPrimaryPhoneField = (t) => ({
|
|
|
338
338
|
duplicateLinkLabel: t("customers.people.form.phoneDuplicateLink"),
|
|
339
339
|
invalidLabel: t("customers.people.form.primaryPhone.invalid", "Enter a valid phone number with country code (e.g. +1 212 555 1234)"),
|
|
340
340
|
minDigits: 7,
|
|
341
|
-
onDuplicateLookup: !disabled && !error ? duplicateLookup : void 0
|
|
341
|
+
onDuplicateLookup: !disabled && !error ? duplicateLookup : void 0,
|
|
342
|
+
defaultCountryIso2
|
|
342
343
|
}
|
|
343
344
|
);
|
|
344
345
|
}
|
|
@@ -621,7 +622,8 @@ const createDisplayNameSection = (t) => function DisplayNameSection({ values, se
|
|
|
621
622
|
manualOverride ? /* @__PURE__ */ jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsx(Button, { type: "button", variant: "ghost", size: "sm", onClick: handleReset, disabled: !derived, children: t("customers.people.form.displayName.reset") }) }) : null
|
|
622
623
|
] });
|
|
623
624
|
};
|
|
624
|
-
const createPersonFormFields = (t) => {
|
|
625
|
+
const createPersonFormFields = (t, options) => {
|
|
626
|
+
const defaultCountryIso2 = options?.defaultCountryIso2;
|
|
625
627
|
const contactSection = createSectionHeadingField("__contactInformationSection", t("customers.people.form.sections.contactInformation"));
|
|
626
628
|
const companySection = createSectionHeadingField("__companyInformationSection", t("customers.people.form.sections.companyInformation"));
|
|
627
629
|
const dictionaryFields = dictionaryFieldDefinitions.map((definition) => ({
|
|
@@ -683,7 +685,7 @@ const createPersonFormFields = (t) => {
|
|
|
683
685
|
},
|
|
684
686
|
contactSection,
|
|
685
687
|
createPrimaryEmailField(t),
|
|
686
|
-
createPrimaryPhoneField(t),
|
|
688
|
+
createPrimaryPhoneField(t, defaultCountryIso2),
|
|
687
689
|
companySection,
|
|
688
690
|
{
|
|
689
691
|
id: "companyEntityId",
|
|
@@ -879,7 +881,8 @@ const createCompanyFormSchema = () => z.object({
|
|
|
879
881
|
sizeBucket: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional(),
|
|
880
882
|
annualRevenue: z.string().trim().optional().or(z.literal("")).transform((val) => val === "" ? void 0 : val).optional()
|
|
881
883
|
}).passthrough();
|
|
882
|
-
const createCompanyFormFields = (t) => {
|
|
884
|
+
const createCompanyFormFields = (t, options) => {
|
|
885
|
+
const defaultCountryIso2 = options?.defaultCountryIso2;
|
|
883
886
|
const dictionaryFields = companyDictionaryFieldDefinitions.map((definition) => ({
|
|
884
887
|
id: definition.id,
|
|
885
888
|
label: t(definition.labelKey),
|
|
@@ -924,7 +927,8 @@ const createCompanyFormFields = (t) => {
|
|
|
924
927
|
disabled,
|
|
925
928
|
placeholder: t("customers.companies.form.primaryPhonePlaceholder", "+1 555 123 4567"),
|
|
926
929
|
invalidLabel: t("customers.people.form.primaryPhone.invalid", "Enter a valid phone number with country code (e.g. +1 212 555 1234)"),
|
|
927
|
-
minDigits: 7
|
|
930
|
+
minDigits: 7,
|
|
931
|
+
defaultCountryIso2
|
|
928
932
|
}
|
|
929
933
|
)
|
|
930
934
|
},
|
|
@@ -1173,8 +1177,8 @@ const buildIndustryLabels = (t) => ({
|
|
|
1173
1177
|
loadingLabel: t("customers.people.form.dictionary.loading"),
|
|
1174
1178
|
manageTitle: t("customers.people.form.dictionary.manage")
|
|
1175
1179
|
});
|
|
1176
|
-
const createCompanyEditFields = (t) => {
|
|
1177
|
-
const baseFields = createCompanyFormFields(t);
|
|
1180
|
+
const createCompanyEditFields = (t, options) => {
|
|
1181
|
+
const baseFields = createCompanyFormFields(t, options);
|
|
1178
1182
|
const industryLabels = buildIndustryLabels(t);
|
|
1179
1183
|
return baseFields.map((field) => {
|
|
1180
1184
|
if (field.id === "industry") {
|
|
@@ -1197,8 +1201,8 @@ const createCompanyEditFields = (t) => {
|
|
|
1197
1201
|
return field;
|
|
1198
1202
|
});
|
|
1199
1203
|
};
|
|
1200
|
-
const createPersonEditFields = (t) => {
|
|
1201
|
-
const baseFields = createPersonFormFields(t);
|
|
1204
|
+
const createPersonEditFields = (t, options) => {
|
|
1205
|
+
const baseFields = createPersonFormFields(t, options);
|
|
1202
1206
|
return [
|
|
1203
1207
|
...baseFields,
|
|
1204
1208
|
{
|