@boltic/cli 1.0.6-beta.1 → 1.0.6-beta.12

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.
@@ -45,10 +45,24 @@ const authentication = {
45
45
  },
46
46
  };
47
47
 
48
- const base = (name) => {
49
- return {
50
- parameters: [
51
- {
48
+ const base = (name, create_catalogue) => {
49
+ const secretParameter = create_catalogue
50
+ ? {
51
+ name: "secret",
52
+ meta: {
53
+ displayName: "Service Account",
54
+ displayType: "hidden",
55
+ placeholder: "Select Service Account",
56
+ description:
57
+ "Your service account credentials are encrypted & can be removed at any time.",
58
+ options: [],
59
+ value: `__BOLTIC_INTEGRATION_${name.toUpperCase()}`,
60
+ validation: {
61
+ required: true,
62
+ },
63
+ },
64
+ }
65
+ : {
52
66
  name: "secret",
53
67
  meta: {
54
68
  displayName: "Service Account",
@@ -72,7 +86,11 @@ const base = (name) => {
72
86
  required: true,
73
87
  },
74
88
  },
75
- },
89
+ };
90
+
91
+ return {
92
+ parameters: [
93
+ secretParameter,
76
94
  {
77
95
  name: "resource",
78
96
  meta: {
@@ -80,7 +98,13 @@ const base = (name) => {
80
98
  displayType: "select",
81
99
  placeholder: "Select a resource",
82
100
  description: "Select the resource you want to work with.",
83
- options: [{ label: "Resource 1", value: "resource1" }],
101
+ options: [
102
+ {
103
+ label: "Resource 1",
104
+ value: "resource1",
105
+ description: "Description for Resource 1",
106
+ },
107
+ ],
84
108
  value: "",
85
109
  validation: {
86
110
  required: true,
@@ -136,6 +160,8 @@ const webhook = (name) => {
136
160
  {
137
161
  label: "Webhook",
138
162
  value: "webhook",
163
+ description:
164
+ "Receive notifications from the service.",
139
165
  },
140
166
  ],
141
167
  value: "",
@@ -163,6 +189,8 @@ const webhook = (name) => {
163
189
  {
164
190
  label: "Data Submission",
165
191
  value: "webhook.data_submission",
192
+ description:
193
+ "Receive notifications when data is submitted.",
166
194
  },
167
195
  ],
168
196
  value: "",
@@ -377,10 +405,12 @@ const resource1 = {
377
405
  {
378
406
  label: "Create Account",
379
407
  value: "resource1.create",
408
+ description: "Create a new account.",
380
409
  },
381
410
  {
382
411
  label: "Delete Account",
383
412
  value: "resource1.delete",
413
+ description: "Delete an existing account.",
384
414
  },
385
415
  ],
386
416
  validation: {
@@ -39,7 +39,7 @@ async function pickSvgFile() {
39
39
  console.error("Unsupported platform for file picker");
40
40
  return null;
41
41
  }
42
- } catch (_) {
42
+ } catch {
43
43
  return null;
44
44
  }
45
45
  }
@@ -1,15 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(mkdir:*)",
5
- "Bash(npm test)",
6
- "Bash(npm test:*)",
7
- "Bash(ls:*)",
8
- "Bash(npx jest:*)",
9
- "Bash(rm:*)",
10
- "Bash(grep:*)",
11
- "Bash(touch:*)"
12
- ],
13
- "deny": []
14
- }
15
- }