@bisondesk/core-sdk 1.0.653 → 1.0.654

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/types/quotes.d.ts +65 -5
  2. package/lib/types/quotes.d.ts.map +1 -1
  3. package/lib/types/quotes.js +18 -1
  4. package/lib/types/quotes.js.map +1 -1
  5. package/lib/types/templates.d.ts +0 -22
  6. package/lib/types/templates.d.ts.map +1 -1
  7. package/lib/types/templates.js.map +1 -1
  8. package/lib/types/transports.d.ts +15 -10
  9. package/lib/types/transports.d.ts.map +1 -1
  10. package/lib/types/transports.js +5 -5
  11. package/lib/types/transports.js.map +1 -1
  12. package/lib/types/vehicle-sales.d.ts +2 -3
  13. package/lib/types/vehicle-sales.d.ts.map +1 -1
  14. package/lib/types/vehicle-sales.js.map +1 -1
  15. package/lib/utils/organizations.d.ts +3 -0
  16. package/lib/utils/organizations.d.ts.map +1 -0
  17. package/lib/utils/organizations.js +15 -0
  18. package/lib/utils/organizations.js.map +1 -0
  19. package/lib/utils/transports.d.ts +1 -1
  20. package/lib/utils/transports.d.ts.map +1 -1
  21. package/lib/utils/transports.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/types/quotes.ts +73 -17
  24. package/src/types/templates.ts +0 -27
  25. package/src/types/transports.ts +24 -24
  26. package/src/types/vehicle-sales.ts +2 -3
  27. package/src/utils/organizations.ts +30 -0
  28. package/src/utils/transports.ts +5 -3
  29. package/tsconfig.tsbuildinfo +1 -1
  30. package/lib/types/deliveries.d.ts +0 -74
  31. package/lib/types/deliveries.d.ts.map +0 -1
  32. package/lib/types/deliveries.js +0 -24
  33. package/lib/types/deliveries.js.map +0 -1
  34. package/lib/utils/deliveries.d.ts +0 -3
  35. package/lib/utils/deliveries.d.ts.map +0 -1
  36. package/lib/utils/deliveries.js +0 -3
  37. package/lib/utils/deliveries.js.map +0 -1
  38. package/lib/utils/deliveries.test.d.ts +0 -2
  39. package/lib/utils/deliveries.test.d.ts.map +0 -1
  40. package/lib/utils/deliveries.test.js +0 -34
  41. package/lib/utils/deliveries.test.js.map +0 -1
  42. package/src/types/activities.js +0 -13
  43. package/src/types/activities.js.map +0 -1
  44. package/src/types/comparables.js +0 -2
  45. package/src/types/comparables.js.map +0 -1
  46. package/src/types/crm.js +0 -58
  47. package/src/types/crm.js.map +0 -1
  48. package/src/types/dashboard.js +0 -2
  49. package/src/types/dashboard.js.map +0 -1
  50. package/src/types/definitions.js +0 -2
  51. package/src/types/definitions.js.map +0 -1
  52. package/src/types/deliveries.ts +0 -92
  53. package/src/types/fields.js +0 -2
  54. package/src/types/fields.js.map +0 -1
  55. package/src/types/insights.js +0 -2
  56. package/src/types/insights.js.map +0 -1
  57. package/src/types/interests.js +0 -6
  58. package/src/types/interests.js.map +0 -1
  59. package/src/types/internal-events.js +0 -18
  60. package/src/types/internal-events.js.map +0 -1
  61. package/src/types/internet-opportunities.js +0 -2
  62. package/src/types/internet-opportunities.js.map +0 -1
  63. package/src/types/internet-vehicles.js +0 -2
  64. package/src/types/internet-vehicles.js.map +0 -1
  65. package/src/types/leasing-administration.js +0 -2
  66. package/src/types/leasing-administration.js.map +0 -1
  67. package/src/types/leasing-debtors.js +0 -2
  68. package/src/types/leasing-debtors.js.map +0 -1
  69. package/src/types/leasing-search.js +0 -2
  70. package/src/types/leasing-search.js.map +0 -1
  71. package/src/types/leasing-settings.js +0 -7
  72. package/src/types/leasing-settings.js.map +0 -1
  73. package/src/types/leasing.js +0 -38
  74. package/src/types/leasing.js.map +0 -1
  75. package/src/types/marketing.js +0 -35
  76. package/src/types/marketing.js.map +0 -1
  77. package/src/types/offers.js +0 -56
  78. package/src/types/opportunities.js +0 -107
  79. package/src/types/opportunities.js.map +0 -1
  80. package/src/types/payments.js +0 -7
  81. package/src/types/picklists.js +0 -2
  82. package/src/types/picklists.js.map +0 -1
  83. package/src/types/quotes.js +0 -42
  84. package/src/types/recently-viewed.js +0 -2
  85. package/src/types/recently-viewed.js.map +0 -1
  86. package/src/types/reservations.js +0 -5
  87. package/src/types/reservations.js.map +0 -1
  88. package/src/types/roi-ratings.js +0 -5
  89. package/src/types/roi-ratings.js.map +0 -1
  90. package/src/types/saved-filters.js +0 -9
  91. package/src/types/saved-filters.js.map +0 -1
  92. package/src/types/search.js +0 -2
  93. package/src/types/search.js.map +0 -1
  94. package/src/types/settings.js +0 -2
  95. package/src/types/settings.js.map +0 -1
  96. package/src/types/templates.js +0 -2
  97. package/src/types/templates.js.map +0 -1
  98. package/src/types/tenants.js +0 -21
  99. package/src/types/tenants.js.map +0 -1
  100. package/src/types/user-performance.js +0 -7
  101. package/src/types/user-performance.js.map +0 -1
  102. package/src/types/utils.js +0 -2
  103. package/src/types/validation.js +0 -2
  104. package/src/types/validation.js.map +0 -1
  105. package/src/types/vehicle-sales.js +0 -6
  106. package/src/types/vehicle-sales.js.map +0 -1
  107. package/src/types/vehicles.js +0 -98
  108. package/src/types/vehicles.js.map +0 -1
  109. package/src/utils/deliveries.test.ts +0 -50
  110. package/src/utils/deliveries.ts +0 -13
  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,74 +0,0 @@
