@artu-ai/compliance-sdk 0.10.2 → 0.10.3
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/resources/alert-items.d.ts +55 -0
- package/dist/resources/alert-items.d.ts.map +1 -0
- package/dist/resources/alert-items.js +86 -0
- package/dist/resources/alerts.d.ts +20 -1
- package/dist/resources/alerts.d.ts.map +1 -1
- package/dist/resources/alerts.js +27 -0
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/alerts.d.ts +147 -1
- package/dist/resources/mex/actividad-vulnerable/avi/alerts.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/avi/alerts.js +7 -0
- package/dist/resources/mex/actividad-vulnerable/jys/alerts.d.ts +147 -1
- package/dist/resources/mex/actividad-vulnerable/jys/alerts.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/jys/alerts.js +7 -0
- package/dist/resources/mex/actividad-vulnerable/mjr/alerts.d.ts +147 -1
- package/dist/resources/mex/actividad-vulnerable/mjr/alerts.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/mjr/alerts.js +7 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/alerts.d.ts +147 -1
- package/dist/resources/mex/actividad-vulnerable/tsc/alerts.d.ts.map +1 -1
- package/dist/resources/mex/actividad-vulnerable/tsc/alerts.js +7 -0
- package/dist/resources/mex/alerts.d.ts +1 -1
- package/dist/resources/mex/alerts.d.ts.map +1 -1
- package/dist/resources/mex/cnbv/transmisor/alerts.d.ts +136 -1
- package/dist/resources/mex/cnbv/transmisor/alerts.d.ts.map +1 -1
- package/dist/resources/mex/cnbv/transmisor/alerts.js +7 -0
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ import type { CreateAlertInput, UpdateAlertInput, CreateAlertItemInput, UpdateAl
|
|
|
9
9
|
import { ReportType } from "@artu-ai/shared";
|
|
10
10
|
import type { JYSAlertFilter, JYSAlertSort, JYSAlertItemFilter, AlertSort, AlertItemFilter, AlertItemSort } from "@artu-ai/shared";
|
|
11
11
|
import { MexAlertsResource } from "../../alerts";
|
|
12
|
+
import { AlertItemsResource } from "../../../alert-items";
|
|
12
13
|
import { MexJYSAlert, MexJYSAlertItem, type AlertData, type AlertItemData } from "../../../../models";
|
|
13
14
|
/**
|
|
14
15
|
* JYS (Juegos y Sorteos) scoped alerts resource.
|
|
@@ -30,7 +31,7 @@ import { MexJYSAlert, MexJYSAlertItem, type AlertData, type AlertItemData } from
|
|
|
30
31
|
* console.log(alert.mesReportado);
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
export declare class JYSAlertsResource extends MexAlertsResource<JYSAlertSort, JysAlertDefaultsInput> {
|
|
34
|
+
export declare class JYSAlertsResource extends MexAlertsResource<JYSAlertSort, JysAlertDefaultsInput, MexJYSAlertItem, JYSAlertItemFilter> {
|
|
34
35
|
create(data: CreateJYSAlertInput): Promise<MexJYSAlert>;
|
|
35
36
|
retrieve(id: string): Promise<MexJYSAlert>;
|
|
36
37
|
retrieveByMetadata(key: string, value: string): Promise<MexJYSAlert>;
|
|
@@ -109,6 +110,151 @@ export declare class JYSAlertsResource extends MexAlertsResource<JYSAlertSort, J
|
|
|
109
110
|
added: number;
|
|
110
111
|
items: MexJYSAlertItem[];
|
|
111
112
|
}>;
|
|
113
|
+
protected createItemsResource(): AlertItemsResource<MexJYSAlertItem, {
|
|
114
|
+
clientId?: string | {
|
|
115
|
+
eq?: string | undefined;
|
|
116
|
+
in?: string[] | undefined;
|
|
117
|
+
nin?: string[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
createdAt?: string | {
|
|
120
|
+
eq?: string | undefined;
|
|
121
|
+
gt?: string | undefined;
|
|
122
|
+
gte?: string | undefined;
|
|
123
|
+
lt?: string | undefined;
|
|
124
|
+
lte?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
updatedAt?: string | {
|
|
127
|
+
eq?: string | undefined;
|
|
128
|
+
gt?: string | undefined;
|
|
129
|
+
gte?: string | undefined;
|
|
130
|
+
lt?: string | undefined;
|
|
131
|
+
lte?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
metadataFilters?: {
|
|
134
|
+
key: string;
|
|
135
|
+
value: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
alertId?: string | {
|
|
138
|
+
eq?: string | undefined;
|
|
139
|
+
in?: string[] | undefined;
|
|
140
|
+
nin?: string[] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
transactionId?: string | {
|
|
143
|
+
eq?: string | undefined;
|
|
144
|
+
in?: string[] | undefined;
|
|
145
|
+
nin?: string[] | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
hasErrors?: boolean | undefined;
|
|
148
|
+
clientNames?: string | {
|
|
149
|
+
eq?: string | undefined;
|
|
150
|
+
contains?: string | undefined;
|
|
151
|
+
startsWith?: string | undefined;
|
|
152
|
+
endsWith?: string | undefined;
|
|
153
|
+
in?: string[] | undefined;
|
|
154
|
+
nin?: string[] | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
transactionAmount?: number | {
|
|
157
|
+
eq?: number | undefined;
|
|
158
|
+
gt?: number | undefined;
|
|
159
|
+
gte?: number | undefined;
|
|
160
|
+
lt?: number | undefined;
|
|
161
|
+
lte?: number | undefined;
|
|
162
|
+
in?: number[] | undefined;
|
|
163
|
+
nin?: number[] | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
transactionCurrency?: string | {
|
|
166
|
+
eq?: string | undefined;
|
|
167
|
+
in?: string[] | undefined;
|
|
168
|
+
nin?: string[] | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
transactionDate?: string | {
|
|
171
|
+
eq?: string | undefined;
|
|
172
|
+
gt?: string | undefined;
|
|
173
|
+
gte?: string | undefined;
|
|
174
|
+
lt?: string | undefined;
|
|
175
|
+
lte?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
actividadVulnerable?: {
|
|
178
|
+
AVI?: {
|
|
179
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta | {
|
|
180
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta | undefined;
|
|
181
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta[] | undefined;
|
|
182
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta[] | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
alertDescription?: string | {
|
|
185
|
+
eq?: string | undefined;
|
|
186
|
+
contains?: string | undefined;
|
|
187
|
+
startsWith?: string | undefined;
|
|
188
|
+
endsWith?: string | undefined;
|
|
189
|
+
in?: string[] | undefined;
|
|
190
|
+
nin?: string[] | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
JYS?: {
|
|
194
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | {
|
|
195
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | undefined;
|
|
196
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
197
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
alertDescription?: string | {
|
|
200
|
+
eq?: string | undefined;
|
|
201
|
+
contains?: string | undefined;
|
|
202
|
+
startsWith?: string | undefined;
|
|
203
|
+
endsWith?: string | undefined;
|
|
204
|
+
in?: string[] | undefined;
|
|
205
|
+
nin?: string[] | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
MJR?: {
|
|
209
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | {
|
|
210
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | undefined;
|
|
211
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
212
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
alertDescription?: string | {
|
|
215
|
+
eq?: string | undefined;
|
|
216
|
+
contains?: string | undefined;
|
|
217
|
+
startsWith?: string | undefined;
|
|
218
|
+
endsWith?: string | undefined;
|
|
219
|
+
in?: string[] | undefined;
|
|
220
|
+
nin?: string[] | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
TSC?: {
|
|
224
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | {
|
|
225
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | undefined;
|
|
226
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
227
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
alertDescription?: string | {
|
|
230
|
+
eq?: string | undefined;
|
|
231
|
+
contains?: string | undefined;
|
|
232
|
+
startsWith?: string | undefined;
|
|
233
|
+
endsWith?: string | undefined;
|
|
234
|
+
in?: string[] | undefined;
|
|
235
|
+
nin?: string[] | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
cnbv?: {
|
|
240
|
+
TRANSMISOR?: {
|
|
241
|
+
isPrimary?: boolean | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | {
|
|
245
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | undefined;
|
|
246
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
247
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
alertDescription?: string | {
|
|
250
|
+
eq?: string | undefined;
|
|
251
|
+
contains?: string | undefined;
|
|
252
|
+
startsWith?: string | undefined;
|
|
253
|
+
endsWith?: string | undefined;
|
|
254
|
+
in?: string[] | undefined;
|
|
255
|
+
nin?: string[] | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
}>;
|
|
112
258
|
/**
|
|
113
259
|
* Validates a JYS alert.
|
|
114
260
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/jys/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,UAAU,EASV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,aAAa,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/jys/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,UAAU,EASV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,aAAa,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EACN,WAAW,EACX,eAAe,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,MAAM,oBAAoB,CAAC;AAM5B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,iBAAkB,SAAQ,iBAAiB,CACvD,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,kBAAkB,CAClB;IAKM,MAAM,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC;IAWvD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAO1C,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAOpE,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAO9D,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI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chema, updateJYSAlertItemInputSchema, jysDefaultsInputSchema, transformSort, jysAlertFieldMapping, } from "@artu-ai/shared";
|
|
10
10
|
import { MexAlertsResource } from "../../alerts";
|
|
11
|
+
import { AlertItemsResource } from "../../../alert-items";
|
|
11
12
|
import { MexJYSAlert, MexJYSAlertItem, } from "../../../../models";
|
|
12
13
|
// ===========================
|
|
13
14
|
// JYSAlertsResource
|
|
@@ -280,6 +281,12 @@ export class JYSAlertsResource extends MexAlertsResource {
|
|
|
280
281
|
};
|
|
281
282
|
}
|
|
282
283
|
// ─────────────────────────────────────────────────────────────────
|
|
284
|
+
// Sub-resource Factory
|
|
285
|
+
// ─────────────────────────────────────────────────────────────────
|
|
286
|
+
createItemsResource() {
|
|
287
|
+
return new AlertItemsResource(this.trpc, (data) => this.instantiateItem(data), (filter) => this.applyScopeToItemFilter(filter));
|
|
288
|
+
}
|
|
289
|
+
// ─────────────────────────────────────────────────────────────────
|
|
283
290
|
// Validation
|
|
284
291
|
// ─────────────────────────────────────────────────────────────────
|
|
285
292
|
/**
|
|
@@ -9,6 +9,7 @@ import type { CreateAlertInput, UpdateAlertInput, CreateAlertItemInput, UpdateAl
|
|
|
9
9
|
import { ReportType } from "@artu-ai/shared";
|
|
10
10
|
import type { MJRAlertFilter, MJRAlertSort, MJRAlertItemFilter, AlertSort, AlertItemFilter, AlertItemSort } from "@artu-ai/shared";
|
|
11
11
|
import { MexAlertsResource } from "../../alerts";
|
|
12
|
+
import { AlertItemsResource } from "../../../alert-items";
|
|
12
13
|
import { MexMJRAlert, MexMJRAlertItem, type AlertData, type AlertItemData } from "../../../../models";
|
|
13
14
|
/**
|
|
14
15
|
* MJR (Metales y Joyas) scoped alerts resource.
|
|
@@ -30,7 +31,7 @@ import { MexMJRAlert, MexMJRAlertItem, type AlertData, type AlertItemData } from
|
|
|
30
31
|
* console.log(alert.mesReportado);
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
export declare class MJRAlertsResource extends MexAlertsResource<MJRAlertSort, MjrAlertDefaultsInput> {
|
|
34
|
+
export declare class MJRAlertsResource extends MexAlertsResource<MJRAlertSort, MjrAlertDefaultsInput, MexMJRAlertItem, MJRAlertItemFilter> {
|
|
34
35
|
create(data: CreateMJRAlertInput): Promise<MexMJRAlert>;
|
|
35
36
|
retrieve(id: string): Promise<MexMJRAlert>;
|
|
36
37
|
retrieveByMetadata(key: string, value: string): Promise<MexMJRAlert>;
|
|
@@ -109,6 +110,151 @@ export declare class MJRAlertsResource extends MexAlertsResource<MJRAlertSort, M
|
|
|
109
110
|
added: number;
|
|
110
111
|
items: MexMJRAlertItem[];
|
|
111
112
|
}>;
|
|
113
|
+
protected createItemsResource(): AlertItemsResource<MexMJRAlertItem, {
|
|
114
|
+
clientId?: string | {
|
|
115
|
+
eq?: string | undefined;
|
|
116
|
+
in?: string[] | undefined;
|
|
117
|
+
nin?: string[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
createdAt?: string | {
|
|
120
|
+
eq?: string | undefined;
|
|
121
|
+
gt?: string | undefined;
|
|
122
|
+
gte?: string | undefined;
|
|
123
|
+
lt?: string | undefined;
|
|
124
|
+
lte?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
updatedAt?: string | {
|
|
127
|
+
eq?: string | undefined;
|
|
128
|
+
gt?: string | undefined;
|
|
129
|
+
gte?: string | undefined;
|
|
130
|
+
lt?: string | undefined;
|
|
131
|
+
lte?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
metadataFilters?: {
|
|
134
|
+
key: string;
|
|
135
|
+
value: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
alertId?: string | {
|
|
138
|
+
eq?: string | undefined;
|
|
139
|
+
in?: string[] | undefined;
|
|
140
|
+
nin?: string[] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
transactionId?: string | {
|
|
143
|
+
eq?: string | undefined;
|
|
144
|
+
in?: string[] | undefined;
|
|
145
|
+
nin?: string[] | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
hasErrors?: boolean | undefined;
|
|
148
|
+
clientNames?: string | {
|
|
149
|
+
eq?: string | undefined;
|
|
150
|
+
contains?: string | undefined;
|
|
151
|
+
startsWith?: string | undefined;
|
|
152
|
+
endsWith?: string | undefined;
|
|
153
|
+
in?: string[] | undefined;
|
|
154
|
+
nin?: string[] | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
transactionAmount?: number | {
|
|
157
|
+
eq?: number | undefined;
|
|
158
|
+
gt?: number | undefined;
|
|
159
|
+
gte?: number | undefined;
|
|
160
|
+
lt?: number | undefined;
|
|
161
|
+
lte?: number | undefined;
|
|
162
|
+
in?: number[] | undefined;
|
|
163
|
+
nin?: number[] | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
transactionCurrency?: string | {
|
|
166
|
+
eq?: string | undefined;
|
|
167
|
+
in?: string[] | undefined;
|
|
168
|
+
nin?: string[] | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
transactionDate?: string | {
|
|
171
|
+
eq?: string | undefined;
|
|
172
|
+
gt?: string | undefined;
|
|
173
|
+
gte?: string | undefined;
|
|
174
|
+
lt?: string | undefined;
|
|
175
|
+
lte?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
actividadVulnerable?: {
|
|
178
|
+
AVI?: {
|
|
179
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta | {
|
|
180
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta | undefined;
|
|
181
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta[] | undefined;
|
|
182
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta[] | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
alertDescription?: string | {
|
|
185
|
+
eq?: string | undefined;
|
|
186
|
+
contains?: string | undefined;
|
|
187
|
+
startsWith?: string | undefined;
|
|
188
|
+
endsWith?: string | undefined;
|
|
189
|
+
in?: string[] | undefined;
|
|
190
|
+
nin?: string[] | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
JYS?: {
|
|
194
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | {
|
|
195
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | undefined;
|
|
196
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
197
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
alertDescription?: string | {
|
|
200
|
+
eq?: string | undefined;
|
|
201
|
+
contains?: string | undefined;
|
|
202
|
+
startsWith?: string | undefined;
|
|
203
|
+
endsWith?: string | undefined;
|
|
204
|
+
in?: string[] | undefined;
|
|
205
|
+
nin?: string[] | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
MJR?: {
|
|
209
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | {
|
|
210
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | undefined;
|
|
211
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
212
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
alertDescription?: string | {
|
|
215
|
+
eq?: string | undefined;
|
|
216
|
+
contains?: string | undefined;
|
|
217
|
+
startsWith?: string | undefined;
|
|
218
|
+
endsWith?: string | undefined;
|
|
219
|
+
in?: string[] | undefined;
|
|
220
|
+
nin?: string[] | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
TSC?: {
|
|
224
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | {
|
|
225
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | undefined;
|
|
226
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
227
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
alertDescription?: string | {
|
|
230
|
+
eq?: string | undefined;
|
|
231
|
+
contains?: string | undefined;
|
|
232
|
+
startsWith?: string | undefined;
|
|
233
|
+
endsWith?: string | undefined;
|
|
234
|
+
in?: string[] | undefined;
|
|
235
|
+
nin?: string[] | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
cnbv?: {
|
|
240
|
+
TRANSMISOR?: {
|
|
241
|
+
isPrimary?: boolean | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | {
|
|
245
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | undefined;
|
|
246
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
247
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
alertDescription?: string | {
|
|
250
|
+
eq?: string | undefined;
|
|
251
|
+
contains?: string | undefined;
|
|
252
|
+
startsWith?: string | undefined;
|
|
253
|
+
endsWith?: string | undefined;
|
|
254
|
+
in?: string[] | undefined;
|
|
255
|
+
nin?: string[] | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
}>;
|
|
112
258
|
/**
|
|
113
259
|
* Validates a MJR alert.
|
|
114
260
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/mjr/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,UAAU,EASV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,aAAa,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/mjr/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,UAAU,EASV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,cAAc,EACd,Y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;;;;OAMG;cACgB,uBAAuB,CACzC,IAAI,EAAE,mBAAmB,GACvB,gBAAgB;cAcA,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW;cAIzC,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,eAAe;IAIxE,SAAS,CAAC,qBAAqB,CAC9B,IAAI,EAAE,uBAAuB,GAC3B,oBAAoB;IAqBvB,SAAS,CAAC,2BAA2B,CACpC,IAAI,EAAE,uBAAuB,GAC3B,oBAAoB;IAyBvB;;;;OAIG;cACgB,gBAAgB,CAClC,IAAI,CAAC,EAAE,YAAY,GACjB,SAAS,GAAG,SAAS;IAOxB;;OAEG;IACH,SAAS,CAAC,4BAA4B,CACrC,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,qBAAqB,GAC9B;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE;CA6BlE"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { CodigoActividad, ReportType, createMJRAlertInputSchema, updateMJRAlertInputSchema, upsertMJRAlertInputSchema, createMJRAlertItemInputSchema, updateMJRAlertItemInputSchema, mjrDefaultsInputSchema, transformSort, mjrAlertFieldMapping, } from "@artu-ai/shared";
|
|
10
10
|
import { MexAlertsResource } from "../../alerts";
|
|
11
|
+
import { AlertItemsResource } from "../../../alert-items";
|
|
11
12
|
import { MexMJRAlert, MexMJRAlertItem, } from "../../../../models";
|
|
12
13
|
// ===========================
|
|
13
14
|
// MJRAlertsResource
|
|
@@ -280,6 +281,12 @@ export class MJRAlertsResource extends MexAlertsResource {
|
|
|
280
281
|
};
|
|
281
282
|
}
|
|
282
283
|
// ─────────────────────────────────────────────────────────────────
|
|
284
|
+
// Sub-resource Factory
|
|
285
|
+
// ─────────────────────────────────────────────────────────────────
|
|
286
|
+
createItemsResource() {
|
|
287
|
+
return new AlertItemsResource(this.trpc, (data) => this.instantiateItem(data), (filter) => this.applyScopeToItemFilter(filter));
|
|
288
|
+
}
|
|
289
|
+
// ─────────────────────────────────────────────────────────────────
|
|
283
290
|
// Validation
|
|
284
291
|
// ─────────────────────────────────────────────────────────────────
|
|
285
292
|
/**
|
|
@@ -9,6 +9,7 @@ import type { CreateAlertInput, UpdateAlertInput, CreateAlertItemInput, UpdateAl
|
|
|
9
9
|
import { ReportType } from "@artu-ai/shared";
|
|
10
10
|
import type { TSCAlertFilter, TSCAlertSort, TSCAlertItemFilter, AlertSort, AlertItemFilter, AlertItemSort } from "@artu-ai/shared";
|
|
11
11
|
import { MexAlertsResource } from "../../alerts";
|
|
12
|
+
import { AlertItemsResource } from "../../../alert-items";
|
|
12
13
|
import { MexTSCAlert, MexTSCAlertItem, type AlertData, type AlertItemData } from "../../../../models";
|
|
13
14
|
/**
|
|
14
15
|
* TSC (Tarjetas de Servicio y Crédito) scoped alerts resource.
|
|
@@ -30,7 +31,7 @@ import { MexTSCAlert, MexTSCAlertItem, type AlertData, type AlertItemData } from
|
|
|
30
31
|
* console.log(alert.mesReportado);
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
export declare class TSCAlertsResource extends MexAlertsResource<TSCAlertSort, TscAlertDefaultsInput> {
|
|
34
|
+
export declare class TSCAlertsResource extends MexAlertsResource<TSCAlertSort, TscAlertDefaultsInput, MexTSCAlertItem, TSCAlertItemFilter> {
|
|
34
35
|
create(data: CreateTSCAlertInput): Promise<MexTSCAlert>;
|
|
35
36
|
retrieve(id: string): Promise<MexTSCAlert>;
|
|
36
37
|
retrieveByMetadata(key: string, value: string): Promise<MexTSCAlert>;
|
|
@@ -109,6 +110,151 @@ export declare class TSCAlertsResource extends MexAlertsResource<TSCAlertSort, T
|
|
|
109
110
|
added: number;
|
|
110
111
|
items: MexTSCAlertItem[];
|
|
111
112
|
}>;
|
|
113
|
+
protected createItemsResource(): AlertItemsResource<MexTSCAlertItem, {
|
|
114
|
+
clientId?: string | {
|
|
115
|
+
eq?: string | undefined;
|
|
116
|
+
in?: string[] | undefined;
|
|
117
|
+
nin?: string[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
createdAt?: string | {
|
|
120
|
+
eq?: string | undefined;
|
|
121
|
+
gt?: string | undefined;
|
|
122
|
+
gte?: string | undefined;
|
|
123
|
+
lt?: string | undefined;
|
|
124
|
+
lte?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
updatedAt?: string | {
|
|
127
|
+
eq?: string | undefined;
|
|
128
|
+
gt?: string | undefined;
|
|
129
|
+
gte?: string | undefined;
|
|
130
|
+
lt?: string | undefined;
|
|
131
|
+
lte?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
metadataFilters?: {
|
|
134
|
+
key: string;
|
|
135
|
+
value: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
alertId?: string | {
|
|
138
|
+
eq?: string | undefined;
|
|
139
|
+
in?: string[] | undefined;
|
|
140
|
+
nin?: string[] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
transactionId?: string | {
|
|
143
|
+
eq?: string | undefined;
|
|
144
|
+
in?: string[] | undefined;
|
|
145
|
+
nin?: string[] | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
hasErrors?: boolean | undefined;
|
|
148
|
+
clientNames?: string | {
|
|
149
|
+
eq?: string | undefined;
|
|
150
|
+
contains?: string | undefined;
|
|
151
|
+
startsWith?: string | undefined;
|
|
152
|
+
endsWith?: string | undefined;
|
|
153
|
+
in?: string[] | undefined;
|
|
154
|
+
nin?: string[] | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
transactionAmount?: number | {
|
|
157
|
+
eq?: number | undefined;
|
|
158
|
+
gt?: number | undefined;
|
|
159
|
+
gte?: number | undefined;
|
|
160
|
+
lt?: number | undefined;
|
|
161
|
+
lte?: number | undefined;
|
|
162
|
+
in?: number[] | undefined;
|
|
163
|
+
nin?: number[] | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
transactionCurrency?: string | {
|
|
166
|
+
eq?: string | undefined;
|
|
167
|
+
in?: string[] | undefined;
|
|
168
|
+
nin?: string[] | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
transactionDate?: string | {
|
|
171
|
+
eq?: string | undefined;
|
|
172
|
+
gt?: string | undefined;
|
|
173
|
+
gte?: string | undefined;
|
|
174
|
+
lt?: string | undefined;
|
|
175
|
+
lte?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
actividadVulnerable?: {
|
|
178
|
+
AVI?: {
|
|
179
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta | {
|
|
180
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta | undefined;
|
|
181
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta[] | undefined;
|
|
182
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/avi/index").TipoAlerta[] | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
alertDescription?: string | {
|
|
185
|
+
eq?: string | undefined;
|
|
186
|
+
contains?: string | undefined;
|
|
187
|
+
startsWith?: string | undefined;
|
|
188
|
+
endsWith?: string | undefined;
|
|
189
|
+
in?: string[] | undefined;
|
|
190
|
+
nin?: string[] | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
JYS?: {
|
|
194
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | {
|
|
195
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta | undefined;
|
|
196
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
197
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/jys/index").TipoAlerta[] | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
alertDescription?: string | {
|
|
200
|
+
eq?: string | undefined;
|
|
201
|
+
contains?: string | undefined;
|
|
202
|
+
startsWith?: string | undefined;
|
|
203
|
+
endsWith?: string | undefined;
|
|
204
|
+
in?: string[] | undefined;
|
|
205
|
+
nin?: string[] | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
MJR?: {
|
|
209
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | {
|
|
210
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta | undefined;
|
|
211
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
212
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/mjr/index").TipoAlerta[] | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
alertDescription?: string | {
|
|
215
|
+
eq?: string | undefined;
|
|
216
|
+
contains?: string | undefined;
|
|
217
|
+
startsWith?: string | undefined;
|
|
218
|
+
endsWith?: string | undefined;
|
|
219
|
+
in?: string[] | undefined;
|
|
220
|
+
nin?: string[] | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
TSC?: {
|
|
224
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | {
|
|
225
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | undefined;
|
|
226
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
227
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
alertDescription?: string | {
|
|
230
|
+
eq?: string | undefined;
|
|
231
|
+
contains?: string | undefined;
|
|
232
|
+
startsWith?: string | undefined;
|
|
233
|
+
endsWith?: string | undefined;
|
|
234
|
+
in?: string[] | undefined;
|
|
235
|
+
nin?: string[] | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
cnbv?: {
|
|
240
|
+
TRANSMISOR?: {
|
|
241
|
+
isPrimary?: boolean | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
alertType?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | {
|
|
245
|
+
eq?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta | undefined;
|
|
246
|
+
in?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
247
|
+
nin?: import("@artu-ai/shared/schemas/mex/actividad-vulnerable/tsc/index").TipoAlerta[] | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
alertDescription?: string | {
|
|
250
|
+
eq?: string | undefined;
|
|
251
|
+
contains?: string | undefined;
|
|
252
|
+
startsWith?: string | undefined;
|
|
253
|
+
endsWith?: string | undefined;
|
|
254
|
+
in?: string[] | undefined;
|
|
255
|
+
nin?: string[] | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
}>;
|
|
112
258
|
/**
|
|
113
259
|
* Validates a TSC alert.
|
|
114
260
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/tsc/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,UAAU,EASV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,aAAa,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../../../src/resources/mex/actividad-vulnerable/tsc/alerts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEN,UAAU,EASV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,aAAa,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EACN,WAAW,EACX,eAAe,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,MAAM,oBAAoB,CAAC;AAM5B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,iBAAkB,SAAQ,iBAAiB,CACvD,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,kBAAkB,CAClB;IAKM,MAAM,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,WAA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,CAAC,EAAE,qBAAqB,GAC9B;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE;CA6BlE"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { CodigoActividad, ReportType, createTSCAlertInputSchema, updateTSCAlertInputSchema, upsertTSCAlertInputSchema, createTSCAlertItemInputSchema, updateTSCAlertItemInputSchema, tscDefaultsInputSchema, transformSort, tscAlertFieldMapping, } from "@artu-ai/shared";
|
|
10
10
|
import { MexAlertsResource } from "../../alerts";
|
|
11
|
+
import { AlertItemsResource } from "../../../alert-items";
|
|
11
12
|
import { MexTSCAlert, MexTSCAlertItem, } from "../../../../models";
|
|
12
13
|
// ===========================
|
|
13
14
|
// TSCAlertsResource
|
|
@@ -280,6 +281,12 @@ export class TSCAlertsResource extends MexAlertsResource {
|
|
|
280
281
|
};
|
|
281
282
|
}
|
|
282
283
|
// ─────────────────────────────────────────────────────────────────
|
|
284
|
+
// Sub-resource Factory
|
|
285
|
+
// ─────────────────────────────────────────────────────────────────
|
|
286
|
+
createItemsResource() {
|
|
287
|
+
return new AlertItemsResource(this.trpc, (data) => this.instantiateItem(data), (filter) => this.applyScopeToItemFilter(filter));
|
|
288
|
+
}
|
|
289
|
+
// ─────────────────────────────────────────────────────────────────
|
|
283
290
|
// Validation
|
|
284
291
|
// ─────────────────────────────────────────────────────────────────
|
|
285
292
|
/**
|
|
@@ -40,7 +40,7 @@ import { type AlertItemFilter, type AlertItemSort, AlertsResource } from "../ale
|
|
|
40
40
|
* // data is MexAlert[]
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
export declare class MexAlertsResource<TSort = MexAlertSort, TDefaults = MexAlertDefaultsInput> extends AlertsResource<TSort, TDefaults> {
|
|
43
|
+
export declare class MexAlertsResource<TSort = MexAlertSort, TDefaults = MexAlertDefaultsInput, TItem extends MexAlertItem = MexAlertItem, TItemFilter = AlertItemFilter> extends AlertsResource<TSort, TDefaults, TItem, TItemFilter> {
|
|
44
44
|
/**
|
|
45
45
|
* Creates a new Mexico alert with flattened input.
|
|
46
46
|
*/
|