npm package: @peregrinadev/core-mobile
Description: ERROR_UNKNOWN
Latest version: 0.0.9

# my_title

MyTitle - JavaScript client for my_title
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install my_title --save
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing 
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

Finally, switch to the directory you want to use your my_title from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

You should now be able to `require('my_title')` in javascript files from the directory you ran the last 
command above from.

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually 
use this library):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var MyTitle = require('my_title');

var api = new MyTitle.CustomersApi()

var id = 789; // {Number} customer Id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customersGetById(id, callback);

```

## Documentation for API Endpoints

All URIs are relative to *https://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*MyTitle.CustomersApi* | [**customersGetById**](docs/CustomersApi.md#customersGetById) | **GET** /api/Customers/{Id} | Get customer by key             
*MyTitle.DocumentsApi* | [**documentsGet**](docs/DocumentsApi.md#documentsGet) | **GET** /api/Documents/{entity}/{entityId} | pega o último documento da entidade
*MyTitle.DocumentsApi* | [**documentsPost**](docs/DocumentsApi.md#documentsPost) | **POST** /api/Documents/{entity}/{entityId} | adiciona um documento à entidade
*MyTitle.DocumentsApi* | [**documentsQuery**](docs/DocumentsApi.md#documentsQuery) | **POST** /api/Documents/query/{entity}/{entityId} | 
*MyTitle.HealthApi* | [**healthDelete**](docs/HealthApi.md#healthDelete) | **DELETE** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HealthApi* | [**healthGet**](docs/HealthApi.md#healthGet) | **GET** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HealthApi* | [**healthHead**](docs/HealthApi.md#healthHead) | **HEAD** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HealthApi* | [**healthOptions**](docs/HealthApi.md#healthOptions) | **OPTIONS** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HealthApi* | [**healthPatch**](docs/HealthApi.md#healthPatch) | **PATCH** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HealthApi* | [**healthPost**](docs/HealthApi.md#healthPost) | **POST** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HealthApi* | [**healthPut**](docs/HealthApi.md#healthPut) | **PUT** /api/Health | do nothing, just answer OK with NOW
*MyTitle.HistoriesApi* | [**historiesGetHistoriesById**](docs/HistoriesApi.md#historiesGetHistoriesById) | **GET** /api/Histories/{entity}/{entityId} | Get histories by id             
*MyTitle.HistoriesApi* | [**historiesHistoryAdd**](docs/HistoriesApi.md#historiesHistoryAdd) | **POST** /api/Histories/{entity}/{entityId}/itens | creates a new History Item             
*MyTitle.HistoriesApi* | [**historiesHistoryCreate**](docs/HistoriesApi.md#historiesHistoryCreate) | **POST** /api/Histories/{entity}/{entityId} | creates a new History collection             
*MyTitle.PersonsApi* | [**personsGetAuthIdPersonAggregate**](docs/PersonsApi.md#personsGetAuthIdPersonAggregate) | **GET** /api/Persons/{ownerAuthId}/aggregatesAuthId | Never using
*MyTitle.PersonsApi* | [**personsGetPersonAggregate**](docs/PersonsApi.md#personsGetPersonAggregate) | **GET** /api/Persons/{ownerAuthId}/aggregates | Get person Aggregate by owner AuthId
*MyTitle.PersonsApi* | [**personsGetPersonByAuthId**](docs/PersonsApi.md#personsGetPersonByAuthId) | **GET** /api/Persons/auth/{authId} | Get Person by authId
*MyTitle.PersonsApi* | [**personsGetPersonById**](docs/PersonsApi.md#personsGetPersonById) | **GET** /api/Persons/{personId} | Get Person by Id
*MyTitle.PersonsApi* | [**personsPostPerson**](docs/PersonsApi.md#personsPostPerson) | **POST** /api/Persons | crerates a new Person
*MyTitle.PersonsApi* | [**personsPostPersonAggregate**](docs/PersonsApi.md#personsPostPersonAggregate) | **POST** /api/Persons/aggregate | crerates a new PersonAggregate
*MyTitle.ProposalsApi* | [**proposalsGetAllProposalsBySaleId**](docs/ProposalsApi.md#proposalsGetAllProposalsBySaleId) | **GET** /api/Proposals/sale/{saleId} | Get all proposalsby saleId
*MyTitle.ProposalsApi* | [**proposalsPutProposal**](docs/ProposalsApi.md#proposalsPutProposal) | **PUT** /api/Proposals/{proposalId} | Get all proposalsby saleId
*MyTitle.SalesApi* | [**salesDeleteSaleOptionItem**](docs/SalesApi.md#salesDeleteSaleOptionItem) | **DELETE** /api/Sales/{saleId}/option/{saleOptionId}/item/{saleOptionItemId} | Delete OptionItem from SaleOptions
*MyTitle.SalesApi* | [**salesGetAllSales**](docs/SalesApi.md#salesGetAllSales) | **GET** /api/Sales | Get all sales
*MyTitle.SalesApi* | [**salesGetAllSalesByAttendant**](docs/SalesApi.md#salesGetAllSalesByAttendant) | **GET** /api/Sales/attendant/{attendantId} | Get all sales for attendant id
*MyTitle.SalesApi* | [**salesGetAllSalesBySalesman**](docs/SalesApi.md#salesGetAllSalesBySalesman) | **GET** /api/Sales/salesman/{salesmanId} | Get all sales for salesman id
*MyTitle.SalesApi* | [**salesGetAllSalesPanel**](docs/SalesApi.md#salesGetAllSalesPanel) | **GET** /api/Sales/panel | Get all sales
*MyTitle.SalesApi* | [**salesGetById**](docs/SalesApi.md#salesGetById) | **GET** /api/Sales/{id} | Get all sales by id
*MyTitle.SalesApi* | [**salesGetSaleOptions**](docs/SalesApi.md#salesGetSaleOptions) | **GET** /api/Sales/{saleId}/options | Get all salesOptions by saleId
*MyTitle.SalesApi* | [**salesPatchChosenSaleOption**](docs/SalesApi.md#salesPatchChosenSaleOption) | **PATCH** /api/Sales/{saleId}/option/{saleOptionId}/chosen | update chosen SaleOption for Proposal
*MyTitle.SalesApi* | [**salesPatchResetChosenSaleOption**](docs/SalesApi.md#salesPatchResetChosenSaleOption) | **PATCH** /api/Sales/{saleId}/option/reset | update chosen SaleOption for Proposal
*MyTitle.SalesApi* | [**salesPatchSaleOptionItem**](docs/SalesApi.md#salesPatchSaleOptionItem) | **PATCH** /api/Sales/{saleId}/option/{saleOptionId}/item/{saleOptionItemId} | Inative OptionItem from SaleOptions
*MyTitle.SalesApi* | [**salesPatchSaleStatus**](docs/SalesApi.md#salesPatchSaleStatus) | **PATCH** /api/Sales/{saleId}/status/{status} | update
*MyTitle.SalesApi* | [**salesPost**](docs/SalesApi.md#salesPost) | **POST** /api/Sales | crerates a new Sale
*MyTitle.SalesApi* | [**salesPostNewOption**](docs/SalesApi.md#salesPostNewOption) | **POST** /api/Sales/{saleId}/option | crerates a new SaleOption
*MyTitle.SalesApi* | [**salesPostNewOptionItem**](docs/SalesApi.md#salesPostNewOptionItem) | **POST** /api/Sales/{saleId}/option/{optionId} | crerates a new SaleOptionItems
*MyTitle.SalesApi* | [**salesPut**](docs/SalesApi.md#salesPut) | **PUT** /api/Sales/{id} | change the Sale


## Documentation for Models

 - [MyTitle.Customer](docs/Customer.md)
 - [MyTitle.CustomerPhone](docs/CustomerPhone.md)
 - [MyTitle.DocumentsType](docs/DocumentsType.md)
 - [MyTitle.HistoryEntityType](docs/HistoryEntityType.md)
 - [MyTitle.HistoryItem](docs/HistoryItem.md)
 - [MyTitle.HistoryOperation](docs/HistoryOperation.md)
 - [MyTitle.HistoryType](docs/HistoryType.md)
 - [MyTitle.Person](docs/Person.md)
 - [MyTitle.PersonAggregate](docs/PersonAggregate.md)
 - [MyTitle.Proposal](docs/Proposal.md)
 - [MyTitle.ProposalStatus](docs/ProposalStatus.md)
 - [MyTitle.ReturnMessageModel](docs/ReturnMessageModel.md)
 - [MyTitle.Sale](docs/Sale.md)
 - [MyTitle.SaleCardPanelModel](docs/SaleCardPanelModel.md)
 - [MyTitle.SaleDocuments](docs/SaleDocuments.md)
 - [MyTitle.SaleOption](docs/SaleOption.md)
 - [MyTitle.SaleOptionEntity](docs/SaleOptionEntity.md)
 - [MyTitle.SaleOptionItems](docs/SaleOptionItems.md)
 - [MyTitle.SaleStatus](docs/SaleStatus.md)
 - [MyTitle.UsersModel](docs/UsersModel.md)


## Documentation for Authorization

 All endpoints do not require authorization.