@aptly-as/types 1.15.0-beta.1 → 2.0.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/core/scope.d.ts +7 -6
- package/core/scope.js +103 -102
- package/models/app.d.ts +2 -2
- package/models/client.d.ts +2 -3
- package/models/department.d.ts +2 -2
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/module.d.ts +18 -0
- package/models/module.js +1 -0
- package/models/organization.d.ts +8 -6
- package/models/project.d.ts +2 -2
- package/models/user.d.ts +3 -2
- package/package.json +1 -1
package/core/scope.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum AptlyModules {
|
|
2
2
|
Algorithms = "algorithms",
|
|
3
3
|
Booking = "booking",
|
|
4
4
|
Core = "core",
|
|
@@ -15,9 +15,10 @@ export declare enum AptlyModule {
|
|
|
15
15
|
UnitExtraOptions = "unitExtraOptions",
|
|
16
16
|
UnitExtraFields = "unitExtraFields"
|
|
17
17
|
}
|
|
18
|
-
export declare enum
|
|
18
|
+
export declare enum AptlyScopes {
|
|
19
19
|
Admin = "admin",
|
|
20
20
|
AdminBilling = "adminBilling",
|
|
21
|
+
AdminModules = "adminModules",
|
|
21
22
|
AdminProducers = "adminProducers",
|
|
22
23
|
AdminProducts = "adminProducts",
|
|
23
24
|
AdminReport = "adminReport",
|
|
@@ -79,13 +80,13 @@ export declare enum AptlyScope {
|
|
|
79
80
|
UnitProducts = "unitProducts",
|
|
80
81
|
UnitReport = "unitReport"
|
|
81
82
|
}
|
|
82
|
-
export declare enum
|
|
83
|
+
export declare enum AptlyUserRoles {
|
|
83
84
|
Admin = "admin",
|
|
84
85
|
Beta = "beta",
|
|
85
86
|
Default = "default",
|
|
86
87
|
SuperAdmin = "superAdmin"
|
|
87
88
|
}
|
|
88
|
-
export declare enum
|
|
89
|
+
export declare enum AptlyOrganizationRoles {
|
|
89
90
|
Admin = "admin",
|
|
90
91
|
Content = "content",
|
|
91
92
|
OrganizationContent = "organizationContent",
|
|
@@ -99,13 +100,13 @@ export declare enum AptlyOrganizationRole {
|
|
|
99
100
|
export type AptlyScopeCrud = 'C' | 'R' | 'U' | 'D';
|
|
100
101
|
export type AptlyScopeSchemaValue = 'C' | 'CR' | 'CRU' | 'CRUD' | 'R' | 'RU' | 'RUD' | 'U' | 'UD' | 'D';
|
|
101
102
|
export type AptlyScopeSchema = {
|
|
102
|
-
[key in
|
|
103
|
+
[key in AptlyScopes]: AptlyScopeSchemaValue;
|
|
103
104
|
};
|
|
104
105
|
export declare enum AptlyScopeAction {
|
|
105
106
|
Read = "read",
|
|
106
107
|
Write = "write"
|
|
107
108
|
}
|
|
108
|
-
export type AptlyAppScope = `aptly.${
|
|
109
|
+
export type AptlyAppScope = `aptly.${AptlyScopes}` | `aptly.${AptlyScopes}.${AptlyScopeAction}`;
|
|
109
110
|
export type AptlyAppScopeTranslations = {
|
|
110
111
|
[key in AptlyAppScope]: {
|
|
111
112
|
label: string;
|
package/core/scope.js
CHANGED
|
@@ -1,105 +1,106 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})(
|
|
19
|
-
export var
|
|
20
|
-
(function (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
1
|
+
export var AptlyModules;
|
|
2
|
+
(function (AptlyModules) {
|
|
3
|
+
AptlyModules["Algorithms"] = "algorithms";
|
|
4
|
+
AptlyModules["Booking"] = "booking";
|
|
5
|
+
AptlyModules["Core"] = "core";
|
|
6
|
+
AptlyModules["Default"] = "default";
|
|
7
|
+
AptlyModules["Departments"] = "departments";
|
|
8
|
+
AptlyModules["OptionLabels"] = "optionLabels";
|
|
9
|
+
AptlyModules["Pages"] = "pages";
|
|
10
|
+
AptlyModules["ProductsExtended"] = "productsExtended";
|
|
11
|
+
AptlyModules["Recommendations"] = "recommendations";
|
|
12
|
+
AptlyModules["Subcontractor"] = "subcontractor";
|
|
13
|
+
AptlyModules["Support"] = "support";
|
|
14
|
+
AptlyModules["SupportComplaint"] = "supportComplaint";
|
|
15
|
+
AptlyModules["Testing"] = "testing";
|
|
16
|
+
AptlyModules["UnitExtraOptions"] = "unitExtraOptions";
|
|
17
|
+
AptlyModules["UnitExtraFields"] = "unitExtraFields";
|
|
18
|
+
})(AptlyModules || (AptlyModules = {}));
|
|
19
|
+
export var AptlyScopes;
|
|
20
|
+
(function (AptlyScopes) {
|
|
21
|
+
AptlyScopes["Admin"] = "admin";
|
|
22
|
+
AptlyScopes["AdminBilling"] = "adminBilling";
|
|
23
|
+
AptlyScopes["AdminModules"] = "adminModules";
|
|
24
|
+
AptlyScopes["AdminProducers"] = "adminProducers";
|
|
25
|
+
AptlyScopes["AdminProducts"] = "adminProducts";
|
|
26
|
+
AptlyScopes["AdminReport"] = "adminReport";
|
|
27
|
+
AptlyScopes["AdminStats"] = "adminStats";
|
|
28
|
+
AptlyScopes["AdminSuppliers"] = "adminSuppliers";
|
|
29
|
+
AptlyScopes["AdminTags"] = "adminTags";
|
|
30
|
+
AptlyScopes["AdminTesting"] = "adminTesting";
|
|
31
|
+
AptlyScopes["AdminUsers"] = "adminUsers";
|
|
32
|
+
AptlyScopes["AdminOrganizations"] = "adminOrganizations";
|
|
33
|
+
AptlyScopes["Beta"] = "beta";
|
|
34
|
+
AptlyScopes["Organization"] = "organization";
|
|
35
|
+
AptlyScopes["OrganizationAlgorithms"] = "organizationAlgorithms";
|
|
36
|
+
AptlyScopes["OrganizationBooking"] = "organizationBooking";
|
|
37
|
+
AptlyScopes["OrganizationClients"] = "organizationClients";
|
|
38
|
+
AptlyScopes["OrganizationDepartments"] = "organizationDepartments";
|
|
39
|
+
AptlyScopes["OrganizationLogo"] = "organizationLogo";
|
|
40
|
+
AptlyScopes["OrganizationMembers"] = "organizationMembers";
|
|
41
|
+
AptlyScopes["OrganizationOptionLabels"] = "organizationOptionLabels";
|
|
42
|
+
AptlyScopes["OrganizationOrders"] = "organizationOrders";
|
|
43
|
+
AptlyScopes["OrganizationPages"] = "organizationPages";
|
|
44
|
+
AptlyScopes["OrganizationProducts"] = "organizationProducts";
|
|
45
|
+
AptlyScopes["OrganizationProductsExtended"] = "organizationProductsExtended";
|
|
46
|
+
AptlyScopes["OrganizationRecommendations"] = "organizationRecommendations";
|
|
47
|
+
AptlyScopes["OrganizationReport"] = "organizationReport";
|
|
48
|
+
AptlyScopes["OrganizationStats"] = "organizationStats";
|
|
49
|
+
AptlyScopes["OrganizationUnitTemplates"] = "organizationUnitTemplates";
|
|
50
|
+
AptlyScopes["OrganizationUpsellTemplates"] = "organizationUpsellTemplates";
|
|
51
|
+
AptlyScopes["OrganizationWebhooks"] = "organizationWebhooks";
|
|
52
|
+
AptlyScopes["Project"] = "project";
|
|
53
|
+
AptlyScopes["ProjectAlgorithms"] = "projectAlgorithms";
|
|
54
|
+
AptlyScopes["ProjectBooking"] = "projectBooking";
|
|
55
|
+
AptlyScopes["ProjectDocuments"] = "projectDocuments";
|
|
56
|
+
AptlyScopes["ProjectInquiry"] = "projectInquiry";
|
|
57
|
+
AptlyScopes["ProjectInquiryComplaint"] = "projectInquiryComplaint";
|
|
58
|
+
AptlyScopes["ProjectOrders"] = "projectOrders";
|
|
59
|
+
AptlyScopes["ProjectPages"] = "projectPages";
|
|
60
|
+
AptlyScopes["ProjectPeriods"] = "projectPeriods";
|
|
61
|
+
AptlyScopes["ProjectProducts"] = "projectProducts";
|
|
62
|
+
AptlyScopes["ProjectRecommendations"] = "projectRecommendations";
|
|
63
|
+
AptlyScopes["ProjectReport"] = "projectReport";
|
|
64
|
+
AptlyScopes["ProjectReportPrice"] = "projectReportPrice";
|
|
65
|
+
AptlyScopes["ProjectTheme"] = "projectTheme";
|
|
66
|
+
AptlyScopes["ProjectSigning"] = "projectSigning";
|
|
67
|
+
AptlyScopes["ProjectSubcontractor"] = "projectSubcontractor";
|
|
68
|
+
AptlyScopes["ProjectUnits"] = "projectUnits";
|
|
69
|
+
AptlyScopes["ProjectUnitInvites"] = "projectUnitInvites";
|
|
70
|
+
AptlyScopes["ProjectUnitExtraFields"] = "projectUnitExtraFields";
|
|
71
|
+
AptlyScopes["ProjectUnitExtraOptions"] = "projectUnitExtraOptions";
|
|
72
|
+
AptlyScopes["ProjectUnitTemplates"] = "projectUnitTemplates";
|
|
73
|
+
AptlyScopes["ProjectUnitTemplatesAlgorithms"] = "projectUnitTemplatesAlgorithms";
|
|
74
|
+
AptlyScopes["ProjectUnitTemplatesPrices"] = "projectUnitTemplatesPrices";
|
|
75
|
+
AptlyScopes["ProjectUpsellTemplates"] = "projectUpsellTemplates";
|
|
76
|
+
AptlyScopes["Unit"] = "unit";
|
|
77
|
+
AptlyScopes["UnitBooking"] = "unitBooking";
|
|
78
|
+
AptlyScopes["UnitInquiry"] = "unitInquiry";
|
|
79
|
+
AptlyScopes["UnitNotes"] = "unitNotes";
|
|
80
|
+
AptlyScopes["UnitOrders"] = "unitOrders";
|
|
81
|
+
AptlyScopes["UnitPages"] = "unitPages";
|
|
82
|
+
AptlyScopes["UnitProducts"] = "unitProducts";
|
|
83
|
+
AptlyScopes["UnitReport"] = "unitReport";
|
|
84
|
+
})(AptlyScopes || (AptlyScopes = {}));
|
|
85
|
+
export var AptlyUserRoles;
|
|
86
|
+
(function (AptlyUserRoles) {
|
|
87
|
+
AptlyUserRoles["Admin"] = "admin";
|
|
88
|
+
AptlyUserRoles["Beta"] = "beta";
|
|
89
|
+
AptlyUserRoles["Default"] = "default";
|
|
90
|
+
AptlyUserRoles["SuperAdmin"] = "superAdmin";
|
|
91
|
+
})(AptlyUserRoles || (AptlyUserRoles = {}));
|
|
92
|
+
export var AptlyOrganizationRoles;
|
|
93
|
+
(function (AptlyOrganizationRoles) {
|
|
94
|
+
AptlyOrganizationRoles["Admin"] = "admin";
|
|
95
|
+
AptlyOrganizationRoles["Content"] = "content";
|
|
96
|
+
AptlyOrganizationRoles["OrganizationContent"] = "organizationContent";
|
|
97
|
+
AptlyOrganizationRoles["Default"] = "default";
|
|
98
|
+
AptlyOrganizationRoles["ProjectAdmin"] = "projectAdmin";
|
|
99
|
+
AptlyOrganizationRoles["TestingAdmin"] = "testingAdmin";
|
|
100
|
+
AptlyOrganizationRoles["Reports"] = "reports";
|
|
101
|
+
AptlyOrganizationRoles["Support"] = "support";
|
|
102
|
+
AptlyOrganizationRoles["ThirdParty"] = "thirdParty";
|
|
103
|
+
})(AptlyOrganizationRoles || (AptlyOrganizationRoles = {}));
|
|
103
104
|
export var AptlyScopeAction;
|
|
104
105
|
(function (AptlyScopeAction) {
|
|
105
106
|
AptlyScopeAction["Read"] = "read";
|
package/models/app.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AptlyBaseSchema } from './extends.js';
|
|
2
2
|
import { AptlyWebhookType } from '../enums/index.js';
|
|
3
|
-
import { AptlyAppSandbox, AptlyField,
|
|
3
|
+
import { AptlyAppSandbox, AptlyField, AptlyScopes } from '../core/index.js';
|
|
4
4
|
import { AptlyMediaSrcSchema } from './media.js';
|
|
5
5
|
export type AptlyApp = AptlyAppSchema<string, string>;
|
|
6
6
|
export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
@@ -59,7 +59,7 @@ export interface AptlyAppMenuSchema<ID, DATE> {
|
|
|
59
59
|
_id: ID;
|
|
60
60
|
type: AptlyAppInjectionType;
|
|
61
61
|
menu: AptlyAppInjectionMenu[];
|
|
62
|
-
model:
|
|
62
|
+
model: AptlyScopes;
|
|
63
63
|
label: string;
|
|
64
64
|
icon?: AptlyMediaSrcSchema<ID, DATE>;
|
|
65
65
|
src: string;
|
package/models/client.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import { AptlyBaseSchema } from './extends.js';
|
|
|
2
2
|
import { AptlyScopeSchema } from '../core/index.js';
|
|
3
3
|
export interface AptlyUserClientSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'> {
|
|
4
4
|
user: ID;
|
|
5
|
-
|
|
5
|
+
client: string;
|
|
6
6
|
clientId: string;
|
|
7
|
+
scopes: Partial<AptlyScopeSchema>;
|
|
7
8
|
clientSecret?: string;
|
|
8
|
-
permissions: AptlyScopeSchema;
|
|
9
|
-
created: DATE;
|
|
10
9
|
}
|
|
11
10
|
export type AptlyUserClient = AptlyUserClientSchema<string, string>;
|
package/models/department.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AptlyOrganizationRoles } from '../core/index.js';
|
|
2
2
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
3
3
|
import { AptlyProjectSchema } from './project.js';
|
|
4
4
|
import { AptlyUserSchema } from './user.js';
|
|
@@ -22,7 +22,7 @@ export type AptlyDepartmentUser = AptlyDepartmentUserGeneric<string, string>;
|
|
|
22
22
|
export interface AptlyDepartmentUserGeneric<ID, DATE> {
|
|
23
23
|
_id: ID;
|
|
24
24
|
user: ID | AptlyUserSchema<ID, DATE>;
|
|
25
|
-
permissions:
|
|
25
|
+
permissions: AptlyOrganizationRoles[];
|
|
26
26
|
createdAt: DATE;
|
|
27
27
|
updatedAt: DATE;
|
|
28
28
|
}
|
package/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './document.js';
|
|
|
7
7
|
export * from './extends.js';
|
|
8
8
|
export * from './inquiry.js';
|
|
9
9
|
export * from './media.js';
|
|
10
|
+
export * from './module.js';
|
|
10
11
|
export * from './note.js';
|
|
11
12
|
export * from './notification-trigger.js';
|
|
12
13
|
export * from './option-label.js';
|
package/models/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './document.js';
|
|
|
7
7
|
export * from './extends.js';
|
|
8
8
|
export * from './inquiry.js';
|
|
9
9
|
export * from './media.js';
|
|
10
|
+
export * from './module.js';
|
|
10
11
|
export * from './note.js';
|
|
11
12
|
export * from './notification-trigger.js';
|
|
12
13
|
export * from './option-label.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AptlyModules } from '../core/index.js';
|
|
2
|
+
export type AptlyModule = AptlyModuleSchema<string, string>;
|
|
3
|
+
export interface AptlyModuleSchema<ID, DATE> {
|
|
4
|
+
_id: ID;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
featuredWeight: number;
|
|
8
|
+
modules: AptlyModules[];
|
|
9
|
+
createdAt: DATE;
|
|
10
|
+
updatedAt: DATE;
|
|
11
|
+
}
|
|
12
|
+
export type AptlyModuleItem = AptlyModuleItemSchema<string, string>;
|
|
13
|
+
export interface AptlyModuleItemSchema<ID, DATE> {
|
|
14
|
+
_id: ID;
|
|
15
|
+
module: ID | AptlyModuleSchema<ID, DATE>;
|
|
16
|
+
modules: AptlyModules[];
|
|
17
|
+
installedAt: DATE;
|
|
18
|
+
}
|
package/models/module.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/organization.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AptlyModules } from '../core/index.js';
|
|
2
|
+
import { AptlyOrganizationRoles, AptlyAppScope, AptlySignageSchema } from '../core/index.js';
|
|
3
|
+
import { AptlyModuleItemSchema } from './module.js';
|
|
3
4
|
import { AptlyUserSchema } from './user.js';
|
|
4
5
|
import { AptlyMediaSrc } from './media.js';
|
|
5
6
|
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
@@ -30,12 +31,13 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
30
31
|
email: string;
|
|
31
32
|
algorithms: AptlyAlgorithmSchema<ID>[];
|
|
32
33
|
members: AptlyOrganizationMemberSchema<ID, DATE>[];
|
|
33
|
-
modules:
|
|
34
|
+
modules: AptlyModules[];
|
|
34
35
|
contractSign?: AptlySignageSchema<ID, DATE>;
|
|
35
36
|
integrations: AptlyOrganizationIntegrationsSchema<ID>[];
|
|
36
37
|
invites: AptlyOrganizationInviteSchema<ID, DATE>[];
|
|
37
38
|
apps: AptlyOrganizationAppConfigSchema<ID, DATE>[];
|
|
38
39
|
storageId?: string;
|
|
40
|
+
installedModules: AptlyModuleItemSchema<ID, DATE>[];
|
|
39
41
|
created: DATE;
|
|
40
42
|
fixedVariants?: boolean;
|
|
41
43
|
}
|
|
@@ -50,16 +52,16 @@ export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, stri
|
|
|
50
52
|
export interface AptlyOrganizationMemberSchema<ID, DATE> {
|
|
51
53
|
_id: ID;
|
|
52
54
|
user: AptlyUserSchema<ID, DATE> | ID;
|
|
53
|
-
permissions:
|
|
55
|
+
permissions: AptlyOrganizationRoles[];
|
|
54
56
|
projects?: (ID | AptlyProducerSchema<ID, DATE>)[] | null;
|
|
55
|
-
departments?: (ID | AptlyDepartmentGeneric<ID, DATE>)[];
|
|
57
|
+
departments?: (ID | AptlyDepartmentGeneric<ID, DATE>)[] | null;
|
|
56
58
|
}
|
|
57
59
|
export type AptlyOrganizationInvite = AptlyOrganizationInviteSchema<string, string>;
|
|
58
60
|
export interface AptlyOrganizationInviteSchema<ID, DATE> {
|
|
59
61
|
_id: ID;
|
|
60
62
|
code: string;
|
|
61
63
|
created: DATE;
|
|
62
|
-
permissions?:
|
|
64
|
+
permissions?: AptlyOrganizationRoles[];
|
|
63
65
|
projects?: ID[] | null;
|
|
64
66
|
departments?: ID[] | null;
|
|
65
67
|
claim: {
|
package/models/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AptlyAlgorithm, AptlyAlgorithmPipeline, AptlyAlgorithmPipelineSchema, AptlyAlgorithmSchema } from './algorithm.js';
|
|
2
2
|
import { AptlyOrganizationSchema } from './organization.js';
|
|
3
|
-
import {
|
|
3
|
+
import { AptlyModules } from '../core/index.js';
|
|
4
4
|
import { AptlyPeriod, AptlyPeriodSchema } from './period.js';
|
|
5
5
|
import { AptlyUserSchema } from './user.js';
|
|
6
6
|
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
@@ -21,7 +21,7 @@ export interface AptlyProjectSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE>,
|
|
|
21
21
|
notify: AptlyProjectNotifySchema<ID, DATE>[];
|
|
22
22
|
theme: AptlyProjectTheme;
|
|
23
23
|
integrations: AptlyProjectIntegrationSchema<ID>[];
|
|
24
|
-
disabledModules?:
|
|
24
|
+
disabledModules?: AptlyModules[];
|
|
25
25
|
extraOptions?: AptlyUnitOptionExtraItemSchema<ID, DATE>[];
|
|
26
26
|
gdprActive?: boolean;
|
|
27
27
|
userFavorites?: ID[];
|
package/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AptlyUserRoles } from '../core/index.js';
|
|
2
2
|
import { AptlyBaseSchema } from './extends.js';
|
|
3
3
|
export type AptlyUser = AptlyUserSchema<string, string>;
|
|
4
4
|
export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> {
|
|
@@ -7,7 +7,8 @@ export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE
|
|
|
7
7
|
firstName?: string;
|
|
8
8
|
lastName?: string;
|
|
9
9
|
profileImage: string | null;
|
|
10
|
-
permissions:
|
|
10
|
+
permissions: AptlyUserRoles[];
|
|
11
|
+
roles: AptlyUserRoles[];
|
|
11
12
|
gdpr: boolean;
|
|
12
13
|
phone: string;
|
|
13
14
|
synced: DATE;
|