@aptly-as/types 3.12.2 → 3.12.3

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
@@ -41,6 +41,10 @@ export declare enum AptlyUnitStatus {
41
41
  Payed = "payed",
42
42
  Completed = "completed"
43
43
  }
44
+ export declare enum AptlyIntegration {
45
+ CheckD = "checkd",
46
+ Boligmappa = "boligmappa"
47
+ }
44
48
  export declare enum AptlyIntegrationLevel {
45
49
  Base = "base",
46
50
  Organization = "organization",
package/enums/index.js CHANGED
@@ -45,6 +45,11 @@ export var AptlyUnitStatus;
45
45
  AptlyUnitStatus["Payed"] = "payed";
46
46
  AptlyUnitStatus["Completed"] = "completed";
47
47
  })(AptlyUnitStatus || (AptlyUnitStatus = {}));
48
+ export var AptlyIntegration;
49
+ (function (AptlyIntegration) {
50
+ AptlyIntegration["CheckD"] = "checkd";
51
+ AptlyIntegration["Boligmappa"] = "boligmappa";
52
+ })(AptlyIntegration || (AptlyIntegration = {}));
48
53
  export var AptlyIntegrationLevel;
49
54
  (function (AptlyIntegrationLevel) {
50
55
  AptlyIntegrationLevel["Base"] = "base";
@@ -38,6 +38,7 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
38
38
  members: AptlyOrganizationMemberSchema<ID, DATE>[];
39
39
  modules: AptlyModules[];
40
40
  contractSign?: AptlySignageSchema<ID, DATE>;
41
+ integrations: AptlyOrganizationIntegrationsSchema<ID>[];
41
42
  invites: AptlyOrganizationInviteSchema<ID, DATE>[];
42
43
  apps: AptlyOrganizationAppConfigSchema<ID, DATE>[];
43
44
  storageId?: string;
@@ -64,6 +65,13 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
64
65
  created: DATE;
65
66
  fixedVariants?: boolean;
66
67
  }
68
+ export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
69
+ export interface AptlyOrganizationIntegrationsSchema<ID> {
70
+ _id: ID;
71
+ integration: string;
72
+ apiKey: string;
73
+ organization: string;
74
+ }
67
75
  export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
68
76
  export interface AptlyOrganizationMemberSchema<ID, DATE> {
69
77
  _id: ID;
@@ -25,6 +25,7 @@ export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>,
25
25
  inviteText?: string;
26
26
  notify: AptlyProjectNotifySchema<ID, DATE>[];
27
27
  theme: AptlyProjectTheme;
28
+ integrations: AptlyProjectIntegrationSchema<ID>[];
28
29
  disabledModules?: AptlyModules[];
29
30
  extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[];
30
31
  gdprActive?: boolean;
@@ -96,6 +97,18 @@ export interface AptlyProjectThemePalette {
96
97
  disabled?: string;
97
98
  lightContrast?: string;
98
99
  }
100
+ export type AptlyProjectIntegration = AptlyProjectIntegrationSchema<string>;
101
+ export interface AptlyProjectIntegrationSchema<ID> {
102
+ _id: ID;
103
+ integration: ID;
104
+ integrationName: string;
105
+ project: string;
106
+ failures: {
107
+ _id: string;
108
+ error: string;
109
+ name: string;
110
+ }[];
111
+ }
99
112
  export type AptlyProjectNotify = AptlyProjectNotifySchema<string, string>;
100
113
  export interface AptlyProjectNotifySchema<ID, DATE> {
101
114
  _id: ID;
package/models/unit.d.ts CHANGED
@@ -9,7 +9,7 @@ import { AptlyProductSchema } from './product.js';
9
9
  import { AptlyProjectSchema } from './project.js';
10
10
  import { AptlyHistorySchema } from './extends.js';
11
11
  import { AptlyUnitTemplateBaseSchema, AptlyUnitTemplateCategorySchema, AptlyUnitTemplateCategorySectionSchema, AptlyUnitTemplateSchema } from './unit-template';
12
- import { AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums/index.js';
12
+ import { AptlyIntegration, AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums/index.js';
13
13
  import { AptlyUserSchema } from './user.js';
14
14
  import { AptlyOrganizationSchema } from './organization.js';
15
15
  import { AptlyCustomerSchema } from './customer.js';
@@ -51,6 +51,7 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<I
51
51
  invitesQueue: AptlyUnitInviteQueueSchema[];
52
52
  overridePeriod?: ID;
53
53
  overridePeriods?: AptlyUnitOverridePeriodSchema<ID, DATE>[];
54
+ integrations: AptlyUnitIntegrationSchema<ID>[];
54
55
  gdpr?: AptlyUnitGDPRSchema<DATE, ID>;
55
56
  tree: any[];
56
57
  activatedAt: DATE | null;
@@ -196,6 +197,14 @@ export interface AptlyUnitConfirmedPeriodSchema<ID, DATE> {
196
197
  confirmed?: DATE;
197
198
  order?: ID | AptlyOrderSchema<ID, DATE>;
198
199
  }
200
+ export type AptlyUnitIntegration = AptlyUnitIntegrationSchema<string>;
201
+ export interface AptlyUnitIntegrationSchema<ID> {
202
+ _id: ID;
203
+ integration: AptlyIntegration;
204
+ unit?: string;
205
+ plantId?: string;
206
+ tags?: string[];
207
+ }
199
208
  interface AptlyUnitEditData<DATE> {
200
209
  address?: string;
201
210
  zipCode?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.12.2",
3
+ "version": "3.12.3",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",