@aptly-as/types 3.2.3 → 3.2.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/enums/index.d.ts CHANGED
@@ -125,7 +125,8 @@ export declare enum AptlyOrganizationStatus {
125
125
  Inactive = 2,
126
126
  Paused = 3,
127
127
  Closed = 4,
128
- Template = 5
128
+ Template = 5,
129
+ Demo = 6
129
130
  }
130
131
  export declare enum AptlyEmailType {
131
132
  ActionRecipients = "action_recipients",
package/enums/index.js CHANGED
@@ -144,6 +144,7 @@ export var AptlyOrganizationStatus;
144
144
  AptlyOrganizationStatus[AptlyOrganizationStatus["Paused"] = 3] = "Paused";
145
145
  AptlyOrganizationStatus[AptlyOrganizationStatus["Closed"] = 4] = "Closed";
146
146
  AptlyOrganizationStatus[AptlyOrganizationStatus["Template"] = 5] = "Template";
147
+ AptlyOrganizationStatus[AptlyOrganizationStatus["Demo"] = 6] = "Demo";
147
148
  })(AptlyOrganizationStatus || (AptlyOrganizationStatus = {}));
148
149
  export var AptlyEmailType;
149
150
  (function (AptlyEmailType) {
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 AptlyOfferSendBody extends Omit<AptlyCustomer, 'fullName' | 'user'> {
56
+ export interface AptlyOfferSendUnitBody {
57
+ unit: string;
58
+ }
59
+ export interface AptlyOfferSendPrivateBody extends Omit<AptlyCustomer, 'fullName' | 'user'> {
57
60
  unit: string | null;
58
- copy?: boolean;
59
- address?: AptlySearchAddress | null;
60
- description: string;
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 {
@@ -8,7 +8,7 @@ import { AptlyModuleItemSchema } from './module.js';
8
8
  import { AptlyPlanInstalledSchema } from './plan.js';
9
9
  import { AptlyProjectSchema } from './project.js';
10
10
  import { AptlyUserSchema } from './user.js';
11
- import { AptlyMediaSrc } from './media.js';
11
+ import { AptlyMediaSrcSchema } from './media.js';
12
12
  import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
13
13
  import { AptlyDepartmentGeneric } from './department.js';
14
14
  import { AptlyProducerSchema } from './producer.js';
@@ -22,9 +22,9 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
22
22
  number?: string;
23
23
  vat?: string;
24
24
  logo?: string | null;
25
- logoMedia?: AptlyMediaSrc | null;
26
- negativeLogoMedia?: AptlyMediaSrc | null;
27
- projectLogoMedia?: AptlyMediaSrc | null;
25
+ logoMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
26
+ negativeLogoMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
27
+ projectLogoMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
28
28
  address: {
29
29
  billing: AptlyAddress;
30
30
  visit: AptlyAddress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",