@extrahorizon/javascript-sdk 8.9.0-dev-136-24be1b9 → 8.9.0-dev-138-3022f93

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 (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/index.cjs.js +89 -89
  3. package/build/index.mjs +90 -90
  4. package/build/types/mockType.d.ts +48 -21
  5. package/build/types/services/auth/oidc/providers/types.d.ts +4 -0
  6. package/build/types/services/events/index.d.ts +1 -2
  7. package/build/types/services/events/types.d.ts +5 -0
  8. package/build/types/services/localizations/index.d.ts +1 -2
  9. package/build/types/services/localizations/types.d.ts +5 -0
  10. package/build/types/services/notifications/index.d.ts +1 -2
  11. package/build/types/services/notifications/types.d.ts +5 -0
  12. package/build/types/services/notificationsV2/index.d.ts +1 -2
  13. package/build/types/services/notificationsV2/types.d.ts +5 -0
  14. package/build/types/services/profiles/index.d.ts +1 -2
  15. package/build/types/services/profiles/types.d.ts +5 -0
  16. package/build/types/services/tasks/functions/types.d.ts +145 -1
  17. package/build/types/services/tasks/schedules/types.d.ts +4 -0
  18. package/build/types/services/tasks/types.d.ts +11 -0
  19. package/build/types/services/templatesV2/index.d.ts +1 -2
  20. package/build/types/services/templatesV2/types.d.ts +5 -0
  21. package/build/types/services/users/index.d.ts +2 -4
  22. package/build/types/services/users/types.d.ts +5 -0
  23. package/build/types/version.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/build/types/services/events/health.d.ts +0 -9
  26. package/build/types/services/localizations/health.d.ts +0 -9
  27. package/build/types/services/notifications/health.d.ts +0 -9
  28. package/build/types/services/notificationsV2/health.d.ts +0 -9
  29. package/build/types/services/profiles/health.d.ts +0 -9
  30. package/build/types/services/templatesV2/health.d.ts +0 -9
  31. package/build/types/services/users/health.d.ts +0 -9
@@ -10,6 +10,7 @@ export declare enum TaskStatus {
10
10
  IN_PROGRESS = "inProgress",
11
11
  COMPLETE = "complete",
12
12
  FAILED = "failed",
13
+ RETRIED = "retried",
13
14
  CANCELED = "canceled"
14
15
  }
15
16
  export interface Task<DataType = any> {
@@ -33,6 +34,16 @@ export interface Task<DataType = any> {
33
34
  createdByApplicationId?: ObjectId;
34
35
  /** The Extra Horizon document id for the user who made the request */
35
36
  createdByUserId?: ObjectId;
37
+ /** Set for tasks in the `retried` status */
38
+ retriedByTaskId?: ObjectId;
39
+ /** Set for tasks that are being retried for other tasks */
40
+ retryForTaskIds?: ObjectId[];
41
+ /** Set for tasks in the `failed` status */
42
+ error?: {
43
+ type: 'runtime' | 'invocation';
44
+ name?: string;
45
+ message: string;
46
+ };
36
47
  }
37
48
  export declare type TaskInput = Pick<Task, 'functionName' | 'data' | 'startTimestamp' | 'priority' | 'tags'>;
38
49
  export interface TasksService {
@@ -1,4 +1,3 @@
1
1
  import { AuthHttpClient } from '../../types';
2
- import health from './health';
3
2
  import { TemplatesV2Service } from './types';
4
- export declare const templatesV2Service: (httpWithAuth: AuthHttpClient) => ReturnType<typeof health> & TemplatesV2Service;
3
+ export declare const templatesV2Service: (httpWithAuth: AuthHttpClient) => TemplatesV2Service;
@@ -142,4 +142,9 @@ export interface TemplatesV2Service {
142
142
  * @throws {ResourceUnknownError}
143
143
  */
144
144
  resolve<InputData = Record<string, any>, Outputs = Record<string, string>>(templateIdOrName: string, requestBody: TemplateV2ResolveIn<InputData>, options?: OptionsBase): Promise<Outputs>;
145
+ /**
146
+ * Perform a health check
147
+ * @returns {boolean} success
148
+ */
149
+ health(): Promise<boolean>;
145
150
  }
@@ -1,13 +1,11 @@
1
- import type { HttpInstance } from '../../types';
1
+ import type { HttpInstance, UsersService } from '../../types';
2
2
  import { ActivationRequestsService } from './activationRequests/types';
3
3
  import { ForgotPasswordRequestsService } from './forgotPasswordRequests/types';
4
4
  import globalRoles from './globalRoles';
5
5
  import groupRoles from './groupRoles';
6
- import health from './health';
7
6
  import { SettingsService } from './settings/types';
8
7
  import { UsersGlobalRolesService, UsersGroupRolesService } from './types';
9
- import users from './users';
10
- export declare const usersService: (httpWithAuth: HttpInstance, http: HttpInstance) => ReturnType<typeof users> & ReturnType<typeof health> & {
8
+ export declare const usersService: (httpWithAuth: HttpInstance, http: HttpInstance) => UsersService & {
11
9
  globalRoles: UsersGlobalRolesService;
12
10
  groupRoles: UsersGroupRolesService;
13
11
  activationRequests: ActivationRequestsService;
@@ -1216,4 +1216,9 @@ export interface UsersService {
1216
1216
  * @returns A list of email templates {@link EmailTemplates}
1217
1217
  */
1218
1218
  setEmailTemplates(templates: Partial<EmailTemplates>): Promise<EmailTemplates>;
1219
+ /**
1220
+ * Perform a health check
1221
+ * @returns {boolean} success
1222
+ */
1223
+ health(): Promise<boolean>;
1219
1224
  }
@@ -1 +1 @@
1
- export declare const version = "8.9.0-dev-136-24be1b9";
1
+ export declare const version = "8.9.0-dev-138-3022f93";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.9.0-dev-136-24be1b9",
3
+ "version": "8.9.0-dev-138-3022f93",
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",
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (client: any, http: HttpInstance) => {
3
- /**
4
- * Perform a health check
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (client: any, http: HttpInstance) => {
3
- /**
4
- * Perform a health check
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (client: any, http: HttpInstance) => {
3
- /**
4
- * Perform a health check
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (client: any, http: HttpInstance) => {
3
- /**
4
- * Perform a health check
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (client: any, httpAuth: HttpInstance) => {
3
- /**
4
- * Perform a health check for profiles service
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (client: any, http: HttpInstance) => {
3
- /**
4
- * Perform a health check
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { HttpInstance } from '../../types';
2
- declare const _default: (userClient: any, http: HttpInstance) => {
3
- /**
4
- * Perform a health check
5
- * @returns {boolean} success
6
- */
7
- health(): Promise<boolean>;
8
- };
9
- export default _default;