diff --git a/components/jobber/actions/create-client/create-client.mjs b/components/jobber/actions/create-client/create-client.mjs index 266353ab47fe5..21eb20db2aff1 100644 --- a/components/jobber/actions/create-client/create-client.mjs +++ b/components/jobber/actions/create-client/create-client.mjs @@ -5,7 +5,7 @@ export default { key: "jobber-create-client", name: "Create Client", description: "Generates a new client within Jobber. [See the documentation](https://developer.getjobber.com/docs)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { jobber, diff --git a/components/jobber/actions/create-quote/create-quote.mjs b/components/jobber/actions/create-quote/create-quote.mjs index 36af7b914de8f..99ff4a7e216d0 100644 --- a/components/jobber/actions/create-quote/create-quote.mjs +++ b/components/jobber/actions/create-quote/create-quote.mjs @@ -3,8 +3,8 @@ import jobber from "../../jobber.app.mjs"; export default { key: "jobber-create-quote", name: "Create Quote", - description: "Generates a new quote for the client's first property in Jobber. [See the documentation](https://developer.getjobber.com/docs/)", - version: "0.0.1", + description: "Generates a new quote for a client's property in Jobber. [See the documentation](https://developer.getjobber.com/docs/)", + version: "0.0.2", type: "action", props: { jobber, @@ -23,6 +23,9 @@ export default { propDefinition: [ jobber, "propertyId", + (c) => ({ + clientId: c.clientId, + }), ], }, message: { diff --git a/components/jobber/actions/create-request/create-request.mjs b/components/jobber/actions/create-request/create-request.mjs index f2dac782c51f7..77bda5eef6a19 100644 --- a/components/jobber/actions/create-request/create-request.mjs +++ b/components/jobber/actions/create-request/create-request.mjs @@ -6,7 +6,7 @@ export default { key: "jobber-create-request", name: "Create Service Request", description: "Creates a new service request for a client's first property within Jobber. [See the documentation](https://developer.getjobber.com/docs/)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { jobber, diff --git a/components/jobber/jobber.app.mjs b/components/jobber/jobber.app.mjs index 8297edc2ccbdf..7d2c54c05aeea 100644 --- a/components/jobber/jobber.app.mjs +++ b/components/jobber/jobber.app.mjs @@ -35,11 +35,14 @@ export default { type: "string", label: "Property ID", description: "The ID of a property", - async options() { + async options({ clientId }) { + const filter = clientId + ? `(filter: { clientId: "${clientId}" })` + : ""; const { data: { properties: { nodes } } } = await this.post({ data: { query: `query GetProperties { - properties { + properties${filter} { nodes { id address { @@ -74,7 +77,7 @@ export default { url: `${this._baseUrl()}${path}`, headers: { "Authorization": `Bearer ${this.$auth.oauth_access_token}`, - "X-JOBBER-GRAPHQL-VERSION": "2023-11-15", + "X-JOBBER-GRAPHQL-VERSION": "2025-01-20", }, }); }, diff --git a/components/jobber/package.json b/components/jobber/package.json index 55d015955bc1f..c78370bd67c8d 100644 --- a/components/jobber/package.json +++ b/components/jobber/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/jobber", - "version": "0.1.0", + "version": "0.1.1", "description": "Pipedream Jobber Components", "main": "jobber.app.mjs", "keywords": [ @@ -13,7 +13,7 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^1.6.0", + "@pipedream/platform": "^3.0.3", "moment-timezone": "^0.5.45" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 83d4926f198d0..9febd4d32d1ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -774,8 +774,7 @@ importers: specifier: ^2.3.3 version: 2.3.3 - components/applicantstack: - specifiers: {} + components/applicantstack: {} components/appointedd: dependencies: @@ -3613,8 +3612,7 @@ importers: specifier: ^1.2.0 version: 1.6.6 - components/felt: - specifiers: {} + components/felt: {} components/fibery: dependencies: @@ -5532,8 +5530,8 @@ importers: components/jobber: dependencies: '@pipedream/platform': - specifier: ^1.6.0 - version: 1.6.6 + specifier: ^3.0.3 + version: 3.0.3 moment-timezone: specifier: ^0.5.45 version: 0.5.46 @@ -7585,8 +7583,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/ory: - specifiers: {} + components/ory: {} components/osu: {} @@ -12419,8 +12416,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/zep: - specifiers: {} + components/zep: {} components/zerobounce: dependencies: