@bisondesk/core-sdk 1.0.580 → 1.0.582

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 (109) hide show
  1. package/lib/apis/country-pricing.d.ts +3 -0
  2. package/lib/apis/country-pricing.d.ts.map +1 -0
  3. package/lib/apis/country-pricing.js +20 -0
  4. package/lib/apis/country-pricing.js.map +1 -0
  5. package/lib/constants.d.ts +1 -0
  6. package/lib/constants.d.ts.map +1 -1
  7. package/lib/constants.js +1 -0
  8. package/lib/constants.js.map +1 -1
  9. package/lib/types/country-pricing.d.ts +9 -0
  10. package/lib/types/country-pricing.d.ts.map +1 -0
  11. package/lib/types/country-pricing.js +2 -0
  12. package/lib/types/country-pricing.js.map +1 -0
  13. package/lib/types/internal-events.d.ts +2 -1
  14. package/lib/types/internal-events.d.ts.map +1 -1
  15. package/lib/types/internal-events.js +1 -0
  16. package/lib/types/internal-events.js.map +1 -1
  17. package/lib/types/leasing-debtors.d.ts +1 -0
  18. package/lib/types/leasing-debtors.d.ts.map +1 -1
  19. package/lib/types/leasing-debtors.js.map +1 -1
  20. package/lib/types/offers.d.ts +5 -0
  21. package/lib/types/offers.d.ts.map +1 -1
  22. package/lib/types/offers.js.map +1 -1
  23. package/lib/types/prospects.d.ts +135 -0
  24. package/lib/types/prospects.d.ts.map +1 -0
  25. package/lib/types/prospects.js +40 -0
  26. package/lib/types/prospects.js.map +1 -0
  27. package/lib/types/user-performance.d.ts +2 -0
  28. package/lib/types/user-performance.d.ts.map +1 -1
  29. package/lib/types/user-performance.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/apis/country-pricing.ts +23 -0
  32. package/src/constants.ts +5 -0
  33. package/src/types/activities.js +13 -0
  34. package/src/types/activities.js.map +1 -0
  35. package/src/types/comparables.js +2 -0
  36. package/src/types/comparables.js.map +1 -0
  37. package/src/types/country-pricing.ts +8 -0
  38. package/src/types/crm.js +58 -0
  39. package/src/types/crm.js.map +1 -0
  40. package/src/types/dashboard.js +2 -0
  41. package/src/types/dashboard.js.map +1 -0
  42. package/src/types/definitions.js +2 -0
  43. package/src/types/definitions.js.map +1 -0
  44. package/src/types/fields.js +2 -0
  45. package/src/types/fields.js.map +1 -0
  46. package/src/types/insights.js +2 -0
  47. package/src/types/insights.js.map +1 -0
  48. package/src/types/interests.js +6 -0
  49. package/src/types/interests.js.map +1 -0
  50. package/src/types/internal-events.js +18 -0
  51. package/src/types/internal-events.js.map +1 -0
  52. package/src/types/internal-events.ts +1 -0
  53. package/src/types/internet-opportunities.js +2 -0
  54. package/src/types/internet-opportunities.js.map +1 -0
  55. package/src/types/internet-vehicles.js +2 -0
  56. package/src/types/internet-vehicles.js.map +1 -0
  57. package/src/types/leasing-administration.js +2 -0
  58. package/src/types/leasing-administration.js.map +1 -0
  59. package/src/types/leasing-debtors.js +2 -0
  60. package/src/types/leasing-debtors.js.map +1 -0
  61. package/src/types/leasing-debtors.ts +1 -0
  62. package/src/types/leasing-search.js +2 -0
  63. package/src/types/leasing-search.js.map +1 -0
  64. package/src/types/leasing-settings.js +7 -0
  65. package/src/types/leasing-settings.js.map +1 -0
  66. package/src/types/leasing.js +38 -0
  67. package/src/types/leasing.js.map +1 -0
  68. package/src/types/marketing.js +35 -0
  69. package/src/types/marketing.js.map +1 -0
  70. package/src/types/offers.js +56 -0
  71. package/src/types/offers.ts +6 -0
  72. package/src/types/opportunities.js +107 -0
  73. package/src/types/opportunities.js.map +1 -0
  74. package/src/types/payments.js +7 -0
  75. package/src/types/picklists.js +2 -0
  76. package/src/types/picklists.js.map +1 -0
  77. package/src/types/prospects.ts +181 -0
  78. package/src/types/quotes.js +42 -0
  79. package/src/types/recently-viewed.js +2 -0
  80. package/src/types/recently-viewed.js.map +1 -0
  81. package/src/types/reservations.js +5 -0
  82. package/src/types/reservations.js.map +1 -0
  83. package/src/types/roi-ratings.js +5 -0
  84. package/src/types/roi-ratings.js.map +1 -0
  85. package/src/types/saved-filters.js +9 -0
  86. package/src/types/saved-filters.js.map +1 -0
  87. package/src/types/search.js +2 -0
  88. package/src/types/search.js.map +1 -0
  89. package/src/types/settings.js +2 -0
  90. package/src/types/settings.js.map +1 -0
  91. package/src/types/templates.js +2 -0
  92. package/src/types/templates.js.map +1 -0
  93. package/src/types/tenants.js +21 -0
  94. package/src/types/tenants.js.map +1 -0
  95. package/src/types/user-performance.js +7 -0
  96. package/src/types/user-performance.js.map +1 -0
  97. package/src/types/user-performance.ts +2 -0
  98. package/src/types/utils.js +2 -0
  99. package/src/types/validation.js +2 -0
  100. package/src/types/validation.js.map +1 -0
  101. package/src/types/vehicle-sales.js +6 -0
  102. package/src/types/vehicle-sales.js.map +1 -0
  103. package/src/types/vehicles.js +98 -0
  104. package/src/types/vehicles.js.map +1 -0
  105. package/src/utils/leasing.js +6 -0
  106. package/src/utils/leasing.js.map +1 -0
  107. package/src/utils/opportunities.js +48 -0
  108. package/src/utils/opportunities.js.map +1 -0
  109. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,135 @@
