Skip to content

Commit 7c030de

Browse files
committed
test with supportES6 set to true
1 parent d99a8c9 commit 7c030de

11 files changed

Lines changed: 91 additions & 79 deletions

File tree

bin/configs/typescript-fetch-default.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ generatorName: typescript-fetch
22
outputDir: samples/client/petstore/typescript-fetch/builds/default
33
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
44
templateDir: modules/openapi-generator/src/main/resources/typescript-fetch
5+
additionalProperties:
6+
npmVersion: 1.0.0
7+
supportsES6: true
8+
npmName: '@openapitools/typescript-fetch-petstore'
9+
npmRepository: https://skimdb.npmjs.com/registry
10+
snapshot: false
Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
apis/PetApi.ts
2-
apis/StoreApi.ts
3-
apis/UserApi.ts
4-
apis/index.ts
1+
.gitignore
2+
.npmignore
3+
README.md
54
docs/Category.md
65
docs/ModelApiResponse.md
76
docs/Order.md
@@ -11,12 +10,19 @@ docs/StoreApi.md
1110
docs/Tag.md
1211
docs/User.md
1312
docs/UserApi.md
14-
index.ts
15-
models/Category.ts
16-
models/ModelApiResponse.ts
17-
models/Order.ts
18-
models/Pet.ts
19-
models/Tag.ts
20-
models/User.ts
21-
models/index.ts
22-
runtime.ts
13+
package.json
14+
src/apis/PetApi.ts
15+
src/apis/StoreApi.ts
16+
src/apis/UserApi.ts
17+
src/apis/index.ts
18+
src/index.ts
19+
src/models/Category.ts
20+
src/models/ModelApiResponse.ts
21+
src/models/Order.ts
22+
src/models/Pet.ts
23+
src/models/Tag.ts
24+
src/models/User.ts
25+
src/models/index.ts
26+
src/runtime.ts
27+
tsconfig.esm.json
28+
tsconfig.json

samples/client/petstore/typescript-fetch/builds/default/docs/Category.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type
1313
## Example
1414

1515
```typescript
16-
import type { Category } from ''
16+
import type { Category } from '@openapitools/typescript-fetch-petstore'
1717

1818
// TODO: Update the object below with actual values
1919
const example = {

samples/client/petstore/typescript-fetch/builds/default/docs/ModelApiResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type
1414
## Example
1515

1616
```typescript
17-
import type { ModelApiResponse } from ''
17+
import type { ModelApiResponse } from '@openapitools/typescript-fetch-petstore'
1818

