@bisondesk/core-sdk 1.0.603 → 1.0.605
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/lib/types/activities.d.ts +1 -0
- package/lib/types/activities.d.ts.map +1 -1
- package/lib/types/activities.js.map +1 -1
- package/lib/types/crm.d.ts +1 -0
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js.map +1 -1
- package/lib/types/reports-sales.d.ts +67 -0
- package/lib/types/reports-sales.d.ts.map +1 -0
- package/lib/types/reports-sales.js +13 -0
- package/lib/types/reports-sales.js.map +1 -0
- package/lib/types/tenants.d.ts +2 -1
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/tenants.js +1 -0
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/user-performance.d.ts +1 -1
- package/lib/types/user-performance.d.ts.map +1 -1
- package/lib/types/user-performance.js.map +1 -1
- package/package.json +1 -1
- package/src/types/activities.js +13 -0
- package/src/types/activities.js.map +1 -0
- package/src/types/activities.ts +1 -0
- package/src/types/comparables.js +2 -0
- package/src/types/comparables.js.map +1 -0
- package/src/types/crm.js +58 -0
- package/src/types/crm.js.map +1 -0
- package/src/types/crm.ts +1 -0
- package/src/types/dashboard.js +2 -0
- package/src/types/dashboard.js.map +1 -0
- package/src/types/definitions.js +2 -0
- package/src/types/definitions.js.map +1 -0
- package/src/types/fields.js +2 -0
- package/src/types/fields.js.map +1 -0
- package/src/types/insights.js +2 -0
- package/src/types/insights.js.map +1 -0
- package/src/types/interests.js +6 -0
- package/src/types/interests.js.map +1 -0
- package/src/types/internal-events.js +18 -0
- package/src/types/internal-events.js.map +1 -0
- package/src/types/internet-opportunities.js +2 -0
- package/src/types/internet-opportunities.js.map +1 -0
- package/src/types/internet-vehicles.js +2 -0
- package/src/types/internet-vehicles.js.map +1 -0
- package/src/types/leasing-administration.js +2 -0
- package/src/types/leasing-administration.js.map +1 -0
- package/src/types/leasing-debtors.js +2 -0
- package/src/types/leasing-debtors.js.map +1 -0
- package/src/types/leasing-search.js +2 -0
- package/src/types/leasing-search.js.map +1 -0
- package/src/types/leasing-settings.js +7 -0
- package/src/types/leasing-settings.js.map +1 -0
- package/src/types/leasing.js +38 -0
- package/src/types/leasing.js.map +1 -0
- package/src/types/marketing.js +35 -0
- package/src/types/marketing.js.map +1 -0
- package/src/types/offers.js +56 -0
- package/src/types/opportunities.js +107 -0
- package/src/types/opportunities.js.map +1 -0
- package/src/types/payments.js +7 -0
- package/src/types/picklists.js +2 -0
- package/src/types/picklists.js.map +1 -0
- package/src/types/quotes.js +42 -0
- package/src/types/recently-viewed.js +2 -0
- package/src/types/recently-viewed.js.map +1 -0
- package/src/types/reports-sales.ts +126 -0
- package/src/types/reservations.js +5 -0
- package/src/types/reservations.js.map +1 -0
- package/src/types/roi-ratings.js +5 -0
- package/src/types/roi-ratings.js.map +1 -0
- package/src/types/saved-filters.js +9 -0
- package/src/types/saved-filters.js.map +1 -0
- package/src/types/search.js +2 -0
- package/src/types/search.js.map +1 -0
- package/src/types/settings.js +2 -0
- package/src/types/settings.js.map +1 -0
- package/src/types/templates.js +2 -0
- package/src/types/templates.js.map +1 -0
- package/src/types/tenants.js +21 -0
- package/src/types/tenants.js.map +1 -0
- package/src/types/tenants.ts +1 -0
- package/src/types/user-performance.js +7 -0
- package/src/types/user-performance.js.map +1 -0
- package/src/types/user-performance.ts +15 -3
- package/src/types/utils.js +2 -0
- package/src/types/validation.js +2 -0
- package/src/types/validation.js.map +1 -0
- package/src/types/vehicle-sales.js +6 -0
- package/src/types/vehicle-sales.js.map +1 -0
- package/src/types/vehicles.js +98 -0
- package/src/types/vehicles.js.map +1 -0
- package/src/utils/leasing.js +6 -0
- package/src/utils/leasing.js.map +1 -0
- package/src/utils/opportunities.js +48 -0
- package/src/utils/opportunities.js.map +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activities.d.ts","sourceRoot":"/","sources":["types/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B,GAAG,iBAAiB,GAAG;IACpD,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,QAAQ,CAAC;CACxB,CAAC;AAOF,MAAM,MAAM,cAAc,GACtB,kCAAkC,GAClC,iCAAiC,GACjC,oCAAoC,GACpC,iCAAiC,CAAC;AAEtC,MAAM,MAAM,kCAAkC,GAAG,EAOhD,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,YAAY,EAAE,OAAO,CAAC;CAMvB,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,EAMlD,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAG9C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,UAAU,GAAG,KAAK,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activities.js","sourceRoot":"/","sources":["types/activities.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["import { BusinessEntityIds } from '../constants.js';\nimport { BaseEvent } from './internal-events.js';\n\nexport enum ActivityType {\n CALL = 'call',\n MEETING = 'meeting',\n EMAIL = 'email',\n CHAT = 'chat',\n SMS = 'sms',\n}\n\nexport enum ActivityActions {\n DELETE = 'delete',\n EDIT = 'edit',\n}\n\nexport type ActivityContact = {\n id?: string;\n phoneNumber?: string;\n email?: string;\n};\n\nexport interface BaseActivity<Meta = ActivityV2Meta> {\n type: ActivityType;\n businessEntityId: BusinessEntityIds;\n recordId: string;\n description?: string;\n readonly?: boolean;\n meta?: Meta;\n // The people called/emailed/etc in this activity.\n contacts?: ActivityContact[];\n}\n\nexport type NewActivity<Meta = ActivityV2Meta> = BaseActivity<Meta> & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n activityAt?: string;\n};\n\nexport type Activity<Meta = ActivityV2Meta> = BaseActivity<Meta> & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n activityAt: string;\n};\n\nexport type ActivityUpdate = {\n description?: string;\n type?: ActivityType;\n activityAt?: string;\n contacts?: ActivityContact[];\n};\n\nexport type ActivityEvent = BaseEvent &\n (ActivityCreateEvent | ActivityUpdateEvent | ActivityDeleteEvent);\n\ntype BaseActivityEvent = {\n actionAt: string;\n userId: string;\n tenantId: string;\n businessEntityId: BusinessEntityIds;\n recordId: string;\n};\n\nexport type ActivityCreateEvent = BaseActivityEvent & {\n action: 'create';\n data: Activity;\n previousData?: undefined;\n};\n\nexport type ActivityUpdateEvent = BaseActivityEvent & {\n action: 'update';\n data: Activity;\n previousData: Activity;\n};\n\nexport type ActivityDeleteEvent = BaseActivityEvent & {\n action: 'delete';\n data: undefined;\n previousData: Activity;\n};\n\n/************\n * ActivityV2Meta Types\n * These types are used to define the structure of the metadata for different activity types.\n ************/\n\nexport type ActivityV2Meta =\n | EmailDebtorsDossierActivityPayload\n | CallDebtorsDossierActivityPayload\n | MeetingDebtorsDossierActivityPayload\n | ChatDebtorsDossierActivityPayload;\n\nexport type EmailDebtorsDossierActivityPayload = {\n /* from: { email: string; name?: string; external?: boolean };\n to: { email: string; name?: string }[];\n cc?: { email: string; name?: string }[];\n bcc?: { email: string; name?: string }[];\n subject?: string;\n attachments?: AttachmentValue[]; */\n};\n\nexport type CallDebtorsDossierActivityPayload = {\n didNotAnswer: boolean;\n /* from: { phone: string; name?: string; external?: boolean };\n to: string;\n duration?: number;\n recordingUrl?: string;\n transcription?: string; */\n};\n\nexport type MeetingDebtorsDossierActivityPayload = {\n /* organizer: string;\n participants: string[];\n location?: string;\n startTime: string;\n endTime: string; */\n};\n\nexport type ChatDebtorsDossierActivityPayload = {\n /* from: { phone: string; name?: string; external?: boolean };\n to: string[]; */\n message: string;\n platform: 'whatsapp' | 'sms';\n};\n"]}
|
|
1
|
+
{"version":3,"file":"activities.js","sourceRoot":"/","sources":["types/activities.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["import { BusinessEntityIds } from '../constants.js';\nimport { BaseEvent } from './internal-events.js';\n\nexport enum ActivityType {\n CALL = 'call',\n MEETING = 'meeting',\n EMAIL = 'email',\n CHAT = 'chat',\n SMS = 'sms',\n}\n\nexport enum ActivityActions {\n DELETE = 'delete',\n EDIT = 'edit',\n}\n\nexport type ActivityContact = {\n id?: string;\n phoneNumber?: string;\n email?: string;\n};\n\nexport interface BaseActivity<Meta = ActivityV2Meta> {\n type: ActivityType;\n businessEntityId: BusinessEntityIds;\n recordId: string;\n organizationId?: string;\n description?: string;\n readonly?: boolean;\n meta?: Meta;\n // The people called/emailed/etc in this activity.\n contacts?: ActivityContact[];\n}\n\nexport type NewActivity<Meta = ActivityV2Meta> = BaseActivity<Meta> & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n activityAt?: string;\n};\n\nexport type Activity<Meta = ActivityV2Meta> = BaseActivity<Meta> & {\n id: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n activityAt: string;\n};\n\nexport type ActivityUpdate = {\n description?: string;\n type?: ActivityType;\n activityAt?: string;\n contacts?: ActivityContact[];\n};\n\nexport type ActivityEvent = BaseEvent &\n (ActivityCreateEvent | ActivityUpdateEvent | ActivityDeleteEvent);\n\ntype BaseActivityEvent = {\n actionAt: string;\n userId: string;\n tenantId: string;\n businessEntityId: BusinessEntityIds;\n recordId: string;\n};\n\nexport type ActivityCreateEvent = BaseActivityEvent & {\n action: 'create';\n data: Activity;\n previousData?: undefined;\n};\n\nexport type ActivityUpdateEvent = BaseActivityEvent & {\n action: 'update';\n data: Activity;\n previousData: Activity;\n};\n\nexport type ActivityDeleteEvent = BaseActivityEvent & {\n action: 'delete';\n data: undefined;\n previousData: Activity;\n};\n\n/************\n * ActivityV2Meta Types\n * These types are used to define the structure of the metadata for different activity types.\n ************/\n\nexport type ActivityV2Meta =\n | EmailDebtorsDossierActivityPayload\n | CallDebtorsDossierActivityPayload\n | MeetingDebtorsDossierActivityPayload\n | ChatDebtorsDossierActivityPayload;\n\nexport type EmailDebtorsDossierActivityPayload = {\n /* from: { email: string; name?: string; external?: boolean };\n to: { email: string; name?: string }[];\n cc?: { email: string; name?: string }[];\n bcc?: { email: string; name?: string }[];\n subject?: string;\n attachments?: AttachmentValue[]; */\n};\n\nexport type CallDebtorsDossierActivityPayload = {\n didNotAnswer: boolean;\n /* from: { phone: string; name?: string; external?: boolean };\n to: string;\n duration?: number;\n recordingUrl?: string;\n transcription?: string; */\n};\n\nexport type MeetingDebtorsDossierActivityPayload = {\n /* organizer: string;\n participants: string[];\n location?: string;\n startTime: string;\n endTime: string; */\n};\n\nexport type ChatDebtorsDossierActivityPayload = {\n /* from: { phone: string; name?: string; external?: boolean };\n to: string[]; */\n message: string;\n platform: 'whatsapp' | 'sms';\n};\n"]}
|
package/lib/types/crm.d.ts
CHANGED
package/lib/types/crm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
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sC,CAAA;IACtC,6DAAoC,CAAA;AACtC,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,2DAAsC,CAAA;IACtC,yDAAoC,CAAA;AACtC,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;AAC/B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,oDAA+B,CAAA;IAC/B,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B","sourcesContent":["import {\n LocationValue,\n PhoneNumberRawValue,\n PhoneNumberValue,\n SearchPermissions,\n} from '@bisondesk/commons-sdk/types';\nimport { PublicSearchDefinition } from './definitions.js';\nimport { Interest } from './interests.js';\nimport { BaseEvent } from './internal-events.js';\nimport { ReferenceData } from './utils.js';\n\nexport enum OrganizatioRiskTags {\n BAD_FINANCIAL_INFO = 'BAD_FINANCIAL_INFO',\n WRITE_OFF = 'WRITE_OFF',\n VAT_NUMBER_INVALID = 'VAT_NUMBER_INVALID',\n INSTINCT = 'INSTINCT',\n INVALID_ADDRESS = 'INVALID_ADDRESS',\n NEW_CUSTOMER = 'NEW_CUSTOMER',\n BANK_ACCOUNT_BLOCKED = 'BANK_ACCOUNT_BLOCKED',\n NO_GPS = 'NO_GPS',\n BANKRUPTCY = 'BANKRUPTCY',\n JUDICIAL_REORGANISATION_WCO = 'JUDICIAL_REORGANISATION_WCO',\n NO_DRIVING_LICENSE = 'NO_DRIVING_LICENSE',\n}\n\nexport enum ContactActions {\n UPSERT = 'upsert',\n DELETE = 'delete',\n}\n\nexport enum OrganizationActions {\n ADD_ACTIVITY = 'add_activity',\n UPSERT = 'upsert',\n DELETE = 'delete',\n SELL_TO_ORGANIZATION = 'sell_to_organization',\n}\n\nexport type CrmEvent = CrmOrganizationEvent | CrmContactEvent;\n\ntype BaseContactEvent = BaseEvent & {\n contactId: string;\n organizationId?: string;\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type ContactCreateEvent = BaseContactEvent & {\n action: 'create';\n contact: Contact;\n previousContact?: undefined;\n};\n\nexport type ContactUpdateEvent = BaseContactEvent & {\n action: 'update';\n contact: Contact;\n previousContact: Contact;\n};\n\nexport type ContactDeleteEvent = BaseContactEvent & {\n action: 'delete';\n contact?: undefined;\n previousContact: Contact;\n};\n\nexport type CrmContactEvent = ContactCreateEvent | ContactUpdateEvent | ContactDeleteEvent;\n\ntype BaseOrgEvent = BaseEvent & {\n organizationId: string;\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type OrgCreateEvent = BaseOrgEvent & {\n action: 'create';\n org: Organization;\n previousOrg?: undefined;\n};\n\nexport type OrgUpdateEvent = BaseOrgEvent & {\n action: 'update';\n org: Organization;\n previousOrg: Organization;\n};\n\nexport type OrgDeleteEvent = BaseOrgEvent & {\n action: 'delete';\n org?: undefined;\n previousOrg: Organization;\n};\n\nexport type CrmOrganizationEvent = OrgCreateEvent | OrgUpdateEvent | OrgDeleteEvent;\n\ntype BaseOrganization = {\n usages: {\n [tenantId: string]: string[]; // branchIds that are using this organization\n };\n countryCode: string;\n name: string;\n segment?: string;\n type?: 'COMPANY' | 'INDIVIDUAL' | 'GOVERNMENT';\n vatNumber?: string;\n addresses?: {\n legal?: LocationValue;\n transport?: LocationValue;\n };\n conglomerate?: boolean;\n riskTags?: string[];\n\n // billing\n billingEmails?: string[];\n skipPaymentReminders?: boolean;\n skipInvoiceEmails?: boolean;\n trustworthy?: boolean;\n // meta\n slbPartner?: boolean;\n\n tags?: string[]; // custom tags for the organization\n};\n\nexport type NewOrganization = BaseOrganization & {\n id?: undefined;\n externalId?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n billingPhone?: PhoneNumberValue | PhoneNumberRawValue;\n};\n\nexport type ValidatedNewOrganization = Omit<NewOrganization, 'billingPhone'> & {\n billingPhone?: PhoneNumberValue;\n};\n\nexport type Organization = BaseOrganization & {\n createdAt: string;\n externalId: number;\n createdBy: string;\n id: string;\n\n debt?: OrganizationDebtInfo;\n\n billingPhone?: PhoneNumberValue;\n\n disabled?: boolean;\n disabledAt?: string;\n disabledBy?: string;\n disabledReason?: string;\n};\n\nexport type OrganizationDebtInfo = {\n overdueSince?: string;\n overdueInvoices: number;\n overdueAmount: string;\n unpaidInvoices: number;\n unpaidAmount: string;\n};\n\nexport type OrgLeasingContract = {\n id: string;\n contractNumber?: string;\n vehicle: {\n id: string;\n stockNumber: string;\n administrativeNumber?: string;\n };\n};\n\nexport type SearchOrganization = {\n org: Organization;\n contract: OrgLeasingContract[]; // important for the logic regarding leasing overdue reminders\n interests?: Interest[];\n custom: {\n inUse: boolean; // is this organization in use by any of the branches of this tenant, or is it an organization from another tenant.\n lastActivityAt: string | undefined; // last activity at this organization\n lastActivityBy: string | undefined; // user that did the last activity at this organization\n engagementTypes: OrgEngagementType[] | undefined; // types of engagements this organization has in the tenant\n\n accountManagers: string[]; // dynamically determined account managers for this organization\n };\n};\n\nexport type PotentialDuplicatesReferenceData = ReferenceData & { blockIgnore?: boolean };\n\nexport type InputSearchOrganization = SearchOrganization & {\n permissions: SearchPermissions | undefined;\n};\n\nexport type SearchContact = {\n contact: Contact;\n org?: Organization;\n interests?: Interest[];\n custom: {\n accountManagers: string[]; // dynamically determined account managers for this contact\n classification: 'prospect' | 'customer';\n hasOrganization: boolean;\n lastActivityAt: string | undefined;\n lastActivityBy: string | undefined;\n };\n};\n\nexport type InputSearchContact = SearchContact & {\n permissions: SearchPermissions | undefined;\n};\n\nexport type CrmPublicSearchDefinitions = {\n searchOrg: PublicSearchDefinition;\n searchContact: PublicSearchDefinition;\n};\n\nexport enum MarketingChannel {\n Email = 'email',\n Whatsapp = 'whatsapp',\n Sms = 'sms',\n Phone = 'phone',\n}\n\nexport type MarketingPreferenceEntry = {\n optedOut: boolean;\n updatedAt: string;\n};\n\nexport type MarketingPreferences = {\n [channel in MarketingChannel]?: MarketingPreferenceEntry;\n};\n\nexport enum PartnerLevel {\n Internal = '05-internal',\n Gold = '10-gold',\n Silver = '20-silver',\n Bronze = '30-bronze',\n}\n\ntype BaseContact = {\n accountManager?: string;\n countryCode?: string; // TODO review if this should be required (UI says it is)\n language?: string;\n emails: string[];\n job?: string;\n /** free-text job title; only meaningful when `job === JOB_CATEGORY_OTHER_ID` */\n jobOther?: string;\n /** either firstName or lastName should be filled in */\n firstName?: string;\n lastName?: string;\n organizationId?: string;\n /** will not be filled if organizationId is present */\n orgName?: string;\n marketingPreferences?: MarketingPreferences;\n clientLevel?: PartnerLevel;\n\n disabledAt?: string;\n disabledBy?: string;\n disabledReason?: string;\n\n tags?: string[]; // custom tags for the contact\n\n channels?: {\n telegram?: MessagingChannelEntry;\n whatsapp?: MessagingChannelEntry;\n };\n};\n\nexport type MessagingChannelEntry = {\n id: string;\n sessionId?: string;\n};\n\nexport type NewContact = BaseContact & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n phones: Array<PhoneNumberValue | PhoneNumberRawValue>;\n organizationId?: string;\n};\n\nexport type NewContactValidated = BaseContact & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n organizationId?: string;\n phones: PhoneNumberValue[];\n};\n\nexport type Contact = BaseContact & {\n id: string;\n createdAt: string;\n createdBy: string;\n phones: PhoneNumberValue[];\n};\n\nexport enum SaveContactResolution {\n IgnoreDuplicates = 'IGNORE_DUPLICATES',\n BlockDuplicates = 'BLOCK_DUPLICATES',\n}\n\nexport enum SaveOrgResolution {\n IgnoreDuplicates = 'IGNORE_DUPLICATES',\n BlockDuplicates = 'BLOCK_DUPLICATES',\n}\n\nexport enum CrmSearchScope {\n Tenant = 'tenant',\n Conglomerate = 'conglomerate',\n}\n\nexport enum OrgEngagementType {\n offers = 'offers',\n purchases = 'purchases',\n opportunities = 'opportunities',\n sales = 'sales',\n}\n"]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const SALES_PERIOD_KEYS: readonly ["30d", "45d", "60d", "90d", "lastMonth", "mtd", "ytd", "lastYear", "12m"];
|
|
2
|
+
export type SalesPeriodKey = (typeof SALES_PERIOD_KEYS)[number];
|
|
3
|
+
export declare const DEFAULT_SALES_PERIOD: SalesPeriodKey;
|
|
4
|
+
export type SalesReportRequest = {
|
|
5
|
+
period: SalesPeriodKey;
|
|
6
|
+
};
|
|
7
|
+
export type YoyMetric = {
|
|
8
|
+
value: number | null;
|
|
9
|
+
prev: number | null;
|
|
10
|
+
pct: number | null;
|
|
11
|
+
};
|
|
12
|
+
export type TenureBucketKey = '2y' | '1-2y' | '<1y' | 'new';
|
|
13
|
+
export type TenureBucket = {
|
|
14
|
+
bucket: TenureBucketKey;
|
|
15
|
+
sharePct: number;
|
|
16
|
+
yoyPct: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type SalesReportCountry = {
|
|
19
|
+
code: string;
|
|
20
|
+
units: number;
|
|
21
|
+
yoyPct: number | null;
|
|
22
|
+
};
|
|
23
|
+
export type SalesReportSalesperson = {
|
|
24
|
+
id: string;
|
|
25
|
+
units: number;
|
|
26
|
+
yoyPct: number | null;
|
|
27
|
+
};
|
|
28
|
+
export type SalesReportConglomerateOrg = {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
units: number;
|
|
32
|
+
yoyPct: number | null;
|
|
33
|
+
};
|
|
34
|
+
export type SalesReportConglomerate = {
|
|
35
|
+
sharePct: number | null;
|
|
36
|
+
yoyPct: number | null;
|
|
37
|
+
lastYearPct: number | null;
|
|
38
|
+
orgs: SalesReportConglomerateOrg[];
|
|
39
|
+
};
|
|
40
|
+
export type SalesReportHistogramBucket = {
|
|
41
|
+
month: string;
|
|
42
|
+
count: number;
|
|
43
|
+
};
|
|
44
|
+
export type SalesReportResponse = {
|
|
45
|
+
period: {
|
|
46
|
+
key: SalesPeriodKey;
|
|
47
|
+
start: string;
|
|
48
|
+
end: string;
|
|
49
|
+
days: number;
|
|
50
|
+
yoyStart: string;
|
|
51
|
+
yoyEnd: string;
|
|
52
|
+
};
|
|
53
|
+
overview: {
|
|
54
|
+
salesPerDay: YoyMetric;
|
|
55
|
+
salesTotal: YoyMetric;
|
|
56
|
+
medianRoi: YoyMetric;
|
|
57
|
+
medianPrice: YoyMetric;
|
|
58
|
+
medianAge: YoyMetric;
|
|
59
|
+
uniqueCustomers: YoyMetric;
|
|
60
|
+
};
|
|
61
|
+
countries: SalesReportCountry[];
|
|
62
|
+
salespeople: SalesReportSalesperson[];
|
|
63
|
+
returning: TenureBucket[];
|
|
64
|
+
conglomerate: SalesReportConglomerate;
|
|
65
|
+
histogram: SalesReportHistogramBucket[];
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=reports-sales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports-sales.d.ts","sourceRoot":"/","sources":["types/reports-sales.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB,qFAUpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB,EAAE,cAAsB,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG;IAAE,MAAM,EAAE,cAAc,CAAA;CAAE,CAAC;AAS5D,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAG1F,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAE5D,MAAM,MAAM,Y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C;QACtB,SAAS,EAAE,SAAS,CAAC;QACrB,WAAW,EAAE,SAAS,CAAC;QACvB,SAAS,EAAE,SAAS,CAAC;QACrB,eAAe,EAAE,SAAS,CAAC;KAC5B,CAAC;IAEF,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAEhC,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAEtC,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,YAAY,EAAE,uBAAuB,CAAC;IAEtC,SAAS,EAAE,0BAA0B,EAAE,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports-sales.js","sourceRoot":"/","sources":["types/reports-sales.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,WAAW;IACX,KAAK;IACL,KAAK;IACL,UAAU;IACV,KAAK;CACG,CAAC;AAIX,MAAM,CAAC,MAAM,oBAAoB,GAAmB,KAAK,CAAC","sourcesContent":["/**\n * Sales report — the payload for the `Reports → Sales` tab. Everything is computed\n * from the per-tenant `opportunities` OpenSearch index, keyed on\n * `opportunity.reviewedAt` (the moment an opportunity ENTERS Preparation — our\n * \"sale\" event; `preparedAt` is when it leaves Preparation into Delivery).\n *\n * The API returns raw numbers only; the client formats (€, %, pp, \"younger\") and\n * colors the deltas.\n */\n\n/**\n * Period presets driving every metric except the fixed 18-month histogram, in\n * selector order. Single source of truth — `SalesPeriodKey` is derived from it.\n * `mtd`/`ytd` are to-date ranges (start of month/year → now); `lastMonth`/`lastYear`\n * are the previous complete calendar month/year.\n */\nexport const SALES_PERIOD_KEYS = [\n '30d',\n '45d',\n '60d',\n '90d',\n 'lastMonth',\n 'mtd',\n 'ytd',\n 'lastYear',\n '12m',\n] as const;\n\nexport type SalesPeriodKey = (typeof SALES_PERIOD_KEYS)[number];\n\nexport const DEFAULT_SALES_PERIOD: SalesPeriodKey = 'mtd';\n\nexport type SalesReportRequest = { period: SalesPeriodKey };\n\n/**\n * A metric for the selected window with its year-over-year counterpart.\n * - `value`: current window (null when undefined, e.g. no data / no median).\n * - `prev`: same metric in the window shifted back exactly one year.\n * - `pct`: fractional change `(value - prev) / prev` (null when prev is 0 or\n * either side is undefined). The client renders/colors the delta.\n */\nexport type YoyMetric = { value: number | null; prev: number | null; pct: number | null };\n\n/** Tenure buckets for returning-customer analysis (share of buyers in the window). */\nexport type TenureBucketKey = '2y' | '1-2y' | '<1y' | 'new';\n\nexport type TenureBucket = {\n bucket: TenureBucketKey;\n /** Share of buyers in this bucket, 0–100. */\n sharePct: number;\n /** Year-over-year change in this share, as a fractional relative change (null when no prior data). */\n yoyPct: number | null;\n};\n\nexport type SalesReportCountry = {\n /** ISO country code (lowercase) from `org.countryCode`. */\n code: string;\n units: number;\n yoyPct: number | null;\n};\n\nexport type SalesReportSalesperson = {\n /** User id from `opportunity.accountManager`; the client resolves name + avatar. */\n id: string;\n units: number;\n yoyPct: number | null;\n};\n\n/** A conglomerate-flagged organization (there is no group/parent model — each org stands alone). */\nexport type SalesReportConglomerateOrg = {\n /** `org.id`. */\n id: string;\n /** `org.name` (resolved server-side); falls back to the id when missing. */\n name: string;\n units: number;\n yoyPct: number | null;\n};\n\nexport type SalesReportConglomerate = {\n /** Share of units going to conglomerate-flagged customers, 0–100 (null when no sales). */\n sharePct: number | null;\n /** Year-over-year change in that share, as a fractional relative change (null when no prior data). */\n yoyPct: number | null;\n /** The conglomerate share in the year-ago window, 0–100. */\n lastYearPct: number | null;\n /** Top conglomerate-flagged organizations by units in the current window. */\n orgs: SalesReportConglomerateOrg[];\n};\n\nexport type SalesReportHistogramBucket = {\n /** Calendar month, `YYYY-MM`. */\n month: string;\n count: number;\n};\n\nexport type SalesReportResponse = {\n period: {\n key: SalesPeriodKey;\n /** Current window, half-open `[start, end)` (ISO strings). */\n start: string;\n end: string;\n /** Number of days in the window (the `salesPerDay` denominator). */\n days: number;\n /** Year-ago window `[yoyStart, yoyEnd)`. */\n yoyStart: string;\n yoyEnd: string;\n };\n /** All-types overview KPIs. `medianAge` is in years (a decrease is good — younger stock). */\n overview: {\n salesPerDay: YoyMetric;\n salesTotal: YoyMetric;\n medianRoi: YoyMetric;\n medianPrice: YoyMetric;\n medianAge: YoyMetric;\n uniqueCustomers: YoyMetric;\n };\n /** Top countries by units in the current window. */\n countries: SalesReportCountry[];\n /** All sales people with units in either window (capped; the client list scrolls). */\n salespeople: SalesReportSalesperson[];\n /** Returning-customer tenure shares (4 buckets). */\n returning: TenureBucket[];\n conglomerate: SalesReportConglomerate;\n /** Fixed last-18-calendar-months histogram of opps into Preparation (period-independent). */\n histogram: SalesReportHistogramBucket[];\n};\n"]}
|
package/lib/types/tenants.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ export declare enum TenantModule {
|
|
|
27
27
|
Bootstrap = "bootstrap",
|
|
28
28
|
WhatsappNotifications = "whatsapp_notifications",
|
|
29
29
|
Hexon = "hexon",
|
|
30
|
-
Transport = "transport"
|
|
30
|
+
Transport = "transport",
|
|
31
|
+
Reports = "reports"
|
|
31
32
|
}
|
|
32
33
|
export type Tenant = PublicTenant & {
|
|
33
34
|
cognito?: CognitoInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"/","sources":["types/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EA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AmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,aAAa,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
package/lib/types/tenants.js
CHANGED
|
@@ -18,5 +18,6 @@ export var TenantModule;
|
|
|
18
18
|
TenantModule["WhatsappNotifications"] = "whatsapp_notifications";
|
|
19
19
|
TenantModule["Hexon"] = "hexon";
|
|
20
20
|
TenantModule["Transport"] = "transport";
|
|
21
|
+
TenantModule["Reports"] = "reports";
|
|
21
22
|
})(TenantModule || (TenantModule = {}));
|
|
22
23
|
//# sourceMappingURL=tenants.js.map
|
package/lib/types/tenants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"/","sources":["types/tenants.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"tenants.js","sourceRoot":"/","sources":["types/tenants.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,YAoBX;AApBD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;IACjB,2DAA2C,CAAA;IAC3C,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,iDAAiC,CAAA;IACjC,uCAAuB,CAAA;IACvB,gEAAgD,CAAA;IAChD,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,mCAAmB,CAAA;AACrB,CAAC,EApBW,YAAY,KAAZ,YAAY,QAoBvB","sourcesContent":["import { CognitoInfo, LocationValue, Region } from '@bisondesk/commons-sdk/types';\nimport { OpportunityType } from '../constants.js';\n\nexport type PublicTenant = {\n defaultCountry: string;\n defaultCurrency: string;\n defaultLanguage: string;\n id: string; // the id is provided on creation bc we assume tenants will be created by someone on the team\n name: string;\n region: Region;\n subdomains: [string, ...string[]];\n\n // Pay attention to what information is added here since\n // the tenant can be obtained without authentication\n};\n\nexport enum TenantModule {\n Administration = 'administration',\n App = 'app',\n CRM = 'crm',\n Docs = 'docs',\n Leads = 'leads',\n Leasing = 'leasing',\n Marketing = 'marketing',\n Insights = 'insights',\n Opportunities = 'opportunities',\n Offers = 'offers',\n VehiclesMasterData = 'vehicles_master_data',\n Vehicles = 'vehicles',\n Tasks = 'tasks',\n TrackAndTrace = 'track_and_trace',\n Bootstrap = 'bootstrap',\n WhatsappNotifications = 'whatsapp_notifications',\n Hexon = 'hexon',\n Transport = 'transport',\n Reports = 'reports',\n}\n\nexport type Tenant = PublicTenant & {\n cognito?: CognitoInfo;\n languages: [string, ...string[]];\n conglomerate?: string;\n emailDomain: string;\n hyperdmsIds?: string[];\n hyperportalId?: string;\n\n /* deprecated */\n exactAccounting?: boolean;\n\n branches: [Branch, ...Branch[]];\n modules: TenantModule[];\n test?: boolean;\n opportunities: {\n types: OpportunityType[];\n };\n crm?: {\n vatNumberRequiredForCompanies?: boolean;\n };\n accounting?: {\n costCenterPerLine?: boolean;\n };\n};\n\nexport type Branch = {\n id: string;\n name: string;\n country: string;\n language: string;\n exactAccounting?: boolean;\n currency: string;\n adminNumberPrefix: string;\n stockNumberPrefix: string;\n vatNumber: string;\n contactPerson?: { firstName: string; lastName: string };\n vatRates: {\n standard: string; //percentage value (e.g. 21)\n };\n location: LocationValue;\n\n storecoveExternalId?: number;\n externalQuote?: boolean;\n hyperdmsId?: string;\n internalDealsEnabled?: boolean;\n};\n\nexport type HdmsVehiclesSync = {\n active: boolean;\n};\n\nexport type HdmsCrmSync = {\n active: boolean;\n};\n\nexport type HdmsDocumentSync = {\n active: boolean;\n};\n\nexport type TenantSyncSettings = {\n tenantId: string;\n hdmsVehicles: HdmsVehiclesSync | undefined;\n hdmsCrm: HdmsCrmSync | undefined;\n hdmsDocuments: HdmsDocumentSync | undefined;\n};\n\nexport type WhatsappStateResponse = {\n enabled: boolean;\n};\n"]}
|
|
@@ -9,7 +9,7 @@ export declare enum CommissionTeam {
|
|
|
9
9
|
NEW_TRAILERS = "new_trailers_team",
|
|
10
10
|
LEASING = "leasing_team"
|
|
11
11
|
}
|
|
12
|
-
export type CommissionType = 'percentage' | 'unit';
|
|
12
|
+
export type CommissionType = 'percentage' | 'unit' | 'bucket';
|
|
13
13
|
export type MetricConfig = {
|
|
14
14
|
id: string;
|
|
15
15
|
commissionType: CommissionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-performance.d.ts","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-performance.d.ts","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,oBAAY,iBAAiB;IAC3B,uBAAuB,4BAA4B;IACnD,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;CACxC;AAED,oBAAY,cAAc;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AM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-performance.js","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-performance.js","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"AAMA,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wEAAmD,CAAA;IACnD,0DAAqC,CAAA;IACrC,4DAAuC,CAAA;AACzC,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,oDAAkC,CAAA;IAClC,0CAAwB,CAAA;AAC1B,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAoDD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B","sourcesContent":["// The commission can be expressed either as a percentage (for profit-based metrics),\n// as an amount per unit (for unit-based metrics), or as a per-deal bucket reward\n// (for metrics where each qualifying record earns a flat amount based on which tier\n// range it falls into — see 'bucket' below).\nimport { AttachmentValue } from '@bisondesk/commons-sdk/types';\n\nexport enum CommissionSetting {\n INBOUND_USED_TEAM_USERS = 'inbound_used_team_users',\n TEAM_MEMBERSHIPS = 'team_memberships',\n LEASING_COMPANIES = 'leasing_companies',\n}\n\nexport enum CommissionTeam {\n USED = 'used_team',\n NEW_TRAILERS = 'new_trailers_team',\n LEASING = 'leasing_team',\n}\n\n// - 'percentage': commission = value * rate / 100 (value is a money sum, rate is a %)\n// - 'unit': commission = value * rate (value is a count, rate is € per unit)\n// - 'bucket': non-cumulative per-deal reward. Each qualifying record is classified\n// into the tier whose [lowerBound, upperBound] range contains a measured\n// attribute (e.g. days until payment), and earns that tier's\n// commissionRate (€). The metric value is the already-summed € reward, so\n// the commission engine treats it as a passthrough (no marginal stacking).\nexport type CommissionType = 'percentage' | 'unit' | 'bucket';\n\n// Comprehensive metric configuration\nexport type MetricConfig = {\n id: string;\n commissionType: CommissionType;\n personal: boolean; // if true, this metric is personal to the user\n format?: Intl.NumberFormatOptions;\n listVehicles?: boolean; // should this metric be allowed to list vehicles?\n defaultTarget?: number; // default target for the metric, useful for showing metrics to users w/o a commission plan\n autoHide?: boolean; // hide in UI when annual value is 0\n manualEntry?: boolean; // if true, data comes from manually added entries instead of vehicle_business_overviews\n settings?: CommissionSetting[]; // commission settings this metric depends on\n};\n\n// A tier defines a range of performance (using lower and optional upper bounds)\n// along with the associated commission rate. For example, 0–100 units, then 100–400 units, etc.\n// For 'bucket' metrics the bounds describe the measured attribute (e.g. days until payment:\n// 0–7, 8–30, 30+) and commissionRate is the flat € awarded per qualifying deal in that range;\n// tiers are matched in order, first match wins, so overlapping bounds resolve to the first tier.\nexport type CommissionTier = {\n lowerBound: number; // inclusive\n upperBound?: number; // inclusive (omit for the last tier)\n commissionRate: number;\n default?: boolean; // if true, this tier's upper bound is used as reference for dashboards visualizations\n};\n\n// Each target (metric) has one or more tiers.\n// For example, for UnitsSold you might have three tiers corresponding to bare minimum, normal, and above average.\nexport type TargetCommission = {\n metricId: string;\n tiers: CommissionTier[];\n autoHide?: boolean; // overrides MetricConfig.autoHide for this user\n};\n\nexport type UserCommissionPlan = {\n userId: string;\n year: number;\n startDate?: string; // in case the commission plan is only valid from this date onwards, not the whole year\n targets: TargetCommission[];\n showCommissionToUser?: boolean; // if true, the user can see their own commission amounts\n};\n\nexport enum CommissionGrade {\n TooLow = 'tooLow',\n Low = 'low',\n OnTarget = 'onTarget',\n}\n\nexport type UserCommissionStatus = {\n userId: string;\n createdAt: string; // iso date string\n year: number;\n performance: {\n [metricId: string]: {\n value: string; // actual metric achieved\n estimated?: string; // estimated commission for the metric, based on the current trend\n grade?: CommissionGrade; // grade for the metric\n target?: string; // the upper bound of the default tier\n };\n };\n commission?: {\n total: string;\n potential?: string;\n estimated?: string; // estimated commission for the year, based on the current trend\n grade?: CommissionGrade;\n detailed?: {\n [metricId: string]: {\n earned: string; // commission amount for each target\n potential?: string; // potential commission for the metric, based on the actual metric achieved and the commission tiers\n };\n };\n };\n payments?: {\n total: string;\n yearly?: {\n // details for each year for which the outstanding commission is > 0\n [year: number]: {\n paid: string;\n };\n };\n };\n outstanding?: {\n total: string;\n // details for each year for which the outstanding commission is > 0\n yearly?: {\n [year: number]: {\n outstanding: string;\n };\n };\n };\n};\n\nexport type NewUserCommissionPayment = {\n userId: string; // who was the payment made to\n paidBy: string;\n paidAt: string;\n amount: string;\n comments?: string; // optional comment\n};\n\nexport type UserCommissionPayment = {\n id: string;\n} & NewUserCommissionPayment;\n\nexport type UserCommissionsPaymentRequest = {\n limit?: number;\n nextToken?: string;\n};\n\nexport type UserCommissionInfo = {\n manager?: boolean;\n canViewCommission?: boolean;\n performance: boolean;\n planYears: number[];\n};\n\nexport type UserCommissionListInfo = {\n users: { userId: string }[];\n};\n\nexport type MonthlyPerformanceData = {\n month: number; // 1-12\n metrics: Record<string, number>;\n};\n\nexport type PerformanceVehicle = {\n stockNumber: string;\n profit?: string;\n vehicleId: string;\n title: string;\n year: number;\n km?: number;\n configuration: string;\n euronorm?: string;\n mainPicture?: AttachmentValue;\n saleAt?: string;\n sellerId?: string;\n purchaseAt?: string;\n purchaserId?: string;\n};\n\nexport type PerformanceVehiclesRequest = {\n userId: string;\n targetId: string;\n year?: number;\n offset?: number;\n limit?: number;\n month?: number;\n};\n\nexport type NewManualPerformanceEntry = {\n userId: string;\n metricId: string;\n reference: string;\n year: number;\n};\n\nexport type ManualPerformanceEntry = {\n id: string;\n createdBy: string;\n createdAt: string;\n} & NewManualPerformanceEntry;\n"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var ActivityType;
|
|
2
|
+
(function (ActivityType) {
|
|
3
|
+
ActivityType["CALL"] = "call";
|
|
4
|
+
ActivityType["MEETING"] = "meeting";
|
|
5
|
+
ActivityType["EMAIL"] = "email";
|
|
6
|
+
ActivityType["CHAT"] = "chat";
|
|
7
|
+
})(ActivityType || (ActivityType = {}));
|
|
8
|
+
export var ActivityActions;
|
|
9
|
+
(function (ActivityActions) {
|
|
10
|
+
ActivityActions["DELETE"] = "delete";
|
|
11
|
+
ActivityActions["EDIT"] = "edit";
|
|
12
|
+
})(ActivityActions || (ActivityActions = {}));
|
|
13
|
+
//# sourceMappingURL=activities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities.js","sourceRoot":"","sources":["activities.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
|
package/src/types/activities.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comparables.js","sourceRoot":"","sources":["comparables.ts"],"names":[],"mappings":""}
|
package/src/types/crm.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export var OrganizatioRiskTags;
|
|
2
|
+
(function (OrganizatioRiskTags) {
|
|
3
|
+
OrganizatioRiskTags["BAD_FINANCIAL_INFO"] = "BAD_FINANCIAL_INFO";
|
|
4
|
+
OrganizatioRiskTags["VAT_NUMBER_INVALID"] = "VAT_NUMBER_INVALID";
|
|
5
|
+
OrganizatioRiskTags["INSTINCT"] = "INSTINCT";
|
|
6
|
+
OrganizatioRiskTags["NEW_CUSTOMER"] = "NEW_CUSTOMER";
|
|
7
|
+
OrganizatioRiskTags["BANK_ACCOUNT_BLOCKED"] = "BANK_ACCOUNT_BLOCKED";
|
|
8
|
+
OrganizatioRiskTags["NO_GPS"] = "NO_GPS";
|
|
9
|
+
})(OrganizatioRiskTags || (OrganizatioRiskTags = {}));
|
|
10
|
+
export var ContactActions;
|
|
11
|
+
(function (ContactActions) {
|
|
12
|
+
ContactActions["UPSERT"] = "upsert";
|
|
13
|
+
ContactActions["DELETE"] = "delete";
|
|
14
|
+
})(ContactActions || (ContactActions = {}));
|
|
15
|
+
export var OrganizationActions;
|
|
16
|
+
(function (OrganizationActions) {
|
|
17
|
+
OrganizationActions["ADD_ACTIVITY"] = "add_activity";
|
|
18
|
+
OrganizationActions["UPSERT"] = "upsert";
|
|
19
|
+
OrganizationActions["DELETE"] = "delete";
|
|
20
|
+
OrganizationActions["SELL_TO_ORGANIZATION"] = "sell_to_organization";
|
|
21
|
+
})(OrganizationActions || (OrganizationActions = {}));
|
|
22
|
+
export var MarketingChannel;
|
|
23
|
+
(function (MarketingChannel) {
|
|
24
|
+
MarketingChannel["Email"] = "email";
|
|
25
|
+
MarketingChannel["Whatsapp"] = "whatsapp";
|
|
26
|
+
MarketingChannel["Sms"] = "sms";
|
|
27
|
+
MarketingChannel["Phone"] = "phone";
|
|
28
|
+
})(MarketingChannel || (MarketingChannel = {}));
|
|
29
|
+
export var PartnerLevel;
|
|
30
|
+
(function (PartnerLevel) {
|
|
31
|
+
PartnerLevel["Internal"] = "05-internal";
|
|
32
|
+
PartnerLevel["Gold"] = "10-gold";
|
|
33
|
+
PartnerLevel["Silver"] = "20-silver";
|
|
34
|
+
PartnerLevel["Bronze"] = "30-bronze";
|
|
35
|
+
})(PartnerLevel || (PartnerLevel = {}));
|
|
36
|
+
export var SaveContactResolution;
|
|
37
|
+
(function (SaveContactResolution) {
|
|
38
|
+
SaveContactResolution["IgnoreDuplicates"] = "IGNORE_DUPLICATES";
|
|
39
|
+
SaveContactResolution["BlockDuplicates"] = "BLOCK_DUPLICATES";
|
|
40
|
+
})(SaveContactResolution || (SaveContactResolution = {}));
|
|
41
|
+
export var SaveOrgResolution;
|
|
42
|
+
(function (SaveOrgResolution) {
|
|
43
|
+
SaveOrgResolution["IgnoreDuplicates"] = "IGNORE_DUPLICATES";
|
|
44
|
+
SaveOrgResolution["BlockDuplicates"] = "BLOCK_DUPLICATES";
|
|
45
|
+
})(SaveOrgResolution || (SaveOrgResolution = {}));
|
|
46
|
+
export var CrmSearchScope;
|
|
47
|
+
(function (CrmSearchScope) {
|
|
48
|
+
CrmSearchScope["Tenant"] = "tenant";
|
|
49
|
+
CrmSearchScope["Conglomerate"] = "conglomerate";
|
|
50
|
+
})(CrmSearchScope || (CrmSearchScope = {}));
|
|
51
|
+
export var OrgEngagementType;
|
|
52
|
+
(function (OrgEngagementType) {
|
|
53
|
+
OrgEngagementType["offers"] = "offers";
|
|
54
|
+
OrgEngagementType["purchases"] = "purchases";
|
|
55
|
+
OrgEngagementType["opportunities"] = "opportunities";
|
|
56
|
+
OrgEngagementType["sales"] = "sales";
|
|
57
|
+
})(OrgEngagementType || (OrgEngagementType = {}));
|
|
58
|
+
//# sourceMappingURL=crm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.js","sourceRoot":"","sources":["crm.ts"],"names":[],"mappings":"AAUA,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,gEAAyC,CAAA;IACzC,gEAAyC,CAAA;IACzC,4CAAqB,CAAA;IACrB,oDAA6B,CAAA;IA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iB,CAAA;IACjB,4CAAuB,CAAA;IACvB,oDAA+B,CAAA;IAC/B,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B"}
|
package/src/types/crm.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["dashboard.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["definitions.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["fields.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insights.js","sourceRoot":"","sources":["insights.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var InterestActions;
|
|
2
|
+
(function (InterestActions) {
|
|
3
|
+
InterestActions["SET_INTEREST"] = "set_interest";
|
|
4
|
+
})(InterestActions || (InterestActions = {}));
|
|
5
|
+
export const isOpportunityInterest = (interest) => 'opportunityId' in interest;
|
|
6
|
+
//# sourceMappingURL=interests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interests.js","sourceRoot":"","sources":["interests.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,gDAA6B,CAAA;AAC/B,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B;AAwBD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAkB,EAAmC,EAAE,CAC3F,eAAe,IAAI,QAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var InternalEventTypes;
|
|
2
|
+
(function (InternalEventTypes) {
|
|
3
|
+
InternalEventTypes["VEHICLE_PURCHASE"] = "vehicle-purchases";
|
|
4
|
+
InternalEventTypes["ORGANIZATION"] = "organizations";
|
|
5
|
+
InternalEventTypes["CONTACT"] = "contacts";
|
|
6
|
+
InternalEventTypes["FINANCE_DOCUMENT"] = "finance-documents";
|
|
7
|
+
InternalEventTypes["OPPORTUNITY"] = "opportunities";
|
|
8
|
+
InternalEventTypes["VEHICLE"] = "vehicles";
|
|
9
|
+
InternalEventTypes["SALE_PAYMENT"] = "sale-payments";
|
|
10
|
+
InternalEventTypes["PURCHASE_PAYMENT"] = "vehicle-purchase-payments";
|
|
11
|
+
InternalEventTypes["OFFER"] = "offers";
|
|
12
|
+
})(InternalEventTypes || (InternalEventTypes = {}));
|
|
13
|
+
export var InternalNotificationChannels;
|
|
14
|
+
(function (InternalNotificationChannels) {
|
|
15
|
+
InternalNotificationChannels["APP"] = "app";
|
|
16
|
+
InternalNotificationChannels["EMAIL"] = "email";
|
|
17
|
+
})(InternalNotificationChannels || (InternalNotificationChannels = {}));
|
|
18
|
+
//# sourceMappingURL=internal-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-events.js","sourceRoot":"","sources":["internal-events.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,4DAAsC,CAAA;IACtC,oDAA8B,CAAA;IAC9B,0CAAoB,CAAA;IACpB,4DAAsC,CAAA;IACtC,mDAA6B,CAAA;IAC7B,0CAAoB,CAAA;IACpB,oDAA8B,CAAA;IAC9B,oEAA8C,CAAA;IAC9C,sCAAgB,CAAA;AAClB,CAAC,EAVW,kBAAkB,KAAlB,kBAAkB,QAU7B;AAED,MAAM,CAAN,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,2CAAW,CAAA;IACX,+CAAe,CAAA;AACjB,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internet-opportunities.js","sourceRoot":"","sources":["internet-opportunities.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internet-vehicles.js","sourceRoot":"","sources":["internet-vehicles.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-administration.js","sourceRoot":"","sources":["leasing-administration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-debtors.js","sourceRoot":"","sources":["leasing-debtors.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-search.js","sourceRoot":"","sources":["leasing-search.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var LeasingItemsPaymentSplit;
|
|
2
|
+
(function (LeasingItemsPaymentSplit) {
|
|
3
|
+
LeasingItemsPaymentSplit["Customer"] = "customer";
|
|
4
|
+
LeasingItemsPaymentSplit["Split"] = "split";
|
|
5
|
+
LeasingItemsPaymentSplit["Company"] = "company";
|
|
6
|
+
})(LeasingItemsPaymentSplit || (LeasingItemsPaymentSplit = {}));
|
|
7
|
+
//# sourceMappingURL=leasing-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leasing-settings.js","sourceRoot":"","sources":["leasing-settings.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAqB,CAAA;IACrB,2CAAe,CAAA;IACf,+CAAmB,CAAA;AACrB,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC"}
|