@aptly-as/types 3.10.21 → 3.12.0

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,10 +41,6 @@ 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
- }
48
44
  export declare enum AptlyIntegrationLevel {
49
45
  Base = "base",
50
46
  Organization = "organization",
package/enums/index.js CHANGED
@@ -45,11 +45,6 @@ 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 = {}));
53
48
  export var AptlyIntegrationLevel;
54
49
  (function (AptlyIntegrationLevel) {
55
50
  AptlyIntegrationLevel["Base"] = "base";
@@ -38,7 +38,6 @@ 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>[];
42
41
  invites: AptlyOrganizationInviteSchema<ID, DATE>[];
43
42
  apps: AptlyOrganizationAppConfigSchema<ID, DATE>[];
44
43
  storageId?: string;
@@ -65,13 +64,6 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
65
64
  created: DATE;
66
65
  fixedVariants?: boolean;
67
66
  }
68
- export type AptlyOrganizationIntegrations = AptlyOrganizationIntegrationsSchema<string>;
69
- export interface AptlyOrganizationIntegrationsSchema<ID> {
70
- _id: ID;
71
- integration: string;
72
- apiKey: string;
73
- organization: string;
74
- }
75
67
  export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
76
68
  export interface AptlyOrganizationMemberSchema<ID, DATE> {
77
69
  _id: ID;
@@ -1,10 +1,14 @@
1
1
  import { AptlyBaseSchema } from './extends';
2
2
  import { AptlyDocumentSchema } from './document';
3
+ import { AptlyOrganizationSchema } from './organization.js';
3
4
  import { AptlyWholesalerSchema } from './wholesaler';
4
5
  export declare enum AptlyPriceFileStatus {
5
6
  UPLOADED = "uploaded",
6
7
  UPDATING = "updating",
7
- COMPLETE = "complete"
8
+ COMPLETE = "complete",
9
+ ERROR = "error",
10
+ ACTIVE = "active",
11
+ INACTIVE = "inactive"
8
12
  }
9
13
  export declare enum AptlyPriceFileFormat {
10
14
  EFO_NELFO_4 = "EFO/NELFO_4.0",
@@ -12,11 +16,16 @@ export declare enum AptlyPriceFileFormat {
12
16
  }
13
17
  export type AptlyPriceFile = AptlyPriceFileSchema<string, string>;
14
18
  export interface AptlyPriceFileSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
15
- organization: ID | null;
19
+ organization: ID | AptlyOrganizationSchema<ID, DATE> | null;
16
20
  wholesaler: ID | AptlyWholesalerSchema<ID, DATE>;
17
21
  format: AptlyPriceFileFormat;
18
22
  status: AptlyPriceFileStatus;
19
- document: ID | AptlyDocumentSchema<ID, DATE>;
23
+ document: ID | AptlyDocumentSchema<ID, DATE> | null;
20
24
  algorithm: ID | null;
21
25
  runAt: DATE | null;
26
+ error: string;
27
+ getAt: DATE | null;
28
+ modifiedAt: DATE | null;
29
+ username?: string;
30
+ password?: string;
22
31
  }
@@ -3,6 +3,9 @@ export var AptlyPriceFileStatus;
3
3
  AptlyPriceFileStatus["UPLOADED"] = "uploaded";
4
4
  AptlyPriceFileStatus["UPDATING"] = "updating";
5
5
  AptlyPriceFileStatus["COMPLETE"] = "complete";
6
+ AptlyPriceFileStatus["ERROR"] = "error";
7
+ AptlyPriceFileStatus["ACTIVE"] = "active";
8
+ AptlyPriceFileStatus["INACTIVE"] = "inactive";
6
9
  })(AptlyPriceFileStatus || (AptlyPriceFileStatus = {}));
7
10
  export var AptlyPriceFileFormat;
8
11
  (function (AptlyPriceFileFormat) {
@@ -25,7 +25,6 @@ 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>[];
29
28
  disabledModules?: AptlyModules[];
30
29
  extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[];
31
30
  gdprActive?: boolean;
@@ -97,18 +96,6 @@ export interface AptlyProjectThemePalette {
97
96
  disabled?: string;
98
97
  lightContrast?: string;
99
98
  }
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
- }
112
99
  export type AptlyProjectNotify = AptlyProjectNotifySchema<string, string>;
113
100
  export interface AptlyProjectNotifySchema<ID, DATE> {
114
101
  _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 { AptlyIntegration, AptlyUnitItemParamKey, AptlyUnitStatus } from '../enums/index.js';
12
+ import { 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,7 +51,6 @@ 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>[];
55
54
  gdpr?: AptlyUnitGDPRSchema<DATE, ID>;
56
55
  tree: any[];
57
56
  activatedAt: DATE | null;
@@ -197,14 +196,6 @@ export interface AptlyUnitConfirmedPeriodSchema<ID, DATE> {
197
196
  confirmed?: DATE;
198
197
  order?: ID | AptlyOrderSchema<ID, DATE>;
199
198
  }
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
- }
208
199
  interface AptlyUnitEditData<DATE> {
209
200
  address?: string;
210
201
  zipCode?: string;
@@ -2,4 +2,5 @@ import { AptlyBaseSchema } from './extends';
2
2
  export type AptlyWholesaler = AptlyWholesalerSchema<string, string>;
3
3
  export interface AptlyWholesalerSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
4
4
  orgNumber: string;
5
+ integrated: boolean;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.10.21",
3
+ "version": "3.12.0",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -1,7 +0,0 @@
1
- import { AptlyBaseSchema } from './extends';
2
- export interface AptlyContactSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
3
- email: string;
4
- firstName: string;
5
- lastName: string;
6
- phone: string;
7
- }
package/models/contact.js DELETED
@@ -1 +0,0 @@
1
- export {};