@bisondesk/core-sdk 1.0.544 → 1.0.546

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.
Files changed (114) hide show
  1. package/lib/constants.d.ts +0 -2
  2. package/lib/constants.d.ts.map +1 -1
  3. package/lib/constants.js +0 -2
  4. package/lib/constants.js.map +1 -1
  5. package/lib/types/delivery-settings.d.ts +10 -5
  6. package/lib/types/delivery-settings.d.ts.map +1 -1
  7. package/lib/types/delivery-settings.js.map +1 -1
  8. package/lib/types/opportunities.d.ts +0 -3
  9. package/lib/types/opportunities.d.ts.map +1 -1
  10. package/lib/types/opportunities.js.map +1 -1
  11. package/lib/types/quotes.d.ts +2 -3
  12. package/lib/types/quotes.d.ts.map +1 -1
  13. package/lib/types/quotes.js +0 -1
  14. package/lib/types/quotes.js.map +1 -1
  15. package/lib/types/tenants.d.ts +1 -2
  16. package/lib/types/tenants.d.ts.map +1 -1
  17. package/lib/types/tenants.js +0 -1
  18. package/lib/types/tenants.js.map +1 -1
  19. package/lib/types/vehicle-performance.d.ts +2 -0
  20. package/lib/types/vehicle-performance.d.ts.map +1 -1
  21. package/lib/types/vehicle-performance.js.map +1 -1
  22. package/lib/types/vehicles.d.ts +1 -11
  23. package/lib/types/vehicles.d.ts.map +1 -1
  24. package/lib/types/vehicles.js +0 -1
  25. package/lib/types/vehicles.js.map +1 -1
  26. package/lib/utils/vehicles.d.ts +5 -1
  27. package/lib/utils/vehicles.d.ts.map +1 -1
  28. package/lib/utils/vehicles.js +2 -1
  29. package/lib/utils/vehicles.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/constants.ts +0 -2
  32. package/src/types/delivery-settings.ts +13 -6
  33. package/src/types/opportunities.ts +0 -3
  34. package/src/types/quotes.ts +1 -2
  35. package/src/types/tenants.ts +0 -1
  36. package/src/types/vehicle-performance.ts +4 -0
  37. package/src/types/vehicles.ts +0 -12
  38. package/src/utils/vehicles.ts +10 -2
  39. package/tsconfig.tsbuildinfo +1 -1
  40. package/lib/types/transports.d.ts +0 -110
  41. package/lib/types/transports.d.ts.map +0 -1
  42. package/lib/types/transports.js +0 -44
  43. package/lib/types/transports.js.map +0 -1
  44. package/src/types/activities.js +0 -13
  45. package/src/types/activities.js.map +0 -1
  46. package/src/types/comparables.js +0 -2
  47. package/src/types/comparables.js.map +0 -1
  48. package/src/types/crm.js +0 -58
  49. package/src/types/crm.js.map +0 -1
  50. package/src/types/dashboard.js +0 -2
  51. package/src/types/dashboard.js.map +0 -1
  52. package/src/types/definitions.js +0 -2
  53. package/src/types/definitions.js.map +0 -1
  54. package/src/types/fields.js +0 -2
  55. package/src/types/fields.js.map +0 -1
  56. package/src/types/insights.js +0 -2
  57. package/src/types/insights.js.map +0 -1
  58. package/src/types/interests.js +0 -6
  59. package/src/types/interests.js.map +0 -1
  60. package/src/types/internal-events.js +0 -18
  61. package/src/types/internal-events.js.map +0 -1
  62. package/src/types/internet-opportunities.js +0 -2
  63. package/src/types/internet-opportunities.js.map +0 -1
  64. package/src/types/internet-vehicles.js +0 -2
  65. package/src/types/internet-vehicles.js.map +0 -1
  66. package/src/types/leasing-administration.js +0 -2
  67. package/src/types/leasing-administration.js.map +0 -1
  68. package/src/types/leasing-debtors.js +0 -2
  69. package/src/types/leasing-debtors.js.map +0 -1
  70. package/src/types/leasing-search.js +0 -2
  71. package/src/types/leasing-search.js.map +0 -1
  72. package/src/types/leasing-settings.js +0 -7
  73. package/src/types/leasing-settings.js.map +0 -1
  74. package/src/types/leasing.js +0 -38
  75. package/src/types/leasing.js.map +0 -1
  76. package/src/types/marketing.js +0 -35
  77. package/src/types/marketing.js.map +0 -1
  78. package/src/types/offers.js +0 -56
  79. package/src/types/opportunities.js +0 -107
  80. package/src/types/opportunities.js.map +0 -1
  81. package/src/types/payments.js +0 -7
  82. package/src/types/picklists.js +0 -2
  83. package/src/types/picklists.js.map +0 -1
  84. package/src/types/quotes.js +0 -42
  85. package/src/types/recently-viewed.js +0 -2
  86. package/src/types/recently-viewed.js.map +0 -1
  87. package/src/types/reservations.js +0 -5
  88. package/src/types/reservations.js.map +0 -1
  89. package/src/types/roi-ratings.js +0 -5
  90. package/src/types/roi-ratings.js.map +0 -1
  91. package/src/types/saved-filters.js +0 -9
  92. package/src/types/saved-filters.js.map +0 -1
  93. package/src/types/search.js +0 -2
  94. package/src/types/search.js.map +0 -1
  95. package/src/types/settings.js +0 -2
  96. package/src/types/settings.js.map +0 -1
  97. package/src/types/templates.js +0 -2
  98. package/src/types/templates.js.map +0 -1
  99. package/src/types/tenants.js +0 -21
  100. package/src/types/tenants.js.map +0 -1
  101. package/src/types/transports.ts +0 -149
  102. package/src/types/user-performance.js +0 -7
  103. package/src/types/user-performance.js.map +0 -1
  104. package/src/types/utils.js +0 -2
  105. package/src/types/validation.js +0 -2
  106. package/src/types/validation.js.map +0 -1
  107. package/src/types/vehicle-sales.js +0 -6
  108. package/src/types/vehicle-sales.js.map +0 -1
  109. package/src/types/vehicles.js +0 -98
  110. package/src/types/vehicles.js.map +0 -1
  111. package/src/utils/leasing.js +0 -6
  112. package/src/utils/leasing.js.map +0 -1
  113. package/src/utils/opportunities.js +0 -48
  114. package/src/utils/opportunities.js.map +0 -1
