@artu-ai/compliance-sdk 0.8.2 → 0.9.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/README.md +2 -2
- package/dist/errors/base.d.ts +1 -1
- package/dist/errors/base.js +1 -1
- package/dist/exports/index.d.ts +4 -4
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/index.js +2 -2
- package/dist/exports/mexico/actividad-vulnerable/avi.d.ts +11 -11
- package/dist/exports/mexico/actividad-vulnerable/avi.d.ts.map +1 -1
- package/dist/exports/mexico/actividad-vulnerable/avi.js +10 -10
- package/dist/exports/mexico/actividad-vulnerable/jys.d.ts +11 -11
- package/dist/exports/mexico/actividad-vulnerable/jys.d.ts.map +1 -1
- package/dist/exports/mexico/actividad-vulnerable/jys.js +10 -10
- package/dist/exports/mexico/actividad-vulnerable/mjr.d.ts +11 -11
- package/dist/exports/mexico/actividad-vulnerable/mjr.d.ts.map +1 -1
- package/dist/exports/mexico/actividad-vulnerable/mjr.js +10 -10
- package/dist/exports/mexico/actividad-vulnerable/tsc.d.ts +11 -11
- package/dist/exports/mexico/actividad-vulnerable/tsc.d.ts.map +1 -1
- package/dist/exports/mexico/actividad-vulnerable/tsc.js +10 -10
- package/dist/exports/mexico/index.d.ts +4 -4
- package/dist/exports/mexico/index.d.ts.map +1 -1
- package/dist/exports/mexico/index.js +3 -3
- package/dist/models/Alert.d.ts +106 -0
- package/dist/models/Alert.d.ts.map +1 -0
- package/dist/models/{Report.js → Alert.js} +44 -31
- package/dist/models/{ReportItem.d.ts → AlertItem.d.ts} +15 -15
- package/dist/models/AlertItem.d.ts.map +1 -0
- package/dist/models/{ReportItem.js → AlertItem.js} +13 -13
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +7 -7
- package/dist/models/mex/MexAlert.d.ts +50 -0
- package/dist/models/mex/MexAlert.d.ts.map +1 -0
- package/dist/models/mex/{MexReport.js → MexAlert.js} +15 -15
- package/dist/models/mex/MexAlertItem.d.ts +39 -0
- package/dist/models/mex/MexAlertItem.d.ts.map +1 -0
- package/dist/models/mex/{MexReportItem.js → MexAlertItem.js} +11 -11
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableAlert.d.ts +38 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableAlert.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/{MexActividadVulnerableReport.js → MexActividadVulnerableAlert.js} +11 -11
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableAlertItem.d.ts +38 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableAlertItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/{MexActividadVulnerableReportItem.js → MexActividadVulnerableAlertItem.js} +11 -11
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIAlert.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIAlert.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/{MexAVIReport.js → MexAVIAlert.js} +14 -14
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIAlertItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIAlertItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/{MexAVIReportItem.js → MexAVIAlertItem.js} +13 -13
- package/dist/models/mex/actividad-vulnerable/index.d.ts +10 -10
- package/dist/models/mex/actividad-vulnerable/index.d.ts.map +1 -1
- package/dist/models/mex/actividad-vulnerable/index.js +12 -12
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSAlert.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSAlert.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/{MexJYSReport.js → MexJYSAlert.js} +14 -14
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSAlertItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSAlertItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/{MexJYSReportItem.js → MexJYSAlertItem.js} +13 -13
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRAlert.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRAlert.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/mjr/{MexMJRReport.js → MexMJRAlert.js} +14 -14
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRAlertItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRAlertItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/mjr/{MexMJRReportItem.js → MexMJRAlertItem.js} +13 -13
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCAlert.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCAlert.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/{MexTSCReport.js → MexTSCAlert.js} +14 -14
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCAlertItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCAlertItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/{MexTSCReportItem.js → MexTSCAlertItem.js} +13 -13
- package/dist/models/mex/index.d.ts +2 -2
- package/dist/models/mex/index.d.ts.map +1 -1
- package/dist/models/mex/index.js +3 -3
- package/dist/models/types.d.ts +17 -17
- package/dist/models/types.d.ts.map +1 -1
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts +12 -12
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts.map +1 -1
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.js +7 -7
- package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts +24 -24
- package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts.map +1 -1
- package/dist/namespaces/mexico/actividad-vulnerable/index.js +5 -5
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts +12 -12
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts.map +1 -1
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.js +7 -7
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts +12 -12
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts.map +1 -1
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.js +7 -7
- package/dist/namespaces/mexico/index.d.ts +48 -48
- package/dist/namespaces/mexico/index.d.ts.map +1 -1
- package/dist/namespaces/mexico/index.js +8 -8
- package/dist/resources/alerts.d.ts +245 -0
- package/dist/resources/alerts.d.ts.map +1 -0
- package/dist/resources/{reports.js → alerts.js} +107 -107
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -1
- package/dist/resources/mex/actividad-vulnerable/avi/alerts.d.ts +190 -0
- package/dist/resources/mex/actividad-vulnerable/avi/alerts.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/{reports.js → alerts.js} +86 -86
- package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts +1 -1
- package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/avi/index.js +1 -1
- package/dist/resources/mex/actividad-vulnerable/jys/alerts.d.ts +170 -0
- package/dist/resources/mex/actividad-vulnerable/jys/alerts.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/{reports.js → alerts.js} +82 -82
- package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts +1 -1
- package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/jys/index.js +1 -1
- package/dist/resources/mex/actividad-vulnerable/mjr/alerts.d.ts +170 -0
- package/dist/resources/mex/actividad-vulnerable/mjr/alerts.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/mjr/{reports.js → alerts.js} +83 -83
- package/dist/resources/mex/actividad-vulnerable/mjr/index.d.ts +1 -1
- package/dist/resources/mex/actividad-vulnerable/mjr/index.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/mjr/index.js +1 -1
- package/dist/resources/mex/actividad-vulnerable/tsc/alerts.d.ts +170 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/alerts.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/{reports.js → alerts.js} +82 -82
- package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts +1 -1
- package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/tsc/index.js +1 -1
- package/dist/resources/mex/alerts.d.ts +266 -0
- package/dist/resources/mex/alerts.d.ts.map +1 -0
- package/dist/resources/mex/{reports.js → alerts.js} +109 -109
- package/dist/resources/mex/ebr.d.ts +1 -1
- package/dist/resources/mex/ebr.js +1 -1
- package/dist/resources/mex/index.d.ts +1 -1
- package/dist/resources/mex/index.d.ts.map +1 -1
- package/dist/resources/mex/index.js +1 -1
- package/dist/sdk/ComplianceSDK.d.ts +10 -10
- package/dist/sdk/ComplianceSDK.d.ts.map +1 -1
- package/dist/sdk/ComplianceSDK.js +9 -9
- package/dist/sdk/base.js +2 -2
- package/dist/sdk/mex/ComplianceSDK.d.ts +3 -3
- package/dist/sdk/mex/ComplianceSDK.d.ts.map +1 -1
- package/dist/sdk/mex/ComplianceSDK.js +1 -1
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts +2 -2
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts +3 -3
- package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/avi/types.js +2 -2
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts +2 -2
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts +3 -3
- package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/jys/types.js +2 -2
- package/dist/sdk/mex/actividad-vulnerable/mjr/ComplianceSDK.d.ts +2 -2
- package/dist/sdk/mex/actividad-vulnerable/mjr/ComplianceSDK.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/mjr/types.d.ts +3 -3
- package/dist/sdk/mex/actividad-vulnerable/mjr/types.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/mjr/types.js +2 -2
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts +2 -2
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts +3 -3
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts.map +1 -1
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.js +2 -2
- package/dist/sdk/mex/index.js +2 -2
- package/dist/sdk/mex/types.d.ts +2 -2
- package/dist/sdk/mex/types.d.ts.map +1 -1
- package/dist/sdk/resource-registry.d.ts +4 -4
- package/dist/sdk/resource-registry.d.ts.map +1 -1
- package/dist/sdk/resource-registry.js +1 -1
- package/dist/utils/upload.js +1 -1
- package/package.json +2 -2
- package/dist/models/Report.d.ts +0 -98
- package/dist/models/Report.d.ts.map +0 -1
- package/dist/models/ReportItem.d.ts.map +0 -1
- package/dist/models/mex/MexReport.d.ts +0 -50
- package/dist/models/mex/MexReport.d.ts.map +0 -1
- package/dist/models/mex/MexReportItem.d.ts +0 -39
- package/dist/models/mex/MexReportItem.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts +0 -38
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts +0 -38
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts +0 -53
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts +0 -56
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts +0 -53
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts +0 -56
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRReport.d.ts +0 -53
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRReport.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRReportItem.d.ts +0 -56
- package/dist/models/mex/actividad-vulnerable/mjr/MexMJRReportItem.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts +0 -53
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts.map +0 -1
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts +0 -56
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts.map +0 -1
- package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts +0 -190
- package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts.map +0 -1
- package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts +0 -170
- package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts.map +0 -1
- package/dist/resources/mex/actividad-vulnerable/mjr/reports.d.ts +0 -170
- package/dist/resources/mex/actividad-vulnerable/mjr/reports.d.ts.map +0 -1
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts +0 -170
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts.map +0 -1
- package/dist/resources/mex/reports.d.ts +0 -266
- package/dist/resources/mex/reports.d.ts.map +0 -1
- package/dist/resources/reports.d.ts +0 -245
- package/dist/resources/reports.d.ts.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mexico TSC Report Model
|
|
3
|
-
*
|
|
4
|
-
* Report model for Tarjetas de Servicio y Crédito (Service and Credit Cards) activity.
|
|
5
|
-
*/
|
|
6
|
-
import { MexActividadVulnerableReport, type MexActividadVulnerableReportData } from "../MexActividadVulnerableReport";
|
|
7
|
-
import type { tsc } from "@artu-ai/shared";
|
|
8
|
-
/**
|
|
9
|
-
* TSC report data
|
|
10
|
-
*/
|
|
11
|
-
export interface MexTSCReportData extends MexActividadVulnerableReportData {
|
|
12
|
-
jurisdictions?: {
|
|
13
|
-
MX?: {
|
|
14
|
-
actividadVulnerable?: {
|
|
15
|
-
TSC?: tsc.TSCReportData;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Mexico TSC Report Model.
|
|
23
|
-
*
|
|
24
|
-
* Provides typed accessors for TSC-specific report data.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* if (report instanceof MexTSCReport) {
|
|
29
|
-
* console.log(`Period: ${report.mesReportado}`);
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare class MexTSCReport extends MexActividadVulnerableReport {
|
|
34
|
-
/**
|
|
35
|
-
* TSC-specific report data
|
|
36
|
-
*/
|
|
37
|
-
protected get tscData(): tsc.TSCReportData | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Reporting period (YYYYMM format)
|
|
40
|
-
*/
|
|
41
|
-
get mesReportado(): string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Reporting period as a formatted string (e.g., "January 2024")
|
|
44
|
-
*/
|
|
45
|
-
get formattedPeriod(): string | undefined;
|
|
46
|
-
toString(): string;
|
|
47
|
-
}
|
|
48
|
-
import type { ReportModel } from "../../../types";
|
|
49
|
-
/**
|
|
50
|
-
* Check if report is a TSC (Tarjetas de Servicio y Crédito) report
|
|
51
|
-
*/
|
|
52
|
-
export declare function isMexTSCReport(report: ReportModel): report is MexTSCReport;
|
|
53
|
-
//# sourceMappingURL=MexTSCReport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MexTSCReport.d.ts","sourceRoot":"","sources":["../../../../../src/models/mex/actividad-vulnerable/tsc/MexTSCReport.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,4BAA4B,EAC5B,KAAK,gCAAgC,EACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAM3C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gCAAgC;IACxE,aAAa,CAAC,EAAE;QACd,EAAE,CAAC,EAAE;YACH,mBAAmB,CAAC,EAAE;gBACpB,GAAG,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC;aACzB,CAAC;SACH,CAAC;QACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH;AAMD;;;;;;;;;;;GAWG;AACH,qBAAa,YAAa,SAAQ,4BAA4B;IAK5D;;OAEG;IACH,SAAS,KAAK,OAAO,IAAI,GAAG,CAAC,aAAa,GAAG,SAAS,CAErD;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAErC;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,SAAS,CAuBxC;IAMQ,QAAQ,IAAI,MAAM;CAG5B;AAMD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,YAAY,CAE1E"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mexico TSC Report Item Model
|
|
3
|
-
*
|
|
4
|
-
* Report item model for Tarjetas de Servicio y Crédito (Service and Credit Cards) activity.
|
|
5
|
-
*/
|
|
6
|
-
import { MexActividadVulnerableReportItem, type MexActividadVulnerableReportItemData } from "../MexActividadVulnerableReportItem";
|
|
7
|
-
import type { tsc } from "@artu-ai/shared";
|
|
8
|
-
/**
|
|
9
|
-
* TSC report item data
|
|
10
|
-
*/
|
|
11
|
-
export interface MexTSCReportItemData extends MexActividadVulnerableReportItemData {
|
|
12
|
-
jurisdictions?: {
|
|
13
|
-
MX?: {
|
|
14
|
-
actividadVulnerable?: {
|
|
15
|
-
TSC?: tsc.TSCReportItemData;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Mexico TSC Report Item Model.
|
|
23
|
-
*
|
|
24
|
-
* Provides typed accessors for TSC-specific report item data.
|
|
25
|
-
*/
|
|
26
|
-
export declare class MexTSCReportItem extends MexActividadVulnerableReportItem {
|
|
27
|
-
/**
|
|
28
|
-
* TSC-specific report item data
|
|
29
|
-
*/
|
|
30
|
-
protected get tscData(): tsc.TSCReportItemData | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Alert type code
|
|
33
|
-
* - "100" for monthly reports
|
|
34
|
-
* - Other codes for unusual activity
|
|
35
|
-
*/
|
|
36
|
-
get alertType(): tsc.TipoAlerta | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Alert description (for unusual activity)
|
|
39
|
-
*/
|
|
40
|
-
get alertDescription(): string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Amendment data for corrections
|
|
43
|
-
*/
|
|
44
|
-
get amendment(): tsc.Amendment | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Whether this item is an amendment
|
|
47
|
-
*/
|
|
48
|
-
get isAmendment(): boolean;
|
|
49
|
-
toString(): string;
|
|
50
|
-
}
|
|
51
|
-
import type { ReportItemModel } from "../../../types";
|
|
52
|
-
/**
|
|
53
|
-
* Check if report item is a TSC (Tarjetas de Servicio y Crédito) report item
|
|
54
|
-
*/
|
|
55
|
-
export declare function isMexTSCReportItem(item: ReportItemModel): item is MexTSCReportItem;
|
|
56
|
-
//# sourceMappingURL=MexTSCReportItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MexTSCReportItem.d.ts","sourceRoot":"","sources":["../../../../../src/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,gCAAgC,EAChC,KAAK,oCAAoC,EAC1C,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAM3C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,oCAAoC;IAChF,aAAa,CAAC,EAAE;QACd,EAAE,CAAC,EAAE;YACH,mBAAmB,CAAC,EAAE;gBACpB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC;aAC7B,CAAC;SACH,CAAC;QACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH;AAMD;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,gCAAgC;IAKpE;;OAEG;IACH,SAAS,KAAK,OAAO,IAAI,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAEzD;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,GAAG,CAAC,UAAU,GAAG,SAAS,CAE1C;IAED;;OAEG;IACH,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,GAAG,CAAC,SAAS,GAAG,SAAS,CAEzC;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAMQ,QAAQ,IAAI,MAAM;CAG5B;AAMD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,eAAe,GACpB,IAAI,IAAI,gBAAgB,CAE1B"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AVI (Activos Virtuales) Reports Resource
|
|
3
|
-
*
|
|
4
|
-
* Extends MexReportsResource with AVI-specific behavior:
|
|
5
|
-
* - Accepts flattened CreateAVIReportInput (AVI fields at root level)
|
|
6
|
-
* - Returns MexAVIReport models
|
|
7
|
-
*/
|
|
8
|
-
import type { CreateReportInput, UpdateReportInput, CreateReportItemInput, UpdateReportItemInput, CreateAVIReportInput, UpdateAVIReportInput, UpsertAVIReportInput, CreateAVIReportItemInput, UpdateAVIReportItemInput, ListOptions, PaginatedResponse, AtomicBatchResult, PartialBatchResult, ValidationResult, GenerateResult, SubmissionResult, AviReportDefaultsInput, SubmitAVIReportInput, UpsertResult } from "@artu-ai/shared";
|
|
9
|
-
import type { AVIReportFilter, AVIReportSort, AVIReportItemFilter, ReportSort, ReportItemFilter, ReportItemSort } from "@artu-ai/shared";
|
|
10
|
-
import { MexReportsResource } from "../../reports";
|
|
11
|
-
import { MexAVIReport, MexAVIReportItem, type ReportData, type ReportItemData } from "../../../../models";
|
|
12
|
-
/**
|
|
13
|
-
* AVI (Activos Virtuales) scoped reports resource.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* const aviSdk = new ComplianceSDK({
|
|
18
|
-
* apiKey,
|
|
19
|
-
* jurisdiction: Jurisdiction.Mexico,
|
|
20
|
-
* actividadVulnerable: CodigoActividad.AVI,
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* // Create with fully flattened input
|
|
24
|
-
* const report = await aviSdk.reports.create({
|
|
25
|
-
* mesReportado: "202401",
|
|
26
|
-
* });
|
|
27
|
-
*
|
|
28
|
-
* // Returns MexAVIReport
|
|
29
|
-
* console.log(report.mesReportado);
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare class AVIReportsResource extends MexReportsResource<AVIReportSort, AviReportDefaultsInput> {
|
|
33
|
-
create(data: CreateAVIReportInput): Promise<MexAVIReport>;
|
|
34
|
-
retrieve(id: string): Promise<MexAVIReport>;
|
|
35
|
-
retrieveByMetadata(key: string, value: string): Promise<MexAVIReport>;
|
|
36
|
-
retrieveByExternalId(externalId: string): Promise<MexAVIReport>;
|
|
37
|
-
update(id: string, data: UpdateAVIReportInput): Promise<MexAVIReport>;
|
|
38
|
-
/**
|
|
39
|
-
* Lists AVI reports with optional filtering.
|
|
40
|
-
*
|
|
41
|
-
* Accepts flattened AVI filter (future AVI-specific report fields at root level).
|
|
42
|
-
*/
|
|
43
|
-
list(options?: ListOptions<AVIReportFilter, AVIReportSort>): Promise<PaginatedResponse<MexAVIReport>>;
|
|
44
|
-
/**
|
|
45
|
-
* Iterates over AVI reports.
|
|
46
|
-
*
|
|
47
|
-
* Accepts flattened AVI filter (future AVI-specific report fields at root level).
|
|
48
|
-
*/
|
|
49
|
-
iterate(options?: {
|
|
50
|
-
filter?: AVIReportFilter;
|
|
51
|
-
sort?: AVIReportSort;
|
|
52
|
-
pageSize?: number;
|
|
53
|
-
}): AsyncGenerator<MexAVIReport, void, undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* Counts AVI reports matching the given filter.
|
|
56
|
-
*
|
|
57
|
-
* @param filter - Optional filter criteria (with AVI fields at root level)
|
|
58
|
-
* @returns The count of matching reports
|
|
59
|
-
*/
|
|
60
|
-
count(filter?: AVIReportFilter): Promise<number>;
|
|
61
|
-
createMany(reports: CreateAVIReportInput[], options?: {
|
|
62
|
-
atomic?: true;
|
|
63
|
-
}): Promise<AtomicBatchResult<MexAVIReport>>;
|
|
64
|
-
createMany(reports: CreateAVIReportInput[], options: {
|
|
65
|
-
atomic: false;
|
|
66
|
-
}): Promise<PartialBatchResult<MexAVIReport>>;
|
|
67
|
-
updateMany(updates: {
|
|
68
|
-
id: string;
|
|
69
|
-
data: UpdateAVIReportInput;
|
|
70
|
-
}[], options?: {
|
|
71
|
-
atomic?: true;
|
|
72
|
-
}): Promise<AtomicBatchResult<MexAVIReport>>;
|
|
73
|
-
updateMany(updates: {
|
|
74
|
-
id: string;
|
|
75
|
-
data: UpdateAVIReportInput;
|
|
76
|
-
}[], options: {
|
|
77
|
-
atomic: false;
|
|
78
|
-
}): Promise<PartialBatchResult<MexAVIReport>>;
|
|
79
|
-
/**
|
|
80
|
-
* Creates or updates an AVI report by externalId.
|
|
81
|
-
*
|
|
82
|
-
* @param data - Report upsert data with AVI fields at root level (must include externalId)
|
|
83
|
-
* @returns The created or updated report with action indicator
|
|
84
|
-
*/
|
|
85
|
-
upsertByExternalId(data: UpsertAVIReportInput): Promise<UpsertResult<MexAVIReport>>;
|
|
86
|
-
/**
|
|
87
|
-
* Creates or updates multiple AVI reports by externalId.
|
|
88
|
-
*
|
|
89
|
-
* @param reports - Array of report upsert data (each must include externalId)
|
|
90
|
-
* @param options - Batch options (atomic: true by default)
|
|
91
|
-
* @returns Atomic result with data array, or partial result with succeeded/failed
|
|
92
|
-
*/
|
|
93
|
-
upsertManyByExternalId(reports: UpsertAVIReportInput[], options?: {
|
|
94
|
-
atomic?: true;
|
|
95
|
-
}): Promise<AtomicBatchResult<UpsertResult<MexAVIReport>>>;
|
|
96
|
-
upsertManyByExternalId(reports: UpsertAVIReportInput[], options: {
|
|
97
|
-
atomic: false;
|
|
98
|
-
}): Promise<PartialBatchResult<UpsertResult<MexAVIReport>>>;
|
|
99
|
-
addItem(reportId: string, data: CreateAVIReportItemInput): Promise<MexAVIReportItem>;
|
|
100
|
-
getItem(reportId: string, itemId: string): Promise<MexAVIReportItem>;
|
|
101
|
-
updateItem(reportId: string, itemId: string, data: UpdateAVIReportItemInput): Promise<MexAVIReportItem>;
|
|
102
|
-
listItems(reportId: string, options?: ListOptions<AVIReportItemFilter, ReportItemSort>): Promise<PaginatedResponse<MexAVIReportItem>>;
|
|
103
|
-
/**
|
|
104
|
-
* Transforms a flattened AVIReportItemFilter to nested ReportItemFilter format.
|
|
105
|
-
*/
|
|
106
|
-
protected applyScopeToItemFilter(filter?: AVIReportItemFilter): ReportItemFilter | undefined;
|
|
107
|
-
addItems(reportId: string, items: CreateAVIReportItemInput[]): Promise<{
|
|
108
|
-
added: number;
|
|
109
|
-
items: MexAVIReportItem[];
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* Validates an AVI report.
|
|
113
|
-
*
|
|
114
|
-
* Uses AVI-scoped validation input (jurisdiction and activity are implicit).
|
|
115
|
-
*
|
|
116
|
-
* @param reportId - The report ID to validate
|
|
117
|
-
* @param defaults - AVI report defaults including rfc, platformDomain, alertType, etc.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* const result = await aviSdk.reports.validateReport(report.id, {
|
|
122
|
-
* rfc: "ABC200101XXX",
|
|
123
|
-
* platformDomain: "https://example.com",
|
|
124
|
-
* alertType: "100",
|
|
125
|
-
* });
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
|
-
validateReport(reportId: string, defaults: AviReportDefaultsInput): Promise<ValidationResult>;
|
|
129
|
-
/**
|
|
130
|
-
* Generates XML for an AVI report.
|
|
131
|
-
*
|
|
132
|
-
* Uses the same input as validateReport.
|
|
133
|
-
*
|
|
134
|
-
* @param reportId - The report ID to generate XML for
|
|
135
|
-
* @param defaults - AVI report defaults including rfc, platformDomain, alertType, etc.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```typescript
|
|
139
|
-
* const result = await aviSdk.reports.generateReport(report.id, {
|
|
140
|
-
* rfc: "ABC200101XXX",
|
|
141
|
-
* platformDomain: "https://example.com",
|
|
142
|
-
* alertType: "100",
|
|
143
|
-
* });
|
|
144
|
-
* console.log(result.xml);
|
|
145
|
-
* ```
|
|
146
|
-
*/
|
|
147
|
-
generateReport(reportId: string, defaults: AviReportDefaultsInput): Promise<GenerateResult>;
|
|
148
|
-
/**
|
|
149
|
-
* Submits a validated AVI report.
|
|
150
|
-
*
|
|
151
|
-
* Uses AVI-scoped submission input (activity is implicit).
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* ```typescript
|
|
155
|
-
* const result = await aviSdk.reports.submit({
|
|
156
|
-
* reportId: report.id,
|
|
157
|
-
* acuseRecibo: "SAT-12345",
|
|
158
|
-
* notes: "Submitted via portal",
|
|
159
|
-
* });
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
submit(input: SubmitAVIReportInput): Promise<SubmissionResult>;
|
|
163
|
-
/**
|
|
164
|
-
* Transforms a flattened AVIReportSort to nested ReportSort format.
|
|
165
|
-
*
|
|
166
|
-
* Maps flattened field names to their full API paths.
|
|
167
|
-
*/
|
|
168
|
-
protected applyScopeToSort(sort?: AVIReportSort): ReportSort | undefined;
|
|
169
|
-
protected transformToNested(data: CreateAVIReportInput): CreateReportInput;
|
|
170
|
-
/**
|
|
171
|
-
* Transforms AVI update input to nested API format.
|
|
172
|
-
*
|
|
173
|
-
* NOTE: Always includes `actividadVulnerable: { AVI: {} }` even if no
|
|
174
|
-
* AVI-specific fields are provided. This ensures that records touched via
|
|
175
|
-
* the AVI SDK can be filtered by `activityCodes: { in: ["AVI"] }`.
|
|
176
|
-
*/
|
|
177
|
-
protected transformUpdateToNested(data: UpdateAVIReportInput): UpdateReportInput;
|
|
178
|
-
protected instantiate(data: ReportData): MexAVIReport;
|
|
179
|
-
protected instantiateItem(data: ReportItemData): MexAVIReportItem;
|
|
180
|
-
protected transformItemToNested(data: CreateAVIReportItemInput): CreateReportItemInput;
|
|
181
|
-
protected transformItemUpdateToNested(data: UpdateAVIReportItemInput): UpdateReportItemInput;
|
|
182
|
-
/**
|
|
183
|
-
* Transforms AVI defaults to nested API format for validate/generate.
|
|
184
|
-
*/
|
|
185
|
-
protected transformAviDefaultsToNested(reportId: string, defaults: AviReportDefaultsInput): {
|
|
186
|
-
reportId: string;
|
|
187
|
-
jurisdictions: unknown;
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/avi/reports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAEjB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,EACb,MAAM,iBAAiB,CAAC;AAazB,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAM5B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,kBAAmB,SAAQ,kBAAkB,CACxD,aAAa,EACb,sBAAsB,CACvB;IAKO,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IAWzD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,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|
|
|
1
|
-
/**
|
|
2
|
-
* JYS (Juegos y Sorteos) Reports Resource
|
|
3
|
-
*
|
|
4
|
-
* Extends MexReportsResource with JYS-specific behavior:
|
|
5
|
-
* - Accepts flattened CreateJYSReportInput (JYS fields at root level)
|
|
6
|
-
* - Returns MexJYSReport models
|
|
7
|
-
*/
|
|
8
|
-
import type { CreateReportInput, UpdateReportInput, CreateReportItemInput, UpdateReportItemInput, CreateJYSReportInput, UpdateJYSReportInput, UpsertJYSReportInput, CreateJYSReportItemInput, UpdateJYSReportItemInput, ListOptions, PaginatedResponse, AtomicBatchResult, PartialBatchResult, JysReportDefaultsInput, ValidationResult, GenerateResult, SubmissionResult, SubmitJYSSubmissionInput, UpsertResult } from "@artu-ai/shared";
|
|
9
|
-
import type { JYSReportFilter, JYSReportSort, JYSReportItemFilter, ReportSort, ReportItemFilter, ReportItemSort } from "@artu-ai/shared";
|
|
10
|
-
import { MexReportsResource } from "../../reports";
|
|
11
|
-
import { MexJYSReport, MexJYSReportItem, type ReportData, type ReportItemData } from "../../../../models";
|
|
12
|
-
/**
|
|
13
|
-
* JYS (Juegos y Sorteos) scoped reports resource.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* const jysSdk = new ComplianceSDK({
|
|
18
|
-
* apiKey,
|
|
19
|
-
* jurisdiction: Jurisdiction.Mexico,
|
|
20
|
-
* actividadVulnerable: CodigoActividad.JYS,
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* // Create with fully flattened input
|
|
24
|
-
* const report = await jysSdk.reports.create({
|
|
25
|
-
* mesReportado: "202401",
|
|
26
|
-
* });
|
|
27
|
-
*
|
|
28
|
-
* // Returns MexJYSReport
|
|
29
|
-
* console.log(report.mesReportado);
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare class JYSReportsResource extends MexReportsResource<JYSReportSort, JysReportDefaultsInput> {
|
|
33
|
-
create(data: CreateJYSReportInput): Promise<MexJYSReport>;
|
|
34
|
-
retrieve(id: string): Promise<MexJYSReport>;
|
|
35
|
-
retrieveByMetadata(key: string, value: string): Promise<MexJYSReport>;
|
|
36
|
-
retrieveByExternalId(externalId: string): Promise<MexJYSReport>;
|
|
37
|
-
update(id: string, data: UpdateJYSReportInput): Promise<MexJYSReport>;
|
|
38
|
-
/**
|
|
39
|
-
* Lists JYS reports with optional filtering.
|
|
40
|
-
*
|
|
41
|
-
* Accepts flattened JYS filter (future JYS-specific report fields at root level).
|
|
42
|
-
*/
|
|
43
|
-
list(options?: ListOptions<JYSReportFilter, JYSReportSort>): Promise<PaginatedResponse<MexJYSReport>>;
|
|
44
|
-
/**
|
|
45
|
-
* Iterates over JYS reports.
|
|
46
|
-
*
|
|
47
|
-
* Accepts flattened JYS filter (future JYS-specific report fields at root level).
|
|
48
|
-
*/
|
|
49
|
-
iterate(options?: {
|
|
50
|
-
filter?: JYSReportFilter;
|
|
51
|
-
sort?: JYSReportSort;
|
|
52
|
-
pageSize?: number;
|
|
53
|
-
}): AsyncGenerator<MexJYSReport, void, undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* Counts JYS reports matching the given filter.
|
|
56
|
-
*
|
|
57
|
-
* @param filter - Optional filter criteria (with JYS fields at root level)
|
|
58
|
-
* @returns The count of matching reports
|
|
59
|
-
*/
|
|
60
|
-
count(filter?: JYSReportFilter): Promise<number>;
|
|
61
|
-
createMany(reports: CreateJYSReportInput[], options?: {
|
|
62
|
-
atomic?: true;
|
|
63
|
-
}): Promise<AtomicBatchResult<MexJYSReport>>;
|
|
64
|
-
createMany(reports: CreateJYSReportInput[], options: {
|
|
65
|
-
atomic: false;
|
|
66
|
-
}): Promise<PartialBatchResult<MexJYSReport>>;
|
|
67
|
-
updateMany(updates: {
|
|
68
|
-
id: string;
|
|
69
|
-
data: UpdateJYSReportInput;
|
|
70
|
-
}[], options?: {
|
|
71
|
-
atomic?: true;
|
|
72
|
-
}): Promise<AtomicBatchResult<MexJYSReport>>;
|
|
73
|
-
updateMany(updates: {
|
|
74
|
-
id: string;
|
|
75
|
-
data: UpdateJYSReportInput;
|
|
76
|
-
}[], options: {
|
|
77
|
-
atomic: false;
|
|
78
|
-
}): Promise<PartialBatchResult<MexJYSReport>>;
|
|
79
|
-
/**
|
|
80
|
-
* Creates or updates a JYS report by externalId.
|
|
81
|
-
*
|
|
82
|
-
* @param data - Report upsert data with JYS fields at root level (must include externalId)
|
|
83
|
-
* @returns The created or updated report with action indicator
|
|
84
|
-
*/
|
|
85
|
-
upsertByExternalId(data: UpsertJYSReportInput): Promise<UpsertResult<MexJYSReport>>;
|
|
86
|
-
/**
|
|
87
|
-
* Creates or updates multiple JYS reports by externalId.
|
|
88
|
-
*
|
|
89
|
-
* @param reports - Array of report upsert data (each must include externalId)
|
|
90
|
-
* @param options - Batch options (atomic: true by default)
|
|
91
|
-
* @returns Atomic result with data array, or partial result with succeeded/failed
|
|
92
|
-
*/
|
|
93
|
-
upsertManyByExternalId(reports: UpsertJYSReportInput[], options?: {
|
|
94
|
-
atomic?: true;
|
|
95
|
-
}): Promise<AtomicBatchResult<UpsertResult<MexJYSReport>>>;
|
|
96
|
-
upsertManyByExternalId(reports: UpsertJYSReportInput[], options: {
|
|
97
|
-
atomic: false;
|
|
98
|
-
}): Promise<PartialBatchResult<UpsertResult<MexJYSReport>>>;
|
|
99
|
-
addItem(reportId: string, data: CreateJYSReportItemInput): Promise<MexJYSReportItem>;
|
|
100
|
-
getItem(reportId: string, itemId: string): Promise<MexJYSReportItem>;
|
|
101
|
-
updateItem(reportId: string, itemId: string, data: UpdateJYSReportItemInput): Promise<MexJYSReportItem>;
|
|
102
|
-
listItems(reportId: string, options?: ListOptions<JYSReportItemFilter, ReportItemSort>): Promise<PaginatedResponse<MexJYSReportItem>>;
|
|
103
|
-
/**
|
|
104
|
-
* Transforms a flattened JYSReportItemFilter to nested ReportItemFilter format.
|
|
105
|
-
*/
|
|
106
|
-
protected applyScopeToItemFilter(filter?: JYSReportItemFilter): ReportItemFilter | undefined;
|
|
107
|
-
addItems(reportId: string, items: CreateJYSReportItemInput[]): Promise<{
|
|
108
|
-
added: number;
|
|
109
|
-
items: MexJYSReportItem[];
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* Validates a JYS report.
|
|
113
|
-
*
|
|
114
|
-
* Uses JYS-scoped validation input (jurisdiction and activity are implicit).
|
|
115
|
-
*
|
|
116
|
-
* @param reportId - The report ID to validate
|
|
117
|
-
* @param defaults - JYS report defaults including rfc, alertType, etc.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* const result = await jysSdk.reports.validateReport(report.id, {
|
|
122
|
-
* rfc: "ABC200101XXX",
|
|
123
|
-
* alertType: "100",
|
|
124
|
-
* });
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
validateReport(reportId: string, defaults: JysReportDefaultsInput): Promise<ValidationResult>;
|
|
128
|
-
/**
|
|
129
|
-
* Generates XML for a JYS report.
|
|
130
|
-
*
|
|
131
|
-
* Uses the same input as validateReport.
|
|
132
|
-
*
|
|
133
|
-
* @param reportId - The report ID to generate XML for
|
|
134
|
-
* @param defaults - JYS report defaults including rfc, alertType, etc.
|
|
135
|
-
*/
|
|
136
|
-
generateReport(reportId: string, defaults: JysReportDefaultsInput): Promise<GenerateResult>;
|
|
137
|
-
/**
|
|
138
|
-
* Submits a validated JYS report.
|
|
139
|
-
*
|
|
140
|
-
* Uses JYS-scoped submission input (activity is implicit).
|
|
141
|
-
*/
|
|
142
|
-
submit(input: SubmitJYSSubmissionInput): Promise<SubmissionResult>;
|
|
143
|
-
/**
|
|
144
|
-
* Transforms a flattened JYSReportSort to nested ReportSort format.
|
|
145
|
-
*
|
|
146
|
-
* Maps flattened field names to their full API paths.
|
|
147
|
-
*/
|
|
148
|
-
protected applyScopeToSort(sort?: JYSReportSort): ReportSort | undefined;
|
|
149
|
-
protected transformToNested(data: CreateJYSReportInput): CreateReportInput;
|
|
150
|
-
/**
|
|
151
|
-
* Transforms JYS update input to nested API format.
|
|
152
|
-
*
|
|
153
|
-
* NOTE: Always includes `actividadVulnerable: { JYS: {} }` even if no
|
|
154
|
-
* JYS-specific fields are provided. This ensures that records touched via
|
|
155
|
-
* the JYS SDK can be filtered by `activityCodes: { in: ["JYS"] }`.
|
|
156
|
-
*/
|
|
157
|
-
protected transformUpdateToNested(data: UpdateJYSReportInput): UpdateReportInput;
|
|
158
|
-
protected instantiate(data: ReportData): MexJYSReport;
|
|
159
|
-
protected instantiateItem(data: ReportItemData): MexJYSReportItem;
|
|
160
|
-
protected transformItemToNested(data: CreateJYSReportItemInput): CreateReportItemInput;
|
|
161
|
-
protected transformItemUpdateToNested(data: UpdateJYSReportItemInput): UpdateReportItemInput;
|
|
162
|
-
/**
|
|
163
|
-
* Transforms JYS defaults to nested API format for validate/generate.
|
|
164
|
-
*/
|
|
165
|
-
protected transformJysDefaultsToNested(reportId: string, defaults: JysReportDefaultsInput): {
|
|
166
|
-
reportId: string;
|
|
167
|
-
jurisdictions: unknown;
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/jys/reports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAEjB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACb,MAAM,iBAAiB,CAAC;AAazB,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,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UAAU,GAAG,YAAY;cAI3C,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB;IAI1E,SAAS,CAAC,qBAAqB,CAC7B,IAAI,EAAE,wBAAwB,GAC7B,qBAAqB;IAqBxB,SAAS,CAAC,2BAA2B,CACnC,IAAI,EAAE,wBAAwB,GAC7B,qBAAqB;IAyBxB;;OAEG;IACH,SAAS,CAAC,4BAA4B,CACpC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,sBAAsB,GAC/B;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE;CAmBhD"}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MJR (Metales y Joyas - Precious Metals and Jewelry) Reports Resource
|
|
3
|
-
*
|
|
4
|
-
* Extends MexReportsResource with MJR-specific behavior:
|
|
5
|
-
* - Accepts flattened CreateMJRReportInput (MJR fields at root level)
|
|
6
|
-
* - Returns MexMJRReport models
|
|
7
|
-
*/
|
|
8
|
-
import type { CreateReportInput, UpdateReportInput, CreateReportItemInput, UpdateReportItemInput, CreateMJRReportInput, UpdateMJRReportInput, UpsertMJRReportInput, CreateMJRReportItemInput, UpdateMJRReportItemInput, ListOptions, PaginatedResponse, AtomicBatchResult, PartialBatchResult, MjrReportDefaultsInput, ValidationResult, GenerateResult, SubmissionResult, SubmitMJRSubmissionInput, UpsertResult } from "@artu-ai/shared";
|
|
9
|
-
import type { MJRReportFilter, MJRReportSort, MJRReportItemFilter, ReportSort, ReportItemFilter, ReportItemSort } from "@artu-ai/shared";
|
|
10
|
-
import { MexReportsResource } from "../../reports";
|
|
11
|
-
import { MexMJRReport, MexMJRReportItem, type ReportData, type ReportItemData } from "../../../../models";
|
|
12
|
-
/**
|
|
13
|
-
* MJR (Metales y Joyas) scoped reports resource.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* const mjrSdk = new ComplianceSDK({
|
|
18
|
-
* apiKey,
|
|
19
|
-
* jurisdiction: Jurisdiction.Mexico,
|
|
20
|
-
* actividadVulnerable: CodigoActividad.MJR,
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* // Create with fully flattened input
|
|
24
|
-
* const report = await mjrSdk.reports.create({
|
|
25
|
-
* mesReportado: "202401",
|
|
26
|
-
* });
|
|
27
|
-
*
|
|
28
|
-
* // Returns MexMJRReport
|
|
29
|
-
* console.log(report.mesReportado);
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare class MJRReportsResource extends MexReportsResource<MJRReportSort, MjrReportDefaultsInput> {
|
|
33
|
-
create(data: CreateMJRReportInput): Promise<MexMJRReport>;
|
|
34
|
-
retrieve(id: string): Promise<MexMJRReport>;
|
|
35
|
-
retrieveByMetadata(key: string, value: string): Promise<MexMJRReport>;
|
|
36
|
-
retrieveByExternalId(externalId: string): Promise<MexMJRReport>;
|
|
37
|
-
update(id: string, data: UpdateMJRReportInput): Promise<MexMJRReport>;
|
|
38
|
-
/**
|
|
39
|
-
* Lists MJR reports with optional filtering.
|
|
40
|
-
*
|
|
41
|
-
* Accepts flattened MJR filter (future MJR-specific report fields at root level).
|
|
42
|
-
*/
|
|
43
|
-
list(options?: ListOptions<MJRReportFilter, MJRReportSort>): Promise<PaginatedResponse<MexMJRReport>>;
|
|
44
|
-
/**
|
|
45
|
-
* Iterates over MJR reports.
|
|
46
|
-
*
|
|
47
|
-
* Accepts flattened MJR filter (future MJR-specific report fields at root level).
|
|
48
|
-
*/
|
|
49
|
-
iterate(options?: {
|
|
50
|
-
filter?: MJRReportFilter;
|
|
51
|
-
sort?: MJRReportSort;
|
|
52
|
-
pageSize?: number;
|
|
53
|
-
}): AsyncGenerator<MexMJRReport, void, undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* Counts MJR reports matching the given filter.
|
|
56
|
-
*
|
|
57
|
-
* @param filter - Optional filter criteria (with MJR fields at root level)
|
|
58
|
-
* @returns The count of matching reports
|
|
59
|
-
*/
|
|
60
|
-
count(filter?: MJRReportFilter): Promise<number>;
|
|
61
|
-
createMany(reports: CreateMJRReportInput[], options?: {
|
|
62
|
-
atomic?: true;
|
|
63
|
-
}): Promise<AtomicBatchResult<MexMJRReport>>;
|
|
64
|
-
createMany(reports: CreateMJRReportInput[], options: {
|
|
65
|
-
atomic: false;
|
|
66
|
-
}): Promise<PartialBatchResult<MexMJRReport>>;
|
|
67
|
-
updateMany(updates: {
|
|
68
|
-
id: string;
|
|
69
|
-
data: UpdateMJRReportInput;
|
|
70
|
-
}[], options?: {
|
|
71
|
-
atomic?: true;
|
|
72
|
-
}): Promise<AtomicBatchResult<MexMJRReport>>;
|
|
73
|
-
updateMany(updates: {
|
|
74
|
-
id: string;
|
|
75
|
-
data: UpdateMJRReportInput;
|
|
76
|
-
}[], options: {
|
|
77
|
-
atomic: false;
|
|
78
|
-
}): Promise<PartialBatchResult<MexMJRReport>>;
|
|
79
|
-
/**
|
|
80
|
-
* Creates or updates a MJR report by externalId.
|
|
81
|
-
*
|
|
82
|
-
* @param data - Report upsert data with MJR fields at root level (must include externalId)
|
|
83
|
-
* @returns The created or updated report with action indicator
|
|
84
|
-
*/
|
|
85
|
-
upsertByExternalId(data: UpsertMJRReportInput): Promise<UpsertResult<MexMJRReport>>;
|
|
86
|
-
/**
|
|
87
|
-
* Creates or updates multiple MJR reports by externalId.
|
|
88
|
-
*
|
|
89
|
-
* @param reports - Array of report upsert data (each must include externalId)
|
|
90
|
-
* @param options - Batch options (atomic: true by default)
|
|
91
|
-
* @returns Atomic result with data array, or partial result with succeeded/failed
|
|
92
|
-
*/
|
|
93
|
-
upsertManyByExternalId(reports: UpsertMJRReportInput[], options?: {
|
|
94
|
-
atomic?: true;
|
|
95
|
-
}): Promise<AtomicBatchResult<UpsertResult<MexMJRReport>>>;
|
|
96
|
-
upsertManyByExternalId(reports: UpsertMJRReportInput[], options: {
|
|
97
|
-
atomic: false;
|
|
98
|
-
}): Promise<PartialBatchResult<UpsertResult<MexMJRReport>>>;
|
|
99
|
-
addItem(reportId: string, data: CreateMJRReportItemInput): Promise<MexMJRReportItem>;
|
|
100
|
-
getItem(reportId: string, itemId: string): Promise<MexMJRReportItem>;
|
|
101
|
-
updateItem(reportId: string, itemId: string, data: UpdateMJRReportItemInput): Promise<MexMJRReportItem>;
|
|
102
|
-
listItems(reportId: string, options?: ListOptions<MJRReportItemFilter, ReportItemSort>): Promise<PaginatedResponse<MexMJRReportItem>>;
|
|
103
|
-
/**
|
|
104
|
-
* Transforms a flattened MJRReportItemFilter to nested ReportItemFilter format.
|
|
105
|
-
*/
|
|
106
|
-
protected applyScopeToItemFilter(filter?: MJRReportItemFilter): ReportItemFilter | undefined;
|
|
107
|
-
addItems(reportId: string, items: CreateMJRReportItemInput[]): Promise<{
|
|
108
|
-
added: number;
|
|
109
|
-
items: MexMJRReportItem[];
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* Validates a MJR report.
|
|
113
|
-
*
|
|
114
|
-
* Uses MJR-scoped validation input (jurisdiction and activity are implicit).
|
|
115
|
-
*
|
|
116
|
-
* @param reportId - The report ID to validate
|
|
117
|
-
* @param defaults - MJR report defaults including rfc, alertType, etc.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* const result = await mjrSdk.reports.validateReport(report.id, {
|
|
122
|
-
* rfc: "ABC200101XXX",
|
|
123
|
-
* alertType: "100",
|
|
124
|
-
* });
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
validateReport(reportId: string, defaults: MjrReportDefaultsInput): Promise<ValidationResult>;
|
|
128
|
-
/**
|
|
129
|
-
* Generates XML for a MJR report.
|
|
130
|
-
*
|
|
131
|
-
* Uses the same input as validateReport.
|
|
132
|
-
*
|
|
133
|
-
* @param reportId - The report ID to generate XML for
|
|
134
|
-
* @param defaults - MJR report defaults including rfc, alertType, etc.
|
|
135
|
-
*/
|
|
136
|
-
generateReport(reportId: string, defaults: MjrReportDefaultsInput): Promise<GenerateResult>;
|
|
137
|
-
/**
|
|
138
|
-
* Submits a validated MJR report.
|
|
139
|
-
*
|
|
140
|
-
* Uses MJR-scoped submission input (activity is implicit).
|
|
141
|
-
*/
|
|
142
|
-
submit(input: SubmitMJRSubmissionInput): Promise<SubmissionResult>;
|
|
143
|
-
protected transformToNested(data: CreateMJRReportInput): CreateReportInput;
|
|
144
|
-
/**
|
|
145
|
-
* Transforms flattened MJR report update to nested API format.
|
|
146
|
-
*
|
|
147
|
-
* NOTE: Always includes `actividadVulnerable: { MJR: {} }` even if no
|
|
148
|
-
* MJR-specific fields are provided. This ensures that records touched via
|
|
149
|
-
* the MJR SDK can be filtered by `activityCodes: { in: ["MJR"] }`.
|
|
150
|
-
*/
|
|
151
|
-
protected transformUpdateToNested(data: UpdateMJRReportInput): UpdateReportInput;
|
|
152
|
-
protected instantiate(data: ReportData): MexMJRReport;
|
|
153
|
-
protected instantiateItem(data: ReportItemData): MexMJRReportItem;
|
|
154
|
-
protected transformItemToNested(data: CreateMJRReportItemInput): CreateReportItemInput;
|
|
155
|
-
protected transformItemUpdateToNested(data: UpdateMJRReportItemInput): UpdateReportItemInput;
|
|
156
|
-
/**
|
|
157
|
-
* Transforms a flattened MJRReportSort to nested ReportSort format.
|
|
158
|
-
*
|
|
159
|
-
* Maps flattened field names to their full API paths using MJR-specific field mapping.
|
|
160
|
-
*/
|
|
161
|
-
protected applyScopeToSort(sort?: MJRReportSort): ReportSort | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* Transforms MJR defaults to nested API format for validate/generate.
|
|
164
|
-
*/
|
|
165
|
-
protected transformMjrDefaultsToNested(reportId: string, defaults: MjrReportDefaultsInput): {
|
|
166
|
-
reportId: string;
|
|
167
|
-
jurisdictions: unknown;
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=reports.d.ts.map
|