@aptly-as/types 3.5.0 → 3.6.0
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/document.d.ts +6 -6
- package/models/item.d.ts +2 -1
- package/models/item.js +1 -0
- package/models/note.d.ts +2 -4
- package/models/offer.d.ts +3 -3
- package/models/option.d.ts +12 -1
- package/models/order.d.ts +1 -0
- package/models/payment-settlement.d.ts +2 -0
- package/models/pick.d.ts +2 -0
- package/package.json +1 -1
package/models/document.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
|
|
|
8
8
|
access?: AptlyDocumentAccess;
|
|
9
9
|
_type: AptlyDocumentType;
|
|
10
10
|
data: string;
|
|
11
|
-
organization
|
|
12
|
-
project
|
|
13
|
-
unit
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
product
|
|
11
|
+
organization: ID | null;
|
|
12
|
+
project: ID | null;
|
|
13
|
+
unit: ID | null;
|
|
14
|
+
offer: ID | null;
|
|
15
|
+
option: ID | null;
|
|
16
|
+
product: ID | AptlyProductSchema<ID, DATE> | null;
|
|
17
17
|
text?: string;
|
|
18
18
|
size: number;
|
|
19
19
|
thirdPartyUploader: string | null;
|
package/models/item.d.ts
CHANGED
|
@@ -18,7 +18,8 @@ export declare enum AptlyItemType {
|
|
|
18
18
|
Physical = "physical",
|
|
19
19
|
Digital = "digital",
|
|
20
20
|
Service = "service",
|
|
21
|
-
Resource = "resource"
|
|
21
|
+
Resource = "resource",
|
|
22
|
+
Material = "material"
|
|
22
23
|
}
|
|
23
24
|
export interface AptlyItemStandardIdentification {
|
|
24
25
|
scheme: AptlyInternationalCodeDesignator;
|
package/models/item.js
CHANGED
package/models/note.d.ts
CHANGED
|
@@ -4,15 +4,14 @@ import { AptlyOrganizationSchema } from './organization.js';
|
|
|
4
4
|
import { AptlyProjectSchema } from './project.js';
|
|
5
5
|
import { AptlyUnitSchema } from './unit.js';
|
|
6
6
|
import { AptlyUserSchema } from './user.js';
|
|
7
|
-
import {
|
|
8
|
-
import { AptlyOfferSchema } from './offer';
|
|
7
|
+
import { AptlyOrderSchema } from './order';
|
|
9
8
|
export type AptlyNote = AptlyNoteSchema<string, string>;
|
|
10
9
|
export interface AptlyNoteSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
11
10
|
content: string;
|
|
12
11
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
13
12
|
project: ID | AptlyProjectSchema<ID, DATE>;
|
|
14
13
|
unit: ID | AptlyUnitSchema<ID, DATE>;
|
|
15
|
-
|
|
14
|
+
order: ID | AptlyOrderSchema<ID, DATE>;
|
|
16
15
|
category: ID | AptlyCategorySchema<ID, DATE> | null;
|
|
17
16
|
users: (ID | AptlyUserSchema<ID, DATE>)[];
|
|
18
17
|
addToReceipt: boolean;
|
|
@@ -21,5 +20,4 @@ export interface AptlyNoteSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
21
20
|
reminderDate?: DATE | null;
|
|
22
21
|
hasReminder?: boolean;
|
|
23
22
|
author?: ID | AptlyUserSchema<ID, DATE>;
|
|
24
|
-
documents?: (ID | AptlyDocumentSchema<ID, DATE>)[];
|
|
25
23
|
}
|
package/models/offer.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ export interface AptlyOfferSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>, O
|
|
|
21
21
|
createdBy: Populated<AptlyUserSchema<ID, DATE>> | null;
|
|
22
22
|
expiresAt: DATE | null;
|
|
23
23
|
sentAt: DATE | null;
|
|
24
|
-
number
|
|
24
|
+
number: number;
|
|
25
25
|
description: string;
|
|
26
|
-
identification
|
|
27
|
-
amount
|
|
26
|
+
identification: string;
|
|
27
|
+
amount: number | null;
|
|
28
28
|
allowance?: AptlyAllowance | null;
|
|
29
29
|
algorithm: ID | null;
|
|
30
30
|
items: AptlyOfferItemSchema<ID, DATE>[];
|
package/models/option.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { AptlyProductSchema } from './product.js';
|
|
|
11
11
|
import { AptlyProjectSchema } from './project.js';
|
|
12
12
|
import { AptlyCategorySchema } from './category.js';
|
|
13
13
|
import { AptlyUnitSchema } from './unit.js';
|
|
14
|
+
import { AptlyDocumentSchema } from './document';
|
|
14
15
|
export type AptlyOption = AptlyOptionSchema<string, string>;
|
|
15
16
|
export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
16
17
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
@@ -19,11 +20,14 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
19
20
|
product: ID | AptlyProductSchema<ID, DATE> | null;
|
|
20
21
|
producer: ID | AptlyProducerSchema<ID, DATE> | null;
|
|
21
22
|
offer: ID | AptlyOfferSchema<ID, DATE> | null;
|
|
23
|
+
option: ID | AptlyOptionSchema<ID, DATE> | null;
|
|
22
24
|
offerItem: ID | null;
|
|
23
25
|
period: ID | AptlyPeriodSchema<ID, DATE> | null;
|
|
24
26
|
algorithm: ID | null;
|
|
25
27
|
thumbnail: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
26
|
-
|
|
28
|
+
variants: (ID | AptlyOptionSchema<ID, DATE>)[];
|
|
29
|
+
lines: AptlyOptionLineSchema<ID, DATE>[];
|
|
30
|
+
documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
|
|
27
31
|
title: string;
|
|
28
32
|
description: string;
|
|
29
33
|
identification: string;
|
|
@@ -37,9 +41,16 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
37
41
|
amount: number;
|
|
38
42
|
amountCategory: ID | AptlyCategorySchema<ID, DATE> | null;
|
|
39
43
|
amountCategoryKey?: string;
|
|
44
|
+
isTotalSum: boolean;
|
|
40
45
|
allowance?: AptlyAllowance | null;
|
|
41
46
|
allowanceCharge: AptlyAllowanceChargeItemSchema<ID, boolean>[];
|
|
42
47
|
}
|
|
48
|
+
export type AptlyOptionLine = AptlyOptionLineSchema<string, string>;
|
|
49
|
+
export interface AptlyOptionLineSchema<ID, DATE> {
|
|
50
|
+
_id: ID;
|
|
51
|
+
option: ID | AptlyOptionSchema<ID, DATE>;
|
|
52
|
+
quantity: number;
|
|
53
|
+
}
|
|
43
54
|
export type AptlyOptionPopulated = AptlyOptionPopulatedSchema<string, string>;
|
|
44
55
|
export interface AptlyOptionPopulatedSchema<ID, DATE> extends Omit<AptlyOptionSchema<ID, DATE>, 'product'>, AptlyExtensionAmount {
|
|
45
56
|
invoicedQuantity: number;
|
package/models/order.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
|
|
|
38
38
|
signage: AptlyOrderSignageSchema<ID, DATE>;
|
|
39
39
|
items: AptlyOrderItemSchema<ID, DATE>[];
|
|
40
40
|
picks: (ID | AptlyPickConfirmedSchema<ID, DATE>)[];
|
|
41
|
+
documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
|
|
41
42
|
amount?: number;
|
|
42
43
|
vatAmount?: number;
|
|
43
44
|
totalVat?: number;
|
|
@@ -11,6 +11,8 @@ export interface AptlyPaymentSettlementSchema<ID, DATE> extends AptlyPaymentSett
|
|
|
11
11
|
destination: string;
|
|
12
12
|
amounts: AptlyPaymentSettlementAmountSchema<ID>[];
|
|
13
13
|
transactions: AptlyPaymentSettlementTransactionSchema<ID, DATE>[];
|
|
14
|
+
orders: ID[];
|
|
15
|
+
payments: ID[];
|
|
14
16
|
at: DATE;
|
|
15
17
|
tripletexId?: number;
|
|
16
18
|
updatedAt: DATE;
|
package/models/pick.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { AptlyProducerSchema } from './producer.js';
|
|
|
10
10
|
import { AptlyProjectSchema } from './project.js';
|
|
11
11
|
import { AptlyCategorySchema } from './category.js';
|
|
12
12
|
import { AptlyUnitSchema } from './unit.js';
|
|
13
|
+
import { AptlyDocumentSchema } from './document';
|
|
13
14
|
export type AptlyPick = AptlyPickSchema<string, string>;
|
|
14
15
|
export interface AptlyPickSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE>, '_id' | 'archived' | 'createdAt' | 'updatedAt'> {
|
|
15
16
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
@@ -33,6 +34,7 @@ export interface AptlyPickSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE
|
|
|
33
34
|
item: AptlyItemSchema<ID, DATE> | null;
|
|
34
35
|
price: AptlyPrice | null;
|
|
35
36
|
algorithm: ID | null;
|
|
37
|
+
documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
|
|
36
38
|
pipeline: AptlyAlgorithmPipelineDataItemSchema<ID>[];
|
|
37
39
|
confirmedAt: DATE | null;
|
|
38
40
|
}
|