1919
// TODO: Update the object below with actual values
2020
const example = {

samples/client/petstore/typescript-fetch/builds/default/docs/Order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type
1717
## Example
1818

1919
```typescript
20-
import type { Order } from ''
20+
import type { Order } from '@openapitools/typescript-fetch-petstore'
2121

2222
// TODO: Update the object below with actual values
2323
const example = {

samples/client/petstore/typescript-fetch/builds/default/docs/Pet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type
1717
## Example
1818

1919
```typescript
20-
import type { Pet } from ''
20+
import type { Pet } from '@openapitools/typescript-fetch-petstore'
2121

2222
// TODO: Update the object below with actual values
2323
const example = {

samples/client/petstore/typescript-fetch/builds/default/docs/PetApi.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ Add a new pet to the store
2727
import {
2828
Configuration,
2929
PetApi,
30-
} from '';
31-
import type { AddPetRequest } from '';
30+
} from '@openapitools/typescript-fetch-petstore';
31+
import type { AddPetRequest } from '@openapitools/typescript-fetch-petstore';
3232

3333
async function example() {
34-
console.log("🚀 Testing SDK...");
34+
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
3535
const config = new Configuration({
3636
// To configure OAuth2 access token for authorization: petstore_auth implicit
3737
accessToken: "YOUR ACCESS TOKEN",
@@ -96,11 +96,11 @@ Deletes a pet
9696
import {
9797
Configuration,
9898
PetApi,
99-
} from '';
100-
import type { DeletePetRequest } from '';
99+
} from '@openapitools/typescript-fetch-petstore';
100+
import type { DeletePetRequest } from '@openapitools/typescript-fetch-petstore';
101101

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

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

248248
async function example() {
249-
console.log("🚀 Testing SDK...");
249+
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
250250
const config = new Configuration({
251251
// To configure OAuth2 access token for authorization: petstore_auth implicit
252252
accessToken: "YOUR ACCESS TOKEN",
@@ -314,11 +314,11 @@ Returns a single pet
314314
import {
315315
Configuration,
316316
PetApi,
317-
} from '';
318-
import type { GetPetByIdRequest } from '';
317+
} from '@openapitools/typescript-fetch-petstore';
318+
import type { GetPetByIdRequest } from '@openapitools/typescript-fetch-petstore';
319319

320320
async function example() {
321-
console.log("🚀 Testing SDK...");
321+
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
322322
const config = new Configuration({
323323
// To configure API key authorization: api_key
324324
apiKey: "YOUR API KEY",
@@ -385,11 +385,11 @@ Update an existing pet
385385
import {
386386
Configuration,
387387
PetApi,
388-
} from '';
389-
import type { UpdatePetRequest } from '';
388+
} from '@openapitools/typescript-fetch-petstore';
389+
import type { UpdatePetRequest } from '@openapitools/typescript-fetch-petstore';
390390

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

462462
async function example() {
463-
console.log("🚀 Testing SDK...");
463+
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
464464
const config = new Configuration({
465465
// To configure OAuth2 access token for authorization: petstore_auth implicit
466466
accessToken: "YOUR ACCESS TOKEN",
@@ -531,11 +531,11 @@ uploads an image
531531
import {
532532
Configuration,
533533
PetApi,
534-
} from '';
535-
import type { UploadFileRequest } from '';
534+
} from '@openapitools/typescript-fetch-petstore';
535+
import type { UploadFileRequest } from '@openapitools/typescript-fetch-petstore';
536536

537537
async function example() {
538-
console.log("🚀 Testing SDK...");
538+
console.log("🚀 Testing @openapitools/typescript-fetch-petstore SDK...");
539539
const config = new Configuration({
540540
// To configure OAuth2 access token for authorization: petstore_auth implicit
541541
accessToken: "YOUR ACCESS TOKEN",

samples/client/petstore/typescript-fetch/builds/default/docs/StoreApi.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
2525
import {
2626
Configuration,
2727
StoreApi,
28-
} from '';
29-
import type { DeleteOrderRequest } from '';
28+
} from '@openapitools/typescript-fetch-petstore';
29+
import type { DeleteOrderRequest } from '@openapitools/typescript-fetch-petstore';
3030

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

3535
const body = {
@@ -93,11 +93,11 @@ Returns a map of status codes to quantities
9393
import {
9494
Configuration,
9595
StoreApi,
96-
} from '';
97-
import type { GetInventoryRequest } from '';
96+
} from '@openapitools/typescript-fetch-petstore';
97+
import type { GetInventoryRequest } from '@openapitools/typescript-fetch-petstore';
9898

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

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

166166
const body = {
@@ -223,11 +223,11 @@ Place an order for a pet
223223
import {
224224
Configuration,
225225
StoreApi,
226-
} from '';
227-
import type { PlaceOrderRequest } from '';
226+
} from '@openapitools/typescript-fetch-petstore';
227+
import type { PlaceOrderRequest } from '@openapitools/typescript-fetch-petstore';
228228

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

233233
const body = {

samples/client/petstore/typescript-fetch/builds/default/docs/Tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type
1313
## Example
1414

1515
```typescript
16-
import type { Tag } from ''
16+
import type { Tag } from '@openapitools/typescript-fetch-petstore'
1717

1818
// TODO: Update the object below with actual values
1919
const example = {

samples/client/petstore/typescript-fetch/builds/default/docs/User.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Name | Type
1919
## Example
2020

2121
```typescript
22-
import type { User } from ''
22+
import type { User } from '@openapitools/typescript-fetch-petstore'
2323

2424
// TODO: Update the object below with actual values
2525
const example = {

0 commit comments

Comments
 (0)