@aptly-as/types 2.0.8 → 2.1.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 +5 -0
- package/enums/index.js +6 -0
- package/models/booking.d.ts +2 -1
- package/models/extends.d.ts +5 -0
- package/models/organization.d.ts +3 -11
- package/models/project.d.ts +9 -1
- package/package.json +1 -1
package/enums/index.d.ts
CHANGED
package/enums/index.js
CHANGED
|
@@ -118,3 +118,9 @@ export var AptlyIcon;
|
|
|
118
118
|
AptlyIcon["Info"] = "info";
|
|
119
119
|
AptlyIcon["Map"] = "map";
|
|
120
120
|
})(AptlyIcon || (AptlyIcon = {}));
|
|
121
|
+
export var AptlyProjectStatus;
|
|
122
|
+
(function (AptlyProjectStatus) {
|
|
123
|
+
AptlyProjectStatus["NotStarted"] = "notStarted";
|
|
124
|
+
AptlyProjectStatus["Started"] = "started";
|
|
125
|
+
AptlyProjectStatus["Completed"] = "completed";
|
|
126
|
+
})(AptlyProjectStatus || (AptlyProjectStatus = {}));
|
package/models/booking.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
2
2
|
import { AptlyProjectSchema } from './project.js';
|
|
3
3
|
import { AptlyUnitSchema } from './unit.js';
|
|
4
|
+
import { AptlyUserSchema } from './user.js';
|
|
4
5
|
export type AptlyBooking = AptlyBookingSchema<string, string>;
|
|
5
6
|
export interface AptlyBookingSchema<ID, DATE> {
|
|
6
7
|
_id: ID;
|
|
@@ -38,7 +39,7 @@ export interface AptlyAvailabilityCalendarSchema<ID, DATE> {
|
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
|
-
attendees: ID[];
|
|
42
|
+
attendees: (ID | AptlyUserSchema<ID, DATE>)[];
|
|
42
43
|
availableTimes: AptlyAvailabilityCalendarAvailableTimesSchema<ID, DATE>[];
|
|
43
44
|
endAvailabilityAt?: DATE;
|
|
44
45
|
userAvailability?: ID[];
|
package/models/extends.d.ts
CHANGED
package/models/organization.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AptlyOrganizationRoles, AptlyAppScope, AptlySignageSchema } from '../co
|
|
|
3
3
|
import { AptlyModuleItemSchema } from './module.js';
|
|
4
4
|
import { AptlyUserSchema } from './user.js';
|
|
5
5
|
import { AptlyMediaSrc } from './media.js';
|
|
6
|
-
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
6
|
+
import { AptlyAddress, AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
7
7
|
import { AptlyDepartmentGeneric } from './department.js';
|
|
8
8
|
import { AptlyProducerSchema } from './producer.js';
|
|
9
9
|
import { AptlyAppSchema } from './app.js';
|
|
@@ -16,16 +16,8 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
16
16
|
negativeLogoMedia?: AptlyMediaSrc | null;
|
|
17
17
|
projectLogoMedia?: AptlyMediaSrc | null;
|
|
18
18
|
address: {
|
|
19
|
-
visit:
|
|
20
|
-
|
|
21
|
-
zip: string;
|
|
22
|
-
city: string;
|
|
23
|
-
};
|
|
24
|
-
post: {
|
|
25
|
-
street: string;
|
|
26
|
-
zip: string;
|
|
27
|
-
city: string;
|
|
28
|
-
};
|
|
19
|
+
visit: AptlyAddress;
|
|
20
|
+
post: AptlyAddress;
|
|
29
21
|
};
|
|
30
22
|
phone: string;
|
|
31
23
|
email: string;
|
package/models/project.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { AptlyProjectStatus } from '../enums/index.js';
|
|
1
2
|
import { AptlyAlgorithm, AptlyAlgorithmPipeline, AptlyAlgorithmPipelineSchema, AptlyAlgorithmSchema } from './algorithm.js';
|
|
2
3
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
3
4
|
import { AptlyModules } from '../core/index.js';
|
|
4
5
|
import { AptlyPeriod, AptlyPeriodSchema } from './period.js';
|
|
5
6
|
import { AptlyUserSchema } from './user.js';
|
|
6
|
-
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
7
|
+
import { AptlyAddress, AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
7
8
|
import { AptlyDocumentSchema } from './document.js';
|
|
8
9
|
import { AptlyUnitOptionExtraItemSchema } from './unit.js';
|
|
9
10
|
import { AptlyMediaSrc } from './media.js';
|
|
@@ -25,6 +26,11 @@ export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>,
|
|
|
25
26
|
extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[];
|
|
26
27
|
gdprActive?: boolean;
|
|
27
28
|
userFavorites?: ID[];
|
|
29
|
+
status?: AptlyProjectStatus;
|
|
30
|
+
number?: string;
|
|
31
|
+
developer?: string;
|
|
32
|
+
field?: string;
|
|
33
|
+
address?: AptlyAddress;
|
|
28
34
|
created: DATE;
|
|
29
35
|
}
|
|
30
36
|
export type AptlyProjectPeriod = AptlyPeriod;
|
|
@@ -35,8 +41,10 @@ export type AptlyProjectAlgorithmPipeline = AptlyAlgorithmPipeline;
|
|
|
35
41
|
export type AptlyProjectAlgorithmPipelineSchema<ID> = AptlyAlgorithmPipelineSchema<ID>;
|
|
36
42
|
export interface AptlyProjectTheme {
|
|
37
43
|
palette?: {
|
|
44
|
+
type?: 'dark' | 'light';
|
|
38
45
|
primary?: AptlyProjectThemePalette;
|
|
39
46
|
secondary?: AptlyProjectThemePalette;
|
|
47
|
+
error?: AptlyProjectThemePalette;
|
|
40
48
|
font?: string;
|
|
41
49
|
background?: string;
|
|
42
50
|
confirm?: string;
|