Skip to content
Open
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/agentql/agentql.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/api_labz/api_labz.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/appsflyer/appsflyer.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/autotask_psa/autotask_psa.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/botx/botx.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/changes_page/changes_page.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/classmarker/classmarker.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/currents_api/currents_api.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/cvr_dev/cvr_dev.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/docker_engine/docker_engine.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 @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/enginemailer/enginemailer.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/extracta_ai/extracta_ai.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/formatting/formatting.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/gather/gather.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/getty_images/getty_images.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/google_identity/google_identity.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/google_marketplace/google_marketplace.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 @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/helpdesk/helpdesk.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/kraken_io/kraken_io.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
@@ -0,0 +1,21 @@
import { adjustPropDefinitions } from "../../common/utils.mjs";
import component from "../../../launchdarkly/actions/evaluate-feature-flag/evaluate-feature-flag.mjs";
import app from "../../launch_darkly_oauth.app.mjs";

const {
name, description, type, ...others
} = component;
const props = adjustPropDefinitions(others.props, app);

export default {
...component,
key: "launch_darkly_oauth-evaluate-feature-flag",
version: "0.0.1",
name,
description,
type,
props: {
app,
...props,
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { adjustPropDefinitions } from "../../common/utils.mjs";
import component from "../../../launchdarkly/actions/toggle-feature-flag/toggle-feature-flag.mjs";
import app from "../../launch_darkly_oauth.app.mjs";

const {
name, description, type, ...others
} = component;
const props = adjustPropDefinitions(others.props, app);

export default {
...component,
key: "launch_darkly_oauth-toggle-feature-flag",
version: "0.0.1",
name,
description,
type,
props: {
app,
...props,
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { adjustPropDefinitions } from "../../common/utils.mjs";
import component from "../../../launchdarkly/actions/update-feature-flag/update-feature-flag.mjs";
import app from "../../launch_darkly_oauth.app.mjs";

const {
name, description, type, ...others
} = component;
const props = adjustPropDefinitions(others.props, app);

export default {
...component,
key: "launch_darkly_oauth-update-feature-flag",
version: "0.0.1",
name,
description,
type,
props: {
app,
...props,
},
};
40 changes: 40 additions & 0 deletions components/launch_darkly_oauth/common/utils.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
export function adjustPropDefinitions(props, app) {
return Object.fromEntries(
Object.entries(props).map(([
key,
prop,
]) => {
if (typeof prop === "string") return [
key,
prop,
];
const {
propDefinition, ...otherValues
} = prop;
if (propDefinition) {
const [
, ...otherDefs
] = propDefinition;
return [
key,
{
propDefinition: [
app,
...otherDefs,
],
...otherValues,
},
];
}
return [
key,
otherValues.type === "app"
? null
: otherValues,
];
})
.filter(([
, value,
]) => value),
);
}
15 changes: 10 additions & 5 deletions components/launch_darkly_oauth/launch_darkly_oauth.app.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import launchdarkly from "../launchdarkly/launchdarkly.app.mjs";

export default {
type: "app",
...launchdarkly,
app: "launch_darkly_oauth",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
...launchdarkly.methods,
getHeaders(headers) {
return {
"Content-Type": "application/json",
...headers,
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
};
},
},
};
2 changes: 1 addition & 1 deletion components/launch_darkly_oauth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/launch_darkly_oauth",
"version": "0.6.0",
"version": "0.7.0",
"description": "Pipedream launch_darkly_oauth Components",
"main": "launch_darkly_oauth.app.mjs",
"keywords": [
Expand Down
14 changes: 14 additions & 0 deletions components/launch_darkly_oauth/sources/common/webhook.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import app from "../../launch_darkly_oauth.app.mjs";
import common from "../../../launchdarkly/sources/common/webhook.mjs";

export default {
...common,
props: {
app,
db: "$.service.db",
http: {
type: "$.interface.http",
customResponse: true,
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import common from "../common/webhook.mjs";
import component from "../../../launchdarkly/sources/new-access-token-event/new-access-token-event.mjs";

const {
name, description, type,
} = component;

export default {
...component,
key: "launch_darkly_oauth-new-access-token-event",
version: "0.0.1",
name,
description,
type,
props: {
...common.props,
memberId: {
propDefinition: [
common.props.app,
"memberId",
],
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import common from "../common/webhook.mjs";
import component from "../../../launchdarkly/sources/new-flag-event/new-flag-event.mjs";

const {
name, description, type,
} = component;

export default {
...component,
key: "launch_darkly_oauth-new-flag-event",
version: "0.0.1",
name,
description,
type,
props: common.props,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import common from "../common/webhook.mjs";
import component from "../../../launchdarkly/sources/new-user-event/new-user-event.mjs";

const {
name, description, type,
} = component;

export default {
...component,
key: "launch_darkly_oauth-new-user-event",
version: "0.0.1",
name,
description,
type,
props: common.props,
};
2 changes: 1 addition & 1 deletion components/leverly/leverly.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/livespace/livespace.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/mailsoftly/mailsoftly.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/microbilt_developer/microbilt_developer.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/microsoft_dataverse/microsoft_dataverse.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 @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Loading
Loading