Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update examples #4

Merged
merged 5 commits into from
Apr 1, 2024
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
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test
env:
VITE_CLARIFAI_USER_ID: ${{ secrets.VITE_CLARIFAI_USER_ID }}
VITE_CLARIFAI_PAT: ${{ secrets.VITE_CLARIFAI_PAT }}
- name: Build
run: npm run build
19 changes: 19 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check PR title

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

jobs:
lint:
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 2 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ All types of contributions are encouraged and valued. See the [Table of Contents

This project and everyone participating in it is governed by the
[CONTRIBUTING.md Code of Conduct](https://github.com/Clarifai/clarifai-nodejs/blob/main/CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code.
<!-- TODO: Add email -->
<!-- Please report unacceptable behavior to <>. -->
By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

## I Have a Question

Expand Down Expand Up @@ -75,9 +73,7 @@ A good bug report shouldn't leave others needing to chase you up for more inform

#### How Do I Submit a Good Bug Report?

> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public.
<!-- TODO: Add email -->
<!-- Instead sensitive bugs must be sent by email to <>. -->
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to [email protected]


We use GitHub issues to track bugs and errors. If you run into an issue with the project:
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ clarifai-nodejs / [Exports](modules.md)
![Clarifai logo](https://www.clarifai.com/hubfs/Clarifai-logo-dark.svg)

[![npm](https://img.shields.io/npm/v/clarifai-nodejs)](https://www.npmjs.com/package/clarifai-nodejs)
[![Build](https://github.com/Clarifai/clarifai-nodejs/workflows/Run%20tests/badge.svg)](https://github.com/Clarifai/clarifai-nodejs/actions)
[![Build](https://github.com/Clarifai/clarifai-nodejs/actions/workflows/build.yml/badge.svg)](https://github.com/Clarifai/clarifai-nodejs/actions/workflows/build.yml)
[![Discord](https://img.shields.io/discord/1145701543228735582)](https://discord.com/invite/26upV8Y4Nd)

> This library is currently in beta, any improvements & feedback welcome!

Expand Down
40 changes: 20 additions & 20 deletions docs/classes/App.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Lister.constructor

#### Defined in

[client/app.ts:98](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L98)
[client/app.ts:98](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L98)

## Properties

Expand All @@ -88,7 +88,7 @@ Lister.constructor

#### Defined in

[client/app.ts:83](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L83)
[client/app.ts:83](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L83)

## Methods

Expand Down Expand Up @@ -160,7 +160,7 @@ A Dataset object for the specified dataset ID.

#### Defined in

[client/app.ts:420](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L420)
[client/app.ts:420](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L420)

___

Expand Down Expand Up @@ -237,7 +237,7 @@ A Model object for the specified model ID.

#### Defined in

[client/app.ts:462](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L462)
[client/app.ts:462](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L462)

___

Expand Down Expand Up @@ -283,7 +283,7 @@ A Module object for the specified module ID.

#### Defined in

[client/app.ts:501](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L501)
[client/app.ts:501](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L501)

___

Expand Down Expand Up @@ -356,7 +356,7 @@ A Workflow object for the specified workflow config.

#### Defined in

[client/app.ts:537](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L537)
[client/app.ts:537](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L537)

___

Expand Down Expand Up @@ -398,7 +398,7 @@ A Dataset object for the existing dataset ID.

#### Defined in

[client/app.ts:727](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L727)
[client/app.ts:727](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L727)

___

Expand Down Expand Up @@ -436,7 +436,7 @@ await app.deleteDataset({ datasetId: "dataset-id" });

#### Defined in

[client/app.ts:754](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L754)
[client/app.ts:754](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L754)

___

Expand Down Expand Up @@ -474,7 +474,7 @@ await app.deleteModel({ modelId: "modelId" });

#### Defined in

[client/app.ts:777](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L777)
[client/app.ts:777](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L777)

___

Expand Down Expand Up @@ -512,7 +512,7 @@ await app.deleteModule({ moduleId: "moduleId" });

#### Defined in

[client/app.ts:823](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L823)
[client/app.ts:823](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L823)

___

Expand Down Expand Up @@ -550,7 +550,7 @@ await app.deleteWorkflow({ workflowId: "workflowId" });

#### Defined in

[client/app.ts:800](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L800)
[client/app.ts:800](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L800)

___

Expand Down Expand Up @@ -594,7 +594,7 @@ Concepts in the app.

#### Defined in

[client/app.ts:382](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L382)
[client/app.ts:382](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L382)

___

Expand Down Expand Up @@ -643,7 +643,7 @@ Defaults to 16 per page

#### Defined in

[client/app.ts:131](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L131)
[client/app.ts:131](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L131)

___

Expand Down Expand Up @@ -692,7 +692,7 @@ Defaults to 16 per page

#### Defined in

[client/app.ts:337](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L337)
[client/app.ts:337](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L337)

___

Expand Down Expand Up @@ -738,7 +738,7 @@ Defaults to 16 per page

#### Defined in

[client/app.ts:175](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L175)
[client/app.ts:175](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L175)

___

Expand Down Expand Up @@ -788,7 +788,7 @@ Defaults to 16 per page

#### Defined in

[client/app.ts:286](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L286)
[client/app.ts:286](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L286)

___

Expand All @@ -802,7 +802,7 @@ ___

#### Defined in

[client/app.ts:406](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L406)
[client/app.ts:406](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L406)

___

Expand Down Expand Up @@ -852,7 +852,7 @@ Defaults to 16 per page

#### Defined in

[client/app.ts:233](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L233)
[client/app.ts:233](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L233)

___

Expand Down Expand Up @@ -896,7 +896,7 @@ A model object for the specified model ID.

#### Defined in

[client/app.ts:666](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L666)
[client/app.ts:666](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L666)

___

Expand Down Expand Up @@ -937,4 +937,4 @@ A workflow object for the specified workflow ID.

#### Defined in

[client/app.ts:699](https://github.com/Clarifai/clarifai-nodejs/blob/f6de468/src/client/app.ts#L699)
[client/app.ts:699](https://github.com/Clarifai/clarifai-nodejs/blob/a140e93/src/client/app.ts#L699)
Loading
Loading