@abyss-project/banking 3.1.0 → 4.0.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.
@@ -7,6 +7,7 @@ export interface IGetAttachmentUploadUrlParams {
7
7
  export interface IGetAttachmentUploadUrlBody {
8
8
  fileName: string;
9
9
  mimeType: string;
10
+ sizeBytes: number;
10
11
  }
11
12
  export interface IDeleteAttachmentParams {
12
13
  attachmentId: string;
@@ -66,6 +66,7 @@ export interface IGetInvoiceUploadUrlParams {
66
66
  export interface IGetInvoiceUploadUrlQuery {
67
67
  fileName: string;
68
68
  mimeType: string;
69
+ sizeBytes: number;
69
70
  organizationId?: string;
70
71
  }
71
72
  export interface IGetInvoiceFileUrlParams {
@@ -1,11 +1,12 @@
1
1
  import { IAttachment } from '../../models/attachment.model';
2
+ import { IUploadSession } from '../../models/upload-session.dto';
2
3
  import { IResponse } from '../type-message/response';
3
4
  export interface IListAttachmentData {
4
5
  attachments: IAttachment[];
5
6
  }
6
7
  export type IListAttachmentResponse = IResponse<IListAttachmentData>;
7
8
  export interface IGetAttachmentUploadUrlData {
8
- uploadUrl: string;
9
+ uploadSession: IUploadSession;
9
10
  }
10
11
  export type IGetAttachmentUploadUrlResponse = IResponse<IGetAttachmentUploadUrlData>;
11
12
  export type IDeleteAttachmentResponse = IResponse<Record<string, never>>;
@@ -1,8 +1,9 @@
1
1
  import { BasePaginate } from '../..';
2
2
  import { IBankingDocument } from '../../models/banking-document.model';
3
+ import { IUploadSession } from '../../models/upload-session.dto';
3
4
  import { IResponse } from '../type-message/response';
4
5
  export interface IGetDocumentUploadUrlData {
5
- uploadUrl: string;
6
+ uploadSession: IUploadSession;
6
7
  documentId: string;
7
8
  }
8
9
  export type IGetDocumentUploadUrlResponse = IResponse<IGetDocumentUploadUrlData>;
@@ -1,4 +1,5 @@
1
1
  import { BasePaginate, IInvoice, IInvoiceTransactionMatch } from '../..';
2
+ import { IUploadSession } from '../../models/upload-session.dto';
2
3
  import { IResponse } from '../type-message/response';
3
4
  export type IPaginateInvoiceResponse = IResponse<BasePaginate<IInvoice>>;
4
5
  export interface IGetInvoiceData {
@@ -15,8 +16,7 @@ export interface IUpdateInvoiceData {
15
16
  }
16
17
  export type IUpdateInvoiceResponse = IResponse<IUpdateInvoiceData>;
17
18
  export interface IGetInvoiceUploadUrlData {
18
- uploadUrl: string;
19
- applicationFileId?: string;
19
+ uploadSession: IUploadSession;
20
20
  }
21
21
  export type IGetInvoiceUploadUrlResponse = IResponse<IGetInvoiceUploadUrlData>;
22
22
  export interface IGetInvoiceFileUrlData {
@@ -15,6 +15,7 @@ export * from './models/recurring-group.model';
15
15
  export * from './models/transfer-link.model';
16
16
  export * from './models/insight.model';
17
17
  export * from './models/file-scan.dto';
18
+ export * from './models/upload-session.dto';
18
19
  export * from './models/attachment.model';
19
20
  export * from './models/transaction-split.model';
20
21
  export * from './models/saved-report.model';
@@ -31,6 +31,7 @@ __exportStar(require("./models/recurring-group.model"), exports);
31
31
  __exportStar(require("./models/transfer-link.model"), exports);
32
32
  __exportStar(require("./models/insight.model"), exports);
33
33
  __exportStar(require("./models/file-scan.dto"), exports);
34
+ __exportStar(require("./models/upload-session.dto"), exports);
34
35
  __exportStar(require("./models/attachment.model"), exports);
35
36
  __exportStar(require("./models/transaction-split.model"), exports);
36
37
  __exportStar(require("./models/saved-report.model"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,qEAAmD;AACnD,iEAA+C;AAC/C,0DAAwC;AACxC,sEAAoD;AACpD,qEAAmD;AACnD,8EAA4D;AAC5D,uDAAqC;AACrC,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,mEAAiD;AACjD,8DAA4C;AAC5C,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,2DAAyC;AACzC,mEAAiD;AACjD,0DAAwC;AACxC,yDAAuC;AACvC,8DAA4C;AAC5C,2EAAyD;AACzD,+DAA6C;AAC7C,0DAAwC;AACxC,iEAA+C;AAC/C,sEAAoD;AACpD,2EAAyD;AACzD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,qEAAmD;AACnD,iEAA+C;AAC/C,kEAAgD;AAChD,8DAA4C;AAC5C,yDAAuC;AACvC,oEAAkD;AAClD,iEAA+C;AAC/C,yDAAuC;AACvC,6DAA2C;AAC3C,mEAAiD;AACjD,kEAAgD;AAChD,0EAAwD;AACxD,iEAA+C;AAC/C,6DAA2C;AAC3C,iEAA+C;AAC/C,4EAA0D;AAC1D,6DAA2C;AAC3C,0DAAwC;AACxC,sEAAoD;AACpD,oEAAkD;AAClD,mEAAiD;AACjD,yEAAuD;AAGvD,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,qEAAmD;AACnD,iEAA+C;AAC/C,0DAAwC;AACxC,sEAAoD;AACpD,qEAAmD;AACnD,8EAA4D;AAC5D,uDAAqC;AACrC,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,8DAA4C;AAC5C,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,2DAAyC;AACzC,mEAAiD;AACjD,0DAAwC;AACxC,yDAAuC;AACvC,8DAA4C;AAC5C,2EAAyD;AACzD,+DAA6C;AAC7C,0DAAwC;AACxC,iEAA+C;AAC/C,sEAAoD;AACpD,2EAAyD;AACzD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,qEAAmD;AACnD,iEAA+C;AAC/C,kEAAgD;AAChD,8DAA4C;AAC5C,yDAAuC;AACvC,oEAAkD;AAClD,iEAA+C;AAC/C,yDAAuC;AACvC,6DAA2C;AAC3C,mEAAiD;AACjD,kEAAgD;AAChD,0EAAwD;AACxD,iEAA+C;AAC/C,6DAA2C;AAC3C,iEAA+C;AAC/C,4EAA0D;AAC1D,6DAA2C;AAC3C,0DAAwC;AACxC,sEAAoD;AACpD,oEAAkD;AAClD,mEAAiD;AACjD,yEAAuD;AAGvD,wCAAsB"}
@@ -0,0 +1,10 @@
1
+ export type IUploadSession = {
2
+ kind: 'single';
3
+ token: string;
4
+ maxSizeOctet?: number;
5
+ } | {
6
+ kind: 'multipart';
7
+ multipartToken: string;
8
+ partSizeOctet: number;
9
+ maxSizeOctet?: number;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=upload-session.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-session.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/upload-session.dto.ts"],"names":[],"mappings":""}
@@ -7,6 +7,7 @@ export interface IUser {
7
7
  personalApiKeyLookupHash?: string | null;
8
8
  personalApiKeyRevokedAt?: Date | null;
9
9
  accountDeletedAt?: Date | null;
10
+ demoGroupId?: string | null;
10
11
  updatedAt?: Date;
11
12
  createdAt?: Date;
12
13
  aggregatorLinks?: IAggregatorLink[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/banking",
3
- "version": "3.1.0",
3
+ "version": "4.0.0",
4
4
  "description": "Core package to interact with Abyss-Banking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "homepage": "https://gitlab.com/abyss-group/abyss-banking",
14
14
  "dependencies": {
15
15
  "@abyss-project/compute": "1.0.0",
16
- "@abyss-project/main": "27.6.0",
16
+ "@abyss-project/main": "33.0.0",
17
17
  "axios": "^1.6.0",
18
18
  "axios-retry": "^4.5.0",
19
19
  "core-js": "^3.37.1",