@bisondesk/core-sdk 1.0.492 → 1.0.494
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/apis/leasing.js +2 -2
- package/lib/apis/leasing.js.map +1 -1
- package/lib/constants.d.ts +2 -0
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +2 -0
- package/lib/constants.js.map +1 -1
- package/lib/types/activities.d.ts +15 -5
- package/lib/types/activities.d.ts.map +1 -1
- package/lib/types/activities.js +1 -0
- package/lib/types/activities.js.map +1 -1
- package/lib/types/crm.d.ts +1 -0
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js +1 -0
- package/lib/types/crm.js.map +1 -1
- package/lib/types/internal-events.d.ts +3 -1
- package/lib/types/internal-events.d.ts.map +1 -1
- package/lib/types/internal-events.js +2 -0
- package/lib/types/internal-events.js.map +1 -1
- package/lib/types/journeys.d.ts +6 -0
- package/lib/types/journeys.d.ts.map +1 -1
- package/lib/types/journeys.js.map +1 -1
- package/lib/types/leasing-debtors.d.ts +202 -0
- package/lib/types/leasing-debtors.d.ts.map +1 -1
- package/lib/types/leasing-debtors.js +58 -1
- package/lib/types/leasing-debtors.js.map +1 -1
- package/lib/types/leasing-search.d.ts +1 -0
- package/lib/types/leasing-search.d.ts.map +1 -1
- package/lib/types/leasing-search.js.map +1 -1
- package/lib/types/leasing.d.ts +3 -23
- package/lib/types/leasing.d.ts.map +1 -1
- package/lib/types/leasing.js.map +1 -1
- package/lib/types/marketing.d.ts +0 -1
- package/lib/types/marketing.d.ts.map +1 -1
- package/lib/types/marketing.js +0 -1
- package/lib/types/marketing.js.map +1 -1
- package/lib/types/tenants.d.ts +1 -0
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/vehicle-performance.d.ts +0 -2
- 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 +1 -0
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js.map +1 -1
- package/lib/utils/debtors-dossiers.d.ts +15 -0
- package/lib/utils/debtors-dossiers.d.ts.map +1 -0
- package/lib/utils/debtors-dossiers.js +51 -0
- package/lib/utils/debtors-dossiers.js.map +1 -0
- package/lib/utils/search.d.ts +3 -2
- package/lib/utils/search.d.ts.map +1 -1
- package/lib/utils/search.js.map +1 -1
- package/lib/utils/vehicles.d.ts.map +1 -1
- package/lib/utils/vehicles.js +4 -0
- package/lib/utils/vehicles.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/leasing.ts +2 -2
- package/src/constants.ts +2 -0
- package/src/types/activities.ts +49 -4
- package/src/types/crm.ts +1 -0
- package/src/types/internal-events.ts +2 -0
- package/src/types/journeys.ts +7 -0
- package/src/types/leasing-debtors.ts +309 -0
- package/src/types/leasing-search.ts +1 -0
- package/src/types/leasing.ts +2 -21
- package/src/types/marketing.ts +1 -1
- package/src/types/tenants.ts +2 -0
- package/src/types/vehicle-performance.ts +0 -2
- package/src/types/vehicles.ts +1 -0
- package/src/utils/debtors-dossiers.ts +73 -0
- package/src/utils/search.ts +9 -2
- package/src/utils/vehicles.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/src/types/activities.js +0 -13
- package/src/types/activities.js.map +0 -1
- package/src/types/comparables.js +0 -2
- package/src/types/comparables.js.map +0 -1
- package/src/types/crm.js +0 -58
- package/src/types/crm.js.map +0 -1
- package/src/types/dashboard.js +0 -2
- package/src/types/dashboard.js.map +0 -1
- package/src/types/definitions.js +0 -2
- package/src/types/definitions.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/interests.js +0 -6
- package/src/types/interests.js.map +0 -1
- package/src/types/internal-events.js +0 -18
- package/src/types/internal-events.js.map +0 -1
- package/src/types/internet-opportunities.js +0 -2
- package/src/types/internet-opportunities.js.map +0 -1
- package/src/types/internet-vehicles.js +0 -2
- package/src/types/internet-vehicles.js.map +0 -1
- package/src/types/leasing-administration.js +0 -2
- package/src/types/leasing-administration.js.map +0 -1
- package/src/types/leasing-debtors.js +0 -2
- package/src/types/leasing-debtors.js.map +0 -1
- package/src/types/leasing-search.js +0 -2
- package/src/types/leasing-search.js.map +0 -1
- package/src/types/leasing-settings.js +0 -7
- package/src/types/leasing.js +0 -38
- package/src/types/leasing.js.map +0 -1
- package/src/types/marketing.js +0 -35
- package/src/types/marketing.js.map +0 -1
- package/src/types/offers.js +0 -56
- package/src/types/opportunities.js +0 -107
- package/src/types/opportunities.js.map +0 -1
- package/src/types/payments.js +0 -7
- package/src/types/picklists.js +0 -2
- package/src/types/picklists.js.map +0 -1
- package/src/types/quotes.js +0 -42
- package/src/types/recently-viewed.js +0 -2
- package/src/types/recently-viewed.js.map +0 -1
- package/src/types/reservations.js +0 -5
- package/src/types/reservations.js.map +0 -1
- package/src/types/roi-ratings.js +0 -5
- package/src/types/roi-ratings.js.map +0 -1
- package/src/types/saved-filters.js +0 -9
- package/src/types/saved-filters.js.map +0 -1
- package/src/types/search.js +0 -2
- package/src/types/search.js.map +0 -1
- package/src/types/settings.js +0 -2
- package/src/types/settings.js.map +0 -1
- package/src/types/templates.js +0 -2
- package/src/types/templates.js.map +0 -1
- package/src/types/tenants.js +0 -20
- package/src/types/user-performance.js +0 -7
- package/src/types/user-performance.js.map +0 -1
- package/src/types/utils.js +0 -2
- package/src/types/validation.js +0 -2
- package/src/types/validation.js.map +0 -1
- package/src/types/vehicle-sales.js +0 -6
- package/src/types/vehicle-sales.js.map +0 -1
- package/src/types/vehicles.js +0 -98
- package/src/types/vehicles.js.map +0 -1
- package/src/utils/leasing.js +0 -6
- package/src/utils/leasing.js.map +0 -1
- package/src/utils/opportunities.js +0 -48
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journeys.d.ts","sourceRoot":"/","sources":["types/journeys.ts"],"names":[],"mappings":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AAe,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAEpE,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,cAAc,CAAC;IACtB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACpD,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journeys.js","sourceRoot":"/","sources":["types/journeys.ts"],"names":[],"mappings":"","sourcesContent":["import { TaskPriority } from '@bisondesk/commons-sdk/tasks';\nimport { MultiLangValue } from '@bisondesk/commons-sdk/types';\nimport type { AdditionalOperation, RulesLogic } from 'json-logic-js';\nimport { BusinessEntityIds } from '../constants.js';\n\nexport type JourneyTaskDependency = RulesLogic<AdditionalOperation>;\n\nexport type JourneyTaskConfig<T> = {\n configId: string;\n title: MultiLangValue;\n entryCriteria?: JourneyTaskDependency;\n priority?: TaskPriority;\n tag?: string;\n description?: MultiLangValue;\n completionCriteria: RulesLogic<AdditionalOperation>;\n prerequisiteTaskIds: string[];\n requiredAtStatus?: T; //Required at a given status or higher\n disabled: boolean;\n};\n\nexport type JourneyConfig<T> = {\n businessEntityId: BusinessEntityIds;\n versionId: string;\n tasks: JourneyTaskConfig<T>[];\n createdAt: string;\n createdBy: string;\n disabled: boolean;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"journeys.js","sourceRoot":"/","sources":["types/journeys.ts"],"names":[],"mappings":"","sourcesContent":["import { TaskPriority } from '@bisondesk/commons-sdk/tasks';\nimport { MultiLangValue } from '@bisondesk/commons-sdk/types';\nimport type { AdditionalOperation, RulesLogic } from 'json-logic-js';\nimport { BusinessEntityIds } from '../constants.js';\n\nexport type JourneyTaskDependency = RulesLogic<AdditionalOperation>;\n\nexport type JourneyTaskConfig<T> = {\n configId: string;\n title: MultiLangValue;\n entryCriteria?: JourneyTaskDependency;\n priority?: TaskPriority;\n tag?: string;\n description?: MultiLangValue;\n dueDateInDays?: number; //now + dueDateInDays days\n completionCriteria: RulesLogic<AdditionalOperation>;\n prerequisiteTaskIds: string[];\n requiredAtStatus?: T; //Required at a given status or higher\n disabled: boolean;\n};\n\nexport type JourneyConfig<T> = {\n businessEntityId: BusinessEntityIds;\n versionId: string;\n tasks: JourneyTaskConfig<T>[];\n createdAt: string;\n createdBy: string;\n disabled: boolean;\n};\n\nexport type JourneyConfigCustomTasks<T> = Pick<JourneyConfig<T>, 'businessEntityId' | 'tasks'> & {\n recordId: string;\n createdAt: string;\n createdBy: string;\n};\n"]}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { EmailMessage } from '@bisondesk/commons-sdk/messages';
|
|
2
|
+
import { NextList, PaginatedList } from '@bisondesk/commons-sdk/types';
|
|
1
3
|
import { Contact, Organization } from './crm.js';
|
|
4
|
+
import { LeasingContract } from './leasing.js';
|
|
5
|
+
import { BaseSearchRequest, SortFilter } from './search.js';
|
|
6
|
+
import { DataRecord, ReferenceData } from './utils.js';
|
|
2
7
|
export type MonthData = {
|
|
3
8
|
activeContractIds: string[];
|
|
4
9
|
date: string;
|
|
@@ -28,4 +33,201 @@ export type SearchDebtorInfo = {
|
|
|
28
33
|
hasActiveContracts: boolean;
|
|
29
34
|
};
|
|
30
35
|
};
|
|
36
|
+
export declare enum DebtorsDossierStatus {
|
|
37
|
+
AUTO_REMINDER = "auto_reminder",
|
|
38
|
+
OVERDUE = "overdue",
|
|
39
|
+
CONTACT_ATTEMPTED = "contact_attempted",
|
|
40
|
+
DIALOGUE = "dialogue",
|
|
41
|
+
PROMISE_TO_PAY = "promise_to_pay",
|
|
42
|
+
FAILURE = "failure",
|
|
43
|
+
RESOLVED = "resolved"
|
|
44
|
+
}
|
|
45
|
+
export declare const debtorsDossierStatusToDateFieldMap: Record<DebtorsDossierStatus, {
|
|
46
|
+
date: keyof DossierStatusLogFields;
|
|
47
|
+
author: keyof DossierStatusLogFields;
|
|
48
|
+
} | null>;
|
|
49
|
+
export type DebtorAutoFollowUp = {
|
|
50
|
+
id: string;
|
|
51
|
+
organizationId: string;
|
|
52
|
+
organizationName: string;
|
|
53
|
+
status: 'ONGOING' | 'ERROR' | 'SUCCESS' | 'EXPIRED' | 'DISCARDED';
|
|
54
|
+
emails: EmailMessage[];
|
|
55
|
+
createdAt: string;
|
|
56
|
+
modifiedAt: string;
|
|
57
|
+
completedAt?: string;
|
|
58
|
+
nextActionAt: string;
|
|
59
|
+
riskLevel: number;
|
|
60
|
+
};
|
|
61
|
+
export type ListOverdueRemindersResponse = PaginatedList<DebtorAutoFollowUp, ReferenceData>;
|
|
62
|
+
export type ListOverdueRemindersRequest = {
|
|
63
|
+
offset: number;
|
|
64
|
+
limit: number;
|
|
65
|
+
sortBy: SortFilter;
|
|
66
|
+
};
|
|
67
|
+
export declare enum DebtorsDossierActions {
|
|
68
|
+
SET_METADATA = "set_metadata",
|
|
69
|
+
ADD_ACTIVITY = "add_activity",
|
|
70
|
+
FINISH = "finish",
|
|
71
|
+
SET_DOCUMENTS = "set_documents",
|
|
72
|
+
SET_PAYMENT_PLAN = "set_payment_plan",
|
|
73
|
+
SET_LEGAL_DOSSIER = "set_legal_dossier"
|
|
74
|
+
}
|
|
75
|
+
export type DossierStatusLogFields = {
|
|
76
|
+
failedAt?: string;
|
|
77
|
+
failedBy?: string;
|
|
78
|
+
resolvedAt?: string;
|
|
79
|
+
contactedAt?: string;
|
|
80
|
+
contactedBy?: string;
|
|
81
|
+
overdueAt?: string;
|
|
82
|
+
overdueBy?: string;
|
|
83
|
+
resolvedBy?: string;
|
|
84
|
+
dialogueAt?: string;
|
|
85
|
+
dialogueBy?: string;
|
|
86
|
+
promiseToPayAt?: string;
|
|
87
|
+
promiseToPayBy?: string;
|
|
88
|
+
};
|
|
89
|
+
export type BaseDebtorsDossier = {
|
|
90
|
+
organizationId: string;
|
|
91
|
+
contactId?: string;
|
|
92
|
+
tags: string[];
|
|
93
|
+
origin: 'manual' | 'auto';
|
|
94
|
+
autoFollowUpId?: string;
|
|
95
|
+
administrativeUserId?: string;
|
|
96
|
+
branchId: string;
|
|
97
|
+
tenantId: string;
|
|
98
|
+
};
|
|
99
|
+
export type DebtorsDossierStatusAudit = {
|
|
100
|
+
from: DebtorsDossierStatus;
|
|
101
|
+
to: DebtorsDossierStatus;
|
|
102
|
+
changedAt: string;
|
|
103
|
+
changedBy: string;
|
|
104
|
+
};
|
|
105
|
+
export type DebtorsDossier = BaseDebtorsDossier & DossierStatusLogFields & {
|
|
106
|
+
id: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
createdBy: string;
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
updatedBy: string;
|
|
111
|
+
status: DebtorsDossierStatus;
|
|
112
|
+
statusAudit: DebtorsDossierStatusAudit[];
|
|
113
|
+
};
|
|
114
|
+
export type NewDebtorsDossier = BaseDebtorsDossier & {
|
|
115
|
+
id?: undefined;
|
|
116
|
+
createdBy?: undefined;
|
|
117
|
+
createdAt?: undefined;
|
|
118
|
+
updatedBy?: undefined;
|
|
119
|
+
updatedAt?: undefined;
|
|
120
|
+
};
|
|
121
|
+
export type DebtorsDossierBff = {
|
|
122
|
+
dossier: DataRecord<DebtorsDossier>;
|
|
123
|
+
organization?: Organization;
|
|
124
|
+
contact?: Contact;
|
|
125
|
+
leasingContracts: LeasingContract[];
|
|
126
|
+
debt?: DebtorInfo;
|
|
127
|
+
paymentPlan?: DebtorsPaymentPlan;
|
|
128
|
+
legalDossier?: LegalDossier;
|
|
129
|
+
trackAndTraceDevices: {}[];
|
|
130
|
+
};
|
|
131
|
+
export type UpdateDebtorsDossier = Partial<Pick<DebtorsDossier, 'status' | 'tags' | 'contactId' | 'administrativeUserId' | 'branchId' | 'organizationId'>> & {
|
|
132
|
+
overdue?: boolean;
|
|
133
|
+
resolve?: boolean;
|
|
134
|
+
terminate?: boolean;
|
|
135
|
+
};
|
|
136
|
+
export type DebtorsPaymentPlan = {
|
|
137
|
+
id: string;
|
|
138
|
+
debtorDossierId: string;
|
|
139
|
+
notes?: string;
|
|
140
|
+
reminders?: {
|
|
141
|
+
frequency: {
|
|
142
|
+
every: number;
|
|
143
|
+
period: 'days' | 'weeks' | 'months';
|
|
144
|
+
};
|
|
145
|
+
endCondition: {
|
|
146
|
+
endDate: string;
|
|
147
|
+
} | {
|
|
148
|
+
occurrences: number;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
createdAt: string;
|
|
152
|
+
createdBy: string;
|
|
153
|
+
updatedAt: string;
|
|
154
|
+
updatedBy: string;
|
|
155
|
+
};
|
|
156
|
+
export type NewPaymentPlan = Omit<DebtorsPaymentPlan, 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy'>;
|
|
157
|
+
export type UpdatePaymentPlan = Partial<Pick<DebtorsPaymentPlan, 'notes' | 'reminders'>>;
|
|
158
|
+
export declare enum LegalDossierStatus {
|
|
159
|
+
ASSESSMENT = "assessment",
|
|
160
|
+
PRE_LEGAL_NOTICE = "pre_legal_notice",
|
|
161
|
+
SENT_TO_LAWYER = "sent_to_lawyer",
|
|
162
|
+
FILED = "filed",
|
|
163
|
+
IN_COURT = "in_court",
|
|
164
|
+
JUDGMENT = "judgment",
|
|
165
|
+
ENFORCEMENT = "enforcement",
|
|
166
|
+
SETTLEMENT = "settlement",
|
|
167
|
+
CLOSED_RECOVERED = "closed_recovered",
|
|
168
|
+
CLOSED_UNRECOVERABLE = "closed_unrecoverable",
|
|
169
|
+
ON_HOLD = "on_hold"
|
|
170
|
+
}
|
|
171
|
+
export type LegalDossier = {
|
|
172
|
+
id: string;
|
|
173
|
+
debtorDossierId: string;
|
|
174
|
+
caseNumber?: string;
|
|
175
|
+
notes?: string;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
createdBy: string;
|
|
178
|
+
updatedAt: string;
|
|
179
|
+
updatedBy: string;
|
|
180
|
+
status: LegalDossierStatus;
|
|
181
|
+
};
|
|
182
|
+
export type NewLegalDossier = Omit<LegalDossier, 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy'>;
|
|
183
|
+
export type UpdateLegalDossier = Partial<Pick<LegalDossier, 'caseNumber' | 'status' | 'notes'>>;
|
|
184
|
+
export type DebtorsDossierCreateEvent = {
|
|
185
|
+
action: 'created';
|
|
186
|
+
data: DebtorsDossier;
|
|
187
|
+
previousData?: undefined;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
userId: string;
|
|
190
|
+
};
|
|
191
|
+
export type DebtorsDossierUpdateEvent = {
|
|
192
|
+
action: 'updated';
|
|
193
|
+
data: DebtorsDossier;
|
|
194
|
+
previousData: DebtorsDossier;
|
|
195
|
+
tenantId: string;
|
|
196
|
+
userId: string;
|
|
197
|
+
};
|
|
198
|
+
export type DebtorsDossierDeleteEvent = {
|
|
199
|
+
action: 'deleted';
|
|
200
|
+
data?: undefined;
|
|
201
|
+
previousData: DebtorsDossier;
|
|
202
|
+
tenantId: string;
|
|
203
|
+
userId: string;
|
|
204
|
+
};
|
|
205
|
+
export type DebtorsDossierEvent = DebtorsDossierCreateEvent | DebtorsDossierUpdateEvent | DebtorsDossierDeleteEvent;
|
|
206
|
+
export type SearchDebtorsDossier = {
|
|
207
|
+
contact?: Contact;
|
|
208
|
+
debtorsDossier: DebtorsDossier;
|
|
209
|
+
org?: Organization;
|
|
210
|
+
legalDossier?: LegalDossier;
|
|
211
|
+
paymentPlan?: DebtorsPaymentPlan;
|
|
212
|
+
};
|
|
213
|
+
export type DebtorsDossierKanbanColumn = {
|
|
214
|
+
status: string;
|
|
215
|
+
results: SearchDebtorsDossier[];
|
|
216
|
+
totalCount: number;
|
|
217
|
+
totalValue: string;
|
|
218
|
+
};
|
|
219
|
+
export type MSearchDebtorsDossierKanbanColumn = {
|
|
220
|
+
column: DebtorsDossierKanbanColumn;
|
|
221
|
+
nextToken?: string;
|
|
222
|
+
};
|
|
223
|
+
export type KanbanDebtorsDossierSearchRequest = BaseSearchRequest & {
|
|
224
|
+
nextTokens?: Record<string, string | undefined>;
|
|
225
|
+
};
|
|
226
|
+
export type KanbanDebtorsDossierNextList = Omit<NextList<DebtorsDossierKanbanColumn, ReferenceData>, 'nextToken'> & {
|
|
227
|
+
nextTokens?: Record<string, string | undefined>;
|
|
228
|
+
};
|
|
229
|
+
export declare const DebtorsDossierStatusOrder: DebtorsDossierStatus[];
|
|
230
|
+
export declare const DebtorsDossierWonColumnId = DebtorsDossierStatus.RESOLVED;
|
|
231
|
+
export declare const DebtorsDossierKanbanEndColumns: string[];
|
|
232
|
+
export declare const DebtorsDossierKanbanColumns: string[];
|
|
31
233
|
//# sourceMappingURL=leasing-debtors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing-debtors.d.ts","sourceRoot":"/","sources":["types/leasing-debtors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"leasing-debtors.d.ts","sourceRoot":"/","sources":["types/leasing-debtors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG;IACtB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,EAAE,CAAC;IAGpB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MA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BAA0B,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,GAAG;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,EACnD,WAAW,CACZ,GAAG;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,oBAAoB,EAM3D,CAAC;AAEF,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AAEvE,eAAO,MAAM,8BAA8B,EAAE,MAAM,EAGlD,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAGvC,CAAC"}
|
|
@@ -1,2 +1,59 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var DebtorsDossierStatus;
|
|
2
|
+
(function (DebtorsDossierStatus) {
|
|
3
|
+
DebtorsDossierStatus["AUTO_REMINDER"] = "auto_reminder";
|
|
4
|
+
DebtorsDossierStatus["OVERDUE"] = "overdue";
|
|
5
|
+
DebtorsDossierStatus["CONTACT_ATTEMPTED"] = "contact_attempted";
|
|
6
|
+
DebtorsDossierStatus["DIALOGUE"] = "dialogue";
|
|
7
|
+
DebtorsDossierStatus["PROMISE_TO_PAY"] = "promise_to_pay";
|
|
8
|
+
DebtorsDossierStatus["FAILURE"] = "failure";
|
|
9
|
+
DebtorsDossierStatus["RESOLVED"] = "resolved";
|
|
10
|
+
})(DebtorsDossierStatus || (DebtorsDossierStatus = {}));
|
|
11
|
+
export const debtorsDossierStatusToDateFieldMap = {
|
|
12
|
+
[DebtorsDossierStatus.AUTO_REMINDER]: null,
|
|
13
|
+
[DebtorsDossierStatus.OVERDUE]: { date: 'overdueAt', author: 'overdueBy' },
|
|
14
|
+
[DebtorsDossierStatus.CONTACT_ATTEMPTED]: { date: 'contactedAt', author: 'contactedBy' },
|
|
15
|
+
[DebtorsDossierStatus.DIALOGUE]: { date: 'dialogueAt', author: 'dialogueBy' },
|
|
16
|
+
[DebtorsDossierStatus.PROMISE_TO_PAY]: { date: 'promiseToPayAt', author: 'promiseToPayBy' },
|
|
17
|
+
[DebtorsDossierStatus.FAILURE]: { date: 'failedAt', author: 'failedBy' },
|
|
18
|
+
[DebtorsDossierStatus.RESOLVED]: { date: 'resolvedAt', author: 'resolvedBy' },
|
|
19
|
+
};
|
|
20
|
+
export var DebtorsDossierActions;
|
|
21
|
+
(function (DebtorsDossierActions) {
|
|
22
|
+
DebtorsDossierActions["SET_METADATA"] = "set_metadata";
|
|
23
|
+
DebtorsDossierActions["ADD_ACTIVITY"] = "add_activity";
|
|
24
|
+
DebtorsDossierActions["FINISH"] = "finish";
|
|
25
|
+
DebtorsDossierActions["SET_DOCUMENTS"] = "set_documents";
|
|
26
|
+
DebtorsDossierActions["SET_PAYMENT_PLAN"] = "set_payment_plan";
|
|
27
|
+
DebtorsDossierActions["SET_LEGAL_DOSSIER"] = "set_legal_dossier";
|
|
28
|
+
})(DebtorsDossierActions || (DebtorsDossierActions = {}));
|
|
29
|
+
export var LegalDossierStatus;
|
|
30
|
+
(function (LegalDossierStatus) {
|
|
31
|
+
LegalDossierStatus["ASSESSMENT"] = "assessment";
|
|
32
|
+
LegalDossierStatus["PRE_LEGAL_NOTICE"] = "pre_legal_notice";
|
|
33
|
+
LegalDossierStatus["SENT_TO_LAWYER"] = "sent_to_lawyer";
|
|
34
|
+
LegalDossierStatus["FILED"] = "filed";
|
|
35
|
+
LegalDossierStatus["IN_COURT"] = "in_court";
|
|
36
|
+
LegalDossierStatus["JUDGMENT"] = "judgment";
|
|
37
|
+
LegalDossierStatus["ENFORCEMENT"] = "enforcement";
|
|
38
|
+
LegalDossierStatus["SETTLEMENT"] = "settlement";
|
|
39
|
+
LegalDossierStatus["CLOSED_RECOVERED"] = "closed_recovered";
|
|
40
|
+
LegalDossierStatus["CLOSED_UNRECOVERABLE"] = "closed_unrecoverable";
|
|
41
|
+
LegalDossierStatus["ON_HOLD"] = "on_hold";
|
|
42
|
+
})(LegalDossierStatus || (LegalDossierStatus = {}));
|
|
43
|
+
export const DebtorsDossierStatusOrder = [
|
|
44
|
+
DebtorsDossierStatus.AUTO_REMINDER,
|
|
45
|
+
DebtorsDossierStatus.OVERDUE,
|
|
46
|
+
DebtorsDossierStatus.CONTACT_ATTEMPTED,
|
|
47
|
+
DebtorsDossierStatus.DIALOGUE,
|
|
48
|
+
DebtorsDossierStatus.PROMISE_TO_PAY,
|
|
49
|
+
];
|
|
50
|
+
export const DebtorsDossierWonColumnId = DebtorsDossierStatus.RESOLVED;
|
|
51
|
+
export const DebtorsDossierKanbanEndColumns = [
|
|
52
|
+
DebtorsDossierStatus.RESOLVED,
|
|
53
|
+
DebtorsDossierStatus.FAILURE,
|
|
54
|
+
];
|
|
55
|
+
export const DebtorsDossierKanbanColumns = [
|
|
56
|
+
...DebtorsDossierStatusOrder,
|
|
57
|
+
...DebtorsDossierKanbanEndColumns,
|
|
58
|
+
];
|
|
2
59
|
//# sourceMappingURL=leasing-debtors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing-debtors.js","sourceRoot":"/","sources":["types/leasing-debtors.ts"],"names":[],"mappings":"","sourcesContent":["import { Contact, Organization } from './crm.js';\n\nexport type MonthData = {\n activeContractIds: string[];\n date: string; // YYYY-MM\n overdueAmount: string;\n unpaidAmount: string;\n overdueContractIds: string[];\n overdueInvoiceIds: string[];\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type DebtorInfo = {\n clientId: string;\n months: MonthData[];\n\n // properties related to the current month\n activeContracts: number;\n overdueAmount: string;\n unpaidAmount: string;\n overdueContracts: number;\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type SearchDebtorInfo = {\n org: Organization;\n contact?: Contact;\n debtor: DebtorInfo;\n custom: {\n riskLevelLabel: string;\n hasActiveContracts: boolean;\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"leasing-debtors.js","sourceRoot":"/","sources":["types/leasing-debtors.ts"],"names":[],"mappings":"AAyCA,MAAM,CAAN,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,uDAA+B,CAAA;IAC/B,2CAAmB,CAAA;IACnB,+DAAuC,CAAA;IACvC,6CAAqB,CAAA;IACrB,yDAAiC,CAAA;IACjC,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;AACvB,CAAC,EARW,oBAAoB,KAApB,oBAAoB,QAQ/B;AAED,MAAM,CAAC,MAAM,kCAAkC,GAG3C;IACF,CAAC,oBAAoB,CAAC,aAAa,CAAC,EAAE,IAAI;IAC1C,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE;IAC1E,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE;IACxF,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE;IAC7E,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAC3F,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;IACxE,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE;CAC9E,CAAC;AA8BF,MAAM,CAAN,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,sDAA6B,CAAA;IAC7B,sDAA6B,CAAA;IAC7B,0CAAiB,CAAA;IACjB,wDAA+B,CAAA;IAC/B,8DAAqC,CAAA;IACrC,gEAAuC,CAAA;AACzC,CAAC,EAPW,qBAAqB,KAArB,qBAAqB,QAOhC;AAuHD,MAAM,CAAN,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,2DAAqC,CAAA;IACrC,uDAAiC,CAAA;IACjC,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,iDAA2B,CAAA;IAC3B,+CAAyB,CAAA;IACzB,2DAAqC,CAAA;IACrC,mEAA6C,CAAA;IAC7C,yCAAmB,CAAA;AACrB,CAAC,EAZW,kBAAkB,KAAlB,kBAAkB,QAY7B;AA+FD,MAAM,CAAC,MAAM,yBAAyB,GAA2B;IAC/D,oBAAoB,CAAC,aAAa;IAClC,oBAAoB,CAAC,OAAO;IAC5B,oBAAoB,CAAC,iBAAiB;IACtC,oBAAoB,CAAC,QAAQ;IAC7B,oBAAoB,CAAC,cAAc;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,QAAQ,CAAC;AAEvE,MAAM,CAAC,MAAM,8BAA8B,GAAa;IACtD,oBAAoB,CAAC,QAAQ;IAC7B,oBAAoB,CAAC,OAAO;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,GAAG,yBAAyB;IAC5B,GAAG,8BAA8B;CAClC,CAAC","sourcesContent":["import { EmailMessage } from '@bisondesk/commons-sdk/messages';\nimport { NextList, PaginatedList } from '@bisondesk/commons-sdk/types';\nimport { Contact, Organization } from './crm.js';\nimport { LeasingContract } from './leasing.js';\nimport { BaseSearchRequest, SortFilter } from './search.js';\nimport { DataRecord, ReferenceData } from './utils.js';\n\nexport type MonthData = {\n activeContractIds: string[];\n date: string; // YYYY-MM\n overdueAmount: string;\n unpaidAmount: string;\n overdueContractIds: string[];\n overdueInvoiceIds: string[];\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type DebtorInfo = {\n clientId: string;\n months: MonthData[];\n\n // properties related to the current month\n activeContracts: number;\n overdueAmount: string;\n unpaidAmount: string;\n overdueContracts: number;\n riskLevel: number;\n monthlyInvoicedAmount: string;\n};\n\nexport type SearchDebtorInfo = {\n org: Organization;\n contact?: Contact;\n debtor: DebtorInfo;\n custom: {\n riskLevelLabel: string;\n hasActiveContracts: boolean;\n };\n};\n\nexport enum DebtorsDossierStatus {\n AUTO_REMINDER = 'auto_reminder',\n OVERDUE = 'overdue',\n CONTACT_ATTEMPTED = 'contact_attempted',\n DIALOGUE = 'dialogue',\n PROMISE_TO_PAY = 'promise_to_pay',\n FAILURE = 'failure',\n RESOLVED = 'resolved',\n}\n\nexport const debtorsDossierStatusToDateFieldMap: Record<\n DebtorsDossierStatus,\n { date: keyof DossierStatusLogFields; author: keyof DossierStatusLogFields } | null\n> = {\n [DebtorsDossierStatus.AUTO_REMINDER]: null,\n [DebtorsDossierStatus.OVERDUE]: { date: 'overdueAt', author: 'overdueBy' },\n [DebtorsDossierStatus.CONTACT_ATTEMPTED]: { date: 'contactedAt', author: 'contactedBy' },\n [DebtorsDossierStatus.DIALOGUE]: { date: 'dialogueAt', author: 'dialogueBy' },\n [DebtorsDossierStatus.PROMISE_TO_PAY]: { date: 'promiseToPayAt', author: 'promiseToPayBy' },\n [DebtorsDossierStatus.FAILURE]: { date: 'failedAt', author: 'failedBy' },\n [DebtorsDossierStatus.RESOLVED]: { date: 'resolvedAt', author: 'resolvedBy' },\n};\n\n/******\n * Auto Follow-Up Types\n ******/\n\nexport type DebtorAutoFollowUp = {\n id: string;\n organizationId: string;\n organizationName: string;\n status: 'ONGOING' | 'ERROR' | 'SUCCESS' | 'EXPIRED' | 'DISCARDED';\n emails: EmailMessage[];\n createdAt: string;\n modifiedAt: string;\n completedAt?: string;\n nextActionAt: string;\n riskLevel: number;\n};\n\nexport type ListOverdueRemindersResponse = PaginatedList<DebtorAutoFollowUp, ReferenceData>;\nexport type ListOverdueRemindersRequest = {\n offset: number;\n limit: number;\n sortBy: SortFilter;\n};\n\n/******\n * Debtor Dossier Types\n ******/\n\nexport enum DebtorsDossierActions {\n SET_METADATA = 'set_metadata',\n ADD_ACTIVITY = 'add_activity',\n FINISH = 'finish',\n SET_DOCUMENTS = 'set_documents',\n SET_PAYMENT_PLAN = 'set_payment_plan',\n SET_LEGAL_DOSSIER = 'set_legal_dossier',\n}\n\nexport type DossierStatusLogFields = {\n failedAt?: string;\n failedBy?: string;\n resolvedAt?: string;\n contactedAt?: string;\n contactedBy?: string;\n overdueAt?: string;\n overdueBy?: string;\n resolvedBy?: string;\n dialogueAt?: string;\n dialogueBy?: string;\n promiseToPayAt?: string;\n promiseToPayBy?: string;\n};\n\nexport type BaseDebtorsDossier = {\n organizationId: string;\n contactId?: string;\n tags: string[];\n origin: 'manual' | 'auto';\n autoFollowUpId?: string;\n administrativeUserId?: string;\n branchId: string;\n tenantId: string;\n};\nexport type DebtorsDossierStatusAudit = {\n from: DebtorsDossierStatus;\n to: DebtorsDossierStatus;\n changedAt: string;\n changedBy: string;\n};\n\nexport type DebtorsDossier = BaseDebtorsDossier &\n DossierStatusLogFields & {\n id: string;\n createdAt: string;\n createdBy: string;\n updatedAt: string;\n updatedBy: string;\n status: DebtorsDossierStatus;\n statusAudit: DebtorsDossierStatusAudit[];\n };\n\nexport type NewDebtorsDossier = BaseDebtorsDossier & {\n id?: undefined;\n createdBy?: undefined;\n createdAt?: undefined;\n updatedBy?: undefined;\n updatedAt?: undefined;\n};\n\nexport type DebtorsDossierBff = {\n dossier: DataRecord<DebtorsDossier>;\n organization?: Organization;\n contact?: Contact;\n leasingContracts: LeasingContract[];\n debt?: DebtorInfo;\n paymentPlan?: DebtorsPaymentPlan;\n legalDossier?: LegalDossier;\n trackAndTraceDevices: {\n /* odometer: TrackAndTraceOdometerData;\n device: TrackAndTraceDevice; */\n }[];\n};\n\nexport type UpdateDebtorsDossier = Partial<\n Pick<\n DebtorsDossier,\n 'status' | 'tags' | 'contactId' | 'administrativeUserId' | 'branchId' | 'organizationId'\n >\n> & {\n overdue?: boolean;\n resolve?: boolean;\n terminate?: boolean;\n};\n\n/******\n * Payment Plan Types\n ******/\n\nexport type DebtorsPaymentPlan = {\n id: string;\n debtorDossierId: string;\n\n notes?: string;\n\n reminders?: {\n frequency: {\n every: number;\n period: 'days' | 'weeks' | 'months';\n };\n endCondition:\n | {\n endDate: string; // ISO date string\n }\n | {\n occurrences: number; // Number of reminders to send\n };\n };\n\n createdAt: string;\n createdBy: string;\n updatedAt: string;\n updatedBy: string;\n};\n\nexport type NewPaymentPlan = Omit<\n DebtorsPaymentPlan,\n 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy'\n>;\n\nexport type UpdatePaymentPlan = Partial<Pick<DebtorsPaymentPlan, 'notes' | 'reminders'>>;\n\n/******\n * Legal Dossier Types\n ******/\n\nexport enum LegalDossierStatus {\n ASSESSMENT = 'assessment',\n PRE_LEGAL_NOTICE = 'pre_legal_notice',\n SENT_TO_LAWYER = 'sent_to_lawyer',\n FILED = 'filed',\n IN_COURT = 'in_court',\n JUDGMENT = 'judgment',\n ENFORCEMENT = 'enforcement',\n SETTLEMENT = 'settlement',\n CLOSED_RECOVERED = 'closed_recovered',\n CLOSED_UNRECOVERABLE = 'closed_unrecoverable',\n ON_HOLD = 'on_hold',\n}\n\nexport type LegalDossier = {\n id: string;\n debtorDossierId: string;\n caseNumber?: string;\n notes?: string;\n createdAt: string;\n createdBy: string;\n updatedAt: string;\n updatedBy: string;\n status: LegalDossierStatus;\n};\n\nexport type NewLegalDossier = Omit<\n LegalDossier,\n 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy'\n>;\n\nexport type UpdateLegalDossier = Partial<Pick<LegalDossier, 'caseNumber' | 'status' | 'notes'>>;\n\n/******\n * Debtor Dossier Events\n ******/\n\nexport type DebtorsDossierCreateEvent = {\n action: 'created';\n data: DebtorsDossier;\n previousData?: undefined;\n tenantId: string;\n userId: string;\n};\n\nexport type DebtorsDossierUpdateEvent = {\n action: 'updated';\n data: DebtorsDossier;\n previousData: DebtorsDossier;\n tenantId: string;\n userId: string;\n};\n\nexport type DebtorsDossierDeleteEvent = {\n action: 'deleted';\n data?: undefined;\n previousData: DebtorsDossier;\n tenantId: string;\n userId: string;\n};\n\nexport type DebtorsDossierEvent =\n | DebtorsDossierCreateEvent\n | DebtorsDossierUpdateEvent\n | DebtorsDossierDeleteEvent;\n\n/************\n *\n * Search\n */\n\nexport type SearchDebtorsDossier = {\n contact?: Contact;\n debtorsDossier: DebtorsDossier;\n org?: Organization;\n legalDossier?: LegalDossier;\n paymentPlan?: DebtorsPaymentPlan;\n};\n\n/************\n *\n * Kanban\n */\n\nexport type DebtorsDossierKanbanColumn = {\n status: string;\n results: SearchDebtorsDossier[];\n totalCount: number;\n totalValue: string;\n};\n\nexport type MSearchDebtorsDossierKanbanColumn = {\n column: DebtorsDossierKanbanColumn;\n nextToken?: string;\n};\n\nexport type KanbanDebtorsDossierSearchRequest = BaseSearchRequest & {\n nextTokens?: Record<string, string | undefined>;\n};\n\nexport type KanbanDebtorsDossierNextList = Omit<\n NextList<DebtorsDossierKanbanColumn, ReferenceData>,\n 'nextToken'\n> & {\n nextTokens?: Record<string, string | undefined>;\n};\n\nexport const DebtorsDossierStatusOrder: DebtorsDossierStatus[] = [\n DebtorsDossierStatus.AUTO_REMINDER,\n DebtorsDossierStatus.OVERDUE,\n DebtorsDossierStatus.CONTACT_ATTEMPTED,\n DebtorsDossierStatus.DIALOGUE,\n DebtorsDossierStatus.PROMISE_TO_PAY,\n];\n\nexport const DebtorsDossierWonColumnId = DebtorsDossierStatus.RESOLVED;\n\nexport const DebtorsDossierKanbanEndColumns: string[] = [\n DebtorsDossierStatus.RESOLVED,\n DebtorsDossierStatus.FAILURE,\n];\n\nexport const DebtorsDossierKanbanColumns = [\n ...DebtorsDossierStatusOrder,\n ...DebtorsDossierKanbanEndColumns,\n];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing-search.d.ts","sourceRoot":"/","sources":["types/leasing-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,sBAAsB,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,eAAe,CAAC;IAC1B,GAAG,EAAE,YAAY,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACN,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,cAAc,CAAC;QAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"leasing-search.d.ts","sourceRoot":"/","sources":["types/leasing-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,sBAAsB,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,eAAe,CAAC;IAC1B,GAAG,EAAE,YAAY,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACN,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,cAAc,CAAC;QAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing-search.js","sourceRoot":"/","sources":["types/leasing-search.ts"],"names":[],"mappings":"","sourcesContent":["import { InsuranceEntry } from '@bisondesk/commons-sdk/insurance';\nimport { Contact, Organization } from './crm.js';\nimport { PublicSearchDefinition } from './definitions.js';\nimport { LeasingContract } from './leasing.js';\nimport { Vehicle } from './vehicles.js';\n\nexport type LeasingPublicSearchDefinitions = {\n searchLeasingContract: PublicSearchDefinition;\n};\n\nexport type LeasingDebtorsSearchDefinitions = {\n debtors: PublicSearchDefinition;\n};\n\nexport type SearchLeasingContract = {\n contract: LeasingContract;\n org: Organization;\n contact?: Contact;\n vehicle: Vehicle;\n custom: {\n active: boolean;\n insurance?: InsuranceEntry;\n externalTracking?: boolean;\n accountManager?: string;\n };\n};\n\nexport type InputSearchLeasingContract = SearchLeasingContract;\n"]}
|
|
1
|
+
{"version":3,"file":"leasing-search.js","sourceRoot":"/","sources":["types/leasing-search.ts"],"names":[],"mappings":"","sourcesContent":["import { InsuranceEntry } from '@bisondesk/commons-sdk/insurance';\nimport { Contact, Organization } from './crm.js';\nimport { PublicSearchDefinition } from './definitions.js';\nimport { LeasingContract } from './leasing.js';\nimport { Vehicle } from './vehicles.js';\n\nexport type LeasingPublicSearchDefinitions = {\n searchLeasingContract: PublicSearchDefinition;\n};\n\nexport type LeasingDebtorsSearchDefinitions = {\n debtors: PublicSearchDefinition;\n};\n\nexport type SearchLeasingContract = {\n contract: LeasingContract;\n org: Organization;\n contact?: Contact;\n vehicle: Vehicle;\n custom: {\n active: boolean;\n insurance?: InsuranceEntry;\n externalTracking?: boolean;\n accountManager?: string;\n lastIssuedInvoiceDate?: string;\n };\n};\n\nexport type InputSearchLeasingContract = SearchLeasingContract;\n"]}
|
package/lib/types/leasing.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SortFilter } from './search.js';
|
|
4
|
-
import { ReferenceData } from './utils.js';
|
|
1
|
+
import { AttachmentValue, Document, LinkValue } from '@bisondesk/commons-sdk/types';
|
|
2
|
+
import { BaseEvent } from './internal-events.js';
|
|
5
3
|
export declare enum LeasingContractActions {
|
|
6
4
|
CREATE_FINANCE_DOCUMENT = "create_finance_document",
|
|
7
5
|
START_RETAKE_VEHICLE = "start_retake_vehicle",
|
|
@@ -35,18 +33,6 @@ export type LeasingConditionEvent = {
|
|
|
35
33
|
userId: string;
|
|
36
34
|
tenantId: string;
|
|
37
35
|
};
|
|
38
|
-
export type OverdueDossier = {
|
|
39
|
-
id: string;
|
|
40
|
-
organizationId: string;
|
|
41
|
-
organizationName: string;
|
|
42
|
-
status: 'ONGOING' | 'ERROR' | 'SUCCESS' | 'EXPIRED' | 'DISCARDED';
|
|
43
|
-
emails: EmailMessage[];
|
|
44
|
-
createdAt: string;
|
|
45
|
-
modifiedAt: string;
|
|
46
|
-
completedAt?: string;
|
|
47
|
-
nextActionAt: string;
|
|
48
|
-
riskLevel: number;
|
|
49
|
-
};
|
|
50
36
|
export type LeasingContractClient = {
|
|
51
37
|
organizationId: string;
|
|
52
38
|
contactIds: string[];
|
|
@@ -161,12 +147,6 @@ export type OpportunityRef = BaseRef & {
|
|
|
161
147
|
createdAt: string;
|
|
162
148
|
quoteId: string;
|
|
163
149
|
};
|
|
164
|
-
export type ListOverdueRemindersResponse = PaginatedList<OverdueDossier, ReferenceData>;
|
|
165
|
-
export type ListOverdueRemindersRequest = {
|
|
166
|
-
offset: number;
|
|
167
|
-
limit: number;
|
|
168
|
-
sortBy: SortFilter;
|
|
169
|
-
};
|
|
170
150
|
export type NewLeasingConditions = {
|
|
171
151
|
parameters: {
|
|
172
152
|
yearlyRoadTax: string;
|
|
@@ -260,7 +240,7 @@ export type AmortizationTable = {
|
|
|
260
240
|
monthlyInterestRate?: string;
|
|
261
241
|
rows: AmortizationRow[];
|
|
262
242
|
};
|
|
263
|
-
export type AmortizationDocsEvent = {
|
|
243
|
+
export type AmortizationDocsEvent = BaseEvent & {
|
|
264
244
|
contractId: string;
|
|
265
245
|
changedDocumentIds: string[];
|
|
266
246
|
actionAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing.d.ts","sourceRoot":"/","sources":["types/leasing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,oBAAY,sBAAsB;IAChC,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,qBAAqB,0BAA0B;CAChD;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leasing.js","sourceRoot":"/","sources":["types/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","sourcesContent":["import { EmailMessage } from '@bisondesk/commons-sdk/messages';\nimport { AttachmentValue, Document, LinkValue, PaginatedList } from '@bisondesk/commons-sdk/types';\nimport { SortFilter } from './search.js';\nimport { ReferenceData } from './utils.js';\n\nexport enum LeasingContractActions {\n CREATE_FINANCE_DOCUMENT = 'create_finance_document',\n START_RETAKE_VEHICLE = 'start_retake_vehicle',\n END_RETAKE_VEHICLE = 'end_retake_vehicle',\n START_CONTRACT_END = 'start_contract_end',\n END_CONTRACT = 'end_contract',\n CANCEL_RETAKE_VEHICLE = 'cancel_retake_vehicle',\n}\n\nexport type LeasingContractDebtInfo = {\n overdueSince?: string;\n overdueInvoices: number;\n overdueAmount: string;\n unpaidInvoices: number;\n unpaidAmount: string;\n};\n\nexport type LeasingContractEvent = {\n id: string;\n action: 'create' | 'update' | 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n contract: LeasingContract;\n};\n\nexport type LeasingContractImportEvent = {\n tenantId: string;\n};\n\nexport type LeasingConditionEvent = {\n id: string;\n action: 'create';\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type OverdueDossier = {\n id: string;\n organizationId: string;\n organizationName: string;\n status: 'ONGOING' | 'ERROR' | 'SUCCESS' | 'EXPIRED' | 'DISCARDED';\n emails: EmailMessage[];\n createdAt: string;\n modifiedAt: string;\n completedAt?: string;\n nextActionAt: string;\n riskLevel: number;\n};\n\nexport type LeasingContractClient = {\n organizationId: string;\n contactIds: string[];\n email?: string;\n since: string;\n takeoverId?: string;\n country: string;\n beEntityType?: 'Legal Person' | 'Natural Person';\n beForeignEntity?: boolean;\n\n /**\n * Used to overwrite the startDate in the context of a Becris declaration. This might be necessary\n * when due to some data-quality issue we do not report the contract at the right period and it is no\n * longer possible to resend the declaration for the corresponding month.\n */\n becrisStartDate?: string;\n};\n\nexport enum LeasingContractSource {\n HYPERPORTAL = 'hyperportal',\n BISONDESK = 'bisondesk',\n}\n\nexport enum LeasingContractStatus {\n DRAFT = 'draft',\n DISCARDED = 'discarded',\n PAUSED = 'paused',\n ACTIVE = 'active', // getDbLeasingContractByStockNumber uses ordering by status if this changes update there\n LEASING_RETURN = 'leasing_return',\n RECOVERED = 'recovered',\n ENDING = 'ending',\n ENDED = 'ended',\n}\n\nexport type LeasingContractHyperportal = {\n source: LeasingContractSource.HYPERPORTAL;\n /** oldest first **/\n conditions: ConditionsRef[];\n opportunities?: undefined;\n};\n\nexport type LeasingContractBisondesk = {\n source: LeasingContractSource.BISONDESK;\n conditions?: undefined;\n /** oldest first **/\n opportunities: OpportunityRef[];\n};\n\ntype BaseLeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> = {\n id: string;\n createdAt: string;\n updatedAt: string;\n contractNumber?: string;\n startDate: string;\n deliveryDate?: string;\n endDate?: string;\n links?: LinkValue[];\n accountManager?: string;\n clients: LeasingContractClient[];\n hasSlbPartnerAmortisationTable?: boolean;\n slbPartner?: string;\n slbBankAccountOrganizationId?: string;\n slbContractNumber?: string;\n slbContractAmount?: string;\n externalTracking?: boolean;\n vehicle: {\n id: string;\n stockNumber: string;\n administrativeNumber?: string;\n retake?: {\n date?: string;\n actionBy: string;\n actionAt: string;\n startedAt?: string;\n startedBy?: string;\n completedAt?: string;\n completedBy?: string;\n clonedVehicleId?: string;\n totalLoss?: boolean;\n };\n };\n status: LeasingContractStatus;\n documents: Document[];\n} & T;\n\nexport type LeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =\n BaseLeasingContract<T> & {\n readonly expectedEndDate: string;\n readonly debt: LeasingContractDebtInfo;\n };\n\nexport type NewLeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =\n BaseLeasingContract<T> & {\n readonly expectedEndDate?: string | undefined;\n readonly debt?: LeasingContractDebtInfo | undefined;\n };\n\nexport type NextLeasingRentRowRequest = {\n vehicleId: string;\n organizationId: string;\n issueDate: string;\n};\n\nexport type NextLeasingRentRowResponse = {\n capital: string;\n contract: string;\n insurance?: string;\n interest: string;\n other?: string; // insurance + taxes + others\n period: number;\n taxes?: string;\n total: string;\n};\n\ntype BaseRef = {\n id: string;\n depositAmount: string;\n durationInMonths: number;\n taxesAmount?: string;\n insuranceAmount?: string;\n saleAmount: string; // includes the extras\n interestRate: string; //TODO: In LC from BD value is percentage, in LC from HP value is decimal\n residualAmount: string;\n leasingMonthlyAmount: string; // excluding VAT\n otherMonthlyAmounts: string; // insurance + taxes + others (excluding VAT)\n totalMonthlyAmount: string; // excluding VAT\n};\n\nexport type ConditionsRef = BaseRef & {\n validSince: string;\n};\n\nexport type OpportunityRef = BaseRef & {\n createdAt: string;\n quoteId: string;\n //Since VAT is client specific and contracts can be transferred between clients, we always handle values without VAT\n};\n\nexport type ListOverdueRemindersResponse = PaginatedList<OverdueDossier, ReferenceData>;\nexport type ListOverdueRemindersRequest = {\n offset: number;\n limit: number;\n sortBy: SortFilter;\n};\n\nexport type NewLeasingConditions = {\n parameters: {\n yearlyRoadTax: string;\n civilLiability: string;\n oneTimeRoadTax: string;\n specialInsurance: string;\n allRisksPercentage: string;\n allRisksTaxPercentage: string;\n };\n\n inputs: {\n deposit: string;\n salesPrice: string;\n bankDeposit: string;\n purchasePrice: string;\n residualValue: string;\n insuranceAmount: string;\n durationInMonths: number;\n includesAllRisks: boolean;\n marginPercentage: string;\n bankResidualValue: string;\n bankDurationInMonths: number;\n startupFeePercentage: string;\n includesYearlyRoadTax: boolean;\n includesCivilLiability: boolean;\n includesOneTimeRoadTax: boolean;\n interestRatePercentage: string;\n includesSpecialInsurance: boolean;\n monthlyAdministrationFee: string;\n bankInterestRatePercentage: string;\n };\n\n outputs: {\n ROI: string;\n ROITarget: string;\n ROIPerYear: string;\n cashDeficit: string;\n totalProfit: string;\n ROIDifference: string;\n leasingAmount: string;\n leasingProfit: string;\n vehicleProfit: string;\n oneTimeTaxCost: string;\n financingAmount: string;\n bankContractValue: string;\n bankLeasingAmount: string;\n totalMonthlyPayment: string;\n leasingContractValue: string;\n monthlyTaxRetailPrice: string;\n allRisksInsuranceAmount: string;\n };\n\n cashIn: Array<{\n time: string;\n cashIn: string;\n deposit: string;\n startupFee: string;\n taxPayment: string;\n residualValue: string;\n cumulativeCash: string;\n insurancePayment: string;\n monthlyAdministrationFee: string;\n leasingAmountWithoutAdminFee: string;\n }>;\n\n cashOut: Array<{\n time: string;\n cashOut: string;\n deposit: string;\n taxPayment: string;\n leasingAmount: string;\n residualValue: string;\n cumulativeCash: string;\n insurancePayment: string;\n }>;\n};\n\nexport type LeasingConditions = NewLeasingConditions & {\n id: string;\n createdAt: string;\n createdBy: string;\n amortization: AmortizationTable;\n};\n\nexport type AmortizationRow = {\n period: number;\n /* An estimate of the date in which the period will happen\n based on the contract start date. Empty for period zero. */\n expectedPeriodDate?: string;\n buyOff: string;\n payment: string;\n capital: string;\n interest: string;\n totalInterest: string;\n balance: string;\n};\n\nexport type AmortizationTable = {\n annualInterestRate?: string;\n monthlyInterestRate?: string;\n rows: AmortizationRow[];\n};\n\nexport type AmortizationDocsEvent = {\n contractId: string;\n changedDocumentIds: string[];\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type AmortizationDocs = {\n contractId: string;\n period: number;\n documents: AmortizationDoc[];\n};\n\n/* for a given document in what contract and periods it is */\nexport type DocumentAmortizationData = {\n contractId: string;\n periods: number[];\n};\n\nexport type AmortizationDoc = {\n amount: string;\n bookingNumber: string;\n branchId: string;\n documentId: string;\n issueDate: string;\n subtype: 'Invoice' | 'Credit Note';\n clientExternalId: number;\n};\n\nexport type BecrisDeclaration = {\n createdAt: string;\n endDate: string;\n endingInstruments: number;\n existingInstruments: number;\n file: AttachmentValue;\n id: string;\n newInstruments: number;\n startDate: string;\n};\n\nexport type LeasingReportingSettings = {\n active: boolean;\n branchId: string;\n tenantId: string;\n};\n\nexport enum LeasingRemindersSortableColumns {\n NextActionAt = 'next_action_at',\n OrganizationName = 'organization_name',\n RemindersCount = 'reminders_count',\n Status = 'status',\n}\n\nexport type AmortizationTableRequest = {\n leasingAmount: string; // monthly amount\n deposit: string;\n salesPrice: string;\n duration: number; // in months\n residual: string;\n monthlyInterestRate: string; // the annual interest rate divided by 12\n startDate?: string; // should be filled in if you want an amortization table with expected period dates\n};\n\nexport type AmortizationTableTemplateData = {\n opportunity: {\n id: string;\n };\n v: {\n make: string;\n model: string;\n category: string;\n type?: string;\n vin: string;\n year?: string | number;\n stockNumber: string;\n };\n c: {\n clientNumber: number;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n leasing: {\n salesPrice: string;\n salesPriceVat: string;\n salesPriceExclVat: string;\n deposit: string;\n depositExclVat: string;\n depositVat: string;\n installment: string;\n installmentVat: string;\n installmentExclVat: string;\n duration: number;\n monthlyInsurance: string;\n monthlyTax: string;\n monthlyTaxesInsurance: string;\n residual: string;\n residualVat: string;\n residualExclVat: string;\n offerNumber: string;\n contractNumber: string;\n vatPercentage: string;\n totalLeasingAmount: string;\n totalLeasingAmountExclVat: string;\n balance: string;\n balanceExclVat: string;\n };\n amortization: {\n period: number;\n periodStartDate: string;\n periodEndDate: string;\n deposit: string;\n startUpFee: string;\n monthlyAmount: string;\n capital: string;\n balance: string;\n interest: string;\n insurance: string;\n expirationDate: string;\n total: string;\n }[];\n};\n\nexport type CmrTemplateData = {\n contractId: string;\n date: string;\n\n c: {\n name: string;\n nit: string;\n address: string;\n city: string;\n };\n v: {\n make: string;\n model: string;\n year: string;\n vin: string;\n licensePlate: string;\n color?: string;\n parkLocation: string;\n };\n};\n\nexport enum LEASING_EXPORT_TYPES {\n RENTAL_SOLUTIONS = 'rental-solutions',\n DEFAULT = 'default',\n}\n\nexport type VehicleRetakeRequest = {\n retrievalDate: string;\n totalLoss?: boolean;\n cloneVehicle?: boolean;\n stopBilling?: boolean;\n};\n\nexport type LeasingContractEndRequest = {\n contractId: string;\n endDate?: string;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"leasing.js","sourceRoot":"/","sources":["types/leasing.ts"],"names":[],"mappings":"AAMA,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;AAiDD,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;AAgQD,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","sourcesContent":["import { EmailMessage } from '@bisondesk/commons-sdk/messages';\nimport { AttachmentValue, Document, LinkValue, PaginatedList } from '@bisondesk/commons-sdk/types';\nimport { BaseEvent } from './internal-events.js';\nimport { SortFilter } from './search.js';\nimport { ReferenceData } from './utils.js';\n\nexport enum LeasingContractActions {\n CREATE_FINANCE_DOCUMENT = 'create_finance_document',\n START_RETAKE_VEHICLE = 'start_retake_vehicle',\n END_RETAKE_VEHICLE = 'end_retake_vehicle',\n START_CONTRACT_END = 'start_contract_end',\n END_CONTRACT = 'end_contract',\n CANCEL_RETAKE_VEHICLE = 'cancel_retake_vehicle',\n}\n\nexport type LeasingContractDebtInfo = {\n overdueSince?: string;\n overdueInvoices: number;\n overdueAmount: string;\n unpaidInvoices: number;\n unpaidAmount: string;\n};\n\nexport type LeasingContractEvent = {\n id: string;\n action: 'create' | 'update' | 'delete';\n actionAt: string;\n userId: string;\n tenantId: string;\n contract: LeasingContract;\n};\n\nexport type LeasingContractImportEvent = {\n tenantId: string;\n};\n\nexport type LeasingConditionEvent = {\n id: string;\n action: 'create';\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type LeasingContractClient = {\n organizationId: string;\n contactIds: string[];\n email?: string;\n since: string;\n takeoverId?: string;\n country: string;\n beEntityType?: 'Legal Person' | 'Natural Person';\n beForeignEntity?: boolean;\n\n /**\n * Used to overwrite the startDate in the context of a Becris declaration. This might be necessary\n * when due to some data-quality issue we do not report the contract at the right period and it is no\n * longer possible to resend the declaration for the corresponding month.\n */\n becrisStartDate?: string;\n};\n\nexport enum LeasingContractSource {\n HYPERPORTAL = 'hyperportal',\n BISONDESK = 'bisondesk',\n}\n\nexport enum LeasingContractStatus {\n DRAFT = 'draft',\n DISCARDED = 'discarded',\n PAUSED = 'paused',\n ACTIVE = 'active', // getDbLeasingContractByStockNumber uses ordering by status if this changes update there\n LEASING_RETURN = 'leasing_return',\n RECOVERED = 'recovered',\n ENDING = 'ending',\n ENDED = 'ended',\n}\n\nexport type LeasingContractHyperportal = {\n source: LeasingContractSource.HYPERPORTAL;\n /** oldest first **/\n conditions: ConditionsRef[];\n opportunities?: undefined;\n};\n\nexport type LeasingContractBisondesk = {\n source: LeasingContractSource.BISONDESK;\n conditions?: undefined;\n /** oldest first **/\n opportunities: OpportunityRef[];\n};\n\ntype BaseLeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> = {\n id: string;\n createdAt: string;\n updatedAt: string;\n contractNumber?: string;\n startDate: string;\n deliveryDate?: string;\n endDate?: string;\n links?: LinkValue[];\n accountManager?: string;\n clients: LeasingContractClient[];\n hasSlbPartnerAmortisationTable?: boolean;\n slbPartner?: string;\n slbBankAccountOrganizationId?: string;\n slbContractNumber?: string;\n slbContractAmount?: string;\n externalTracking?: boolean;\n vehicle: {\n id: string;\n stockNumber: string;\n administrativeNumber?: string;\n retake?: {\n date?: string;\n actionBy: string;\n actionAt: string;\n startedAt?: string;\n startedBy?: string;\n completedAt?: string;\n completedBy?: string;\n clonedVehicleId?: string;\n totalLoss?: boolean;\n };\n };\n status: LeasingContractStatus;\n documents: Document[];\n} & T;\n\nexport type LeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =\n BaseLeasingContract<T> & {\n readonly expectedEndDate: string;\n readonly debt: LeasingContractDebtInfo;\n };\n\nexport type NewLeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =\n BaseLeasingContract<T> & {\n readonly expectedEndDate?: string | undefined;\n readonly debt?: LeasingContractDebtInfo | undefined;\n };\n\nexport type NextLeasingRentRowRequest = {\n vehicleId: string;\n organizationId: string;\n issueDate: string;\n};\n\nexport type NextLeasingRentRowResponse = {\n capital: string;\n contract: string;\n insurance?: string;\n interest: string;\n other?: string; // insurance + taxes + others\n period: number;\n taxes?: string;\n total: string;\n};\n\ntype BaseRef = {\n id: string;\n depositAmount: string;\n durationInMonths: number;\n taxesAmount?: string;\n insuranceAmount?: string;\n saleAmount: string; // includes the extras\n interestRate: string; //TODO: In LC from BD value is percentage, in LC from HP value is decimal\n residualAmount: string;\n leasingMonthlyAmount: string; // excluding VAT\n otherMonthlyAmounts: string; // insurance + taxes + others (excluding VAT)\n totalMonthlyAmount: string; // excluding VAT\n};\n\nexport type ConditionsRef = BaseRef & {\n validSince: string;\n};\n\nexport type OpportunityRef = BaseRef & {\n createdAt: string;\n quoteId: string;\n //Since VAT is client specific and contracts can be transferred between clients, we always handle values without VAT\n};\n\nexport type NewLeasingConditions = {\n parameters: {\n yearlyRoadTax: string;\n civilLiability: string;\n oneTimeRoadTax: string;\n specialInsurance: string;\n allRisksPercentage: string;\n allRisksTaxPercentage: string;\n };\n\n inputs: {\n deposit: string;\n salesPrice: string;\n bankDeposit: string;\n purchasePrice: string;\n residualValue: string;\n insuranceAmount: string;\n durationInMonths: number;\n includesAllRisks: boolean;\n marginPercentage: string;\n bankResidualValue: string;\n bankDurationInMonths: number;\n startupFeePercentage: string;\n includesYearlyRoadTax: boolean;\n includesCivilLiability: boolean;\n includesOneTimeRoadTax: boolean;\n interestRatePercentage: string;\n includesSpecialInsurance: boolean;\n monthlyAdministrationFee: string;\n bankInterestRatePercentage: string;\n };\n\n outputs: {\n ROI: string;\n ROITarget: string;\n ROIPerYear: string;\n cashDeficit: string;\n totalProfit: string;\n ROIDifference: string;\n leasingAmount: string;\n leasingProfit: string;\n vehicleProfit: string;\n oneTimeTaxCost: string;\n financingAmount: string;\n bankContractValue: string;\n bankLeasingAmount: string;\n totalMonthlyPayment: string;\n leasingContractValue: string;\n monthlyTaxRetailPrice: string;\n allRisksInsuranceAmount: string;\n };\n\n cashIn: Array<{\n time: string;\n cashIn: string;\n deposit: string;\n startupFee: string;\n taxPayment: string;\n residualValue: string;\n cumulativeCash: string;\n insurancePayment: string;\n monthlyAdministrationFee: string;\n leasingAmountWithoutAdminFee: string;\n }>;\n\n cashOut: Array<{\n time: string;\n cashOut: string;\n deposit: string;\n taxPayment: string;\n leasingAmount: string;\n residualValue: string;\n cumulativeCash: string;\n insurancePayment: string;\n }>;\n};\n\nexport type LeasingConditions = NewLeasingConditions & {\n id: string;\n createdAt: string;\n createdBy: string;\n amortization: AmortizationTable;\n};\n\nexport type AmortizationRow = {\n period: number;\n /* An estimate of the date in which the period will happen\n based on the contract start date. Empty for period zero. */\n expectedPeriodDate?: string;\n buyOff: string;\n payment: string;\n capital: string;\n interest: string;\n totalInterest: string;\n balance: string;\n};\n\nexport type AmortizationTable = {\n annualInterestRate?: string;\n monthlyInterestRate?: string;\n rows: AmortizationRow[];\n};\n\nexport type AmortizationDocsEvent = BaseEvent & {\n contractId: string;\n changedDocumentIds: string[];\n actionAt: string;\n userId: string;\n tenantId: string;\n};\n\nexport type AmortizationDocs = {\n contractId: string;\n period: number;\n documents: AmortizationDoc[];\n};\n\n/* for a given document in what contract and periods it is */\nexport type DocumentAmortizationData = {\n contractId: string;\n periods: number[];\n};\n\nexport type AmortizationDoc = {\n amount: string;\n bookingNumber: string;\n branchId: string;\n documentId: string;\n issueDate: string;\n subtype: 'Invoice' | 'Credit Note';\n clientExternalId: number;\n};\n\nexport type BecrisDeclaration = {\n createdAt: string;\n endDate: string;\n endingInstruments: number;\n existingInstruments: number;\n file: AttachmentValue;\n id: string;\n newInstruments: number;\n startDate: string;\n};\n\nexport type LeasingReportingSettings = {\n active: boolean;\n branchId: string;\n tenantId: string;\n};\n\nexport enum LeasingRemindersSortableColumns {\n NextActionAt = 'next_action_at',\n OrganizationName = 'organization_name',\n RemindersCount = 'reminders_count',\n Status = 'status',\n}\n\nexport type AmortizationTableRequest = {\n leasingAmount: string; // monthly amount\n deposit: string;\n salesPrice: string;\n duration: number; // in months\n residual: string;\n monthlyInterestRate: string; // the annual interest rate divided by 12\n startDate?: string; // should be filled in if you want an amortization table with expected period dates\n};\n\nexport type AmortizationTableTemplateData = {\n opportunity: {\n id: string;\n };\n v: {\n make: string;\n model: string;\n category: string;\n type?: string;\n vin: string;\n year?: string | number;\n stockNumber: string;\n };\n c: {\n clientNumber: number;\n company: string;\n fullName: string;\n vatNumber?: string;\n email?: string;\n phone?: string;\n address?: string;\n };\n leasing: {\n salesPrice: string;\n salesPriceVat: string;\n salesPriceExclVat: string;\n deposit: string;\n depositExclVat: string;\n depositVat: string;\n installment: string;\n installmentVat: string;\n installmentExclVat: string;\n duration: number;\n monthlyInsurance: string;\n monthlyTax: string;\n monthlyTaxesInsurance: string;\n residual: string;\n residualVat: string;\n residualExclVat: string;\n offerNumber: string;\n contractNumber: string;\n vatPercentage: string;\n totalLeasingAmount: string;\n totalLeasingAmountExclVat: string;\n balance: string;\n balanceExclVat: string;\n };\n amortization: {\n period: number;\n periodStartDate: string;\n periodEndDate: string;\n deposit: string;\n startUpFee: string;\n monthlyAmount: string;\n capital: string;\n balance: string;\n interest: string;\n insurance: string;\n expirationDate: string;\n total: string;\n }[];\n};\n\nexport type CmrTemplateData = {\n contractId: string;\n date: string;\n\n c: {\n name: string;\n nit: string;\n address: string;\n city: string;\n };\n v: {\n make: string;\n model: string;\n year: string;\n vin: string;\n licensePlate: string;\n color?: string;\n parkLocation: string;\n };\n};\n\nexport enum LEASING_EXPORT_TYPES {\n RENTAL_SOLUTIONS = 'rental-solutions',\n DEFAULT = 'default',\n}\n\nexport type VehicleRetakeRequest = {\n retrievalDate: string;\n totalLoss?: boolean;\n cloneVehicle?: boolean;\n stopBilling?: boolean;\n};\n\nexport type LeasingContractEndRequest = {\n contractId: string;\n endDate?: string;\n};\n"]}
|
package/lib/types/marketing.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.d.ts","sourceRoot":"/","sources":["types/marketing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE5F,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;
|
|
1
|
+
{"version":3,"file":"marketing.d.ts","sourceRoot":"/","sources":["types/marketing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE5F,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IAErB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,iBAAiB;IAC3B,aAAa,cAAc;IAC3B,UAAU,iBAAiB;IAC3B,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,CAAC,E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AC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE5E,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,CAAC,CAAC;IACT,SAAS,EAAE,kBAAkB,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
package/lib/types/marketing.js
CHANGED
|
@@ -6,7 +6,6 @@ export var MarketingPlatform;
|
|
|
6
6
|
MarketingPlatform["machineryplanet"] = "machineryplanet";
|
|
7
7
|
MarketingPlatform["machinetrack"] = "machinetrack";
|
|
8
8
|
MarketingPlatform["marktnet"] = "marktnet";
|
|
9
|
-
MarketingPlatform["mobile"] = "mobile";
|
|
10
9
|
MarketingPlatform["truck1st"] = "truck1st";
|
|
11
10
|
MarketingPlatform["trucks"] = "trucks";
|
|
12
11
|
MarketingPlatform["truckscout"] = "truckscout24";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.js","sourceRoot":"/","sources":["types/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;
|
|
1
|
+
{"version":3,"file":"marketing.js","sourceRoot":"/","sources":["types/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;IAErB,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,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,oDAA8B,CAAA;IAC9B,4DAAsC,CAAA;AACxC,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B;AAED,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,oDAAqB,CAAA;IACrB,8CAAe,CAAA;AACjB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC","sourcesContent":["import { AttachmentValue, MultiLangValue, NextRequest } from '@bisondesk/commons-sdk/types';\n\nexport enum MarketingPlatform {\n autoscout24 = 'autoscout24',\n autoline = 'autoline',\n exportseller = 'exportseller',\n machineryplanet = 'machineryplanet',\n machinetrack = 'machinetrack',\n marktnet = 'marktnet',\n // mobile = 'mobile',\n truck1st = 'truck1st', // Truck1.eu\n trucks = 'trucks', //Trucks.nl\n truckscout = 'truckscout24',\n tweedehandsbe = '2ehandsbe',\n viamobilis = 'planettrucks',\n youtube = 'youtube',\n}\n\nexport type VehicleMarketing = {\n titles: MultiLangValue;\n remarks?: MultiLangValue;\n marketingPlatforms: string[];\n videos: AttachmentValue[];\n publishedOnWebsiteAt?: string;\n unpublishedOnWebsiteAt?: string;\n\n edited?: {\n marketingPlatforms?: boolean;\n remarks?: boolean;\n titles?: boolean;\n videos?: boolean;\n };\n};\n\nexport type VehicleMarketingDataEvent = {\n actionAt: string;\n data: VehicleMarketing;\n previousData?: VehicleMarketing;\n tenantId: string;\n userId: string;\n vehicleId: string;\n};\n\nexport type NewVehicleAd = {\n vehicleId: string;\n platform: MarketingPlatform;\n stockNumber: string;\n\n scheduledStart: string; // when its supposed to start\n scheduledEnd?: string; // when its supposed to end\n};\n\nexport type VehicleAd = NewVehicleAd & {\n id: string;\n\n createdAt: string;\n createdBy: string;\n status: 'enabled' | 'suspended';\n\n modifiedAt?: string;\n modifiedBy?: string;\n\n startedAt?: string; // when it actually started\n endedAt?: string; // when it actually ended\n};\n\nexport type VehicleAdListRequest = NextRequest & {\n listEnded?: boolean;\n userModified?: boolean;\n platform?: MarketingPlatform;\n vehicleId?: string;\n};\n\nexport type VehicleMarketingStats = {\n active: { [platform in MarketingPlatform]?: number };\n manual: { [platform in MarketingPlatform]?: number };\n};\n\nexport enum MarketingEventStatus {\n Scheduled = 'scheduled',\n Processing = 'processing',\n Skipped = 'skipped',\n Error = 'error',\n Sent = 'processed',\n}\n\nexport enum MarketingEventType {\n PriceDrop = 'price-drop',\n PartnerOffer = 'partner-offer',\n VehicleAvailable = 'vehicle-available',\n}\n\nexport enum MarketingMessageChannelType {\n Whatsapp = 'whatsapp',\n Email = 'email',\n}\n\nexport type MarketingMessage = {\n id: string;\n channelType: MarketingMessageChannelType;\n templateId: string;\n contactId?: string;\n organizationId?: string;\n createdAt: string;\n createdBy: string;\n marketingEventId: string;\n phone: string;\n};\n\nexport type MarketingDestination = {\n contactId?: string;\n organizationId?: string;\n name?: string;\n language?: string;\n} & ({ phone?: string; email: string } | { phone: string; email?: string });\n\nexport type MarketingEvent<E = any> = {\n tenantId: string;\n id: string;\n destination: MarketingDestination;\n status: MarketingEventStatus;\n statusReason?: string;\n createdAt: string;\n createdBy: string;\n modifiedAt: string;\n modifiedBy: string;\n event: E;\n eventType: MarketingEventType;\n sendAt: string;\n};\n"]}
|
package/lib/types/tenants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"/","sources":["types/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;CAInC,CAAC;AAEF,oBAAY,YAAY;IACtB,cAAc,mBAAmB;IACjC,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,kBAAkB,yBAAyB;IAC3C,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,aAAa,oBAAoB;IACjC,SAAS,cAAc;IACvB,qBAAqB,2BAA2B;IAChD,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,MAAM,GAAG,YAAY,GAAG;IAClC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,CAAC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