Skip to content

Commit

Permalink
use Lead tag as priority
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Feb 2, 2024
1 parent ca26d93 commit 89b736a
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 53 deletions.
4 changes: 2 additions & 2 deletions STATISTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

| SDK Name | Lines of Code |
| -------- | ------------- |
| typescript | 11491 |
| **Total** | 11491 |
| typescript | 11497 |
| **Total** | 11497 |
2 changes: 1 addition & 1 deletion konfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ readmeHeader:
image: header.png
url: https://www.getbellhops.com
tagPriority:
- Quotes
- Lead
generators:
java:
version: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion typescript/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b531d92b-2676-4e73-87f0-9537750df941
3743a8f8-300f-4877-a068-de466009f5d0
96 changes: 51 additions & 45 deletions typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Bellhop's Partner API
- [Installation](#installation)
- [Getting Started](#getting-started)
- [Reference](#reference)
* [`bellhop.authorization.createAuthorize`](#bellhopauthorizationcreateauthorize)
* [`bellhop.lead.create`](#bellhopleadcreate)
* [`bellhop.lead.delete`](#bellhopleaddelete)
* [`bellhop.lead.get`](#bellhopleadget)
* [`bellhop.lead.list`](#bellhopleadlist)
* [`bellhop.lead.update`](#bellhopleadupdate)
* [`bellhop.authorization.createAuthorize`](#bellhopauthorizationcreateauthorize)
* [`bellhop.location.create`](#bellhoplocationcreate)
* [`bellhop.order.create`](#bellhopordercreate)
* [`bellhop.postalCode.listServiceability`](#bellhoppostalcodelistserviceability)
Expand Down Expand Up @@ -88,57 +88,25 @@ const bellhop = new Bellhop({
clientSecret: "CLIENT_SECRET",
});

const createAuthorizeResponse = await bellhop.authorization.createAuthorize({
useCache: true,
client_id: "client_id_example",
client_secret: "client_secret_example",
audience: "audience_example",
const createResponse = await bellhop.lead.create({
first_name: "first_name_example",
last_name: "last_name_example",
lead_type: "string_example",
lead_record_type: "string_example",
origin_postal_code: "85001",
origin_state: "AZ",
destination_postal_code: "85001",
destination_state: "AZ",
load_date: "2021-01-01",
close_date: "2021-01-01",
});

console.log(createAuthorizeResponse);
console.log(createResponse);
```

## Reference<a id="reference"></a>


### `bellhop.authorization.createAuthorize`<a id="bellhopauthorizationcreateauthorize"></a>

Get Auth Token

#### 🛠️ Usage<a id="🛠️-usage"></a>

```typescript
const createAuthorizeResponse = await bellhop.authorization.createAuthorize({
useCache: true,
client_id: "client_id_example",
client_secret: "client_secret_example",
audience: "audience_example",
});
```

#### ⚙️ Parameters<a id="⚙️-parameters"></a>

##### client_id: `string`<a id="client_id-string"></a>

##### client_secret: `string`<a id="client_secret-string"></a>

##### audience: `string`<a id="audience-string"></a>

##### useCache: `boolean`<a id="usecache-boolean"></a>

#### 🔄 Return<a id="🔄-return"></a>

[Auth0TokenResponse](./models/auth0-token-response.ts)

#### 🌐 Endpoint<a id="🌐-endpoint"></a>

`/authorize` `POST`

[🔙 **Back to Table of Contents**](#table-of-contents)

---


### `bellhop.lead.create`<a id="bellhopleadcreate"></a>

Create Lead
Expand Down Expand Up @@ -344,6 +312,44 @@ const updateResponse = await bellhop.lead.update({
---


### `bellhop.authorization.createAuthorize`<a id="bellhopauthorizationcreateauthorize"></a>

Get Auth Token

#### 🛠️ Usage<a id="🛠️-usage"></a>

```typescript
const createAuthorizeResponse = await bellhop.authorization.createAuthorize({
useCache: true,
client_id: "client_id_example",
client_secret: "client_secret_example",
audience: "audience_example",
});
```

#### ⚙️ Parameters<a id="⚙️-parameters"></a>

##### client_id: `string`<a id="client_id-string"></a>

##### client_secret: `string`<a id="client_secret-string"></a>

##### audience: `string`<a id="audience-string"></a>

##### useCache: `boolean`<a id="usecache-boolean"></a>

#### 🔄 Return<a id="🔄-return"></a>

[Auth0TokenResponse](./models/auth0-token-response.ts)

#### 🌐 Endpoint<a id="🌐-endpoint"></a>

`/authorize` `POST`

[🔙 **Back to Table of Contents**](#table-of-contents)

---


### `bellhop.location.create`<a id="bellhoplocationcreate"></a>

Create quoting location object from address Create Quoting Location standardizes input address via USPS and generates geo-location details Google Maps APIs. The location id is a hash of the required fields on the location object.
Expand Down
2 changes: 1 addition & 1 deletion typescript/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ NOTE: This file is auto generated by Konfig (https://konfigthis.com).
*/


export * from './api/authorization-api';
export * from './api/lead-api';
export * from './api/authorization-api';
export * from './api/location-api';
export * from './api/order-api';
export * from './api/postal-code-api';
Expand Down
6 changes: 3 additions & 3 deletions typescript/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ NOTE: This file is auto generated by Konfig (https://konfigthis.com).

import { AxiosRequestConfig } from "axios";
import {
AuthorizationApi,
LeadApi,
AuthorizationApi,
LocationApi,
OrderApi,
PostalCodeApi,
Expand All @@ -24,8 +24,8 @@ import { Configuration, ConfigurationParameters } from "./configuration";
import { BellhopCustom } from "./client-custom";

export class Bellhop extends BellhopCustom {
readonly authorization: AuthorizationApi;
readonly lead: LeadApi;
readonly authorization: AuthorizationApi;
readonly location: LocationApi;
readonly order: OrderApi;
readonly postalCode: PostalCodeApi;
Expand All @@ -36,8 +36,8 @@ export class Bellhop extends BellhopCustom {
constructor(configurationParameters: ConfigurationParameters = {}) {
super(configurationParameters);
const configuration = new Configuration(configurationParameters);
this.authorization = new AuthorizationApi(configuration);
this.lead = new LeadApi(configuration);
this.authorization = new AuthorizationApi(configuration);
this.location = new LocationApi(configuration);
this.order = new OrderApi(configuration);
this.postalCode = new PostalCodeApi(configuration);
Expand Down

0 comments on commit 89b736a

Please sign in to comment.