1
- import { LocationValue } from '@bisondesk/commons-sdk/types';
2
- export declare enum PurchaseDeliveryTypes {
3
- ADDRESS = "address",
4
- DROP_OFF = "park"
5
- }
6
- export declare enum SalesDeliveryTypes {
7
- PICK_UP = "park",
8
- ADDRESS = "address",
9
- PORT = "port",
10
- PORT_AND_SHIP = "portAndShip"
11
- }
12
- export declare enum SpoilerInfo {
13
- MOUNT = "mount",
14
- UNMOUNT = "unmount",
15
- NO_ACTION = "noAction"
16
- }
17
- export declare enum TransportationMode {
18
- BY_ROAD = "byRoad",
19
- ON_LOW_BED = "onLowBed"
20
- }
21
- type BaseDeliveryType = {
22
- agreedPrice: string;
23
- spoiler?: SpoilerInfo;
24
- stackingVehicleNeeded?: boolean;
25
- detailsStacking?: string;
26
- };
27
- export type PickUpDeliveryType = BaseDeliveryType & {
28
- type: SalesDeliveryTypes.PICK_UP;
29
- urgent: boolean;
30
- transportationMode?: TransportationMode;
31
- detailsBorderCrossing?: string;
32
- technicalControlNeeded: boolean;
33
- insuranceNeeded: boolean;
34
- transitPlateBelgiumNeeded: boolean;
35
- transitPlateAustriaNeeded: boolean;
36
- licensePlateNeeded: boolean;
37
- dateOfPickUpByCustomer?: string;
38
- };
39
- export type DropOffDeliveryType = BaseDeliveryType & {
40
- type: PurchaseDeliveryTypes.DROP_OFF;
41
- };
42
- export type AddressDeliveryType<T extends SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS = SalesDeliveryTypes.ADDRESS> = BaseDeliveryType & {
43
- type: T;
44
- address: LocationValue;
45
- distanceKm: string;
46
- technicalControlNeeded: boolean;
47
- };
48
- export type PortDeliverytype = BaseDeliveryType & {
49
- type: SalesDeliveryTypes.PORT | SalesDeliveryTypes.PORT_AND_SHIP;
50
- portOriginId: string;
51
- portDestination?: string;
52
- shippingCompany?: string;
53
- portToPortCostPrice: string;
54
- parkToPortCostPrice?: string;
55
- portToPortMargin: string;
56
- ets?: string;
57
- eta?: string;
58
- etd?: string;
59
- shipClosingDate?: string;
60
- bookingRef?: string;
61
- deliveryLocation?: string;
62
- };
63
- export type SalesDeliveryType = PickUpDeliveryType | AddressDeliveryType | PortDeliverytype;
64
- export type PurchaseDeliveryType = AddressDeliveryType<SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS> | DropOffDeliveryType;
65
- export type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {
66
- addressLine1: string;
67
- city: string;
68
- };
69
- export type DeliveryRoutesRequest = {
70
- origin: DeliveryLocationValue;
71
- destination: DeliveryLocationValue;
72
- };
73
- export {};
74
- //# sourceMappingURL=deliveries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveries.d.ts","sourceRoot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3
- PurchaseDeliveryTypes["ADDRESS"] = "address";
4
- PurchaseDeliveryTypes["DROP_OFF"] = "park";
5
- })(PurchaseDeliveryTypes || (PurchaseDeliveryTypes = {}));
6
- export var SalesDeliveryTypes;
7
- (function (SalesDeliveryTypes) {
8
- SalesDeliveryTypes["PICK_UP"] = "park";
9
- SalesDeliveryTypes["ADDRESS"] = "address";
10
- SalesDeliveryTypes["PORT"] = "port";
11
- SalesDeliveryTypes["PORT_AND_SHIP"] = "portAndShip";
12
- })(SalesDeliveryTypes || (SalesDeliveryTypes = {}));
13
- export var SpoilerInfo;
14
- (function (SpoilerInfo) {
15
- SpoilerInfo["MOUNT"] = "mount";
16
- SpoilerInfo["UNMOUNT"] = "unmount";
17
- SpoilerInfo["NO_ACTION"] = "noAction";
18
- })(SpoilerInfo || (SpoilerInfo = {}));
19
- export var TransportationMode;
20
- (function (TransportationMode) {
21
- TransportationMode["BY_ROAD"] = "byRoad";
22
- TransportationMode["ON_LOW_BED"] = "onLowBed";
23
- })(TransportationMode || (TransportationMode = {}));
24
- //# sourceMappingURL=deliveries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveries.js","sourceRoot":"/","sources":["types/deliveries.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;AACnB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,sCAAgB,CAAA;IAChB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,mDAA6B,CAAA;AAC/B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;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","sourcesContent":["import { LocationValue } from '@bisondesk/commons-sdk/types';\n\n/** Supplier collection keeps the existing address value in stored transports. */\nexport enum PurchaseDeliveryTypes {\n ADDRESS = 'address',\n DROP_OFF = 'park',\n}\n\nexport enum SalesDeliveryTypes {\n PICK_UP = 'park',\n ADDRESS = 'address',\n PORT = 'port',\n PORT_AND_SHIP = 'portAndShip',\n}\n\nexport enum SpoilerInfo {\n MOUNT = 'mount',\n UNMOUNT = 'unmount',\n NO_ACTION = 'noAction',\n}\n\nexport enum TransportationMode {\n BY_ROAD = 'byRoad',\n ON_LOW_BED = 'onLowBed',\n}\n\ntype BaseDeliveryType = {\n agreedPrice: string;\n spoiler?: SpoilerInfo;\n stackingVehicleNeeded?: boolean;\n detailsStacking?: string;\n};\n\nexport type PickUpDeliveryType = BaseDeliveryType & {\n type: SalesDeliveryTypes.PICK_UP;\n urgent: boolean;\n transportationMode?: TransportationMode;\n detailsBorderCrossing?: string;\n technicalControlNeeded: boolean;\n insuranceNeeded: boolean;\n transitPlateBelgiumNeeded: boolean;\n transitPlateAustriaNeeded: boolean;\n licensePlateNeeded: boolean;\n dateOfPickUpByCustomer?: string;\n};\n\n/** The supplier brings the vehicle to our park without a collection address or distance. */\nexport type DropOffDeliveryType = BaseDeliveryType & {\n type: PurchaseDeliveryTypes.DROP_OFF;\n};\n\nexport type AddressDeliveryType<\n T extends SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS = SalesDeliveryTypes.ADDRESS,\n> = BaseDeliveryType & {\n type: T;\n address: LocationValue;\n distanceKm: string;\n technicalControlNeeded: boolean;\n};\n\nexport type PortDeliverytype = BaseDeliveryType & {\n type: SalesDeliveryTypes.PORT | SalesDeliveryTypes.PORT_AND_SHIP;\n portOriginId: string;\n portDestination?: string;\n shippingCompany?: string;\n portToPortCostPrice: string;\n parkToPortCostPrice?: string;\n portToPortMargin: string;\n ets?: string;\n eta?: string;\n etd?: string;\n shipClosingDate?: string;\n bookingRef?: string;\n deliveryLocation?: string;\n};\n\nexport type SalesDeliveryType = PickUpDeliveryType | AddressDeliveryType | PortDeliverytype;\n\n/** Earlier SDKs also used the sales address enum for purchase collection. Both store address. */\nexport type PurchaseDeliveryType =\n | AddressDeliveryType<SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS>\n | DropOffDeliveryType;\n\nexport type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {\n addressLine1: string;\n city: string;\n};\n\nexport type DeliveryRoutesRequest = {\n origin: DeliveryLocationValue;\n destination: DeliveryLocationValue;\n};\n"]}
@@ -1,3 +0,0 @@
1
- import { AddressDeliveryType, PurchaseDeliveryType, PurchaseDeliveryTypes, SalesDeliveryType, SalesDeliveryTypes } from '../types/deliveries.js';
2
- export declare const isAddressDelivery: (delivery?: PurchaseDeliveryType | SalesDeliveryType) => delivery is AddressDeliveryType<PurchaseDeliveryTypes.ADDRESS | SalesDeliveryTypes.ADDRESS>;
3
- //# sourceMappingURL=deliveries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveries.d.ts","sourceRoot":"/","sources":["utils/deliveries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAGhC,eAAO,MAAM,iBAAiB,cACjB,oBAAoB,GAAG,iBAAiB,KAClD,QAAQ,IAAI,mBAAmB,CAAC,qBAAqB,CAAC,OAAO,GAAG,kBAAkB,CAAC,OAAO,CACM,CAAC"}
@@ -1,3 +0,0 @@
1
- import { PurchaseDeliveryTypes, SalesDeliveryTypes, } from '../types/deliveries.js';
2
- export const isAddressDelivery = (delivery) => delivery?.type === PurchaseDeliveryTypes.ADDRESS || delivery?.type === SalesDeliveryTypes.ADDRESS;
3
- //# sourceMappingURL=deliveries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveries.js","sourceRoot":"/","sources":["utils/deliveries.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAErB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAGhC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,QAAmD,EAC0C,EAAE,CAC/F,QAAQ,EAAE,IAAI,KAAK,qBAAqB,CAAC,OAAO,IAAI,QAAQ,EAAE,IAAI,KAAK,kBAAkB,CAAC,OAAO,CAAC","sourcesContent":["import {\n AddressDeliveryType,\n PurchaseDeliveryType,\n PurchaseDeliveryTypes,\n SalesDeliveryType,\n SalesDeliveryTypes,\n} from '../types/deliveries.js';\n\n/** Purchase collection and sales delivery share the same stored address fields. */\nexport const isAddressDelivery = (\n delivery?: PurchaseDeliveryType | SalesDeliveryType,\n): delivery is AddressDeliveryType<PurchaseDeliveryTypes.ADDRESS | SalesDeliveryTypes.ADDRESS> =>\n delivery?.type === PurchaseDeliveryTypes.ADDRESS || delivery?.type === SalesDeliveryTypes.ADDRESS;\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=deliveries.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveries.test.d.ts","sourceRoot":"/","sources":["utils/deliveries.test.ts"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- import { DeliveryTypes } from '@bisondesk/core-sdk/types/quotes';
2
- import { expectTypeOf } from 'vitest';
3
- import { PurchaseDeliveryTypes, SalesDeliveryTypes, } from '../types/deliveries.js';
4
- import { isAddressDelivery } from './deliveries.js';
5
- test('purchase and sales contracts keep supplier drop-off and customer pick-up separate', () => {
6
- expectTypeOf().not.toMatchTypeOf();
7
- expectTypeOf().not.toMatchTypeOf();
8
- expectTypeOf().toMatchTypeOf();
9
- expectTypeOf().toMatchTypeOf();
10
- });
11
- test('the previous quote export keeps its four sales methods', () => {
12
- expect(DeliveryTypes).toEqual(SalesDeliveryTypes);
13
- expect(Object.values(DeliveryTypes)).toEqual(['park', 'address', 'port', 'portAndShip']);
14
- });
15
- test.each([
16
- SalesDeliveryTypes.ADDRESS,
17
- PurchaseDeliveryTypes.ADDRESS,
18
- ])('reads the address fields for %s', (type) => {
19
- const delivery = {
20
- type,
21
- address: { country: 'be', city: 'Gent' },
22
- distanceKm: '100',
23
- agreedPrice: '0',
24
- technicalControlNeeded: false,
25
- };
26
- expect(isAddressDelivery(delivery)).toBe(true);
27
- });
28
- test('a supplier drop-off has no collection address', () => {
29
- expect(isAddressDelivery({
30
- type: PurchaseDeliveryTypes.DROP_OFF,
31
- agreedPrice: '0',
32
- })).toBe(false);
33
- });
34
- //# sourceMappingURL=deliveries.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliveries.test.js","sourceRoot":"/","sources":["utils/deliveries.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAKL,qBAAqB,EAErB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,IAAI,CAAC,mFAAmF,EAAE,GAAG,EAAE;IAC7F,YAAY,EAAuB,CAAC,GAAG,CAAC,aAAa,EAAqB,CAAC;IAC3E,YAAY,EAAsB,CAAC,GAAG,CAAC,aAAa,EAAwB,CAAC;IAC7E,YAAY,EAAuB,CAAC,aAAa,EAAwB,CAAC;IAC1E,YAAY,EAET,CAAC,aAAa,EAAwB,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,wDAAwD,EAAE,GAAG,EAAE;IAClE,MAAM,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAClD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,IAAI,CAAC;IACR,kBAAkB,CAAC,OAAO;IAC1B,qBAAqB,CAAC,OAAO;CACrB,CAAC,CAAC,iCAAiC,EAAE,CAAC,IAAI,EAAE,EAAE;IACtD,MAAM,QAAQ,GACZ;QACE,IAAI;QACJ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE;QACxC,UAAU,EAAE,KAAK;QACjB,WAAW,EAAE,GAAG;QAChB,sBAAsB,EAAE,KAAK;KAC9B,CAAC;IACJ,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,+CAA+C,EAAE,GAAG,EAAE;IACzD,MAAM,CACJ,iBAAiB,CAAC;QAChB,IAAI,EAAE,qBAAqB,CAAC,QAAQ;QACpC,WAAW,EAAE,GAAG;KACjB,CAAC,CACH,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChB,CAAC,CAAC,CAAC","sourcesContent":["import { DeliveryTypes } from '@bisondesk/core-sdk/types/quotes';\nimport { expectTypeOf } from 'vitest';\nimport {\n AddressDeliveryType,\n DropOffDeliveryType,\n PickUpDeliveryType,\n PurchaseDeliveryType,\n PurchaseDeliveryTypes,\n SalesDeliveryType,\n SalesDeliveryTypes,\n} from '../types/deliveries.js';\nimport { isAddressDelivery } from './deliveries.js';\n\ntest('purchase and sales contracts keep supplier drop-off and customer pick-up separate', () => {\n expectTypeOf<DropOffDeliveryType>().not.toMatchTypeOf<SalesDeliveryType>();\n expectTypeOf<PickUpDeliveryType>().not.toMatchTypeOf<PurchaseDeliveryType>();\n expectTypeOf<AddressDeliveryType>().toMatchTypeOf<PurchaseDeliveryType>();\n expectTypeOf<\n AddressDeliveryType<PurchaseDeliveryTypes.ADDRESS>\n >().toMatchTypeOf<PurchaseDeliveryType>();\n});\n\ntest('the previous quote export keeps its four sales methods', () => {\n expect(DeliveryTypes).toEqual(SalesDeliveryTypes);\n expect(Object.values(DeliveryTypes)).toEqual(['park', 'address', 'port', 'portAndShip']);\n});\n\ntest.each([\n SalesDeliveryTypes.ADDRESS,\n PurchaseDeliveryTypes.ADDRESS,\n] as const)('reads the address fields for %s', (type) => {\n const delivery: AddressDeliveryType<SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS> =\n {\n type,\n address: { country: 'be', city: 'Gent' },\n distanceKm: '100',\n agreedPrice: '0',\n technicalControlNeeded: false,\n };\n expect(isAddressDelivery(delivery)).toBe(true);\n});\n\ntest('a supplier drop-off has no collection address', () => {\n expect(\n isAddressDelivery({\n type: PurchaseDeliveryTypes.DROP_OFF,\n agreedPrice: '0',\n }),\n ).toBe(false);\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,EAH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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,92 +0,0 @@
1
- import { LocationValue } from '@bisondesk/commons-sdk/types';
2
-
3
- /** Supplier collection keeps the existing address value in stored transports. */
4
- export enum PurchaseDeliveryTypes {
5
- ADDRESS = 'address',
6
- DROP_OFF = 'park',
7
- }
8
-
9
- export enum SalesDeliveryTypes {
10
- PICK_UP = 'park',
11
- ADDRESS = 'address',
12
- PORT = 'port',
13
- PORT_AND_SHIP = 'portAndShip',
14
- }
15
-
16
- export enum SpoilerInfo {
17
- MOUNT = 'mount',
18
- UNMOUNT = 'unmount',
19
- NO_ACTION = 'noAction',
20
- }
21
-
22
- export enum TransportationMode {
23
- BY_ROAD = 'byRoad',
24
- ON_LOW_BED = 'onLowBed',
25
- }
26
-
27
- type BaseDeliveryType = {
28
- agreedPrice: string;
29
- spoiler?: SpoilerInfo;
30
- stackingVehicleNeeded?: boolean;
31
- detailsStacking?: string;
32
- };
33
-
34
- export type PickUpDeliveryType = BaseDeliveryType & {
35
- type: SalesDeliveryTypes.PICK_UP;
36
- urgent: boolean;
37
- transportationMode?: TransportationMode;
38
- detailsBorderCrossing?: string;
39
- technicalControlNeeded: boolean;
40
- insuranceNeeded: boolean;
41
- transitPlateBelgiumNeeded: boolean;
42
- transitPlateAustriaNeeded: boolean;
43
- licensePlateNeeded: boolean;
44
- dateOfPickUpByCustomer?: string;
45
- };
46
-
47
- /** The supplier brings the vehicle to our park without a collection address or distance. */
48
- export type DropOffDeliveryType = BaseDeliveryType & {
49
- type: PurchaseDeliveryTypes.DROP_OFF;
50
- };
51
-
52
- export type AddressDeliveryType<
53
- T extends SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS = SalesDeliveryTypes.ADDRESS,
54
- > = BaseDeliveryType & {
55
- type: T;
56
- address: LocationValue;
57
- distanceKm: string;
58
- technicalControlNeeded: boolean;
59
- };
60
-
61
- export type PortDeliverytype = BaseDeliveryType & {
62
- type: SalesDeliveryTypes.PORT | SalesDeliveryTypes.PORT_AND_SHIP;
63
- portOriginId: string;
64
- portDestination?: string;
65
- shippingCompany?: string;
66
- portToPortCostPrice: string;
67
- parkToPortCostPrice?: string;
68
- portToPortMargin: string;
69
- ets?: string;
70
- eta?: string;
71
- etd?: string;
72
- shipClosingDate?: string;
73
- bookingRef?: string;
74
- deliveryLocation?: string;
75
- };
76
-
77
- export type SalesDeliveryType = PickUpDeliveryType | AddressDeliveryType | PortDeliverytype;
78
-
79
- /** Earlier SDKs also used the sales address enum for purchase collection. Both store address. */
80
- export type PurchaseDeliveryType =
81
- | AddressDeliveryType<SalesDeliveryTypes.ADDRESS | PurchaseDeliveryTypes.ADDRESS>
82
- | DropOffDeliveryType;
83
-
84
- export type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {
85
- addressLine1: string;
86
- city: string;
87
- };
88
-
89
- export type DeliveryRoutesRequest = {
90
- origin: DeliveryLocationValue;
91
- destination: DeliveryLocationValue;
92
- };
@@ -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