@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.
- package/LICENSE +21 -0
- package/README.md +15 -13
- package/cli.js +17 -9
- package/commands/integration.js +172 -12
- package/commands/login.js +1 -1
- package/helper/env.js +1 -1
- package/helper/folder.js +19 -4
- package/helper/validation.js +260 -7
- package/llm.txt +295 -0
- package/package.json +11 -3
- package/templates/component-schemas.js +929 -0
- package/templates/schemas.js +36 -6
- package/utils/integration.js +1 -1
- package/.claude/settings.local.json +0 -15
package/templates/schemas.js
CHANGED
|
@@ -45,10 +45,24 @@ const authentication = {
|
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const base = (name) => {
|
|
49
|
-
|
|
50
|
-
|
|
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: [
|
|
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: {
|
package/utils/integration.js
CHANGED