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