1.4.18 • Published 5 days ago

@bapp/api-client v1.4.18

Weekly downloads
-
License
MIT
Repository
-
Last release
5 days ago

@bapp/api-client

Client to consume BAPP API, auto-generated using openapi-typescript-codegen.

Example Usage

import { bappAxiosClient, OpenAPI, CoreService, CompanyService } from '@bapp/api-client';

// Authentication
OpenAPI.TOKEN = "<YOUR_TOKEN>";
// OR
OpenAPI.TOKEN = async () => {
  // Custom logic to get API TOKEN, return empty string if token not available
};

// Usage
CoreService.coreCorList({}); // Get first page of COR codes
CoreService.coreCorList({ page: 2 }); // Get 2nd page of COR codes

CompanyService.companyBankAccountsList({ xCompanyId: 1,  }); // Get first page of company bank accounts
CompanyService.companyBankAccountsRetrieve({ xCompanyId: 1, id: 1 }); // Get company bank account with id 1

// Use the axios instance that the api client uses to make requests
bappAxiosClient.interceptors.response.use(undefined, (error) => {
  console.error(error);
});
1.4.18

5 days ago

1.4.17

26 days ago

1.4.16

1 month ago

1.4.15

1 month ago

1.4.13

1 month ago

1.4.12

1 month ago

1.4.14

1 month ago

1.4.11

2 months ago

1.4.10

2 months ago

1.4.9

2 months ago

1.2.0

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.0.0

3 months ago

1.4.0

2 months ago

1.3.0

3 months ago

1.1.2

3 months ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago