@adminide-stack/core 13.5.3-alpha.313 → 13.5.3-alpha.315
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/lib/modules/account-api/enums/index.d.ts +10 -109
- package/lib/modules/account-api/enums/index.js +10 -142
- package/lib/modules/account-api/enums/index.js.map +1 -1
- package/lib/modules/billing-api/enums/index.d.ts +14 -42
- package/lib/modules/billing-api/enums/index.js +13 -44
- package/lib/modules/billing-api/enums/index.js.map +1 -1
- package/lib/modules/inbox/enums/index.d.ts +11 -20
- package/package.json +3 -3
|
@@ -1,112 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Account permission keys.
|
|
3
|
+
*
|
|
4
|
+
* Values are defined in the account module's permission template
|
|
5
|
+
* (`account-api/server/src/templates/constants/PreDefineAccountPermissions.ts.template`)
|
|
6
|
+
* and aggregated into `common` by `yarn regenerateGraphql`. The aggregator emits a plain
|
|
7
|
+
* (string-typed) object, so we re-type the values here to `IPermissionsFlattenedKeys` -
|
|
8
|
+
* this is the shared `@adminide-stack/core` surface consumers import for account/billing
|
|
9
|
+
* permissions.
|
|
6
10
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly guestUser: "account.user.guest";
|
|
10
|
-
readonly superAdminMenus: "account.superAdminMenus";
|
|
11
|
-
readonly viewOrganization: "organization.view";
|
|
12
|
-
readonly createOrganization: "organization.create";
|
|
13
|
-
readonly editOrganization: "organization.edit";
|
|
14
|
-
readonly deleteOrganization: "organization.delete";
|
|
15
|
-
readonly manageOrganization: "organization.manage";
|
|
16
|
-
readonly inviteMember: "organization.inviteMember";
|
|
17
|
-
readonly viewMembers: "organization.members.view";
|
|
18
|
-
readonly createMembers: "organization.members.create";
|
|
19
|
-
readonly editMembers: "organization.members.edit";
|
|
20
|
-
readonly deleteMembers: "organization.members.delete";
|
|
21
|
-
readonly manageMembers: "organization.members.manage";
|
|
22
|
-
readonly viewRoles: "organization.roles.view";
|
|
23
|
-
readonly editRoles: "organization.roles.edit";
|
|
24
|
-
readonly viewPermissions: "organization.permissions.view";
|
|
25
|
-
readonly editPermissions: "organization.permissions.edit";
|
|
26
|
-
readonly viewPolicies: "organization.policies.view";
|
|
27
|
-
readonly editPolicies: "organization.policies.edit";
|
|
28
|
-
readonly viewSettings: "organization.settings.view";
|
|
29
|
-
readonly editSettings: "organization.settings.edit";
|
|
30
|
-
readonly inviteTeamMember: "organization.teams.inviteMember";
|
|
31
|
-
readonly viewTeams: "organization.teams.view";
|
|
32
|
-
readonly viewOthersTeam: "organization.teams.viewOthers";
|
|
33
|
-
readonly createTeams: "organization.teams.create";
|
|
34
|
-
readonly editTeams: "organization.teams.edit";
|
|
35
|
-
readonly deleteTeams: "organization.teams.delete";
|
|
36
|
-
readonly manageTeams: "organization.teams.manage";
|
|
37
|
-
readonly accessTeamDashboard: "organization.teams.dashboard.access";
|
|
38
|
-
readonly viewSelfProjects: "organization.projects.self.view";
|
|
39
|
-
readonly createSelfProjects: "organization.projects.self.create";
|
|
40
|
-
readonly editSelfProjects: "organization.projects.self.edit";
|
|
41
|
-
readonly deleteSelfProjects: "organization.projects.self.delete";
|
|
42
|
-
readonly manageSelfProjects: "organization.projects.self.manage";
|
|
43
|
-
readonly viewSelfProjectStatus: "organization.projects.status.self.view";
|
|
44
|
-
readonly viewOthersProjects: "organization.projects.others.view";
|
|
45
|
-
readonly createOthersProjects: "organization.projects.others.create";
|
|
46
|
-
readonly editOthersProjects: "organization.projects.others.edit";
|
|
47
|
-
readonly deleteOthersProjects: "organization.projects.others.delete";
|
|
48
|
-
readonly manageOthersProjects: "organization.projects.others.manage";
|
|
49
|
-
readonly viewOthersProjectStatus: "organization.projects.status.others.view";
|
|
50
|
-
readonly viewSelfClients: "organization.clients.self.view";
|
|
51
|
-
readonly createSelfClients: "organization.clients.self.create";
|
|
52
|
-
readonly editSelfClients: "organization.clients.self.edit";
|
|
53
|
-
readonly deleteSelfClients: "organization.clients.self.delete";
|
|
54
|
-
readonly manageSelfClients: "organization.clients.self.manage";
|
|
55
|
-
readonly viewOthersClients: "organization.clients.others.view";
|
|
56
|
-
readonly createOthersClients: "organization.clients.others.create";
|
|
57
|
-
readonly editOthersClients: "organization.clients.others.edit";
|
|
58
|
-
readonly deleteOthersClients: "organization.clients.others.delete";
|
|
59
|
-
readonly manageOthersClients: "organization.clients.others.manage";
|
|
60
|
-
readonly viewTasks: "organization.tasks.view";
|
|
61
|
-
readonly createTasks: "organization.tasks.create";
|
|
62
|
-
readonly editTasks: "organization.tasks.edit";
|
|
63
|
-
readonly deleteTasks: "organization.tasks.delete";
|
|
64
|
-
readonly manageTasks: "organization.tasks.manage";
|
|
65
|
-
readonly viewTags: "organization.tags.view";
|
|
66
|
-
readonly createTags: "organization.tags.create";
|
|
67
|
-
readonly editTags: "organization.tags.edit";
|
|
68
|
-
readonly deleteTags: "organization.tags.delete";
|
|
69
|
-
readonly manageTags: "organization.tags.manage";
|
|
70
|
-
readonly accessTerminal: "organization.terminal.access";
|
|
71
|
-
readonly manageTerminal: "organization.terminal.manage";
|
|
72
|
-
readonly accessS3Admin: "organization.s3.admin.access";
|
|
73
|
-
readonly readS3Resources: "organization.s3.resources.read";
|
|
74
|
-
readonly createS3Buckets: "organization.s3.buckets.create";
|
|
75
|
-
readonly deleteS3Buckets: "organization.s3.buckets.delete";
|
|
76
|
-
readonly uploadS3Objects: "organization.s3.objects.upload";
|
|
77
|
-
readonly deleteS3Objects: "organization.s3.objects.delete";
|
|
78
|
-
readonly readS3Settings: "organization.s3.settings.read";
|
|
79
|
-
readonly updateS3Settings: "organization.s3.settings.update";
|
|
80
|
-
readonly readS3Credentials: "organization.s3.credentials.read";
|
|
81
|
-
readonly createS3Credentials: "organization.s3.credentials.create";
|
|
82
|
-
readonly revokeS3Credentials: "organization.s3.credentials.revoke";
|
|
83
|
-
readonly viewS3Analytics: "organization.s3.analytics.view";
|
|
84
|
-
readonly accessSystemLogs: "organization.systemLogs.access";
|
|
85
|
-
readonly approveExtensions: "organization.extensions.approve";
|
|
86
|
-
readonly rejectExtensions: "organization.extensions.reject";
|
|
87
|
-
readonly blockExtensions: "organization.extensions.block";
|
|
88
|
-
readonly viewReports: "organization.reports.view";
|
|
89
|
-
readonly readSelfPasswordSecrets: "organization.secrets.password.self.read";
|
|
90
|
-
readonly createSelfPasswordSecrets: "organization.secrets.password.self.create";
|
|
91
|
-
readonly updateSelfPasswordSecrets: "organization.secrets.password.self.update";
|
|
92
|
-
readonly deleteSelfPasswordSecrets: "organization.secrets.password.self.delete";
|
|
93
|
-
readonly peekSelfPasswordSecrets: "organization.secrets.password.self.peek";
|
|
94
|
-
readonly readOthersPasswordSecrets: "organization.secrets.password.others.read";
|
|
95
|
-
readonly createOthersPasswordSecrets: "organization.secrets.password.others.create";
|
|
96
|
-
readonly updateOthersPasswordSecrets: "organization.secrets.password.others.update";
|
|
97
|
-
readonly deleteOthersPasswordSecrets: "organization.secrets.password.others.delete";
|
|
98
|
-
readonly peekOthersPasswordSecrets: "organization.secrets.password.others.peek";
|
|
99
|
-
readonly readMachineSecrets: "organization.secrets.machine.read";
|
|
100
|
-
readonly createMachineSecrets: "organization.secrets.machine.create";
|
|
101
|
-
readonly updateMachineSecrets: "organization.secrets.machine.update";
|
|
102
|
-
readonly deleteMachineSecrets: "organization.secrets.machine.delete";
|
|
103
|
-
readonly peekMachineSecrets: "organization.secrets.machine.peek";
|
|
104
|
-
readonly viewGlobalMarketplace: "marketplace.global.view";
|
|
105
|
-
readonly installGlobalExtensions: "marketplace.global.extensions.install";
|
|
106
|
-
readonly uninstallGlobalExtensions: "marketplace.global.extensions.uninstall";
|
|
107
|
-
readonly manageGlobalExtensions: "marketplace.global.extensions.manage";
|
|
108
|
-
readonly publishGlobalExtensions: "marketplace.global.extensions.publish";
|
|
109
|
-
readonly approveGlobalExtensions: "marketplace.global.extensions.approve";
|
|
110
|
-
readonly rejectGlobalExtensions: "marketplace.global.extensions.reject";
|
|
111
|
-
};
|
|
11
|
+
import { PreDefineAccountPermissions as PreDefineAccountPermissionsValues, type IPermissionsFlattenedKeys } from 'common';
|
|
12
|
+
export declare const PreDefineAccountPermissions: Record<keyof typeof PreDefineAccountPermissionsValues, IPermissionsFlattenedKeys>;
|
|
112
13
|
export type PreDefineAccountPermissions = (typeof PreDefineAccountPermissions)[keyof typeof PreDefineAccountPermissions];
|
|
@@ -1,143 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
1
|
+
import {PreDefineAccountPermissions as PreDefineAccountPermissions$1}from'common';/**
|
|
2
|
+
* Account permission keys.
|
|
3
|
+
*
|
|
4
|
+
* Values are defined in the account module's permission template
|
|
5
|
+
* (`account-api/server/src/templates/constants/PreDefineAccountPermissions.ts.template`)
|
|
6
|
+
* and aggregated into `common` by `yarn regenerateGraphql`. The aggregator emits a plain
|
|
7
|
+
* (string-typed) object, so we re-type the values here to `IPermissionsFlattenedKeys` -
|
|
8
|
+
* this is the shared `@adminide-stack/core` surface consumers import for account/billing
|
|
9
|
+
* permissions.
|
|
6
10
|
*/
|
|
7
|
-
|
|
8
|
-
// This provides the same API as the previous enum but stays in sync with GraphQL schema
|
|
9
|
-
const PreDefineAccountPermissions = {
|
|
10
|
-
// Account User
|
|
11
|
-
secureUser: 'account.user.secure',
|
|
12
|
-
guestUser: 'account.user.guest',
|
|
13
|
-
superAdminMenus: 'account.superAdminMenus',
|
|
14
|
-
// Organization
|
|
15
|
-
viewOrganization: 'organization.view',
|
|
16
|
-
createOrganization: 'organization.create',
|
|
17
|
-
editOrganization: 'organization.edit',
|
|
18
|
-
deleteOrganization: 'organization.delete',
|
|
19
|
-
manageOrganization: 'organization.manage',
|
|
20
|
-
inviteMember: 'organization.inviteMember',
|
|
21
|
-
// Members
|
|
22
|
-
viewMembers: 'organization.members.view',
|
|
23
|
-
createMembers: 'organization.members.create',
|
|
24
|
-
editMembers: 'organization.members.edit',
|
|
25
|
-
deleteMembers: 'organization.members.delete',
|
|
26
|
-
manageMembers: 'organization.members.manage',
|
|
27
|
-
// Roles
|
|
28
|
-
viewRoles: 'organization.roles.view',
|
|
29
|
-
editRoles: 'organization.roles.edit',
|
|
30
|
-
// Permissions
|
|
31
|
-
viewPermissions: 'organization.permissions.view',
|
|
32
|
-
editPermissions: 'organization.permissions.edit',
|
|
33
|
-
// Policies
|
|
34
|
-
viewPolicies: 'organization.policies.view',
|
|
35
|
-
editPolicies: 'organization.policies.edit',
|
|
36
|
-
// Settings
|
|
37
|
-
viewSettings: 'organization.settings.view',
|
|
38
|
-
editSettings: 'organization.settings.edit',
|
|
39
|
-
// Teams
|
|
40
|
-
inviteTeamMember: 'organization.teams.inviteMember',
|
|
41
|
-
viewTeams: 'organization.teams.view',
|
|
42
|
-
viewOthersTeam: 'organization.teams.viewOthers',
|
|
43
|
-
createTeams: 'organization.teams.create',
|
|
44
|
-
editTeams: 'organization.teams.edit',
|
|
45
|
-
deleteTeams: 'organization.teams.delete',
|
|
46
|
-
manageTeams: 'organization.teams.manage',
|
|
47
|
-
accessTeamDashboard: 'organization.teams.dashboard.access',
|
|
48
|
-
// Projects - Self
|
|
49
|
-
viewSelfProjects: 'organization.projects.self.view',
|
|
50
|
-
createSelfProjects: 'organization.projects.self.create',
|
|
51
|
-
editSelfProjects: 'organization.projects.self.edit',
|
|
52
|
-
deleteSelfProjects: 'organization.projects.self.delete',
|
|
53
|
-
manageSelfProjects: 'organization.projects.self.manage',
|
|
54
|
-
viewSelfProjectStatus: 'organization.projects.status.self.view',
|
|
55
|
-
// Projects - Others
|
|
56
|
-
viewOthersProjects: 'organization.projects.others.view',
|
|
57
|
-
createOthersProjects: 'organization.projects.others.create',
|
|
58
|
-
editOthersProjects: 'organization.projects.others.edit',
|
|
59
|
-
deleteOthersProjects: 'organization.projects.others.delete',
|
|
60
|
-
manageOthersProjects: 'organization.projects.others.manage',
|
|
61
|
-
viewOthersProjectStatus: 'organization.projects.status.others.view',
|
|
62
|
-
// Clients - Self
|
|
63
|
-
viewSelfClients: 'organization.clients.self.view',
|
|
64
|
-
createSelfClients: 'organization.clients.self.create',
|
|
65
|
-
editSelfClients: 'organization.clients.self.edit',
|
|
66
|
-
deleteSelfClients: 'organization.clients.self.delete',
|
|
67
|
-
manageSelfClients: 'organization.clients.self.manage',
|
|
68
|
-
// Clients - Others
|
|
69
|
-
viewOthersClients: 'organization.clients.others.view',
|
|
70
|
-
createOthersClients: 'organization.clients.others.create',
|
|
71
|
-
editOthersClients: 'organization.clients.others.edit',
|
|
72
|
-
deleteOthersClients: 'organization.clients.others.delete',
|
|
73
|
-
manageOthersClients: 'organization.clients.others.manage',
|
|
74
|
-
// Tasks
|
|
75
|
-
viewTasks: 'organization.tasks.view',
|
|
76
|
-
createTasks: 'organization.tasks.create',
|
|
77
|
-
editTasks: 'organization.tasks.edit',
|
|
78
|
-
deleteTasks: 'organization.tasks.delete',
|
|
79
|
-
manageTasks: 'organization.tasks.manage',
|
|
80
|
-
// Tags
|
|
81
|
-
viewTags: 'organization.tags.view',
|
|
82
|
-
createTags: 'organization.tags.create',
|
|
83
|
-
editTags: 'organization.tags.edit',
|
|
84
|
-
deleteTags: 'organization.tags.delete',
|
|
85
|
-
manageTags: 'organization.tags.manage',
|
|
86
|
-
// Terminal (Organization-level)
|
|
87
|
-
accessTerminal: 'organization.terminal.access',
|
|
88
|
-
manageTerminal: 'organization.terminal.manage',
|
|
89
|
-
// S3 Admin - Access
|
|
90
|
-
accessS3Admin: 'organization.s3.admin.access',
|
|
91
|
-
// S3 Admin - Resources (read, create, delete operations)
|
|
92
|
-
readS3Resources: 'organization.s3.resources.read',
|
|
93
|
-
createS3Buckets: 'organization.s3.buckets.create',
|
|
94
|
-
deleteS3Buckets: 'organization.s3.buckets.delete',
|
|
95
|
-
uploadS3Objects: 'organization.s3.objects.upload',
|
|
96
|
-
deleteS3Objects: 'organization.s3.objects.delete',
|
|
97
|
-
// S3 Admin - Settings
|
|
98
|
-
readS3Settings: 'organization.s3.settings.read',
|
|
99
|
-
updateS3Settings: 'organization.s3.settings.update',
|
|
100
|
-
// S3 Admin - Credentials
|
|
101
|
-
readS3Credentials: 'organization.s3.credentials.read',
|
|
102
|
-
createS3Credentials: 'organization.s3.credentials.create',
|
|
103
|
-
revokeS3Credentials: 'organization.s3.credentials.revoke',
|
|
104
|
-
viewS3Analytics: 'organization.s3.analytics.view',
|
|
105
|
-
// System Logs
|
|
106
|
-
accessSystemLogs: 'organization.systemLogs.access',
|
|
107
|
-
// Extensions (Organization-level)
|
|
108
|
-
approveExtensions: 'organization.extensions.approve',
|
|
109
|
-
rejectExtensions: 'organization.extensions.reject',
|
|
110
|
-
blockExtensions: 'organization.extensions.block',
|
|
111
|
-
// Reports
|
|
112
|
-
viewReports: 'organization.reports.view',
|
|
113
|
-
// Secrets (project-mgmt style: self/others)
|
|
114
|
-
readSelfPasswordSecrets: 'organization.secrets.password.self.read',
|
|
115
|
-
createSelfPasswordSecrets: 'organization.secrets.password.self.create',
|
|
116
|
-
updateSelfPasswordSecrets: 'organization.secrets.password.self.update',
|
|
117
|
-
deleteSelfPasswordSecrets: 'organization.secrets.password.self.delete',
|
|
118
|
-
// Peek: see a concealed (masked) version of the secret value (e.g. ****1234) without full disclosure.
|
|
119
|
-
peekSelfPasswordSecrets: 'organization.secrets.password.self.peek',
|
|
120
|
-
readOthersPasswordSecrets: 'organization.secrets.password.others.read',
|
|
121
|
-
createOthersPasswordSecrets: 'organization.secrets.password.others.create',
|
|
122
|
-
updateOthersPasswordSecrets: 'organization.secrets.password.others.update',
|
|
123
|
-
deleteOthersPasswordSecrets: 'organization.secrets.password.others.delete',
|
|
124
|
-
// Peek: see a concealed (masked) version of others' secret values.
|
|
125
|
-
peekOthersPasswordSecrets: 'organization.secrets.password.others.peek',
|
|
126
|
-
// Secrets - Machine (scope 2): provider OAuth CLIENT_ID/CLIENT_SECRET and
|
|
127
|
-
// similar backend-only credentials. All human roles MUST be Deny; only
|
|
128
|
-
// server-internal flows (system-token / OAuth backend) read these.
|
|
129
|
-
readMachineSecrets: 'organization.secrets.machine.read',
|
|
130
|
-
createMachineSecrets: 'organization.secrets.machine.create',
|
|
131
|
-
updateMachineSecrets: 'organization.secrets.machine.update',
|
|
132
|
-
deleteMachineSecrets: 'organization.secrets.machine.delete',
|
|
133
|
-
// Peek: see a concealed (masked) version of machine secret keys (never raw values).
|
|
134
|
-
peekMachineSecrets: 'organization.secrets.machine.peek',
|
|
135
|
-
// Marketplace (Application-level) - Auto-generated from GraphQL schema
|
|
136
|
-
viewGlobalMarketplace: 'marketplace.global.view',
|
|
137
|
-
installGlobalExtensions: 'marketplace.global.extensions.install',
|
|
138
|
-
uninstallGlobalExtensions: 'marketplace.global.extensions.uninstall',
|
|
139
|
-
manageGlobalExtensions: 'marketplace.global.extensions.manage',
|
|
140
|
-
publishGlobalExtensions: 'marketplace.global.extensions.publish',
|
|
141
|
-
approveGlobalExtensions: 'marketplace.global.extensions.approve',
|
|
142
|
-
rejectGlobalExtensions: 'marketplace.global.extensions.reject'
|
|
143
|
-
};export{PreDefineAccountPermissions};//# sourceMappingURL=index.js.map
|
|
11
|
+
const PreDefineAccountPermissions = PreDefineAccountPermissions$1;export{PreDefineAccountPermissions};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/modules/account-api/enums/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/modules/account-api/enums/index.ts"],"sourcesContent":[null],"names":["PreDefineAccountPermissionsValues"],"mappings":"kFAAA;;;;;;;;;AASG;AAGI,MAAM,2BAA2B,GAAGA"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Billing permission keys.
|
|
3
|
+
*
|
|
4
|
+
* Values are defined in the billing module's permission template
|
|
5
|
+
* (`billing-api/server/src/templates/constants/PreDefineBillingPermissions.ts.template`)
|
|
6
|
+
* and aggregated into `common` by `yarn regenerateGraphql`. The aggregator emits a plain
|
|
7
|
+
* (string-typed) object, so we re-type the values here to `IPermissionsFlattenedKeys` -
|
|
8
|
+
* this is the shared `@adminide-stack/core` surface consumers (routes, abilities) import.
|
|
9
|
+
* `BillingModules` stays local: it is a module grouping used to generate the billing
|
|
10
|
+
* permission contribution, not a permission key map.
|
|
11
|
+
*/
|
|
12
|
+
import { PreDefineBillingPermissions as PreDefineBillingPermissionsValues, type IPermissionsFlattenedKeys } from 'common';
|
|
13
|
+
export declare const PreDefineBillingPermissions: Record<keyof typeof PreDefineBillingPermissionsValues, IPermissionsFlattenedKeys>;
|
|
14
|
+
export type PreDefineBillingPermissions = (typeof PreDefineBillingPermissions)[keyof typeof PreDefineBillingPermissions];
|
|
1
15
|
export declare enum BillingModules {
|
|
2
16
|
subscriptions = "subscriptions",
|
|
3
17
|
paymentMethods = "paymentMethods",
|
|
@@ -8,45 +22,3 @@ export declare enum BillingModules {
|
|
|
8
22
|
adminCoupons = "adminCoupons",
|
|
9
23
|
adminModelTokens = "adminModelTokens"
|
|
10
24
|
}
|
|
11
|
-
export declare enum PreDefineBillingPermissions {
|
|
12
|
-
viewSubscriptions = "organization.billing.subscriptions.view",
|
|
13
|
-
createSubscriptions = "organization.billing.subscriptions.create",
|
|
14
|
-
editSubscriptions = "organization.billing.subscriptions.edit",
|
|
15
|
-
deleteSubscriptions = "organization.billing.subscriptions.delete",
|
|
16
|
-
manageSubscriptions = "organization.billing.subscriptions.manage",
|
|
17
|
-
viewPaymentMethods = "organization.billing.paymentMethods.view",
|
|
18
|
-
createPaymentMethods = "organization.billing.paymentMethods.create",
|
|
19
|
-
editPaymentMethods = "organization.billing.paymentMethods.edit",
|
|
20
|
-
deletePaymentMethods = "organization.billing.paymentMethods.delete",
|
|
21
|
-
managePaymentMethods = "organization.billing.paymentMethods.manage",
|
|
22
|
-
viewPaymentProfile = "billing.paymentProfile.view",
|
|
23
|
-
createPaymentProfile = "billing.paymentProfile.create",
|
|
24
|
-
editPaymentProfile = "billing.paymentProfile.edit",
|
|
25
|
-
deletePaymentProfile = "billing.paymentProfile.delete",
|
|
26
|
-
managePaymentProfile = "billing.paymentProfile.manage",
|
|
27
|
-
viewStripeTenant = "billing.stripeTenant.view",
|
|
28
|
-
createStripeTenant = "billing.stripeTenant.create",
|
|
29
|
-
editStripeTenant = "billing.stripeTenant.edit",
|
|
30
|
-
deleteStripeTenant = "billing.stripeTenant.delete",
|
|
31
|
-
manageStripeTenant = "billing.stripeTenant.manage",
|
|
32
|
-
viewAdminBillingPolicies = "billing.adminPolicies.view",
|
|
33
|
-
createAdminBillingPolicies = "billing.adminPolicies.create",
|
|
34
|
-
editAdminBillingPolicies = "billing.adminPolicies.edit",
|
|
35
|
-
deleteAdminBillingPolicies = "billing.adminPolicies.delete",
|
|
36
|
-
manageAdminBillingPolicies = "billing.adminPolicies.manage",
|
|
37
|
-
viewAdminPlans = "billing.adminPlans.view",
|
|
38
|
-
createAdminPlans = "billing.adminPlans.create",
|
|
39
|
-
editAdminPlans = "billing.adminPlans.edit",
|
|
40
|
-
deleteAdminPlans = "billing.adminPlans.delete",
|
|
41
|
-
manageAdminPlans = "billing.adminPlans.manage",
|
|
42
|
-
viewAdminCoupons = "billing.adminCoupons.view",
|
|
43
|
-
createAdminCoupons = "billing.adminCoupons.create",
|
|
44
|
-
editAdminCoupons = "billing.adminCoupons.edit",
|
|
45
|
-
deleteAdminCoupons = "billing.adminCoupons.delete",
|
|
46
|
-
manageAdminCoupons = "billing.adminCoupons.manage",
|
|
47
|
-
viewAdminModelTokens = "billing.adminModelTokens.view",
|
|
48
|
-
createAdminModelTokens = "billing.adminModelTokens.create",
|
|
49
|
-
editAdminModelTokens = "billing.adminModelTokens.edit",
|
|
50
|
-
deleteAdminModelTokens = "billing.adminModelTokens.delete",
|
|
51
|
-
manageAdminModelTokens = "billing.adminModelTokens.manage"
|
|
52
|
-
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import {PreDefineBillingPermissions as PreDefineBillingPermissions$1}from'common';/**
|
|
2
|
+
* Billing permission keys.
|
|
3
|
+
*
|
|
4
|
+
* Values are defined in the billing module's permission template
|
|
5
|
+
* (`billing-api/server/src/templates/constants/PreDefineBillingPermissions.ts.template`)
|
|
6
|
+
* and aggregated into `common` by `yarn regenerateGraphql`. The aggregator emits a plain
|
|
7
|
+
* (string-typed) object, so we re-type the values here to `IPermissionsFlattenedKeys` -
|
|
8
|
+
* this is the shared `@adminide-stack/core` surface consumers (routes, abilities) import.
|
|
9
|
+
* `BillingModules` stays local: it is a module grouping used to generate the billing
|
|
10
|
+
* permission contribution, not a permission key map.
|
|
11
|
+
*/
|
|
12
|
+
const PreDefineBillingPermissions = PreDefineBillingPermissions$1;
|
|
1
13
|
var BillingModules;
|
|
2
14
|
(function (BillingModules) {
|
|
3
15
|
BillingModules["subscriptions"] = "subscriptions";
|
|
@@ -8,47 +20,4 @@ var BillingModules;
|
|
|
8
20
|
BillingModules["adminPlans"] = "adminPlans";
|
|
9
21
|
BillingModules["adminCoupons"] = "adminCoupons";
|
|
10
22
|
BillingModules["adminModelTokens"] = "adminModelTokens";
|
|
11
|
-
})(BillingModules || (BillingModules = {}));
|
|
12
|
-
var PreDefineBillingPermissions;
|
|
13
|
-
(function (PreDefineBillingPermissions) {
|
|
14
|
-
PreDefineBillingPermissions["viewSubscriptions"] = "organization.billing.subscriptions.view";
|
|
15
|
-
PreDefineBillingPermissions["createSubscriptions"] = "organization.billing.subscriptions.create";
|
|
16
|
-
PreDefineBillingPermissions["editSubscriptions"] = "organization.billing.subscriptions.edit";
|
|
17
|
-
PreDefineBillingPermissions["deleteSubscriptions"] = "organization.billing.subscriptions.delete";
|
|
18
|
-
PreDefineBillingPermissions["manageSubscriptions"] = "organization.billing.subscriptions.manage";
|
|
19
|
-
PreDefineBillingPermissions["viewPaymentMethods"] = "organization.billing.paymentMethods.view";
|
|
20
|
-
PreDefineBillingPermissions["createPaymentMethods"] = "organization.billing.paymentMethods.create";
|
|
21
|
-
PreDefineBillingPermissions["editPaymentMethods"] = "organization.billing.paymentMethods.edit";
|
|
22
|
-
PreDefineBillingPermissions["deletePaymentMethods"] = "organization.billing.paymentMethods.delete";
|
|
23
|
-
PreDefineBillingPermissions["managePaymentMethods"] = "organization.billing.paymentMethods.manage";
|
|
24
|
-
PreDefineBillingPermissions["viewPaymentProfile"] = "billing.paymentProfile.view";
|
|
25
|
-
PreDefineBillingPermissions["createPaymentProfile"] = "billing.paymentProfile.create";
|
|
26
|
-
PreDefineBillingPermissions["editPaymentProfile"] = "billing.paymentProfile.edit";
|
|
27
|
-
PreDefineBillingPermissions["deletePaymentProfile"] = "billing.paymentProfile.delete";
|
|
28
|
-
PreDefineBillingPermissions["managePaymentProfile"] = "billing.paymentProfile.manage";
|
|
29
|
-
PreDefineBillingPermissions["viewStripeTenant"] = "billing.stripeTenant.view";
|
|
30
|
-
PreDefineBillingPermissions["createStripeTenant"] = "billing.stripeTenant.create";
|
|
31
|
-
PreDefineBillingPermissions["editStripeTenant"] = "billing.stripeTenant.edit";
|
|
32
|
-
PreDefineBillingPermissions["deleteStripeTenant"] = "billing.stripeTenant.delete";
|
|
33
|
-
PreDefineBillingPermissions["manageStripeTenant"] = "billing.stripeTenant.manage";
|
|
34
|
-
PreDefineBillingPermissions["viewAdminBillingPolicies"] = "billing.adminPolicies.view";
|
|
35
|
-
PreDefineBillingPermissions["createAdminBillingPolicies"] = "billing.adminPolicies.create";
|
|
36
|
-
PreDefineBillingPermissions["editAdminBillingPolicies"] = "billing.adminPolicies.edit";
|
|
37
|
-
PreDefineBillingPermissions["deleteAdminBillingPolicies"] = "billing.adminPolicies.delete";
|
|
38
|
-
PreDefineBillingPermissions["manageAdminBillingPolicies"] = "billing.adminPolicies.manage";
|
|
39
|
-
PreDefineBillingPermissions["viewAdminPlans"] = "billing.adminPlans.view";
|
|
40
|
-
PreDefineBillingPermissions["createAdminPlans"] = "billing.adminPlans.create";
|
|
41
|
-
PreDefineBillingPermissions["editAdminPlans"] = "billing.adminPlans.edit";
|
|
42
|
-
PreDefineBillingPermissions["deleteAdminPlans"] = "billing.adminPlans.delete";
|
|
43
|
-
PreDefineBillingPermissions["manageAdminPlans"] = "billing.adminPlans.manage";
|
|
44
|
-
PreDefineBillingPermissions["viewAdminCoupons"] = "billing.adminCoupons.view";
|
|
45
|
-
PreDefineBillingPermissions["createAdminCoupons"] = "billing.adminCoupons.create";
|
|
46
|
-
PreDefineBillingPermissions["editAdminCoupons"] = "billing.adminCoupons.edit";
|
|
47
|
-
PreDefineBillingPermissions["deleteAdminCoupons"] = "billing.adminCoupons.delete";
|
|
48
|
-
PreDefineBillingPermissions["manageAdminCoupons"] = "billing.adminCoupons.manage";
|
|
49
|
-
PreDefineBillingPermissions["viewAdminModelTokens"] = "billing.adminModelTokens.view";
|
|
50
|
-
PreDefineBillingPermissions["createAdminModelTokens"] = "billing.adminModelTokens.create";
|
|
51
|
-
PreDefineBillingPermissions["editAdminModelTokens"] = "billing.adminModelTokens.edit";
|
|
52
|
-
PreDefineBillingPermissions["deleteAdminModelTokens"] = "billing.adminModelTokens.delete";
|
|
53
|
-
PreDefineBillingPermissions["manageAdminModelTokens"] = "billing.adminModelTokens.manage";
|
|
54
|
-
})(PreDefineBillingPermissions || (PreDefineBillingPermissions = {}));export{BillingModules,PreDefineBillingPermissions};//# sourceMappingURL=index.js.map
|
|
23
|
+
})(BillingModules || (BillingModules = {}));export{BillingModules,PreDefineBillingPermissions};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/modules/billing-api/enums/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/modules/billing-api/enums/index.ts"],"sourcesContent":[null],"names":["PreDefineBillingPermissionsValues"],"mappings":"kFAAA;;;;;;;;;;AAUG;AAGI,MAAM,2BAA2B,GAAGA;IAO/B;AAAZ,CAAA,UAAY,cAAc,EAAA;AACtB,EAAA,cAAA,CAAA,eAAA,CAAA,GAAA,eAAA;AACA,EAAA,cAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;AACA,EAAA,cAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;AACA,EAAA,cAAA,CAAA,cAAA,CAAA,GAAA,cAAA;AACA,EAAA,cAAA,CAAA,sBAAA,CAAA,GAAA,sBAAA;AACA,EAAA,cAAA,CAAA,YAAA,CAAA,GAAA,YAAA;AACA,EAAA,cAAA,CAAA,cAAA,CAAA,GAAA,cAAA;AACA,EAAA,cAAA,CAAA,kBAAA,CAAA,GAAA,kBAAA;AACJ,CAAC,EATW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
viewThreadReplies = "organization.inbox.threads.viewThreadReplies",
|
|
13
|
-
editThreadReply = "organization.inbox.threads.editThreadReply",
|
|
14
|
-
deleteThreadReply = "organization.inbox.threads.deleteThreadReply",
|
|
15
|
-
editOthersThread = "organization.inbox.threads.editOthersThread",
|
|
16
|
-
deleteOthersThread = "organization.inbox.threads.deleteOthersThread",
|
|
17
|
-
replyOthersThread = "organization.inbox.threads.replyOthersThread",
|
|
18
|
-
editOthersThreadReply = "organization.inbox.threads.editOthersThreadReply",
|
|
19
|
-
deleteOthersThreadReply = "organization.inbox.threads.deleteOthersThreadReply"
|
|
20
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Inbox permission keys.
|
|
3
|
+
*
|
|
4
|
+
* Values are defined in the inbox permission template
|
|
5
|
+
* (`account-api/server/src/templates/constants/PreDefineInboxPermissions.ts.template`)
|
|
6
|
+
* and aggregated into `common` by `yarn regenerateGraphql`. The aggregator emits a plain
|
|
7
|
+
* (string-typed) object, so we re-type the values here to `IPermissionsFlattenedKeys`.
|
|
8
|
+
*/
|
|
9
|
+
import { PreDefineInboxPermissions as PreDefineInboxPermissionsValues, type IPermissionsFlattenedKeys } from 'common';
|
|
10
|
+
export declare const PreDefineInboxPermissions: Record<keyof typeof PreDefineInboxPermissionsValues, IPermissionsFlattenedKeys>;
|
|
11
|
+
export type PreDefineInboxPermissions = (typeof PreDefineInboxPermissions)[keyof typeof PreDefineInboxPermissions];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/core",
|
|
3
|
-
"version": "13.5.3-alpha.
|
|
3
|
+
"version": "13.5.3-alpha.315",
|
|
4
4
|
"description": "AdminIDE core for higher packages to depend on",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "adminide-stack-user",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"vscode-uri": "^3.0.8"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"common": "13.5.3-alpha.
|
|
33
|
+
"common": "13.5.3-alpha.315"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@common-stack/server-core": ">=0.5.21",
|
|
37
37
|
"vscode-uri": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "6d815f46a44c01d02a06f24f79f5d0fde11450d8",
|
|
40
40
|
"typescript": {
|
|
41
41
|
"definition": "lib/index.d.ts"
|
|
42
42
|
}
|