Skip to content
Merged
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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.16.0'
node-version: '22'
cache: 'npm'

- name: Install deps
Expand Down
2 changes: 1 addition & 1 deletion examples/box/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ContentDisposition from "content-disposition";
import type {Folder} from "./types";
import type {User} from "./types";
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import * as mime from "mime-types";

export async function searchFolders(
Expand Down
2 changes: 1 addition & 1 deletion examples/box/pack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FormData from "form-data";
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import {getFilename} from "./helpers";
import {getUser} from "./helpers";
import {searchFolders} from "./helpers";
Expand Down
2 changes: 1 addition & 1 deletion examples/dictionary/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type * as coda from "@codahq/packs-sdk";
import type * as coda from "@superhuman/plugins-sdk";
import type * as types from "./types";

const API_VERSION = "v3";
Expand Down
2 changes: 1 addition & 1 deletion examples/dictionary/pack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import * as helpers from "./helpers";
import * as schemas from "./schemas";

Expand Down
2 changes: 1 addition & 1 deletion examples/dictionary/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";

export const DefinitionSchema = coda.makeObjectSchema({
properties: {
Expand Down
2 changes: 1 addition & 1 deletion examples/dictionary/test/dictionary_integration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {assert} from "chai";
import {describe} from "mocha";
import {executeFormulaFromPackDef} from "@codahq/packs-sdk/dist/development";
import {executeFormulaFromPackDef} from "@superhuman/plugins-sdk/dist/development";
import {it} from "mocha";
import {pack} from "../pack";

Expand Down
8 changes: 4 additions & 4 deletions examples/dictionary/test/dictionary_test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type {APIEntry} from "../types";
import type {MockExecutionContext} from "@codahq/packs-sdk/dist/development";
import type {MockExecutionContext} from "@superhuman/plugins-sdk/dist/development";
import {assert} from "chai";
import {describe} from "mocha";
import {executeFormulaFromPackDef} from "@codahq/packs-sdk/dist/development";
import {executeFormulaFromPackDef} from "@superhuman/plugins-sdk/dist/development";
import {it} from "mocha";
import {newJsonFetchResponse} from "@codahq/packs-sdk/dist/development";
import {newMockExecutionContext} from "@codahq/packs-sdk/dist/development";
import {newJsonFetchResponse} from "@superhuman/plugins-sdk/dist/development";
import {newMockExecutionContext} from "@superhuman/plugins-sdk/dist/development";
import {pack} from "../pack";
import * as sinon from "sinon";

Expand Down
2 changes: 1 addition & 1 deletion examples/github/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import type * as types from "./types";

const PULL_REQUEST_URL_REGEX =
Expand Down
2 changes: 1 addition & 1 deletion examples/github/pack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import * as helpers from "./helpers";
import * as schemas from "./schemas";
import * as types from "./types";
Expand Down
2 changes: 1 addition & 1 deletion examples/github/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";

// A user associated with an entity or action. This is a child property
// in many other GitHub objects.
Expand Down
2 changes: 1 addition & 1 deletion examples/github/test/github_integration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {PullRequestStateFilter} from "../types";
import {assert} from "chai";
import {describe} from "mocha";
import {executeSyncFormulaFromPackDef} from "@codahq/packs-sdk/dist/development";
import {executeSyncFormulaFromPackDef} from "@superhuman/plugins-sdk/dist/development";
import {it} from "mocha";
import {pack} from "../pack";

Expand Down
17 changes: 9 additions & 8 deletions examples/github/test/github_test.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import type {GitHubPullRequest} from "../types";
import type {GitHubRepo} from "../types";
import {GitHubReviewEvent} from "../types";
import type {MockExecutionContext} from "@codahq/packs-sdk/dist/development";
import type {MockSyncExecutionContext} from "@codahq/packs-sdk/dist/development";
import type {MockExecutionContext} from "@superhuman/plugins-sdk/dist/development";
import type {MockSyncExecutionContext} from "@superhuman/plugins-sdk/dist/development";
import type {PullRequestReviewResponse} from "../types";
import {RepoUrlParameter} from "../pack";
import {assert} from "chai";
import {describe} from "mocha";
import {executeFormulaFromPackDef} from "@codahq/packs-sdk/dist/development";
import {executeMetadataFormula} from "@codahq/packs-sdk/dist/development";
import {executeSyncFormulaFromPackDef} from "@codahq/packs-sdk/dist/development";
import {executeFormulaFromPackDef} from "@superhuman/plugins-sdk/dist/development";
import {executeMetadataFormula} from "@superhuman/plugins-sdk/dist/development";
import {executeSyncFormulaFromPackDef} from "@superhuman/plugins-sdk/dist/development";
import {it} from "mocha";
import {newJsonFetchResponse} from "@codahq/packs-sdk/dist/development";
import {newMockExecutionContext} from "@codahq/packs-sdk/dist/development";
import {newMockSyncExecutionContext} from "@codahq/packs-sdk/dist/development";
import {newJsonFetchResponse} from "@superhuman/plugins-sdk/dist/development";
import {newMockExecutionContext} from "@superhuman/plugins-sdk/dist/development";
import {newMockSyncExecutionContext} from "@superhuman/plugins-sdk/dist/development";
import {pack} from "../pack";
import * as sinon from "sinon";
import {willBeRejectedWith} from "../../../lib/test_utils";
Expand Down Expand Up @@ -291,6 +291,7 @@ describe("Github pack", () => {

// The metadata formula should fetch our fake repos but filter
// them to only those that match the search query.
assert(Array.isArray(results));
assert.equal(results.length, 1);
assert.deepEqual(results[0], {
value: "https://repo-2-url",
Expand Down
2 changes: 1 addition & 1 deletion examples/google-tables/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {TablesDateTime} from "./types";
import type {TablesFile} from "./types";
import type {TablesLocation} from "./types";
import type {TablesTimestamp} from "./types";
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import {getTableUrl} from "./helpers";

const DriveOpenUrl = "https://drive.google.com/open";
Expand Down
2 changes: 1 addition & 1 deletion examples/google-tables/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {CodaRow} from "./types";
import type {Column} from "./types";
import type {Row} from "./types";
import type {Table} from "./types";
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import {getConverter} from "./convert";

const BaseUrl = "https://area120tables.googleapis.com/v1alpha1";
Expand Down
2 changes: 1 addition & 1 deletion examples/google-tables/pack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {CodaRow} from "./types";
import type {RowsContinuation} from "./types";
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import {formatRowForApi} from "./helpers";
import {formatRowForSchema} from "./helpers";
import {getPropertySchema} from "./helpers";
Expand Down
2 changes: 1 addition & 1 deletion examples/google-tables/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type * as coda from "@codahq/packs-sdk";
import type * as coda from "@superhuman/plugins-sdk";

// Google Tables API types.

Expand Down
2 changes: 1 addition & 1 deletion examples/template/pack.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";

export const pack = coda.newPack();
2 changes: 1 addition & 1 deletion examples/trigonometry/pack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";

export const pack = coda.newPack();

Expand Down
2 changes: 1 addition & 1 deletion examples/trigonometry/test/trigonometry_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {assert} from "chai";
import {describe} from "mocha";
import {executeFormulaFromPackDef} from "@codahq/packs-sdk/dist/development";
import {executeFormulaFromPackDef} from "@superhuman/plugins-sdk/dist/development";
import {it} from "mocha";
import {pack} from "../pack";

Expand Down
2 changes: 1 addition & 1 deletion examples/vonage/pack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as coda from "@codahq/packs-sdk";
import * as coda from "@superhuman/plugins-sdk";
import * as credentials from "./credentials";
import * as rs from "jsrsasign";

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@codahq/packs-examples",
"name": "@superhuman/plugins-examples",
"version": "0.0.1",
"description": "Examples of Coda (coda.io) packs.",
"main": "index.js",
Expand All @@ -22,10 +22,10 @@
"homepage": "https://github.com/coda/packs-examples#readme",
"engines": {
"npm": ">=9",
"node": ">=18"
"node": ">=22.0.0"
},
"dependencies": {
"@codahq/packs-sdk": "^1.9.1",
"@superhuman/plugins-sdk": "^1.18.4",
"content-disposition": "0.5.4",
"form-data": "4.0.1",
"jsrsasign": "11.1.0",
Expand Down
Loading
Loading