@aptly-as/types 2.0.7 → 2.0.8
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/permission.d.ts +101 -0
- package/core/permission.js +100 -0
- package/core/scope.d.ts +0 -2
- package/core/scope.js +0 -2
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare enum AptlyModule {
|
|
2
|
+
Algorithms = "algorithms",
|
|
3
|
+
Booking = "booking",
|
|
4
|
+
Core = "core",
|
|
5
|
+
Default = "default",
|
|
6
|
+
Departments = "departments",
|
|
7
|
+
OptionLabels = "optionLabels",
|
|
8
|
+
Pages = "pages",
|
|
9
|
+
ProductsExtended = "productsExtended",
|
|
10
|
+
Recommendations = "recommendations",
|
|
11
|
+
Subcontractor = "subcontractor",
|
|
12
|
+
Support = "support",
|
|
13
|
+
Testing = "testing",
|
|
14
|
+
UnitExtraOptions = "unitExtraOptions",
|
|
15
|
+
UnitExtraFields = "unitExtraFields"
|
|
16
|
+
}
|
|
17
|
+
export declare enum AptlyScope {
|
|
18
|
+
Admin = "admin",
|
|
19
|
+
AdminBilling = "adminBilling",
|
|
20
|
+
AdminProducers = "adminProducers",
|
|
21
|
+
AdminProducts = "adminProducts",
|
|
22
|
+
AdminReport = "adminReport",
|
|
23
|
+
AdminStats = "adminStats",
|
|
24
|
+
AdminSuppliers = "adminSuppliers",
|
|
25
|
+
AdminTags = "adminTags",
|
|
26
|
+
AdminTesting = "adminTesting",
|
|
27
|
+
AdminUsers = "adminUsers",
|
|
28
|
+
AdminOrganizations = "adminOrganizations",
|
|
29
|
+
Beta = "beta",
|
|
30
|
+
Organization = "organization",
|
|
31
|
+
OrganizationAlgorithms = "organizationAlgorithms",
|
|
32
|
+
OrganizationBooking = "organizationBooking",
|
|
33
|
+
OrganizationClients = "organizationClients",
|
|
34
|
+
OrganizationDepartments = "organizationDepartments",
|
|
35
|
+
OrganizationLogo = "organizationLogo",
|
|
36
|
+
OrganizationMembers = "organizationMembers",
|
|
37
|
+
OrganizationOptionLabels = "organizationOptionLabels",
|
|
38
|
+
OrganizationOrders = "organizationOrders",
|
|
39
|
+
OrganizationPages = "organizationPages",
|
|
40
|
+
OrganizationProducts = "organizationProducts",
|
|
41
|
+
OrganizationProductsExtended = "organizationProductsExtended",
|
|
42
|
+
OrganizationRecommendations = "organizationRecommendations",
|
|
43
|
+
OrganizationReport = "organizationReport",
|
|
44
|
+
OrganizationStats = "organizationStats",
|
|
45
|
+
OrganizationUnitTemplates = "organizationUnitTemplates",
|
|
46
|
+
OrganizationUpsellTemplates = "organizationUpsellTemplates",
|
|
47
|
+
OrganizationWebhooks = "organizationWebhooks",
|
|
48
|
+
Project = "project",
|
|
49
|
+
ProjectAlgorithms = "projectAlgorithms",
|
|
50
|
+
ProjectBooking = "projectBooking",
|
|
51
|
+
ProjectDocuments = "projectDocuments",
|
|
52
|
+
ProjectInquiry = "projectInquiry",
|
|
53
|
+
ProjectOrders = "projectOrders",
|
|
54
|
+
ProjectPages = "projectPages",
|
|
55
|
+
ProjectPeriods = "projectPeriods",
|
|
56
|
+
ProjectProducts = "projectProducts",
|
|
57
|
+
ProjectRecommendations = "projectRecommendations",
|
|
58
|
+
ProjectReport = "projectReport",
|
|
59
|
+
ProjectReportPrice = "projectReportPrice",
|
|
60
|
+
ProjectTheme = "projectTheme",
|
|
61
|
+
ProjectSigning = "projectSigning",
|
|
62
|
+
ProjectSubcontractor = "projectSubcontractor",
|
|
63
|
+
ProjectUnits = "projectUnits",
|
|
64
|
+
ProjectUnitInvites = "projectUnitInvites",
|
|
65
|
+
ProjectUnitExtraFields = "projectUnitExtraFields",
|
|
66
|
+
ProjectUnitExtraOptions = "projectUnitExtraOptions",
|
|
67
|
+
ProjectUnitTemplates = "projectUnitTemplates",
|
|
68
|
+
ProjectUnitTemplatesAlgorithms = "projectUnitTemplatesAlgorithms",
|
|
69
|
+
ProjectUnitTemplatesPrices = "projectUnitTemplatesPrices",
|
|
70
|
+
ProjectUpsellTemplates = "projectUpsellTemplates",
|
|
71
|
+
Unit = "unit",
|
|
72
|
+
UnitBooking = "unitBooking",
|
|
73
|
+
UnitInquiry = "unitInquiry",
|
|
74
|
+
UnitNotes = "unitNotes",
|
|
75
|
+
UnitOrders = "unitOrders",
|
|
76
|
+
UnitPages = "unitPages",
|
|
77
|
+
UnitProducts = "unitProducts",
|
|
78
|
+
UnitReport = "unitReport"
|
|
79
|
+
}
|
|
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;
|
|
101
|
+
};
|
|
@@ -0,0 +1,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
|
@@ -6,7 +6,6 @@ export declare enum AptlyModules {
|
|
|
6
6
|
Departments = "departments",
|
|
7
7
|
OptionLabels = "optionLabels",
|
|
8
8
|
Pages = "pages",
|
|
9
|
-
Producer = "producer",
|
|
10
9
|
ProductsExtended = "productsExtended",
|
|
11
10
|
Recommendations = "recommendations",
|
|
12
11
|
Subcontractor = "subcontractor",
|
|
@@ -49,7 +48,6 @@ export declare enum AptlyScopes {
|
|
|
49
48
|
OrganizationUnitTemplates = "organizationUnitTemplates",
|
|
50
49
|
OrganizationUpsellTemplates = "organizationUpsellTemplates",
|
|
51
50
|
OrganizationWebhooks = "organizationWebhooks",
|
|
52
|
-
Producer = "producer",
|
|
53
51
|
Project = "project",
|
|
54
52
|
ProjectAlgorithms = "projectAlgorithms",
|
|
55
53
|
ProjectBooking = "projectBooking",
|
package/core/scope.js
CHANGED
|
@@ -7,7 +7,6 @@ export var AptlyModules;
|
|
|
7
7
|
AptlyModules["Departments"] = "departments";
|
|
8
8
|
AptlyModules["OptionLabels"] = "optionLabels";
|
|
9
9
|
AptlyModules["Pages"] = "pages";
|
|
10
|
-
AptlyModules["Producer"] = "producer";
|
|
11
10
|
AptlyModules["ProductsExtended"] = "productsExtended";
|
|
12
11
|
AptlyModules["Recommendations"] = "recommendations";
|
|
13
12
|
AptlyModules["Subcontractor"] = "subcontractor";
|
|
@@ -51,7 +50,6 @@ export var AptlyScopes;
|
|
|
51
50
|
AptlyScopes["OrganizationUnitTemplates"] = "organizationUnitTemplates";
|
|
52
51
|
AptlyScopes["OrganizationUpsellTemplates"] = "organizationUpsellTemplates";
|
|
53
52
|
AptlyScopes["OrganizationWebhooks"] = "organizationWebhooks";
|
|
54
|
-
AptlyScopes["Producer"] = "producer";
|
|
55
53
|
AptlyScopes["Project"] = "project";
|
|
56
54
|
AptlyScopes["ProjectAlgorithms"] = "projectAlgorithms";
|
|
57
55
|
AptlyScopes["ProjectBooking"] = "projectBooking";
|