1
+ import { MultiLangValue } from '@bisondesk/commons-sdk/types';
2
+ import { BaseEvent } from './internal-events.js';
3
+ import { BaseSearchRequest } from './search.js';
4
+ import { Contact, Organization } from './crm.js';
5
+ import { DataRecord, ReferenceData } from './utils.js';
6
+ import { NextList } from '@bisondesk/commons-sdk/types';
7
+ import { Task } from '@bisondesk/commons-sdk/tasks';
8
+ export declare enum ProspectActions {
9
+ CLOSE = "close",
10
+ REOPEN = "reopen",
11
+ ENGAGE = "engage",
12
+ SET_METADATA = "set_metadata",
13
+ SET_OBJECTIVES = "set_objectives",
14
+ SET_CUSTOMER = "set_customer",
15
+ ADD_ACTIVITY = "add_activity",
16
+ DELETE = "delete"
17
+ }
18
+ export declare enum ProspectStatus {
19
+ NURTURE = "nurture",
20
+ ATTEMPTING = "attempting",
21
+ ENGAGED = "engaged",
22
+ CLOSED = "closed"
23
+ }
24
+ export declare const ProspectStatusOrder: ProspectStatus[];
25
+ export declare const ProspectKanbanColumns: ProspectStatus[];
26
+ export declare const ProspectKanbanEndColumns: string[];
27
+ export declare enum ProspectClosedReason {
28
+ CONVERTED = "converted",
29
+ DEFERRED = "deferred",
30
+ NO_REPLY = "no_reply",
31
+ NOT_INTERESTED = "not_interested",
32
+ AUTOMATIC = "automatic"
33
+ }
34
+ export declare enum ProspectPriority {
35
+ LOW = "low",
36
+ NORMAL = "normal",
37
+ HIGH = "high"
38
+ }
39
+ export type ProspectObjective = {
40
+ id: string;
41
+ title: MultiLangValue;
42
+ };
43
+ type BaseProspect = {
44
+ contactId?: string;
45
+ organizationId?: string;
46
+ branchId: string;
47
+ accountManager?: string;
48
+ priority: ProspectPriority;
49
+ score?: number;
50
+ objectives: ProspectObjective[];
51
+ };
52
+ export type NewProspect = BaseProspect & {
53
+ id?: undefined;
54
+ createdAt?: undefined;
55
+ createdBy?: undefined;
56
+ modifiedAt?: undefined;
57
+ modifiedBy?: undefined;
58
+ };
59
+ export type Prospect = BaseProspect & {
60
+ id: string;
61
+ status: ProspectStatus;
62
+ attemptingAt?: string;
63
+ attemptingBy?: string;
64
+ engagedAt?: string;
65
+ engagedBy?: string;
66
+ closedAt?: string;
67
+ closedBy?: string;
68
+ closedReason?: ProspectClosedReason;
69
+ createdAt: string;
70
+ createdBy: string;
71
+ modifiedAt: string;
72
+ modifiedBy: string;
73
+ };
74
+ export type ProspectUpdate = {
75
+ contactId?: string | null;
76
+ organizationId?: string | null;
77
+ branchId?: string;
78
+ accountManager?: string | null;
79
+ priority?: ProspectPriority;
80
+ score?: number | null;
81
+ objectives?: ProspectObjective[];
82
+ close?: boolean;
83
+ closedReason?: ProspectClosedReason;
84
+ reopen?: boolean;
85
+ engage?: boolean;
86
+ };
87
+ export type ProspectBff = {
88
+ prospect: DataRecord<Prospect>;
89
+ contact?: DataRecord<Contact>;
90
+ org?: DataRecord<Organization>;
91
+ tasks: DataRecord<Task>[];
92
+ };
93
+ export type SearchProspect = {
94
+ contact?: Contact;
95
+ prospect: Prospect;
96
+ org?: Organization;
97
+ custom: {
98
+ closed: boolean;
99
+ unassigned: boolean;
100
+ };
101
+ };
102
+ export type ProspectsKanbanColumn = {
103
+ status: string;
104
+ results: SearchProspect[];
105
+ totalCount: number;
106
+ };
107
+ export type MSearchProspectsKanbanColumn = {
108
+ column: ProspectsKanbanColumn;
109
+ nextToken?: string;
110
+ };
111
+ export type KanbanProspectsSearchRequest = BaseSearchRequest & {
112
+ nextTokens?: Record<string, string | undefined>;
113
+ };
114
+ export type KanbanProspectsNextList = Omit<NextList<ProspectsKanbanColumn, ReferenceData>, 'nextToken'> & {
115
+ nextTokens?: Record<string, string | undefined>;
116
+ };
117
+ type BaseProspectEvent = BaseEvent & {
118
+ id: string;
119
+ actionAt: string;
120
+ tenantId: string;
121
+ userId: string;
122
+ };
123
+ export type ProspectCreatedEvent = BaseProspectEvent & {
124
+ action: 'create';
125
+ prospect: Prospect;
126
+ previousProspect?: undefined;
127
+ };
128
+ export type ProspectUpdatedEvent = BaseProspectEvent & {
129
+ action: 'update';
130
+ prospect: Prospect;
131
+ previousProspect: Prospect;
132
+ };
133
+ export type ProspectEvent = ProspectCreatedEvent | ProspectUpdatedEvent;
134
+ export {};
135
+ //# sourceMappingURL=prospects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prospects.d.ts","sourceRoot":"/","sources":["types/prospects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,oB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AG,iBAAiB,GAAG;IACrD,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,gBAAgB,EAAE,QAAQ,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,40 @@
1
+ export var ProspectActions;
2
+ (function (ProspectActions) {
3
+ ProspectActions["CLOSE"] = "close";
4
+ ProspectActions["REOPEN"] = "reopen";
5
+ ProspectActions["ENGAGE"] = "engage";
6
+ ProspectActions["SET_METADATA"] = "set_metadata";
7
+ ProspectActions["SET_OBJECTIVES"] = "set_objectives";
8
+ ProspectActions["SET_CUSTOMER"] = "set_customer";
9
+ ProspectActions["ADD_ACTIVITY"] = "add_activity";
10
+ ProspectActions["DELETE"] = "delete";
11
+ })(ProspectActions || (ProspectActions = {}));
12
+ export var ProspectStatus;
13
+ (function (ProspectStatus) {
14
+ ProspectStatus["NURTURE"] = "nurture";
15
+ ProspectStatus["ATTEMPTING"] = "attempting";
16
+ ProspectStatus["ENGAGED"] = "engaged";
17
+ ProspectStatus["CLOSED"] = "closed";
18
+ })(ProspectStatus || (ProspectStatus = {}));
19
+ export const ProspectStatusOrder = [
20
+ ProspectStatus.NURTURE,
21
+ ProspectStatus.ATTEMPTING,
22
+ ProspectStatus.ENGAGED,
23
+ ];
24
+ export const ProspectKanbanColumns = [...ProspectStatusOrder, ProspectStatus.CLOSED];
25
+ export const ProspectKanbanEndColumns = [ProspectStatus.CLOSED];
26
+ export var ProspectClosedReason;
27
+ (function (ProspectClosedReason) {
28
+ ProspectClosedReason["CONVERTED"] = "converted";
29
+ ProspectClosedReason["DEFERRED"] = "deferred";
30
+ ProspectClosedReason["NO_REPLY"] = "no_reply";
31
+ ProspectClosedReason["NOT_INTERESTED"] = "not_interested";
32
+ ProspectClosedReason["AUTOMATIC"] = "automatic";
33
+ })(ProspectClosedReason || (ProspectClosedReason = {}));
34
+ export var ProspectPriority;
35
+ (function (ProspectPriority) {
36
+ ProspectPriority["LOW"] = "low";
37
+ ProspectPriority["NORMAL"] = "normal";
38
+ ProspectPriority["HIGH"] = "high";
39
+ })(ProspectPriority || (ProspectPriority = {}));
40
+ //# sourceMappingURL=prospects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prospects.js","sourceRoot":"/","sources":["types/prospects.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,gDAA6B,CAAA;IAC7B,oDAAiC,CAAA;IACjC,gDAA6B,CAAA;IAC7B,gDAA6B,CAAA;IAC7B,oCAAiB,CAAA;AACnB,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B;AAED,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAqB;IACnD,cAAc,CAAC,OAAO;IACtB,cAAc,CAAC,UAAU;IACzB,cAAc,CAAC,OAAO;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAG,mBAAmB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;AAErF,MAAM,CAAC,MAAM,wBAAwB,GAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAE1E,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,yDAAiC,CAAA;IACjC,+CAAuB,CAAA;AACzB,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B;AAED,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,qCAAiB,CAAA;IACjB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B","sourcesContent":["import { MultiLangValue } from '@bisondesk/commons-sdk/types';\nimport { BaseEvent } from './internal-events.js';\nimport { BaseSearchRequest } from './search.js';\nimport { Contact, Organization } from './crm.js';\nimport { DataRecord, ReferenceData } from './utils.js';\nimport { NextList } from '@bisondesk/commons-sdk/types';\nimport { Task } from '@bisondesk/commons-sdk/tasks';\n\nexport enum ProspectActions {\n CLOSE = 'close',\n REOPEN = 'reopen',\n ENGAGE = 'engage',\n SET_METADATA = 'set_metadata',\n SET_OBJECTIVES = 'set_objectives',\n SET_CUSTOMER = 'set_customer',\n ADD_ACTIVITY = 'add_activity',\n DELETE = 'delete',\n}\n\nexport enum ProspectStatus {\n NURTURE = 'nurture',\n ATTEMPTING = 'attempting',\n ENGAGED = 'engaged',\n CLOSED = 'closed',\n}\n\nexport const ProspectStatusOrder: ProspectStatus[] = [\n ProspectStatus.NURTURE,\n ProspectStatus.ATTEMPTING,\n ProspectStatus.ENGAGED,\n];\n\nexport const ProspectKanbanColumns = [...ProspectStatusOrder, ProspectStatus.CLOSED];\n\nexport const ProspectKanbanEndColumns: string[] = [ProspectStatus.CLOSED];\n\nexport enum ProspectClosedReason {\n CONVERTED = 'converted',\n DEFERRED = 'deferred',\n NO_REPLY = 'no_reply',\n NOT_INTERESTED = 'not_interested',\n AUTOMATIC = 'automatic',\n}\n\nexport enum ProspectPriority {\n LOW = 'low',\n NORMAL = 'normal',\n HIGH = 'high',\n}\n\nexport type ProspectObjective = {\n id: string;\n title: MultiLangValue;\n};\n\ntype BaseProspect = {\n contactId?: string;\n organizationId?: string;\n branchId: string;\n accountManager?: string;\n priority: ProspectPriority;\n score?: number;\n objectives: ProspectObjective[];\n};\n\nexport type NewProspect = BaseProspect & {\n id?: undefined;\n createdAt?: undefined;\n createdBy?: undefined;\n modifiedAt?: undefined;\n modifiedBy?: undefined;\n};\n\nexport type Prospect = BaseProspect & {\n id: string;\n\n status: ProspectStatus;\n\n attemptingAt?: string;\n attemptingBy?: string;\n engagedAt?: string;\n engagedBy?: string;\n closedAt?: string;\n closedBy?: string;\n closedReason?: ProspectClosedReason;\n\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n};\n\nexport type ProspectUpdate = {\n contactId?: string | null;\n organizationId?: string | null;\n branchId?: string;\n accountManager?: string | null;\n priority?: ProspectPriority;\n score?: number | null;\n objectives?: ProspectObjective[];\n\n close?: boolean;\n closedReason?: ProspectClosedReason;\n reopen?: boolean;\n engage?: boolean;\n};\n\nexport type ProspectBff = {\n prospect: DataRecord<Prospect>;\n contact?: DataRecord<Contact>;\n org?: DataRecord<Organization>;\n tasks: DataRecord<Task>[];\n};\n\n/************\n *\n * Search\n */\n\nexport type SearchProspect = {\n contact?: Contact;\n prospect: Prospect;\n org?: Organization;\n custom: {\n closed: boolean;\n unassigned: boolean;\n };\n};\n\n/************\n *\n * Kanban\n */\n\nexport type ProspectsKanbanColumn = {\n status: string;\n results: SearchProspect[];\n totalCount: number;\n};\n\nexport type MSearchProspectsKanbanColumn = {\n column: ProspectsKanbanColumn;\n nextToken?: string;\n};\n\nexport type KanbanProspectsSearchRequest = BaseSearchRequest & {\n nextTokens?: Record<string, string | undefined>;\n};\n\nexport type KanbanProspectsNextList = Omit<\n NextList<ProspectsKanbanColumn, ReferenceData>,\n 'nextToken'\n> & {\n nextTokens?: Record<string, string | undefined>;\n};\n\n/************\n *\n * Events\n */\n\ntype BaseProspectEvent = BaseEvent & {\n id: string;\n actionAt: string;\n tenantId: string;\n userId: string;\n};\n\nexport type ProspectCreatedEvent = BaseProspectEvent & {\n action: 'create';\n prospect: Prospect;\n previousProspect?: undefined;\n};\n\nexport type ProspectUpdatedEvent = BaseProspectEvent & {\n action: 'update';\n prospect: Prospect;\n previousProspect: Prospect;\n};\n\nexport type ProspectEvent = ProspectCreatedEvent | ProspectUpdatedEvent;\n"]}
@@ -36,6 +36,7 @@ export type UserCommissionPlan = {
36
36
  year: number;
37
37
  startDate?: string;
38
38
  targets: TargetCommission[];
39
+ showCommissionToUser?: boolean;
39
40
  };
