Skip to content

Commit 7c7aad9

Browse files
committed
Merge remote-tracking branch 'origin/master' into adding-missing-package-json
2 parents f41da33 + 961cbf6 commit 7c7aad9

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

components/jobber/actions/create-client/create-client.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "jobber-create-client",
66
name: "Create Client",
77
description: "Generates a new client within Jobber. [See the documentation](https://developer.getjobber.com/docs)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
jobber,

components/jobber/actions/create-quote/create-quote.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import jobber from "../../jobber.app.mjs";
33
export default {
44
key: "jobber-create-quote",
55
name: "Create Quote",
6-
description: "Generates a new quote for the client's first property in Jobber. [See the documentation](https://developer.getjobber.com/docs/)",
7-
version: "0.0.1",
6+
description: "Generates a new quote for a client's property in Jobber. [See the documentation](https://developer.getjobber.com/docs/)",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
jobber,
@@ -23,6 +23,9 @@ export default {
2323
propDefinition: [
2424
jobber,
2525
"propertyId",
26+
(c) => ({
27+
clientId: c.clientId,
28+
}),
2629
],
2730
},
2831
message: {

components/jobber/actions/create-request/create-request.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "jobber-create-request",
77
name: "Create Service Request",
88
description: "Creates a new service request for a client's first property within Jobber. [See the documentation](https://developer.getjobber.com/docs/)",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "action",
1111
props: {
1212
jobber,

components/jobber/jobber.app.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ export default {
3535
type: "string",
3636
label: "Property ID",
3737
description: "The ID of a property",
38-
async options() {
38+
async options({ clientId }) {
39+
const filter = clientId
40+
? `(filter: { clientId: "${clientId}" })`
41+
: "";
3942
const { data: { properties: { nodes } } } = await this.post({
4043
data: {
4144
query: `query GetProperties {
42-
properties {
45+
properties${filter} {
4346
nodes {
4447
id
4548
address {
@@ -74,7 +77,7 @@ export default {
7477
url: `${this._baseUrl()}${path}`,
7578
headers: {
7679
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
77-
"X-JOBBER-GRAPHQL-VERSION": "2023-11-15",
80+
"X-JOBBER-GRAPHQL-VERSION": "2025-01-20",
7881
},
7982
});
8083
},

components/jobber/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/jobber",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Jobber Components",
55
"main": "jobber.app.mjs",
66
"keywords": [
@@ -13,7 +13,7 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.6.0",
16+
"@pipedream/platform": "^3.0.3",
1717
"moment-timezone": "^0.5.45"
1818
}
1919
}

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)