@aptly-as/types 3.0.4 → 3.0.5
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/item.d.ts +4 -3
- package/models/option.d.ts +2 -2
- package/models/pick.d.ts +3 -3
- package/package.json +1 -1
package/models/item.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AptlyInternationalCodeDesignator } from '../enums/index.js';
|
|
2
2
|
import { AptlyVatCategory } from './algorithm.js';
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
3
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
4
|
+
export type AptlyItem = AptlyItemSchema<string, string>;
|
|
5
|
+
export interface AptlyItemSchema<ID, DATE> {
|
|
5
6
|
name: string;
|
|
6
7
|
type: AptlyItemType;
|
|
7
8
|
description: string;
|
|
@@ -9,7 +10,7 @@ export interface AptlyItem {
|
|
|
9
10
|
sellersIdentification: string;
|
|
10
11
|
standardIdentification: AptlyItemStandardIdentification | null;
|
|
11
12
|
vatCategory: AptlyVatCategory;
|
|
12
|
-
thumbnail:
|
|
13
|
+
thumbnail: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
13
14
|
producer?: string;
|
|
14
15
|
properties: AptlyItemProperty[];
|
|
15
16
|
}
|
package/models/option.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AptlyQuantityUnitCode } from '../enums/index.js';
|
|
2
2
|
import { AptlyAllowanceChargeSchema, AptlyAllowance, AptlyExtensionAmount, AptlyPrice } from './algorithm.js';
|
|
3
3
|
import { AptlyBaseSchema } from './extends.js';
|
|
4
|
-
import {
|
|
4
|
+
import { AptlyItemSchema, AptlyItemType } from './item.js';
|
|
5
5
|
import { AptlyMediaSrcSchema } from './media.js';
|
|
6
6
|
import { AptlyOfferSchema } from './offer.js';
|
|
7
7
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
@@ -41,7 +41,7 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
41
41
|
export type AptlyOptionPopulated = AptlyOptionPopulatedSchema<string, string>;
|
|
42
42
|
export interface AptlyOptionPopulatedSchema<ID, DATE> extends Omit<AptlyOptionSchema<ID, DATE>, 'product'>, AptlyExtensionAmount {
|
|
43
43
|
invoicedQuantity: number;
|
|
44
|
-
item:
|
|
44
|
+
item: AptlyItemSchema<ID, DATE>;
|
|
45
45
|
price: AptlyPrice;
|
|
46
46
|
quantityCategory: AptlyCategorySchema<ID, DATE> | null;
|
|
47
47
|
amountCategory: AptlyCategorySchema<ID, DATE> | null;
|
package/models/pick.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AptlyOfferSchema } from './offer.js';
|
|
|
5
5
|
import { AptlyOptionPopulatedSchema, AptlyOptionSchema } from './option.js';
|
|
6
6
|
import { AptlyOrderSchema } from './order.js';
|
|
7
7
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
8
|
-
import {
|
|
8
|
+
import { AptlyItemSchema } from './item.js';
|
|
9
9
|
import { AptlyProducerSchema } from './producer.js';
|
|
10
10
|
import { AptlyProjectSchema } from './project.js';
|
|
11
11
|
import { AptlyCategorySchema } from './category.js';
|
|
@@ -29,7 +29,7 @@ export interface AptlyPickSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE
|
|
|
29
29
|
extensionAmount?: number | null;
|
|
30
30
|
extensionVatAmount?: number | null;
|
|
31
31
|
currency?: AptlyCurrency | null;
|
|
32
|
-
item:
|
|
32
|
+
item: AptlyItemSchema<ID, DATE> | null;
|
|
33
33
|
price: AptlyPrice | null;
|
|
34
34
|
algorithm: ID | null;
|
|
35
35
|
pipeline: AptlyAlgorithmPipelineDataItemSchema<ID>[];
|
|
@@ -40,7 +40,7 @@ export type AptlyPickConfirmedSchema<ID, DATE> = Omit<AptlyPickSchema<ID, DATE>,
|
|
|
40
40
|
option: AptlyOptionPopulatedSchema<ID, DATE>;
|
|
41
41
|
};
|
|
42
42
|
export interface AptlyPickConfirmedFieldsSchema<ID, DATE> {
|
|
43
|
-
item:
|
|
43
|
+
item: AptlyItemSchema<ID, DATE>;
|
|
44
44
|
confirmedAt: DATE;
|
|
45
45
|
order: ID | AptlyOrderSchema<ID, DATE>;
|
|
46
46
|
invoicedQuantity: number;
|