40
41
  export declare enum CommissionGrade {
41
42
  TooLow = "tooLow",
@@ -99,6 +100,7 @@ export type UserCommissionsPaymentRequest = {
99
100
  };
100
101
  export type UserCommissionInfo = {
101
102
  manager?: boolean;
103
+ canViewCommission?: boolean;
102
104
  performance: boolean;
103
105
  planYears: number[];
104
106
  };
@@ -1 +1 @@
1
- {"version":3,"file":"user-performance.d.ts","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,oBAAY,iBAAiB;IAC3B,uBAAuB,4BAA4B;IACnD,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;CACxC;AAED,oBAAY,cAAc;IACxB,IAAI,cAAc;IAClB,YAAY,sBAAsB;IAClC,OAAO,iBAAiB;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,MAAM,CAAC;AAGnD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAChC,CAAC;AAIF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAIF,MA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SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"user-performance.js","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wEAAmD,CAAA;IACnD,0DAAqC,CAAA;IACrC,4DAAuC,CAAA;AACzC,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,oDAAkC,CAAA;IAClC,0CAAwB,CAAA;AAC1B,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAwCD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B","sourcesContent":["// The commission can be expressed either as a percentage (for profit-based metrics)\n// or as an amount per unit (for unit-based metrics).\nimport { AttachmentValue } from '@bisondesk/commons-sdk/types';\n\nexport enum CommissionSetting {\n INBOUND_USED_TEAM_USERS = 'inbound_used_team_users',\n TEAM_MEMBERSHIPS = 'team_memberships',\n LEASING_COMPANIES = 'leasing_companies',\n}\n\nexport enum CommissionTeam {\n USED = 'used_team',\n NEW_TRAILERS = 'new_trailers_team',\n LEASING = 'leasing_team',\n}\n\nexport type CommissionType = 'percentage' | 'unit';\n\n// Comprehensive metric configuration\nexport type MetricConfig = {\n id: string;\n commissionType: CommissionType;\n personal: boolean; // if true, this metric is personal to the user\n format?: Intl.NumberFormatOptions;\n listVehicles?: boolean; // should this metric be allowed to list vehicles?\n defaultTarget?: number; // default target for the metric, useful for showing metrics to users w/o a commission plan\n autoHide?: boolean; // hide in UI when annual value is 0\n manualEntry?: boolean; // if true, data comes from manually added entries instead of vehicle_business_overviews\n settings?: CommissionSetting[]; // commission settings this metric depends on\n};\n\n// A tier defines a range of performance (using lower and optional upper bounds)\n// along with the associated commission rate. For example, 0–100 units, then 100–400 units, etc.\nexport type CommissionTier = {\n lowerBound: number; // inclusive\n upperBound?: number; // inclusive (omit for the last tier)\n commissionRate: number;\n default?: boolean; // if true, this tier's upper bound is used as reference for dashboards visualizations\n};\n\n// Each target (metric) has one or more tiers.\n// For example, for UnitsSold you might have three tiers corresponding to bare minimum, normal, and above average.\nexport type TargetCommission = {\n metricId: string;\n tiers: CommissionTier[];\n};\n\nexport type UserCommissionPlan = {\n userId: string;\n year: number;\n startDate?: string; // in case the commission plan is only valid from this date onwards, not the whole year\n targets: TargetCommission[];\n};\n\nexport enum CommissionGrade {\n TooLow = 'tooLow',\n Low = 'low',\n OnTarget = 'onTarget',\n}\n\nexport type UserCommissionStatus = {\n userId: string;\n createdAt: string; // iso date string\n year: number;\n performance: {\n [metricId: string]: {\n value: string; // actual metric achieved\n estimated?: string; // estimated commission for the metric, based on the current trend\n grade?: CommissionGrade; // grade for the metric\n target?: string; // the upper bound of the default tier\n };\n };\n commission?: {\n total: string;\n potential?: string;\n estimated?: string; // estimated commission for the year, based on the current trend\n grade?: CommissionGrade;\n detailed?: {\n [metricId: string]: {\n earned: string; // commission amount for each target\n potential?: string; // potential commission for the metric, based on the actual metric achieved and the commission tiers\n };\n };\n };\n payments?: {\n total: string;\n yearly?: {\n // details for each year for which the outstanding commission is > 0\n [year: number]: {\n paid: string;\n };\n };\n };\n outstanding?: {\n total: string;\n // details for each year for which the outstanding commission is > 0\n yearly?: {\n [year: number]: {\n outstanding: string;\n };\n };\n };\n};\n\nexport type NewUserCommissionPayment = {\n userId: string; // who was the payment made to\n paidBy: string;\n paidAt: string;\n amount: string;\n comments?: string; // optional comment\n};\n\nexport type UserCommissionPayment = {\n id: string;\n} & NewUserCommissionPayment;\n\nexport type UserCommissionsPaymentRequest = {\n limit?: number;\n nextToken?: string;\n};\n\nexport type UserCommissionInfo = {\n manager?: boolean;\n performance: boolean;\n planYears: number[];\n};\n\nexport type UserCommissionListInfo = {\n users: { userId: string }[];\n};\n\nexport type MonthlyPerformanceData = {\n month: number; // 1-12\n metrics: Record<string, number>;\n};\n\nexport type PerformanceVehicle = {\n stockNumber: string;\n profit?: string;\n vehicleId: string;\n title: string;\n year: number;\n km?: number;\n configuration: string;\n euronorm?: string;\n mainPicture?: AttachmentValue;\n saleAt?: string;\n sellerId?: string;\n purchaseAt?: string;\n purchaserId?: string;\n};\n\nexport type PerformanceVehiclesRequest = {\n userId: string;\n targetId: string;\n year?: number;\n offset?: number;\n limit?: number;\n month?: number;\n};\n\nexport type NewManualPerformanceEntry = {\n userId: string;\n metricId: string;\n reference: string;\n year: number;\n};\n\nexport type ManualPerformanceEntry = {\n id: string;\n createdBy: string;\n createdAt: string;\n} & NewManualPerformanceEntry;\n"]}
1
+ {"version":3,"file":"user-performance.js","sourceRoot":"/","sources":["types/user-performance.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wEAAmD,CAAA;IACnD,0DAAqC,CAAA;IACrC,4DAAuC,CAAA;AACzC,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,oDAAkC,CAAA;IAClC,0CAAwB,CAAA;AAC1B,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAyCD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B","sourcesContent":["// The commission can be expressed either as a percentage (for profit-based metrics)\n// or as an amount per unit (for unit-based metrics).\nimport { AttachmentValue } from '@bisondesk/commons-sdk/types';\n\nexport enum CommissionSetting {\n INBOUND_USED_TEAM_USERS = 'inbound_used_team_users',\n TEAM_MEMBERSHIPS = 'team_memberships',\n LEASING_COMPANIES = 'leasing_companies',\n}\n\nexport enum CommissionTeam {\n USED = 'used_team',\n NEW_TRAILERS = 'new_trailers_team',\n LEASING = 'leasing_team',\n}\n\nexport type CommissionType = 'percentage' | 'unit';\n\n// Comprehensive metric configuration\nexport type MetricConfig = {\n id: string;\n commissionType: CommissionType;\n personal: boolean; // if true, this metric is personal to the user\n format?: Intl.NumberFormatOptions;\n listVehicles?: boolean; // should this metric be allowed to list vehicles?\n defaultTarget?: number; // default target for the metric, useful for showing metrics to users w/o a commission plan\n autoHide?: boolean; // hide in UI when annual value is 0\n manualEntry?: boolean; // if true, data comes from manually added entries instead of vehicle_business_overviews\n settings?: CommissionSetting[]; // commission settings this metric depends on\n};\n\n// A tier defines a range of performance (using lower and optional upper bounds)\n// along with the associated commission rate. For example, 0–100 units, then 100–400 units, etc.\nexport type CommissionTier = {\n lowerBound: number; // inclusive\n upperBound?: number; // inclusive (omit for the last tier)\n commissionRate: number;\n default?: boolean; // if true, this tier's upper bound is used as reference for dashboards visualizations\n};\n\n// Each target (metric) has one or more tiers.\n// For example, for UnitsSold you might have three tiers corresponding to bare minimum, normal, and above average.\nexport type TargetCommission = {\n metricId: string;\n tiers: CommissionTier[];\n};\n\nexport type UserCommissionPlan = {\n userId: string;\n year: number;\n startDate?: string; // in case the commission plan is only valid from this date onwards, not the whole year\n targets: TargetCommission[];\n showCommissionToUser?: boolean; // if true, the user can see their own commission amounts\n};\n\nexport enum CommissionGrade {\n TooLow = 'tooLow',\n Low = 'low',\n OnTarget = 'onTarget',\n}\n\nexport type UserCommissionStatus = {\n userId: string;\n createdAt: string; // iso date string\n year: number;\n performance: {\n [metricId: string]: {\n value: string; // actual metric achieved\n estimated?: string; // estimated commission for the metric, based on the current trend\n grade?: CommissionGrade; // grade for the metric\n target?: string; // the upper bound of the default tier\n };\n };\n commission?: {\n total: string;\n potential?: string;\n estimated?: string; // estimated commission for the year, based on the current trend\n grade?: CommissionGrade;\n detailed?: {\n [metricId: string]: {\n earned: string; // commission amount for each target\n potential?: string; // potential commission for the metric, based on the actual metric achieved and the commission tiers\n };\n };\n };\n payments?: {\n total: string;\n yearly?: {\n // details for each year for which the outstanding commission is > 0\n [year: number]: {\n paid: string;\n };\n };\n };\n outstanding?: {\n total: string;\n // details for each year for which the outstanding commission is > 0\n yearly?: {\n [year: number]: {\n outstanding: string;\n };\n };\n };\n};\n\nexport type NewUserCommissionPayment = {\n userId: string; // who was the payment made to\n paidBy: string;\n paidAt: string;\n amount: string;\n comments?: string; // optional comment\n};\n\nexport type UserCommissionPayment = {\n id: string;\n} & NewUserCommissionPayment;\n\nexport type UserCommissionsPaymentRequest = {\n limit?: number;\n nextToken?: string;\n};\n\nexport type UserCommissionInfo = {\n manager?: boolean;\n canViewCommission?: boolean;\n performance: boolean;\n planYears: number[];\n};\n\nexport type UserCommissionListInfo = {\n users: { userId: string }[];\n};\n\nexport type MonthlyPerformanceData = {\n month: number; // 1-12\n metrics: Record<string, number>;\n};\n\nexport type PerformanceVehicle = {\n stockNumber: string;\n profit?: string;\n vehicleId: string;\n title: string;\n year: number;\n km?: number;\n configuration: string;\n euronorm?: string;\n mainPicture?: AttachmentValue;\n saleAt?: string;\n sellerId?: string;\n purchaseAt?: string;\n purchaserId?: string;\n};\n\nexport type PerformanceVehiclesRequest = {\n userId: string;\n targetId: string;\n year?: number;\n offset?: number;\n limit?: number;\n month?: number;\n};\n\nexport type NewManualPerformanceEntry = {\n userId: string;\n metricId: string;\n reference: string;\n year: number;\n};\n\nexport type ManualPerformanceEntry = {\n id: string;\n createdBy: string;\n createdAt: string;\n} & NewManualPerformanceEntry;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bisondesk/core-sdk",
3
- "version": "1.0.580",
3
+ "version": "1.0.582",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -0,0 +1,23 @@
1
+ import { TENANT_ID_ADMIN_HEADER } from '@bisondesk/commons-sdk/constants';
2
+ import { XError } from '@bisondesk/commons-sdk/errors';
3
+ import { getAdminAuth } from '@bisondesk/commons-sdk/fetch';
4
+ import fetch, { Response } from 'node-fetch';
5
+ import { CountryPricingRule } from '../types/country-pricing.js';
6
+
7
+ export const listCountryPricingRules = async (tenantId: string): Promise<CountryPricingRule[]> => {
8
+ const auth = await getAdminAuth();
9
+ const url = `${process.env.CORE_API_ORIGIN}/api/settings/country-pricing`;
10
+ const response: Response = await fetch(url, {
11
+ headers: {
12
+ Authorization: auth,
13
+ [TENANT_ID_ADMIN_HEADER]: tenantId,
14
+ },
15
+ });
16
+
17
+ if (response.ok) {
18
+ return response.json() as any;
19
+ }
20
+
21
+ const body = await response.text();
22
+ throw new XError(response.statusText, { url, body });
23
+ };
package/src/constants.ts CHANGED
@@ -1015,3 +1015,8 @@ export enum WarningHints {
1015
1015
  WARNING = 'warning',
1016
1016
  ERROR = 'error',
1017
1017
  }
1018
+
1019
+ //
1020
+ // OFFERS
1021
+ //
1022
+ export const URGENT_OFFER_SUPPLIER_GRACE_BUSINESS_DAYS = 2;
@@ -0,0 +1,13 @@
1
+ export var ActivityType;
2
+ (function (ActivityType) {
3
+ ActivityType["CALL"] = "call";
4
+ ActivityType["MEETING"] = "meeting";
5
+ ActivityType["EMAIL"] = "email";
6
+ ActivityType["CHAT"] = "chat";
7
+ })(ActivityType || (ActivityType = {}));
8
+ export var ActivityActions;
9
+ (function (ActivityActions) {
10
+ ActivityActions["DELETE"] = "delete";
11
+ ActivityActions["EDIT"] = "edit";
12
+ })(ActivityActions || (ActivityActions = {}));
13
+ //# sourceMappingURL=activities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activities.js","sourceRoot":"","sources":["activities.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comparables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comparables.js","sourceRoot":"","sources":["comparables.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type CountryPricingRule = {
2
+ countryCode: string; // lower-cased ISO 3166-1 alpha-2 (e.g., "cl")
3
+ currency: string; // ISO 4217 (e.g., "USD")
4
+ rate: number; // Fixed EUR→currency rate (e.g., 1.08)
5
+ deliveryCost?: number; // Optional flat cost in target currency, added after conversion
6
+ deliveryLocation?: string; // Human-readable, e.g., "Iquique (Chile)". Required when deliveryCost is set.
7
+ leasing?: boolean; // Override for leasing visibility
8
+ };
@@ -0,0 +1,58 @@
1
+ export var OrganizatioRiskTags;
2
+ (function (OrganizatioRiskTags) {
3
+ OrganizatioRiskTags["BAD_FINANCIAL_INFO"] = "BAD_FINANCIAL_INFO";
4
+ OrganizatioRiskTags["VAT_NUMBER_INVALID"] = "VAT_NUMBER_INVALID";
5
+ OrganizatioRiskTags["INSTINCT"] = "INSTINCT";
6
+ OrganizatioRiskTags["NEW_CUSTOMER"] = "NEW_CUSTOMER";
7
+ OrganizatioRiskTags["BANK_ACCOUNT_BLOCKED"] = "BANK_ACCOUNT_BLOCKED";
8
+ OrganizatioRiskTags["NO_GPS"] = "NO_GPS";
9
+ })(OrganizatioRiskTags || (OrganizatioRiskTags = {}));
10
+ export var ContactActions;
11
+ (function (ContactActions) {
12
+ ContactActions["UPSERT"] = "upsert";
13
+ ContactActions["DELETE"] = "delete";
14
+ })(ContactActions || (ContactActions = {}));
15
+ export var OrganizationActions;
16
+ (function (OrganizationActions) {
17
+ OrganizationActions["ADD_ACTIVITY"] = "add_activity";
18
+ OrganizationActions["UPSERT"] = "upsert";
19
+ OrganizationActions["DELETE"] = "delete";
20
+ OrganizationActions["SELL_TO_ORGANIZATION"] = "sell_to_organization";
21
+ })(OrganizationActions || (OrganizationActions = {}));
22
+ export var MarketingChannel;
23
+ (function (MarketingChannel) {
24
+ MarketingChannel["Email"] = "email";
25
+ MarketingChannel["Whatsapp"] = "whatsapp";
26
+ MarketingChannel["Sms"] = "sms";
27
+ MarketingChannel["Phone"] = "phone";
28
+ })(MarketingChannel || (MarketingChannel = {}));
29
+ export var PartnerLevel;
30
+ (function (PartnerLevel) {
31
+ PartnerLevel["Internal"] = "05-internal";
32
+ PartnerLevel["Gold"] = "10-gold";
33
+ PartnerLevel["Silver"] = "20-silver";
34
+ PartnerLevel["Bronze"] = "30-bronze";
35
+ })(PartnerLevel || (PartnerLevel = {}));
36
+ export var SaveContactResolution;
37
+ (function (SaveContactResolution) {
38
+ SaveContactResolution["IgnoreDuplicates"] = "IGNORE_DUPLICATES";
39
+ SaveContactResolution["BlockDuplicates"] = "BLOCK_DUPLICATES";
40
+ })(SaveContactResolution || (SaveContactResolution = {}));
41
+ export var SaveOrgResolution;
42
+ (function (SaveOrgResolution) {
43
+ SaveOrgResolution["IgnoreDuplicates"] = "IGNORE_DUPLICATES";
44
+ SaveOrgResolution["BlockDuplicates"] = "BLOCK_DUPLICATES";
45
+ })(SaveOrgResolution || (SaveOrgResolution = {}));
46
+ export var CrmSearchScope;
47
+ (function (CrmSearchScope) {
48
+ CrmSearchScope["Tenant"] = "tenant";
49
+ CrmSearchScope["Conglomerate"] = "conglomerate";
50
+ })(CrmSearchScope || (CrmSearchScope = {}));
51
+ export var OrgEngagementType;
52
+ (function (OrgEngagementType) {
53
+ OrgEngagementType["offers"] = "offers";
54
+ OrgEngagementType["purchases"] = "purchases";
55
+ OrgEngagementType["opportunities"] = "opportunities";
56
+ OrgEngagementType["sales"] = "sales";
57
+ })(OrgEngagementType || (OrgEngagementType = {}));
58
+ //# sourceMappingURL=crm.js.map
@@ -0,0 +1 @@
1
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;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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["dashboard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from '@bisondesk/commons-sdk/definitions';
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["definitions.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@bisondesk/commons-sdk/fields';
2
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["fields.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insights.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insights.js","sourceRoot":"","sources":["insights.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export var InterestActions;
2
+ (function (InterestActions) {
3
+ InterestActions["SET_INTEREST"] = "set_interest";
4
+ })(InterestActions || (InterestActions = {}));
5
+ export const isOpportunityInterest = (interest) => 'opportunityId' in interest;
6
+ //# sourceMappingURL=interests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interests.js","sourceRoot":"","sources":["interests.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,gDAA6B,CAAA;AAC/B,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B;AAwBD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAkB,EAAmC,EAAE,CAC3F,eAAe,IAAI,QAAQ,CAAC"}
@@ -0,0 +1,18 @@
1
+ export var InternalEventTypes;
2
+ (function (InternalEventTypes) {
3
+ InternalEventTypes["VEHICLE_PURCHASE"] = "vehicle-purchases";
4
+ InternalEventTypes["ORGANIZATION"] = "organizations";
5
+ InternalEventTypes["CONTACT"] = "contacts";
6
+ InternalEventTypes["FINANCE_DOCUMENT"] = "finance-documents";
7
+ InternalEventTypes["OPPORTUNITY"] = "opportunities";
8
+ InternalEventTypes["VEHICLE"] = "vehicles";
9
+ InternalEventTypes["SALE_PAYMENT"] = "sale-payments";
10
+ InternalEventTypes["PURCHASE_PAYMENT"] = "vehicle-purchase-payments";
11
+ InternalEventTypes["OFFER"] = "offers";
12
+ })(InternalEventTypes || (InternalEventTypes = {}));
13
+ export var InternalNotificationChannels;
14
+ (function (InternalNotificationChannels) {
15
+ InternalNotificationChannels["APP"] = "app";
16
+ InternalNotificationChannels["EMAIL"] = "email";
17
+ })(InternalNotificationChannels || (InternalNotificationChannels = {}));
18
+ //# sourceMappingURL=internal-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-events.js","sourceRoot":"","sources":["internal-events.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,4DAAsC,CAAA;IACtC,oDAA8B,CAAA;IAC9B,0CAAoB,CAAA;IACpB,4DAAsC,CAAA;IACtC,mDAA6B,CAAA;IAC7B,0CAAoB,CAAA;IACpB,oDAA8B,CAAA;IAC9B,oEAA8C,CAAA;IAC9C,sCAAgB,CAAA;AAClB,CAAC,EAVW,kBAAkB,KAAlB,kBAAkB,QAU7B;AAED,MAAM,CAAN,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,2CAAW,CAAA;IACX,+CAAe,CAAA;AACjB,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC"}
@@ -14,6 +14,7 @@ export enum EventTypes {
14
14
  AMORTIZATION_DOC = 'amortization-docs',
15
15
  DEBTOR_DOSSIER = 'debtor-dossiers',
16
16
  VEHICLE_BUSINESS_OVERVIEW = 'vehicle-business-overview',
17
+ PROSPECT = 'prospects',
17
18
  }
18
19
 
19
20
  export enum InternalNotificationChannels {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=internet-opportunities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internet-opportunities.js","sourceRoot":"","sources":["internet-opportunities.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=internet-vehicles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internet-vehicles.js","sourceRoot":"","sources":["internet-vehicles.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=leasing-administration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leasing-administration.js","sourceRoot":"","sources":["leasing-administration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=leasing-debtors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leasing-debtors.js","sourceRoot":"","sources":["leasing-debtors.ts"],"names":[],"mappings":""}
@@ -306,6 +306,7 @@ export type SearchDebtorsDossier = {
306
306
  org?: Organization;
307
307
  legalDossier?: LegalDossier;
308
308
  paymentPlan?: DebtorsPaymentPlan;
309
+ hasPaymentPlan?: boolean;
309
310
  tasks: {
310
311
  totalTasks: number;
311
312
  openTasks: number;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=leasing-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leasing-search.js","sourceRoot":"","sources":["leasing-search.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export var LeasingItemsPaymentSplit;
2
+ (function (LeasingItemsPaymentSplit) {
3
+ LeasingItemsPaymentSplit["Customer"] = "customer";
4
+ LeasingItemsPaymentSplit["Split"] = "split";
5
+ LeasingItemsPaymentSplit["Company"] = "company";
6
+ })(LeasingItemsPaymentSplit || (LeasingItemsPaymentSplit = {}));
7
+ //# sourceMappingURL=leasing-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leasing-settings.js","sourceRoot":"","sources":["leasing-settings.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAqB,CAAA;IACrB,2CAAe,CAAA;IACf,+CAAmB,CAAA;AACrB,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC"}
@@ -0,0 +1,38 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,35 @@
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