@benup/bensdk 1.11.15 → 1.11.17
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/bin/lib/schemas/action.schema.d.ts +3423 -1190
- package/bin/lib/schemas/benefit-definition.schema.d.ts +94 -2
- package/bin/src/cli/templates/bensdk-lib/mocks/action.deduction.mock.ts +5 -2
- package/bin/src/cli/templates/bensdk-lib/mocks/action.grant.mock.ts +5 -2
- package/bin/src/cli/templates/bensdk-lib/mocks/action.recharge.mock.ts +2 -2
- package/bin/src/cli/templates/bensdk-lib/mocks/action.revoke.mock.ts +5 -2
- package/package.json +1 -1
|
@@ -61,6 +61,16 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
61
61
|
}, {
|
|
62
62
|
next?: string;
|
|
63
63
|
}>;
|
|
64
|
+
GUARDRAILS_CHECK: z.ZodObject<{
|
|
65
|
+
next: z.ZodString;
|
|
66
|
+
fail: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
next?: string;
|
|
69
|
+
fail?: string;
|
|
70
|
+
}, {
|
|
71
|
+
next?: string;
|
|
72
|
+
fail?: string;
|
|
73
|
+
}>;
|
|
64
74
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
65
75
|
REQUESTED_RECHARGE: z.ZodObject<{
|
|
66
76
|
next: z.ZodString;
|
|
@@ -69,6 +79,16 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
69
79
|
}, {
|
|
70
80
|
next?: string;
|
|
71
81
|
}>;
|
|
82
|
+
GUARDRAILS_CHECK: z.ZodObject<{
|
|
83
|
+
next: z.ZodString;
|
|
84
|
+
fail: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
next?: string;
|
|
87
|
+
fail?: string;
|
|
88
|
+
}, {
|
|
89
|
+
next?: string;
|
|
90
|
+
fail?: string;
|
|
91
|
+
}>;
|
|
72
92
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
73
93
|
REQUESTED_RECHARGE: z.ZodObject<{
|
|
74
94
|
next: z.ZodString;
|
|
@@ -77,6 +97,16 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
77
97
|
}, {
|
|
78
98
|
next?: string;
|
|
79
99
|
}>;
|
|
100
|
+
GUARDRAILS_CHECK: z.ZodObject<{
|
|
101
|
+
next: z.ZodString;
|
|
102
|
+
fail: z.ZodString;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
next?: string;
|
|
105
|
+
fail?: string;
|
|
106
|
+
}, {
|
|
107
|
+
next?: string;
|
|
108
|
+
fail?: string;
|
|
109
|
+
}>;
|
|
80
110
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
81
111
|
BEFORE_ALL_RECHARGE: z.ZodOptional<z.ZodObject<{
|
|
82
112
|
REQUESTED_BEFORE_ALL_RECHARGE: z.ZodObject<{
|
|
@@ -186,6 +216,16 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
186
216
|
}, {
|
|
187
217
|
next?: string;
|
|
188
218
|
}>;
|
|
219
|
+
GUARDRAILS_CHECK: z.ZodObject<{
|
|
220
|
+
next: z.ZodString;
|
|
221
|
+
fail: z.ZodString;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
next?: string;
|
|
224
|
+
fail?: string;
|
|
225
|
+
}, {
|
|
226
|
+
next?: string;
|
|
227
|
+
fail?: string;
|
|
228
|
+
}>;
|
|
189
229
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
190
230
|
REQUESTED_DEDUCTION: z.ZodObject<{
|
|
191
231
|
next: z.ZodString;
|
|
@@ -194,6 +234,16 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
194
234
|
}, {
|
|
195
235
|
next?: string;
|
|
196
236
|
}>;
|
|
237
|
+
GUARDRAILS_CHECK: z.ZodObject<{
|
|
238
|
+
next: z.ZodString;
|
|
239
|
+
fail: z.ZodString;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
next?: string;
|
|
242
|
+
fail?: string;
|
|
243
|
+
}, {
|
|
244
|
+
next?: string;
|
|
245
|
+
fail?: string;
|
|
246
|
+
}>;
|
|
197
247
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
198
248
|
REQUESTED_DEDUCTION: z.ZodObject<{
|
|
199
249
|
next: z.ZodString;
|
|
@@ -202,6 +252,16 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
202
252
|
}, {
|
|
203
253
|
next?: string;
|
|
204
254
|
}>;
|
|
255
|
+
GUARDRAILS_CHECK: z.ZodObject<{
|
|
256
|
+
next: z.ZodString;
|
|
257
|
+
fail: z.ZodString;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
next?: string;
|
|
260
|
+
fail?: string;
|
|
261
|
+
}, {
|
|
262
|
+
next?: string;
|
|
263
|
+
fail?: string;
|
|
264
|
+
}>;
|
|
205
265
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
206
266
|
DEDUCTION_FILE_INGESTION: z.ZodOptional<z.ZodObject<{
|
|
207
267
|
REQUESTED_DEDUCTION_FILE_INGESTION: z.ZodObject<{
|
|
@@ -254,6 +314,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
254
314
|
REQUESTED_RECHARGE?: {
|
|
255
315
|
next?: string;
|
|
256
316
|
};
|
|
317
|
+
GUARDRAILS_CHECK?: {
|
|
318
|
+
next?: string;
|
|
319
|
+
fail?: string;
|
|
320
|
+
};
|
|
257
321
|
} & {
|
|
258
322
|
[k: string]: unknown;
|
|
259
323
|
};
|
|
@@ -265,6 +329,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
265
329
|
[k: string]: any;
|
|
266
330
|
};
|
|
267
331
|
DEDUCTION?: {
|
|
332
|
+
GUARDRAILS_CHECK?: {
|
|
333
|
+
next?: string;
|
|
334
|
+
fail?: string;
|
|
335
|
+
};
|
|
268
336
|
REQUESTED_DEDUCTION?: {
|
|
269
337
|
next?: string;
|
|
270
338
|
};
|
|
@@ -318,6 +386,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
318
386
|
REQUESTED_RECHARGE?: {
|
|
319
387
|
next?: string;
|
|
320
388
|
};
|
|
389
|
+
GUARDRAILS_CHECK?: {
|
|
390
|
+
next?: string;
|
|
391
|
+
fail?: string;
|
|
392
|
+
};
|
|
321
393
|
} & {
|
|
322
394
|
[k: string]: unknown;
|
|
323
395
|
};
|
|
@@ -329,6 +401,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
329
401
|
[k: string]: any;
|
|
330
402
|
};
|
|
331
403
|
DEDUCTION?: {
|
|
404
|
+
GUARDRAILS_CHECK?: {
|
|
405
|
+
next?: string;
|
|
406
|
+
fail?: string;
|
|
407
|
+
};
|
|
332
408
|
REQUESTED_DEDUCTION?: {
|
|
333
409
|
next?: string;
|
|
334
410
|
};
|
|
@@ -360,8 +436,8 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
360
436
|
actions: z.ZodObject<{
|
|
361
437
|
eligibilityOptions: z.ZodObject<{
|
|
362
438
|
GRANT: z.ZodType<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>, z.ZodTypeDef, z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>>;
|
|
363
|
-
RECHARGE: z.ZodType<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>, z.ZodTypeDef, z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown
|
|
364
|
-
GRANT_DEPENDENT: z.ZodType<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>, z.ZodTypeDef, z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown
|
|
439
|
+
RECHARGE: z.ZodOptional<z.ZodType<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>, z.ZodTypeDef, z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>>>;
|
|
440
|
+
GRANT_DEPENDENT: z.ZodOptional<z.ZodType<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>, z.ZodTypeDef, z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>>>;
|
|
365
441
|
}, "strip", z.ZodTypeAny, {
|
|
366
442
|
GRANT?: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
367
443
|
RECHARGE?: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -469,6 +545,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
469
545
|
REQUESTED_RECHARGE?: {
|
|
470
546
|
next?: string;
|
|
471
547
|
};
|
|
548
|
+
GUARDRAILS_CHECK?: {
|
|
549
|
+
next?: string;
|
|
550
|
+
fail?: string;
|
|
551
|
+
};
|
|
472
552
|
} & {
|
|
473
553
|
[k: string]: unknown;
|
|
474
554
|
};
|
|
@@ -480,6 +560,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
480
560
|
[k: string]: any;
|
|
481
561
|
};
|
|
482
562
|
DEDUCTION?: {
|
|
563
|
+
GUARDRAILS_CHECK?: {
|
|
564
|
+
next?: string;
|
|
565
|
+
fail?: string;
|
|
566
|
+
};
|
|
483
567
|
REQUESTED_DEDUCTION?: {
|
|
484
568
|
next?: string;
|
|
485
569
|
};
|
|
@@ -556,6 +640,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
556
640
|
REQUESTED_RECHARGE?: {
|
|
557
641
|
next?: string;
|
|
558
642
|
};
|
|
643
|
+
GUARDRAILS_CHECK?: {
|
|
644
|
+
next?: string;
|
|
645
|
+
fail?: string;
|
|
646
|
+
};
|
|
559
647
|
} & {
|
|
560
648
|
[k: string]: unknown;
|
|
561
649
|
};
|
|
@@ -567,6 +655,10 @@ export declare const BenefitDefinitionSchema: z.ZodObject<{
|
|
|
567
655
|
[k: string]: any;
|
|
568
656
|
};
|
|
569
657
|
DEDUCTION?: {
|
|
658
|
+
GUARDRAILS_CHECK?: {
|
|
659
|
+
next?: string;
|
|
660
|
+
fail?: string;
|
|
661
|
+
};
|
|
570
662
|
REQUESTED_DEDUCTION?: {
|
|
571
663
|
next?: string;
|
|
572
664
|
};
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
value: false,
|
|
155
155
|
isEligible: false,
|
|
156
156
|
statusOriginID: '',
|
|
157
|
-
|
|
157
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
},
|
|
@@ -196,6 +196,7 @@ export default {
|
|
|
196
196
|
eligibility: [
|
|
197
197
|
{
|
|
198
198
|
benefitID: 'FLEURY_CHECKUP',
|
|
199
|
+
isGrantRevokeEnabled: true,
|
|
199
200
|
eligibilityType: 'BENEFIT',
|
|
200
201
|
options: {
|
|
201
202
|
contractID: '47d9b27a-1933-47d5-856b-6b827cb43d2c'
|
|
@@ -215,6 +216,7 @@ export default {
|
|
|
215
216
|
},
|
|
216
217
|
{
|
|
217
218
|
benefitID: 'FLEURY_CHECKUP',
|
|
219
|
+
isGrantRevokeEnabled: true,
|
|
218
220
|
eligibilityType: 'BENEFIT',
|
|
219
221
|
options: {
|
|
220
222
|
contractID: '47d9b27a-1933-47d5-856b-6b827cb43d2c'
|
|
@@ -234,6 +236,7 @@ export default {
|
|
|
234
236
|
},
|
|
235
237
|
{
|
|
236
238
|
benefitID: 'FLEURY_TELEMEDICINA',
|
|
239
|
+
isGrantRevokeEnabled: true,
|
|
237
240
|
eligibilityType: 'BENEFIT',
|
|
238
241
|
options: {
|
|
239
242
|
contractID: '06f5c5c3-8b5d-4df5-a8ab-d671a5752c11'
|
|
@@ -277,7 +280,7 @@ export default {
|
|
|
277
280
|
value: false,
|
|
278
281
|
isEligible: false,
|
|
279
282
|
statusOriginID: '',
|
|
280
|
-
|
|
283
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
281
284
|
}
|
|
282
285
|
},
|
|
283
286
|
isDeleted: false,
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
value: false,
|
|
155
155
|
isEligible: false,
|
|
156
156
|
statusOriginID: '',
|
|
157
|
-
|
|
157
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
},
|
|
@@ -196,6 +196,7 @@ export default {
|
|
|
196
196
|
eligibility: [
|
|
197
197
|
{
|
|
198
198
|
benefitID: 'FLEURY_CHECKUP',
|
|
199
|
+
isGrantRevokeEnabled: true,
|
|
199
200
|
eligibilityType: 'BENEFIT',
|
|
200
201
|
options: {
|
|
201
202
|
contractID: '47d9b27a-1933-47d5-856b-6b827cb43d2c'
|
|
@@ -215,6 +216,7 @@ export default {
|
|
|
215
216
|
},
|
|
216
217
|
{
|
|
217
218
|
benefitID: 'FLEURY_CHECKUP',
|
|
219
|
+
isGrantRevokeEnabled: true,
|
|
218
220
|
eligibilityType: 'BENEFIT',
|
|
219
221
|
options: {
|
|
220
222
|
contractID: '47d9b27a-1933-47d5-856b-6b827cb43d2c'
|
|
@@ -234,6 +236,7 @@ export default {
|
|
|
234
236
|
},
|
|
235
237
|
{
|
|
236
238
|
benefitID: 'FLEURY_TELEMEDICINA',
|
|
239
|
+
isGrantRevokeEnabled: true,
|
|
237
240
|
eligibilityType: 'BENEFIT',
|
|
238
241
|
options: {
|
|
239
242
|
contractID: '06f5c5c3-8b5d-4df5-a8ab-d671a5752c11'
|
|
@@ -277,7 +280,7 @@ export default {
|
|
|
277
280
|
value: false,
|
|
278
281
|
isEligible: false,
|
|
279
282
|
statusOriginID: '',
|
|
280
|
-
|
|
283
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
281
284
|
}
|
|
282
285
|
},
|
|
283
286
|
isDeleted: false,
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
value: false,
|
|
155
155
|
isEligible: false,
|
|
156
156
|
statusOriginID: '',
|
|
157
|
-
|
|
157
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
},
|
|
@@ -219,7 +219,7 @@ export default {
|
|
|
219
219
|
value: false,
|
|
220
220
|
isEligible: false,
|
|
221
221
|
statusOriginID: '',
|
|
222
|
-
|
|
222
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
avaliableDocuments: [],
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
value: false,
|
|
155
155
|
isEligible: false,
|
|
156
156
|
statusOriginID: '',
|
|
157
|
-
|
|
157
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
},
|
|
@@ -197,6 +197,7 @@ export default {
|
|
|
197
197
|
{
|
|
198
198
|
benefitID: 'FLEURY_CHECKUP',
|
|
199
199
|
eligibilityType: 'BENEFIT',
|
|
200
|
+
isGrantRevokeEnabled: true,
|
|
200
201
|
options: {
|
|
201
202
|
contractID: '47d9b27a-1933-47d5-856b-6b827cb43d2c'
|
|
202
203
|
},
|
|
@@ -215,6 +216,7 @@ export default {
|
|
|
215
216
|
},
|
|
216
217
|
{
|
|
217
218
|
benefitID: 'FLEURY_CHECKUP',
|
|
219
|
+
isGrantRevokeEnabled: true,
|
|
218
220
|
eligibilityType: 'BENEFIT',
|
|
219
221
|
options: {
|
|
220
222
|
contractID: '47d9b27a-1933-47d5-856b-6b827cb43d2c'
|
|
@@ -234,6 +236,7 @@ export default {
|
|
|
234
236
|
},
|
|
235
237
|
{
|
|
236
238
|
benefitID: 'FLEURY_TELEMEDICINA',
|
|
239
|
+
isGrantRevokeEnabled: true,
|
|
237
240
|
eligibilityType: 'BENEFIT',
|
|
238
241
|
options: {
|
|
239
242
|
contractID: '06f5c5c3-8b5d-4df5-a8ab-d671a5752c11'
|
|
@@ -277,7 +280,7 @@ export default {
|
|
|
277
280
|
value: false,
|
|
278
281
|
isEligible: false,
|
|
279
282
|
statusOriginID: '',
|
|
280
|
-
|
|
283
|
+
lastUpdatedAt: new Date('2025-05-29T15:05:10.431+0000').toISOString()
|
|
281
284
|
}
|
|
282
285
|
},
|
|
283
286
|
isDeleted: false,
|