@bisondesk/core-sdk 1.0.537 → 1.0.539
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/crm.d.ts +4 -0
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js.map +1 -1
- package/lib/types/opportunities.d.ts +0 -2
- package/lib/types/opportunities.d.ts.map +1 -1
- package/lib/types/opportunities.js.map +1 -1
- package/lib/types/stocklists.d.ts +28 -0
- package/lib/types/stocklists.d.ts.map +1 -0
- package/lib/types/stocklists.js +7 -0
- package/lib/types/stocklists.js.map +1 -0
- package/lib/types/vehicle-performance.d.ts +8 -1
- package/lib/types/vehicle-performance.d.ts.map +1 -1
- package/lib/types/vehicle-performance.js.map +1 -1
- package/lib/types/vehicles.d.ts +0 -2
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js.map +1 -1
- package/lib/utils/search.js +4 -4
- package/lib/utils/search.js.map +1 -1
- package/package.json +1 -1
- package/src/types/crm.ts +4 -0
- package/src/types/opportunities.ts +0 -2
- package/src/types/stocklists.ts +33 -0
- package/src/types/vehicle-performance.ts +8 -1
- package/src/types/vehicles.ts +0 -2
- package/src/utils/search.ts +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/apis/transports.d.ts +0 -9
- package/lib/apis/transports.d.ts.map +0 -1
- package/lib/apis/transports.js +0 -47
- package/lib/apis/transports.js.map +0 -1
- package/lib/types/transports.d.ts +0 -154
- package/lib/types/transports.d.ts.map +0 -1
- package/lib/types/transports.js +0 -40
- package/lib/types/transports.js.map +0 -1
- package/src/apis/transports.ts +0 -86
- package/src/types/comparables.js +0 -2
- package/src/types/comparables.js.map +0 -1
- package/src/types/crm.js +0 -50
- package/src/types/crm.js.map +0 -1
- package/src/types/fields.js +0 -2
- package/src/types/fields.js.map +0 -1
- package/src/types/insights.js +0 -2
- package/src/types/insights.js.map +0 -1
- package/src/types/internet-vehicles.js +0 -2
- package/src/types/internet-vehicles.js.map +0 -1
- package/src/types/journeys.js +0 -2
- package/src/types/journeys.js.map +0 -1
- package/src/types/leasing-settings.js +0 -7
- package/src/types/leasing-settings.js.map +0 -1
- package/src/types/offers.js +0 -56
- package/src/types/offers.js.map +0 -1
- package/src/types/opportunities.js +0 -106
- package/src/types/opportunities.js.map +0 -1
- package/src/types/payments.js +0 -7
- package/src/types/payments.js.map +0 -1
- package/src/types/quotes.js +0 -42
- package/src/types/quotes.js.map +0 -1
- package/src/types/reservations.js +0 -5
- package/src/types/reservations.js.map +0 -1
- package/src/types/search.js +0 -2
- package/src/types/search.js.map +0 -1
- package/src/types/tenants.js +0 -20
- package/src/types/tenants.js.map +0 -1
- package/src/types/transports.ts +0 -229
- package/src/types/utils.js +0 -2
- package/src/types/utils.js.map +0 -1
- package/src/types/vehicles.js +0 -94
- package/src/types/vehicles.js.map +0 -1
- package/src/utils/opportunities.js +0 -48
- package/src/utils/opportunities.js.map +0 -1
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export var OpportunityActions;
|
|
2
|
-
(function (OpportunityActions) {
|
|
3
|
-
OpportunityActions["ADD_REMARKS"] = "add_remarks";
|
|
4
|
-
OpportunityActions["CREATE_QUOTE"] = "create_quote";
|
|
5
|
-
OpportunityActions["LOSE"] = "lose";
|
|
6
|
-
OpportunityActions["REOPEN"] = "reopen";
|
|
7
|
-
OpportunityActions["START_PREPARATION"] = "start_preparation";
|
|
8
|
-
OpportunityActions["REVERT_PREPARATION"] = "revert_preparation";
|
|
9
|
-
OpportunityActions["START_DELIVERY"] = "start_delivery";
|
|
10
|
-
OpportunityActions["REVERT_DELIVERY"] = "revert_delivery";
|
|
11
|
-
OpportunityActions["SET_CUSTOMER"] = "set_customer";
|
|
12
|
-
OpportunityActions["SET_DOCUMENTS"] = "set_documents";
|
|
13
|
-
OpportunityActions["SET_INTEREST"] = "set_interest";
|
|
14
|
-
OpportunityActions["SET_METADATA"] = "set_metadata";
|
|
15
|
-
OpportunityActions["SET_VEHICLE"] = "set_vehicle";
|
|
16
|
-
OpportunityActions["ADD_ACTIVITY"] = "add_activity";
|
|
17
|
-
OpportunityActions["ADD_PAYMENT"] = "add_payment";
|
|
18
|
-
OpportunityActions["SWITCH_VEHICLE"] = "switch_vehicle";
|
|
19
|
-
OpportunityActions["DELIVER_VEHICLE"] = "deliver_vehicle";
|
|
20
|
-
OpportunityActions["UNDO_DELIVER_VEHICLE"] = "undo_deliver_vehicle";
|
|
21
|
-
OpportunityActions["SET_DEAL_INFO"] = "update_deal_info";
|
|
22
|
-
OpportunityActions["ISSUE_INVOICE"] = "issue_invoice";
|
|
23
|
-
})(OpportunityActions || (OpportunityActions = {}));
|
|
24
|
-
export var OpportunityPaymentStatus;
|
|
25
|
-
(function (OpportunityPaymentStatus) {
|
|
26
|
-
OpportunityPaymentStatus["PARTIAL_PAYMENT"] = "partial_payment";
|
|
27
|
-
OpportunityPaymentStatus["FULL_PAYMENT"] = "full_payment";
|
|
28
|
-
OpportunityPaymentStatus["NO_PAYMENT"] = "no_payment";
|
|
29
|
-
})(OpportunityPaymentStatus || (OpportunityPaymentStatus = {}));
|
|
30
|
-
export var OpportunityStatus;
|
|
31
|
-
(function (OpportunityStatus) {
|
|
32
|
-
OpportunityStatus["PROSPECTION"] = "prospection";
|
|
33
|
-
OpportunityStatus["DISCOVERY"] = "discovery";
|
|
34
|
-
OpportunityStatus["EVALUATION"] = "evaluation";
|
|
35
|
-
OpportunityStatus["REVIEW"] = "review";
|
|
36
|
-
OpportunityStatus["PREPARATION"] = "preparation";
|
|
37
|
-
OpportunityStatus["DELIVERY"] = "delivery";
|
|
38
|
-
})(OpportunityStatus || (OpportunityStatus = {}));
|
|
39
|
-
export const OpportunityStatusOrder = [
|
|
40
|
-
OpportunityStatus.PROSPECTION,
|
|
41
|
-
OpportunityStatus.DISCOVERY,
|
|
42
|
-
OpportunityStatus.EVALUATION,
|
|
43
|
-
OpportunityStatus.REVIEW,
|
|
44
|
-
OpportunityStatus.PREPARATION,
|
|
45
|
-
OpportunityStatus.DELIVERY,
|
|
46
|
-
];
|
|
47
|
-
export var OpportunityRequirementsCode;
|
|
48
|
-
(function (OpportunityRequirementsCode) {
|
|
49
|
-
OpportunityRequirementsCode["VEHICLE_AT_ORIGIN"] = "vehicle_at_origin";
|
|
50
|
-
OpportunityRequirementsCode["LEASING_SL_ACTION"] = "sl_action";
|
|
51
|
-
OpportunityRequirementsCode["TECHNICAL_NOTES_CHANGED"] = "technical_notes_changed";
|
|
52
|
-
})(OpportunityRequirementsCode || (OpportunityRequirementsCode = {}));
|
|
53
|
-
export var OpportunityWarningsCode;
|
|
54
|
-
(function (OpportunityWarningsCode) {
|
|
55
|
-
OpportunityWarningsCode["QUOTE_PENDING_VALIDATION"] = "quote_pending_validation";
|
|
56
|
-
OpportunityWarningsCode["QUOTE_PEDING_MANAGER_APPROVAL"] = "quote_pending_manager_approval";
|
|
57
|
-
OpportunityWarningsCode["CONCURRENT_OPPORTUNITIES"] = "concurrent_opportunities";
|
|
58
|
-
OpportunityWarningsCode["VEHICLE_RESERVED"] = "vehicle_reserved";
|
|
59
|
-
OpportunityWarningsCode["OPPORTUNITY_NEEDS_SWITCH_VEHICLE"] = "opportunity_needs_switch_vehicle";
|
|
60
|
-
OpportunityWarningsCode["VEHICLE_RESERVED_DATE_INFO"] = "vehicle_reserved_date_info";
|
|
61
|
-
OpportunityWarningsCode["VEHICLE_RESERVED_INDEFINITELY"] = "vehicle_reserved_indefinitely";
|
|
62
|
-
OpportunityWarningsCode["QUOTE_MISSING_DELIVERY_DETAILS"] = "quote_missing_delivery_details";
|
|
63
|
-
OpportunityWarningsCode["VEHICLE_TECHNICAL_DETAILS_CHANGED"] = "vehicle_technical_details_changed";
|
|
64
|
-
OpportunityWarningsCode["QUOTE_MISSING_FINANCING_DETAILS"] = "quote_missing_financing_details";
|
|
65
|
-
})(OpportunityWarningsCode || (OpportunityWarningsCode = {}));
|
|
66
|
-
export const OpportunityWonColumnId = 'closed_won';
|
|
67
|
-
export const OpportunityKanbanColumns = [...OpportunityStatusOrder, OpportunityWonColumnId];
|
|
68
|
-
export const OpportunityKanbanEndColumns = [OpportunityWonColumnId];
|
|
69
|
-
export var OpportunityLostReasonValues;
|
|
70
|
-
(function (OpportunityLostReasonValues) {
|
|
71
|
-
OpportunityLostReasonValues["Expensive"] = "expensive";
|
|
72
|
-
OpportunityLostReasonValues["AlreadySold"] = "already_sold";
|
|
73
|
-
OpportunityLostReasonValues["BadExperience"] = "bad_experience";
|
|
74
|
-
OpportunityLostReasonValues["IncorrectVehicleCondition"] = "incorrect_vehicle_condition";
|
|
75
|
-
OpportunityLostReasonValues["NoStock"] = "not_enough_stock";
|
|
76
|
-
OpportunityLostReasonValues["SlowDelivery"] = "slow_delivery";
|
|
77
|
-
OpportunityLostReasonValues["HighDeposit"] = "deposit_too_high";
|
|
78
|
-
OpportunityLostReasonValues["NoAnswer"] = "client_not_answered";
|
|
79
|
-
OpportunityLostReasonValues["Automatic"] = "automatic";
|
|
80
|
-
})(OpportunityLostReasonValues || (OpportunityLostReasonValues = {}));
|
|
81
|
-
export var VehicleSaleDealStatus;
|
|
82
|
-
(function (VehicleSaleDealStatus) {
|
|
83
|
-
VehicleSaleDealStatus["SaleAgreed"] = "SALE_AGREED";
|
|
84
|
-
VehicleSaleDealStatus["FirstPaymentReceived"] = "FIRST_PAYMENT_RECEIVED";
|
|
85
|
-
VehicleSaleDealStatus["FullPaymentReceived"] = "FULL_PAYMENT_RECEIVED";
|
|
86
|
-
})(VehicleSaleDealStatus || (VehicleSaleDealStatus = {}));
|
|
87
|
-
export var VehicleSaleLogisticsStatus;
|
|
88
|
-
(function (VehicleSaleLogisticsStatus) {
|
|
89
|
-
VehicleSaleLogisticsStatus["AtOrigin"] = "AT_ORIGIN";
|
|
90
|
-
VehicleSaleLogisticsStatus["Delivered"] = "DELIVERED";
|
|
91
|
-
})(VehicleSaleLogisticsStatus || (VehicleSaleLogisticsStatus = {}));
|
|
92
|
-
export const QUOTE_NEEDS_VALIDATION_NOTIFICATION_ORIGIN = 'quote-validation';
|
|
93
|
-
export const QUOTE_NOT_CREATED_BY_ACCOUNT_MANAGER = 'quote-not-created-by-account-manager';
|
|
94
|
-
export const QUOTE_VALIDATOR_FEEDBACK_NOTIFICATION_ORIGIN = 'quote-validation-feedback';
|
|
95
|
-
export const OPPORTUNITY_VEHICLE_AVAILABLE_NOTIFICATION_ORIGIN = 'opportunity-vehicle-available';
|
|
96
|
-
export const OPPORTUNITY_VEHICLE_DELIVERY_NOTIFICATION_ORIGIN = 'opportunity-vehicle-delivery';
|
|
97
|
-
export const OPPORTUNITY_VEHICLE_RESERVATION_ABOUT_TO_EXPIRE_NOTIFICATION_ORIGIN = 'opportunity-vehicle-reservation-to-expire';
|
|
98
|
-
export const OPPORTUNITY_VEHICLE_RESERVATION_EXPIRED_NOTIFICATION_ORIGIN = 'opportunity-vehicle-reservation-expired';
|
|
99
|
-
export const OFFER_SET_FINAL_VALUATION_ORIGIN = 'offer-set-final-valuation';
|
|
100
|
-
export const VEHICLE_PRICE_DECREASES_NOTIFICATION_ORIGIN = 'vehicle-price-decreased';
|
|
101
|
-
export const VEHICLE_ARRIVED_NOTIFICATION_ORIGIN = 'vehicle-arrived';
|
|
102
|
-
export const VEHICLE_CHECKEDIN_NOTIFICATION_ORIGIN = 'vehicle-checkedin';
|
|
103
|
-
export const VEHICLE_PURCHASED_NOTIFICATION_ORIGIN = 'vehicle-purchased';
|
|
104
|
-
export const VEHICLE_PRICE_CHANGED_NOTIFICATION_ORIGIN = 'vehicle-price-changed';
|
|
105
|
-
export const VEHICLE_SOLD_NOTIFICATION_ORIGIN = 'vehicle-sold';
|
|
106
|
-
//# sourceMappingURL=opportunities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opportunities.js","sourceRoot":"","sources":["opportunities.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAN,IAAY,kBAqBX;AArBD,WAAY,kBAAkB;IAC5B,iDAA2B,CAAA;IAC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G,2BAA2B,CAAC;AAExF,MAAM,CAAC,MAAM,iDAAiD,GAAG,+BAA+B,CAAC;AACjG,MAAM,CAAC,MAAM,gDAAgD,GAAG,8BAA8B,CAAC;AAC/F,MAAM,CAAC,MAAM,mEAAmE,GAC9E,2CAA2C,CAAC;AAC9C,MAAM,CAAC,MAAM,2DAA2D,GACtE,yCAAyC,CAAC;AAE5C,MAAM,CAAC,MAAM,gCAAgC,GAAG,2BAA2B,CAAC;AAE5E,MAAM,CAAC,MAAM,2CAA2C,GAAG,yBAAyB,CAAC;AACrF,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC;AACrE,MAAM,CAAC,MAAM,qCAAqC,GAAG,mBAAmB,CAAC;AACzE,MAAM,CAAC,MAAM,qCAAqC,GAAG,mBAAmB,CAAC;AACzE,MAAM,CAAC,MAAM,yCAAyC,GAAG,uBAAuB,CAAC;AACjF,MAAM,CAAC,MAAM,gCAAgC,GAAG,cAAc,CAAC"}
|
package/src/types/payments.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var PaymentActions;
|
|
2
|
-
(function (PaymentActions) {
|
|
3
|
-
PaymentActions["DELETE"] = "delete";
|
|
4
|
-
PaymentActions["EDIT"] = "edit";
|
|
5
|
-
})(PaymentActions || (PaymentActions = {}));
|
|
6
|
-
export const PAYMENT_NOTIFICATION_ORIGIN = 'payment-notification';
|
|
7
|
-
//# sourceMappingURL=payments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"","sources":["payments.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC"}
|
package/src/types/quotes.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export var QuoteActions;
|
|
2
|
-
(function (QuoteActions) {
|
|
3
|
-
QuoteActions["ACCEPT"] = "accept";
|
|
4
|
-
QuoteActions["VALIDATE"] = "validate";
|
|
5
|
-
QuoteActions["DONWLOAD_PDFS"] = "download-pdfs";
|
|
6
|
-
QuoteActions["CANCEL"] = "cancel";
|
|
7
|
-
})(QuoteActions || (QuoteActions = {}));
|
|
8
|
-
export var QuoteStatus;
|
|
9
|
-
(function (QuoteStatus) {
|
|
10
|
-
QuoteStatus["CREATED"] = "created";
|
|
11
|
-
QuoteStatus["VALIDATED"] = "validated";
|
|
12
|
-
QuoteStatus["INVALIDATED"] = "invalidated";
|
|
13
|
-
QuoteStatus["ACCEPTED"] = "accepted";
|
|
14
|
-
QuoteStatus["REJECTED"] = "rejected";
|
|
15
|
-
QuoteStatus["CANCELLED"] = "cancelled";
|
|
16
|
-
QuoteStatus["MANAGER_REJECTED"] = "managerRejected";
|
|
17
|
-
QuoteStatus["MANAGER_ACCEPTED"] = "managerAccepted";
|
|
18
|
-
})(QuoteStatus || (QuoteStatus = {}));
|
|
19
|
-
export var QuoteMetricsScore;
|
|
20
|
-
(function (QuoteMetricsScore) {
|
|
21
|
-
QuoteMetricsScore["DANGER"] = "danger";
|
|
22
|
-
QuoteMetricsScore["NEUTRAL"] = "neutral";
|
|
23
|
-
QuoteMetricsScore["GOOD"] = "good";
|
|
24
|
-
})(QuoteMetricsScore || (QuoteMetricsScore = {}));
|
|
25
|
-
export var DeliveryTypes;
|
|
26
|
-
(function (DeliveryTypes) {
|
|
27
|
-
DeliveryTypes["PICK_UP"] = "pickUp";
|
|
28
|
-
DeliveryTypes["ADDRESS"] = "address";
|
|
29
|
-
DeliveryTypes["PORT"] = "port";
|
|
30
|
-
})(DeliveryTypes || (DeliveryTypes = {}));
|
|
31
|
-
export var SpoilerInfo;
|
|
32
|
-
(function (SpoilerInfo) {
|
|
33
|
-
SpoilerInfo["MOUNT"] = "mount";
|
|
34
|
-
SpoilerInfo["UNMOUNT"] = "unmount";
|
|
35
|
-
SpoilerInfo["NO_ACTION"] = "noAction";
|
|
36
|
-
})(SpoilerInfo || (SpoilerInfo = {}));
|
|
37
|
-
export var TransportationMode;
|
|
38
|
-
(function (TransportationMode) {
|
|
39
|
-
TransportationMode["BY_ROAD"] = "byRoad";
|
|
40
|
-
TransportationMode["ON_LOW_BED"] = "onLowBed";
|
|
41
|
-
})(TransportationMode || (TransportationMode = {}));
|
|
42
|
-
//# sourceMappingURL=quotes.js.map
|
package/src/types/quotes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["quotes.ts"],"names":[],"mappings":"AAYA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,0CAA2B,CAAA;IAC3B,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,sCAAuB,CAAA;IACvB,mDAAoC,CAAA;IACpC,mDAAoC,CAAA;AACtC,CAAC,EATW,WAAW,KAAX,WAAW,QAStB;AAED,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AACD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,mCAAkB,CAAA;IAClB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,qCAAsB,CAAA;AACxB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,wCAAkB,CAAA;IAClB,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reservations.js","sourceRoot":"","sources":["reservations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC5B,kEAA4C,CAAA;AAC9C,CAAC,EAFW,kBAAkB,KAAlB,kBAAkB,QAE7B"}
|
package/src/types/search.js
DELETED
package/src/types/search.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["search.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/src/types/tenants.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export var TenantModule;
|
|
2
|
-
(function (TenantModule) {
|
|
3
|
-
TenantModule["Administration"] = "administration";
|
|
4
|
-
TenantModule["App"] = "app";
|
|
5
|
-
TenantModule["CRM"] = "crm";
|
|
6
|
-
TenantModule["Docs"] = "docs";
|
|
7
|
-
TenantModule["Leads"] = "leads";
|
|
8
|
-
TenantModule["Leasing"] = "leasing";
|
|
9
|
-
TenantModule["Insights"] = "insights";
|
|
10
|
-
TenantModule["Opportunities"] = "opportunities";
|
|
11
|
-
TenantModule["Offers"] = "offers";
|
|
12
|
-
TenantModule["VehiclesMasterData"] = "vehicles_master_data";
|
|
13
|
-
TenantModule["Vehicles"] = "vehicles";
|
|
14
|
-
TenantModule["Tasks"] = "tasks";
|
|
15
|
-
TenantModule["TrackAndTrace"] = "track_and_trace";
|
|
16
|
-
TenantModule["Bootstrap"] = "bootstrap";
|
|
17
|
-
TenantModule["WhatsappNotifications"] = "whatsapp_notifications";
|
|
18
|
-
TenantModule["Hexon"] = "hexon";
|
|
19
|
-
})(TenantModule || (TenantModule = {}));
|
|
20
|
-
//# sourceMappingURL=tenants.js.map
|
package/src/types/tenants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["tenants.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAN,IAAY,YAiBX;AAjBD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,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;AACjB,CAAC,EAjBW,YAAY,KAAZ,YAAY,QAiBvB"}
|
package/src/types/transports.ts
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { GPSCoord } from '@bisondesk/commons-sdk/locations';
|
|
2
|
-
import { NextList } from '@bisondesk/commons-sdk/types';
|
|
3
|
-
import { BaseSearchRequest, SortOrder } from './search.js';
|
|
4
|
-
import { ReferenceData } from './utils.js';
|
|
5
|
-
import { Organization } from './crm.js';
|
|
6
|
-
import { Opportunity } from './opportunities.js';
|
|
7
|
-
import { Vehicle, VehiclePurchase } from './vehicles.js';
|
|
8
|
-
|
|
9
|
-
/******
|
|
10
|
-
* Transport Enums
|
|
11
|
-
******/
|
|
12
|
-
|
|
13
|
-
export enum TransportType {
|
|
14
|
-
PURCHASE_PICK_UP = 'purchase_pick_up',
|
|
15
|
-
SALE_DELIVERY = 'sale_delivery',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export enum TransportStatus {
|
|
19
|
-
TODO = 'todo',
|
|
20
|
-
PLANNING = 'planning',
|
|
21
|
-
READY = 'ready',
|
|
22
|
-
ONGOING = 'ongoing',
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export enum InternalTransportRequestType {
|
|
26
|
-
HARBOR = 'harbor',
|
|
27
|
-
ADDRESS = 'address',
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export enum TransportActions {
|
|
31
|
-
UPDATE_STATUS = 'update_status',
|
|
32
|
-
SET_TRANSPORT_REQUEST = 'set_transport_request',
|
|
33
|
-
CANCEL = 'cancel',
|
|
34
|
-
MARK_DONE = 'mark_done',
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/******
|
|
38
|
-
* Status Order & Kanban Columns
|
|
39
|
-
******/
|
|
40
|
-
|
|
41
|
-
export const TransportStatusOrder: TransportStatus[] = [
|
|
42
|
-
TransportStatus.TODO,
|
|
43
|
-
TransportStatus.PLANNING,
|
|
44
|
-
TransportStatus.READY,
|
|
45
|
-
TransportStatus.ONGOING,
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
export const TransportKanbanDoneColumnId = 'done';
|
|
49
|
-
|
|
50
|
-
export const TransportKanbanEndColumns: string[] = [TransportKanbanDoneColumnId];
|
|
51
|
-
|
|
52
|
-
export const TransportKanbanColumns = [...TransportStatusOrder, ...TransportKanbanEndColumns];
|
|
53
|
-
|
|
54
|
-
/******
|
|
55
|
-
* Internal Transport Request
|
|
56
|
-
******/
|
|
57
|
-
|
|
58
|
-
export type TransportShipment = {
|
|
59
|
-
shippingCompanyId: string;
|
|
60
|
-
deliveryLocationId: string;
|
|
61
|
-
bookingReference: string;
|
|
62
|
-
shipName?: string;
|
|
63
|
-
destinationPort?: string;
|
|
64
|
-
ets?: string;
|
|
65
|
-
eta?: string;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export type TransportAddress = {
|
|
69
|
-
addressLine1: string;
|
|
70
|
-
addressLine2?: string;
|
|
71
|
-
city: string;
|
|
72
|
-
postalCode: string;
|
|
73
|
-
country: string;
|
|
74
|
-
gps?: GPSCoord;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export type InternalTransportRequest = {
|
|
78
|
-
type: InternalTransportRequestType;
|
|
79
|
-
shipment?: TransportShipment;
|
|
80
|
-
address?: TransportAddress;
|
|
81
|
-
notes?: string;
|
|
82
|
-
createdAt: string;
|
|
83
|
-
createdBy: string;
|
|
84
|
-
updatedAt: string;
|
|
85
|
-
updatedBy: string;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export type NewInternalTransportRequest = Omit<
|
|
89
|
-
InternalTransportRequest,
|
|
90
|
-
'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'
|
|
91
|
-
>;
|
|
92
|
-
|
|
93
|
-
export type UpdateInternalTransportRequest = Partial<
|
|
94
|
-
Pick<InternalTransportRequest, 'shipment' | 'address' | 'notes'>
|
|
95
|
-
> & {
|
|
96
|
-
type: InternalTransportRequestType;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/******
|
|
100
|
-
* Transport Status Log Fields
|
|
101
|
-
******/
|
|
102
|
-
|
|
103
|
-
export type TransportStatusLogFields = {
|
|
104
|
-
todoAt?: string;
|
|
105
|
-
todoBy?: string;
|
|
106
|
-
planningAt?: string;
|
|
107
|
-
planningBy?: string;
|
|
108
|
-
readyAt?: string;
|
|
109
|
-
readyBy?: string;
|
|
110
|
-
ongoingAt?: string;
|
|
111
|
-
ongoingBy?: string;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export const transportStatusToDateFieldMap: Record<
|
|
115
|
-
TransportStatus,
|
|
116
|
-
{ date: keyof TransportStatusLogFields; author: keyof TransportStatusLogFields }
|
|
117
|
-
> = {
|
|
118
|
-
[TransportStatus.TODO]: { date: 'todoAt', author: 'todoBy' },
|
|
119
|
-
[TransportStatus.PLANNING]: { date: 'planningAt', author: 'planningBy' },
|
|
120
|
-
[TransportStatus.READY]: { date: 'readyAt', author: 'readyBy' },
|
|
121
|
-
[TransportStatus.ONGOING]: { date: 'ongoingAt', author: 'ongoingBy' },
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/******
|
|
125
|
-
* Transport
|
|
126
|
-
******/
|
|
127
|
-
|
|
128
|
-
export type Transport = TransportStatusLogFields & {
|
|
129
|
-
id: string;
|
|
130
|
-
vehicleId: string;
|
|
131
|
-
opportunityId?: string;
|
|
132
|
-
administrativeNumber?: string;
|
|
133
|
-
type: TransportType;
|
|
134
|
-
status: TransportStatus;
|
|
135
|
-
cancelled: boolean;
|
|
136
|
-
cancelledAt?: string;
|
|
137
|
-
cancelledBy?: string;
|
|
138
|
-
doneAt?: string;
|
|
139
|
-
doneBy?: string;
|
|
140
|
-
tenantId: string;
|
|
141
|
-
branchId: string;
|
|
142
|
-
internalTransportRequest?: InternalTransportRequest;
|
|
143
|
-
createdAt: string;
|
|
144
|
-
createdBy: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
updatedBy: string;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export type NewTransport = {
|
|
150
|
-
vehicleId: string;
|
|
151
|
-
opportunityId?: string;
|
|
152
|
-
administrativeNumber?: string;
|
|
153
|
-
type: TransportType;
|
|
154
|
-
tenantId: string;
|
|
155
|
-
branchId: string;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export type UpdateTransport = Partial<
|
|
159
|
-
Pick<Transport, 'status' | 'administrativeNumber' | 'branchId'>
|
|
160
|
-
>;
|
|
161
|
-
|
|
162
|
-
/******
|
|
163
|
-
* Search Transport
|
|
164
|
-
******/
|
|
165
|
-
|
|
166
|
-
export type SearchTransport = {
|
|
167
|
-
transport: Transport;
|
|
168
|
-
vehicle: Vehicle;
|
|
169
|
-
opportunity?: Opportunity;
|
|
170
|
-
purchase?: VehiclePurchase;
|
|
171
|
-
org?: Organization;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
/******
|
|
175
|
-
* Kanban
|
|
176
|
-
******/
|
|
177
|
-
|
|
178
|
-
export type TransportKanbanColumn = {
|
|
179
|
-
status: string; // TransportStatus | 'done'
|
|
180
|
-
results: SearchTransport[];
|
|
181
|
-
totalCount: number;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export type MSearchTransportKanbanColumn = {
|
|
185
|
-
column: TransportKanbanColumn;
|
|
186
|
-
nextToken?: string;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
export type KanbanTransportSearchRequest = BaseSearchRequest & {
|
|
190
|
-
nextTokens?: Record<string, string | undefined>;
|
|
191
|
-
statusSortBy?: Record<string, { fieldId: string; order: SortOrder }[]>;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export type KanbanTransportNextList = Omit<
|
|
195
|
-
NextList<TransportKanbanColumn, ReferenceData>,
|
|
196
|
-
'nextToken'
|
|
197
|
-
> & {
|
|
198
|
-
nextTokens?: Record<string, string | undefined>;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
/******
|
|
202
|
-
* Transport Events
|
|
203
|
-
******/
|
|
204
|
-
|
|
205
|
-
export type TransportCreateEvent = {
|
|
206
|
-
action: 'created';
|
|
207
|
-
data: Transport;
|
|
208
|
-
previousData?: undefined;
|
|
209
|
-
tenantId: string;
|
|
210
|
-
userId: string;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export type TransportUpdateEvent = {
|
|
214
|
-
action: 'updated';
|
|
215
|
-
data: Transport;
|
|
216
|
-
previousData: Transport;
|
|
217
|
-
tenantId: string;
|
|
218
|
-
userId: string;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export type TransportCancelEvent = {
|
|
222
|
-
action: 'cancelled';
|
|
223
|
-
data: Transport;
|
|
224
|
-
previousData: Transport;
|
|
225
|
-
tenantId: string;
|
|
226
|
-
userId: string;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export type TransportEvent = TransportCreateEvent | TransportUpdateEvent | TransportCancelEvent;
|
package/src/types/utils.js
DELETED
package/src/types/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
package/src/types/vehicles.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export var VehicleRoles;
|
|
2
|
-
(function (VehicleRoles) {
|
|
3
|
-
VehicleRoles["SALE"] = "SALE";
|
|
4
|
-
VehicleRoles["OWN_USE"] = "OWN_USE";
|
|
5
|
-
VehicleRoles["RENTAL"] = "RENTAL";
|
|
6
|
-
VehicleRoles["BUILD"] = "BUILD";
|
|
7
|
-
VehicleRoles["UNKNOWN"] = "UNKNOWN";
|
|
8
|
-
VehicleRoles["BANK_FINANCE"] = "BANK_FINANCE";
|
|
9
|
-
})(VehicleRoles || (VehicleRoles = {}));
|
|
10
|
-
export var VehicleFuelType;
|
|
11
|
-
(function (VehicleFuelType) {
|
|
12
|
-
VehicleFuelType["Petrol"] = "PETROL";
|
|
13
|
-
VehicleFuelType["Diesel"] = "DIESEL";
|
|
14
|
-
VehicleFuelType["LPG"] = "LPG";
|
|
15
|
-
VehicleFuelType["LPG_G3"] = "LPG_G3";
|
|
16
|
-
VehicleFuelType["Electric"] = "ELECTRIC";
|
|
17
|
-
VehicleFuelType["CNG"] = "CNG";
|
|
18
|
-
VehicleFuelType["Hydrogen"] = "HYDROGEN";
|
|
19
|
-
VehicleFuelType["BioEthanol"] = "BIO_ETHANOL";
|
|
20
|
-
VehicleFuelType["BioDiesel"] = "BIO_DIESEL";
|
|
21
|
-
VehicleFuelType["E85"] = "E85";
|
|
22
|
-
VehicleFuelType["HCNG"] = "HCNG";
|
|
23
|
-
VehicleFuelType["LPG_Petrol"] = "LPG_PETROL";
|
|
24
|
-
VehicleFuelType["LPG_Diesel"] = "LPG_DIESEL";
|
|
25
|
-
VehicleFuelType["LPG_G3_Petrol"] = "LPG_G3_PETROL";
|
|
26
|
-
VehicleFuelType["LPG_G3_Diesel"] = "LPG_G3_DIESEL";
|
|
27
|
-
VehicleFuelType["Electric_Diesel"] = "ELECTRIC_DIESEL";
|
|
28
|
-
VehicleFuelType["Electric_Petrol"] = "ELECTRIC_PETROL";
|
|
29
|
-
VehicleFuelType["Hybrid"] = "HYBRID";
|
|
30
|
-
VehicleFuelType["Other"] = "OTHER";
|
|
31
|
-
})(VehicleFuelType || (VehicleFuelType = {}));
|
|
32
|
-
export var VehicleTachoTypes;
|
|
33
|
-
(function (VehicleTachoTypes) {
|
|
34
|
-
VehicleTachoTypes["Analog"] = "ANALOG";
|
|
35
|
-
VehicleTachoTypes["Digital"] = "DIGITAL";
|
|
36
|
-
VehicleTachoTypes["SmartTacho1"] = "SMART_TACHO_1";
|
|
37
|
-
VehicleTachoTypes["SmartTacho2"] = "SMART_TACHO_2";
|
|
38
|
-
})(VehicleTachoTypes || (VehicleTachoTypes = {}));
|
|
39
|
-
export var SearchVehicleSaleDealStatus;
|
|
40
|
-
(function (SearchVehicleSaleDealStatus) {
|
|
41
|
-
SearchVehicleSaleDealStatus["NotSold"] = "NOT_SOLD";
|
|
42
|
-
SearchVehicleSaleDealStatus["Reserved"] = "RESERVED";
|
|
43
|
-
SearchVehicleSaleDealStatus["Sold"] = "SOLD";
|
|
44
|
-
})(SearchVehicleSaleDealStatus || (SearchVehicleSaleDealStatus = {}));
|
|
45
|
-
export var VehiclePurchaseDealStatus;
|
|
46
|
-
(function (VehiclePurchaseDealStatus) {
|
|
47
|
-
VehiclePurchaseDealStatus["Marketing"] = "MARKETING";
|
|
48
|
-
VehiclePurchaseDealStatus["PurchaseEvaluation"] = "PURCHASE_EVALUATION";
|
|
49
|
-
VehiclePurchaseDealStatus["PurchaseAgreed"] = "PURCHASE_AGREED";
|
|
50
|
-
VehiclePurchaseDealStatus["FirstPaymentAllowed"] = "FIRST_PAYMENT_ALLOWED";
|
|
51
|
-
VehiclePurchaseDealStatus["FirstPaymentSent"] = "FIRST_PAYMENT_SENT";
|
|
52
|
-
VehiclePurchaseDealStatus["FullPaymentAllowed"] = "FULL_PAYMENT_ALLOWED";
|
|
53
|
-
VehiclePurchaseDealStatus["FullPaymentSent"] = "FULL_PAYMENT_SENT";
|
|
54
|
-
})(VehiclePurchaseDealStatus || (VehiclePurchaseDealStatus = {}));
|
|
55
|
-
export var VehiclePurchaseLogisticsStatus;
|
|
56
|
-
(function (VehiclePurchaseLogisticsStatus) {
|
|
57
|
-
VehiclePurchaseLogisticsStatus["AtOrigin"] = "AT_ORIGIN";
|
|
58
|
-
VehiclePurchaseLogisticsStatus["Arrived"] = "ARRIVED";
|
|
59
|
-
VehiclePurchaseLogisticsStatus["CheckedIn"] = "CHECKED_IN";
|
|
60
|
-
})(VehiclePurchaseLogisticsStatus || (VehiclePurchaseLogisticsStatus = {}));
|
|
61
|
-
export var VehiclePurchaseDeliveryType;
|
|
62
|
-
(function (VehiclePurchaseDeliveryType) {
|
|
63
|
-
VehiclePurchaseDeliveryType["PickUp"] = "PICK_UP";
|
|
64
|
-
VehiclePurchaseDeliveryType["DropOff"] = "DROP_OFF";
|
|
65
|
-
})(VehiclePurchaseDeliveryType || (VehiclePurchaseDeliveryType = {}));
|
|
66
|
-
export var VehicleActions;
|
|
67
|
-
(function (VehicleActions) {
|
|
68
|
-
VehicleActions["EditAdminDocs"] = "edit_admin_docs";
|
|
69
|
-
VehicleActions["EditEngineeringDocs"] = "edit_engineering_docs";
|
|
70
|
-
VehicleActions["EditMarketing"] = "edit_marketing";
|
|
71
|
-
VehicleActions["EditMedia"] = "edit_media";
|
|
72
|
-
VehicleActions["EditPictures"] = "edit_pictures";
|
|
73
|
-
VehicleActions["EditPrices"] = "edit_prices";
|
|
74
|
-
VehicleActions["EditPurchaseDeal"] = "edit_purchase_deal";
|
|
75
|
-
VehicleActions["EditPurchaseLogistics"] = "edit_purchase_logistics";
|
|
76
|
-
VehicleActions["EditSpecs"] = "edit_specs";
|
|
77
|
-
VehicleActions["EditVideos"] = "edit_videos";
|
|
78
|
-
VehicleActions["ViewLeads"] = "view_leads";
|
|
79
|
-
VehicleActions["ViewSimilarOnline"] = "view_similar_online";
|
|
80
|
-
VehicleActions["ViewPurchase"] = "view_purchase";
|
|
81
|
-
VehicleActions["ViewPriceHistory"] = "view_price_history";
|
|
82
|
-
VehicleActions["DeleteVehicle"] = "delete_vehicle";
|
|
83
|
-
})(VehicleActions || (VehicleActions = {}));
|
|
84
|
-
export var PurchaseActions;
|
|
85
|
-
(function (PurchaseActions) {
|
|
86
|
-
PurchaseActions["ViewDeal"] = "view_deal";
|
|
87
|
-
PurchaseActions["ViewSupplierOrganization"] = "view_supplier_organization";
|
|
88
|
-
PurchaseActions["ViewContact"] = "view_contact";
|
|
89
|
-
PurchaseActions["ViewLegalAddress"] = "view_legal_address";
|
|
90
|
-
PurchaseActions["ViewPickupAddress"] = "view_pickup_address";
|
|
91
|
-
PurchaseActions["ViewEstimatedCosts"] = "view_estimated_costs";
|
|
92
|
-
PurchaseActions["ViewFinanceDocuments"] = "view_finance_documents";
|
|
93
|
-
})(PurchaseActions || (PurchaseActions = {}));
|
|
94
|
-
//# sourceMappingURL=vehicles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vehicles.js","sourceRoot":"","sources":["vehicles.ts"],"names":[],"mappings":"AAeA,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,6CAA6B,CAAA;AAC/B,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AAED,MAAM,CAAN,IAAY,eAoBX;AApBD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,8BAAW,CAAA;IACX,wCAAqB,CAAA;IACrB,6CAA0B,CAAA;IAC1B,2CAAwB,CAAA;IACxB,8BAAW,CAAA;IACX,gCAAa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AwB,CAAA;IACxB,gDAA8B,CAAA;IAC9B,4CAA0B,CAAA;IAC1B,yDAAuC,CAAA;IACvC,mEAAiD,CAAA;IACjD,0CAAwB,CAAA;IACxB,4CAA0B,CAAA;IAC1B,0CAAwB,CAAA;IACxB,2DAAyC,CAAA;IACzC,gDAA8B,CAAA;IAC9B,yDAAuC,CAAA;IACvC,kDAAgC,CAAA;AAClC,CAAC,EAhBW,cAAc,KAAd,cAAc,QAgBzB;AAED,MAAM,CAAN,IAAY,eAQX;AARD,WAAY,eAAe;IACzB,yCAAsB,CAAA;IACtB,0EAAuD,CAAA;IACvD,+CAA4B,CAAA;IAC5B,0DAAuC,CAAA;IACvC,4DAAyC,CAAA;IACzC,8DAA2C,CAAA;IAC3C,kEAA+C,CAAA;AACjD,CAAC,EARW,eAAe,KAAf,eAAe,QAQ1B"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { OpportunityStatus, OpportunityStatusOrder } from '../types/opportunities.js';
|
|
2
|
-
const compareOpportunityStatus = (input) => {
|
|
3
|
-
const { currentStatus, referenceStatus } = input;
|
|
4
|
-
const currentStatusIdx = OpportunityStatusOrder.indexOf(currentStatus);
|
|
5
|
-
const referenceStatusIdx = OpportunityStatusOrder.indexOf(referenceStatus);
|
|
6
|
-
return {
|
|
7
|
-
currentStatusIdx,
|
|
8
|
-
referenceStatusIdx,
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export const getPreviousStatus = (currentStatus) => {
|
|
12
|
-
const currentIndex = OpportunityStatusOrder.indexOf(currentStatus);
|
|
13
|
-
if (currentIndex === 0) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
return OpportunityStatusOrder[currentIndex - 1];
|
|
17
|
-
};
|
|
18
|
-
export const getNextStatus = (status) => {
|
|
19
|
-
const statusIndex = OpportunityStatusOrder.indexOf(status);
|
|
20
|
-
if (statusIndex >= OpportunityStatusOrder.length - 1) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
return OpportunityStatusOrder[statusIndex + 1];
|
|
24
|
-
};
|
|
25
|
-
export const isSameOrAfterReferenceOpportunityStatus = (input) => {
|
|
26
|
-
const { currentStatusIdx, referenceStatusIdx } = compareOpportunityStatus(input);
|
|
27
|
-
return currentStatusIdx >= referenceStatusIdx;
|
|
28
|
-
};
|
|
29
|
-
export const isAfterReferenceOpportunityStatus = (input) => {
|
|
30
|
-
const { currentStatusIdx, referenceStatusIdx } = compareOpportunityStatus(input);
|
|
31
|
-
return currentStatusIdx > referenceStatusIdx;
|
|
32
|
-
};
|
|
33
|
-
export const isSameOrBeforeReferenceOpportunityStatus = (input) => {
|
|
34
|
-
const { currentStatusIdx, referenceStatusIdx } = compareOpportunityStatus(input);
|
|
35
|
-
return currentStatusIdx <= referenceStatusIdx;
|
|
36
|
-
};
|
|
37
|
-
export const isBeforeReferenceOpportunityStatus = (input) => {
|
|
38
|
-
const { currentStatusIdx, referenceStatusIdx } = compareOpportunityStatus(input);
|
|
39
|
-
return currentStatusIdx < referenceStatusIdx;
|
|
40
|
-
};
|
|
41
|
-
export const isOpportunityLost = (input) => input.lostAt != null;
|
|
42
|
-
export const getOpportunityReservedStatus = () => [
|
|
43
|
-
OpportunityStatus.REVIEW,
|
|
44
|
-
OpportunityStatus.PREPARATION,
|
|
45
|
-
OpportunityStatus.DELIVERY,
|
|
46
|
-
];
|
|
47
|
-
export const isOpportunityReserved = (input) => getOpportunityReservedStatus().includes(input.status);
|
|
48
|
-
//# sourceMappingURL=opportunities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opportunities.js","sourceRoot":"","sources":["opportunities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAOnG,MAAM,wBAAwB,GAAG,CAAC,KAAmB,EAAE,EAAE;IACvD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAEjD,MAAM,gBA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