@accounter/server 0.0.8-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32 → 0.0.8-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/server
2
2
 
3
- ## 0.0.8-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32
3
+ ## 0.0.8-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -763,10 +763,10 @@
763
763
  [`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
764
764
  [`7a898a0`](https://github.com/Urigo/accounter-fullstack/commit/7a898a0ff1ee15420ab2532370a1d2f618cc86ab),
765
765
  [`15ed6f9`](https://github.com/Urigo/accounter-fullstack/commit/15ed6f982a5d288a1159ccd069fca14b35801a18)]:
766
- - @accounter/green-invoice-graphql@0.8.2-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32
767
- - @accounter/pcn874-generator@0.6.3-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32
768
- - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32
769
- - @accounter/shaam6111-generator@0.1.4-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32
766
+ - @accounter/green-invoice-graphql@0.8.2-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
767
+ - @accounter/pcn874-generator@0.6.3-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
768
+ - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
769
+ - @accounter/shaam6111-generator@0.1.4-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
770
770
 
771
771
  ## 0.0.7
772
772
 
@@ -4,8 +4,8 @@ import type { GetMeshOptions } from '@graphql-mesh/runtime';
4
4
  import type { YamlConfig } from '@graphql-mesh/types';
5
5
  import { MeshHTTPHandler } from '@graphql-mesh/http';
6
6
  import { type ExecuteMeshFn, type SubscribeMeshFn, type MeshContext as BaseMeshContext, type MeshInstance } from '@graphql-mesh/runtime';
7
- import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
8
7
  import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
8
+ import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
9
9
  export type Maybe<T> = T | null;
10
10
  export type InputMaybe<T> = Maybe<T>;
11
11
  export type Exact<T extends {
@@ -36,10 +36,10 @@ LEFT JOIN accounter_schema.charges c ON t.charge_id = c.id
36
36
  LEFT JOIN LATERAL (
37
37
  SELECT er.usd, er.eur, er.gbp, er.cad, er.jpy, er.aud, er.sek
38
38
  FROM accounter_schema.exchange_rates er
39
- WHERE er.exchange_date <= t.debit_date
39
+ WHERE er.exchange_date <= COALESCE(t.debit_date_override, t.debit_timestamp, t.debit_date)
40
40
  ORDER BY er.exchange_date DESC
41
41
  LIMIT 1
42
- ) lr ON t.currency = 'ILS' OR t.currency = 'EUR' OR t.currency ='GBP' OR t.currency = 'CAD' OR t.currency = 'JPY' OR t.currency = 'AUD' OR t.currency = 'SEK'
42
+ ) lr ON TRUE
43
43
  LEFT JOIN LATERAL (
44
44
  SELECT cer.value
45
45
  FROM accounter_schema.crypto_exchange_rates cer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accounter/server",
3
- "version": "0.0.8-alpha-20251113114845-481b88d75c18b91e3008364ee9e24c69e7849b32",
3
+ "version": "0.0.8-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -41,10 +41,10 @@ LEFT JOIN accounter_schema.charges c ON t.charge_id = c.id
41
41
  LEFT JOIN LATERAL (
42
42
  SELECT er.usd, er.eur, er.gbp, er.cad, er.jpy, er.aud, er.sek
43
43
  FROM accounter_schema.exchange_rates er
44
- WHERE er.exchange_date <= t.debit_date
44
+ WHERE er.exchange_date <= COALESCE(t.debit_date_override, t.debit_timestamp, t.debit_date)
45
45
  ORDER BY er.exchange_date DESC
46
46
  LIMIT 1
47
- ) lr ON t.currency = 'ILS' OR t.currency = 'EUR' OR t.currency ='GBP' OR t.currency = 'CAD' OR t.currency = 'JPY' OR t.currency = 'AUD' OR t.currency = 'SEK'
47
+ ) lr ON TRUE
48
48
  LEFT JOIN LATERAL (
49
49
  SELECT cer.value
50
50
  FROM accounter_schema.crypto_exchange_rates cer