Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate (#15)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.279.0

---------

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored May 3, 2024
1 parent c2aded7 commit 1ccf19e
Show file tree
Hide file tree
Showing 22 changed files with 356 additions and 106 deletions.
16 changes: 9 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 4f7e8ab5-4c00-496a-9710-e7c707e4ee78
management:
docChecksum: db7620a252dadc269b483fabc4e1b2a8
docChecksum: 86e4fdfb1f96477372bdcf4a7e5bcd6f
docVersion: "2018-02-08"
speakeasyVersion: 1.277.4
generationVersion: 2.318.3
releaseVersion: 2.1.1
configChecksum: 6c4ac705bcb1cba398d1e9998af76f09
speakeasyVersion: 1.279.0
generationVersion: 2.322.5
releaseVersion: 2.1.2
configChecksum: e6e7be06ec8b8221580c5588118e9339
repoURL: https://github.com/goshippo/shippo-javascript-sdk.git
installationURL: https://github.com/goshippo/shippo-javascript-sdk
published: true
features:
typescript:
constsAndDefaults: 0.1.5
core: 3.9.2
core: 3.9.3
flattening: 2.81.1
globalSecurity: 2.82.9
globalServerURLs: 2.82.4
Expand All @@ -22,7 +22,7 @@ features:
includes: 2.81.1
nameOverrides: 2.81.2
responseFormat: 0.2.3
unions: 2.85.3
unions: 2.85.4
generatedFiles:
- src/sdk/addresses.ts
- src/sdk/batches.ts
Expand Down Expand Up @@ -101,6 +101,7 @@ generatedFiles:
- src/models/components/carrieraccountpaginatedlist.ts
- src/models/components/carrieraccountwithextrainfo.ts
- src/models/components/carrieraccountservicelevel.ts
- src/models/components/fedexconnectexistingownaccountparameters.ts
- src/models/components/upsconnectexistingownaccountparameters.ts
- src/models/components/carriersenum.ts
- src/models/components/carrieraccount.ts
Expand Down Expand Up @@ -318,6 +319,7 @@ generatedFiles:
- docs/models/components/objectinfo.md
- docs/models/components/carrieraccountwithextrainfo.md
- docs/models/components/carrieraccountservicelevel.md
- docs/models/components/fedexconnectexistingownaccountparameters.md
- docs/models/components/upsconnectexistingownaccountparameters.md
- docs/models/components/carriersenum.md
- docs/models/components/carrieraccountparameters.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 2.1.1
version: 2.1.2
additionalDependencies:
dependencies: {}
devDependencies:
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
speakeasyVersion: 1.277.4
speakeasyVersion: 1.279.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:03559e2b1f0bcbf00e8d9b547ba15e9d31188a7d817809eb665a19252e7e1e24
sourceBlobDigest: sha256:3ddc54a4a9327fe7015fdae0076c864083bd517a7bae1a83b89579d940e3469a
sourceRevisionDigest: sha256:f38806bc209c5255ea281460f8ce8a43963a29668f8205b83716e7bb5fe7512f
sourceBlobDigest: sha256:cb202e1a7416ed81062da3d66eafbb199af24a9e47e2c61a8ec0a398f454c726
tags:
- latest
targets:
first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:03559e2b1f0bcbf00e8d9b547ba15e9d31188a7d817809eb665a19252e7e1e24
sourceBlobDigest: sha256:3ddc54a4a9327fe7015fdae0076c864083bd517a7bae1a83b89579d940e3469a
sourceRevisionDigest: sha256:f38806bc209c5255ea281460f8ce8a43963a29668f8205b83716e7bb5fe7512f
sourceBlobDigest: sha256:cb202e1a7416ed81062da3d66eafbb199af24a9e47e2c61a8ec0a398f454c726
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ Based on:
### Generated
- [typescript v2.1.1] .
### Releases
- [NPM v2.1.1] https://www.npmjs.com/package/shippo/v/2.1.1 - .
- [NPM v2.1.1] https://www.npmjs.com/package/shippo/v/2.1.1 - .

## 2024-05-03 16:57:28
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.279.0 (2.322.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v2.1.2] .
### Releases
- [NPM v2.1.2] https://www.npmjs.com/package/shippo/v/2.1.2 - .
15 changes: 15 additions & 0 deletions docs/models/components/fedexconnectexistingownaccountparameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# FedExConnectExistingOwnAccountParameters


## Fields

| Field | Type | Required | Description |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| `firstName` | *string* | :heavy_check_mark: | First name of the account holder |
| `lastName` | *string* | :heavy_check_mark: | Last name of the account holder |
| `phoneNumber` | *string* | :heavy_check_mark: | Phone number of the account holder |
| `fromAddressSt` | *string* | :heavy_check_mark: | Street address of the account holder |
| `fromAddressCity` | *string* | :heavy_check_mark: | City of the account holder |
| `fromAddressState` | *string* | :heavy_check_mark: | State of the account holder |
| `fromAddressZip` | *string* | :heavy_check_mark: | Zip code of the account holder |
| `fromAddressCountryIso2` | *string* | :heavy_check_mark: | Country of the account holder |
8 changes: 4 additions & 4 deletions docs/models/operations/listcarrierparceltemplatesrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `include` | [operations.Include](../../models/operations/include.md) | :heavy_minus_sign: | filter by user or enabled |
| `carrier` | *string* | :heavy_minus_sign: | filter by specific carrier |
| Field | Type | Required | Description | Example |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `include` | [operations.Include](../../models/operations/include.md) | :heavy_minus_sign: | filter by user or enabled | |
| `carrier` | *string* | :heavy_minus_sign: | filter by specific carrier | fedex |
24 changes: 0 additions & 24 deletions docs/sdks/batches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,15 @@ async function run() {
shipment: {
customsDeclaration: "adcfdddf8ec64b84ad22772bce3ea37a",
extra: {
alcohol: {},
billing: {},
cod: {
amount: "5.5",
currency: "USD",
paymentMethod: PaymentMethod.Cash,
},
customerReference: {},
dangerousGoods: {
biologicalMaterial: {},
lithiumBatteries: {},
},
deptNumber: {},
dryIce: {},
insurance: {
amount: "5.5",
currency: "USD",
},
invoiceNumber: {},
poNumber: {},
rmaNumber: {},
},
metadata: "Customer ID 123456",
shipmentDate: "2021-03-22T12:00:00Z",
Expand Down Expand Up @@ -217,27 +205,15 @@ async function run() {
shipment: {
customsDeclaration: "adcfdddf8ec64b84ad22772bce3ea37a",
extra: {
alcohol: {},
billing: {},
cod: {
amount: "5.5",
currency: "USD",
paymentMethod: PaymentMethod.Cash,
},
customerReference: {},
dangerousGoods: {
biologicalMaterial: {},
lithiumBatteries: {},
},
deptNumber: {},
dryIce: {},
insurance: {
amount: "5.5",
currency: "USD",
},
invoiceNumber: {},
poNumber: {},
rmaNumber: {},
},
metadata: "Customer ID 123456",
shipmentDate: "2021-03-22T12:00:00Z",
Expand Down
9 changes: 8 additions & 1 deletion docs/sdks/carrieraccounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ async function run() {
carrier: "fedex",
metadata: "FEDEX Account",
parameters: {
"key": "<value>",
firstName: "Jena",
lastName: "Nienow",
phoneNumber: "<value>",
fromAddressSt: "<value>",
fromAddressCity: "<value>",
fromAddressState: "<value>",
fromAddressZip: "<value>",
fromAddressCountryIso2: "<value>",
},
test: false,
});
Expand Down
14 changes: 7 additions & 7 deletions docs/sdks/carrierparceltemplates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const shippo = new Shippo({

async function run() {
const include = Include.Enabled;
const carrier = "<value>";
const carrier = "fedex";

const result = await shippo.carrierParcelTemplates.list(include, carrier);

Expand All @@ -42,12 +42,12 @@ run();

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `include` | [operations.Include](../../models/operations/include.md) | :heavy_minus_sign: | filter by user or enabled |
| `carrier` | *string* | :heavy_minus_sign: | filter by specific carrier |
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| Parameter | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `include` | [operations.Include](../../models/operations/include.md) | :heavy_minus_sign: | filter by user or enabled | |
| `carrier` | *string* | :heavy_minus_sign: | filter by specific carrier | [object Object] |
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |


### Response
Expand Down
9 changes: 1 addition & 8 deletions docs/sdks/parcels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,7 @@ Creates a new parcel object.

```typescript
import { Shippo } from "shippo";
import {
DistanceUnitEnum,
ParcelInsuranceProvider,
ParcelTemplateDHLeCommerceEnum,
PaymentMethod,
WeightUnitEnum,
} from "shippo/models/components";
import { DistanceUnitEnum, ParcelInsuranceProvider, PaymentMethod, WeightUnitEnum } from "shippo/models/components";

const shippo = new Shippo({
apiKeyHeader: "<YOUR_API_KEY_HERE>",
Expand All @@ -102,7 +96,6 @@ async function run() {
height: "1",
length: "1",
massUnit: WeightUnitEnum.Lb,
template: ParcelTemplateDHLeCommerceEnum.DHLeCIrregular,
weight: "1",
width: "1",
});
Expand Down
Loading

0 comments on commit 1ccf19e

Please sign in to comment.