@accounter/server 0.0.8-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260 → 0.0.8-alpha-20251102200443-d7162b8ce1dfc629b8b454df17dcec9ed005a052

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +15 -22
  2. package/dist/green-invoice-graphql/src/mesh-artifacts/index.d.ts +1455 -1202
  3. package/dist/green-invoice-graphql/src/mesh-artifacts/index.js +602 -415
  4. package/dist/green-invoice-graphql/src/mesh-artifacts/index.js.map +1 -1
  5. package/dist/green-invoice-graphql/src/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +12447 -10635
  6. package/dist/green-invoice-graphql/src/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js.map +1 -1
  7. package/dist/green-invoice-graphql/src/mesh-artifacts/sources/GreenInvoice/types.d.ts +780 -643
  8. package/dist/green-invoice-graphql/src/mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js +8 -8
  9. package/dist/green-invoice-graphql/src/mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js.map +1 -1
  10. package/dist/green-invoice-graphql/src/mesh-artifacts/sources/GreenInvoiceNew/types.d.ts +8 -8
  11. package/dist/server/src/modules/app-providers/green-invoice-client.d.ts +28 -24
  12. package/dist/server/src/modules/app-providers/green-invoice-client.js +67 -1
  13. package/dist/server/src/modules/app-providers/green-invoice-client.js.map +1 -1
  14. package/dist/server/src/modules/countries/types.d.ts +251 -0
  15. package/dist/server/src/modules/countries/types.js +252 -0
  16. package/dist/server/src/modules/countries/types.js.map +1 -1
  17. package/dist/server/src/modules/financial-entities/resolvers/businesses.resolver.js +6 -2
  18. package/dist/server/src/modules/financial-entities/resolvers/businesses.resolver.js.map +1 -1
  19. package/dist/server/src/modules/financial-entities/resolvers/clients.resolvers.js +5 -0
  20. package/dist/server/src/modules/financial-entities/resolvers/clients.resolvers.js.map +1 -1
  21. package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.js +1 -1
  22. package/dist/server/src/modules/green-invoice/helpers/contract-to-draft.helper.js.map +1 -1
  23. package/dist/server/src/modules/green-invoice/helpers/green-invoice-clients.helper.d.ts +5 -0
  24. package/dist/server/src/modules/green-invoice/helpers/green-invoice-clients.helper.js +196 -0
  25. package/dist/server/src/modules/green-invoice/helpers/green-invoice-clients.helper.js.map +1 -0
  26. package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.d.ts +26 -23
  27. package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.js +1018 -4
  28. package/dist/server/src/modules/green-invoice/helpers/green-invoice.helper.js.map +1 -1
  29. package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.d.ts +4 -5
  30. package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.js +0 -29
  31. package/dist/server/src/modules/green-invoice/helpers/issue-document.helper.js.map +1 -1
  32. package/dist/server/src/modules/green-invoice/resolvers/green-invoice.resolvers.js +2 -1
  33. package/dist/server/src/modules/green-invoice/resolvers/green-invoice.resolvers.js.map +1 -1
  34. package/package.json +4 -4
  35. package/src/modules/app-providers/green-invoice-client.ts +82 -1
  36. package/src/modules/countries/types.ts +252 -0
  37. package/src/modules/financial-entities/resolvers/businesses.resolver.ts +10 -2
  38. package/src/modules/financial-entities/resolvers/clients.resolvers.ts +11 -0
  39. package/src/modules/green-invoice/helpers/contract-to-draft.helper.ts +1 -1
  40. package/src/modules/green-invoice/helpers/green-invoice-clients.helper.ts +245 -0
  41. package/src/modules/green-invoice/helpers/green-invoice.helper.ts +1068 -43
  42. package/src/modules/green-invoice/helpers/issue-document.helper.ts +3 -41
  43. package/src/modules/green-invoice/resolvers/green-invoice.resolvers.ts +6 -6
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/server
2
2
 
3
- ## 0.0.8-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
3
+ ## 0.0.8-alpha-20251102200443-d7162b8ce1dfc629b8b454df17dcec9ed005a052
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -249,21 +249,6 @@
249
249
  - Updated dependency [`ai@5.0.82` ↗︎](https://www.npmjs.com/package/ai/v/5.0.82) (from `5.0.81`,
250
250
  in `dependencies`)
