Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/l2s/l2s.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/langbase/langbase.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import microsoftExcel from "../../microsoft_excel.app.mjs";
export default {
key: "microsoft_excel-add-a-worksheet-tablerow",
name: "Add A Worksheet Tablerow",
version: "0.0.3",
version: "0.0.4",
description: "Adds rows to the end of specific table. [See the documentation](https://learn.microsoft.com/en-us/graph/api/tablerowcollection-add?view=graph-rest-1.0&tabs=http)",
type: "action",
props: {
Expand All @@ -23,6 +23,7 @@ export default {
folderId,
}),
],
reloadProps: true,
},
tableId: {
propDefinition: [
Expand All @@ -32,6 +33,13 @@ export default {
itemId,
}),
],
hidden: true,
},
tableName: {
type: "string",
label: "Table Name",
description: "This is set in the **Table Design** tab of the ribbon.",
hidden: true,
},
values: {
propDefinition: [
Expand All @@ -40,18 +48,34 @@ export default {
],
},
},
async additionalProps(props) {
if (this.itemId) {
try {
await this.microsoftExcel.listTables({
itemId: this.itemId,
});
} catch {
props.tableName.hidden = false;
return {};
}
props.tableId.hidden = false;
return {};
}
},
async run({ $ }) {
const {
microsoftExcel,
itemId,
tableId,
tableName,
values,
} = this;

const response = await microsoftExcel.addRow({
$,
itemId,
tableId,
tableName,
data: {
values: parseObject(values),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import microsoftExcel from "../../microsoft_excel.app.mjs";
export default {
key: "microsoft_excel-update-worksheet-tablerow",
name: "Update Worksheet Tablerow",
version: "0.0.3",
version: "0.0.4",
description: "Update the properties of tablerow object. `(Only for work or school account)` [See the documentation](https://learn.microsoft.com/en-us/graph/api/tablerow-update?view=graph-rest-1.0&tabs=http)",
type: "action",
props: {
Expand Down
5 changes: 3 additions & 2 deletions components/microsoft_excel/microsoft_excel.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ export default {
return axios($, config);
},
addRow({
itemId, tableId, ...args
itemId, tableId, tableName, ...args
}) {
return this._makeRequest({
method: "POST",
path: `me/drive/items/${itemId}/workbook/tables/${tableId}/rows`,
path: `me/drive/items/${itemId}/workbook/tables/${tableId || tableName}/rows/add`,
...args,
});
},
Expand Down Expand Up @@ -138,6 +138,7 @@ export default {
...args,
});
},
// List tables endpoint is not supported for personal accounts
listTables({
itemId, ...args
}) {
Expand Down
4 changes: 2 additions & 2 deletions components/microsoft_excel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/microsoft_excel",
"version": "0.1.2",
"version": "0.1.3",
"description": "Pipedream Microsoft Excel Components",
"main": "microsoft_excel.app.mjs",
"keywords": [
Expand All @@ -13,7 +13,7 @@
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.0.1",
"@pipedream/platform": "^3.0.3",
"moment": "^2.29.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "microsoft_excel-new-item-updated",
name: "New Item Updated (Instant)",
description: "Emit new event when an item is updated.",
version: "0.0.3",
version: "0.0.4",
type: "source",
props: {
microsoftExcel,
Expand Down
2 changes: 1 addition & 1 deletion components/tricentis_qtest/tricentis_qtest.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
106 changes: 53 additions & 53 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading