@fluxo-dev/api-client-base 25.1.2 → 25.1.4

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/index.cjs.js CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  var axios = require('axios');
4
4
  var state = require('@fluxo-dev/state');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var React = require('react');
5
7
 
6
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
9
 
@@ -556,13 +558,9 @@ var FunctionPrototype$1 = Function.prototype;
556
558
  var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
557
559
 
558
560
  var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
559
- // additional protection from minified / mangled / dropped function names
560
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
561
561
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || (DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, 'name').configurable));
562
562
 
563
563
  var functionName = {
564
- EXISTS: EXISTS,
565
- PROPER: PROPER,
566
564
  CONFIGURABLE: CONFIGURABLE
567
565
  };
568
566
 
@@ -1810,9 +1808,7 @@ if (!set || !clear) {
1810
1808
  }
1811
1809
 
1812
1810
  var task$1 = {
1813
- set: set,
1814
- clear: clear
1815
- };
1811
+ set: set};
1816
1812
 
1817
1813
  var global$7 = global$k;
1818
1814
  var DESCRIPTORS$4 = descriptors;
@@ -2792,7 +2788,7 @@ if ($stringify) {
2792
2788
  });
2793
2789
  }
2794
2790
 
2795
- function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
2791
+ function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=true===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
2796
2792
 
2797
2793
  class FluxoStateDispatcher {
2798
2794
  static dispatchUserLogin(data) {
@@ -2828,11 +2824,12 @@ class FluxoStateDispatcher {
2828
2824
  static dispatchAllowedFrontends(frontends) {
2829
2825
  state.store.dispatch(state.setAllowedFrontends(frontends));
2830
2826
  }
2831
- static dispatchSysRoleAccess(hasAdminAccess, hasDeveloperAccess, hasDataAnalystAccess) {
2827
+ static dispatchSysRoleAccess(hasAdminAccess, hasDeveloperAccess, hasDataAnalystAccess, userId) {
2832
2828
  state.store.dispatch(state.setSysRoleAccess({
2833
2829
  admin: hasAdminAccess,
2834
2830
  developer: hasDeveloperAccess,
2835
- dataAnalyst: hasDataAnalystAccess
2831
+ dataAnalyst: hasDataAnalystAccess,
2832
+ userId: userId
2836
2833
  }));
2837
2834
  }
2838
2835
  static dispatchSetConfiguration(items) {
@@ -3188,10 +3185,16 @@ class UserService {
3188
3185
  return HttpClient.Instance().client.post(`/identity/forgotpassword/confirm`, forgotPassword);
3189
3186
  }
3190
3187
  disableUserLogin(userId) {
3191
- return HttpClient.Instance().client.post(`/disableuser/${userId}`);
3188
+ return HttpClient.Instance().client.post(`/identity/disableuser/${userId}`, {});
3192
3189
  }
3193
3190
  enableUserLogin(userId) {
3194
- return HttpClient.Instance().client.post(`/enableuser/${userId}`);
3191
+ return HttpClient.Instance().client.post(`/identity/enableuser/${userId}`, {});
3192
+ }
3193
+ resetPassword(command) {
3194
+ return HttpClient.Instance().client.post(`/identity/resetpassword`, command);
3195
+ }
3196
+ changeEmail(command) {
3197
+ return HttpClient.Instance().client.post(`/identity/changeemail`, command);
3195
3198
  }
3196
3199
  }
3197
3200
 
@@ -3350,7 +3353,6 @@ var defineBuiltIn$1 = defineBuiltIn$5;
3350
3353
  var wellKnownSymbol$6 = wellKnownSymbol$h;
3351
3354
 
3352
3355
  var ITERATOR$1 = wellKnownSymbol$6('iterator');
3353
- var BUGGY_SAFARI_ITERATORS = false;
3354
3356
 
3355
3357
  // `%IteratorPrototype%` object
3356
3358
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
@@ -3360,7 +3362,7 @@ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
3360
3362
  if ([].keys) {
3361
3363
  arrayIterator = [].keys();
3362
3364
  // Safari 8 has buggy iterators w/o `next`
3363
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
3365
+ if (!('next' in arrayIterator)) ;
3364
3366
  else {
3365
3367
  PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
3366
3368
  if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
@@ -3384,9 +3386,7 @@ if (!isCallable$2(IteratorPrototype$2[ITERATOR$1])) {
3384
3386
  }
3385
3387
 
3386
3388
  var iteratorsCore = {
3387
- IteratorPrototype: IteratorPrototype$2,
3388
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
3389
- };
3389
+ IteratorPrototype: IteratorPrototype$2};
3390
3390
 
3391
3391
  var $$9 = _export;
3392
3392
  var global$2 = global$k;
@@ -4018,6 +4018,31 @@ $$4({ target: 'Iterator', proto: true, real: true }, {
4018
4018
  }
4019
4019
  });
4020
4020
 
4021
+ const useIsomorphicEffect = typeof document !== "undefined" ? React.useLayoutEffect : React.useEffect;
4022
+
4023
+ function useDocumentTitle(title) {
4024
+ useIsomorphicEffect(() => {
4025
+ if (typeof title === "string" && title.trim().length > 0) {
4026
+ document.title = title.trim();
4027
+ }
4028
+ }, [title]);
4029
+ }
4030
+
4031
+ function NavigationPage(props) {
4032
+ useDocumentTitle(props.title);
4033
+ return jsxRuntime.jsx(jsxRuntime.Fragment, {
4034
+ children: props.component
4035
+ });
4036
+ }
4037
+ class NavigationPageFactory {
4038
+ static GetPage(title, comp) {
4039
+ return jsxRuntime.jsx(NavigationPage, {
4040
+ title: title,
4041
+ component: comp
4042
+ });
4043
+ }
4044
+ }
4045
+
4021
4046
  class EmbeddedModule {
4022
4047
  get name() {
4023
4048
  return this._name;
@@ -4085,6 +4110,7 @@ class EmbeddedModule {
4085
4110
  r = r.filter(a => !a.isPublic);
4086
4111
  }
4087
4112
  r.map(route => {
4113
+ var _a;
4088
4114
  if (route.route) {
4089
4115
  let path = route.route;
4090
4116
  if (route.route === '/') {
@@ -4096,10 +4122,11 @@ class EmbeddedModule {
4096
4122
  if (routeType === 'protected' && route.isPublic) {
4097
4123
  return;
4098
4124
  }
4125
+ const el = NavigationPageFactory.GetPage((_a = route.title) !== null && _a !== void 0 ? _a : '', route.component);
4099
4126
  routeObject.push({
4100
4127
  path: path,
4101
4128
  index: route.route === '/' ? undefined : false,
4102
- element: route.component,
4129
+ element: route.component ? el : undefined,
4103
4130
  children: route.routes && route.routes.length > 0 ? this.getRouteObject(route.routes, routeType) : []
4104
4131
  });
4105
4132
  }
@@ -4228,9 +4255,34 @@ exports.EmailServerProviderType = void 0;
4228
4255
  EmailServerProviderType[EmailServerProviderType["Mailgun"] = 1] = "Mailgun";
4229
4256
  })(exports.EmailServerProviderType || (exports.EmailServerProviderType = {}));
4230
4257
 
4258
+ exports.EmailTemplateType = void 0;
4259
+ (function (EmailTemplateType) {
4260
+ EmailTemplateType[EmailTemplateType["WelcomeWithCredentialsAndAccessLink"] = 1] = "WelcomeWithCredentialsAndAccessLink";
4261
+ EmailTemplateType[EmailTemplateType["WelcomeWithCredentials"] = 2] = "WelcomeWithCredentials";
4262
+ EmailTemplateType[EmailTemplateType["WelcomeWithCredentialsAndAccessLinkForExternalUser"] = 3] = "WelcomeWithCredentialsAndAccessLinkForExternalUser";
4263
+ EmailTemplateType[EmailTemplateType["WelcomeWithCredentialsForExternalUser"] = 4] = "WelcomeWithCredentialsForExternalUser";
4264
+ EmailTemplateType[EmailTemplateType["PasswordReset"] = 5] = "PasswordReset";
4265
+ EmailTemplateType[EmailTemplateType["PasswordRecovery"] = 6] = "PasswordRecovery";
4266
+ })(exports.EmailTemplateType || (exports.EmailTemplateType = {}));
4267
+
4268
+ class EmailTemplateService extends BaseCommonService {
4269
+ constructor() {
4270
+ super('email-template');
4271
+ }
4272
+ getVariablesDescription(type) {
4273
+ return __awaiter(this, void 0, void 0, function* () {
4274
+ return HttpClient.Instance().client.get(`/email-template/variables/${type}`);
4275
+ });
4276
+ }
4277
+ }
4278
+
4231
4279
  class CommunicationFacade {
4232
4280
  constructor() {
4233
4281
  this._mailServerService = new MailServerService();
4282
+ this._emailTemplateService = new EmailTemplateService();
4283
+ }
4284
+ get emailTemplate() {
4285
+ return this._emailTemplateService;
4234
4286
  }
4235
4287
  get mailServer() {
4236
4288
  return this._mailServerService;
@@ -4238,7 +4290,6 @@ class CommunicationFacade {
4238
4290
  }
4239
4291
 
4240
4292
  class RavifyV1Service {
4241
- constructor() {}
4242
4293
  ping() {
4243
4294
  return __awaiter(this, void 0, void 0, function* () {
4244
4295
  return HttpClient.Instance().client.get(`/ravify/ping`);
@@ -4328,9 +4379,14 @@ class RavifyV1Service {
4328
4379
  return HttpClient.Instance().client.put(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/execution`, command);
4329
4380
  });
4330
4381
  }
4331
- executeJob(domainId, scopeId, jobId) {
4382
+ executeQueue(domainId, scopeId, jobId, command) {
4332
4383
  return __awaiter(this, void 0, void 0, function* () {
4333
- return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/execute`);
4384
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/scope/${scopeId}/queue/${jobId}/execute`, command);
4385
+ });
4386
+ }
4387
+ reserveJob(domainId, scopeId, jobId) {
4388
+ return __awaiter(this, void 0, void 0, function* () {
4389
+ return HttpClient.Instance().client.post(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/reserve`);
4334
4390
  });
4335
4391
  }
4336
4392
  getJobHistory(domainId, scopeId, jobId, page, size) {
@@ -4338,6 +4394,11 @@ class RavifyV1Service {
4338
4394
  return HttpClient.Instance().client.get(`/ravify/v1/domain/${domainId}/scope/${scopeId}/job/${jobId}/history?page=${page}&size=${size}`);
4339
4395
  });
4340
4396
  }
4397
+ getQueueHistory(domainId, scopeId, jobId, page, size) {
4398
+ return __awaiter(this, void 0, void 0, function* () {
4399
+ return HttpClient.Instance().client.get(`/ravify/v1/domain/${domainId}/scope/${scopeId}/queue/${jobId}/history?page=${page}&size=${size}`);
4400
+ });
4401
+ }
4341
4402
  }
4342
4403
 
4343
4404
  class RavifyManagementService {
@@ -4758,8 +4819,9 @@ $({ target: 'Iterator', proto: true, real: true }, {
4758
4819
  class CurrentUser {
4759
4820
  getUserInfo() {
4760
4821
  const user = state.store.getState().user;
4822
+ const layout = state.store.getState().layout;
4761
4823
  return {
4762
- id: user.userInfo.FirstName,
4824
+ id: layout.userId,
4763
4825
  name: user.userInfo.FirstName,
4764
4826
  lastname: user.userInfo.LastName
4765
4827
  };
@@ -4807,6 +4869,12 @@ class CurrentUser {
4807
4869
  }
4808
4870
  }
4809
4871
 
4872
+ exports.NewUserAccessType = void 0;
4873
+ (function (NewUserAccessType) {
4874
+ NewUserAccessType[NewUserAccessType["Username"] = 1] = "Username";
4875
+ NewUserAccessType[NewUserAccessType["Email"] = 2] = "Email";
4876
+ })(exports.NewUserAccessType || (exports.NewUserAccessType = {}));
4877
+
4810
4878
  class ServerFilterHelper {
4811
4879
  static getFilterString(filter, globalSearchQuery, globalSearchQueryFields, globalQueryOperator = 'or') {
4812
4880
  let filtersString = filter ? filter : '';
@@ -4875,6 +4943,7 @@ exports.CurrentUser = CurrentUser;
4875
4943
  exports.DocumentationService = DocumentationService;
4876
4944
  exports.DomainRoleService = DomainRoleService;
4877
4945
  exports.DynamicConfigurationService = DynamicConfigurationService;
4946
+ exports.EmailTemplateService = EmailTemplateService;
4878
4947
  exports.EmbeddedModule = EmbeddedModule;
4879
4948
  exports.FluxoClientBase = FluxoClientBase;
4880
4949
  exports.FluxoClientSys = FluxoClientSys;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "25.1.2",
3
+ "version": "25.1.4",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "react": "^18.3.1",
@@ -8,7 +8,7 @@
8
8
  "react-router-dom": "^6.11.2",
9
9
  "react-redux": "^8.0.5",
10
10
  "@reduxjs/toolkit": "^1.9.1",
11
- "@fluxo-dev/state": "^25.1.2"
11
+ "@fluxo-dev/state": "^25.1.4"
12
12
  },
13
13
  "main": "./index.cjs.js",
14
14
  "types": "./index.cjs.d.ts"
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export interface NavigationPageProps {
3
+ title: string;
4
+ component: React.ReactNode;
5
+ }
6
+ export declare function NavigationPage(props: NavigationPageProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare class NavigationPageFactory {
8
+ static GetPage(title: string, comp: any): React.ReactNode;
9
+ }
@@ -1,6 +1,9 @@
1
1
  import { MailServerService } from "./mail-server";
2
+ import { EmailTemplateService } from './mail-template';
2
3
  export declare class CommunicationFacade {
3
4
  private _mailServerService;
5
+ private _emailTemplateService;
4
6
  constructor();
7
+ get emailTemplate(): EmailTemplateService;
5
8
  get mailServer(): MailServerService;
6
9
  }
@@ -1,2 +1,3 @@
1
1
  export * from './mail-server/index';
2
2
  export * from './communication.facade';
3
+ export * from './mail-template';
@@ -0,0 +1,6 @@
1
+ import { BaseCommonService } from '../../infrastructure';
2
+ import { EmailTemplate, EmailTemplateType, EmailTemplateVariableDescription } from './models';
3
+ export declare class EmailTemplateService extends BaseCommonService<EmailTemplate> {
4
+ constructor();
5
+ getVariablesDescription(type: EmailTemplateType): Promise<EmailTemplateVariableDescription[]>;
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './models';
2
+ export * from './email-template.service';
@@ -0,0 +1,8 @@
1
+ export declare enum EmailTemplateType {
2
+ WelcomeWithCredentialsAndAccessLink = 1,
3
+ WelcomeWithCredentials = 2,
4
+ WelcomeWithCredentialsAndAccessLinkForExternalUser = 3,
5
+ WelcomeWithCredentialsForExternalUser = 4,
6
+ PasswordReset = 5,
7
+ PasswordRecovery = 6
8
+ }
@@ -0,0 +1,5 @@
1
+ export interface EmailTemplateVariableDescription {
2
+ key: string;
3
+ description: string;
4
+ isRequired: boolean;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { EmailTemplateType } from "./email-template-type";
2
+ export interface EmailTemplate {
3
+ id?: number;
4
+ name: string;
5
+ description: string;
6
+ type: EmailTemplateType;
7
+ isDefault: boolean;
8
+ subject: string;
9
+ body: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ export * from './email-template';
2
+ export * from './email-template-type';
3
+ export * from './email-template-variable-description';
@@ -20,6 +20,7 @@ export type InitialConfiguration = {
20
20
  hasDeveloperAccess: boolean;
21
21
  hasDataAnalystAccess: boolean;
22
22
  systemSettings: SystemSettings;
23
+ userId: string;
23
24
  };
24
25
  export type SystemSettings = {
25
26
  aclMode: FluxoACLMode;
@@ -11,7 +11,7 @@ export declare class FluxoStateDispatcher {
11
11
  static dispatchCloseNavbar(): void;
12
12
  static dispatchSetAppMenu(items: AppMenuItem[]): void;
13
13
  static dispatchAllowedFrontends(frontends: string[]): void;
14
- static dispatchSysRoleAccess(hasAdminAccess: boolean, hasDeveloperAccess: boolean, hasDataAnalystAccess: boolean): void;
14
+ static dispatchSysRoleAccess(hasAdminAccess: boolean, hasDeveloperAccess: boolean, hasDataAnalystAccess: boolean, userId: string): void;
15
15
  static dispatchSetConfiguration(items: any): void;
16
16
  static dispatchSetSystemSettings(items: any): void;
17
17
  static dispatchSetSysFeatures(items: any): void;
@@ -12,3 +12,5 @@ export * from './ravify-job-create-v1';
12
12
  export * from './ravify-job-update-info-v1';
13
13
  export * from './ravify-job-update-execution-v1';
14
14
  export * from './ravify-job-history-v1';
15
+ export * from './ravify-job-execute-queue-v1';
16
+ export * from './ravify-queue-history-v1';
@@ -0,0 +1,11 @@
1
+ export interface RavifyJobExecuteQueueV1 {
2
+ uid?: string | null;
3
+ origin?: string | null;
4
+ info?: string | null;
5
+ jobActor?: string | null;
6
+ jobCommand?: string | null;
7
+ jobPayload?: string | null;
8
+ jobOrigin?: string | null;
9
+ jobInfo?: string | null;
10
+ async: boolean;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { RavifyJobStateV1 } from './ravify-job-state-v1';
2
+ export interface RavifyQueueHistoryV1 {
3
+ uid: string;
4
+ state: RavifyJobStateV1;
5
+ payload: string;
6
+ response: string;
7
+ result: string;
8
+ lastTimestamp: string;
9
+ jobId: string;
10
+ }
@@ -1,7 +1,6 @@
1
1
  import { PaginatedResult } from "../../interfaces";
2
- import { RavifyFsDirectoryV1, RavifyJobV1, RavifyJobCreateV1, RavifyScopeV1, RavifyJobUpdateExecutionV1, RavifyJobUpdateInfoV1, RavifyScopeCreateV1, RavifyDirectoryStatsV1, RavifyJobHistoryV1 } from "./models";
2
+ import { RavifyFsDirectoryV1, RavifyJobV1, RavifyJobCreateV1, RavifyScopeV1, RavifyJobUpdateExecutionV1, RavifyJobUpdateInfoV1, RavifyScopeCreateV1, RavifyDirectoryStatsV1, RavifyJobHistoryV1, RavifyJobExecuteQueueV1, RavifyQueueHistoryV1 } from "./models";
3
3
  export declare class RavifyV1Service {
4
- constructor();
5
4
  ping(): Promise<string>;
6
5
  getScopes(domainId: string): Promise<RavifyScopeV1[]>;
7
6
  createScope(domainId: string, command: RavifyScopeCreateV1): Promise<import("axios").AxiosResponse<any, any>>;
@@ -17,6 +16,8 @@ export declare class RavifyV1Service {
17
16
  createJob(domainId: string, scopeId: string, command: RavifyJobCreateV1): Promise<import("axios").AxiosResponse<any, any>>;
18
17
  updateJobInfo(domainId: string, scopeId: string, jobId: string, command: RavifyJobUpdateInfoV1): Promise<import("axios").AxiosResponse<any, any>>;
19
18
  updateJobExecution(domainId: string, scopeId: string, jobId: string, command: RavifyJobUpdateExecutionV1): Promise<import("axios").AxiosResponse<any, any>>;
20
- executeJob(domainId: string, scopeId: string, jobId: string): Promise<RavifyJobV1>;
19
+ executeQueue(domainId: string, scopeId: string, jobId: string, command: RavifyJobExecuteQueueV1): Promise<RavifyJobV1>;
20
+ reserveJob(domainId: string, scopeId: string, jobId: string): Promise<RavifyJobV1>;
21
21
  getJobHistory(domainId: string, scopeId: string, jobId: string, page: number, size: number): Promise<PaginatedResult<RavifyJobHistoryV1>>;
22
+ getQueueHistory(domainId: string, scopeId: string, jobId: string, page: number, size: number): Promise<PaginatedResult<RavifyQueueHistoryV1>>;
22
23
  }
@@ -0,0 +1,4 @@
1
+ export interface ChangeEmail {
2
+ userId: string;
3
+ newEmail: string;
4
+ }
@@ -1,3 +1,6 @@
1
1
  export * from './user';
2
2
  export * from './user-service';
3
3
  export * from './current-user.service';
4
+ export * from './reset-password';
5
+ export * from './new-user';
6
+ export * from './change-email';
@@ -2,6 +2,10 @@ export interface NewUser {
2
2
  user: NewUserUser;
3
3
  assignToRoles: string[];
4
4
  assignToDomainRoles: number[];
5
+ external: boolean;
6
+ firstPassword?: string;
7
+ accessType?: NewUserAccessType;
8
+ sendEmailWithCredentials: boolean;
5
9
  }
6
10
  export interface NewUserUser {
7
11
  firstName: string;
@@ -9,3 +13,7 @@ export interface NewUserUser {
9
13
  userName: string;
10
14
  email: string;
11
15
  }
16
+ export declare enum NewUserAccessType {
17
+ Username = 1,
18
+ Email = 2
19
+ }
@@ -0,0 +1,4 @@
1
+ export interface ResetPassword {
2
+ userId: string;
3
+ password?: string;
4
+ }
@@ -4,6 +4,8 @@ import { IdentityOperationResult } from "./identityOperationResult";
4
4
  import { NewAccountConfirmation } from "./new-account-confirmation";
5
5
  import { NewUser } from "./new-user";
6
6
  import { User } from "./user";
7
+ import { ResetPassword } from './reset-password';
8
+ import { ChangeEmail } from './change-email';
7
9
  export declare class UserService {
8
10
  constructor();
9
11
  getAllUsers(): Promise<User[]>;
@@ -17,4 +19,6 @@ export declare class UserService {
17
19
  forgotPasswordConfirm(forgotPassword: ForgotPassword): Promise<IdentityOperationResult>;
18
20
  disableUserLogin(userId: string): Promise<IdentityOperationResult>;
19
21
  enableUserLogin(userId: string): Promise<IdentityOperationResult>;
22
+ resetPassword(command: ResetPassword): Promise<IdentityOperationResult>;
23
+ changeEmail(command: ChangeEmail): Promise<IdentityOperationResult>;
20
24
  }
@@ -2,6 +2,7 @@ import { DomainRole } from "../domain-role";
2
2
  export interface User {
3
3
  id: string;
4
4
  email: string;
5
+ userName: string;
5
6
  roles: string[];
6
7
  domainRoles: DomainRole[];
7
8
  userData: UserData;
@@ -10,6 +11,7 @@ export interface User {
10
11
  phoneNumberConfirmed: boolean;
11
12
  lockoutEnd: string | null;
12
13
  lockoutEnabled: boolean;
14
+ isLockedOut: boolean;
13
15
  }
14
16
  export interface UserData {
15
17
  FirstName: string;