@benup/bensdk 1.6.0 → 1.6.2

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.
@@ -8027,16 +8027,16 @@ export declare const DeductionFileIngestionActionSchema: z.ZodObject<{
8027
8027
  name: z.ZodString;
8028
8028
  size: z.ZodNumber;
8029
8029
  type: z.ZodString;
8030
- url: z.ZodString;
8030
+ key: z.ZodString;
8031
8031
  }, "strip", z.ZodTypeAny, {
8032
8032
  name?: string;
8033
8033
  type?: string;
8034
- url?: string;
8034
+ key?: string;
8035
8035
  size?: number;
8036
8036
  }, {
8037
8037
  name?: string;
8038
8038
  type?: string;
8039
- url?: string;
8039
+ key?: string;
8040
8040
  size?: number;
8041
8041
  }>;
8042
8042
  ctx: z.ZodOptional<z.ZodObject<{
@@ -8354,7 +8354,7 @@ export declare const DeductionFileIngestionActionSchema: z.ZodObject<{
8354
8354
  deductionFileIngestionInput?: {
8355
8355
  name?: string;
8356
8356
  type?: string;
8357
- url?: string;
8357
+ key?: string;
8358
8358
  size?: number;
8359
8359
  };
8360
8360
  }, {
@@ -8620,7 +8620,7 @@ export declare const DeductionFileIngestionActionSchema: z.ZodObject<{
8620
8620
  deductionFileIngestionInput?: {
8621
8621
  name?: string;
8622
8622
  type?: string;
8623
- url?: string;
8623
+ key?: string;
8624
8624
  size?: number;
8625
8625
  };
8626
8626
  }>;
@@ -0,0 +1,3 @@
1
+ export type DeductionFileIngestionHelper = {
2
+ getDeductionUTF8ContentFromFile: (key: string) => Promise<string>;
3
+ };
@@ -5,6 +5,7 @@ import z from 'zod';
5
5
  import { HandlerResponse } from '../lib/consumer';
6
6
  import ActionConsumerMessageSchema from '../schemas/action-consumer/message.schema';
7
7
  import { BenefitDefinition } from './benefit-definition.types';
8
+ import { DeductionFileIngestionHelper } from './lib/deduction-file-ingestion.lib.type.js';
8
9
  export type MessageBody = z.infer<typeof ActionConsumerMessageSchema>;
9
10
  export interface StateHandlerResponse<TLogs, TCtx> {
10
11
  handlerResponse: HandlerResponse;
@@ -51,6 +52,10 @@ export interface StateHandlerCtx {
51
52
  * executionAPI Axios instance
52
53
  */
53
54
  executionAPI: AxiosInstance;
55
+ /**
56
+ * deductionFileIngestionHelper
57
+ */
58
+ deductionFileIngestionHelper: DeductionFileIngestionHelper;
54
59
  }
55
60
  /**
56
61
  * State Handler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benup/bensdk",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {