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
25 changes: 1 addition & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,4 @@ jobs:
uses: actions/setup-node@v3

- name: Compile
run: yarn && yarn test

publish:
needs:
- compile
- test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive

- name: Build
run: yarn build
- name: Set up NPM authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Publish
run: npm publish --access public --no-git-tag-version --tag latest
run: yarn && yarn test
45 changes: 7 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/sdk",
"version": "2.0.13",
"version": "2.0.14",
"private": false,
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
"type": "commonjs",
Expand All @@ -10,11 +10,6 @@
"exports": {
".": {
"types": "./dist/cjs/index.d.ts",
"browser": {
"types": "./dist/esm/browser/index.d.mts",
"import": "./dist/esm/browser/index.mjs",
"default": "./dist/esm/browser/index.mjs"
},
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
Expand All @@ -25,18 +20,6 @@
},
"default": "./dist/cjs/index.js"
},
"./browser": {
"types": "./dist/esm/browser/index.d.mts",
"import": {
"types": "./dist/esm/browser/index.d.mts",
"default": "./dist/esm/browser/index.mjs"
},
"require": {
"types": "./dist/cjs/browser/index.d.ts",
"default": "./dist/cjs/browser/index.js"
},
"default": "./dist/esm/browser/index.mjs"
},
"./serialization": {
"types": "./dist/cjs/serialization/index.d.ts",
"import": {
Expand All @@ -49,18 +32,6 @@
},
"default": "./dist/cjs/serialization/index.js"
},
"./server": {
"types": "./dist/cjs/index.d.ts",
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"default": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"files": [
Expand All @@ -80,21 +51,19 @@
"test:wire": "jest --selectProjects wire"
},
"devDependencies": {
"webpack": "^5.97.1",
"ts-loader": "^9.5.1",
"jest": "^29.7.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^18.19.70",
"jest": "^29.7.0",
"ts-jest": "^29.3.4",
"jest-environment-jsdom": "^29.7.0",
"msw": "^2.8.4",
"@types/node": "^18.19.70",
"prettier": "^3.4.2",
"ts-jest": "^29.3.4",
"ts-loader": "^9.5.1",
"typescript": "~5.7.2",
"webpack": "^5.97.1"
"typescript": "~5.7.2"
},
"browser": {
"./dist/cjs/wrapper/utils/getBaseUrl.js": "./dist/cjs/wrapper/utils/getBaseUrl.browser.js",
"./dist/esm/wrapper/utils/getBaseUrl.mjs": "./dist/esm/wrapper/utils/getBaseUrl.browser.mjs",
"fs": false,
"os": false,
"path": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
export interface CreateOAuthTokenOpts {
clientId: string;
clientSecret: string;
/** Optional space-separated scopes for the access token. Defaults to '*'. */
scope?: string;
}
2 changes: 2 additions & 0 deletions src/api/types/BackendClientOpts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ export interface BackendClientOpts {
clientSecret?: string;
/** The API URL to use */
apiUrl?: string;
/** Optional space-separated scopes for the access token. Defaults to '*'. */
scope?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ export const CreateOAuthTokenOpts: core.serialization.Schema<
> = core.serialization.object({
clientId: core.serialization.property("client_id", core.serialization.string()),
clientSecret: core.serialization.property("client_secret", core.serialization.string()),
scope: core.serialization.string().optional(),
});

export declare namespace CreateOAuthTokenOpts {
export interface Raw {
client_id: string;
client_secret: string;
scope?: string | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/BackendClientOpts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export const BackendClientOpts: core.serialization.ObjectSchema<
clientId: core.serialization.property("client_id", core.serialization.string().optional()),
clientSecret: core.serialization.property("client_secret", core.serialization.string().optional()),
apiUrl: core.serialization.property("api_url", core.serialization.string().optional()),
scope: core.serialization.string().optional(),
});

export declare namespace BackendClientOpts {
export interface Raw {
client_id?: string | null;
client_secret?: string | null;
api_url?: string | null;
scope?: string | null;
}
}
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "2.0.13";
export const SDK_VERSION = "2.0.14";