@zeniai/client-epic-state 4.19.39-betaRD1 → 4.19.39

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.
@@ -1,5 +1,4 @@
1
1
  import { UploadStatementDocumentAIPayload } from '../../payload/reconciliationPayload';
2
- import { AccountType } from '../../../../entity/account/accountState';
3
2
  export interface AuthParams {
4
3
  sessionId: string;
5
4
  tenantId: string;
@@ -10,4 +9,4 @@ export interface AuthParamsPayload {
10
9
  zeni_tenant_id: string;
11
10
  zeni_user_id: string;
12
11
  }
13
- export default function uploadAccountStatementIntoDocumentAI(accountType: AccountType, fileBlob: Blob, authParams: AuthParams): Promise<UploadStatementDocumentAIPayload | undefined>;
12
+ export default function uploadAccountStatementIntoDocumentAI(fileBlob: Blob, authParams: AuthParams): Promise<UploadStatementDocumentAIPayload | undefined>;
@@ -6,15 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.default = uploadAccountStatementIntoDocumentAI;
7
7
  const cross_fetch_1 = __importDefault(require("cross-fetch"));
8
8
  const init_1 = require("../../../../init");
9
- async function uploadAccountStatementIntoDocumentAI(accountType, fileBlob, authParams) {
9
+ async function uploadAccountStatementIntoDocumentAI(fileBlob, authParams) {
10
10
  let statementUpload;
11
- const urlEndPoint = `${init_1.zeniAPI.apiEndPoints.documentAIMicroServiceBaseUrl}/1.0/processors/statement`;
11
+ const urlEndPoint = `${init_1.zeniAPI.apiEndPoints.documentAIMicroServiceBaseUrl}/1.0/processors/bank-statement`;
12
12
  const data = new FormData();
13
13
  data.append('attachment_file_0', fileBlob);
14
14
  const attachment_json = JSON.stringify({
15
- document_type: accountType === 'credit_card'
16
- ? 'reconciliation_card_statement_upload'
17
- : 'reconciliation_bank_statement_upload',
15
+ document_type: 'reconciliation_bank_statement_upload',
18
16
  purpose_id: 'reconciliation',
19
17
  });
20
18
  data.append('attachment_json_0', attachment_json);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.39-betaRD1",
3
+ "version": "4.19.39",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",