@aptly-as/types 2.3.0 → 2.3.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 CHANGED
@@ -111,3 +111,16 @@ export declare enum AptlyProjectStatus {
111
111
  Started = "started",
112
112
  Completed = "completed"
113
113
  }
114
+ export declare enum AptlyOrganizationType {
115
+ Carpenter = "carpenter",
116
+ Contractor = "contractor",
117
+ Electrician = "electrician",
118
+ Plumber = "plumber"
119
+ }
120
+ export declare enum AptlyOrganizationStatus {
121
+ NewBusiness = 0,
122
+ Active = 1,
123
+ Inactive = 2,
124
+ Paused = 3,
125
+ Closed = 4
126
+ }
package/enums/index.js CHANGED
@@ -128,3 +128,18 @@ export var AptlyProjectStatus;
128
128
  AptlyProjectStatus["Started"] = "started";
129
129
  AptlyProjectStatus["Completed"] = "completed";
130
130
  })(AptlyProjectStatus || (AptlyProjectStatus = {}));
131
+ export var AptlyOrganizationType;
132
+ (function (AptlyOrganizationType) {
133
+ AptlyOrganizationType["Carpenter"] = "carpenter";
134
+ AptlyOrganizationType["Contractor"] = "contractor";
135
+ AptlyOrganizationType["Electrician"] = "electrician";
136
+ AptlyOrganizationType["Plumber"] = "plumber";
137
+ })(AptlyOrganizationType || (AptlyOrganizationType = {}));
138
+ export var AptlyOrganizationStatus;
139
+ (function (AptlyOrganizationStatus) {
140
+ AptlyOrganizationStatus[AptlyOrganizationStatus["NewBusiness"] = 0] = "NewBusiness";
141
+ AptlyOrganizationStatus[AptlyOrganizationStatus["Active"] = 1] = "Active";
142
+ AptlyOrganizationStatus[AptlyOrganizationStatus["Inactive"] = 2] = "Inactive";
143
+ AptlyOrganizationStatus[AptlyOrganizationStatus["Paused"] = 3] = "Paused";
144
+ AptlyOrganizationStatus[AptlyOrganizationStatus["Closed"] = 4] = "Closed";
145
+ })(AptlyOrganizationStatus || (AptlyOrganizationStatus = {}));
package/models/app.d.ts CHANGED
@@ -15,6 +15,7 @@ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>
15
15
  settings: AptlyAppSettingSchema<ID>[];
16
16
  webhooks: AptlyAppWebhookSchema<ID>[];
17
17
  menus: AptlyAppMenuSchema<ID, DATE>[];
18
+ cost?: number;
18
19
  implements: AptlyAppImplementation[];
19
20
  sign?: {
20
21
  orderUrl: string;
@@ -5,6 +5,7 @@ export interface AptlyModuleSchema<ID, DATE> {
5
5
  name: string;
6
6
  description: string;
7
7
  featuredWeight: number;
8
+ cost?: number;
8
9
  modules: AptlyModules[];
9
10
  createdAt: DATE;
10
11
  updatedAt: DATE;
package/models/order.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare enum AptlyOrderPaymentStatus {
13
13
  Captured = "CAPTURED"
14
14
  }
15
15
  export type AptlyOrder = AptlyOrderSchema<string, string>;
16
- export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
16
+ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name'> {
17
17
  orderNumber: string;
18
18
  organization: ID | AptlyOrganizationSchema<ID, DATE>;
19
19
  project: ID | AptlyProjectSchema<ID, DATE>;
@@ -30,6 +30,7 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
30
30
  totalVat?: number;
31
31
  pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[];
32
32
  signees?: AptlyOrderSigneeSchema<ID, DATE>[];
33
+ signedAt?: DATE | null;
33
34
  emailText?: string;
34
35
  approved?: {
35
36
  action?: AptlyOrderAction;
@@ -1,5 +1,6 @@
1
1
  import { AptlyModules } from '../core/index.js';
2
2
  import { AptlyOrganizationRoles, AptlyAppScope, AptlySignageSchema } from '../core/index.js';
3
+ import { AptlyOrganizationStatus, AptlyOrganizationType } from "../enums/index.js";
3
4
  import { AptlyModuleItemSchema } from './module.js';
4
5
  import { AptlyUserSchema } from './user.js';
5
6
  import { AptlyMediaSrc } from './media.js';
@@ -32,6 +33,8 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
32
33
  storageId?: string;
33
34
  producer?: ID | AptlyProducerSchema<ID, DATE> | null;
34
35
  installedModules: AptlyModuleItemSchema<ID, DATE>[];
36
+ status?: AptlyOrganizationStatus;
37
+ type?: AptlyOrganizationType[];
35
38
  created: DATE;
36
39
  fixedVariants?: boolean;
37
40
  }
@@ -65,6 +68,7 @@ export interface AptlyOrganizationInviteSchema<ID, DATE> {
65
68
  permissions?: AptlyOrganizationRoles[];
66
69
  projects?: ID[] | null;
67
70
  departments?: ID[] | null;
71
+ position?: AptlyOrganizationMemberPosition;
68
72
  claim: {
69
73
  email?: string;
70
74
  claimed: boolean;
@@ -1,9 +1,9 @@
1
+ import { AptlyBookingSchema } from './booking.js';
2
+ import { AptlyBaseSchema } from './extends.js';
3
+ import { AptlyInquirySchema } from './inquiry.js';
1
4
  import { AptlyOrganizationSchema } from './organization.js';
2
5
  import { AptlyProjectSchema } from './project.js';
3
6
  import { AptlyUnitSchema } from './unit.js';
4
- import { AptlyInquirySchema } from './inquiry.js';
5
- import { AptlyBookingSchema } from './booking.js';
6
- import { AptlyBaseSchema } from './extends.js';
7
7
  export type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>;
8
8
  export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
9
9
  type: AptlyUnitEmailType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",