@tantainnovative/ndpr-toolkit 3.4.0 → 3.5.0
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/CHANGELOG.md +25 -0
- package/README.md +80 -38
- package/dist/adapters.d.mts +34 -25
- package/dist/adapters.d.ts +34 -25
- package/dist/breach.d.mts +803 -44
- package/dist/breach.d.ts +803 -44
- package/dist/breach.js +2 -1
- package/dist/breach.mjs +2 -1
- package/dist/{chunk-2WH4DLV5.js → chunk-3EGQWLJ6.js} +3 -3
- package/dist/chunk-B4Z5MBUC.mjs +2 -0
- package/dist/{chunk-LSCMXAPY.mjs → chunk-CKGJK4D7.mjs} +3 -3
- package/dist/{chunk-XSEZDQLB.js → chunk-CKJAECGV.js} +2 -2
- package/dist/{chunk-AHSMDPG5.js → chunk-CPK5D5FY.js} +2 -2
- package/dist/{chunk-DCJK5OZT.mjs → chunk-CWHBCQGT.mjs} +2 -2
- package/dist/{chunk-KSERBMXW.mjs → chunk-F5TXUA4O.mjs} +3 -3
- package/dist/{chunk-BN77GP4W.mjs → chunk-GN5C32JB.mjs} +2 -2
- package/dist/{chunk-ZLSWOFAY.mjs → chunk-GRLIPT5V.mjs} +2 -2
- package/dist/{chunk-DUY6F3GT.mjs → chunk-H3EYBSVP.mjs} +3 -3
- package/dist/{chunk-MG73MOZC.mjs → chunk-I557S566.mjs} +2 -2
- package/dist/{chunk-QVULSG6J.mjs → chunk-ID2NYIVE.mjs} +3 -3
- package/dist/chunk-J5WCPZLW.js +2 -0
- package/dist/{chunk-4R42ZNO7.mjs → chunk-JFFOPHU3.mjs} +57 -57
- package/dist/{chunk-P2YV6DR3.js → chunk-LIM64IV2.js} +3 -3
- package/dist/chunk-LU7PKE7Y.mjs +2 -0
- package/dist/{chunk-HQSU7LGM.js → chunk-LWXZMKC2.js} +4 -4
- package/dist/{chunk-XMBSJJ5U.js → chunk-ORFC66EA.js} +3 -3
- package/dist/{chunk-VTITKWGX.mjs → chunk-QSVVAZVT.mjs} +2 -2
- package/dist/chunk-SCWNM4PC.mjs +2 -0
- package/dist/{chunk-EHAZIKDX.js → chunk-SKKOMFXH.js} +2 -2
- package/dist/{chunk-WH6ZMUOS.mjs → chunk-TUNQUVHU.mjs} +2 -2
- package/dist/chunk-TV4U6AIS.js +2 -0
- package/dist/{chunk-ZYLDLGFL.js → chunk-VIQUXWJC.js} +2 -2
- package/dist/{chunk-SUEGUY35.js → chunk-XIM7KMD6.js} +2 -2
- package/dist/{chunk-P6QAFBCV.js → chunk-XNSZ7KUH.js} +2 -2
- package/dist/{chunk-RNTNHVKZ.js → chunk-YPKUHSK4.js} +2 -2
- package/dist/{chunk-UFPSUO52.js → chunk-Z73T6MWY.js} +57 -57
- package/dist/consent.d.mts +648 -84
- package/dist/consent.d.ts +648 -84
- package/dist/consent.js +2 -1
- package/dist/consent.mjs +2 -1
- package/dist/core.d.mts +2049 -23
- package/dist/core.d.ts +2049 -23
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/cross-border.d.mts +470 -99
- package/dist/cross-border.d.ts +470 -99
- package/dist/cross-border.js +1 -0
- package/dist/cross-border.mjs +1 -0
- package/dist/dpia.d.mts +591 -37
- package/dist/dpia.d.ts +591 -37
- package/dist/dpia.js +1 -0
- package/dist/dpia.mjs +1 -0
- package/dist/dsr.d.mts +654 -37
- package/dist/dsr.d.ts +654 -37
- package/dist/dsr.js +2 -1
- package/dist/dsr.mjs +2 -1
- package/dist/hooks.d.mts +2174 -30
- package/dist/hooks.d.ts +2174 -30
- package/dist/hooks.js +2 -1
- package/dist/hooks.mjs +2 -1
- package/dist/index.d.mts +4428 -43
- package/dist/index.d.ts +4428 -43
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/dist/lawful-basis.d.mts +368 -32
- package/dist/lawful-basis.d.ts +368 -32
- package/dist/lawful-basis.js +1 -0
- package/dist/lawful-basis.mjs +1 -0
- package/dist/policy.d.mts +1178 -83
- package/dist/policy.d.ts +1178 -83
- package/dist/policy.js +2 -1
- package/dist/policy.mjs +2 -1
- package/dist/presets.d.mts +1020 -114
- package/dist/presets.d.ts +1020 -114
- package/dist/presets.js +2 -1
- package/dist/presets.mjs +2 -1
- package/dist/ropa.d.mts +396 -31
- package/dist/ropa.d.ts +396 -31
- package/dist/ropa.js +2 -1
- package/dist/ropa.mjs +2 -1
- package/dist/server.d.mts +2133 -24
- package/dist/server.d.ts +2133 -24
- package/dist/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/dist/unstyled.d.mts +523 -55
- package/dist/unstyled.d.ts +523 -55
- package/dist/unstyled.js +2 -1
- package/dist/unstyled.mjs +2 -1
- package/package.json +3 -3
- package/dist/BreachReportForm-DpRrBoxU.d.ts +0 -158
- package/dist/BreachReportForm-yJ2Zl6gz.d.mts +0 -158
- package/dist/ConsentBanner-F5ayys5K.d.mts +0 -156
- package/dist/ConsentBanner-VqIPophc.d.ts +0 -156
- package/dist/ConsentManager-C7I3PDe8.d.mts +0 -105
- package/dist/ConsentManager-CQ2IZtUU.d.ts +0 -105
- package/dist/CrossBorderTransferManager-D5Lc0e46.d.ts +0 -90
- package/dist/CrossBorderTransferManager-DkZhv9vD.d.mts +0 -90
- package/dist/DPIAQuestionnaire-VXBoWFMC.d.ts +0 -123
- package/dist/DPIAQuestionnaire-jkt1Veb6.d.mts +0 -123
- package/dist/DSRRequestForm-D8rPTNmU.d.ts +0 -146
- package/dist/DSRRequestForm-DRouEr9j.d.mts +0 -146
- package/dist/DSRTracker-Bl__d4df.d.ts +0 -163
- package/dist/DSRTracker-CSVDfgQQ.d.mts +0 -163
- package/dist/LawfulBasisTracker-CBqOxX1D.d.mts +0 -85
- package/dist/LawfulBasisTracker-Cg30NbDA.d.ts +0 -85
- package/dist/NDPRDashboard-CLJpEg0X.d.mts +0 -44
- package/dist/NDPRDashboard-DDWNd2Ah.d.ts +0 -44
- package/dist/NDPRProvider-DYFb8xEl.d.ts +0 -68
- package/dist/NDPRProvider-U3QNu6MA.d.mts +0 -68
- package/dist/PolicyExporter-Bgi6nz82.d.mts +0 -291
- package/dist/PolicyExporter-BnvuFncj.d.ts +0 -291
- package/dist/ROPAManager-BS4eB8Hw.d.mts +0 -79
- package/dist/ROPAManager-qxTrXLkD.d.ts +0 -79
- package/dist/RegulatoryReportGenerator-BUYgzTTT.d.ts +0 -282
- package/dist/RegulatoryReportGenerator-DwcHcEFp.d.mts +0 -282
- package/dist/StepIndicator-CgrlokSV.d.ts +0 -171
- package/dist/StepIndicator-W8S_QjgO.d.mts +0 -171
- package/dist/breach-B_-6lDqS.d.mts +0 -17
- package/dist/breach-CzXqSsaY.d.ts +0 -17
- package/dist/breach-Eu9byel8.d.mts +0 -185
- package/dist/breach-Eu9byel8.d.ts +0 -185
- package/dist/chunk-5X32J5IA.mjs +0 -2
- package/dist/chunk-7D2OIPHH.mjs +0 -2
- package/dist/chunk-JKKRPS4P.js +0 -2
- package/dist/chunk-NCOZB2WU.mjs +0 -2
- package/dist/chunk-RGNP45VR.js +0 -2
- package/dist/compliance-score-racQe_E_.d.mts +0 -115
- package/dist/compliance-score-racQe_E_.d.ts +0 -115
- package/dist/consent-CmVzqZUk.d.mts +0 -99
- package/dist/consent-CmVzqZUk.d.ts +0 -99
- package/dist/consent-audit-BdByjYlM.d.mts +0 -65
- package/dist/consent-audit-DhbfMR0n.d.ts +0 -65
- package/dist/cross-border-BBi9rZyO.d.mts +0 -54
- package/dist/cross-border-Dy-U9Hu6.d.ts +0 -54
- package/dist/cross-border-UyT00llA.d.mts +0 -141
- package/dist/cross-border-UyT00llA.d.ts +0 -141
- package/dist/docx-BxKascXN.d.ts +0 -64
- package/dist/docx-CV7Vsry_.d.mts +0 -64
- package/dist/dpia-D82hUrJe.d.ts +0 -15
- package/dist/dpia-DQDFw2_l.d.mts +0 -15
- package/dist/dpia-c9GiiOq0.d.mts +0 -137
- package/dist/dpia-c9GiiOq0.d.ts +0 -137
- package/dist/dsr-CIx5sd7e.d.ts +0 -14
- package/dist/dsr-XZ_HqTlA.d.mts +0 -14
- package/dist/dsr-yKbqX531.d.mts +0 -128
- package/dist/dsr-yKbqX531.d.ts +0 -128
- package/dist/lawful-basis-BEyI0kGg.d.ts +0 -57
- package/dist/lawful-basis-C2eGaoHM.d.mts +0 -57
- package/dist/lawful-basis-Cv1VmDLn.d.mts +0 -112
- package/dist/lawful-basis-Cv1VmDLn.d.ts +0 -112
- package/dist/locale-CxJx2tzn.d.mts +0 -25
- package/dist/locale-DSkrtf-c.d.ts +0 -25
- package/dist/policy-engine-CCUCud2T.d.ts +0 -154
- package/dist/policy-engine-fYSqEqSW.d.mts +0 -154
- package/dist/policy-sections-BYx6fEFk.d.ts +0 -56
- package/dist/policy-sections-Dm97Nq8m.d.mts +0 -56
- package/dist/policy-templates-DhLwq4R-.d.ts +0 -43
- package/dist/policy-templates-DwYl2329.d.mts +0 -43
- package/dist/privacy-Ca6te9Ir.d.mts +0 -138
- package/dist/privacy-Ca6te9Ir.d.ts +0 -138
- package/dist/ropa-BDTM06tr.d.ts +0 -152
- package/dist/ropa-CFHuT7jE.d.mts +0 -152
- package/dist/ropa-CyynscU6.d.ts +0 -51
- package/dist/ropa-NIgxd8uP.d.mts +0 -51
- package/dist/sanitize-CxxwKxAx.d.mts +0 -94
- package/dist/sanitize-CxxwKxAx.d.ts +0 -94
- package/dist/styling-BMDGQDgS.d.mts +0 -64
- package/dist/styling-BaoQtV06.d.ts +0 -64
- package/dist/types-DK2CoKOC.d.mts +0 -10
- package/dist/types-DK2CoKOC.d.ts +0 -10
- package/dist/useAdaptivePolicyWizard-BnjW4OR4.d.mts +0 -52
- package/dist/useAdaptivePolicyWizard-sb3m4-Zk.d.ts +0 -52
- package/dist/useBreach-CPr86Yan.d.mts +0 -115
- package/dist/useBreach-DkVXvtJK.d.ts +0 -115
- package/dist/useConsent-DCNkIJHR.d.mts +0 -75
- package/dist/useConsent-dOcELSfX.d.ts +0 -75
- package/dist/useCrossBorderTransfer-DixjLjN1.d.mts +0 -78
- package/dist/useCrossBorderTransfer-DvSq06lv.d.ts +0 -78
- package/dist/useDPIA-B6180UQn.d.mts +0 -109
- package/dist/useDPIA-CTqbNbww.d.ts +0 -109
- package/dist/useDSR-WvHk8_iu.d.mts +0 -85
- package/dist/useDSR-wH4H6hSM.d.ts +0 -85
- package/dist/useDefaultPrivacyPolicy-Cs2WQSYQ.d.mts +0 -162
- package/dist/useDefaultPrivacyPolicy-DkOqMg2e.d.ts +0 -162
- package/dist/useLawfulBasis-CKJ-kw84.d.mts +0 -79
- package/dist/useLawfulBasis-DFTmu1ca.d.ts +0 -79
- package/dist/useROPA-BSSU1rfx.d.ts +0 -76
- package/dist/useROPA-C2hjaBTz.d.mts +0 -76
package/dist/ropa-BDTM06tr.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { L as LawfulBasis } from './lawful-basis-Cv1VmDLn.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Record of Processing Activities (ROPA) types aligned with NDPA 2023
|
|
5
|
-
* Data controllers must maintain comprehensive records of all processing activities
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Represents a single processing record in the ROPA
|
|
10
|
-
*/
|
|
11
|
-
interface ProcessingRecord {
|
|
12
|
-
/** Unique identifier */
|
|
13
|
-
id: string;
|
|
14
|
-
/** Name of the processing activity */
|
|
15
|
-
name: string;
|
|
16
|
-
/** Detailed description of the processing */
|
|
17
|
-
description: string;
|
|
18
|
-
/** Data controller details */
|
|
19
|
-
controllerDetails: {
|
|
20
|
-
name: string;
|
|
21
|
-
contact: string;
|
|
22
|
-
address: string;
|
|
23
|
-
registrationNumber?: string;
|
|
24
|
-
dpoContact?: string;
|
|
25
|
-
};
|
|
26
|
-
/** Joint controller details (if applicable) */
|
|
27
|
-
jointControllerDetails?: {
|
|
28
|
-
name: string;
|
|
29
|
-
contact: string;
|
|
30
|
-
address: string;
|
|
31
|
-
responsibilities: string;
|
|
32
|
-
};
|
|
33
|
-
/** Data processor details (if processing is outsourced) */
|
|
34
|
-
processorDetails?: {
|
|
35
|
-
name: string;
|
|
36
|
-
contact: string;
|
|
37
|
-
address: string;
|
|
38
|
-
contractReference?: string;
|
|
39
|
-
};
|
|
40
|
-
/** Lawful basis for the processing */
|
|
41
|
-
lawfulBasis: LawfulBasis;
|
|
42
|
-
/** Justification for the chosen lawful basis */
|
|
43
|
-
lawfulBasisJustification: string;
|
|
44
|
-
/** Purposes of the processing */
|
|
45
|
-
purposes: string[];
|
|
46
|
-
/** Categories of personal data processed */
|
|
47
|
-
dataCategories: string[];
|
|
48
|
-
/** Categories of sensitive personal data (if any) */
|
|
49
|
-
sensitiveDataCategories?: string[];
|
|
50
|
-
/** Categories of data subjects */
|
|
51
|
-
dataSubjectCategories: string[];
|
|
52
|
-
/** Recipients or categories of recipients */
|
|
53
|
-
recipients: string[];
|
|
54
|
-
/** Cross-border transfer details */
|
|
55
|
-
crossBorderTransfers?: Array<{
|
|
56
|
-
destinationCountry: string;
|
|
57
|
-
countryCode?: string;
|
|
58
|
-
safeguards: string;
|
|
59
|
-
transferMechanism: string;
|
|
60
|
-
}>;
|
|
61
|
-
/** Data retention period */
|
|
62
|
-
retentionPeriod: string;
|
|
63
|
-
/** Justification for the retention period */
|
|
64
|
-
retentionJustification?: string;
|
|
65
|
-
/** Technical and organizational security measures */
|
|
66
|
-
securityMeasures: string[];
|
|
67
|
-
/** Data source (directly from data subject or from third party) */
|
|
68
|
-
dataSource: 'data_subject' | 'third_party' | 'public_source' | 'other';
|
|
69
|
-
/** Third-party source details (if dataSource is 'third_party') */
|
|
70
|
-
thirdPartySourceDetails?: string;
|
|
71
|
-
/** Whether a DPIA is required for this processing */
|
|
72
|
-
dpiaRequired: boolean;
|
|
73
|
-
/** Reference to the DPIA (if conducted) */
|
|
74
|
-
dpiaReference?: string;
|
|
75
|
-
/** Whether automated decision-making is involved */
|
|
76
|
-
automatedDecisionMaking: boolean;
|
|
77
|
-
/** Details of automated decision-making (if applicable) */
|
|
78
|
-
automatedDecisionMakingDetails?: string;
|
|
79
|
-
/** Status of the processing record */
|
|
80
|
-
status: 'active' | 'inactive' | 'archived';
|
|
81
|
-
/** Department or business unit responsible */
|
|
82
|
-
department?: string;
|
|
83
|
-
/** System or application used for processing */
|
|
84
|
-
systemsUsed?: string[];
|
|
85
|
-
/** Timestamp when the record was created */
|
|
86
|
-
createdAt: number;
|
|
87
|
-
/** Timestamp when the record was last updated */
|
|
88
|
-
updatedAt: number;
|
|
89
|
-
/** Timestamp when the record was last reviewed */
|
|
90
|
-
lastReviewedAt?: number;
|
|
91
|
-
/** Next review date */
|
|
92
|
-
nextReviewDate?: number;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Represents a complete Record of Processing Activities
|
|
96
|
-
*/
|
|
97
|
-
interface RecordOfProcessingActivities {
|
|
98
|
-
/** Unique identifier */
|
|
99
|
-
id: string;
|
|
100
|
-
/** Organization name */
|
|
101
|
-
organizationName: string;
|
|
102
|
-
/** Organization contact information */
|
|
103
|
-
organizationContact: string;
|
|
104
|
-
/** Organization address */
|
|
105
|
-
organizationAddress: string;
|
|
106
|
-
/** Data Protection Officer details */
|
|
107
|
-
dpoDetails?: {
|
|
108
|
-
name: string;
|
|
109
|
-
email: string;
|
|
110
|
-
phone?: string;
|
|
111
|
-
};
|
|
112
|
-
/** NDPC registration number */
|
|
113
|
-
ndpcRegistrationNumber?: string;
|
|
114
|
-
/** All processing records */
|
|
115
|
-
records: ProcessingRecord[];
|
|
116
|
-
/** Timestamp when the ROPA was last updated */
|
|
117
|
-
lastUpdated: number;
|
|
118
|
-
/** Version of the ROPA */
|
|
119
|
-
version: string;
|
|
120
|
-
/** Export format options */
|
|
121
|
-
exportFormats?: ('pdf' | 'csv' | 'json' | 'xlsx')[];
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Summary statistics for the ROPA
|
|
125
|
-
*/
|
|
126
|
-
interface ROPASummary {
|
|
127
|
-
/** Total number of processing records */
|
|
128
|
-
totalRecords: number;
|
|
129
|
-
/** Active processing records */
|
|
130
|
-
activeRecords: number;
|
|
131
|
-
/** Records by lawful basis */
|
|
132
|
-
byLawfulBasis: Record<LawfulBasis, number>;
|
|
133
|
-
/** Records involving sensitive data */
|
|
134
|
-
sensitiveDataRecords: number;
|
|
135
|
-
/** Records involving cross-border transfers */
|
|
136
|
-
crossBorderRecords: number;
|
|
137
|
-
/** Records requiring DPIA */
|
|
138
|
-
dpiaRequiredRecords: number;
|
|
139
|
-
/** Records involving automated decision-making */
|
|
140
|
-
automatedDecisionRecords: number;
|
|
141
|
-
/** Records due for review */
|
|
142
|
-
recordsDueForReview: ProcessingRecord[];
|
|
143
|
-
/** Departments with most processing activities */
|
|
144
|
-
topDepartments: Array<{
|
|
145
|
-
department: string;
|
|
146
|
-
count: number;
|
|
147
|
-
}>;
|
|
148
|
-
/** Last updated timestamp */
|
|
149
|
-
lastUpdated: number;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type { ProcessingRecord as P, ROPASummary as R, RecordOfProcessingActivities as a };
|
package/dist/ropa-CFHuT7jE.d.mts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { L as LawfulBasis } from './lawful-basis-Cv1VmDLn.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Record of Processing Activities (ROPA) types aligned with NDPA 2023
|
|
5
|
-
* Data controllers must maintain comprehensive records of all processing activities
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Represents a single processing record in the ROPA
|
|
10
|
-
*/
|
|
11
|
-
interface ProcessingRecord {
|
|
12
|
-
/** Unique identifier */
|
|
13
|
-
id: string;
|
|
14
|
-
/** Name of the processing activity */
|
|
15
|
-
name: string;
|
|
16
|
-
/** Detailed description of the processing */
|
|
17
|
-
description: string;
|
|
18
|
-
/** Data controller details */
|
|
19
|
-
controllerDetails: {
|
|
20
|
-
name: string;
|
|
21
|
-
contact: string;
|
|
22
|
-
address: string;
|
|
23
|
-
registrationNumber?: string;
|
|
24
|
-
dpoContact?: string;
|
|
25
|
-
};
|
|
26
|
-
/** Joint controller details (if applicable) */
|
|
27
|
-
jointControllerDetails?: {
|
|
28
|
-
name: string;
|
|
29
|
-
contact: string;
|
|
30
|
-
address: string;
|
|
31
|
-
responsibilities: string;
|
|
32
|
-
};
|
|
33
|
-
/** Data processor details (if processing is outsourced) */
|
|
34
|
-
processorDetails?: {
|
|
35
|
-
name: string;
|
|
36
|
-
contact: string;
|
|
37
|
-
address: string;
|
|
38
|
-
contractReference?: string;
|
|
39
|
-
};
|
|
40
|
-
/** Lawful basis for the processing */
|
|
41
|
-
lawfulBasis: LawfulBasis;
|
|
42
|
-
/** Justification for the chosen lawful basis */
|
|
43
|
-
lawfulBasisJustification: string;
|
|
44
|
-
/** Purposes of the processing */
|
|
45
|
-
purposes: string[];
|
|
46
|
-
/** Categories of personal data processed */
|
|
47
|
-
dataCategories: string[];
|
|
48
|
-
/** Categories of sensitive personal data (if any) */
|
|
49
|
-
sensitiveDataCategories?: string[];
|
|
50
|
-
/** Categories of data subjects */
|
|
51
|
-
dataSubjectCategories: string[];
|
|
52
|
-
/** Recipients or categories of recipients */
|
|
53
|
-
recipients: string[];
|
|
54
|
-
/** Cross-border transfer details */
|
|
55
|
-
crossBorderTransfers?: Array<{
|
|
56
|
-
destinationCountry: string;
|
|
57
|
-
countryCode?: string;
|
|
58
|
-
safeguards: string;
|
|
59
|
-
transferMechanism: string;
|
|
60
|
-
}>;
|
|
61
|
-
/** Data retention period */
|
|
62
|
-
retentionPeriod: string;
|
|
63
|
-
/** Justification for the retention period */
|
|
64
|
-
retentionJustification?: string;
|
|
65
|
-
/** Technical and organizational security measures */
|
|
66
|
-
securityMeasures: string[];
|
|
67
|
-
/** Data source (directly from data subject or from third party) */
|
|
68
|
-
dataSource: 'data_subject' | 'third_party' | 'public_source' | 'other';
|
|
69
|
-
/** Third-party source details (if dataSource is 'third_party') */
|
|
70
|
-
thirdPartySourceDetails?: string;
|
|
71
|
-
/** Whether a DPIA is required for this processing */
|
|
72
|
-
dpiaRequired: boolean;
|
|
73
|
-
/** Reference to the DPIA (if conducted) */
|
|
74
|
-
dpiaReference?: string;
|
|
75
|
-
/** Whether automated decision-making is involved */
|
|
76
|
-
automatedDecisionMaking: boolean;
|
|
77
|
-
/** Details of automated decision-making (if applicable) */
|
|
78
|
-
automatedDecisionMakingDetails?: string;
|
|
79
|
-
/** Status of the processing record */
|
|
80
|
-
status: 'active' | 'inactive' | 'archived';
|
|
81
|
-
/** Department or business unit responsible */
|
|
82
|
-
department?: string;
|
|
83
|
-
/** System or application used for processing */
|
|
84
|
-
systemsUsed?: string[];
|
|
85
|
-
/** Timestamp when the record was created */
|
|
86
|
-
createdAt: number;
|
|
87
|
-
/** Timestamp when the record was last updated */
|
|
88
|
-
updatedAt: number;
|
|
89
|
-
/** Timestamp when the record was last reviewed */
|
|
90
|
-
lastReviewedAt?: number;
|
|
91
|
-
/** Next review date */
|
|
92
|
-
nextReviewDate?: number;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Represents a complete Record of Processing Activities
|
|
96
|
-
*/
|
|
97
|
-
interface RecordOfProcessingActivities {
|
|
98
|
-
/** Unique identifier */
|
|
99
|
-
id: string;
|
|
100
|
-
/** Organization name */
|
|
101
|
-
organizationName: string;
|
|
102
|
-
/** Organization contact information */
|
|
103
|
-
organizationContact: string;
|
|
104
|
-
/** Organization address */
|
|
105
|
-
organizationAddress: string;
|
|
106
|
-
/** Data Protection Officer details */
|
|
107
|
-
dpoDetails?: {
|
|
108
|
-
name: string;
|
|
109
|
-
email: string;
|
|
110
|
-
phone?: string;
|
|
111
|
-
};
|
|
112
|
-
/** NDPC registration number */
|
|
113
|
-
ndpcRegistrationNumber?: string;
|
|
114
|
-
/** All processing records */
|
|
115
|
-
records: ProcessingRecord[];
|
|
116
|
-
/** Timestamp when the ROPA was last updated */
|
|
117
|
-
lastUpdated: number;
|
|
118
|
-
/** Version of the ROPA */
|
|
119
|
-
version: string;
|
|
120
|
-
/** Export format options */
|
|
121
|
-
exportFormats?: ('pdf' | 'csv' | 'json' | 'xlsx')[];
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Summary statistics for the ROPA
|
|
125
|
-
*/
|
|
126
|
-
interface ROPASummary {
|
|
127
|
-
/** Total number of processing records */
|
|
128
|
-
totalRecords: number;
|
|
129
|
-
/** Active processing records */
|
|
130
|
-
activeRecords: number;
|
|
131
|
-
/** Records by lawful basis */
|
|
132
|
-
byLawfulBasis: Record<LawfulBasis, number>;
|
|
133
|
-
/** Records involving sensitive data */
|
|
134
|
-
sensitiveDataRecords: number;
|
|
135
|
-
/** Records involving cross-border transfers */
|
|
136
|
-
crossBorderRecords: number;
|
|
137
|
-
/** Records requiring DPIA */
|
|
138
|
-
dpiaRequiredRecords: number;
|
|
139
|
-
/** Records involving automated decision-making */
|
|
140
|
-
automatedDecisionRecords: number;
|
|
141
|
-
/** Records due for review */
|
|
142
|
-
recordsDueForReview: ProcessingRecord[];
|
|
143
|
-
/** Departments with most processing activities */
|
|
144
|
-
topDepartments: Array<{
|
|
145
|
-
department: string;
|
|
146
|
-
count: number;
|
|
147
|
-
}>;
|
|
148
|
-
/** Last updated timestamp */
|
|
149
|
-
lastUpdated: number;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type { ProcessingRecord as P, ROPASummary as R, RecordOfProcessingActivities as a };
|
package/dist/ropa-CyynscU6.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { a as RecordOfProcessingActivities, R as ROPASummary, P as ProcessingRecord } from './ropa-BDTM06tr.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Compliance gap found in a processing record
|
|
5
|
-
*/
|
|
6
|
-
interface ROPAComplianceGap {
|
|
7
|
-
recordId: string;
|
|
8
|
-
recordName: string;
|
|
9
|
-
gaps: string[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Validation result for a processing record
|
|
13
|
-
*/
|
|
14
|
-
interface ROPAValidationResult {
|
|
15
|
-
valid: boolean;
|
|
16
|
-
errors: string[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Validates a processing record to ensure all required fields are present
|
|
20
|
-
* and properly filled per NDPA 2023 requirements.
|
|
21
|
-
*
|
|
22
|
-
* @param record - The processing record to validate
|
|
23
|
-
* @returns Validation result with any errors found
|
|
24
|
-
*/
|
|
25
|
-
declare function validateProcessingRecord(record: ProcessingRecord): ROPAValidationResult;
|
|
26
|
-
/**
|
|
27
|
-
* Generates a summary of the Record of Processing Activities.
|
|
28
|
-
* Provides statistics and identifies records that are due for review.
|
|
29
|
-
*
|
|
30
|
-
* @param ropa - The full Record of Processing Activities
|
|
31
|
-
* @returns Summary statistics for the ROPA
|
|
32
|
-
*/
|
|
33
|
-
declare function generateROPASummary(ropa: RecordOfProcessingActivities): ROPASummary;
|
|
34
|
-
/**
|
|
35
|
-
* Exports the Record of Processing Activities to a CSV string.
|
|
36
|
-
* The CSV includes all key fields from each processing record.
|
|
37
|
-
*
|
|
38
|
-
* @param ropa - The full Record of Processing Activities
|
|
39
|
-
* @returns CSV-formatted string
|
|
40
|
-
*/
|
|
41
|
-
declare function exportROPAToCSV(ropa: RecordOfProcessingActivities): string;
|
|
42
|
-
/**
|
|
43
|
-
* Identifies compliance gaps in the Record of Processing Activities.
|
|
44
|
-
* Finds records that are missing required information per NDPA 2023.
|
|
45
|
-
*
|
|
46
|
-
* @param ropa - The full Record of Processing Activities
|
|
47
|
-
* @returns Array of compliance gaps grouped by record
|
|
48
|
-
*/
|
|
49
|
-
declare function identifyComplianceGaps(ropa: RecordOfProcessingActivities): ROPAComplianceGap[];
|
|
50
|
-
|
|
51
|
-
export { type ROPAComplianceGap as R, type ROPAValidationResult as a, exportROPAToCSV as e, generateROPASummary as g, identifyComplianceGaps as i, validateProcessingRecord as v };
|
package/dist/ropa-NIgxd8uP.d.mts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { a as RecordOfProcessingActivities, R as ROPASummary, P as ProcessingRecord } from './ropa-CFHuT7jE.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Compliance gap found in a processing record
|
|
5
|
-
*/
|
|
6
|
-
interface ROPAComplianceGap {
|
|
7
|
-
recordId: string;
|
|
8
|
-
recordName: string;
|
|
9
|
-
gaps: string[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Validation result for a processing record
|
|
13
|
-
*/
|
|
14
|
-
interface ROPAValidationResult {
|
|
15
|
-
valid: boolean;
|
|
16
|
-
errors: string[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Validates a processing record to ensure all required fields are present
|
|
20
|
-
* and properly filled per NDPA 2023 requirements.
|
|
21
|
-
*
|
|
22
|
-
* @param record - The processing record to validate
|
|
23
|
-
* @returns Validation result with any errors found
|
|
24
|
-
*/
|
|
25
|
-
declare function validateProcessingRecord(record: ProcessingRecord): ROPAValidationResult;
|
|
26
|
-
/**
|
|
27
|
-
* Generates a summary of the Record of Processing Activities.
|
|
28
|
-
* Provides statistics and identifies records that are due for review.
|
|
29
|
-
*
|
|
30
|
-
* @param ropa - The full Record of Processing Activities
|
|
31
|
-
* @returns Summary statistics for the ROPA
|
|
32
|
-
*/
|
|
33
|
-
declare function generateROPASummary(ropa: RecordOfProcessingActivities): ROPASummary;
|
|
34
|
-
/**
|
|
35
|
-
* Exports the Record of Processing Activities to a CSV string.
|
|
36
|
-
* The CSV includes all key fields from each processing record.
|
|
37
|
-
*
|
|
38
|
-
* @param ropa - The full Record of Processing Activities
|
|
39
|
-
* @returns CSV-formatted string
|
|
40
|
-
*/
|
|
41
|
-
declare function exportROPAToCSV(ropa: RecordOfProcessingActivities): string;
|
|
42
|
-
/**
|
|
43
|
-
* Identifies compliance gaps in the Record of Processing Activities.
|
|
44
|
-
* Finds records that are missing required information per NDPA 2023.
|
|
45
|
-
*
|
|
46
|
-
* @param ropa - The full Record of Processing Activities
|
|
47
|
-
* @returns Array of compliance gaps grouped by record
|
|
48
|
-
*/
|
|
49
|
-
declare function identifyComplianceGaps(ropa: RecordOfProcessingActivities): ROPAComplianceGap[];
|
|
50
|
-
|
|
51
|
-
export { type ROPAComplianceGap as R, type ROPAValidationResult as a, exportROPAToCSV as e, generateROPASummary as g, identifyComplianceGaps as i, validateProcessingRecord as v };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locale strings for all toolkit components.
|
|
3
|
-
* Pass partial overrides — missing keys fall back to English defaults.
|
|
4
|
-
*/
|
|
5
|
-
interface NDPRLocale {
|
|
6
|
-
consent?: {
|
|
7
|
-
title?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
acceptAll?: string;
|
|
10
|
-
rejectAll?: string;
|
|
11
|
-
customize?: string;
|
|
12
|
-
savePreferences?: string;
|
|
13
|
-
selectAll?: string;
|
|
14
|
-
deselectAll?: string;
|
|
15
|
-
required?: string;
|
|
16
|
-
cookieNotice?: string;
|
|
17
|
-
};
|
|
18
|
-
dsr?: {
|
|
19
|
-
title?: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
submitRequest?: string;
|
|
22
|
-
reset?: string;
|
|
23
|
-
fullName?: string;
|
|
24
|
-
email?: string;
|
|
25
|
-
phone?: string;
|
|
26
|
-
requestType?: string;
|
|
27
|
-
additionalInfo?: string;
|
|
28
|
-
identityVerification?: string;
|
|
29
|
-
identifierType?: string;
|
|
30
|
-
identifierValue?: string;
|
|
31
|
-
privacyNotice?: string;
|
|
32
|
-
successMessage?: string;
|
|
33
|
-
};
|
|
34
|
-
breach?: {
|
|
35
|
-
title?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
submitReport?: string;
|
|
38
|
-
breachTitle?: string;
|
|
39
|
-
category?: string;
|
|
40
|
-
discoveredAt?: string;
|
|
41
|
-
detailedDescription?: string;
|
|
42
|
-
};
|
|
43
|
-
dpia?: {
|
|
44
|
-
title?: string;
|
|
45
|
-
next?: string;
|
|
46
|
-
previous?: string;
|
|
47
|
-
complete?: string;
|
|
48
|
-
progress?: string;
|
|
49
|
-
};
|
|
50
|
-
policy?: {
|
|
51
|
-
title?: string;
|
|
52
|
-
generate?: string;
|
|
53
|
-
preview?: string;
|
|
54
|
-
export?: string;
|
|
55
|
-
sections?: string;
|
|
56
|
-
variables?: string;
|
|
57
|
-
};
|
|
58
|
-
compliance?: {
|
|
59
|
-
score?: string;
|
|
60
|
-
excellent?: string;
|
|
61
|
-
good?: string;
|
|
62
|
-
needsWork?: string;
|
|
63
|
-
critical?: string;
|
|
64
|
-
recommendations?: string;
|
|
65
|
-
passed?: string;
|
|
66
|
-
gaps?: string;
|
|
67
|
-
};
|
|
68
|
-
common?: {
|
|
69
|
-
loading?: string;
|
|
70
|
-
error?: string;
|
|
71
|
-
save?: string;
|
|
72
|
-
cancel?: string;
|
|
73
|
-
delete?: string;
|
|
74
|
-
edit?: string;
|
|
75
|
-
add?: string;
|
|
76
|
-
back?: string;
|
|
77
|
-
next?: string;
|
|
78
|
-
search?: string;
|
|
79
|
-
noResults?: string;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
declare const defaultLocale: Required<{
|
|
84
|
-
[K in keyof NDPRLocale]: Required<NonNullable<NDPRLocale[K]>>;
|
|
85
|
-
}>;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Sanitizes user input to prevent XSS attacks.
|
|
89
|
-
* Escapes HTML special characters so that data rendered in dashboards
|
|
90
|
-
* or other consumer UIs cannot execute embedded scripts.
|
|
91
|
-
*/
|
|
92
|
-
declare function sanitizeInput(input: string): string;
|
|
93
|
-
|
|
94
|
-
export { type NDPRLocale as N, defaultLocale as d, sanitizeInput as s };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locale strings for all toolkit components.
|
|
3
|
-
* Pass partial overrides — missing keys fall back to English defaults.
|
|
4
|
-
*/
|
|
5
|
-
interface NDPRLocale {
|
|
6
|
-
consent?: {
|
|
7
|
-
title?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
acceptAll?: string;
|
|
10
|
-
rejectAll?: string;
|
|
11
|
-
customize?: string;
|
|
12
|
-
savePreferences?: string;
|
|
13
|
-
selectAll?: string;
|
|
14
|
-
deselectAll?: string;
|
|
15
|
-
required?: string;
|
|
16
|
-
cookieNotice?: string;
|
|
17
|
-
};
|
|
18
|
-
dsr?: {
|
|
19
|
-
title?: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
submitRequest?: string;
|
|
22
|
-
reset?: string;
|
|
23
|
-
fullName?: string;
|
|
24
|
-
email?: string;
|
|
25
|
-
phone?: string;
|
|
26
|
-
requestType?: string;
|
|
27
|
-
additionalInfo?: string;
|
|
28
|
-
identityVerification?: string;
|
|
29
|
-
identifierType?: string;
|
|
30
|
-
identifierValue?: string;
|
|
31
|
-
privacyNotice?: string;
|
|
32
|
-
successMessage?: string;
|
|
33
|
-
};
|
|
34
|
-
breach?: {
|
|
35
|
-
title?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
submitReport?: string;
|
|
38
|
-
breachTitle?: string;
|
|
39
|
-
category?: string;
|
|
40
|
-
discoveredAt?: string;
|
|
41
|
-
detailedDescription?: string;
|
|
42
|
-
};
|
|
43
|
-
dpia?: {
|
|
44
|
-
title?: string;
|
|
45
|
-
next?: string;
|
|
46
|
-
previous?: string;
|
|
47
|
-
complete?: string;
|
|
48
|
-
progress?: string;
|
|
49
|
-
};
|
|
50
|
-
policy?: {
|
|
51
|
-
title?: string;
|
|
52
|
-
generate?: string;
|
|
53
|
-
preview?: string;
|
|
54
|
-
export?: string;
|
|
55
|
-
sections?: string;
|
|
56
|
-
variables?: string;
|
|
57
|
-
};
|
|
58
|
-
compliance?: {
|
|
59
|
-
score?: string;
|
|
60
|
-
excellent?: string;
|
|
61
|
-
good?: string;
|
|
62
|
-
needsWork?: string;
|
|
63
|
-
critical?: string;
|
|
64
|
-
recommendations?: string;
|
|
65
|
-
passed?: string;
|
|
66
|
-
gaps?: string;
|
|
67
|
-
};
|
|
68
|
-
common?: {
|
|
69
|
-
loading?: string;
|
|
70
|
-
error?: string;
|
|
71
|
-
save?: string;
|
|
72
|
-
cancel?: string;
|
|
73
|
-
delete?: string;
|
|
74
|
-
edit?: string;
|
|
75
|
-
add?: string;
|
|
76
|
-
back?: string;
|
|
77
|
-
next?: string;
|
|
78
|
-
search?: string;
|
|
79
|
-
noResults?: string;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
declare const defaultLocale: Required<{
|
|
84
|
-
[K in keyof NDPRLocale]: Required<NonNullable<NDPRLocale[K]>>;
|
|
85
|
-
}>;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Sanitizes user input to prevent XSS attacks.
|
|
89
|
-
* Escapes HTML special characters so that data rendered in dashboards
|
|
90
|
-
* or other consumer UIs cannot execute embedded scripts.
|
|
91
|
-
*/
|
|
92
|
-
declare function sanitizeInput(input: string): string;
|
|
93
|
-
|
|
94
|
-
export { type NDPRLocale as N, defaultLocale as d, sanitizeInput as s };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { a as ConsentSettings, b as ConsentStorageOptions } from './consent-CmVzqZUk.mjs';
|
|
3
|
-
|
|
4
|
-
interface ConsentStorageClassNames {
|
|
5
|
-
root?: string;
|
|
6
|
-
}
|
|
7
|
-
interface ConsentStorageProps {
|
|
8
|
-
/**
|
|
9
|
-
* Current consent settings
|
|
10
|
-
*/
|
|
11
|
-
settings: ConsentSettings;
|
|
12
|
-
/**
|
|
13
|
-
* Storage options for consent settings
|
|
14
|
-
*/
|
|
15
|
-
storageOptions?: ConsentStorageOptions;
|
|
16
|
-
/**
|
|
17
|
-
* Callback function called when settings are loaded from storage
|
|
18
|
-
*/
|
|
19
|
-
onLoad?: (settings: ConsentSettings | null) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Callback function called when settings are saved to storage
|
|
22
|
-
*/
|
|
23
|
-
onSave?: (settings: ConsentSettings) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Whether to automatically save settings to storage
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
autoSave?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Whether to automatically load settings from storage on mount
|
|
31
|
-
* @default true
|
|
32
|
-
*/
|
|
33
|
-
autoLoad?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Object of CSS class overrides keyed by semantic section name.
|
|
36
|
-
*/
|
|
37
|
-
classNames?: ConsentStorageClassNames;
|
|
38
|
-
/**
|
|
39
|
-
* When true, all default classes are removed so consumers
|
|
40
|
-
* can style from scratch using classNames.
|
|
41
|
-
*/
|
|
42
|
-
unstyled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Children to render
|
|
45
|
-
* Can be either React nodes or a render prop function that receives storage methods
|
|
46
|
-
*/
|
|
47
|
-
children?: React__default.ReactNode | ((props: {
|
|
48
|
-
loadSettings: () => ConsentSettings | null;
|
|
49
|
-
saveSettings: (settings: ConsentSettings) => void;
|
|
50
|
-
clearSettings: () => void;
|
|
51
|
-
loaded: boolean;
|
|
52
|
-
}) => React__default.ReactNode);
|
|
53
|
-
}
|
|
54
|
-
declare const ConsentStorage: ({ settings, storageOptions, onLoad, onSave, autoSave, autoLoad, classNames, unstyled, children }: ConsentStorageProps) => React__default.ReactElement | null;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Resolves class names for a component section.
|
|
58
|
-
* If unstyled is true, only the override class is used (or empty string).
|
|
59
|
-
* If an override is provided, it fully REPLACES the default — no appending.
|
|
60
|
-
* Otherwise the default class string is returned as-is.
|
|
61
|
-
*/
|
|
62
|
-
declare function resolveClass(defaultClass: string, override?: string, unstyled?: boolean): string;
|
|
63
|
-
|
|
64
|
-
export { ConsentStorage as C, type ConsentStorageClassNames as a, type ConsentStorageProps as b, resolveClass as r };
|