@aptly-as/types 3.8.6 → 3.9.1
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/enums/index.d.ts +2 -1
- package/enums/index.js +1 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/offer.d.ts +5 -0
- package/models/option.d.ts +7 -4
- package/models/organization.d.ts +1 -0
- package/models/price.d.ts +13 -0
- package/models/price.js +1 -0
- package/package.json +1 -1
package/enums/index.d.ts
CHANGED
package/enums/index.js
CHANGED
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
package/models/offer.d.ts
CHANGED
|
@@ -59,6 +59,11 @@ export interface AptlyUserOfferSchema<ID, DATE> extends Omit<AptlyOfferSchema<ID
|
|
|
59
59
|
}
|
|
60
60
|
export interface AptlyOfferSendUnitBody {
|
|
61
61
|
unit: string;
|
|
62
|
+
address: AptlySearchAddress | null;
|
|
63
|
+
email?: string;
|
|
64
|
+
firstName?: string;
|
|
65
|
+
lastName?: string;
|
|
66
|
+
phone?: string;
|
|
62
67
|
app?: AptlyApp | string | null;
|
|
63
68
|
}
|
|
64
69
|
export interface AptlyOfferSendPrivateBody extends Omit<AptlyCustomer, 'fullName' | 'user'> {
|
package/models/option.d.ts
CHANGED
|
@@ -12,15 +12,13 @@ import { AptlyProjectSchema } from './project.js';
|
|
|
12
12
|
import { AptlyCategorySchema } from './category.js';
|
|
13
13
|
import { AptlyUnitSchema } from './unit.js';
|
|
14
14
|
import { AptlyDocumentSchema } from './document';
|
|
15
|
-
import {
|
|
15
|
+
import { AptlyDatabase } from '../enums';
|
|
16
16
|
export type AptlyOption = AptlyOptionSchema<string, string>;
|
|
17
17
|
export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
18
18
|
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
19
19
|
project: ID | AptlyProjectSchema<ID, DATE>;
|
|
20
20
|
unit: ID | AptlyUnitSchema<ID, DATE> | null;
|
|
21
|
-
wholesaler: ID | AptlyWholesalerSchema<ID, DATE> | null;
|
|
22
21
|
product: ID | AptlyProductSchema<ID, DATE> | null;
|
|
23
|
-
producer: ID | AptlyProducerSchema<ID, DATE> | null;
|
|
24
22
|
offer: ID | AptlyOfferSchema<ID, DATE> | null;
|
|
25
23
|
category: ID | null;
|
|
26
24
|
option: ID | AptlyOptionSchema<ID, DATE> | null;
|
|
@@ -31,13 +29,18 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
|
31
29
|
variants: (ID | AptlyOptionSchema<ID, DATE>)[];
|
|
32
30
|
lines: AptlyOptionLineSchema<ID, DATE>[];
|
|
33
31
|
documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
|
|
32
|
+
producer: ID | AptlyProducerSchema<ID, DATE> | null;
|
|
33
|
+
producerName: string;
|
|
34
|
+
tags: string[];
|
|
34
35
|
title: string;
|
|
35
36
|
description: string;
|
|
36
|
-
|
|
37
|
+
database: AptlyDatabase;
|
|
37
38
|
identification: string;
|
|
39
|
+
gtin: string;
|
|
38
40
|
note: string;
|
|
39
41
|
index: number;
|
|
40
42
|
type: AptlyItemType;
|
|
43
|
+
baseQuantity?: number;
|
|
41
44
|
quantity?: number;
|
|
42
45
|
quantityUnitCode: AptlyQuantityUnitCode;
|
|
43
46
|
quantityCategory: ID | AptlyCategorySchema<ID, DATE> | null;
|
package/models/organization.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
47
47
|
installedModules: AptlyModuleItemSchema<ID, DATE>[];
|
|
48
48
|
status?: AptlyOrganizationStatus;
|
|
49
49
|
type?: AptlyOrganizationType[];
|
|
50
|
+
algorithm: ID | null;
|
|
50
51
|
paymentApp?: ID | AptlyAppSchema<ID, DATE> | null;
|
|
51
52
|
signApp?: ID | AptlyAppSchema<ID, DATE> | null;
|
|
52
53
|
signMembers?: (ID | AptlyUserSchema<ID, DATE>)[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends';
|
|
2
|
+
import { AptlyDatabase } from '../enums';
|
|
3
|
+
export type AptlyPriceRow = AptlyPriceSchema<string, string>;
|
|
4
|
+
export interface AptlyPriceSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE>, '_id' | 'createdAt' | 'updatedAt'> {
|
|
5
|
+
_id: ID;
|
|
6
|
+
organization: null;
|
|
7
|
+
wholesaler: ID;
|
|
8
|
+
database: AptlyDatabase;
|
|
9
|
+
identification: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
updatedAt: DATE;
|
|
12
|
+
createdAt: DATE;
|
|
13
|
+
}
|
package/models/price.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|