@extrahorizon/javascript-sdk 8.9.0-dev-143-afddc5e → 8.9.0-dev-145-1e2d040

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
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
  - Completed the `Task` type for changes made in TaskService 1.3.0 a while ago:
14
14
  - Added the `retriedByTaskId`, `retryForTaskIds`, and `error` properties.
15
15
  - Added the `retried` status.
16
+ - Introduced `exh.templatesV2` with methods to manage and resolve V2 templates
17
+ - Added `template_name` to `exh.mails.*` to allow sending mails with a V2 template by name
16
18
 
17
19
  ### Deprecated
18
20
  - `exh.tasks.schedules.delete` is deprecated in favor of `exh.tasks.schedules.remove`
@@ -20,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
22
 
21
23
  ### Fixed
22
24
  - Corrected the types for the `findFirst` (based) methods to indicate they may return `undefined` when no results are found.
25
+ - Corrected the types of the `schema` property in the `exh.templates.*`
26
+ - Corrected the types of `exh.mails.*`
23
27
 
24
28
 
25
29
  ## [8.8.2]
@@ -2055,8 +2055,7 @@ function getUrlInfoFromRequest(url) {
2055
2055
  const { protocol, host, pathname, search } = new URL(url);
2056
2056
  return {
2057
2057
  baseUrl: `${protocol}//${host}${pathname}`,
2058
- searchParameters: qs__namespace.parse(search.startsWith('?') ? search.slice(1) : search, { decodeDotInKeys: false } // Without this oAuth1 signatures will break, opened an issue in qs: https://github.com/ljharb/qs/issues/500
2059
- ),
2058
+ searchParameters: qs__namespace.parse(search.startsWith('?') ? search.slice(1) : search),
2060
2059
  };
2061
2060
  }
2062
2061
  // Util functions
@@ -5613,7 +5612,7 @@ const templatesV2Service = (httpWithAuth) => {
5613
5612
  };
5614
5613
  };
5615
5614
 
5616
- const version = '8.9.0-dev-143-afddc5e';
5615
+ const version = '8.9.0-dev-145-1e2d040';
5617
5616
 
5618
5617
  /**
5619
5618
  * Create ExtraHorizon client.
package/build/index.mjs CHANGED
@@ -2025,8 +2025,7 @@ function getUrlInfoFromRequest(url) {
2025
2025
  const { protocol, host, pathname, search } = new URL(url);
2026
2026
  return {
2027
2027
  baseUrl: `${protocol}//${host}${pathname}`,
2028
- searchParameters: qs.parse(search.startsWith('?') ? search.slice(1) : search, { decodeDotInKeys: false } // Without this oAuth1 signatures will break, opened an issue in qs: https://github.com/ljharb/qs/issues/500
2029
- ),
2028
+ searchParameters: qs.parse(search.startsWith('?') ? search.slice(1) : search),
2030
2029
  };
2031
2030
  }
2032
2031
  // Util functions
@@ -5583,7 +5582,7 @@ const templatesV2Service = (httpWithAuth) => {
5583
5582
  };
5584
5583
  };
5585
5584
 
5586
- const version = '8.9.0-dev-143-afddc5e';
5585
+ const version = '8.9.0-dev-145-1e2d040';
5587
5586
 
5588
5587
  /**
5589
5588
  * Create ExtraHorizon client.
@@ -1 +1 @@
1
- export declare const version = "8.9.0-dev-143-afddc5e";
1
+ export declare const version = "8.9.0-dev-145-1e2d040";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.9.0-dev-143-afddc5e",
3
+ "version": "8.9.0-dev-145-1e2d040",
4
4
  "description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
5
5
  "main": "build/index.cjs.js",
6
6
  "types": "build/types/index.d.ts",