Skip to content

Commit 9292e93

Browse files
committed
fix(databricks): bump component versions and apply lint fixes
1 parent 8343661 commit 9292e93

File tree

9 files changed

+56
-22
lines changed

9 files changed

+56
-22
lines changed

components/databricks/actions/delete-sql-warehouse/delete-sql-warehouse.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default {
2121
});
2222

2323
$.export("$summary", `Successfully deleted SQL Warehouse with ID ${this.warehouseId}`);
24-
return { success: true };
24+
return {
25+
success: true,
26+
};
2527
},
2628
};

components/databricks/actions/get-run-output/get-run-output.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "databricks-get-run-output",
55
name: "Get Run Output",
66
description: "Retrieve the output and metadata of a single task run. [See the documentation](https://docs.databricks.com/en/workflows/jobs/jobs-2.0-api.html#runs-get-output)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
databricks,

components/databricks/actions/get-sql-warehouse-config/get-sql-warehouse-config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default {
1010
databricks,
1111
},
1212
async run({ $ }) {
13-
const response = await this.databricks.getSQLWarehouseConfig({ $ });
13+
const response = await this.databricks.getSQLWarehouseConfig({
14+
$,
15+
});
1416
$.export("$summary", "Successfully retrieved SQL Warehouse configuration");
1517
return response;
1618
},

components/databricks/actions/list-runs/list-runs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "databricks-list-runs",
55
name: "List Runs",
66
description: "Lists all runs available to the user. [See the documentation](https://docs.databricks.com/en/workflows/jobs/jobs-2.0-api.html#runs-list)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
databricks,

components/databricks/actions/list-sql-warehouses/list-sql-warehouses.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export default {
3131
return [];
3232
}
3333

34-
$.export("$summary", `Successfully retrieved ${warehouses.length} warehouse${warehouses.length === 1 ? "" : "s"}.`);
34+
$.export("$summary", `Successfully retrieved ${warehouses.length} warehouse${warehouses.length === 1
35+
? ""
36+
: "s"}.`);
3537

3638
return warehouses;
3739
},

components/databricks/actions/run-job-now/run-job-now.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "databricks-run-job-now",
55
name: "Run Job Now",
66
description: "Run a job now and return the id of the triggered run. [See the documentation](https://docs.databricks.com/en/workflows/jobs/jobs-2.0-api.html#runs-list)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
databricks,

components/databricks/actions/set-sql-warehouse-permissions/set-sql-warehouse-permissions.mjs

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,26 @@ export default {
1818
label: "Access Control List",
1919
description: "List of access control entries. Each entry must include one of `user_name`, `group_name`, or `service_principal_name`, and a `permission_level` (`CAN_VIEW`, `CAN_MONITOR`, `CAN_USE`, `CAN_MANAGE`).",
2020
properties: {
21-
user_name: { type: "string", optional: true },
22-
group_name: { type: "string", optional: true },
23-
service_principal_name: { type: "string", optional: true },
24-
permission_level: {
25-
type: "string",
26-
options: ["CAN_VIEW", "CAN_MONITOR", "CAN_USE", "CAN_MANAGE"]
21+
user_name: {
22+
type: "string",
23+
optional: true,
24+
},
25+
group_name: {
26+
type: "string",
27+
optional: true,
28+
},
29+
service_principal_name: {
30+
type: "string",
31+
optional: true,
32+
},
33+
permission_level: {
34+
type: "string",
35+
options: [
36+
"CAN_VIEW",
37+
"CAN_MONITOR",
38+
"CAN_USE",
39+
"CAN_MANAGE",
40+
],
2741
},
2842
},
2943
},

components/databricks/databricks.app.mjs

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,18 @@ export default {
9797
...args,
9898
});
9999
},
100-
deleteSQLWarehouse({ warehouseId, ...args }) {
100+
deleteSQLWarehouse({
101+
warehouseId, ...args
102+
}) {
101103
return this._makeRequest({
102104
path: `/sql/warehouses/${warehouseId}`,
103105
method: "DELETE",
104106
...args,
105107
});
106108
},
107-
getSQLWarehouse({ warehouseId, ...args }) {
109+
getSQLWarehouse({
110+
warehouseId, ...args
111+
}) {
108112
return this._makeRequest({
109113
path: `/sql/warehouses/${warehouseId}`,
110114
method: "GET",
@@ -117,29 +121,35 @@ export default {
117121
...args,
118122
});
119123
},
120-
editSQLWarehouse({ warehouseId, ...args }) {
124+
editSQLWarehouse({
125+
warehouseId, ...args
126+
}) {
121127
return this._makeRequest({
122128
path: `/sql/warehouses/${warehouseId}/edit`,
123129
method: "POST",
124130
...args,
125131
});
126132
},
127-
startSQLWarehouse({ warehouseId, ...args }) {
133+
startSQLWarehouse({
134+
warehouseId, ...args
135+
}) {
128136
return this._makeRequest({
129137
path: `/sql/warehouses/${warehouseId}/start`,
130138
method: "POST",
131139
...args,
132140
});
133141
},
134142

135-
stopSQLWarehouse({ warehouseId, ...args }) {
143+
stopSQLWarehouse({
144+
warehouseId, ...args
145+
}) {
136146
return this._makeRequest({
137147
path: `/sql/warehouses/${warehouseId}/stop`,
138148
method: "POST",
139149
...args,
140150
});
141151
},
142-
152+
143153
getSQLWarehouseConfig(args = {}) {
144154
return this._makeRequest({
145155
path: "/sql/config/warehouses",
@@ -155,20 +165,24 @@ export default {
155165
...args,
156166
});
157167
},
158-
getSQLWarehousePermissions({ warehouseId, ...args }) {
168+
getSQLWarehousePermissions({
169+
warehouseId, ...args
170+
}) {
159171
return this._makeRequest({
160172
path: `/permissions/warehouses/${warehouseId}`,
161173
method: "GET",
162174
...args,
163175
});
164176
},
165177

166-
setSQLWarehousePermissions({ warehouseId, ...args }) {
178+
setSQLWarehousePermissions({
179+
warehouseId, ...args
180+
}) {
167181
return this._makeRequest({
168182
path: `/permissions/warehouses/${warehouseId}`,
169183
method: "PUT",
170184
...args,
171185
});
172-
}
186+
},
173187
},
174188
};

components/databricks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/databricks",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Databricks Components",
55
"main": "databricks.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)