@aptly-as/types 3.10.13 → 3.10.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.
@@ -19,6 +19,7 @@ export declare enum AptlyDocumentType {
19
19
  InspectionReport = "inspectionReport",
20
20
  Manual = "manual",
21
21
  UnitPlan = "unitPlan",
22
+ Offer = "offer",
22
23
  OfferAttachment = "offerAttachment",
23
24
  OrderAttachment = "orderAttachment",
24
25
  PaymentReceipt = "payment-receipt",
package/enums/document.js CHANGED
@@ -20,6 +20,7 @@ export var AptlyDocumentType;
20
20
  AptlyDocumentType["InspectionReport"] = "inspectionReport";
21
21
  AptlyDocumentType["Manual"] = "manual";
22
22
  AptlyDocumentType["UnitPlan"] = "unitPlan";
23
+ AptlyDocumentType["Offer"] = "offer";
23
24
  AptlyDocumentType["OfferAttachment"] = "offerAttachment";
24
25
  AptlyDocumentType["OrderAttachment"] = "orderAttachment";
25
26
  AptlyDocumentType["PaymentReceipt"] = "payment-receipt";
@@ -28,6 +28,7 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
28
28
  algorithm: ID | null;
29
29
  thumbnail: AptlyMediaSrcSchema<ID, DATE> | null;
30
30
  variants: (ID | AptlyOptionSchema<ID, DATE>)[];
31
+ products: (ID | AptlyProductSchema<ID, DATE>)[];
31
32
  lines: AptlyOptionLineSchema<ID, DATE>[];
32
33
  documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
33
34
  producer: ID | AptlyProducerSchema<ID, DATE> | null;
@@ -1,6 +1,7 @@
1
1
  import { AptlyDocumentSchema } from './document.js';
2
2
  import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends.js';
3
3
  import { AptlyMediaSrcSchema } from './media.js';
4
+ import { AptlyPriceSchema } from './price.js';
4
5
  import { AptlyProducerSchema } from './producer.js';
5
6
  import { AptlyDatabase, AptlyQuantityUnitCode } from '../enums/index.js';
6
7
  export type AptlyProduct = AptlyProductSchema<string, string>;
@@ -81,3 +82,7 @@ export interface AptlyProductImportSchema<ID, DATE> extends Partial<Omit<AptlyPr
81
82
  images: string[];
82
83
  documents: string[];
83
84
  }
85
+ export type AptlyProductWithPrice = AptlyProductWithPriceSchema<string, string>;
86
+ export interface AptlyProductWithPriceSchema<ID, DATE> extends AptlyProductSchema<ID, DATE> {
87
+ price?: AptlyPriceSchema<ID, DATE>;
88
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.10.13",
3
+ "version": "3.10.15",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",