@camunda/ccma-shared-types 0.2.0 → 0.5.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.
Files changed (85) hide show
  1. package/dist/_tests/constants/failoverRegionPairs.const.spec.d.ts +1 -0
  2. package/dist/_tests/search/compiler.spec.d.ts +1 -0
  3. package/dist/_tests/search/parser.spec.d.ts +1 -0
  4. package/dist/_tests/search/registry.spec.d.ts +1 -0
  5. package/dist/_tests/types/ClusterPlanFields.type.spec.d.ts +1 -0
  6. package/dist/constants/failoverRegionPairs.const.d.ts +18 -0
  7. package/dist/constants/failoverRegionPairs.const.js +22 -0
  8. package/dist/constants/failoverRegionPairs.const.js.map +7 -0
  9. package/dist/constants/misc.const.d.ts +7 -0
  10. package/dist/constants/misc.const.js +2 -0
  11. package/dist/constants/misc.const.js.map +2 -2
  12. package/dist/dtos/Backup.dto.d.ts +5 -0
  13. package/dist/dtos/ClusterPlan.dto.d.ts +5 -0
  14. package/dist/dtos/ClusterPlanType.dto.d.ts +6 -0
  15. package/dist/dtos/ClusterSpecHistory.dto.d.ts +24 -0
  16. package/dist/dtos/ClusterSpecHistory.dto.js +1 -0
  17. package/dist/dtos/ClusterSpecHistory.dto.js.map +7 -0
  18. package/dist/dtos/CommonCluster.dto.d.ts +71 -6
  19. package/dist/dtos/ConsoleCluster.dto.d.ts +7 -0
  20. package/dist/dtos/ControlV2.dto.d.ts +121 -7
  21. package/dist/dtos/ExternalWebapp.dto.d.ts +89 -0
  22. package/dist/dtos/ExternalWebapp.dto.js +1 -0
  23. package/dist/dtos/ExternalWebapp.dto.js.map +7 -0
  24. package/dist/dtos/K8sContext.dto.d.ts +7 -0
  25. package/dist/dtos/Organization.dto.d.ts +2 -0
  26. package/dist/dtos/Organization.dto.js.map +1 -1
  27. package/dist/dtos/ReleaseTrainSanity.dto.d.ts +51 -0
  28. package/dist/dtos/ReleaseTrainSanity.dto.js +1 -0
  29. package/dist/dtos/ReleaseTrainSanity.dto.js.map +7 -0
  30. package/dist/dtos/SalesPlan.dto.js +4 -2
  31. package/dist/dtos/SalesPlan.dto.js.map +2 -2
  32. package/dist/dtos/StorybookConfig.dto.d.ts +39 -0
  33. package/dist/dtos/StorybookConfig.dto.js +1 -0
  34. package/dist/dtos/StorybookConfig.dto.js.map +7 -0
  35. package/dist/enums/AuditEntity.enum.d.ts +1 -0
  36. package/dist/enums/AuditEntity.enum.js +1 -0
  37. package/dist/enums/AuditEntity.enum.js.map +2 -2
  38. package/dist/enums/OrganizationRole.enum.d.ts +1 -2
  39. package/dist/enums/OrganizationRole.enum.js +7 -2
  40. package/dist/enums/OrganizationRole.enum.js.map +2 -2
  41. package/dist/enums/SystemAuditEntity.enum.d.ts +7 -2
  42. package/dist/enums/SystemAuditEntity.enum.js +5 -0
  43. package/dist/enums/SystemAuditEntity.enum.js.map +2 -2
  44. package/dist/index.d.ts +13 -5
  45. package/dist/index.js +39 -17
  46. package/dist/index.js.map +2 -2
  47. package/dist/permissions/combo.js +3 -0
  48. package/dist/permissions/combo.js.map +2 -2
  49. package/dist/permissions/console.permissions.d.ts +2 -0
  50. package/dist/permissions/console.permissions.js +7 -0
  51. package/dist/permissions/console.permissions.js.map +2 -2
  52. package/dist/permissions/profile.permissions.d.ts +14 -8
  53. package/dist/permissions/profile.permissions.js +16 -123
  54. package/dist/permissions/profile.permissions.js.map +2 -2
  55. package/dist/search/ast.d.ts +52 -0
  56. package/dist/search/ast.js +18 -0
  57. package/dist/search/ast.js.map +7 -0
  58. package/dist/search/cluster-search-fields.d.ts +11 -0
  59. package/dist/search/cluster-search-fields.js +136 -0
  60. package/dist/search/cluster-search-fields.js.map +7 -0
  61. package/dist/search/compiler.d.ts +48 -0
  62. package/dist/search/compiler.js +217 -0
  63. package/dist/search/compiler.js.map +7 -0
  64. package/dist/search/fields.d.ts +24 -0
  65. package/dist/search/fields.js +5 -0
  66. package/dist/search/fields.js.map +7 -0
  67. package/dist/search/index.d.ts +6 -0
  68. package/dist/search/index.js +33 -0
  69. package/dist/search/index.js.map +7 -0
  70. package/dist/search/organization-search-fields.d.ts +9 -0
  71. package/dist/search/organization-search-fields.js +50 -0
  72. package/dist/search/organization-search-fields.js.map +7 -0
  73. package/dist/search/parser.d.ts +7 -0
  74. package/dist/search/parser.js +324 -0
  75. package/dist/search/parser.js.map +7 -0
  76. package/dist/types/ClusterModification.type.d.ts +1 -0
  77. package/dist/types/ClusterPlanFields.type.d.ts +24 -0
  78. package/dist/types/ClusterPlanFields.type.js +591 -0
  79. package/dist/types/ClusterPlanFields.type.js.map +7 -0
  80. package/dist/types/ClusterPlanModification.type.d.ts +1 -0
  81. package/dist/types/EnterpriseIncludingValueMetrics.type.d.ts +1 -0
  82. package/dist/types/HdpTenantUsage.type.d.ts +4 -0
  83. package/dist/types/HdpTenantUsage.type.js +1 -0
  84. package/dist/types/HdpTenantUsage.type.js.map +7 -0
  85. package/package.json +2 -2
