@aptly-as/types 2.7.14 → 2.7.15

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.
@@ -26,6 +26,7 @@ export declare enum AptlyDocumentType {
26
26
  Prospect = "prospect",
27
27
  Public = "public",
28
28
  Receipt = "receipt",
29
+ Report = "report",
29
30
  RiskAssessment = "risk-assessment",
30
31
  SignedReceipt = "signedReceipt",
31
32
  VVSDrawing = "vvsDrawing",
package/enums/document.js CHANGED
@@ -27,6 +27,7 @@ export var AptlyDocumentType;
27
27
  AptlyDocumentType["Prospect"] = "prospect";
28
28
  AptlyDocumentType["Public"] = "public";
29
29
  AptlyDocumentType["Receipt"] = "receipt";
30
+ AptlyDocumentType["Report"] = "report";
30
31
  AptlyDocumentType["RiskAssessment"] = "risk-assessment";
31
32
  AptlyDocumentType["SignedReceipt"] = "signedReceipt";
32
33
  AptlyDocumentType["VVSDrawing"] = "vvsDrawing";
@@ -10,6 +10,7 @@ export declare enum AptlyWebhookType {
10
10
  UnitPaymentCreated = "aptly.unit.payment.created",
11
11
  UnitPaymentCaptured = "aptly.unit.payment.captured",
12
12
  UnitPaymentReceipt = "aptly.unit.payment.receipt",
13
+ UnitPaymentReport = "aptly.unit.payment.report",
13
14
  UnitReportFinal = "aptly.unit.report.final",
14
15
  OrganizationAppUpdated = "aptly.organization.app.updated",
15
16
  OrganizationAppDeleted = "aptly.organization.app.deleted"
package/enums/webhook.js CHANGED
@@ -11,6 +11,7 @@ export var AptlyWebhookType;
11
11
  AptlyWebhookType["UnitPaymentCreated"] = "aptly.unit.payment.created";
12
12
  AptlyWebhookType["UnitPaymentCaptured"] = "aptly.unit.payment.captured";
13
13
  AptlyWebhookType["UnitPaymentReceipt"] = "aptly.unit.payment.receipt";
14
+ AptlyWebhookType["UnitPaymentReport"] = "aptly.unit.payment.report";
14
15
  AptlyWebhookType["UnitReportFinal"] = "aptly.unit.report.final";
15
16
  AptlyWebhookType["OrganizationAppUpdated"] = "aptly.organization.app.updated";
16
17
  AptlyWebhookType["OrganizationAppDeleted"] = "aptly.organization.app.deleted";
@@ -14,6 +14,7 @@ export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, D
14
14
  order: ID | AptlyOrderSchema<ID, DATE>;
15
15
  app: ID | AptlyAppSchema<ID, DATE>;
16
16
  document?: ID | AptlyDocumentSchema<ID, DATE>;
17
+ reportDocument?: ID | AptlyDocumentSchema<ID, DATE>;
17
18
  status: AptlyPaymentStatus;
18
19
  number: number;
19
20
  totalCost: number;
package/models/unit.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AptlyDocumentSchema } from './document.js';
2
2
  import { AptlyOrderSchema } from './order.js';
3
+ import { AptlyPeriodSchema } from './period.js';
3
4
  import { AptlyProducerSchema } from './producer.js';
4
5
  import { AptlyProductSchema } from './product.js';
5
6
  import { AptlyProjectSchema } from './project.js';
@@ -103,6 +104,7 @@ export interface AptlyUnitOptionItemSchema<ID, DATE> extends AptlyUnitSelectedOp
103
104
  unitCost: number;
104
105
  unitVat?: number;
105
106
  pickRef?: ID;
107
+ order?: ID;
106
108
  }
107
109
  export type AptlyUnitOptionExtraItem = AptlyUnitOptionExtraItemSchema<string, string>;
108
110
  export interface AptlyUnitOptionExtraItemSchema<ID, DATE> extends AptlyUnitOptionItemSchema<ID, DATE> {
@@ -247,4 +249,6 @@ export interface AptlyUnitInviteSchema<ID, DATE> {
247
249
  claimTime?: DATE;
248
250
  };
249
251
  }
252
+ export type AptlyUnitPeriod = AptlyUnitPeriodSchema<string, string>;
253
+ export type AptlyUnitPeriodSchema<ID, DATE> = AptlyPeriodSchema<ID, DATE> & Pick<AptlyUnitConfirmedPeriodSchema<ID, DATE>, 'confirmed' | 'order'>;
250
254
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.7.14",
3
+ "version": "2.7.15",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",