@aptly-as/types 3.2.3 → 3.2.4
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/offer.d.ts +10 -5
- package/package.json +1 -1
package/models/offer.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AptlyDocumentSchema } from './document.js';
|
|
|
6
6
|
import { AptlyBaseSchema } from './extends.js';
|
|
7
7
|
import { AptlyOptionPopulatedSchema, AptlyOptionSchema } from './option.js';
|
|
8
8
|
import { AptlyOrderPaymentStatus, AptlyOrderSchema } from './order.js';
|
|
9
|
-
import { AptlyOrganizationSchema } from './organization.js';
|
|
9
|
+
import { AptlyOrganization, AptlyOrganizationSchema } from './organization.js';
|
|
10
10
|
import { AptlyPickSchema } from './pick.js';
|
|
11
11
|
import { AptlyProjectSchema } from './project.js';
|
|
12
12
|
import { AptlyUnitSchema } from './unit.js';
|
|
@@ -53,11 +53,16 @@ export interface AptlyUserOfferSchema<ID, DATE> extends Omit<AptlyOfferSchema<ID
|
|
|
53
53
|
options: AptlyOptionPopulatedSchema<ID, DATE>[];
|
|
54
54
|
picks?: AptlyPickSchema<ID, DATE>[];
|
|
55
55
|
}
|
|
56
|
-
export interface
|
|
56
|
+
export interface AptlyOfferSendUnitBody {
|
|
57
|
+
unit: string;
|
|
58
|
+
}
|
|
59
|
+
export interface AptlyOfferSendPrivateBody extends Omit<AptlyCustomer, 'fullName' | 'user'> {
|
|
57
60
|
unit: string | null;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
address: AptlySearchAddress | null;
|
|
62
|
+
}
|
|
63
|
+
export interface AptlyOfferSendCompanyBody extends Omit<AptlyCustomer, 'fullName' | 'user'> {
|
|
64
|
+
company: Pick<AptlyOrganization, 'name' | 'vat' | 'address'>;
|
|
65
|
+
address: AptlyAddress;
|
|
61
66
|
}
|
|
62
67
|
export type AptlyPublicOfferCheckout = AptlyPublicOfferCheckoutSchema<string, string>;
|
|
63
68
|
export interface AptlyPublicOfferCheckoutSchema<ID, DATE> extends AptlyExtensionAmount {
|