@nice2dev/erp-adapter 1.0.2 → 1.0.4
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/dist/business/formation.d.ts +246 -0
- package/dist/business/formation.d.ts.map +1 -0
- package/dist/certification/hub.d.ts +265 -0
- package/dist/certification/hub.d.ts.map +1 -0
- package/dist/finance/loans.d.ts +250 -0
- package/dist/finance/loans.d.ts.map +1 -0
- package/dist/gov/services.d.ts +179 -0
- package/dist/gov/services.d.ts.map +1 -0
- package/dist/grants/subsidies.d.ts +208 -0
- package/dist/grants/subsidies.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/life/travel.d.ts +363 -0
- package/dist/life/travel.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finance.Loans UI (FIN-001) — Loan comparator, application flow,
|
|
3
|
+
* credit analysis, amortization chart, active loans dashboard,
|
|
4
|
+
* refinancing advisor, leasing manager, factoring dashboard,
|
|
5
|
+
* debt consolidation planner.
|
|
6
|
+
*
|
|
7
|
+
* PRO-5.8 — 10 items
|
|
8
|
+
*
|
|
9
|
+
* @module @nice2dev/erp-adapter/finance/loans
|
|
10
|
+
*/
|
|
11
|
+
export type LoanType = 'mortgage' | 'personal' | 'business' | 'auto' | 'student' | 'credit-line' | 'overdraft' | 'bridge' | 'construction' | 'micro';
|
|
12
|
+
export interface LoanOffer {
|
|
13
|
+
id: string;
|
|
14
|
+
bank: string;
|
|
15
|
+
bankLogoUrl?: string;
|
|
16
|
+
type: LoanType;
|
|
17
|
+
/** Interest rate (annual %) */
|
|
18
|
+
interestRate: number;
|
|
19
|
+
/** Fixed/variable */
|
|
20
|
+
rateType: 'fixed' | 'variable' | 'mixed';
|
|
21
|
+
/** RRSO / APR (%) */
|
|
22
|
+
apr: number;
|
|
23
|
+
/** Commission/fee (%) */
|
|
24
|
+
commission: number;
|
|
25
|
+
/** Min/max amount */
|
|
26
|
+
minAmount: number;
|
|
27
|
+
maxAmount: number;
|
|
28
|
+
currency: string;
|
|
29
|
+
/** Min/max term (months) */
|
|
30
|
+
minTermMonths: number;
|
|
31
|
+
maxTermMonths: number;
|
|
32
|
+
/** LTV limit (%) (for mortgages) */
|
|
33
|
+
maxLtv?: number;
|
|
34
|
+
/** Insurance required */
|
|
35
|
+
insuranceRequired: boolean;
|
|
36
|
+
/** Features */
|
|
37
|
+
features: string[];
|
|
38
|
+
/** Apply URL */
|
|
39
|
+
applyUrl: string;
|
|
40
|
+
}
|
|
41
|
+
export type LoanAppStep = 'select-product' | 'personal-data' | 'income' | 'property' | 'documents' | 'bank-selection' | 'submission' | 'review' | 'decision' | 'signing' | 'disbursement';
|
|
42
|
+
export interface LoanApplicationState {
|
|
43
|
+
currentStep: LoanAppStep;
|
|
44
|
+
/** Loan details */
|
|
45
|
+
loan: {
|
|
46
|
+
type: LoanType;
|
|
47
|
+
amount: number;
|
|
48
|
+
currency: string;
|
|
49
|
+
termMonths: number;
|
|
50
|
+
purpose: string;
|
|
51
|
+
};
|
|
52
|
+
/** Applicant info */
|
|
53
|
+
applicant: {
|
|
54
|
+
name: string;
|
|
55
|
+
income: number;
|
|
56
|
+
employmentType: 'employed' | 'self-employed' | 'retired' | 'student' | 'other';
|
|
57
|
+
existingDebts: number;
|
|
58
|
+
};
|
|
59
|
+
/** Documents */
|
|
60
|
+
documents: Array<{
|
|
61
|
+
name: string;
|
|
62
|
+
type: string;
|
|
63
|
+
uploaded: boolean;
|
|
64
|
+
verified: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
/** Selected banks */
|
|
67
|
+
selectedBankIds: string[];
|
|
68
|
+
/** Per-bank statuses */
|
|
69
|
+
bankStatuses: Record<string, {
|
|
70
|
+
status: 'pending' | 'submitted' | 'under-review' | 'approved' | 'rejected';
|
|
71
|
+
decision?: string;
|
|
72
|
+
}>;
|
|
73
|
+
}
|
|
74
|
+
export interface CreditAnalysisResult {
|
|
75
|
+
/** Debt-to-Income ratio */
|
|
76
|
+
dti: number;
|
|
77
|
+
/** Loan-to-Value ratio (mortgage) */
|
|
78
|
+
ltv?: number;
|
|
79
|
+
/** Estimated max loan */
|
|
80
|
+
maxLoanAmount: number;
|
|
81
|
+
/** Monthly payment capacity */
|
|
82
|
+
monthlyCapacity: number;
|
|
83
|
+
/** Credit score estimate */
|
|
84
|
+
scoreEstimate: number;
|
|
85
|
+
/** Recommendations */
|
|
86
|
+
recommendations: string[];
|
|
87
|
+
/** Documents needed */
|
|
88
|
+
requiredDocuments: string[];
|
|
89
|
+
}
|
|
90
|
+
export type RepaymentType = 'equal' | 'decreasing' | 'balloon' | 'interest-only' | 'bullet';
|
|
91
|
+
export interface AmortizationEntry {
|
|
92
|
+
month: number;
|
|
93
|
+
date: string;
|
|
94
|
+
payment: number;
|
|
95
|
+
principal: number;
|
|
96
|
+
interest: number;
|
|
97
|
+
balance: number;
|
|
98
|
+
/** Extra payment */
|
|
99
|
+
extraPayment?: number;
|
|
100
|
+
}
|
|
101
|
+
export interface AmortizationConfig {
|
|
102
|
+
amount: number;
|
|
103
|
+
interestRate: number;
|
|
104
|
+
termMonths: number;
|
|
105
|
+
repaymentType: RepaymentType;
|
|
106
|
+
startDate: string;
|
|
107
|
+
/** Prepayment simulation */
|
|
108
|
+
extraPayments?: Array<{
|
|
109
|
+
month: number;
|
|
110
|
+
amount: number;
|
|
111
|
+
}>;
|
|
112
|
+
/** Payment holidays */
|
|
113
|
+
holidays?: Array<{
|
|
114
|
+
fromMonth: number;
|
|
115
|
+
toMonth: number;
|
|
116
|
+
}>;
|
|
117
|
+
currency: string;
|
|
118
|
+
}
|
|
119
|
+
export interface AmortizationResult {
|
|
120
|
+
schedule: AmortizationEntry[];
|
|
121
|
+
totalPayment: number;
|
|
122
|
+
totalInterest: number;
|
|
123
|
+
totalPrincipal: number;
|
|
124
|
+
/** Savings from prepayments */
|
|
125
|
+
savingsFromPrepayments: number;
|
|
126
|
+
/** Months saved from prepayments */
|
|
127
|
+
monthsSaved: number;
|
|
128
|
+
}
|
|
129
|
+
export interface ActiveLoan {
|
|
130
|
+
id: string;
|
|
131
|
+
bank: string;
|
|
132
|
+
type: LoanType;
|
|
133
|
+
originalAmount: number;
|
|
134
|
+
currentBalance: number;
|
|
135
|
+
currency: string;
|
|
136
|
+
interestRate: number;
|
|
137
|
+
monthlyPayment: number;
|
|
138
|
+
nextPaymentDate: string;
|
|
139
|
+
endDate: string;
|
|
140
|
+
/** Remaining months */
|
|
141
|
+
remainingMonths: number;
|
|
142
|
+
/** Auto-debit configured */
|
|
143
|
+
autoDebit: boolean;
|
|
144
|
+
/** Alerts */
|
|
145
|
+
alerts: Array<{
|
|
146
|
+
type: 'payment-due' | 'rate-change' | 'insurance-expiry';
|
|
147
|
+
message: string;
|
|
148
|
+
date: string;
|
|
149
|
+
}>;
|
|
150
|
+
}
|
|
151
|
+
export interface RefinancingAnalysis {
|
|
152
|
+
currentLoanId: string;
|
|
153
|
+
/** Current total cost */
|
|
154
|
+
currentTotalCost: number;
|
|
155
|
+
/** Proposed new offer */
|
|
156
|
+
newOffer: LoanOffer;
|
|
157
|
+
/** New total cost */
|
|
158
|
+
newTotalCost: number;
|
|
159
|
+
/** Savings */
|
|
160
|
+
totalSavings: number;
|
|
161
|
+
/** Break-even month */
|
|
162
|
+
breakEvenMonth: number;
|
|
163
|
+
/** Monthly difference */
|
|
164
|
+
monthlyDifference: number;
|
|
165
|
+
/** Recommendation */
|
|
166
|
+
recommendation: 'strongly-recommended' | 'recommended' | 'neutral' | 'not-recommended';
|
|
167
|
+
/** Reasoning */
|
|
168
|
+
reasoning: string;
|
|
169
|
+
}
|
|
170
|
+
export type LeasingType = 'operating' | 'finance' | 'sale-leaseback';
|
|
171
|
+
export interface LeasingContract {
|
|
172
|
+
id: string;
|
|
173
|
+
type: LeasingType;
|
|
174
|
+
/** Asset description */
|
|
175
|
+
assetDescription: string;
|
|
176
|
+
assetValue: number;
|
|
177
|
+
/** Lessor */
|
|
178
|
+
lessor: string;
|
|
179
|
+
/** Monthly payment */
|
|
180
|
+
monthlyPayment: number;
|
|
181
|
+
currency: string;
|
|
182
|
+
/** Term (months) */
|
|
183
|
+
termMonths: number;
|
|
184
|
+
/** Start date */
|
|
185
|
+
startDate: string;
|
|
186
|
+
/** Residual value */
|
|
187
|
+
residualValue: number;
|
|
188
|
+
/** Buyout option */
|
|
189
|
+
buyoutOption: boolean;
|
|
190
|
+
buyoutPrice?: number;
|
|
191
|
+
/** Tax deductible % */
|
|
192
|
+
taxDeductiblePercent: number;
|
|
193
|
+
}
|
|
194
|
+
export type FactoringType = 'recourse' | 'non-recourse' | 'reverse' | 'maturity';
|
|
195
|
+
export interface FactoringInvoice {
|
|
196
|
+
id: string;
|
|
197
|
+
invoiceNumber: string;
|
|
198
|
+
debtor: string;
|
|
199
|
+
amount: number;
|
|
200
|
+
currency: string;
|
|
201
|
+
dueDate: string;
|
|
202
|
+
/** Advance rate (%) */
|
|
203
|
+
advanceRate: number;
|
|
204
|
+
/** Factor fee (%) */
|
|
205
|
+
factorFee: number;
|
|
206
|
+
/** Status */
|
|
207
|
+
status: 'pending' | 'approved' | 'funded' | 'collected' | 'defaulted';
|
|
208
|
+
/** Amount advanced */
|
|
209
|
+
advancedAmount: number;
|
|
210
|
+
}
|
|
211
|
+
export interface FactoringConfig {
|
|
212
|
+
type: FactoringType;
|
|
213
|
+
/** Factor company */
|
|
214
|
+
factorName: string;
|
|
215
|
+
/** Base advance rate */
|
|
216
|
+
baseAdvanceRate: number;
|
|
217
|
+
/** Fee structure */
|
|
218
|
+
feePercent: number;
|
|
219
|
+
/** Max exposure */
|
|
220
|
+
maxExposure: number;
|
|
221
|
+
currency: string;
|
|
222
|
+
}
|
|
223
|
+
export interface DebtItem {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
type: LoanType;
|
|
227
|
+
balance: number;
|
|
228
|
+
interestRate: number;
|
|
229
|
+
monthlyPayment: number;
|
|
230
|
+
remainingMonths: number;
|
|
231
|
+
currency: string;
|
|
232
|
+
}
|
|
233
|
+
export interface ConsolidationSimulation {
|
|
234
|
+
/** Current debts */
|
|
235
|
+
debts: DebtItem[];
|
|
236
|
+
/** Current total monthly */
|
|
237
|
+
currentMonthlyTotal: number;
|
|
238
|
+
/** Current total remaining cost */
|
|
239
|
+
currentTotalCost: number;
|
|
240
|
+
/** Proposed consolidated loan */
|
|
241
|
+
consolidatedAmount: number;
|
|
242
|
+
consolidatedRate: number;
|
|
243
|
+
consolidatedMonthlyPayment: number;
|
|
244
|
+
consolidatedTermMonths: number;
|
|
245
|
+
consolidatedTotalCost: number;
|
|
246
|
+
/** Savings */
|
|
247
|
+
monthlySavings: number;
|
|
248
|
+
totalSavings: number;
|
|
249
|
+
}
|
|
250
|
+
//# sourceMappingURL=loans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loans.d.ts","sourceRoot":"","sources":["../../src/finance/loans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,MAAM,MAAM,QAAQ,GAChB,UAAU,GACV,UAAU,GACV,UAAU,GACV,MAAM,GACN,SAAS,GACT,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,OAAO,CAAC;AAEZ,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,QAAQ,EAAE,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;IACzC,qBAAqB;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC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,GAAG,WAAW,CAAC;IACtE,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,qBAAqB;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,oBAAoB;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,4BAA4B;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iCAAiC;IACjC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,0BAA0B,EAAE,MAAM,CAAC;IACnC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Government Services UI (GOV-001) — GovServicesBrowser,
|
|
3
|
+
* ePUAP integration, tax filing, ZUS, public tenders,
|
|
4
|
+
* government calendar, compliance AI assistant.
|
|
5
|
+
*
|
|
6
|
+
* PRO-5.10 — 7 items
|
|
7
|
+
*
|
|
8
|
+
* @module @nice2dev/erp-adapter/gov/services
|
|
9
|
+
*/
|
|
10
|
+
export type GovServiceCategory = 'tax' | 'social-insurance' | 'company-registry' | 'permits' | 'real-estate' | 'health' | 'education' | 'transport' | 'environment' | 'justice' | 'citizenship' | 'other';
|
|
11
|
+
export interface GovService {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
category: GovServiceCategory;
|
|
16
|
+
country: string;
|
|
17
|
+
/** Online available */
|
|
18
|
+
online: boolean;
|
|
19
|
+
/** URL */
|
|
20
|
+
url?: string;
|
|
21
|
+
/** API available */
|
|
22
|
+
apiAvailable: boolean;
|
|
23
|
+
apiEndpoint?: string;
|
|
24
|
+
/** Required documents */
|
|
25
|
+
requiredDocuments: string[];
|
|
26
|
+
/** Fees */
|
|
27
|
+
fee?: number;
|
|
28
|
+
currency?: string;
|
|
29
|
+
/** Processing time (business days) */
|
|
30
|
+
processingDays?: {
|
|
31
|
+
min: number;
|
|
32
|
+
max: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export type EpuapDocumentStatus = 'draft' | 'sent' | 'received' | 'processing' | 'completed' | 'rejected';
|
|
36
|
+
export interface EpuapSubmission {
|
|
37
|
+
id: string;
|
|
38
|
+
/** Document type */
|
|
39
|
+
documentType: string;
|
|
40
|
+
/** Subject */
|
|
41
|
+
subject: string;
|
|
42
|
+
/** Status */
|
|
43
|
+
status: EpuapDocumentStatus;
|
|
44
|
+
/** Submission date */
|
|
45
|
+
submittedAt?: string;
|
|
46
|
+
/** Response date */
|
|
47
|
+
respondedAt?: string;
|
|
48
|
+
/** Office */
|
|
49
|
+
office: string;
|
|
50
|
+
/** Reference number */
|
|
51
|
+
referenceNumber?: string;
|
|
52
|
+
/** Attachments */
|
|
53
|
+
attachments: Array<{
|
|
54
|
+
name: string;
|
|
55
|
+
size: number;
|
|
56
|
+
mimeType: string;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
export interface EpuapConfig {
|
|
60
|
+
/** Profile zaufany (trusted profile) */
|
|
61
|
+
trustedProfileEnabled: boolean;
|
|
62
|
+
/** Authentication method */
|
|
63
|
+
authMethod: 'trusted-profile' | 'e-dowod' | 'bank-id';
|
|
64
|
+
/** ESP (Elektroniczna Skrzynka Podawcza) address */
|
|
65
|
+
espAddress: string;
|
|
66
|
+
}
|
|
67
|
+
export type TaxDeclarationType = 'PIT-36' | 'PIT-36L' | 'PIT-37' | 'PIT-38' | 'PIT-39' | 'CIT-8' | 'VAT-7' | 'VAT-7K' | 'VAT-EU' | 'JPK-V7M' | 'JPK-V7K' | 'custom';
|
|
68
|
+
export interface TaxFiling {
|
|
69
|
+
id: string;
|
|
70
|
+
type: TaxDeclarationType;
|
|
71
|
+
/** Tax period */
|
|
72
|
+
periodFrom: string;
|
|
73
|
+
periodTo: string;
|
|
74
|
+
/** Status */
|
|
75
|
+
status: 'draft' | 'calculated' | 'submitted' | 'accepted' | 'correction-needed' | 'corrected';
|
|
76
|
+
/** Amount due */
|
|
77
|
+
amountDue: number;
|
|
78
|
+
currency: string;
|
|
79
|
+
/** Deadline */
|
|
80
|
+
deadline: string;
|
|
81
|
+
/** Submission date */
|
|
82
|
+
submittedAt?: string;
|
|
83
|
+
/** UPO (Urzędowe Poświadczenie Odbioru) reference */
|
|
84
|
+
upoRef?: string;
|
|
85
|
+
}
|
|
86
|
+
export type ZusDeclarationType = 'DRA' | 'RCA' | 'RZA' | 'RSA' | 'ZUA' | 'ZZA' | 'ZCNA' | 'eZLA';
|
|
87
|
+
export interface ZusSubmission {
|
|
88
|
+
id: string;
|
|
89
|
+
type: ZusDeclarationType;
|
|
90
|
+
/** Period */
|
|
91
|
+
period: string;
|
|
92
|
+
/** Status */
|
|
93
|
+
status: 'draft' | 'sent' | 'accepted' | 'error';
|
|
94
|
+
/** Total contribution */
|
|
95
|
+
totalAmount: number;
|
|
96
|
+
currency: string;
|
|
97
|
+
/** Breakdown */
|
|
98
|
+
breakdown: {
|
|
99
|
+
social: number;
|
|
100
|
+
health: number;
|
|
101
|
+
laborFund: number;
|
|
102
|
+
fgsp?: number;
|
|
103
|
+
};
|
|
104
|
+
/** Deadline */
|
|
105
|
+
deadline: string;
|
|
106
|
+
}
|
|
107
|
+
export type TenderSource = 'BZP' | 'TED' | 'SAM-gov' | 'SIMAP' | 'national' | 'custom';
|
|
108
|
+
export interface PublicTender {
|
|
109
|
+
id: string;
|
|
110
|
+
source: TenderSource;
|
|
111
|
+
title: string;
|
|
112
|
+
description: string;
|
|
113
|
+
/** Contracting authority */
|
|
114
|
+
authority: string;
|
|
115
|
+
country: string;
|
|
116
|
+
/** Estimated value */
|
|
117
|
+
estimatedValue?: number;
|
|
118
|
+
currency: string;
|
|
119
|
+
/** Deadline */
|
|
120
|
+
submissionDeadline: string;
|
|
121
|
+
/** CPV codes */
|
|
122
|
+
cpvCodes: string[];
|
|
123
|
+
/** NUTS codes */
|
|
124
|
+
nutsCodes: string[];
|
|
125
|
+
/** Status */
|
|
126
|
+
status: 'open' | 'closed' | 'awarded' | 'cancelled';
|
|
127
|
+
/** URL */
|
|
128
|
+
documentUrl: string;
|
|
129
|
+
}
|
|
130
|
+
export interface GovObligationDeadline {
|
|
131
|
+
id: string;
|
|
132
|
+
title: string;
|
|
133
|
+
description: string;
|
|
134
|
+
type: 'tax' | 'social-insurance' | 'financial-report' | 'statistical' | 'corporate' | 'other';
|
|
135
|
+
/** Deadline date */
|
|
136
|
+
deadline: string;
|
|
137
|
+
/** Recurring */
|
|
138
|
+
recurring: 'monthly' | 'quarterly' | 'semi-annual' | 'annual' | 'one-time';
|
|
139
|
+
/** Country */
|
|
140
|
+
country: string;
|
|
141
|
+
/** Applies to */
|
|
142
|
+
appliesToLegalForms: string[];
|
|
143
|
+
/** Reminder days before */
|
|
144
|
+
reminderDays: number[];
|
|
145
|
+
/** Penalty for missing */
|
|
146
|
+
penalty?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface ComplianceAssistantConfig {
|
|
149
|
+
/** AI endpoint */
|
|
150
|
+
endpoint: string;
|
|
151
|
+
/** Company profile */
|
|
152
|
+
companyCountry: string;
|
|
153
|
+
companyLegalForm: string;
|
|
154
|
+
companyIndustry: string;
|
|
155
|
+
/** Employees count */
|
|
156
|
+
employeeCount: number;
|
|
157
|
+
/** Revenue range */
|
|
158
|
+
revenueRange?: string;
|
|
159
|
+
/** Languages */
|
|
160
|
+
languages: string[];
|
|
161
|
+
}
|
|
162
|
+
export interface ComplianceObligation {
|
|
163
|
+
id: string;
|
|
164
|
+
title: string;
|
|
165
|
+
authority: string;
|
|
166
|
+
/** Regulatory basis */
|
|
167
|
+
legalBasis: string;
|
|
168
|
+
/** Frequency */
|
|
169
|
+
frequency: string;
|
|
170
|
+
/** Next deadline */
|
|
171
|
+
nextDeadline: string;
|
|
172
|
+
/** Documents to prepare */
|
|
173
|
+
requiredDocuments: string[];
|
|
174
|
+
/** Estimated effort (hours) */
|
|
175
|
+
estimatedHours: number;
|
|
176
|
+
/** Priority */
|
|
177
|
+
priority: 'high' | 'medium' | 'low';
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/gov/services.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,MAAM,MAAM,kBAAkB,GAC1B,KAAK,GACL,kBAAkB,GAClB,kBAAkB,GAClB,SAAS,GACT,aAAa,GACb,QAAQ,GACR,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,GACT,aAAa,GACb,OAAO,CAAC;AAEZ,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;I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,CAAC;IACvB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD,MAAM,WAAW,yBAAyB;IACxC,kBAAkB;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,+BAA+B;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe;IACf,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;CACrC"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grants & Subsidies UI (GRANT-001) — Grant discovery, application builder,
|
|
3
|
+
* budget tracker, reporting engine, deadline tracker, program browser,
|
|
4
|
+
* eligibility checker.
|
|
5
|
+
*
|
|
6
|
+
* PRO-5.11 — 7 items
|
|
7
|
+
*
|
|
8
|
+
* @module @nice2dev/erp-adapter/grants/subsidies
|
|
9
|
+
*/
|
|
10
|
+
export interface GrantProgram {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
/** Granting institution */
|
|
14
|
+
institution: string;
|
|
15
|
+
country: string;
|
|
16
|
+
/** Region */
|
|
17
|
+
region?: string;
|
|
18
|
+
/** Amount range */
|
|
19
|
+
minAmount: number;
|
|
20
|
+
maxAmount: number;
|
|
21
|
+
currency: string;
|
|
22
|
+
/** Eligible industries */
|
|
23
|
+
industries: string[];
|
|
24
|
+
/** Eligible company sizes */
|
|
25
|
+
companySizes: Array<'micro' | 'small' | 'medium' | 'large'>;
|
|
26
|
+
/** Deadline */
|
|
27
|
+
applicationDeadline?: string;
|
|
28
|
+
/** Status */
|
|
29
|
+
status: 'open' | 'upcoming' | 'closed';
|
|
30
|
+
/** Co-financing rate (%) */
|
|
31
|
+
coFinancingRate: number;
|
|
32
|
+
/** URL */
|
|
33
|
+
detailsUrl: string;
|
|
34
|
+
/** AI match score (0-100) */
|
|
35
|
+
matchScore?: number;
|
|
36
|
+
/** Tags */
|
|
37
|
+
tags: string[];
|
|
38
|
+
}
|
|
39
|
+
export type GrantSectionType = 'company-info' | 'project-description' | 'budget' | 'timeline' | 'indicators' | 'team' | 'risk-analysis' | 'sustainability' | 'attachments' | 'custom';
|
|
40
|
+
export interface GrantApplicationSection {
|
|
41
|
+
id: string;
|
|
42
|
+
type: GrantSectionType;
|
|
43
|
+
title: string;
|
|
44
|
+
/** Content (rich text) */
|
|
45
|
+
content: string;
|
|
46
|
+
/** Max characters */
|
|
47
|
+
maxChars?: number;
|
|
48
|
+
/** Required */
|
|
49
|
+
required: boolean;
|
|
50
|
+
/** Completion (%) */
|
|
51
|
+
completionPercent: number;
|
|
52
|
+
}
|
|
53
|
+
export interface GrantApplication {
|
|
54
|
+
id: string;
|
|
55
|
+
programId: string;
|
|
56
|
+
/** Sections */
|
|
57
|
+
sections: GrantApplicationSection[];
|
|
58
|
+
/** Budget */
|
|
59
|
+
budget: {
|
|
60
|
+
totalEligible: number;
|
|
61
|
+
coFinancing: number;
|
|
62
|
+
ownContribution: number;
|
|
63
|
+
currency: string;
|
|
64
|
+
items: Array<{
|
|
65
|
+
category: string;
|
|
66
|
+
description: string;
|
|
67
|
+
amount: number;
|
|
68
|
+
eligible: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
71
|
+
/** Indicators */
|
|
72
|
+
indicators: Array<{
|
|
73
|
+
name: string;
|
|
74
|
+
unit: string;
|
|
75
|
+
baselineValue: number;
|
|
76
|
+
targetValue: number;
|
|
77
|
+
}>;
|
|
78
|
+
/** Timeline */
|
|
79
|
+
milestones: Array<{
|
|
80
|
+
name: string;
|
|
81
|
+
startDate: string;
|
|
82
|
+
endDate: string;
|
|
83
|
+
}>;
|
|
84
|
+
/** Status */
|
|
85
|
+
status: 'draft' | 'review' | 'submitted' | 'evaluation' | 'approved' | 'rejected' | 'signed';
|
|
86
|
+
}
|
|
87
|
+
export interface GrantBudgetLine {
|
|
88
|
+
id: string;
|
|
89
|
+
category: string;
|
|
90
|
+
description: string;
|
|
91
|
+
/** Planned (from application) */
|
|
92
|
+
planned: number;
|
|
93
|
+
/** Spent */
|
|
94
|
+
actual: number;
|
|
95
|
+
/** Eligible (verified) */
|
|
96
|
+
eligible: number;
|
|
97
|
+
currency: string;
|
|
98
|
+
/** Over/under budget */
|
|
99
|
+
variance: number;
|
|
100
|
+
/** Supporting documents */
|
|
101
|
+
documents: Array<{
|
|
102
|
+
name: string;
|
|
103
|
+
url: string;
|
|
104
|
+
verified: boolean;
|
|
105
|
+
}>;
|
|
106
|
+
}
|
|
107
|
+
export interface GrantBudgetSummary {
|
|
108
|
+
applicationId: string;
|
|
109
|
+
totalPlanned: number;
|
|
110
|
+
totalActual: number;
|
|
111
|
+
totalEligible: number;
|
|
112
|
+
currency: string;
|
|
113
|
+
/** Tranches */
|
|
114
|
+
tranches: Array<{
|
|
115
|
+
id: string;
|
|
116
|
+
amount: number;
|
|
117
|
+
status: 'pending' | 'requested' | 'approved' | 'disbursed';
|
|
118
|
+
requestedAt?: string;
|
|
119
|
+
disbursedAt?: string;
|
|
120
|
+
}>;
|
|
121
|
+
/** Audit trail */
|
|
122
|
+
auditEntries: Array<{
|
|
123
|
+
date: string;
|
|
124
|
+
action: string;
|
|
125
|
+
user: string;
|
|
126
|
+
details: string;
|
|
127
|
+
}>;
|
|
128
|
+
}
|
|
129
|
+
export type GrantReportType = 'progress' | 'interim' | 'final' | 'financial' | 'indicator' | 'custom';
|
|
130
|
+
export interface GrantReport {
|
|
131
|
+
id: string;
|
|
132
|
+
applicationId: string;
|
|
133
|
+
type: GrantReportType;
|
|
134
|
+
/** Period */
|
|
135
|
+
periodFrom: string;
|
|
136
|
+
periodTo: string;
|
|
137
|
+
/** Status */
|
|
138
|
+
status: 'draft' | 'submitted' | 'accepted' | 'revision-needed';
|
|
139
|
+
/** Sections */
|
|
140
|
+
sections: Array<{
|
|
141
|
+
title: string;
|
|
142
|
+
content: string;
|
|
143
|
+
}>;
|
|
144
|
+
/** Indicators progress */
|
|
145
|
+
indicatorProgress: Array<{
|
|
146
|
+
name: string;
|
|
147
|
+
target: number;
|
|
148
|
+
achieved: number;
|
|
149
|
+
unit: string;
|
|
150
|
+
}>;
|
|
151
|
+
/** Financial summary */
|
|
152
|
+
financialSummary: {
|
|
153
|
+
planned: number;
|
|
154
|
+
actual: number;
|
|
155
|
+
eligible: number;
|
|
156
|
+
currency: string;
|
|
157
|
+
};
|
|
158
|
+
/** Export format */
|
|
159
|
+
exportFormats: Array<'pdf' | 'docx' | 'xlsx' | 'xml'>;
|
|
160
|
+
}
|
|
161
|
+
export interface GrantDeadline {
|
|
162
|
+
id: string;
|
|
163
|
+
applicationId?: string;
|
|
164
|
+
programId?: string;
|
|
165
|
+
title: string;
|
|
166
|
+
type: 'application' | 'milestone' | 'report' | 'tranche-request' | 'audit' | 'custom';
|
|
167
|
+
date: string;
|
|
168
|
+
/** Reminder days */
|
|
169
|
+
reminderDays: number[];
|
|
170
|
+
/** Status */
|
|
171
|
+
status: 'upcoming' | 'due-soon' | 'overdue' | 'completed';
|
|
172
|
+
/** Notes */
|
|
173
|
+
notes?: string;
|
|
174
|
+
}
|
|
175
|
+
export type GrantSource = 'PARP' | 'NCBiR' | 'FNP' | 'Horizon-Europe' | 'SBIR' | 'STTR' | 'Innovate-UK' | 'BMWK' | 'BPIfrance' | 'EIC' | 'Interreg' | 'national' | 'regional' | 'custom';
|
|
176
|
+
export interface GrantProgramBrowserConfig {
|
|
177
|
+
/** Sources to aggregate */
|
|
178
|
+
sources: GrantSource[];
|
|
179
|
+
/** Preferred countries */
|
|
180
|
+
countries: string[];
|
|
181
|
+
/** Industry filter */
|
|
182
|
+
industries?: string[];
|
|
183
|
+
/** Min amount */
|
|
184
|
+
minAmount?: number;
|
|
185
|
+
/** Max amount */
|
|
186
|
+
maxAmount?: number;
|
|
187
|
+
currency: string;
|
|
188
|
+
/** Show closed programs */
|
|
189
|
+
showClosed: boolean;
|
|
190
|
+
}
|
|
191
|
+
export interface EligibilityCheckResult {
|
|
192
|
+
programId: string;
|
|
193
|
+
/** Overall eligible */
|
|
194
|
+
eligible: boolean;
|
|
195
|
+
/** Per-criterion */
|
|
196
|
+
criteria: Array<{
|
|
197
|
+
name: string;
|
|
198
|
+
met: boolean;
|
|
199
|
+
details: string;
|
|
200
|
+
/** Documents needed */
|
|
201
|
+
requiredDocuments?: string[];
|
|
202
|
+
}>;
|
|
203
|
+
/** Score (0-100) */
|
|
204
|
+
score: number;
|
|
205
|
+
/** Recommendations */
|
|
206
|
+
recommendations: string[];
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=subsidies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subsidies.d.ts","sourceRoot":"","sources":["../../src/grants/subsidies.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB;IAC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AC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,UAAU,EAAE,OAAO,CAAC;CACrB;AAMD,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,oBAAoB;IACpB,QAAQ,EAAE,KAAK,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,OAAO,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,uBAAuB;QACvB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC,CAAC;IACH,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,4 +28,10 @@ export type { PendingMutation, OptimisticListener } from './ErpOptimisticStore';
|
|
|
28
28
|
export { ErpOfflineQueue } from './ErpOfflineQueue';
|
|
29
29
|
export type { ErpOfflineQueueConfig, QueueEntry, SyncResult } from './ErpOfflineQueue';
|
|
30
30
|
export { allControlRegistries, audioControlRegistry, graphicControlRegistry, threeControlRegistry, gamificationControlRegistry, businessControlRegistry, authControlRegistry, socialControlRegistry, } from './registries';
|
|
31
|
+
export * from './business/formation';
|
|
32
|
+
export * from './finance/loans';
|
|
33
|
+
export * from './life/travel';
|
|
34
|
+
export * from './gov/services';
|
|
35
|
+
export * from './grants/subsidies';
|
|
36
|
+
export * from './certification/hub';
|
|
31
37
|
//# sourceMappingURL=index.d.ts.map
|