Skip to content

PIGS-74_Typescript_Workflow_Examples#6

Merged
isadoraPGoNitro merged 22 commits intomainfrom
PIGS-74_Workflow_Examples_TypeScript
Jan 7, 2026
Merged

PIGS-74_Typescript_Workflow_Examples#6
isadoraPGoNitro merged 22 commits intomainfrom
PIGS-74_Workflow_Examples_TypeScript

Conversation

@isadoraPGoNitro
Copy link
Copy Markdown
Contributor

Added complete TypeScript implementation of all Python sample scripts

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive TypeScript implementations of all existing Python sample scripts for the Nitro Platform API, providing feature parity across both language SDKs. The implementation follows clean, object-oriented architecture with OAuth2 authentication, type safety, and modern ES module patterns.

Key Changes:

  • Complete TypeScript SDK implementation with Platform API and Sign API clients
  • All 8 Python sample scripts ported to TypeScript with identical functionality
  • Full project configuration including TypeScript setup, dependencies, and documentation

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
samples/typescript/tsconfig.json TypeScript compiler configuration with ES2022 target and strict mode
samples/typescript/package.json Project dependencies and npm scripts for all sample workflows
samples/typescript/README.md Comprehensive documentation covering setup, usage, and API architecture
samples/typescript/.env.example Environment variable template for API credentials
samples/typescript/.gitignore Git ignore rules for Node.js projects
samples/typescript/src/api/base-client.ts Base OAuth2 client with token management and connection pooling
samples/typescript/src/api/platform-api.ts Platform API client for document operations (conversion, extraction, transformation)
samples/typescript/src/api/sign-api.ts Sign API client for eSignature envelope management
samples/typescript/src/helpers/document-helpers.ts File validation and pattern matching utilities
samples/typescript/src/helpers/sign-helpers.ts Sign workflow orchestration helpers for employee onboarding
samples/typescript/src/scripts/quickstart.ts Authentication and connection testing script
samples/typescript/src/scripts/convert-cli.ts Single document format conversion
samples/typescript/src/scripts/batch-process.ts Batch document conversion with pattern matching
samples/typescript/src/scripts/extract-data.ts Form and table data extraction from PDFs
samples/typescript/src/scripts/smart-redact-pii.ts AI-powered PII detection and redaction
samples/typescript/src/scripts/redact-by-keyword.ts Keyword-based text redaction
samples/typescript/src/scripts/bulk-password-protect.ts Bulk PDF password protection
samples/typescript/src/scripts/prepare-pdf-for-distribution.ts Document preparation workflow (convert, compress, strip metadata)
samples/typescript/src/scripts/employee-policy-onboarding.ts Complete HR onboarding workflow with Sign API
samples/python/README.md Updated Python documentation with detailed testing examples
Files not reviewed (1)
  • samples/typescript/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@conor-mac-aoidh
Copy link
Copy Markdown

Looks good to me. Do we plan to cover the async flows as they are the trickier ones to implement?

@isadoraPGoNitro
Copy link
Copy Markdown
Contributor Author

Looks good to me. Do we plan to cover the async flows as they are the trickier ones to implement?
This repo is meant to contain simple examples of our functionality. For now, it was agreed to implement the same workflows we have in Python.

@isadoraPGoNitro isadoraPGoNitro merged commit 07bab0b into main Jan 7, 2026
2 checks passed
@isadoraPGoNitro isadoraPGoNitro deleted the PIGS-74_Workflow_Examples_TypeScript branch January 7, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants