waldur-js-client 7.8.7-dev.6 → 7.8.7-dev.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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/sdk.gen.d.ts +5 -5
- package/dist/sdk.gen.js +19 -19
- package/dist/types.gen.d.ts +14 -24
- package/package.json +1 -1
- package/dist/static-enums.d.ts +0 -503
- package/dist/static-enums.js +0 -526
package/dist/static-enums.js
DELETED
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
// Auto-generated static enum constants from Waldur SDK
|
|
2
|
-
// This file provides all enum constants as static imports for better IDE support
|
|
3
|
-
// ===== EVENT ENUMS =====
|
|
4
|
-
export const Access_subnetsEnum = {
|
|
5
|
-
access_subnet_creation_succeeded: 'access_subnet_creation_succeeded',
|
|
6
|
-
access_subnet_deletion_succeeded: 'access_subnet_deletion_succeeded',
|
|
7
|
-
access_subnet_update_succeeded: 'access_subnet_update_succeeded',
|
|
8
|
-
};
|
|
9
|
-
export const AuthEnum = {
|
|
10
|
-
auth_logged_in_with_username: 'auth_logged_in_with_username',
|
|
11
|
-
auth_logged_out: 'auth_logged_out',
|
|
12
|
-
auth_login_failed_with_username: 'auth_login_failed_with_username',
|
|
13
|
-
token_created: 'token_created',
|
|
14
|
-
token_lifetime_updated: 'token_lifetime_updated',
|
|
15
|
-
};
|
|
16
|
-
export const CallEnum = {
|
|
17
|
-
call_document_added: 'call_document_added',
|
|
18
|
-
call_document_removed: 'call_document_removed',
|
|
19
|
-
};
|
|
20
|
-
export const CreditsEnum = {
|
|
21
|
-
allowed_offerings_have_been_updated: 'allowed_offerings_have_been_updated',
|
|
22
|
-
automatic_credit_adjustment: 'automatic_credit_adjustment',
|
|
23
|
-
create_of_credit_by_staff: 'create_of_credit_by_staff',
|
|
24
|
-
reduction_of_customer_credit: 'reduction_of_customer_credit',
|
|
25
|
-
reduction_of_customer_credit_due_to_minimal_consumption: 'reduction_of_customer_credit_due_to_minimal_consumption',
|
|
26
|
-
reduction_of_customer_expected_consumption: 'reduction_of_customer_expected_consumption',
|
|
27
|
-
reduction_of_project_credit: 'reduction_of_project_credit',
|
|
28
|
-
reduction_of_project_credit_due_to_minimal_consumption: 'reduction_of_project_credit_due_to_minimal_consumption',
|
|
29
|
-
reduction_of_project_expected_consumption: 'reduction_of_project_expected_consumption',
|
|
30
|
-
roll_back_customer_credit: 'roll_back_customer_credit',
|
|
31
|
-
roll_back_project_credit: 'roll_back_project_credit',
|
|
32
|
-
set_to_zero_overdue_credit: 'set_to_zero_overdue_credit',
|
|
33
|
-
update_of_credit_by_staff: 'update_of_credit_by_staff',
|
|
34
|
-
};
|
|
35
|
-
export const CustomersEnum = {
|
|
36
|
-
allowed_offerings_have_been_updated: 'allowed_offerings_have_been_updated',
|
|
37
|
-
automatic_credit_adjustment: 'automatic_credit_adjustment',
|
|
38
|
-
create_of_credit_by_staff: 'create_of_credit_by_staff',
|
|
39
|
-
customer_creation_succeeded: 'customer_creation_succeeded',
|
|
40
|
-
customer_deletion_succeeded: 'customer_deletion_succeeded',
|
|
41
|
-
customer_update_succeeded: 'customer_update_succeeded',
|
|
42
|
-
payment_added: 'payment_added',
|
|
43
|
-
payment_removed: 'payment_removed',
|
|
44
|
-
reduction_of_customer_credit: 'reduction_of_customer_credit',
|
|
45
|
-
reduction_of_customer_credit_due_to_minimal_consumption: 'reduction_of_customer_credit_due_to_minimal_consumption',
|
|
46
|
-
reduction_of_customer_expected_consumption: 'reduction_of_customer_expected_consumption',
|
|
47
|
-
reduction_of_project_credit: 'reduction_of_project_credit',
|
|
48
|
-
reduction_of_project_credit_due_to_minimal_consumption: 'reduction_of_project_credit_due_to_minimal_consumption',
|
|
49
|
-
reduction_of_project_expected_consumption: 'reduction_of_project_expected_consumption',
|
|
50
|
-
roll_back_customer_credit: 'roll_back_customer_credit',
|
|
51
|
-
roll_back_project_credit: 'roll_back_project_credit',
|
|
52
|
-
set_to_zero_overdue_credit: 'set_to_zero_overdue_credit',
|
|
53
|
-
update_of_credit_by_staff: 'update_of_credit_by_staff',
|
|
54
|
-
customer_permission_review_created: 'customer_permission_review_created',
|
|
55
|
-
customer_permission_review_closed: 'customer_permission_review_closed',
|
|
56
|
-
};
|
|
57
|
-
export const InvoicesEnum = {
|
|
58
|
-
allowed_offerings_have_been_updated: 'allowed_offerings_have_been_updated',
|
|
59
|
-
automatic_credit_adjustment: 'automatic_credit_adjustment',
|
|
60
|
-
create_of_credit_by_staff: 'create_of_credit_by_staff',
|
|
61
|
-
invoice_canceled: 'invoice_canceled',
|
|
62
|
-
invoice_created: 'invoice_created',
|
|
63
|
-
invoice_item_created: 'invoice_item_created',
|
|
64
|
-
invoice_item_deleted: 'invoice_item_deleted',
|
|
65
|
-
invoice_item_updated: 'invoice_item_updated',
|
|
66
|
-
invoice_paid: 'invoice_paid',
|
|
67
|
-
payment_created: 'payment_created',
|
|
68
|
-
payment_removed: 'payment_removed',
|
|
69
|
-
reduction_of_customer_credit: 'reduction_of_customer_credit',
|
|
70
|
-
reduction_of_customer_credit_due_to_minimal_consumption: 'reduction_of_customer_credit_due_to_minimal_consumption',
|
|
71
|
-
reduction_of_customer_expected_consumption: 'reduction_of_customer_expected_consumption',
|
|
72
|
-
reduction_of_project_credit: 'reduction_of_project_credit',
|
|
73
|
-
reduction_of_project_credit_due_to_minimal_consumption: 'reduction_of_project_credit_due_to_minimal_consumption',
|
|
74
|
-
reduction_of_project_expected_consumption: 'reduction_of_project_expected_consumption',
|
|
75
|
-
roll_back_customer_credit: 'roll_back_customer_credit',
|
|
76
|
-
roll_back_project_credit: 'roll_back_project_credit',
|
|
77
|
-
set_to_zero_overdue_credit: 'set_to_zero_overdue_credit',
|
|
78
|
-
update_of_credit_by_staff: 'update_of_credit_by_staff',
|
|
79
|
-
};
|
|
80
|
-
export const Offering_accountingEnum = {
|
|
81
|
-
marketplace_offering_component_created: 'marketplace_offering_component_created',
|
|
82
|
-
marketplace_offering_component_deleted: 'marketplace_offering_component_deleted',
|
|
83
|
-
marketplace_offering_component_updated: 'marketplace_offering_component_updated',
|
|
84
|
-
marketplace_plan_archived: 'marketplace_plan_archived',
|
|
85
|
-
marketplace_plan_component_current_price_updated: 'marketplace_plan_component_current_price_updated',
|
|
86
|
-
marketplace_plan_component_future_price_updated: 'marketplace_plan_component_future_price_updated',
|
|
87
|
-
marketplace_plan_component_quota_updated: 'marketplace_plan_component_quota_updated',
|
|
88
|
-
marketplace_plan_created: 'marketplace_plan_created',
|
|
89
|
-
marketplace_plan_updated: 'marketplace_plan_updated',
|
|
90
|
-
marketplace_plan_deleted: 'marketplace_plan_deleted',
|
|
91
|
-
};
|
|
92
|
-
export const PermissionsEnum = {
|
|
93
|
-
role_granted: 'role_granted',
|
|
94
|
-
role_revoked: 'role_revoked',
|
|
95
|
-
role_updated: 'role_updated',
|
|
96
|
-
};
|
|
97
|
-
export const ProjectsEnum = {
|
|
98
|
-
project_creation_succeeded: 'project_creation_succeeded',
|
|
99
|
-
project_deletion_succeeded: 'project_deletion_succeeded',
|
|
100
|
-
project_deletion_triggered: 'project_deletion_triggered',
|
|
101
|
-
project_update_request_approved: 'project_update_request_approved',
|
|
102
|
-
project_update_request_created: 'project_update_request_created',
|
|
103
|
-
project_update_request_rejected: 'project_update_request_rejected',
|
|
104
|
-
project_update_succeeded: 'project_update_succeeded',
|
|
105
|
-
project_permission_review_created: 'project_permission_review_created',
|
|
106
|
-
project_permission_review_closed: 'project_permission_review_closed',
|
|
107
|
-
};
|
|
108
|
-
export const ProposalEnum = {
|
|
109
|
-
proposal_canceled: 'proposal_canceled',
|
|
110
|
-
proposal_document_added: 'proposal_document_added',
|
|
111
|
-
proposal_document_removed: 'proposal_document_removed',
|
|
112
|
-
};
|
|
113
|
-
export const ProvidersEnum = {
|
|
114
|
-
marketplace_resource_create_canceled: 'marketplace_resource_create_canceled',
|
|
115
|
-
marketplace_resource_create_failed: 'marketplace_resource_create_failed',
|
|
116
|
-
marketplace_resource_create_requested: 'marketplace_resource_create_requested',
|
|
117
|
-
marketplace_resource_create_succeeded: 'marketplace_resource_create_succeeded',
|
|
118
|
-
marketplace_resource_terminate_failed: 'marketplace_resource_terminate_failed',
|
|
119
|
-
marketplace_resource_terminate_requested: 'marketplace_resource_terminate_requested',
|
|
120
|
-
marketplace_resource_terminate_succeeded: 'marketplace_resource_terminate_succeeded',
|
|
121
|
-
marketplace_resource_update_failed: 'marketplace_resource_update_failed',
|
|
122
|
-
marketplace_resource_update_limits_failed: 'marketplace_resource_update_limits_failed',
|
|
123
|
-
marketplace_resource_update_limits_succeeded: 'marketplace_resource_update_limits_succeeded',
|
|
124
|
-
marketplace_resource_update_requested: 'marketplace_resource_update_requested',
|
|
125
|
-
resource_robot_account_created: 'resource_robot_account_created',
|
|
126
|
-
resource_robot_account_deleted: 'resource_robot_account_deleted',
|
|
127
|
-
resource_robot_account_state_changed: 'resource_robot_account_state_changed',
|
|
128
|
-
resource_robot_account_updated: 'resource_robot_account_updated',
|
|
129
|
-
};
|
|
130
|
-
export const ResourcesEnum = {
|
|
131
|
-
marketplace_order_approved: 'marketplace_order_approved',
|
|
132
|
-
marketplace_order_completed: 'marketplace_order_completed',
|
|
133
|
-
marketplace_order_created: 'marketplace_order_created',
|
|
134
|
-
marketplace_order_failed: 'marketplace_order_failed',
|
|
135
|
-
marketplace_order_rejected: 'marketplace_order_rejected',
|
|
136
|
-
marketplace_order_terminated: 'marketplace_order_terminated',
|
|
137
|
-
marketplace_order_unlinked: 'marketplace_order_unlinked',
|
|
138
|
-
marketplace_resource_create_canceled: 'marketplace_resource_create_canceled',
|
|
139
|
-
marketplace_resource_create_failed: 'marketplace_resource_create_failed',
|
|
140
|
-
marketplace_resource_create_requested: 'marketplace_resource_create_requested',
|
|
141
|
-
marketplace_resource_create_succeeded: 'marketplace_resource_create_succeeded',
|
|
142
|
-
marketplace_resource_downscaled: 'marketplace_resource_downscaled',
|
|
143
|
-
marketplace_resource_erred_on_backend: 'marketplace_resource_erred_on_backend',
|
|
144
|
-
marketplace_resource_paused: 'marketplace_resource_paused',
|
|
145
|
-
marketplace_resource_terminate_canceled: 'marketplace_resource_terminate_canceled',
|
|
146
|
-
marketplace_resource_terminate_failed: 'marketplace_resource_terminate_failed',
|
|
147
|
-
marketplace_resource_terminate_requested: 'marketplace_resource_terminate_requested',
|
|
148
|
-
marketplace_resource_terminate_succeeded: 'marketplace_resource_terminate_succeeded',
|
|
149
|
-
marketplace_resource_unlinked: 'marketplace_resource_unlinked',
|
|
150
|
-
marketplace_resource_update_canceled: 'marketplace_resource_update_canceled',
|
|
151
|
-
marketplace_resource_update_end_date_succeeded: 'marketplace_resource_update_end_date_succeeded',
|
|
152
|
-
marketplace_resource_update_failed: 'marketplace_resource_update_failed',
|
|
153
|
-
marketplace_resource_update_limits_failed: 'marketplace_resource_update_limits_failed',
|
|
154
|
-
marketplace_resource_update_limits_succeeded: 'marketplace_resource_update_limits_succeeded',
|
|
155
|
-
marketplace_resource_update_requested: 'marketplace_resource_update_requested',
|
|
156
|
-
marketplace_resource_update_succeeded: 'marketplace_resource_update_succeeded',
|
|
157
|
-
openstack_floating_ip_attached: 'openstack_floating_ip_attached',
|
|
158
|
-
openstack_floating_ip_connected: 'openstack_floating_ip_connected',
|
|
159
|
-
openstack_floating_ip_description_updated: 'openstack_floating_ip_description_updated',
|
|
160
|
-
openstack_floating_ip_detached: 'openstack_floating_ip_detached',
|
|
161
|
-
openstack_floating_ip_disconnected: 'openstack_floating_ip_disconnected',
|
|
162
|
-
openstack_network_cleaned: 'openstack_network_cleaned',
|
|
163
|
-
openstack_network_created: 'openstack_network_created',
|
|
164
|
-
openstack_network_deleted: 'openstack_network_deleted',
|
|
165
|
-
openstack_network_imported: 'openstack_network_imported',
|
|
166
|
-
openstack_network_pulled: 'openstack_network_pulled',
|
|
167
|
-
openstack_network_updated: 'openstack_network_updated',
|
|
168
|
-
openstack_port_cleaned: 'openstack_port_cleaned',
|
|
169
|
-
openstack_port_created: 'openstack_port_created',
|
|
170
|
-
openstack_port_deleted: 'openstack_port_deleted',
|
|
171
|
-
openstack_port_imported: 'openstack_port_imported',
|
|
172
|
-
openstack_port_pulled: 'openstack_port_pulled',
|
|
173
|
-
openstack_port_updated: 'openstack_port_updated',
|
|
174
|
-
openstack_router_updated: 'openstack_router_updated',
|
|
175
|
-
openstack_security_group_cleaned: 'openstack_security_group_cleaned',
|
|
176
|
-
openstack_security_group_created: 'openstack_security_group_created',
|
|
177
|
-
openstack_security_group_deleted: 'openstack_security_group_deleted',
|
|
178
|
-
openstack_security_group_imported: 'openstack_security_group_imported',
|
|
179
|
-
openstack_security_group_pulled: 'openstack_security_group_pulled',
|
|
180
|
-
openstack_security_group_rule_cleaned: 'openstack_security_group_rule_cleaned',
|
|
181
|
-
openstack_security_group_rule_created: 'openstack_security_group_rule_created',
|
|
182
|
-
openstack_security_group_rule_deleted: 'openstack_security_group_rule_deleted',
|
|
183
|
-
openstack_security_group_rule_imported: 'openstack_security_group_rule_imported',
|
|
184
|
-
openstack_security_group_rule_updated: 'openstack_security_group_rule_updated',
|
|
185
|
-
openstack_security_group_updated: 'openstack_security_group_updated',
|
|
186
|
-
openstack_server_group_cleaned: 'openstack_server_group_cleaned',
|
|
187
|
-
openstack_server_group_created: 'openstack_server_group_created',
|
|
188
|
-
openstack_server_group_deleted: 'openstack_server_group_deleted',
|
|
189
|
-
openstack_server_group_imported: 'openstack_server_group_imported',
|
|
190
|
-
openstack_server_group_pulled: 'openstack_server_group_pulled',
|
|
191
|
-
openstack_subnet_cleaned: 'openstack_subnet_cleaned',
|
|
192
|
-
openstack_subnet_created: 'openstack_subnet_created',
|
|
193
|
-
openstack_subnet_deleted: 'openstack_subnet_deleted',
|
|
194
|
-
openstack_subnet_imported: 'openstack_subnet_imported',
|
|
195
|
-
openstack_subnet_pulled: 'openstack_subnet_pulled',
|
|
196
|
-
openstack_subnet_updated: 'openstack_subnet_updated',
|
|
197
|
-
openstack_tenant_quota_limit_updated: 'openstack_tenant_quota_limit_updated',
|
|
198
|
-
resource_assign_floating_ip_failed: 'resource_assign_floating_ip_failed',
|
|
199
|
-
resource_assign_floating_ip_scheduled: 'resource_assign_floating_ip_scheduled',
|
|
200
|
-
resource_assign_floating_ip_succeeded: 'resource_assign_floating_ip_succeeded',
|
|
201
|
-
resource_attach_failed: 'resource_attach_failed',
|
|
202
|
-
resource_attach_scheduled: 'resource_attach_scheduled',
|
|
203
|
-
resource_attach_succeeded: 'resource_attach_succeeded',
|
|
204
|
-
resource_change_flavor_failed: 'resource_change_flavor_failed',
|
|
205
|
-
resource_change_flavor_scheduled: 'resource_change_flavor_scheduled',
|
|
206
|
-
resource_change_flavor_succeeded: 'resource_change_flavor_succeeded',
|
|
207
|
-
resource_creation_failed: 'resource_creation_failed',
|
|
208
|
-
resource_creation_scheduled: 'resource_creation_scheduled',
|
|
209
|
-
resource_creation_succeeded: 'resource_creation_succeeded',
|
|
210
|
-
resource_deletion_failed: 'resource_deletion_failed',
|
|
211
|
-
resource_deletion_scheduled: 'resource_deletion_scheduled',
|
|
212
|
-
resource_deletion_succeeded: 'resource_deletion_succeeded',
|
|
213
|
-
resource_detach_failed: 'resource_detach_failed',
|
|
214
|
-
resource_detach_scheduled: 'resource_detach_scheduled',
|
|
215
|
-
resource_detach_succeeded: 'resource_detach_succeeded',
|
|
216
|
-
resource_extend_failed: 'resource_extend_failed',
|
|
217
|
-
resource_extend_scheduled: 'resource_extend_scheduled',
|
|
218
|
-
resource_extend_succeeded: 'resource_extend_succeeded',
|
|
219
|
-
resource_extend_volume_failed: 'resource_extend_volume_failed',
|
|
220
|
-
resource_extend_volume_scheduled: 'resource_extend_volume_scheduled',
|
|
221
|
-
resource_extend_volume_succeeded: 'resource_extend_volume_succeeded',
|
|
222
|
-
resource_import_succeeded: 'resource_import_succeeded',
|
|
223
|
-
resource_pull_failed: 'resource_pull_failed',
|
|
224
|
-
resource_pull_scheduled: 'resource_pull_scheduled',
|
|
225
|
-
resource_pull_succeeded: 'resource_pull_succeeded',
|
|
226
|
-
resource_restart_failed: 'resource_restart_failed',
|
|
227
|
-
resource_restart_scheduled: 'resource_restart_scheduled',
|
|
228
|
-
resource_restart_succeeded: 'resource_restart_succeeded',
|
|
229
|
-
resource_retype_failed: 'resource_retype_failed',
|
|
230
|
-
resource_retype_scheduled: 'resource_retype_scheduled',
|
|
231
|
-
resource_retype_succeeded: 'resource_retype_succeeded',
|
|
232
|
-
resource_robot_account_created: 'resource_robot_account_created',
|
|
233
|
-
resource_robot_account_deleted: 'resource_robot_account_deleted',
|
|
234
|
-
resource_robot_account_state_changed: 'resource_robot_account_state_changed',
|
|
235
|
-
resource_robot_account_updated: 'resource_robot_account_updated',
|
|
236
|
-
resource_start_failed: 'resource_start_failed',
|
|
237
|
-
resource_start_scheduled: 'resource_start_scheduled',
|
|
238
|
-
resource_start_succeeded: 'resource_start_succeeded',
|
|
239
|
-
resource_stop_failed: 'resource_stop_failed',
|
|
240
|
-
resource_stop_scheduled: 'resource_stop_scheduled',
|
|
241
|
-
resource_stop_succeeded: 'resource_stop_succeeded',
|
|
242
|
-
resource_unassign_floating_ip_failed: 'resource_unassign_floating_ip_failed',
|
|
243
|
-
resource_unassign_floating_ip_scheduled: 'resource_unassign_floating_ip_scheduled',
|
|
244
|
-
resource_unassign_floating_ip_succeeded: 'resource_unassign_floating_ip_succeeded',
|
|
245
|
-
resource_update_allowed_address_pairs_failed: 'resource_update_allowed_address_pairs_failed',
|
|
246
|
-
resource_update_allowed_address_pairs_scheduled: 'resource_update_allowed_address_pairs_scheduled',
|
|
247
|
-
resource_update_allowed_address_pairs_succeeded: 'resource_update_allowed_address_pairs_succeeded',
|
|
248
|
-
resource_update_floating_ips_failed: 'resource_update_floating_ips_failed',
|
|
249
|
-
resource_update_floating_ips_scheduled: 'resource_update_floating_ips_scheduled',
|
|
250
|
-
resource_update_floating_ips_succeeded: 'resource_update_floating_ips_succeeded',
|
|
251
|
-
resource_update_ports_failed: 'resource_update_ports_failed',
|
|
252
|
-
resource_update_ports_scheduled: 'resource_update_ports_scheduled',
|
|
253
|
-
resource_update_ports_succeeded: 'resource_update_ports_succeeded',
|
|
254
|
-
resource_update_security_groups_failed: 'resource_update_security_groups_failed',
|
|
255
|
-
resource_update_security_groups_scheduled: 'resource_update_security_groups_scheduled',
|
|
256
|
-
resource_update_security_groups_succeeded: 'resource_update_security_groups_succeeded',
|
|
257
|
-
resource_update_succeeded: 'resource_update_succeeded',
|
|
258
|
-
};
|
|
259
|
-
export const ReviewEnum = {
|
|
260
|
-
review_canceled: 'review_canceled',
|
|
261
|
-
};
|
|
262
|
-
export const SshEnum = {
|
|
263
|
-
ssh_key_creation_succeeded: 'ssh_key_creation_succeeded',
|
|
264
|
-
ssh_key_deletion_succeeded: 'ssh_key_deletion_succeeded',
|
|
265
|
-
};
|
|
266
|
-
export const SupportEnum = {
|
|
267
|
-
attachment_created: 'attachment_created',
|
|
268
|
-
attachment_deleted: 'attachment_deleted',
|
|
269
|
-
attachment_updated: 'attachment_updated',
|
|
270
|
-
issue_creation_succeeded: 'issue_creation_succeeded',
|
|
271
|
-
issue_deletion_succeeded: 'issue_deletion_succeeded',
|
|
272
|
-
issue_update_succeeded: 'issue_update_succeeded',
|
|
273
|
-
};
|
|
274
|
-
export const UsersEnum = {
|
|
275
|
-
auth_logged_in_with_saml2: 'auth_logged_in_with_saml2',
|
|
276
|
-
auth_logged_out_with_saml2: 'auth_logged_out_with_saml2',
|
|
277
|
-
freeipa_profile_created: 'freeipa_profile_created',
|
|
278
|
-
freeipa_profile_deleted: 'freeipa_profile_deleted',
|
|
279
|
-
freeipa_profile_disabled: 'freeipa_profile_disabled',
|
|
280
|
-
freeipa_profile_enabled: 'freeipa_profile_enabled',
|
|
281
|
-
marketplace_offering_user_created: 'marketplace_offering_user_created',
|
|
282
|
-
marketplace_offering_user_deleted: 'marketplace_offering_user_deleted',
|
|
283
|
-
marketplace_offering_user_restriction_updated: 'marketplace_offering_user_restriction_updated',
|
|
284
|
-
ssh_key_creation_succeeded: 'ssh_key_creation_succeeded',
|
|
285
|
-
ssh_key_deletion_succeeded: 'ssh_key_deletion_succeeded',
|
|
286
|
-
user_activated: 'user_activated',
|
|
287
|
-
user_creation_succeeded: 'user_creation_succeeded',
|
|
288
|
-
user_deactivated: 'user_deactivated',
|
|
289
|
-
user_deletion_succeeded: 'user_deletion_succeeded',
|
|
290
|
-
user_details_update_succeeded: 'user_details_update_succeeded',
|
|
291
|
-
user_has_been_created_by_staff: 'user_has_been_created_by_staff',
|
|
292
|
-
user_password_updated: 'user_password_updated',
|
|
293
|
-
user_password_updated_by_staff: 'user_password_updated_by_staff',
|
|
294
|
-
user_update_succeeded: 'user_update_succeeded',
|
|
295
|
-
};
|
|
296
|
-
export const Terms_of_serviceEnum = {
|
|
297
|
-
terms_of_service_consent_granted: 'terms_of_service_consent_granted',
|
|
298
|
-
terms_of_service_consent_revoked: 'terms_of_service_consent_revoked',
|
|
299
|
-
};
|
|
300
|
-
// ===== PERMISSION ENUMS =====
|
|
301
|
-
export const RoleEnum = {
|
|
302
|
-
CUSTOMER_OWNER: 'CUSTOMER.OWNER',
|
|
303
|
-
CUSTOMER_SUPPORT: 'CUSTOMER.SUPPORT',
|
|
304
|
-
CUSTOMER_MANAGER: 'CUSTOMER.MANAGER',
|
|
305
|
-
PROJECT_ADMIN: 'PROJECT.ADMIN',
|
|
306
|
-
PROJECT_MANAGER: 'PROJECT.MANAGER',
|
|
307
|
-
PROJECT_MEMBER: 'PROJECT.MEMBER',
|
|
308
|
-
OFFERING_MANAGER: 'OFFERING.MANAGER',
|
|
309
|
-
CALL_REVIEWER: 'CALL.REVIEWER',
|
|
310
|
-
CALL_MANAGER: 'CALL.MANAGER',
|
|
311
|
-
PROPOSAL_MEMBER: 'PROPOSAL.MEMBER',
|
|
312
|
-
PROPOSAL_MANAGER: 'PROPOSAL.MANAGER',
|
|
313
|
-
};
|
|
314
|
-
export const PermissionEnum = {
|
|
315
|
-
REGISTER_SERVICE_PROVIDER: 'SERVICE_PROVIDER.REGISTER',
|
|
316
|
-
CREATE_OFFERING: 'OFFERING.CREATE',
|
|
317
|
-
DELETE_OFFERING: 'OFFERING.DELETE',
|
|
318
|
-
UPDATE_OFFERING_THUMBNAIL: 'OFFERING.UPDATE_THUMBNAIL',
|
|
319
|
-
UPDATE_OFFERING: 'OFFERING.UPDATE',
|
|
320
|
-
UPDATE_OFFERING_ATTRIBUTES: 'OFFERING.UPDATE_ATTRIBUTES',
|
|
321
|
-
UPDATE_OFFERING_LOCATION: 'OFFERING.UPDATE_LOCATION',
|
|
322
|
-
UPDATE_OFFERING_DESCRIPTION: 'OFFERING.UPDATE_DESCRIPTION',
|
|
323
|
-
UPDATE_OFFERING_OPTIONS: 'OFFERING.UPDATE_OPTIONS',
|
|
324
|
-
UPDATE_OFFERING_INTEGRATION: 'OFFERING.UPDATE_INTEGRATION',
|
|
325
|
-
ADD_OFFERING_ENDPOINT: 'OFFERING.ADD_ENDPOINT',
|
|
326
|
-
DELETE_OFFERING_ENDPOINT: 'OFFERING.DELETE_ENDPOINT',
|
|
327
|
-
UPDATE_OFFERING_COMPONENTS: 'OFFERING.UPDATE_COMPONENTS',
|
|
328
|
-
PAUSE_OFFERING: 'OFFERING.PAUSE',
|
|
329
|
-
UNPAUSE_OFFERING: 'OFFERING.UNPAUSE',
|
|
330
|
-
ARCHIVE_OFFERING: 'OFFERING.ARCHIVE',
|
|
331
|
-
DRY_RUN_OFFERING_SCRIPT: 'OFFERING.DRY_RUN_SCRIPT',
|
|
332
|
-
MANAGE_CAMPAIGN: 'OFFERING.MANAGE_CAMPAIGN',
|
|
333
|
-
MANAGE_OFFERING_USER_GROUP: 'OFFERING.MANAGE_USER_GROUP',
|
|
334
|
-
CREATE_OFFERING_PLAN: 'OFFERING.CREATE_PLAN',
|
|
335
|
-
UPDATE_OFFERING_PLAN: 'OFFERING.UPDATE_PLAN',
|
|
336
|
-
ARCHIVE_OFFERING_PLAN: 'OFFERING.ARCHIVE_PLAN',
|
|
337
|
-
CREATE_OFFERING_SCREENSHOT: 'OFFERING.CREATE_SCREENSHOT',
|
|
338
|
-
UPDATE_OFFERING_SCREENSHOT: 'OFFERING.UPDATE_SCREENSHOT',
|
|
339
|
-
DELETE_OFFERING_SCREENSHOT: 'OFFERING.DELETE_SCREENSHOT',
|
|
340
|
-
CREATE_OFFERING_USER: 'OFFERING.CREATE_USER',
|
|
341
|
-
UPDATE_OFFERING_USER: 'OFFERING.UPDATE_USER',
|
|
342
|
-
DELETE_OFFERING_USER: 'OFFERING.DELETE_USER',
|
|
343
|
-
MANAGE_OFFERING_USER_ROLE: 'OFFERING.MANAGE_USER_ROLE',
|
|
344
|
-
CREATE_RESOURCE_ROBOT_ACCOUNT: 'RESOURCE.CREATE_ROBOT_ACCOUNT',
|
|
345
|
-
UPDATE_RESOURCE_ROBOT_ACCOUNT: 'RESOURCE.UPDATE_ROBOT_ACCOUNT',
|
|
346
|
-
DELETE_RESOURCE_ROBOT_ACCOUNT: 'RESOURCE.DELETE_ROBOT_ACCOUNT',
|
|
347
|
-
LIST_ORDERS: 'ORDER.LIST',
|
|
348
|
-
APPROVE_PRIVATE_ORDER: 'ORDER.APPROVE_PRIVATE',
|
|
349
|
-
APPROVE_ORDER: 'ORDER.APPROVE',
|
|
350
|
-
REJECT_ORDER: 'ORDER.REJECT',
|
|
351
|
-
DESTROY_ORDER: 'ORDER.DESTROY',
|
|
352
|
-
CANCEL_ORDER: 'ORDER.CANCEL',
|
|
353
|
-
LIST_RESOURCES: 'RESOURCE.LIST',
|
|
354
|
-
UPDATE_RESOURCE: 'RESOURCE.UPDATE',
|
|
355
|
-
TERMINATE_RESOURCE: 'RESOURCE.TERMINATE',
|
|
356
|
-
LIST_IMPORTABLE_RESOURCES: 'RESOURCE.LIST_IMPORTABLE',
|
|
357
|
-
SET_RESOURCE_END_DATE: 'RESOURCE.SET_END_DATE',
|
|
358
|
-
SET_RESOURCE_USAGE: 'RESOURCE.SET_USAGE',
|
|
359
|
-
SWITCH_RESOURCE_PLAN: 'RESOURCE.SET_PLAN',
|
|
360
|
-
UPDATE_RESOURCE_LIMITS: 'RESOURCE.SET_LIMITS',
|
|
361
|
-
SET_RESOURCE_BACKEND_ID: 'RESOURCE.SET_BACKEND_ID',
|
|
362
|
-
SUBMIT_RESOURCE_REPORT: 'RESOURCE.SUBMIT_REPORT',
|
|
363
|
-
SET_RESOURCE_BACKEND_METADATA: 'RESOURCE.SET_BACKEND_METADATA',
|
|
364
|
-
SET_RESOURCE_STATE: 'RESOURCE.SET_STATE',
|
|
365
|
-
UPDATE_RESOURCE_OPTIONS: 'RESOURCE.UPDATE_OPTIONS',
|
|
366
|
-
ACCEPT_BOOKING_REQUEST: 'RESOURCE.ACCEPT_BOOKING_REQUEST',
|
|
367
|
-
REJECT_BOOKING_REQUEST: 'RESOURCE.REJECT_BOOKING_REQUEST',
|
|
368
|
-
MANAGE_RESOURCE_USERS: 'RESOURCE.MANAGE_USERS',
|
|
369
|
-
RESOURCE_CONSUMPTION_LIMITATION: 'RESOURCE.CONSUMPTION_LIMITATION',
|
|
370
|
-
MANAGE_OFFERING_BACKEND_RESOURCES: 'OFFERING.MANAGE_BACKEND_RESOURCES',
|
|
371
|
-
GET_SERVICE_PROVIDER_API_SECRET_CODE: 'SERVICE_PROVIDER.GET_API_SECRET_CODE',
|
|
372
|
-
GENERATE_SERVICE_PROVIDER_API_SECRET_CODE: 'SERVICE_PROVIDER.GENERATE_API_SECRET_CODE',
|
|
373
|
-
LIST_SERVICE_PROVIDER_CUSTOMERS: 'SERVICE_PROVIDER.LIST_CUSTOMERS',
|
|
374
|
-
LIST_SERVICE_PROVIDER_CUSTOMER_PROJECTS: 'SERVICE_PROVIDER.LIST_CUSTOMER_PROJECTS',
|
|
375
|
-
LIST_SERVICE_PROVIDER_PROJECTS: 'SERVICE_PROVIDER.LIST_PROJECTS',
|
|
376
|
-
LIST_SERVICE_PROVIDER_PROJECT_PERMISSIONS: 'SERVICE_PROVIDER.LIST_PROJECT_PERMISSIONS',
|
|
377
|
-
LIST_SERVICE_PROVIDER_KEYS: 'SERVICE_PROVIDER.LIST_KEYS',
|
|
378
|
-
LIST_SERVICE_PROVIDER_USERS: 'SERVICE_PROVIDER.LIST_USERS',
|
|
379
|
-
LIST_SERVICE_PROVIDER_USER_CUSTOMERS: 'SERVICE_PROVIDER.LIST_USER_CUSTOMERS',
|
|
380
|
-
LIST_SERVICE_PROVIDER_SERVICE_ACCOUNTS: 'SERVICE_PROVIDER.LIST_SERVICE_ACCOUNTS',
|
|
381
|
-
LIST_SERVICE_PROVIDER_COURSE_ACCOUNTS: 'SERVICE_PROVIDER.LIST_COURSE_ACCOUNTS',
|
|
382
|
-
SET_SERVICE_PROVIDER_OFFERINGS_USERNAME: 'SERVICE_PROVIDER.SET_OFFERINGS_USERNAME',
|
|
383
|
-
GET_SERVICE_PROVIDER_STATISTICS: 'SERVICE_PROVIDER.GET_STATISTICS',
|
|
384
|
-
GET_SERVICE_PROVIDER_REVENUE: 'SERVICE_PROVIDER.GET_REVENUE',
|
|
385
|
-
GET_SERVICE_PROVIDER_ROBOT_ACCOUNT_CUSTOMERS: 'SERVICE_PROVIDER.GET_ROBOT_ACCOUNT_CUSTOMERS',
|
|
386
|
-
GET_SERVICE_PROVIDER_ROBOT_ACCOUNT_PROJECTS: 'SERVICE_PROVIDER.GET_ROBOT_ACCOUNT_PROJECTS',
|
|
387
|
-
CREATE_PROJECT_PERMISSION: 'PROJECT.CREATE_PERMISSION',
|
|
388
|
-
CREATE_CUSTOMER_PERMISSION: 'CUSTOMER.CREATE_PERMISSION',
|
|
389
|
-
CREATE_OFFERING_PERMISSION: 'OFFERING.CREATE_PERMISSION',
|
|
390
|
-
CREATE_CALL_PERMISSION: 'CALL.CREATE_PERMISSION',
|
|
391
|
-
MANAGE_PROPOSAL: 'PROPOSAL.MANAGE',
|
|
392
|
-
MANAGE_PROPOSAL_REVIEW: 'PROPOSAL.MANAGE_REVIEW',
|
|
393
|
-
UPDATE_PROJECT_PERMISSION: 'PROJECT.UPDATE_PERMISSION',
|
|
394
|
-
UPDATE_CUSTOMER_PERMISSION: 'CUSTOMER.UPDATE_PERMISSION',
|
|
395
|
-
UPDATE_OFFERING_PERMISSION: 'OFFERING.UPDATE_PERMISSION',
|
|
396
|
-
UPDATE_CALL_PERMISSION: 'CALL.UPDATE_PERMISSION',
|
|
397
|
-
UPDATE_PROPOSAL_PERMISSION: 'PROPOSAL.UPDATE_PERMISSION',
|
|
398
|
-
DELETE_PROJECT_PERMISSION: 'PROJECT.DELETE_PERMISSION',
|
|
399
|
-
DELETE_CUSTOMER_PERMISSION: 'CUSTOMER.DELETE_PERMISSION',
|
|
400
|
-
DELETE_OFFERING_PERMISSION: 'OFFERING.DELETE_PERMISSION',
|
|
401
|
-
DELETE_CALL_PERMISSION: 'CALL.DELETE_PERMISSION',
|
|
402
|
-
DELETE_PROPOSAL_PERMISSION: 'PROPOSAL.DELETE_PERMISSION',
|
|
403
|
-
CREATE_LEXIS_LINK: 'LEXIS_LINK.CREATE',
|
|
404
|
-
DELETE_LEXIS_LINK: 'LEXIS_LINK.DELETE',
|
|
405
|
-
LIST_PROJECTS: 'PROJECT.LIST',
|
|
406
|
-
CREATE_PROJECT: 'PROJECT.CREATE',
|
|
407
|
-
DELETE_PROJECT: 'PROJECT.DELETE',
|
|
408
|
-
UPDATE_PROJECT: 'PROJECT.UPDATE',
|
|
409
|
-
UPDATE_PROJECT_METADATA: 'PROJECT.UPDATE_METADATA',
|
|
410
|
-
REVIEW_PROJECT_MEMBERSHIP: 'PROJECT.REVIEW_MEMBERSHIP',
|
|
411
|
-
UPDATE_CUSTOMER: 'CUSTOMER.UPDATE',
|
|
412
|
-
LIST_CUSTOMER_USERS: 'CUSTOMER.LIST_USERS',
|
|
413
|
-
ACCEPT_REQUESTED_OFFERING: 'OFFERING.ACCEPT_CALL_REQUEST',
|
|
414
|
-
APPROVE_AND_REJECT_PROPOSALS: 'CALL.APPROVE_AND_REJECT_PROPOSALS',
|
|
415
|
-
CLOSE_ROUNDS: 'CALL.CLOSE_ROUNDS',
|
|
416
|
-
CREATE_ACCESS_SUBNET: 'ACCESS_SUBNET.CREATE',
|
|
417
|
-
UPDATE_ACCESS_SUBNET: 'ACCESS_SUBNET.UPDATE',
|
|
418
|
-
DELETE_ACCESS_SUBNET: 'ACCESS_SUBNET.DELETE',
|
|
419
|
-
UPDATE_OFFERING_USER_RESTRICTION: 'OFFERINGUSER.UPDATE_RESTRICTION',
|
|
420
|
-
LIST_INVITATIONS: 'INVITATION.LIST',
|
|
421
|
-
LIST_CUSTOMER_PERMISSION_REVIEWS: 'CUSTOMER.LIST_PERMISSION_REVIEWS',
|
|
422
|
-
LIST_CALLS: 'CALL.LIST',
|
|
423
|
-
CREATE_CALL: 'CALL.CREATE',
|
|
424
|
-
UPDATE_CALL: 'CALL.UPDATE',
|
|
425
|
-
LIST_ROUNDS: 'ROUND.LIST',
|
|
426
|
-
LIST_PROPOSALS: 'PROPOSAL.LIST',
|
|
427
|
-
MANAGE_SERVICE_ACCOUNT: 'SERVICE_ACCOUNT.MANAGE',
|
|
428
|
-
MANAGE_COURSE_ACCOUNT: 'PROJECT.COURSE_ACCOUNT_MANAGE',
|
|
429
|
-
SERVICE_PROVIDER_OPENSTACK_IMAGE_MANAGEMENT: 'SERVICE_PROVIDER.OPENSTACK_IMAGE_MANAGEMENT',
|
|
430
|
-
HAS_OPENSTACK_INSTANCE_CONSOLE_ACCESS: 'OPENSTACK_INSTANCE.CONSOLE_ACCESS',
|
|
431
|
-
CAN_MANAGE_OPENSTACK_INSTANCE_POWER: 'OPENSTACK_INSTANCE.MANAGE_POWER',
|
|
432
|
-
CAN_MANAGE_OPENSTACK_INSTANCE: 'OPENSTACK_INSTANCE.MANAGE',
|
|
433
|
-
};
|
|
434
|
-
// ===== FEATURE ENUMS =====
|
|
435
|
-
export const CustomerFeatures = {
|
|
436
|
-
show_domain: 'customer.show_domain',
|
|
437
|
-
payments_for_staff_only: 'customer.payments_for_staff_only',
|
|
438
|
-
show_permission_reviews: 'customer.show_permission_reviews',
|
|
439
|
-
show_banking_data: 'customer.show_banking_data',
|
|
440
|
-
};
|
|
441
|
-
export const ProjectFeatures = {
|
|
442
|
-
estimated_cost: 'project.estimated_cost',
|
|
443
|
-
oecd_fos_2007_code: 'project.oecd_fos_2007_code',
|
|
444
|
-
show_industry_flag: 'project.show_industry_flag',
|
|
445
|
-
show_description_in_create_dialog: 'project.show_description_in_create_dialog',
|
|
446
|
-
show_type_in_create_dialog: 'project.show_type_in_create_dialog',
|
|
447
|
-
show_start_date_in_create_dialog: 'project.show_start_date_in_create_dialog',
|
|
448
|
-
show_end_date_in_create_dialog: 'project.show_end_date_in_create_dialog',
|
|
449
|
-
show_image_in_create_dialog: 'project.show_image_in_create_dialog',
|
|
450
|
-
show_credit_in_create_dialog: 'project.show_credit_in_create_dialog',
|
|
451
|
-
mandatory_start_date: 'project.mandatory_start_date',
|
|
452
|
-
mandatory_end_date: 'project.mandatory_end_date',
|
|
453
|
-
show_permission_reviews: 'project.show_permission_reviews',
|
|
454
|
-
show_kind_in_create_dialog: 'project.show_kind_in_create_dialog',
|
|
455
|
-
};
|
|
456
|
-
export const UserFeatures = {
|
|
457
|
-
preferred_language: 'user.preferred_language',
|
|
458
|
-
ssh_keys: 'user.ssh_keys',
|
|
459
|
-
notifications: 'user.notifications',
|
|
460
|
-
disable_user_termination: 'user.disable_user_termination',
|
|
461
|
-
show_slug: 'user.show_slug',
|
|
462
|
-
show_username: 'user.show_username',
|
|
463
|
-
};
|
|
464
|
-
export const MarketplaceFeatures = {
|
|
465
|
-
import_resources: 'marketplace.import_resources',
|
|
466
|
-
conceal_prices: 'marketplace.conceal_prices',
|
|
467
|
-
show_experimental_ui_components: 'marketplace.show_experimental_ui_components',
|
|
468
|
-
show_call_management_functionality: 'marketplace.show_call_management_functionality',
|
|
469
|
-
lexis_links: 'marketplace.lexis_links',
|
|
470
|
-
catalogue_only: 'marketplace.catalogue_only',
|
|
471
|
-
call_only: 'marketplace.call_only',
|
|
472
|
-
show_resource_end_date: 'marketplace.show_resource_end_date',
|
|
473
|
-
allow_display_of_images_in_markdown: 'marketplace.allow_display_of_images_in_markdown',
|
|
474
|
-
display_user_tos: 'marketplace.display_user_tos',
|
|
475
|
-
display_software_catalog: 'marketplace.display_software_catalog',
|
|
476
|
-
display_offering_partitions: 'marketplace.display_offering_partitions',
|
|
477
|
-
};
|
|
478
|
-
export const SupportFeatures = {
|
|
479
|
-
pricelist: 'support.pricelist',
|
|
480
|
-
vm_type_overview: 'support.vm_type_overview',
|
|
481
|
-
conceal_change_request: 'support.conceal_change_request',
|
|
482
|
-
};
|
|
483
|
-
export const InvitationsFeatures = {
|
|
484
|
-
conceal_civil_number: 'invitations.conceal_civil_number',
|
|
485
|
-
civil_number_required: 'invitations.civil_number_required',
|
|
486
|
-
show_service_accounts: 'invitations.show_service_accounts',
|
|
487
|
-
show_course_accounts: 'invitations.show_course_accounts',
|
|
488
|
-
};
|
|
489
|
-
export const RancherFeatures = {
|
|
490
|
-
volume_mount_point: 'rancher.volume_mount_point',
|
|
491
|
-
apps: 'rancher.apps',
|
|
492
|
-
};
|
|
493
|
-
export const SlurmFeatures = {
|
|
494
|
-
jobs: 'slurm.jobs',
|
|
495
|
-
};
|
|
496
|
-
export const OpenstackFeatures = {
|
|
497
|
-
hide_volume_type_selector: 'openstack.hide_volume_type_selector',
|
|
498
|
-
show_migrations: 'openstack.show_migrations',
|
|
499
|
-
};
|
|
500
|
-
export const DeploymentFeatures = {
|
|
501
|
-
send_metrics: 'deployment.send_metrics',
|
|
502
|
-
enable_cookie_notice: 'deployment.enable_cookie_notice',
|
|
503
|
-
};
|
|
504
|
-
// Helper functions
|
|
505
|
-
export const getEventGroupKeys = () => Object.keys({
|
|
506
|
-
access_subnets: Access_subnetsEnum,
|
|
507
|
-
auth: AuthEnum,
|
|
508
|
-
call: CallEnum,
|
|
509
|
-
credits: CreditsEnum,
|
|
510
|
-
customers: CustomersEnum,
|
|
511
|
-
invoices: InvoicesEnum,
|
|
512
|
-
offering_accounting: Offering_accountingEnum,
|
|
513
|
-
permissions: PermissionsEnum,
|
|
514
|
-
projects: ProjectsEnum,
|
|
515
|
-
proposal: ProposalEnum,
|
|
516
|
-
providers: ProvidersEnum,
|
|
517
|
-
resources: ResourcesEnum,
|
|
518
|
-
review: ReviewEnum,
|
|
519
|
-
ssh: SshEnum,
|
|
520
|
-
support: SupportEnum,
|
|
521
|
-
users: UsersEnum,
|
|
522
|
-
terms_of_service: Terms_of_serviceEnum,
|
|
523
|
-
});
|
|
524
|
-
export const isValidEventGroup = (group) => {
|
|
525
|
-
return getEventGroupKeys().includes(group);
|
|
526
|
-
};
|