Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/configs/typescript-fetch-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ generatorName: typescript-fetch
outputDir: samples/client/petstore/typescript-fetch/builds/default
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/typescript-fetch
additionalProperties:
npmVersion: 1.0.0
supportsES6: true
npmName: '@openapitools/typescript-fetch-petstore'
npmRepository: https://skimdb.npmjs.com/registry
snapshot: false
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apis/PetApi.ts
apis/StoreApi.ts
apis/UserApi.ts
apis/index.ts
.gitignore
.npmignore
README.md
docs/Category.md
docs/ModelApiResponse.md
docs/Order.md
Expand All @@ -11,12 +10,19 @@ docs/StoreApi.md
docs/Tag.md
docs/User.md
docs/UserApi.md
index.ts
models/Category.ts
models/ModelApiResponse.ts
models/Order.ts
models/Pet.ts
models/Tag.ts
models/User.ts
models/index.ts
runtime.ts
package.json
src/apis/PetApi.ts
src/apis/StoreApi.ts
src/apis/UserApi.ts
src/apis/index.ts
src/index.ts
src/models/Category.ts
src/models/ModelApiResponse.ts
src/models/Order.ts
src/models/Pet.ts
src/models/Tag.ts
src/models/User.ts
src/models/index.ts
src/runtime.ts
tsconfig.esm.json
tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type
## Example

```typescript
import type { Category } from ''
import type { Category } from '@openapitools/typescript-fetch-petstore'

// TODO: Update the object below with actual values
const example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type
## Example

```typescript
import type { ModelApiResponse } from ''
import type { ModelApiResponse } from '@openapitools/typescript-fetch-petstore'

// TODO: Update the object below with actual values
const example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Name | Type
## Example

```typescript
import type { Order } from ''
import type { Order } from '@openapitools/typescript-fetch-petstore'

// TODO: Update the object below with actual values
const example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Name | Type
## Example

```typescript
import type { Pet } from ''
import type { Pet } from '@openapitools/typescript-fetch-petstore'

// TODO: Update the object below with actual values
const example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Add a new pet to the store
import {
Configuration,
PetApi,
} from '';
import type { AddPetRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { AddPetRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down Expand Up @@ -96,11 +96,11 @@ Deletes a pet
import {
Configuration,
PetApi,
} from '';
import type { DeletePetRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { DeletePetRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down Expand Up @@ -170,11 +170,11 @@ Multiple status values can be provided with comma separated strings
import {
Configuration,
PetApi,
} from '';
import type { FindPetsByStatusRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { FindPetsByStatusRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down Expand Up @@ -242,11 +242,11 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
import {
Configuration,
PetApi,
} from '';
import type { FindPetsByTagsRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { FindPetsByTagsRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down Expand Up @@ -314,11 +314,11 @@ Returns a single pet
import {
Configuration,
PetApi,
} from '';
import type { GetPetByIdRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { GetPetByIdRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure API key authorization: api_key
apiKey: "YOUR API KEY",
Expand Down Expand Up @@ -385,11 +385,11 @@ Update an existing pet
import {
Configuration,
PetApi,
} from '';
import type { UpdatePetRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { UpdatePetRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down Expand Up @@ -456,11 +456,11 @@ Updates a pet in the store with form data
import {
Configuration,
PetApi,
} from '';
import type { UpdatePetWithFormRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { UpdatePetWithFormRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down Expand Up @@ -531,11 +531,11 @@ uploads an image
import {
Configuration,
PetApi,
} from '';
import type { UploadFileRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { UploadFileRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure OAuth2 access token for authorization: petstore_auth implicit
accessToken: "YOUR ACCESS TOKEN",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
import {
Configuration,
StoreApi,
} from '';
import type { DeleteOrderRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { DeleteOrderRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const api = new StoreApi();

const body = {
Expand Down Expand Up @@ -93,11 +93,11 @@ Returns a map of status codes to quantities
import {
Configuration,
StoreApi,
} from '';
import type { GetInventoryRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { GetInventoryRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const config = new Configuration({
// To configure API key authorization: api_key
apiKey: "YOUR API KEY",
Expand Down Expand Up @@ -156,11 +156,11 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
import {
Configuration,
StoreApi,
} from '';
import type { GetOrderByIdRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { GetOrderByIdRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const api = new StoreApi();

const body = {
Expand Down Expand Up @@ -223,11 +223,11 @@ Place an order for a pet
import {
Configuration,
StoreApi,
} from '';
import type { PlaceOrderRequest } from '';
} from '@openapitools/typescript-fetch-petstore';
import type { PlaceOrderRequest } from '@openapitools/typescript-fetch-petstore';

async function example() {
console.log("🚀 Testing SDK...");
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
const api = new StoreApi();

const body = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type
## Example

```typescript
import type { Tag } from ''
import type { Tag } from '@openapitools/typescript-fetch-petstore'

// TODO: Update the object below with actual values
const example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Name | Type
## Example

```typescript
import type { User } from ''
import type { User } from '@openapitools/typescript-fetch-petstore'

// TODO: Update the object below with actual values
const example = {
Expand Down
Loading
Loading