@aptly-as/types 2.7.10 → 2.7.12

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,4 +1,4 @@
1
- import { AptlyDocumentSchema, AptlyOrderSchema, AptlyPaymentSchema, AptlyUnitSchema } from '../models/index.js';
1
+ import { AptlyDocumentSchema, AptlyOrderSchema, AptlyPaymentSchema, AptlyPaymentSettlement, AptlyUnitSchema } from '../models/index.js';
2
2
  export declare namespace AptlyWebhookEventData {
3
3
  interface UnitWebhookSchema<ID, DATE> {
4
4
  unit: Pick<AptlyUnitSchema<ID, DATE>, '_id' | 'name'>;
@@ -18,3 +18,13 @@ export declare namespace AptlyWebhookEventData {
18
18
  order: Pick<AptlyOrderSchema<ID, DATE>, '_id' | 'orderNumber' | 'receipt' | 'period'>;
19
19
  }
20
20
  }
21
+ export declare namespace AptlyAppWebhookEventData {
22
+ interface SettlementCreate extends Pick<AptlyPaymentSettlement, 'app' | 'at' | 'externalId' | 'externalRef' | 'destination'> {
23
+ amounts: Omit<AptlyPaymentSettlement['amounts'][0], '_id'>[];
24
+ transactions: Omit<AptlyPaymentSettlement['transactions'][0], '_id'>[];
25
+ pdfDownload?: {
26
+ url: string;
27
+ name: string;
28
+ };
29
+ }
30
+ }
@@ -1,4 +1,5 @@
1
1
  export declare enum AptlyDocumentType {
2
+ AgreementAttachment = "agreement-attachment",
2
3
  ArchitectDrawing = "architect-drawing",
3
4
  BathroomDrawing = "bathroomDrawing",
4
5
  Chunk = "chunk",
@@ -14,6 +15,7 @@ export declare enum AptlyDocumentType {
14
15
  FurnishingPlan = "furnishing-plan",
15
16
  Gdpr = "gdpr",
16
17
  KitchenDrawing = "kitchenDrawing",
18
+ Invoice = "invoice",
17
19
  InspectionReport = "inspectionReport",
18
20
  Manual = "manual",
19
21
  UnitPlan = "unitPlan",
package/enums/document.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export var AptlyDocumentType;
2
2
  (function (AptlyDocumentType) {
3
+ AptlyDocumentType["AgreementAttachment"] = "agreement-attachment";
3
4
  AptlyDocumentType["ArchitectDrawing"] = "architect-drawing";
4
5
  AptlyDocumentType["BathroomDrawing"] = "bathroomDrawing";
5
6
  AptlyDocumentType["Chunk"] = "chunk";
@@ -15,6 +16,7 @@ export var AptlyDocumentType;
15
16
  AptlyDocumentType["FurnishingPlan"] = "furnishing-plan";
16
17
  AptlyDocumentType["Gdpr"] = "gdpr";
17
18
  AptlyDocumentType["KitchenDrawing"] = "kitchenDrawing";
19
+ AptlyDocumentType["Invoice"] = "invoice";
18
20
  AptlyDocumentType["InspectionReport"] = "inspectionReport";
19
21
  AptlyDocumentType["Manual"] = "manual";
20
22
  AptlyDocumentType["UnitPlan"] = "unitPlan";
@@ -3,6 +3,7 @@ export interface AptlyPaymentSettlementSchema<ID, DATE> extends AptlyPaymentSett
3
3
  _id: ID;
4
4
  organization?: ID;
5
5
  document?: ID;
6
+ reportDocument?: ID;
6
7
  app: ID;
7
8
  externalId: string;
8
9
  externalRef: string;
@@ -44,7 +44,8 @@ export declare enum AptlyPaymentStatus {
44
44
  Authorized = "AUTHORIZED",
45
45
  PendingDelivery = "PENDING_DELIVERY",
46
46
  PendingCapture = "PENDING_CAPTURE",
47
- Captured = "CAPTURED"
47
+ Captured = "CAPTURED",
48
+ Annulled = "ANNULLED"
48
49
  }
49
50
  export type AptlyPaymentSplit = AptlyPaymentSplitSchema<string>;
50
51
  export interface AptlyPaymentSplitSchema<ID> {
package/models/payment.js CHANGED
@@ -4,4 +4,5 @@ export var AptlyPaymentStatus;
4
4
  AptlyPaymentStatus["PendingDelivery"] = "PENDING_DELIVERY";
5
5
  AptlyPaymentStatus["PendingCapture"] = "PENDING_CAPTURE";
6
6
  AptlyPaymentStatus["Captured"] = "CAPTURED";
7
+ AptlyPaymentStatus["Annulled"] = "ANNULLED";
7
8
  })(AptlyPaymentStatus || (AptlyPaymentStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.7.10",
3
+ "version": "2.7.12",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",