Skip to content

Commit 0629d53

Browse files
committed
some adjusts
1 parent ebe7054 commit 0629d53

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

components/zoho_books/actions/create-estimate/create-estimate.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import zohoBooks from "../../zoho_books.app.mjs";
55
export default {
66
key: "zoho_books-create-estimate",
77
name: "Create Estimate",
8-
description: "Creates a new estimate. [See the documentation](https://www.zoho.com/books/api/v3/items/#create-an-item)",
8+
description: "Creates a new estimate. [See the documentation](https://www.zoho.com/books/api/v3/estimates/#create-an-estimate)",
99
version: "0.0.1",
1010
type: "action",
1111
props: {

components/zoho_books/actions/create-invoice/create-invoice.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
invoiceNumber: {
2121
type: "string",
2222
label: "Invoice Number",
23-
description: "Search invoices by invoice number.Variants: `invoice_number_startswith` and `invoice_number_contains`. Max-length [100]",
23+
description: "Search invoices by invoice number. Max-length [100]",
2424
optional: true,
2525
},
2626
placeOfSupply: {
@@ -53,7 +53,7 @@ export default {
5353
date: {
5454
type: "string",
5555
label: "Date",
56-
description: "Search invoices by invoice date. Default date format is yyyy-mm-dd. `Variants: due_date_start, due_date_end, due_date_before and due_date_after.`",
56+
description: "Search invoices by invoice date. Default date format is yyyy-mm-dd.",
5757
optional: true,
5858
},
5959
paymentTerms: {

components/zoho_books/actions/create-item/create-item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default {
140140
itemTaxPreferences: {
141141
type: "string[]",
142142
label: "Item Tax Preferences",
143-
desctiption: "A list of item tax objects. **Format: {\"tax_id\":\"12312312031200\",\"tax_specification\":\"intra\"}**",
143+
description: "A list of item tax objects. **Format: {\"tax_id\":\"12312312031200\",\"tax_specification\":\"intra\"}**",
144144
optional: true,
145145
},
146146
},

components/zoho_books/actions/make-api-call/make-api-call.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// legacy_hash_id: a_PNinw1
2+
import { checkUrl } from "../../common/utils.mjs";
23
import zohoBooks from "../../zoho_books.app.mjs";
34

45
export default {
@@ -48,7 +49,7 @@ export default {
4849
async run({ $ }) {
4950
const response = await this.zohoBooks._makeRequest({
5051
$,
51-
path: this.relativeUrl,
52+
path: checkUrl(this.relativeUrl),
5253
params: this.queryString,
5354
method: this.requestMethod,
5455
headers: this.headers,

components/zoho_books/common/utils.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ export const clearObj = (obj) => {
3939
: v,
4040
}), {});
4141
};
42+
43+
export const checkUrl = (url) => {
44+
if (url.startsWith("/books/v3")) {
45+
return url.substring(9);
46+
}
47+
return url;
48+
};

components/zoho_books/sources/new-expense/new-expense.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
return "expense_id";
2222
},
2323
getSummary(item) {
24-
return `New Expense: ${item.description}`;
24+
return `New Expense: ${item.expense_id}`;
2525
},
2626
},
2727
sampleEmit,

0 commit comments

Comments
 (0)