diff --git a/.manifest.json b/.manifest.json index d902cb3..c995251 100644 --- a/.manifest.json +++ b/.manifest.json @@ -1,6 +1,6 @@ { "liblabVersion": "1.1.41", - "date": "2024-03-22T01:26:44.451Z", + "date": "2024-03-22T13:04:28.295Z", "config": { "authentication": { "access": { @@ -12,7 +12,7 @@ "inputFileName": "/tmp/resources/spec/open-api-spec.json", "environmentVariables": [], "fileOutput": "/tmp", - "tempDir": "/tmp/liblab-codegen-1.1.41-5yIktV", + "tempDir": "/tmp/liblab-codegen-1.1.41-RUQ6PG", "inferServiceNames": false, "httpLibrary": { "name": "axios", diff --git a/README.md b/README.md index 43e9a69..920908a 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ import { Petstoresdk } from '@dworg/dwjs'; const sdk = new Petstoresdk({ accessToken: process.env.PETSTORESDK_ACCESS_TOKEN }); (async () => { - const input = {"id":-68604335,"name":"name","tag":"tag"}; + const input = {"id":-67521967,"name":"name","tag":"tag"}; const result = await sdk.pets .createPets(input); console.log(result); @@ -155,7 +155,7 @@ const sdk = new Petstoresdk({ accessToken: process.env.PETSTORESDK_ACCESS_TOKEN (async () => { const result = await sdk.pets - .listPets({ limit: -13360770 }); + .listPets({ limit: -47508293 }); console.log(result); })(); diff --git a/package-lock.json b/package-lock.json index 8d47b18..60a58b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2036,9 +2036,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001599", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001599.tgz", - "integrity": "sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==", + "version": "1.0.30001600", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001600.tgz", + "integrity": "sha512-+2S9/2JFhYmYaDpZvo0lKkfvuKIglrx68MwOBqMGHhQsNkLjB5xtc/TGoEPs+MxjSyN/72qer2g97nzR641mOQ==", "dev": true, "funding": [ { @@ -2395,9 +2395,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.714", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.714.tgz", - "integrity": "sha512-OfnVHt+nMRH9Ua5koH/2gKlCAXbG+u1yXwLKyBVqNboBV34ZTwb846RUe8K5mtE1uhz0BXoMarZ13JCQr+sBtQ==", + "version": "1.4.715", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.715.tgz", + "integrity": "sha512-XzWNH4ZSa9BwVUQSDorPWAUQ5WGuYz7zJUNpNif40zFCiCl20t8zgylmreNmn26h5kiyw2lg7RfTmeMBsDklqg==", "dev": true }, "node_modules/emittery": { diff --git a/src/services/README.md b/src/services/README.md index 6088d70..e8a91d7 100644 --- a/src/services/README.md +++ b/src/services/README.md @@ -42,7 +42,7 @@ import { Petstoresdk } from '@dworg/dwjs'; const sdk = new Petstoresdk({ accessToken: process.env.PETSTORESDK_ACCESS_TOKEN }); (async () => { - const input = {"id":-68604335,"name":"name","tag":"tag"}; + const input = {"id":-67521967,"name":"name","tag":"tag"}; const result = await sdk.pets .createPets(input); console.log(result); @@ -79,7 +79,7 @@ const sdk = new Petstoresdk({ accessToken: process.env.PETSTORESDK_ACCESS_TOKEN (async () => { const result = await sdk.pets - .listPets({ limit: -13360770 }); + .listPets({ limit: -47508293 }); console.log(result); })(); diff --git a/test/services/pets/Pets.test.ts b/test/services/pets/Pets.test.ts index a8d2f9e..cc54b74 100644 --- a/test/services/pets/Pets.test.ts +++ b/test/services/pets/Pets.test.ts @@ -22,9 +22,9 @@ describe('test Pets', () => { describe('test listPets', () => { test('test api call', () => { const scope = nock('http://petstore.swagger.io/v1') - .get('/pets?limit=3') + .get('/pets?limit=9') .reply(200, { data: {} }); - return sdk.pets.listPets({ limit: 3 }).then((r: any) => expect(r.data).toEqual({})); + return sdk.pets.listPets({ limit: 9 }).then((r: any) => expect(r.data).toEqual({})); }); }); @@ -38,23 +38,23 @@ describe('test Pets', () => { describe('test showPetById', () => { test('test api call', () => { const scope = nock('http://petstore.swagger.io/v1') - .get('/pets/cumque') + .get('/pets/labore') .reply(200, { data: {} }); - return sdk.pets.showPetById('cumque').then((r: any) => expect(r.data).toEqual({})); + return sdk.pets.showPetById('labore').then((r: any) => expect(r.data).toEqual({})); }); test('test will throw error if required fields missing', () => { const scope = nock('http://petstore.swagger.io/v1') - .get('/pets/ipsa') + .get('/pets/voluptate') .reply(200, { data: {} }); return expect(async () => await sdk.pets.showPetById()).rejects.toThrow(); }); test('test will throw error on a non-200 response', () => { const scope = nock('http://petstore.swagger.io/v1') - .get('/pets/necessitatibus') + .get('/pets/quam') .reply(404, { data: {} }); - return expect(async () => await sdk.pets.showPetById('necessitatibus')).rejects.toThrow(); + return expect(async () => await sdk.pets.showPetById('quam')).rejects.toThrow(); }); }); });