@aptly-as/types 3.10.13 → 3.10.14
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.
- package/models/option.d.ts +1 -0
- package/models/product.d.ts +5 -0
- package/package.json +1 -1
package/models/option.d.ts
CHANGED
|
@@ -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;
|
package/models/product.d.ts
CHANGED
|
@@ -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
|
+
}
|