Skip to content

Commit

Permalink
chore(sdk client and sdk): update how to work with graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMunizOdoo committed Oct 20, 2023
1 parent b1c6c99 commit f0f3b72
Show file tree
Hide file tree
Showing 116 changed files with 10 additions and 4,017 deletions.
9 changes: 0 additions & 9 deletions packages/sdk-api-client/__tests__/api/getAddress.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import { getAddress } from '../../src/api';
import { contextMock } from '../../__mocks__/context.mock';
import { AddressEnum } from '../../src';

const obj = { getAddress }

describe('[ODOO-API] getAddress', () => {

it('calls endpoint with addressType billing and name home', async () => {
const response = await getAddress(contextMock, { addressType: [AddressEnum.Billing] });

expect(response.data.addresses.addresses).toHaveLength(1);
expect(response.data.addresses.addresses[0].name).toBe("home");

});

Expand Down
35 changes: 0 additions & 35 deletions packages/sdk-api-client/__tests__/api/getCategory.spec.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/sdk-api-client/__tests__/api/getCategoryList.spec.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/sdk-api-client/__tests__/api/getCountry.spec.ts

This file was deleted.

25 changes: 0 additions & 25 deletions packages/sdk-api-client/__tests__/api/getCountryList.spec.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/sdk-api-client/__tests__/api/getMailingContacts.spec.ts

This file was deleted.

25 changes: 0 additions & 25 deletions packages/sdk-api-client/__tests__/api/getMailingLists.spec.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/sdk-api-client/__tests__/api/getOrders.spec.ts

This file was deleted.

33 changes: 0 additions & 33 deletions packages/sdk-api-client/__tests__/api/getProductTemplate.spec.ts

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions packages/sdk-api-client/__tests__/api/productVariant.spec.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/sdk-api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@erpgap/odoo-sdk-api-client",
"version": "0.2.5",
"version": "0.3.1",
"private": false,
"sideEffects": false,
"server": "server/index.js",
Expand Down Expand Up @@ -37,7 +37,8 @@
},
"files": [
"lib/**/*",
"server/**/*"
"server/**/*",
"src/**/*"
],
"publishConfig": {
"access": "public"
Expand Down
20 changes: 0 additions & 20 deletions packages/sdk-api-client/src/api/address/add.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/sdk-api-client/src/api/address/addMutation.ts

This file was deleted.

Loading

0 comments on commit f0f3b72

Please sign in to comment.