@konplit-services/common 1.0.198 → 1.0.200

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.
@@ -1,4 +1,4 @@
1
- import { Roles } from "../../../helper";
1
+ import { GENDER, Status, USER_TYPES } from "../../../helper";
2
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
3
  export interface UserCreatedEvent {
4
4
  subject: Subjects.UserCreated;
@@ -6,9 +6,17 @@ export interface UserCreatedEvent {
6
6
  streamEvents: StreamEvent.Event;
7
7
  data: {
8
8
  email: string;
9
- accountId?: string;
10
- permissions: string[];
11
- role: Roles;
9
+ phone: string;
10
+ firstName: string;
11
+ status?: Status;
12
+ address?: string;
13
+ country?: string;
14
+ state?: string;
15
+ city?: string;
12
16
  id: string;
17
+ sex: GENDER;
18
+ accountId?: string;
19
+ userType: USER_TYPES;
20
+ version: number;
13
21
  };
14
22
  }
@@ -1,4 +1,4 @@
1
- import { Roles } from "../../../helper";
1
+ import { GENDER, Status, USER_TYPES } from "../../../helper";
2
2
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
3
  export interface UserUpdatedEvent {
4
4
  subject: Subjects.UserUpdated;
@@ -6,9 +6,17 @@ export interface UserUpdatedEvent {
6
6
  streamEvents: StreamEvent.Event;
7
7
  data: {
8
8
  email: string;
9
- accountId?: string;
10
- permissions: string[];
11
- role: Roles;
9
+ phone: string;
10
+ firstName: string;
11
+ status?: Status;
12
+ address?: string;
13
+ country?: string;
14
+ state?: string;
15
+ city?: string;
12
16
  id: string;
17
+ sex: GENDER;
18
+ accountId?: string;
19
+ userType: USER_TYPES;
20
+ version: number;
13
21
  };
14
22
  }
@@ -1,8 +1,12 @@
1
- export declare enum BUSINESS_CATEGORY {
2
- INDIVIDUAL = "INDIVIDUAL_ACCOUNT",
3
- BUSINESS = "BUSINESS_ACCOUNT",
4
- NGO = "NGO_ACCOUNT",
5
- EVENT = "EVENT_ACCOUNT"
1
+ export declare enum BUSINESS_CLASS {
2
+ PRIVATE_INCORPORATED_COMPANY = "PRIVATE_INCORPORATED_COMPANY",
3
+ PUBLIC_INCORPORATED_COMPANY = "PUBLIC_INCORPORATED_COMPANY",
4
+ FREE_ZONE_BUSINESS = "FREE_ZONE_BUSINESS",
5
+ BUSINESS_NAME_REGISTRATION = "BUSINESS_NAME_REGISTRATION",
6
+ INCORPORATED_TRUSTEE = "INCORPORATED_TRUSTEE",
7
+ GOVERNMENT_BODY = "GOVERNMENT_BODY",
8
+ PRIAVTE_BODY_BY_GOVERNMENT_APPROVAL = "PRIAVTE_BODY_BY_GOVERNMENT_APPROVAL",
9
+ COORPORATIVE_SOCIETY = "COORPORATIVE_SOCIETY"
6
10
  }
7
11
  export declare enum INDIVIDUAL_REQUIRED_TYPE {
8
12
  DRIVER_LICENSE = "DRIVER_LICENSE",
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INDIVIDUAL_REQUIRED_TYPE = exports.BUSINESS_CATEGORY = void 0;
4
- var BUSINESS_CATEGORY;
5
- (function (BUSINESS_CATEGORY) {
6
- BUSINESS_CATEGORY["INDIVIDUAL"] = "INDIVIDUAL_ACCOUNT";
7
- BUSINESS_CATEGORY["BUSINESS"] = "BUSINESS_ACCOUNT";
8
- BUSINESS_CATEGORY["NGO"] = "NGO_ACCOUNT";
9
- BUSINESS_CATEGORY["EVENT"] = "EVENT_ACCOUNT";
10
- })(BUSINESS_CATEGORY = exports.BUSINESS_CATEGORY || (exports.BUSINESS_CATEGORY = {}));
3
+ exports.INDIVIDUAL_REQUIRED_TYPE = exports.BUSINESS_CLASS = void 0;
4
+ var BUSINESS_CLASS;
5
+ (function (BUSINESS_CLASS) {
6
+ BUSINESS_CLASS["PRIVATE_INCORPORATED_COMPANY"] = "PRIVATE_INCORPORATED_COMPANY";
7
+ BUSINESS_CLASS["PUBLIC_INCORPORATED_COMPANY"] = "PUBLIC_INCORPORATED_COMPANY";
8
+ BUSINESS_CLASS["FREE_ZONE_BUSINESS"] = "FREE_ZONE_BUSINESS";
9
+ BUSINESS_CLASS["BUSINESS_NAME_REGISTRATION"] = "BUSINESS_NAME_REGISTRATION";
10
+ BUSINESS_CLASS["INCORPORATED_TRUSTEE"] = "INCORPORATED_TRUSTEE";
11
+ BUSINESS_CLASS["GOVERNMENT_BODY"] = "GOVERNMENT_BODY";
12
+ BUSINESS_CLASS["PRIAVTE_BODY_BY_GOVERNMENT_APPROVAL"] = "PRIAVTE_BODY_BY_GOVERNMENT_APPROVAL";
13
+ BUSINESS_CLASS["COORPORATIVE_SOCIETY"] = "COORPORATIVE_SOCIETY";
14
+ })(BUSINESS_CLASS = exports.BUSINESS_CLASS || (exports.BUSINESS_CLASS = {}));
11
15
  var INDIVIDUAL_REQUIRED_TYPE;
12
16
  (function (INDIVIDUAL_REQUIRED_TYPE) {
13
17
  INDIVIDUAL_REQUIRED_TYPE["DRIVER_LICENSE"] = "DRIVER_LICENSE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",