@@ -0,0 +1,591 @@
1
+ import { parseEnvVars } from "../utils/envVars.js";
2
+ const isClusterPlanFieldSpec = (node) => typeof node.type === "string";
3
+ const quantityRegexp = /^[+-]?[0-9.]+([BeEinumkKMGTP]+[-+]?[0-9]*|[-+][0-9]+)?$/u;
4
+ const thresholdRegexp = /^[0-9]{1,3}%$/u;
5
+ const numberValidator = (val) => {
6
+ const num = Number(val);
7
+ return !Number.isNaN(num);
8
+ };
9
+ const notEmptyStringValidator = (val) => {
10
+ return val !== void 0 && val.length > 0;
11
+ };
12
+ const numberMin1Validator = (val) => {
13
+ return numberValidator(val) && Number(val) > 0;
14
+ };
15
+ const numberMin0OrUndefinedValidator = (val) => {
16
+ return !val || numberValidator(val) && Number(val) >= 0;
17
+ };
18
+ const thresholdValidator = (val) => {
19
+ return thresholdRegexp.test(val);
20
+ };
21
+ const quantityValidator = (val) => {
22
+ return quantityRegexp.test(val);
23
+ };
24
+ const envVarsValidator = (val) => {
25
+ if (!val || val.trim() === "") return true;
26
+ return parseEnvVars(val).length > 0;
27
+ };
28
+ const undefinedOrQuantityValidator = (val) => {
29
+ return val === void 0 || val === "" || quantityValidator(val);
30
+ };
31
+ const undefinedOrEnvVarsValidator = (val) => {
32
+ return envVarsValidator(val);
33
+ };
34
+ const undefinedOrBooleanStringValidator = (val) => {
35
+ return val === void 0 || typeof val === "boolean";
36
+ };
37
+ const CLUSTER_PLAN_FIELDS = {
38
+ gateway: {
39
+ replicas: {
40
+ type: "number",
41
+ placeholder: "e.g. 1",
42
+ validator: numberMin0OrUndefinedValidator,
43
+ description: "the replication for gateway"
44
+ },
45
+ resources: {
46
+ limits: {
47
+ memory: {
48
+ type: "text",
49
+ placeholder: "e.g. 150Mi",
50
+ validator: undefinedOrQuantityValidator,
51
+ description: "Memory limit of a gateway pod, e.g. 150Mi, 2Gi"
52
+ },
53
+ cpu: {
54
+ type: "text",
55
+ placeholder: "e.g. 200m",
56
+ validator: undefinedOrQuantityValidator,
57
+ description: "CPU limit of a gateway pod, e.g. 150m, 0.5, 1"
58
+ }
59
+ },
60
+ requests: {
61
+ memory: {
62
+ type: "text",
63
+ placeholder: "e.g. 150Mi",
64
+ validator: undefinedOrQuantityValidator,
65
+ description: "Memory request of a gateway pod, e.g. 150Mi, 2Gi"
66
+ },
67
+ cpu: {
68
+ type: "text",
69
+ placeholder: "e.g. 200m",
70
+ validator: undefinedOrQuantityValidator,
71
+ description: "CPU request of a gateway pod, e.g. 150m, 0.5, 1"
72
+ }
73
+ }
74
+ },
75
+ dataRetentionDays: {
76
+ notOnClusterPlan: true,
77
+ type: "number",
78
+ placeholder: "e.g. 7",
79
+ validator: numberMin0OrUndefinedValidator,
80
+ description: "number of days for gateway retention"
81
+ },
82
+ envVars: {
83
+ type: "textarea",
84
+ placeholder: "e.g. TEST=123",
85
+ validator: undefinedOrEnvVarsValidator,
86
+ description: "env vars going into the system, no linebreakes are allowed"
87
+ }
88
+ },
89
+ zeebe: {
90
+ broker: {
91
+ clusterSize: {
92
+ type: "number",
93
+ description: "the amount of borkers",
94
+ placeholder: "e.g. 1",
95
+ validator: numberMin1Validator
96
+ },
97
+ replicationFactor: {
98
+ type: "number",
99
+ placeholder: "e.g. 1",
100
+ description: "the replication factor configured into the zeebe nodes",
101
+ validator: numberMin1Validator
102
+ },
103
+ partitionsCount: {
104
+ type: "number",
105
+ placeholder: "e.g. 1",
106
+ description: "the number of partitions configured into the zeebe nodes",
107
+ validator: numberMin1Validator
108
+ },
109
+ storage: {
110
+ storageClassName: {
111
+ type: "text",
112
+ placeholder: "e.g. fast-v2",
113
+ validator: notEmptyStringValidator,
114
+ description: "This needs to be set to a storageclass present in the k8s system. Can not be undefined if one value in storage: is set"
115
+ },
116
+ resources: {
117
+ requests: {
118
+ storage: {
119
+ type: "text",
120
+ placeholder: "e.g. 1GiB",
121
+ validator: quantityValidator,
122
+ description: "The initial storage size of the statefulset"
123
+ }
124
+ },
125
+ limits: {
126
+ storage: {
127
+ type: "text",
128
+ placeholder: "e.g. 1GiB",
129
+ validator: quantityValidator,
130
+ description: "The upper limit the pvc autoscaler can scale up to"
131
+ }
132
+ }
133
+ },
134
+ autoResizing: {
135
+ threshold: {
136
+ type: "text",
137
+ placeholder: "e.g. 10%",
138
+ validator: thresholdValidator,
139
+ description: "The free space percentage threshold where vpc autoscaling will kicks in. (example 10%)"
140
+ },
141
+ increase: {
142
+ type: "text",
143
+ placeholder: "e.g. 1GiB",
144
+ validator: quantityValidator,
145
+ description: "The amount of disk space which is added as soon as autoscaling kicks in. (example 2Gi)"
146
+ }
147
+ }
148
+ },
149
+ resources: {
150
+ limits: {
151
+ memory: {
152
+ type: "text",
153
+ placeholder: "e.g. 150Mi",
154
+ validator: undefinedOrQuantityValidator,
155
+ description: "Memory limit of a zeebe broker, e.g. 150Mi, 2Gi"
156
+ },
157
+ cpu: {
158
+ type: "text",
159
+ placeholder: "e.g. 200m",
160
+ validator: undefinedOrQuantityValidator,
161
+ description: "CPU limit of a zeebe broker, e.g. 150m, 0.5, 1"
162
+ }
163
+ },
164
+ requests: {
165
+ memory: {
166
+ type: "text",
167
+ placeholder: "e.g. 150Mi",
168
+ validator: undefinedOrQuantityValidator,
169
+ description: "Memory request of a zeebe broker, e.g. 150Mi, 2Gi"
170
+ },
171
+ cpu: {
172
+ type: "text",
173
+ placeholder: "e.g. 200m",
174
+ validator: undefinedOrQuantityValidator,
175
+ description: "CPU request of a zeebe broker, e.g. 150m, 0.5, 1"
176
+ }
177
+ }
178
+ },
179
+ envVars: {
180
+ type: "textarea",
181
+ placeholder: "e.g. TEST=123",
182
+ validator: undefinedOrEnvVarsValidator,
183
+ description: "env vars going into the system, no linebreakes are allowed"
184
+ },
185
+ dataRetentionDays: {
186
+ notOnClusterPlan: true,
187
+ type: "number",
188
+ placeholder: "e.g. 7",
189
+ validator: numberMin0OrUndefinedValidator,
190
+ description: "number of days for zeebe broker retention"
191
+ }
192
+ },
193
+ gateway: {
194
+ replicas: {
195
+ type: "number",
196
+ placeholder: "e.g. 0",
197
+ validator: numberValidator,
198
+ description: "number of gateways"
199
+ },
200
+ standalone: {
201
+ type: "checkbox",
202
+ placeholder: void 0,
203
+ validator: undefinedOrBooleanStringValidator,
204
+ description: "if this is a standalone gateway"
205
+ },
206
+ backend: {
207
+ resources: {
208
+ limits: {
209
+ memory: {
210
+ type: "text",
211
+ placeholder: "e.g. 150Mi",
212
+ validator: undefinedOrQuantityValidator,
213
+ description: "Memory limit of an gateway pod, e.g. 150Mi, 2Gi"
214
+ },
215
+ cpu: {
216
+ type: "text",
217
+ placeholder: "e.g. 200m",
218
+ validator: undefinedOrQuantityValidator,
219
+ description: "CPU limit of an gateway pod, e.g. 150m, 0.5, 1"
220
+ }
221
+ },
222
+ requests: {
223
+ memory: {
224
+ type: "text",
225
+ placeholder: "e.g. 150Mi",
226
+ validator: undefinedOrQuantityValidator,
227
+ description: "Memory request of an gateway pod, e.g. 150Mi, 2Gi"
228
+ },
229
+ cpu: {
230
+ type: "text",
231
+ placeholder: "e.g. 200m",
232
+ validator: undefinedOrQuantityValidator,
233
+ description: "CPU request of a an gateway pod, e.g. 150m, 0.5, 1"
234
+ }
235
+ }
236
+ },
237
+ envVars: {
238
+ type: "textarea",
239
+ placeholder: "e.g. TEST=123",
240
+ validator: undefinedOrEnvVarsValidator,
241
+ description: "env vars going into the system, no linebreakes are allowed"
242
+ }
243
+ }
244
+ }
245
+ },
246
+ operate: {
247
+ backend: {
248
+ resources: {
249
+ limits: {
250
+ memory: {
251
+ type: "text",
252
+ placeholder: "e.g. 150Mi",
253
+ validator: undefinedOrQuantityValidator,
254
+ description: "Memory limit of an operate pod, e.g. 150Mi, 2Gi"
255
+ },
256
+ cpu: {
257
+ type: "text",
258
+ placeholder: "e.g. 200m",
259
+ validator: undefinedOrQuantityValidator,
260
+ description: "CPU limit of an operate pod, e.g. 150m, 0.5, 1"
261
+ }
262
+ },
263
+ requests: {
264
+ memory: {
265
+ type: "text",
266
+ placeholder: "e.g. 150Mi",
267
+ validator: undefinedOrQuantityValidator,
268
+ description: "Memory request of an operate pod, e.g. 150Mi, 2Gi"
269
+ },
270
+ cpu: {
271
+ type: "text",
272
+ placeholder: "e.g. 200m",
273
+ validator: undefinedOrQuantityValidator,
274
+ description: "CPU request of a an operate pod, e.g. 150m, 0.5, 1"
275
+ }
276
+ }
277
+ },
278
+ envVars: {
279
+ type: "textarea",
280
+ placeholder: "e.g. TEST=123",
281
+ validator: undefinedOrEnvVarsValidator,
282
+ description: "env vars going into the system, no linebreakes are allowed"
283
+ }
284
+ },
285
+ replicas: {
286
+ type: "number",
287
+ placeholder: "e.g. 1",
288
+ validator: numberMin1Validator,
289
+ description: "the replication for operate"
290
+ },
291
+ elasticsearch: {
292
+ resources: {
293
+ limits: {
294
+ memory: {
295
+ type: "text",
296
+ placeholder: "e.g. 150Mi",
297
+ validator: undefinedOrQuantityValidator,
298
+ description: "Memory limit of an elastic node, e.g. 150Mi, 2Gi"
299
+ },
300
+ cpu: {
301
+ type: "text",
302
+ placeholder: "e.g. 200m",
303
+ validator: undefinedOrQuantityValidator,
304
+ description: "CPU limit of an elastic node, e.g. 150m, 0.5, 1"
305
+ }
306
+ },
307
+ requests: {
308
+ memory: {
309
+ type: "text",
310
+ placeholder: "e.g. 150Mi",
311
+ validator: undefinedOrQuantityValidator,
312
+ description: "Memory request of an elastic node, e.g. 150Mi, 2Gi"
313
+ },
314
+ cpu: {
315
+ type: "text",
316
+ placeholder: "e.g. 200m",
317
+ validator: undefinedOrQuantityValidator,
318
+ description: "CPU request of a an elastic node, e.g. 150m, 0.5, 1"
319
+ }
320
+ }
321
+ },
322
+ config: {
323
+ nodesCount: {
324
+ type: "number",
325
+ placeholder: "e.g. 1",
326
+ validator: numberMin1Validator,
327
+ description: "The count of elasticsearch nodes - e.g. how many pods it runs, if its value is more than 1 it is deployed through the elastic-operator"
328
+ },
329
+ storage: {
330
+ storageClassName: {
331
+ type: "text",
332
+ placeholder: "e.g. fast-v2",
333
+ validator: notEmptyStringValidator,
334
+ description: "This needs to be set to a storageclass present in the k8s system. Can not be undefined if one value in storage: is set"
335
+ },
336
+ resources: {
337
+ requests: {
338
+ storage: {
339
+ type: "text",
340
+ placeholder: "e.g. 1GiB",
341
+ validator: quantityValidator,
342
+ description: "The initial storage size of the statefulset"
343
+ }
344
+ },
345
+ limits: {
346
+ storage: {
347
+ type: "text",
348
+ placeholder: "e.g. 1GiB",
349
+ validator: undefinedOrQuantityValidator,
350
+ description: "The upper limit the pvc autoscaler can scale up to"
351
+ }
352
+ }
353
+ },
354
+ autoResizing: {
355
+ threshold: {
356
+ type: "text",
357
+ placeholder: "e.g. 10%",
358
+ validator: thresholdValidator,
359
+ description: "The free space percentage threshold where pvc autoscaling kicks in. (example 10%)"
360
+ },
361
+ increase: {
362
+ type: "text",
363
+ placeholder: "e.g. 1GiB",
364
+ validator: quantityValidator,
365
+ description: "The amount of disk space which is added as soon as autoscaling kicks in. (example 2Gi)"
366
+ }
367
+ }
368
+ }
369
+ }
370
+ },
371
+ dataRetentionDays: {
372
+ notOnClusterPlan: true,
373
+ type: "number",
374
+ placeholder: "e.g. 7",
375
+ validator: numberMin0OrUndefinedValidator,
376
+ description: "number of days for operate retention"
377
+ }
378
+ },
379
+ tasklist: {
380
+ backend: {
381
+ resources: {
382
+ limits: {
383
+ memory: {
384
+ type: "text",
385
+ placeholder: "e.g. 150Mi",
386
+ validator: undefinedOrQuantityValidator,
387
+ description: "Memory limit of a tasklist pod, e.g. 150Mi, 2Gi"
388
+ },
389
+ cpu: {
390
+ type: "text",
391
+ placeholder: "e.g. 200m",
392
+ validator: undefinedOrQuantityValidator,
393
+ description: "CPU limit of a tasklist pod, e.g. 150m, 0.5, 1"
394
+ }
395
+ },
396
+ requests: {
397
+ memory: {
398
+ type: "text",
399
+ placeholder: "e.g. 150Mi",
400
+ validator: undefinedOrQuantityValidator,
401
+ description: "Memory request of a tasklist pod, e.g. 150Mi, 2Gi"
402
+ },
403
+ cpu: {
404
+ type: "text",
405
+ placeholder: "e.g. 200m",
406
+ validator: undefinedOrQuantityValidator,
407
+ description: "CPU request of a a tasklist pod, e.g. 150m, 0.5, 1"
408
+ }
409
+ }
410
+ },
411
+ envVars: {
412
+ type: "textarea",
413
+ placeholder: "e.g. TEST=123",
414
+ validator: undefinedOrEnvVarsValidator,
415
+ description: "env vars going into the system, no linebreakes are allowed"
416
+ }
417
+ },
418
+ replicas: {
419
+ type: "number",
420
+ placeholder: "e.g. 1",
421
+ validator: numberMin0OrUndefinedValidator,
422
+ description: "the replication for tasklist"
423
+ },
424
+ dataRetentionDays: {
425
+ notOnClusterPlan: true,
426
+ type: "number",
427
+ placeholder: "e.g. 7",
428
+ validator: numberMin0OrUndefinedValidator,
429
+ description: "number of days for tasklist retention"
430
+ }
431
+ },
432
+ optimize: {
433
+ backend: {
434
+ resources: {
435
+ limits: {
436
+ memory: {
437
+ type: "text",
438
+ placeholder: "e.g. 150Mi",
439
+ validator: undefinedOrQuantityValidator,
440
+ description: "Memory limit of a optimize pod, e.g. 150Mi, 2Gi"
441
+ },
442
+ cpu: {
443
+ type: "text",
444
+ placeholder: "e.g. 200m",
445
+ validator: undefinedOrQuantityValidator,
446
+ description: "CPU limit of a optimize pod, e.g. 150m, 0.5, 1"
447
+ }
448
+ },
449
+ requests: {
450
+ memory: {
451
+ type: "text",
452
+ placeholder: "e.g. 150Mi",
453
+ validator: undefinedOrQuantityValidator,
454
+ description: "Memory request of a optimize pod, e.g. 150Mi, 2Gi"
455
+ },
456
+ cpu: {
457
+ type: "text",
458
+ placeholder: "e.g. 200m",
459
+ validator: undefinedOrQuantityValidator,
460
+ description: "CPU request of a a optimize pod, e.g. 150m, 0.5, 1"
461
+ }
462
+ }
463
+ },
464
+ envVars: {
465
+ type: "textarea",
466
+ placeholder: "e.g. TEST=123",
467
+ validator: undefinedOrEnvVarsValidator,
468
+ description: "env vars going into the system, no linebreakes are allowed"
469
+ }
470
+ },
471
+ replicas: {
472
+ type: "number",
473
+ placeholder: "e.g. 1",
474
+ validator: numberMin0OrUndefinedValidator,
475
+ description: "the replication for optimize"
476
+ },
477
+ dataRetentionDays: {
478
+ notOnClusterPlan: true,
479
+ type: "number",
480
+ placeholder: "e.g. 7",
481
+ validator: numberMin0OrUndefinedValidator,
482
+ description: "number of days for optimize retention"
483
+ }
484
+ },
485
+ zeebeAnalytics: {
486
+ backend: {
487
+ resources: {
488
+ limits: {
489
+ memory: {
490
+ type: "text",
491
+ placeholder: "e.g. 150Mi",
492
+ validator: undefinedOrQuantityValidator,
493
+ description: "Memory limit of a zeebeAnalytics pod, e.g. 150Mi, 2Gi"
494
+ },
495
+ cpu: {
496
+ type: "text",
497
+ placeholder: "e.g. 200m",
498
+ validator: undefinedOrQuantityValidator,
499
+ description: "CPU limit of a zeebeAnalytics pod, e.g. 150m, 0.5, 1"
500
+ }
501
+ },
502
+ requests: {
503
+ memory: {
504
+ type: "text",
505
+ placeholder: "e.g. 150Mi",
506
+ validator: undefinedOrQuantityValidator,
507
+ description: "Memory request of a zeebeAnalytics pod, e.g. 150Mi, 2Gi"
508
+ },
509
+ cpu: {
510
+ type: "text",
511
+ placeholder: "e.g. 200m",
512
+ validator: undefinedOrQuantityValidator,
513
+ description: "CPU request of a a zeebeAnalytics pod, e.g. 150m, 0.5, 1"
514
+ }
515
+ }
516
+ },
517
+ envVars: {
518
+ type: "textarea",
519
+ placeholder: "e.g. TEST=123",
520
+ validator: undefinedOrEnvVarsValidator,
521
+ description: "env vars going into the system, no linebreakes are allowed"
522
+ }
523
+ },
524
+ replicas: {
525
+ type: "number",
526
+ placeholder: "e.g. 1",
527
+ validator: numberMin0OrUndefinedValidator,
528
+ description: "the replication for zeebeAnalytics"
529
+ }
530
+ },
531
+ connectorBridge: {
532
+ backend: {
533
+ resources: {
534
+ limits: {
535
+ memory: {
536
+ type: "text",
537
+ placeholder: "e.g. 150Mi",
538
+ validator: undefinedOrQuantityValidator,
539
+ description: "Memory limit of a connectorBridge pod, e.g. 150Mi, 2Gi"
540
+ },
541
+ cpu: {
542
+ type: "text",
543
+ placeholder: "e.g. 200m",
544
+ validator: undefinedOrQuantityValidator,
545
+ description: "CPU limit of a connectorBridge pod, e.g. 150m, 0.5, 1"
546
+ }
547
+ },
548
+ requests: {
549
+ memory: {
550
+ type: "text",
551
+ placeholder: "e.g. 150Mi",
552
+ validator: undefinedOrQuantityValidator,
553
+ description: "Memory request of a connectorBridge pod, e.g. 150Mi, 2Gi"
554
+ },
555
+ cpu: {
556
+ type: "text",
557
+ placeholder: "e.g. 200m",
558
+ validator: undefinedOrQuantityValidator,
559
+ description: "CPU request of a a connectorBridge pod, e.g. 150m, 0.5, 1"
560
+ }
561
+ }
562
+ },
563
+ envVars: {
564
+ type: "textarea",
565
+ placeholder: "e.g. TEST=123",
566
+ validator: undefinedOrEnvVarsValidator,
567
+ description: "env vars going into the system, no linebreakes are allowed"
568
+ }
569
+ },
570
+ replicas: {
571
+ type: "number",
572
+ placeholder: "e.g. 1",
573
+ validator: numberMin0OrUndefinedValidator,
574
+ description: "the replication for connectorBridge"
575
+ }
576
+ },
577
+ reconciliation: {
578
+ paused: {
579
+ notOnClusterPlan: true,
580
+ type: "checkbox",
581
+ placeholder: void 0,
582
+ validator: undefinedOrBooleanStringValidator,
583
+ description: "pause reconciliation of the cluster CRD"
584
+ }
585
+ }
586
+ };
587
+ export {
588
+ CLUSTER_PLAN_FIELDS,
589
+ isClusterPlanFieldSpec
590
+ };
591
+ //# sourceMappingURL=ClusterPlanFields.type.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/types/ClusterPlanFields.type.ts"],
4
+ "sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport { parseEnvVars } from '../utils/envVars.js'\n\n/**\n * Field specification for a cluster plan config: one entry per configurable\n * leaf, mirroring the shape of the `plan` object stored on a cluster plan.\n *\n * It drives the per-field create/edit forms in the admin frontends (accounts\n * `Create Cluster Plan`, control `Create cluster plan`) so a plan can be filled\n * in field by field instead of hand-writing JSON \u2014 the descriptions, input\n * types and validators live here rather than in either app.\n */\nexport interface ClusterPlanFieldSpec {\n type: 'text' | 'number' | 'textarea' | 'checkbox'\n description: string\n placeholder?: string\n validator: (value: any) => boolean\n /** Only settable on a cluster (modification), not on a cluster plan. */\n notOnClusterPlan?: boolean\n}\n\n/** A nested group of field specs, keyed like the config object itself. */\nexport interface ClusterPlanFieldTree {\n [key: string]: ClusterPlanFieldSpec | ClusterPlanFieldTree\n}\n\n/** Narrow a node of the tree to a leaf field spec. */\nexport const isClusterPlanFieldSpec = (\n node: ClusterPlanFieldSpec | ClusterPlanFieldTree,\n): node is ClusterPlanFieldSpec => typeof node.type === 'string'\n\n// A k8s quantity: a number, then an optional unit suffix (`Gi`, `Mi`, `m`, \u2026)\n// or exponent (`e-3`). The suffix must start with a letter or a sign so the\n// digits of the number cannot also be matched by the suffix \u2014 an ambiguity that\n// made the previous form backtrack quadratically on input like `.0000000000x`.\nconst quantityRegexp =\n /^[+-]?[0-9.]+([BeEinumkKMGTP]+[-+]?[0-9]*|[-+][0-9]+)?$/u\nconst thresholdRegexp = /^[0-9]{1,3}%$/u\n\nconst numberValidator = (val: any) => {\n const num = Number(val)\n return !Number.isNaN(num)\n}\n\nconst notEmptyStringValidator = (val: string) => {\n return val !== undefined && val.length > 0\n}\n\nconst numberMin1Validator = (val: any) => {\n return numberValidator(val) && Number(val) > 0\n}\n\nconst numberMin0OrUndefinedValidator = (val: any) => {\n return !val || (numberValidator(val) && Number(val) >= 0)\n}\n\nconst thresholdValidator = (val: string) => {\n return thresholdRegexp.test(val)\n}\n\nconst quantityValidator = (val: string) => {\n return quantityRegexp.test(val)\n}\n\nconst envVarsValidator = (val: string | undefined) => {\n if (!val || val.trim() === '') return true\n return parseEnvVars(val).length > 0\n}\n\nconst undefinedOrQuantityValidator = (val: string) => {\n return val === undefined || val === '' || quantityValidator(val)\n}\n\nconst undefinedOrEnvVarsValidator = (val: string | undefined) => {\n return envVarsValidator(val)\n}\nconst undefinedOrBooleanStringValidator = (val: any) => {\n return val === undefined || typeof val === 'boolean'\n}\n\nexport const CLUSTER_PLAN_FIELDS: ClusterPlanFieldTree = {\n gateway: {\n replicas: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin0OrUndefinedValidator,\n description: 'the replication for gateway',\n },\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of a gateway pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of a gateway pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of a gateway pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a gateway pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n dataRetentionDays: {\n notOnClusterPlan: true,\n type: 'number',\n placeholder: 'e.g. 7',\n validator: numberMin0OrUndefinedValidator,\n description: 'number of days for gateway retention',\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description: 'env vars going into the system, no linebreakes are allowed',\n },\n },\n zeebe: {\n broker: {\n clusterSize: {\n type: 'number',\n description: 'the amount of borkers',\n placeholder: 'e.g. 1',\n validator: numberMin1Validator,\n },\n replicationFactor: {\n type: 'number',\n placeholder: 'e.g. 1',\n description: 'the replication factor configured into the zeebe nodes',\n validator: numberMin1Validator,\n },\n partitionsCount: {\n type: 'number',\n placeholder: 'e.g. 1',\n description: 'the number of partitions configured into the zeebe nodes',\n validator: numberMin1Validator,\n },\n storage: {\n storageClassName: {\n type: 'text',\n placeholder: 'e.g. fast-v2',\n validator: notEmptyStringValidator,\n description:\n 'This needs to be set to a storageclass present in the k8s system. Can not be undefined if one value in storage: is set',\n },\n resources: {\n requests: {\n storage: {\n type: 'text',\n placeholder: 'e.g. 1GiB',\n validator: quantityValidator,\n description: 'The initial storage size of the statefulset',\n },\n },\n limits: {\n storage: {\n type: 'text',\n placeholder: 'e.g. 1GiB',\n validator: quantityValidator,\n description: 'The upper limit the pvc autoscaler can scale up to',\n },\n },\n },\n autoResizing: {\n threshold: {\n type: 'text',\n placeholder: 'e.g. 10%',\n validator: thresholdValidator,\n description:\n 'The free space percentage threshold where vpc autoscaling will kicks in. (example 10%)',\n },\n increase: {\n type: 'text',\n placeholder: 'e.g. 1GiB',\n validator: quantityValidator,\n description:\n 'The amount of disk space which is added as soon as autoscaling kicks in. (example 2Gi)',\n },\n },\n },\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of a zeebe broker, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of a zeebe broker, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of a zeebe broker, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a zeebe broker, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n dataRetentionDays: {\n notOnClusterPlan: true,\n type: 'number',\n placeholder: 'e.g. 7',\n validator: numberMin0OrUndefinedValidator,\n description: 'number of days for zeebe broker retention',\n },\n },\n gateway: {\n replicas: {\n type: 'number',\n placeholder: 'e.g. 0',\n validator: numberValidator,\n description: 'number of gateways',\n },\n standalone: {\n type: 'checkbox',\n placeholder: undefined,\n validator: undefinedOrBooleanStringValidator,\n description: 'if this is a standalone gateway',\n },\n backend: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of an gateway pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of an gateway pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of an gateway pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a an gateway pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n },\n },\n },\n operate: {\n backend: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of an operate pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of an operate pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of an operate pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a an operate pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n },\n replicas: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin1Validator,\n description: 'the replication for operate',\n },\n elasticsearch: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of an elastic node, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of an elastic node, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of an elastic node, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a an elastic node, e.g. 150m, 0.5, 1',\n },\n },\n },\n config: {\n nodesCount: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin1Validator,\n description:\n 'The count of elasticsearch nodes - e.g. how many pods it runs, if its value is more than 1 it is deployed through the elastic-operator',\n },\n storage: {\n storageClassName: {\n type: 'text',\n placeholder: 'e.g. fast-v2',\n validator: notEmptyStringValidator,\n description:\n 'This needs to be set to a storageclass present in the k8s system. Can not be undefined if one value in storage: is set',\n },\n resources: {\n requests: {\n storage: {\n type: 'text',\n placeholder: 'e.g. 1GiB',\n validator: quantityValidator,\n description: 'The initial storage size of the statefulset',\n },\n },\n limits: {\n storage: {\n type: 'text',\n placeholder: 'e.g. 1GiB',\n validator: undefinedOrQuantityValidator,\n description:\n 'The upper limit the pvc autoscaler can scale up to',\n },\n },\n },\n autoResizing: {\n threshold: {\n type: 'text',\n placeholder: 'e.g. 10%',\n validator: thresholdValidator,\n description:\n 'The free space percentage threshold where pvc autoscaling kicks in. (example 10%)',\n },\n increase: {\n type: 'text',\n placeholder: 'e.g. 1GiB',\n validator: quantityValidator,\n description:\n 'The amount of disk space which is added as soon as autoscaling kicks in. (example 2Gi)',\n },\n },\n },\n },\n },\n dataRetentionDays: {\n notOnClusterPlan: true,\n type: 'number',\n placeholder: 'e.g. 7',\n validator: numberMin0OrUndefinedValidator,\n description: 'number of days for operate retention',\n },\n },\n tasklist: {\n backend: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of a tasklist pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of a tasklist pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of a tasklist pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a a tasklist pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n },\n replicas: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin0OrUndefinedValidator,\n description: 'the replication for tasklist',\n },\n dataRetentionDays: {\n notOnClusterPlan: true,\n type: 'number',\n placeholder: 'e.g. 7',\n validator: numberMin0OrUndefinedValidator,\n description: 'number of days for tasklist retention',\n },\n },\n optimize: {\n backend: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory limit of a optimize pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of a optimize pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description: 'Memory request of a optimize pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU request of a a optimize pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n },\n replicas: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin0OrUndefinedValidator,\n description: 'the replication for optimize',\n },\n dataRetentionDays: {\n notOnClusterPlan: true,\n type: 'number',\n placeholder: 'e.g. 7',\n validator: numberMin0OrUndefinedValidator,\n description: 'number of days for optimize retention',\n },\n },\n zeebeAnalytics: {\n backend: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description:\n 'Memory limit of a zeebeAnalytics pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description: 'CPU limit of a zeebeAnalytics pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description:\n 'Memory request of a zeebeAnalytics pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description:\n 'CPU request of a a zeebeAnalytics pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n },\n replicas: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin0OrUndefinedValidator,\n description: 'the replication for zeebeAnalytics',\n },\n },\n connectorBridge: {\n backend: {\n resources: {\n limits: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description:\n 'Memory limit of a connectorBridge pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description:\n 'CPU limit of a connectorBridge pod, e.g. 150m, 0.5, 1',\n },\n },\n requests: {\n memory: {\n type: 'text',\n placeholder: 'e.g. 150Mi',\n validator: undefinedOrQuantityValidator,\n description:\n 'Memory request of a connectorBridge pod, e.g. 150Mi, 2Gi',\n },\n cpu: {\n type: 'text',\n placeholder: 'e.g. 200m',\n validator: undefinedOrQuantityValidator,\n description:\n 'CPU request of a a connectorBridge pod, e.g. 150m, 0.5, 1',\n },\n },\n },\n envVars: {\n type: 'textarea',\n placeholder: 'e.g. TEST=123',\n validator: undefinedOrEnvVarsValidator,\n description:\n 'env vars going into the system, no linebreakes are allowed',\n },\n },\n replicas: {\n type: 'number',\n placeholder: 'e.g. 1',\n validator: numberMin0OrUndefinedValidator,\n description: 'the replication for connectorBridge',\n },\n },\n reconciliation: {\n paused: {\n notOnClusterPlan: true,\n type: 'checkbox',\n placeholder: undefined,\n validator: undefinedOrBooleanStringValidator,\n description: 'pause reconciliation of the cluster CRD',\n },\n },\n}\n"],
5
+ "mappings": "AAMA,SAAS,oBAAoB;AA0BtB,MAAM,yBAAyB,CACpC,SACiC,OAAO,KAAK,SAAS;AAMxD,MAAM,iBACJ;AACF,MAAM,kBAAkB;AAExB,MAAM,kBAAkB,CAAC,QAAa;AACpC,QAAM,MAAM,OAAO,GAAG;AACtB,SAAO,CAAC,OAAO,MAAM,GAAG;AAC1B;AAEA,MAAM,0BAA0B,CAAC,QAAgB;AAC/C,SAAO,QAAQ,UAAa,IAAI,SAAS;AAC3C;AAEA,MAAM,sBAAsB,CAAC,QAAa;AACxC,SAAO,gBAAgB,GAAG,KAAK,OAAO,GAAG,IAAI;AAC/C;AAEA,MAAM,iCAAiC,CAAC,QAAa;AACnD,SAAO,CAAC,OAAQ,gBAAgB,GAAG,KAAK,OAAO,GAAG,KAAK;AACzD;AAEA,MAAM,qBAAqB,CAAC,QAAgB;AAC1C,SAAO,gBAAgB,KAAK,GAAG;AACjC;AAEA,MAAM,oBAAoB,CAAC,QAAgB;AACzC,SAAO,eAAe,KAAK,GAAG;AAChC;AAEA,MAAM,mBAAmB,CAAC,QAA4B;AACpD,MAAI,CAAC,OAAO,IAAI,KAAK,MAAM,GAAI,QAAO;AACtC,SAAO,aAAa,GAAG,EAAE,SAAS;AACpC;AAEA,MAAM,+BAA+B,CAAC,QAAgB;AACpD,SAAO,QAAQ,UAAa,QAAQ,MAAM,kBAAkB,GAAG;AACjE;AAEA,MAAM,8BAA8B,CAAC,QAA4B;AAC/D,SAAO,iBAAiB,GAAG;AAC7B;AACA,MAAM,oCAAoC,CAAC,QAAa;AACtD,SAAO,QAAQ,UAAa,OAAO,QAAQ;AAC7C;AAEO,MAAM,sBAA4C;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interface ClusterPlanModificationDto {
7
7
  sealedAt?: Date;
8
8
  startedAt?: Date;
9
9
  executedAt?: Date;
10
+ skipK8sUpdate?: boolean;
10
11
  acks: Array<ClusterPlanModificationAck>;
11
12
  config: Array<ClusterPlanModificationConfig>;
12
13
  clusterplans: Array<string>;
@@ -2,4 +2,5 @@ export interface EnterpriseIncludingValueMetrics {
2
2
  processInstances: number;
3
3
  taskUsers: number;
4
4
  decisionInstances: number;
5
+ tenants?: number;
5
6
  }
@@ -0,0 +1,4 @@
1
+ export interface HdpTenantUsagePoint {
2
+ ts: number;
3
+ value: number;
4
+ }