@rufous/aem 1.1.51 → 1.1.52

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.
@@ -0,0 +1,9 @@
1
+ import { ProfileType } from '../types/profile-type';
2
+ import { Subjects } from './subjects';
3
+ export interface CreateUserProfileEvent {
4
+ subject: Subjects.CreateUserProfile;
5
+ data: {
6
+ type: ProfileType;
7
+ id: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -35,6 +35,7 @@ export declare enum Subjects {
35
35
  BranchCreatedOrUpdated = "branch:created:or:updated",
36
36
  BranchDeleted = "branch:deleted",
37
37
  CandidateCreated = "candidate:created",
38
+ CreateUserProfile = "create:user:profile",
38
39
  centralUserEmployeeAdded = "central:user:employee:added",
39
40
  centralUserProfileUpdated = "central:user:profile:updated",
40
41
  CreateCandidateTimesheet = "create:candidate:timesheet",
@@ -39,6 +39,7 @@ var Subjects;
39
39
  Subjects["BranchCreatedOrUpdated"] = "branch:created:or:updated";
40
40
  Subjects["BranchDeleted"] = "branch:deleted";
41
41
  Subjects["CandidateCreated"] = "candidate:created";
42
+ Subjects["CreateUserProfile"] = "create:user:profile";
42
43
  Subjects["centralUserEmployeeAdded"] = "central:user:employee:added";
43
44
  Subjects["centralUserProfileUpdated"] = "central:user:profile:updated";
44
45
  Subjects["CreateCandidateTimesheet"] = "create:candidate:timesheet";
@@ -1,10 +1,12 @@
1
1
  import { Subjects } from './subjects';
2
+ import { ProfileType } from '../types/profile-type';
2
3
  export interface UserProfileCreatedEvent {
3
4
  subject: Subjects.UserProfileCreated;
4
5
  data: {
5
6
  id: string;
6
- mainId: string;
7
- type: string;
8
- isRecentLogin: boolean;
7
+ entityId: string;
8
+ type: ProfileType;
9
+ updatedUserDetails: string;
10
+ permissions?: string;
9
11
  };
10
12
  }
package/build/index.d.ts CHANGED
@@ -192,3 +192,4 @@ export * from './types/timesheet-payment-status';
192
192
  export * from './types/timesheet-status';
193
193
  export * from './types/user-status';
194
194
  export * from './types/user-type';
195
+ export * from './types/profile-type';
package/build/index.js CHANGED
@@ -205,3 +205,4 @@ __exportStar(require("./types/timesheet-payment-status"), exports);
205
205
  __exportStar(require("./types/timesheet-status"), exports);
206
206
  __exportStar(require("./types/user-status"), exports);
207
207
  __exportStar(require("./types/user-type"), exports);
208
+ __exportStar(require("./types/profile-type"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum ProfileType {
2
+ EmployeeCandidateProfile = "employee:candidate:profile",
3
+ CompanyPartnerProfile = "company:partner:profile",
4
+ PartnerCompanyProfile = "partner:company:profile"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileType = void 0;
4
+ var ProfileType;
5
+ (function (ProfileType) {
6
+ ProfileType["EmployeeCandidateProfile"] = "employee:candidate:profile";
7
+ ProfileType["CompanyPartnerProfile"] = "company:partner:profile";
8
+ ProfileType["PartnerCompanyProfile"] = "partner:company:profile";
9
+ })(ProfileType = exports.ProfileType || (exports.ProfileType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rufous/aem",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [