Skip to content

Commit

Permalink
Green Invoice minor fixes (#90)
Browse files Browse the repository at this point in the history
* Some minor fixes
  • Loading branch information
gilgardosh authored Nov 10, 2022
1 parent 208d13f commit 800deaf
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"@accounter-toolkit/green-invoice-graphql": patch
'@accounter-toolkit/green-invoice-graphql': patch
---

dependencies updates:
dependencies updates:

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.12) (from `0.78.10`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.11) (from `0.35.10`, in `dependencies`)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/green-invoice-graphql": patch
'@accounter-toolkit/green-invoice-graphql': patch
---

dependencies updates:
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.33) (from `0.78.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.25) (from `0.35.19`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.101) (from `0.12.95`, in `dependencies`)

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.33) (from `0.78.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.25) (from `0.35.19`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.101) (from `0.12.95`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/green-invoice-graphql": patch
'@accounter-toolkit/green-invoice-graphql': patch
---

dependencies updates:
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.79.3) (from `0.78.33`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.33) (from `0.35.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.108) (from `0.12.101`, in `dependencies`)

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.79.3) (from `0.78.33`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.33) (from `0.35.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.108) (from `0.12.101`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/hashavshevet-mesh": patch
'@accounter-toolkit/hashavshevet-mesh': patch
---

dependencies updates:
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.33) (from `0.78.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.25) (from `0.35.19`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.101) (from `0.12.95`, in `dependencies`)

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.33) (from `0.78.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.25) (from `0.35.19`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.101) (from `0.12.95`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/hashavshevet-mesh": patch
'@accounter-toolkit/hashavshevet-mesh': patch
---

dependencies updates:
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.79.3) (from `0.78.33`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.33) (from `0.35.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.108) (from `0.12.101`, in `dependencies`)

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.79.3) (from `0.78.33`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.33) (from `0.35.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.108) (from `0.12.101`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
"@accounter-toolkit/israeli-vat-scraper": patch
'@accounter-toolkit/israeli-vat-scraper': patch
---

dependencies updates:
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/dotenv/v/16.0.3) (from `16.0.2`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/puppeteer/v/18.2.1) (from `16.2.0`, in `dependencies`)

- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/dotenv/v/16.0.3) (from `16.0.2`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/puppeteer/v/18.2.1) (from `16.2.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/modern-israeli-bank-scrapers": patch
'@accounter-toolkit/modern-israeli-bank-scrapers': patch
---

dependencies updates:
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/inquirer/v/9.1.3) (from `9.1.2`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/puppeteer/v/18.2.1) (from `17.1.3`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/uuid/v/9.0.0) (from `8.3.2`, in `dependencies`)

- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/inquirer/v/9.1.3) (from `9.1.2`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/puppeteer/v/18.2.1) (from `17.1.3`, in `dependencies`)
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/uuid/v/9.0.0) (from `8.3.2`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
"@accounter-toolkit/modern-israeli-bank-scrapers": patch
'@accounter-toolkit/modern-israeli-bank-scrapers': patch
---

dependencies updates:
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/inquirer/v/9.1.4) (from `9.1.3`, in `dependencies`)

- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/inquirer/v/9.1.4) (from `9.1.3`, in `dependencies`)
4 changes: 2 additions & 2 deletions .changeset/@accounter-toolkit_payper-mesh-61-dependencies.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"@accounter-toolkit/payper-mesh": patch
'@accounter-toolkit/payper-mesh': patch
---

dependencies updates:
dependencies updates:

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.12) (from `0.78.10`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.11) (from `0.35.10`, in `dependencies`)
Expand Down
10 changes: 6 additions & 4 deletions .changeset/@accounter-toolkit_payper-mesh-80-dependencies.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/payper-mesh": patch
'@accounter-toolkit/payper-mesh': patch
---

dependencies updates:
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.33) (from `0.78.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.25) (from `0.35.19`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.101) (from `0.12.95`, in `dependencies`)

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.78.33) (from `0.78.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.25) (from `0.35.19`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.101) (from `0.12.95`, in `dependencies`)
10 changes: 6 additions & 4 deletions .changeset/@accounter-toolkit_payper-mesh-89-dependencies.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
"@accounter-toolkit/payper-mesh": patch
'@accounter-toolkit/payper-mesh': patch
---

dependencies updates:
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.79.3) (from `0.78.33`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.33) (from `0.35.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.108) (from `0.12.101`, in `dependencies`)

- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cli/v/0.79.3) (from `0.78.33`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/json-schema/v/0.35.33) (from `0.35.25`, in `dependencies`)
- Updated dependency [`@graphql-mesh/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transform-resolvers-composition/v/0.12.108) (from `0.12.101`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/sharp-moles-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@accounter-toolkit/green-invoice-graphql': patch
---

Minor schema fixes
5 changes: 4 additions & 1 deletion packages/green-invoice-graphql/.meshrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ sources:
field: getExpense
path: /expenses/{args.id}
method: GET
requestSchema: ./src/json-schemas/greenInvoice.json#/definitions/getExpenseRequest
argTypeMap:
id:
type: string
nullable: false
responseSchema: ./src/json-schemas/greenInvoice.json#/definitions/getExpenseResponse

- type: Query
Expand Down
5 changes: 2 additions & 3 deletions packages/green-invoice-graphql/dev-tests/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { config } from 'dotenv';
import fs from 'fs';
import { lookup } from 'mime-types';

import { init } from '../src';
import { init } from '../src/index.js';

config();

Expand All @@ -12,7 +12,7 @@ const base64Encode = (path: string) => {

const getBase64Prefix = (path: string) => {
const mimeType = lookup(path);
return mimeType ? `data:${lookup(path)};base64,` : '';
return mimeType ? `data:${mimeType};base64,` : '';
};

const testRun = async () => {
Expand All @@ -34,7 +34,6 @@ const testRun = async () => {
/* get expense by id */
const data2 = await app.sdk.getExpense_query({
id: 'dbfb61b2-579c-42d0-b1ba-a3637e20eb6c',
input: { id: 'dbfb61b2-579c-42d0-b1ba-a3637e20eb6c' },
});
console.log(data2);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@
"enum": [20, 305, 320, 330, 400, 405]
},
"number": {
"type": "string",
"type": ["string", "null"],
"description": "Number of the expense"
},
"description": {
Expand Down

0 comments on commit 800deaf

Please sign in to comment.