0.0.1 • Published 2 months ago

@sftpsync-api/api-client v0.0.1

Weekly downloads
-
License
Unlicense
Repository
github
Last release
2 months ago

@sftpsync-api/api-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install @sftpsync-api/api-client@0.0.1 --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AuthApiauthControllerChangePasswordPOST /auth/change-passwordChange user password
AuthApiauthControllerLoginPOST /auth/loginUser login
AuthApiauthControllerRegisterPOST /auth/registerRegister a new workspace with admin user
AwsApiawsControllerCreateBucketPOST /aws/s3/bucketCreate a new S3 bucket
AwsApiawsControllerCreateSftpServerPOST /aws/sftp/serverCreate a new SFTP server
AwsApiawsControllerDeleteFileDELETE /aws/s3/bucket/{bucketName}/file/{key}Delete a file from an S3 bucket
AwsApiawsControllerDeleteSftpServerDELETE /aws/sftp/server/{serverId}Delete an SFTP server
AwsApiawsControllerDeleteSftpUserDELETE /aws/sftp/server/{serverId}/user/{username}Delete an SFTP user
AwsApiawsControllerGetSftpCredentialsGET /aws/sftp/server/{serverId}/user/{username}/credentialsGet SFTP credentials for a user
AwsApiawsControllerGetSftpServerGET /aws/sftp/server/{serverId}Get SFTP server details
AwsApiawsControllerGetSignedUrlGET /aws/s3/bucket/{bucketName}/file/{key}/urlGet a pre-signed URL for a file
AwsApiawsControllerListBucketsGET /aws/s3/bucketsList all S3 buckets
AwsApiawsControllerListFilesGET /aws/s3/bucket/{bucketName}/filesList files in an S3 bucket
AwsApiawsControllerListSftpServersGET /aws/sftp/serversList all SFTP servers
AwsApiawsControllerListSftpUsersGET /aws/sftp/server/{serverId}/usersList users for an SFTP server
AwsApiawsControllerStartSftpServerPOST /aws/sftp/server/{serverId}/startStart an SFTP server
AwsApiawsControllerStopSftpServerPOST /aws/sftp/server/{serverId}/stopStop an SFTP server
ClientsApiclientsControllerCreatePOST /clientsCreate a new SFTP client
ClientsApiclientsControllerFindAllGET /clientsGet all SFTP clients
ClientsApiclientsControllerFindOneGET /clients/{id}Get an SFTP client by ID
ClientsApiclientsControllerRemoveDELETE /clients/{id}Delete an SFTP client
ClientsApiclientsControllerTestConnectionPOST /clients/{id}/test-connectionTest connection to an SFTP client
ClientsApiclientsControllerUpdatePATCH /clients/{id}Update an SFTP client
FilesApifilesControllerGetFileGET /files/jsonRetrieve a processed JSON file from S3 (protected with user API key)
FilesApifilesControllerProcessFilePOST /files/processProcess a file from S3 (protected with API key)
HealthApihealthControllerCheckGET /healthHealth check endpoint
InvoicesApiinvoicesControllerGetInvoiceGET /invoices/{id}
InvoicesApiinvoicesControllerGetInvoicesGET /invoices
InvoicesApiinvoicesControllerSyncInvoicesPOST /invoices/sync
PipelineRunsApipipelineRunsControllerFindAllGET /pipeline-runsList pipeline runs with pagination
PipelineRunsApipipelineRunsControllerFindAll_0GET /pipeline-runsList pipeline runs with pagination
PipelineRunsApipipelineRunsControllerFindOneGET /pipeline-runs/{id}Get a pipeline run by ID
PipelineRunsApipipelineRunsControllerFindOne_0GET /pipeline-runs/{id}Get a pipeline run by ID
PipelinesApipipelinesControllerCreatePOST /pipelinesCreate a new pipeline
PipelinesApipipelinesControllerFindAllGET /pipelinesGet all pipelines
PipelinesApipipelinesControllerFindOneGET /pipelines/{id}Get a pipeline by ID
PipelinesApipipelinesControllerProcessPipelinePOST /pipelines/{id}/process/{fileId}Process a file through a pipeline
PipelinesApipipelinesControllerRemoveDELETE /pipelines/{id}Delete a pipeline
PipelinesApipipelinesControllerToggleActivePATCH /pipelines/{id}/toggle-activeToggle pipeline active status
PipelinesApipipelinesControllerUpdatePATCH /pipelines/{id}Update a pipeline
SchemasApischemasControllerCreatePOST /schemasCreate a new schema
SchemasApischemasControllerFindAllGET /schemasGet all schemas
SchemasApischemasControllerFindOneGET /schemas/{id}Get a schema by ID
SchemasApischemasControllerRemoveDELETE /schemas/{id}Delete a schema
SchemasApischemasControllerUpdatePATCH /schemas/{id}Update a schema
SchemasApischemasControllerValidateDataPOST /schemas/{id}/validateValidate data against a schema
StripeWebhookApistripeWebhookControllerHandleWebhookPOST /stripe-webhook
SubscriptionPlansApisubscriptionPlansControllerCreatePOST /subscription-plans
SubscriptionPlansApisubscriptionPlansControllerFindAllGET /subscription-plans
SubscriptionPlansApisubscriptionPlansControllerFindOneGET /subscription-plans/{id}
SubscriptionPlansApisubscriptionPlansControllerRemoveDELETE /subscription-plans/{id}
SubscriptionPlansApisubscriptionPlansControllerUpdatePATCH /subscription-plans/{id}
SubscriptionsApisubscriptionsControllerCancelSubscriptionPOST /subscriptions/cancel
SubscriptionsApisubscriptionsControllerCreateCheckoutSessionPOST /subscriptions/checkout
SubscriptionsApisubscriptionsControllerCreateSubscriptionPOST /subscriptions
SubscriptionsApisubscriptionsControllerGetSubscriptionGET /subscriptions
SubscriptionsApisubscriptionsControllerGetUsageStatsGET /subscriptions/usage
SubscriptionsApisubscriptionsControllerUpdateSubscriptionPATCH /subscriptions
UsersApiusersControllerCreatePOST /usersCreate a new user
UsersApiusersControllerFindAllGET /usersGet all users
UsersApiusersControllerFindOneGET /users/{id}Get a user by ID
UsersApiusersControllerRemoveDELETE /users/{id}Delete a user
UsersApiusersControllerUpdatePATCH /users/{id}Update a user
WebhooksApiwebhooksControllerCreatePOST /webhooksCreate a new webhook
WebhooksApiwebhooksControllerFindAllGET /webhooksGet all webhooks
WebhooksApiwebhooksControllerFindOneGET /webhooks/{id}Get a webhook by ID
WebhooksApiwebhooksControllerGetDeliveriesGET /webhooks/deliveriesList webhook deliveries with pagination
WebhooksApiwebhooksControllerReceiveTestPOST /webhooks/receive-testReceive a test webhook payload for internal testing
WebhooksApiwebhooksControllerRemoveDELETE /webhooks/{id}Delete a webhook
WebhooksApiwebhooksControllerTriggerTestPOST /webhooks/trigger-testTrigger a test webhook event
WebhooksApiwebhooksControllerUpdatePATCH /webhooks/{id}Update a webhook
WorkspacesApiworkspacesControllerCreatePOST /workspacesCreate a new workspace
WorkspacesApiworkspacesControllerFindAllGET /workspacesGet all workspaces
WorkspacesApiworkspacesControllerFindOneGET /workspaces/{id}Get a workspace by ID

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer

  • Type: Bearer authentication (JWT)

api-key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

tenant

  • Type: API key
  • API key parameter name: x-tenant
  • Location: HTTP header