@extrahorizon/javascript-sdk 8.12.0-dev-173-29c2711 → 8.12.0-dev-175-210a7af
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/build/client.d.ts +3 -0
- package/build/index.cjs.js +8 -3
- package/build/index.mjs +8 -3
- package/build/types/client.d.ts +3 -0
- package/build/types/version.d.ts +1 -1
- package/build/version.d.ts +1 -1
- package/package.json +1 -1
package/build/client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ClientParams, ParamsOauth1, ParamsOauth2, ParamsProxy } from './types';
|
|
|
5
5
|
export interface Client<T extends ClientParams> {
|
|
6
6
|
raw: AuthHttpClient;
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated Use `templatesV2` instead.
|
|
8
9
|
* The template service manages templates used to build emails. It can be used to retrieve, create, update or delete templates as well as resolving them.
|
|
9
10
|
* @see https://swagger.extrahorizon.com/listing/?service=templates-service&redirectToVersion=1
|
|
10
11
|
*/
|
|
@@ -55,11 +56,13 @@ export interface Client<T extends ClientParams> {
|
|
|
55
56
|
*/
|
|
56
57
|
localizations: ReturnType<typeof localizationsService>;
|
|
57
58
|
/**
|
|
59
|
+
* @deprecated Use the `data` service with a custom schema instead.
|
|
58
60
|
* Storage service of profiles. A profile is a separate object on its own, comprising medical information like medication and medical history, as well as technical information, like what phone a user is using.
|
|
59
61
|
* @see https://swagger.extrahorizon.com/listing/?service=profiles-service&redirectToVersion=1
|
|
60
62
|
*/
|
|
61
63
|
profiles: ReturnType<typeof profilesService>;
|
|
62
64
|
/**
|
|
65
|
+
* @deprecated Use `notificationsV2` instead.
|
|
63
66
|
* A service that handles push notifications.
|
|
64
67
|
* @see https://swagger.extrahorizon.com/listing/?service=notifications-service&redirectToVersion=1
|
|
65
68
|
*/
|
package/build/index.cjs.js
CHANGED
|
@@ -1592,8 +1592,13 @@ async function* findAllIterator(find, options) {
|
|
|
1592
1592
|
return {};
|
|
1593
1593
|
}
|
|
1594
1594
|
async function findAllGeneric(find, options, level = 1) {
|
|
1595
|
-
if (level === 1 && (options === null || options === void 0 ? void 0 : options.rql)
|
|
1596
|
-
|
|
1595
|
+
if (level === 1 && (options === null || options === void 0 ? void 0 : options.rql)) {
|
|
1596
|
+
if (options.rql.includes('limit(')) {
|
|
1597
|
+
throw new Error('Do not pass in limit operator with findAll');
|
|
1598
|
+
}
|
|
1599
|
+
if (options.rql.includes('skipCount(')) {
|
|
1600
|
+
throw new Error('Do not pass in skipCount operator with findAll');
|
|
1601
|
+
}
|
|
1597
1602
|
}
|
|
1598
1603
|
// return async options => {
|
|
1599
1604
|
// Extra check is needed because this function is call recursively with updated RQL
|
|
@@ -5659,7 +5664,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5659
5664
|
};
|
|
5660
5665
|
};
|
|
5661
5666
|
|
|
5662
|
-
const version = '8.12.0-dev-
|
|
5667
|
+
const version = '8.12.0-dev-175-210a7af';
|
|
5663
5668
|
|
|
5664
5669
|
/**
|
|
5665
5670
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -1562,8 +1562,13 @@ async function* findAllIterator(find, options) {
|
|
|
1562
1562
|
return {};
|
|
1563
1563
|
}
|
|
1564
1564
|
async function findAllGeneric(find, options, level = 1) {
|
|
1565
|
-
if (level === 1 && (options === null || options === void 0 ? void 0 : options.rql)
|
|
1566
|
-
|
|
1565
|
+
if (level === 1 && (options === null || options === void 0 ? void 0 : options.rql)) {
|
|
1566
|
+
if (options.rql.includes('limit(')) {
|
|
1567
|
+
throw new Error('Do not pass in limit operator with findAll');
|
|
1568
|
+
}
|
|
1569
|
+
if (options.rql.includes('skipCount(')) {
|
|
1570
|
+
throw new Error('Do not pass in skipCount operator with findAll');
|
|
1571
|
+
}
|
|
1567
1572
|
}
|
|
1568
1573
|
// return async options => {
|
|
1569
1574
|
// Extra check is needed because this function is call recursively with updated RQL
|
|
@@ -5629,7 +5634,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5629
5634
|
};
|
|
5630
5635
|
};
|
|
5631
5636
|
|
|
5632
|
-
const version = '8.12.0-dev-
|
|
5637
|
+
const version = '8.12.0-dev-175-210a7af';
|
|
5633
5638
|
|
|
5634
5639
|
/**
|
|
5635
5640
|
* Create ExtraHorizon client.
|
package/build/types/client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ClientParams, ParamsOauth1, ParamsOauth2, ParamsProxy } from './types';
|
|
|
5
5
|
export interface Client<T extends ClientParams> {
|
|
6
6
|
raw: AuthHttpClient;
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated Use `templatesV2` instead.
|
|
8
9
|
* The template service manages templates used to build emails. It can be used to retrieve, create, update or delete templates as well as resolving them.
|
|
9
10
|
* @see https://swagger.extrahorizon.com/listing/?service=templates-service&redirectToVersion=1
|
|
10
11
|
*/
|
|
@@ -55,11 +56,13 @@ export interface Client<T extends ClientParams> {
|
|
|
55
56
|
*/
|
|
56
57
|
localizations: ReturnType<typeof localizationsService>;
|
|
57
58
|
/**
|
|
59
|
+
* @deprecated Use the `data` service with a custom schema instead.
|
|
58
60
|
* Storage service of profiles. A profile is a separate object on its own, comprising medical information like medication and medical history, as well as technical information, like what phone a user is using.
|
|
59
61
|
* @see https://swagger.extrahorizon.com/listing/?service=profiles-service&redirectToVersion=1
|
|
60
62
|
*/
|
|
61
63
|
profiles: ReturnType<typeof profilesService>;
|
|
62
64
|
/**
|
|
65
|
+
* @deprecated Use `notificationsV2` instead.
|
|
63
66
|
* A service that handles push notifications.
|
|
64
67
|
* @see https://swagger.extrahorizon.com/listing/?service=notifications-service&redirectToVersion=1
|
|
65
68
|
*/
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.12.0-dev-
|
|
1
|
+
export declare const version = "8.12.0-dev-175-210a7af";
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.12.0-dev-
|
|
1
|
+
export declare const version = "8.12.0-dev-175-210a7af";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extrahorizon/javascript-sdk",
|
|
3
|
-
"version": "8.12.0-dev-
|
|
3
|
+
"version": "8.12.0-dev-175-210a7af",
|
|
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",
|