251
251
 
252
- - [#2647](https://github.com/Urigo/accounter-fullstack/pull/2647)
253
- [`f171a4a`](https://github.com/Urigo/accounter-fullstack/commit/f171a4a83c5f30b0135c72991b4796677223ff39)
254
- Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
255
- - Updated dependency
256
- [`@ai-sdk/anthropic@2.0.40` ↗︎](https://www.npmjs.com/package/@ai-sdk/anthropic/v/2.0.40) (from
257
- `2.0.39`, in `dependencies`)
258
- - Updated dependency [`ai@5.0.86` ↗︎](https://www.npmjs.com/package/ai/v/5.0.86) (from `5.0.82`,
259
- in `dependencies`)
260
-
261
- - [#2654](https://github.com/Urigo/accounter-fullstack/pull/2654)
262
- [`7fef068`](https://github.com/Urigo/accounter-fullstack/commit/7fef0682c7316153ae5ffde42f97ce7284dd4c9a)
263
- Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
264
- - Updated dependency [`graphql@16.12.0` ↗︎](https://www.npmjs.com/package/graphql/v/16.12.0)
265
- (from `16.11.0`, in `dependencies`)
266
-
267
252
  - [#2631](https://github.com/Urigo/accounter-fullstack/pull/2631)
268
253
  [`86c8b3e`](https://github.com/Urigo/accounter-fullstack/commit/86c8b3ebea4e3be0c0e99a108ec1cdad8b39e5d8)
269
254
  Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Database Schema Update**: A new
@@ -550,6 +535,14 @@
550
535
  includes refined cache invalidation logic for contract operations, ensuring data consistency and
551
536
  improved performance.
552
537
 
538
+ - [#2658](https://github.com/Urigo/accounter-fullstack/pull/2658)
539
+ [`b70d33f`](https://github.com/Urigo/accounter-fullstack/commit/b70d33f11d467ddc5a8d6b2869e72653ec08249b)
540
+ Thanks [@gilgardosh](https://github.com/gilgardosh)! - - Updated all type references from
541
+ `definitions` to `$defs` (represented as `_DOLLAR_defs` in TypeScript)
542
+ - Added client management operations (add, update, delete)
543
+ - Introduced country code conversion utilities
544
+ - Moved client helper functions to a dedicated module
545
+
553
546
  - [#2547](https://github.com/Urigo/accounter-fullstack/pull/2547)
554
547
  [`fd9fb24`](https://github.com/Urigo/accounter-fullstack/commit/fd9fb2445cba9a450f8c78f8100160d9b7c5c38a)
555
548
  Thanks [@gilgardosh](https://github.com/gilgardosh)! - 1. **Environment Variable Validation**: The
@@ -570,14 +563,14 @@
570
563
  where the configuration might be `undefined`.
571
564
  - Updated dependencies
572
565
  [[`1ae19c6`](https://github.com/Urigo/accounter-fullstack/commit/1ae19c6f8dabd995120862795284dab6e363dc79),
573
- [`7fef068`](https://github.com/Urigo/accounter-fullstack/commit/7fef0682c7316153ae5ffde42f97ce7284dd4c9a),
574
566
  [`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
575
567
  [`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
576
- [`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6)]:
577
- - @accounter/green-invoice-graphql@0.8.2-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
578
- - @accounter/pcn874-generator@0.6.3-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
579
- - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
580
- - @accounter/shaam6111-generator@0.1.4-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
568
+ [`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
569
+ [`b70d33f`](https://github.com/Urigo/accounter-fullstack/commit/b70d33f11d467ddc5a8d6b2869e72653ec08249b)]:
570
+ - @accounter/green-invoice-graphql@0.8.2-alpha-20251102200443-d7162b8ce1dfc629b8b454df17dcec9ed005a052
571
+ - @accounter/pcn874-generator@0.6.3-alpha-20251102200443-d7162b8ce1dfc629b8b454df17dcec9ed005a052
572
+ - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251102200443-d7162b8ce1dfc629b8b454df17dcec9ed005a052
573
+ - @accounter/shaam6111-generator@0.1.4-alpha-20251102200443-d7162b8ce1dfc629b8b454df17dcec9ed005a052
581
574
 
582
575
  ## 0.0.7
583
576