@@ -1,110 +0,0 @@
1
- import { LocationValue, NextList, PaginatedList } from '@bisondesk/commons-sdk/types';
2
- import { Organization } from './crm.js';
3
- import { Opportunity } from './opportunities.js';
4
- import { DeliveryTypes } from './quotes.js';
5
- import { BaseSearchRequest, SortOrder } from './search.js';
6
- import { ReferenceData } from './utils.js';
7
- import { Vehicle, VehiclePurchase } from './vehicles.js';
8
- export declare enum TransportType {
9
- PurchasePickUp = "PURCHASE_PICK_UP",
10
- SaleDelivery = "SALE_DELIVERY"
11
- }
12
- export declare enum TransportStatus {
13
- Todo = "TODO",
14
- Planning = "PLANNING",
15
- Ready = "READY",
16
- OngoingInternal = "ONGOING_INTERNAL",
17
- OngoingExternal = "ONGOING_EXTERNAL",
18
- Done = "DONE"
19
- }
20
- export declare const TransportStatusOrder: TransportStatus[];
21
- export declare const TransportDoneColumnId = TransportStatus.Done;
22
- export declare const TransportKanbanEndColumns: TransportStatus[];
23
- export declare const TransportKanbanColumns: TransportStatus[];
24
- export declare enum TransportPriority {
25
- Normal = "NORMAL",
26
- High = "HIGH",
27
- Urgent = "URGENT"
28
- }
29
- export declare const TransportDeliveryType: {
30
- readonly Address: DeliveryTypes.ADDRESS;
31
- readonly Port: DeliveryTypes.PORT;
32
- readonly PortAndShip: DeliveryTypes.PORT_AND_SHIP;
33
- };
34
- export type TransportDeliveryType = (typeof TransportDeliveryType)[keyof typeof TransportDeliveryType];
35
- export type Transport = {
36
- id: string;
37
- vehicleId: string;
38
- opportunityId?: string;
39
- type: TransportType;
40
- deliveryType: TransportDeliveryType;
41
- status: TransportStatus;
42
- priority: TransportPriority;
43
- adminApproved: boolean;
44
- notes?: string;
45
- cleaningNeeded?: boolean;
46
- stacking?: boolean;
47
- stackingDetails?: string;
48
- port?: {
49
- sourcePort?: string;
50
- destinationPort?: string;
51
- deliveryLocation?: string;
52
- bookingRef?: string;
53
- shippingCompany?: string;
54
- ets?: string;
55
- eta?: string;
56
- };
57
- address?: LocationValue;
58
- log: Array<{
59
- status: TransportStatus;
60
- completedAt: string;
61
- completedBy: string;
62
- }>;
63
- doneAt?: string;
64
- doneBy?: string;
65
- canceledAt?: string;
66
- canceledBy?: string;
67
- createdAt: string;
68
- createdBy: string;
69
- updatedAt: string;
70
- updatedBy: string;
71
- };
72
- export declare enum TransportWarningCode {
73
- PurchaseLogisticsNotReady = "purchase_logistics_not_ready"
74
- }
75
- export type TransportWarning = {
76
- code: TransportWarningCode;
77
- details?: Record<string, string | number | boolean>;
78
- };
79
- export type SearchTransport = {
80
- transport: Transport;
81
- vehicle: Vehicle;
82
- org: Organization;
83
- opportunity?: Opportunity;
84
- purchase: VehiclePurchase;
85
- custom: {
86
- commercialUserIds: string[];
87
- warnings: TransportWarning[];
88
- };
89
- };
90
- export type SearchTransportList = PaginatedList<SearchTransport, ReferenceData>;
91
- export type TransportKanbanColumn = {
92
- status: TransportStatus;
93
- results: SearchTransport[];
94
- totalCount: number;
95
- };
96
- export type MSearchTransportsKanbanColumn = {
97
- column: TransportKanbanColumn;
98
- nextToken?: string;
99
- };
100
- export type KanbanTransportsSearchRequest = BaseSearchRequest & {
101
- nextTokens?: Record<string, string | undefined>;
102
- statusSortBy?: Record<TransportStatus, {
103
- fieldId: string;
104
- order: SortOrder;
105
- }[]>;
106
- };
107
- export type KanbanTransportsNextList = Omit<NextList<TransportKanbanColumn, ReferenceData>, 'nextToken'> & {
108
- nextTokens?: Record<string, string | undefined>;
109
- };
110
- //# sourceMappingURL=transports.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transports.d.ts","sourceRoot":"/","sources":["types/transports.ts"],"names":[],"mappings":"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"}
@@ -1,44 +0,0 @@
1
- import { DeliveryTypes } from './quotes.js';
2
- export var TransportType;
3
- (function (TransportType) {
4
- TransportType["PurchasePickUp"] = "PURCHASE_PICK_UP";
5
- TransportType["SaleDelivery"] = "SALE_DELIVERY";
6
- })(TransportType || (TransportType = {}));
7
- export var TransportStatus;
8
- (function (TransportStatus) {
9
- TransportStatus["Todo"] = "TODO";
10
- TransportStatus["Planning"] = "PLANNING";
11
- TransportStatus["Ready"] = "READY";
12
- TransportStatus["OngoingInternal"] = "ONGOING_INTERNAL";
13
- TransportStatus["OngoingExternal"] = "ONGOING_EXTERNAL";
14
- TransportStatus["Done"] = "DONE";
15
- })(TransportStatus || (TransportStatus = {}));
16
- export const TransportStatusOrder = [
17
- TransportStatus.Todo,
18
- TransportStatus.Planning,
19
- TransportStatus.Ready,
20
- TransportStatus.OngoingInternal,
21
- TransportStatus.OngoingExternal,
22
- ];
23
- export const TransportDoneColumnId = TransportStatus.Done;
24
- export const TransportKanbanEndColumns = [TransportDoneColumnId];
25
- export const TransportKanbanColumns = [
26
- ...TransportStatusOrder,
27
- ...TransportKanbanEndColumns,
28
- ];
29
- export var TransportPriority;
30
- (function (TransportPriority) {
31
- TransportPriority["Normal"] = "NORMAL";
32
- TransportPriority["High"] = "HIGH";
33
- TransportPriority["Urgent"] = "URGENT";
34
- })(TransportPriority || (TransportPriority = {}));
35
- export const TransportDeliveryType = {
36
- Address: DeliveryTypes.ADDRESS,
37
- Port: DeliveryTypes.PORT,
38
- PortAndShip: DeliveryTypes.PORT_AND_SHIP,
39
- };
40
- export var TransportWarningCode;
41
- (function (TransportWarningCode) {
42
- TransportWarningCode["PurchaseLogisticsNotReady"] = "purchase_logistics_not_ready";
43
- })(TransportWarningCode || (TransportWarningCode = {}));
44
- //# sourceMappingURL=transports.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transports.js","sourceRoot":"/","sources":["types/transports.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK5C,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oDAAmC,CAAA;IACnC,+CAA8B,CAAA;AAChC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,uDAAoC,CAAA;IACpC,uDAAoC,CAAA;IACpC,gCAAa,CAAA;AACf,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAsB;IACrD,eAAe,CAAC,IAAI;IACpB,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,KAAK;IACrB,eAAe,CAAC,eAAe;IAC/B,eAAe,CAAC,eAAe;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC,IAAI,CAAC;AAE1D,MAAM,CAAC,MAAM,yBAAyB,GAAsB,CAAC,qBAAqB,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,GAAG,oBAAoB;IACvB,GAAG,yBAAyB;CAC7B,CAAC;AAEF,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,sCAAiB,CAAA;AACnB,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,aAAa,CAAC,OAAO;IAC9B,IAAI,EAAE,aAAa,CAAC,IAAI;IACxB,WAAW,EAAE,aAAa,CAAC,aAAa;CAChC,CAAC;AAwDX,MAAM,CAAN,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC9B,kFAA0D,CAAA;AAC5D,CAAC,EAFW,oBAAoB,KAApB,oBAAoB,QAE/B","sourcesContent":["import { LocationValue, NextList, PaginatedList } from '@bisondesk/commons-sdk/types';\nimport { Organization } from './crm.js';\nimport { Opportunity } from './opportunities.js';\nimport { DeliveryTypes } from './quotes.js';\nimport { BaseSearchRequest, SortOrder } from './search.js';\nimport { DataRecord, ReferenceData } from './utils.js';\nimport { Vehicle, VehiclePurchase } from './vehicles.js';\n\nexport enum TransportType {\n PurchasePickUp = 'PURCHASE_PICK_UP',\n SaleDelivery = 'SALE_DELIVERY',\n}\n\nexport enum TransportStatus {\n Todo = 'TODO',\n Planning = 'PLANNING',\n Ready = 'READY',\n OngoingInternal = 'ONGOING_INTERNAL',\n OngoingExternal = 'ONGOING_EXTERNAL',\n Done = 'DONE',\n}\n\nexport const TransportStatusOrder: TransportStatus[] = [\n TransportStatus.Todo,\n TransportStatus.Planning,\n TransportStatus.Ready,\n TransportStatus.OngoingInternal,\n TransportStatus.OngoingExternal,\n];\n\nexport const TransportDoneColumnId = TransportStatus.Done;\n\nexport const TransportKanbanEndColumns: TransportStatus[] = [TransportDoneColumnId];\nexport const TransportKanbanColumns: TransportStatus[] = [\n ...TransportStatusOrder,\n ...TransportKanbanEndColumns,\n];\n\nexport enum TransportPriority {\n Normal = 'NORMAL',\n High = 'HIGH',\n Urgent = 'URGENT',\n}\n\nexport const TransportDeliveryType = {\n Address: DeliveryTypes.ADDRESS,\n Port: DeliveryTypes.PORT,\n PortAndShip: DeliveryTypes.PORT_AND_SHIP,\n} as const;\n\nexport type TransportDeliveryType =\n (typeof TransportDeliveryType)[keyof typeof TransportDeliveryType];\n\nexport type Transport = {\n id: string;\n vehicleId: string;\n opportunityId?: string;\n\n type: TransportType;\n deliveryType: TransportDeliveryType;\n status: TransportStatus;\n\n priority: TransportPriority;\n\n // administrative fields\n adminApproved: boolean;\n\n notes?: string;\n\n // semi-trailer specific fields\n cleaningNeeded?: boolean;\n stacking?: boolean;\n stackingDetails?: string;\n\n port?: {\n sourcePort?: string;\n destinationPort?: string;\n\n deliveryLocation?: string;\n bookingRef?: string;\n shippingCompany?: string;\n ets?: string;\n eta?: string;\n };\n\n address?: LocationValue;\n\n log: Array<{\n status: TransportStatus;\n completedAt: string;\n completedBy: string;\n }>;\n\n doneAt?: string;\n doneBy?: string;\n canceledAt?: string;\n canceledBy?: string;\n\n createdAt: string;\n createdBy: string;\n updatedAt: string;\n updatedBy: string;\n};\n\nexport enum TransportWarningCode {\n PurchaseLogisticsNotReady = 'purchase_logistics_not_ready',\n}\n\nexport type TransportWarning = {\n code: TransportWarningCode;\n details?: Record<string, string | number | boolean>;\n};\n\nexport type SearchTransport = {\n transport: Transport;\n vehicle: Vehicle;\n org: Organization;\n opportunity?: Opportunity;\n purchase: VehiclePurchase;\n custom: {\n commercialUserIds: string[];\n warnings: TransportWarning[];\n };\n};\n\nexport type SearchTransportList = PaginatedList<SearchTransport, ReferenceData>;\n\nexport type TransportKanbanColumn = {\n status: TransportStatus;\n results: SearchTransport[];\n totalCount: number;\n};\n\nexport type MSearchTransportsKanbanColumn = {\n column: TransportKanbanColumn;\n nextToken?: string;\n};\n\nexport type KanbanTransportsSearchRequest = BaseSearchRequest & {\n nextTokens?: Record<string, string | undefined>;\n statusSortBy?: Record<TransportStatus, { fieldId: string; order: SortOrder }[]>;\n};\n\nexport type KanbanTransportsNextList = Omit<\n NextList<TransportKanbanColumn, ReferenceData>,\n 'nextToken'\n> & {\n nextTokens?: Record<string, string | undefined>;\n};\n"]}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=comparables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comparables.js","sourceRoot":"","sources":["comparables.ts"],"names":[],"mappings":""}
package/src/types/crm.js DELETED
@@ -1,58 +0,0 @@
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
@@ -1 +0,0 @@
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;IAC7B,oEAA6C,CAAA;IAC7C,wCAAiB,CAAA;AACnB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;IAC7B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,oEAA6C,CAAA;AAC/C,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAgKD,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,+BAAW,CAAA;IACX,mCAAe,CAAA;AACjB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AAWD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,wCAAwB,CAAA;IACxB,gCAAgB,CAAA;IAChB,oCAAoB,CAAA;IACpB,oCAAoB,CAAA;AACtB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AA6CD,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,+DAAsC,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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dashboard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["dashboard.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from '@bisondesk/commons-sdk/definitions';
2
- //# sourceMappingURL=definitions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["definitions.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from '@bisondesk/commons-sdk/fields';
2
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["fields.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=insights.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insights.js","sourceRoot":"","sources":["insights.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=internet-opportunities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internet-opportunities.js","sourceRoot":"","sources":["internet-opportunities.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=internet-vehicles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internet-vehicles.js","sourceRoot":"","sources":["internet-vehicles.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=leasing-administration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-administration.js","sourceRoot":"","sources":["leasing-administration.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=leasing-debtors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-debtors.js","sourceRoot":"","sources":["leasing-debtors.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=leasing-search.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing-search.js","sourceRoot":"","sources":["leasing-search.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,38 +0,0 @@
1
- export var LeasingContractActions;
2
- (function (LeasingContractActions) {
3
- LeasingContractActions["CREATE_FINANCE_DOCUMENT"] = "create_finance_document";
4
- LeasingContractActions["START_RETAKE_VEHICLE"] = "start_retake_vehicle";
5
- LeasingContractActions["END_RETAKE_VEHICLE"] = "end_retake_vehicle";
6
- LeasingContractActions["START_CONTRACT_END"] = "start_contract_end";
7
- LeasingContractActions["END_CONTRACT"] = "end_contract";
8
- LeasingContractActions["CANCEL_RETAKE_VEHICLE"] = "cancel_retake_vehicle";
9
- })(LeasingContractActions || (LeasingContractActions = {}));
10
- export var LeasingContractSource;
11
- (function (LeasingContractSource) {
12
- LeasingContractSource["HYPERPORTAL"] = "hyperportal";
13
- LeasingContractSource["BISONDESK"] = "bisondesk";
14
- })(LeasingContractSource || (LeasingContractSource = {}));
15
- export var LeasingContractStatus;
16
- (function (LeasingContractStatus) {
17
- LeasingContractStatus["DRAFT"] = "draft";
18
- LeasingContractStatus["DISCARDED"] = "discarded";
19
- LeasingContractStatus["PAUSED"] = "paused";
20
- LeasingContractStatus["ACTIVE"] = "active";
21
- LeasingContractStatus["LEASING_RETURN"] = "leasing_return";
22
- LeasingContractStatus["RECOVERED"] = "recovered";
23
- LeasingContractStatus["ENDING"] = "ending";
24
- LeasingContractStatus["ENDED"] = "ended";
25
- })(LeasingContractStatus || (LeasingContractStatus = {}));
26
- export var LeasingRemindersSortableColumns;
27
- (function (LeasingRemindersSortableColumns) {
28
- LeasingRemindersSortableColumns["NextActionAt"] = "next_action_at";
29
- LeasingRemindersSortableColumns["OrganizationName"] = "organization_name";
30
- LeasingRemindersSortableColumns["RemindersCount"] = "reminders_count";
31
- LeasingRemindersSortableColumns["Status"] = "status";
32
- })(LeasingRemindersSortableColumns || (LeasingRemindersSortableColumns = {}));
33
- export var LEASING_EXPORT_TYPES;
34
- (function (LEASING_EXPORT_TYPES) {
35
- LEASING_EXPORT_TYPES["RENTAL_SOLUTIONS"] = "rental-solutions";
36
- LEASING_EXPORT_TYPES["DEFAULT"] = "default";
37
- })(LEASING_EXPORT_TYPES || (LEASING_EXPORT_TYPES = {}));
38
- //# sourceMappingURL=leasing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leasing.js","sourceRoot":"","sources":["leasing.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,6EAAmD,CAAA;IACnD,uEAA6C,CAAA;IAC7C,mEAAyC,CAAA;IACzC,mEAAyC,CAAA;IACzC,uDAA6B,CAAA;IAC7B,yEAA+C,CAAA;AACjD,CAAC,EAPW,sBAAsB,KAAtB,sBAAsB,QAOjC;AA8DD,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oDAA2B,CAAA;IAC3B,gDAAuB,CAAA;AACzB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED,MAAM,CAAN,IAAY,qBASX;AATD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;IACjB,0DAAiC,CAAA;IACjC,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;IACjB,wCAAe,CAAA;AACjB,CAAC,EATW,qBAAqB,KAArB,qBAAqB,QAShC;AAuQD,MAAM,CAAN,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACzC,kEAA+B,CAAA;IAC/B,yEAAsC,CAAA;IACtC,qEAAkC,CAAA;IAClC,oDAAiB,CAAA;AACnB,CAAC,EALW,+BAA+B,KAA/B,+BAA+B,QAK1C;AAgGD,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,6DAAqC,CAAA;IACrC,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B"}
@@ -1,35 +0,0 @@
1
- export var MarketingPlatform;
2
- (function (MarketingPlatform) {
3
- MarketingPlatform["autoscout24"] = "autoscout24";
4
- MarketingPlatform["autoline"] = "autoline";
5
- MarketingPlatform["exportseller"] = "exportseller";
6
- MarketingPlatform["machineryplanet"] = "machineryplanet";
7
- MarketingPlatform["machinetrack"] = "machinetrack";
8
- MarketingPlatform["marktnet"] = "marktnet";
9
- MarketingPlatform["mobile"] = "mobile";
10
- MarketingPlatform["truck1st"] = "truck1st";
11
- MarketingPlatform["trucks"] = "trucks";
12
- MarketingPlatform["truckscout"] = "truckscout24";
13
- MarketingPlatform["tweedehandsbe"] = "2ehandsbe";
14
- MarketingPlatform["viamobilis"] = "planettrucks";
15
- MarketingPlatform["youtube"] = "youtube";
16
- })(MarketingPlatform || (MarketingPlatform = {}));
17
- export var MarketingEventStatus;
18
- (function (MarketingEventStatus) {
19
- MarketingEventStatus["Scheduled"] = "scheduled";
20
- MarketingEventStatus["Processing"] = "processing";
21
- MarketingEventStatus["Skipped"] = "skipped";
22
- MarketingEventStatus["Error"] = "error";
23
- MarketingEventStatus["Sent"] = "processed";
24
- })(MarketingEventStatus || (MarketingEventStatus = {}));
25
- export var MarketingEventType;
26
- (function (MarketingEventType) {
27
- MarketingEventType["PriceDrop"] = "price-drop";
28
- MarketingEventType["PartnerOffer"] = "partner-offer";
29
- })(MarketingEventType || (MarketingEventType = {}));
30
- export var MarketingMessageChannelType;
31
- (function (MarketingMessageChannelType) {
32
- MarketingMessageChannelType["Whatsapp"] = "whatsapp";
33
- MarketingMessageChannelType["Email"] = "email";
34
- })(MarketingMessageChannelType || (MarketingMessageChannelType = {}));
35
- //# sourceMappingURL=marketing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketing.js","sourceRoot":"","sources":["marketing.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAcX;AAdD,WAAY,iBAAiB;IAC3B,gDAA2B,CAAA;IAC3B,0CAAqB,CAAA;IACrB,kDAA6B,CAAA;IAC7B,wDAAmC,CAAA;IACnC,kDAA6B,CAAA;IAC7B,0CAAqB,CAAA;IACrB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,sCAAiB,CAAA;IACjB,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;AACrB,CAAC,EAdW,iBAAiB,KAAjB,iBAAiB,QAc5B;AA8DD,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,2CAAmB,CAAA;IACnB,uCAAe,CAAA;IACf,0CAAkB,CAAA;AACpB,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,oDAA8B,CAAA;AAChC,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,oDAAqB,CAAA;IACrB,8CAAe,CAAA;AACjB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC"}
@@ -1,56 +0,0 @@
1
- export var OfferActions;
2
- (function (OfferActions) {
3
- OfferActions["CREATE_BID"] = "create_bid";
4
- OfferActions["SET_FINAL_VALUATION"] = "set_final_valuation";
5
- OfferActions["LOSE"] = "lose";
6
- OfferActions["REOPEN"] = "reopen";
7
- OfferActions["SET_DOCUMENTS"] = "set_documents";
8
- OfferActions["SET_METADATA"] = "set_metadata";
9
- OfferActions["SEE_SUPPLIER"] = "see_supplier";
10
- OfferActions["SEE_INSIGHTS"] = "see_insights";
11
- OfferActions["VIEW_BIDS"] = "view_bids";
12
- OfferActions["DELETE_FINAL_VALUATION"] = "delete_final_valuation";
13
- OfferActions["SEE_ASKING_PRICE"] = "see_asking_price";
14
- OfferActions["ACCEPT_NEGOTIATION"] = "accept_negotiation";
15
- OfferActions["UNDO_ACCEPT_NEGOTIATION"] = "undo_accept_negotiation";
16
- OfferActions["SET_SUPPLIER_VEHICLE"] = "set_supplier_vehicle";
17
- OfferActions["CAN_PURCHASE"] = "can_purchase";
18
- })(OfferActions || (OfferActions = {}));
19
- export var OfferBidActions;
20
- (function (OfferBidActions) {
21
- OfferBidActions["EDIT_BID"] = "create_bid";
22
- OfferBidActions["DELETE_BID"] = "delete_bid";
23
- })(OfferBidActions || (OfferBidActions = {}));
24
- export var OfferStatus;
25
- (function (OfferStatus) {
26
- OfferStatus["PROSPECTION"] = "prospection";
27
- OfferStatus["VALUATION"] = "valuation";
28
- OfferStatus["NEGOTIATION"] = "negotiation";
29
- })(OfferStatus || (OfferStatus = {}));
30
- export var OfferLostReasonValues;
31
- (function (OfferLostReasonValues) {
32
- OfferLostReasonValues["Expensive"] = "expensive";
33
- OfferLostReasonValues["NoMarket"] = "no_market";
34
- OfferLostReasonValues["BadExperience"] = "bad_experience";
35
- OfferLostReasonValues["NoAnswer"] = "supplier_mia";
36
- OfferLostReasonValues["Other"] = "other";
37
- OfferLostReasonValues["Automatic"] = "automatic";
38
- })(OfferLostReasonValues || (OfferLostReasonValues = {}));
39
- export var OfferBidType;
40
- (function (OfferBidType) {
41
- OfferBidType["INTERNAL"] = "internal";
42
- OfferBidType["EXTERNAL"] = "external";
43
- })(OfferBidType || (OfferBidType = {}));
44
- export var OfferWarningsCode;
45
- (function (OfferWarningsCode) {
46
- OfferWarningsCode["NO_SUPPLIER"] = "no_supplier";
47
- })(OfferWarningsCode || (OfferWarningsCode = {}));
48
- export const OfferStatusOrder = [
49
- OfferStatus.PROSPECTION,
50
- OfferStatus.VALUATION,
51
- OfferStatus.NEGOTIATION,
52
- ];
53
- export const OfferWonColumnId = 'closed_won';
54
- export const OfferKanbanColumns = [...OfferStatusOrder, OfferWonColumnId];
55
- export const OfferKanbanEndColumns = [OfferWonColumnId];
56
- //# sourceMappingURL=offers.js.map