@managemint-solutions/entities 1.1.2 → 1.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.
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdditionalDetailsTypes = exports.AdditionalDetailsEntityTypes = void 0;
4
- var AdditionalDetailsEntityTypes;
1
+ export var AdditionalDetailsEntityTypes;
5
2
  (function (AdditionalDetailsEntityTypes) {
6
3
  AdditionalDetailsEntityTypes["CLIENT"] = "clients";
7
4
  AdditionalDetailsEntityTypes["PROJECT"] = "projects";
8
5
  AdditionalDetailsEntityTypes["BUDGET_EXPENSE"] = "budget_expenses";
9
6
  AdditionalDetailsEntityTypes["TASKS"] = "tasks";
10
- })(AdditionalDetailsEntityTypes || (exports.AdditionalDetailsEntityTypes = AdditionalDetailsEntityTypes = {}));
7
+ })(AdditionalDetailsEntityTypes || (AdditionalDetailsEntityTypes = {}));
11
8
  ;
12
9
  /**
13
10
  * Expected value examples by `type`:
@@ -21,11 +18,11 @@ var AdditionalDetailsEntityTypes;
21
18
  * - Input accepts string URL values with http/https (e.g. "https://example.com/path").
22
19
  * - Returned value may be cast to a URL object by the service layer.
23
20
  */
24
- var AdditionalDetailsTypes;
21
+ export var AdditionalDetailsTypes;
25
22
  (function (AdditionalDetailsTypes) {
26
23
  AdditionalDetailsTypes["Text"] = "string";
27
24
  AdditionalDetailsTypes["Number"] = "number";
28
25
  AdditionalDetailsTypes["Boolean"] = "boolean";
29
26
  AdditionalDetailsTypes["DATE"] = "date";
30
27
  AdditionalDetailsTypes["URL"] = "url";
31
- })(AdditionalDetailsTypes || (exports.AdditionalDetailsTypes = AdditionalDetailsTypes = {}));
28
+ })(AdditionalDetailsTypes || (AdditionalDetailsTypes = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuditTrailEntityType = exports.AuditTrailAction = void 0;
4
- var AuditTrailAction;
1
+ export var AuditTrailAction;
5
2
  (function (AuditTrailAction) {
6
3
  AuditTrailAction["INSERT"] = "INSERT";
7
4
  AuditTrailAction["UPDATE"] = "UPDATE";
@@ -9,8 +6,8 @@ var AuditTrailAction;
9
6
  AuditTrailAction["UNARCHIVE"] = "UNARCHIVE";
10
7
  AuditTrailAction["DELETE"] = "DELETE";
11
8
  AuditTrailAction["RESTORE"] = "RESTORE";
12
- })(AuditTrailAction || (exports.AuditTrailAction = AuditTrailAction = {}));
13
- var AuditTrailEntityType;
9
+ })(AuditTrailAction || (AuditTrailAction = {}));
10
+ export var AuditTrailEntityType;
14
11
  (function (AuditTrailEntityType) {
15
12
  AuditTrailEntityType["ORGANIZATION"] = "organizations";
16
13
  AuditTrailEntityType["USER"] = "users";
@@ -23,4 +20,4 @@ var AuditTrailEntityType;
23
20
  AuditTrailEntityType["PROJECTS"] = "projects";
24
21
  AuditTrailEntityType["TASKS"] = "tasks";
25
22
  AuditTrailEntityType["TIMESHEETS"] = "timesheets";
26
- })(AuditTrailEntityType || (exports.AuditTrailEntityType = AuditTrailEntityType = {}));
23
+ })(AuditTrailEntityType || (AuditTrailEntityType = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Modules = void 0;
4
- var Modules;
1
+ export var Modules;
5
2
  (function (Modules) {
6
3
  Modules["CRM"] = "CRM";
7
- })(Modules || (exports.Modules = Modules = {}));
4
+ })(Modules || (Modules = {}));
8
5
  ;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotesEntityTypes = void 0;
4
- var NotesEntityTypes;
1
+ export var NotesEntityTypes;
5
2
  (function (NotesEntityTypes) {
6
3
  NotesEntityTypes["CLIENT"] = "clients";
7
4
  NotesEntityTypes["PROJECT"] = "projects";
8
5
  NotesEntityTypes["BUDGET_EXPENSE"] = "budget_expenses";
9
6
  NotesEntityTypes["TASKS"] = "tasks";
10
- })(NotesEntityTypes || (exports.NotesEntityTypes = NotesEntityTypes = {}));
7
+ })(NotesEntityTypes || (NotesEntityTypes = {}));
11
8
  ;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrganizationTypes = void 0;
4
- var OrganizationTypes;
1
+ export var OrganizationTypes;
5
2
  (function (OrganizationTypes) {
6
3
  OrganizationTypes["COMPANY"] = "Company";
7
4
  OrganizationTypes["SOLE_TRADER"] = "Sole-Trader";
8
- })(OrganizationTypes || (exports.OrganizationTypes = OrganizationTypes = {}));
5
+ })(OrganizationTypes || (OrganizationTypes = {}));
9
6
  ;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaystackMetadataActions = exports.PaystackWebhookEvents = exports.PlanUpdateStatuses = exports.PaymentIntervals = exports.PaymentStatuses = void 0;
4
- var PaymentStatuses;
1
+ export var PaymentStatuses;
5
2
  (function (PaymentStatuses) {
6
3
  PaymentStatuses["PAID"] = "paid";
7
4
  PaymentStatuses["AWAITING_INITIAL_PAYMENT"] = "awaiting initial payment";
@@ -11,9 +8,9 @@ var PaymentStatuses;
11
8
  PaymentStatuses["AWAITING_SUBSCRIPTION"] = "awaiting subscription";
12
9
  PaymentStatuses["SUBSCRIPTION_PAYMENT_FAILED"] = "subscription payment failed";
13
10
  PaymentStatuses["CANCELLED"] = "cancelled";
14
- })(PaymentStatuses || (exports.PaymentStatuses = PaymentStatuses = {}));
11
+ })(PaymentStatuses || (PaymentStatuses = {}));
15
12
  ;
16
- var PaymentIntervals;
13
+ export var PaymentIntervals;
17
14
  (function (PaymentIntervals) {
18
15
  PaymentIntervals["HOURLY"] = "hourly";
19
16
  PaymentIntervals["DAILY"] = "daily";
@@ -22,9 +19,9 @@ var PaymentIntervals;
22
19
  PaymentIntervals["QUARTERLY"] = "quarterly";
23
20
  PaymentIntervals["BIANNUALLY"] = "biannually";
24
21
  PaymentIntervals["ANNUALLY"] = "annually";
25
- })(PaymentIntervals || (exports.PaymentIntervals = PaymentIntervals = {}));
22
+ })(PaymentIntervals || (PaymentIntervals = {}));
26
23
  ;
27
- var PlanUpdateStatuses;
24
+ export var PlanUpdateStatuses;
28
25
  (function (PlanUpdateStatuses) {
29
26
  PlanUpdateStatuses["NONE"] = "none";
30
27
  PlanUpdateStatuses["NEW_PLAN_REQUESTED"] = "new_plan_requested";
@@ -33,9 +30,9 @@ var PlanUpdateStatuses;
33
30
  PlanUpdateStatuses["PLAN_UPDATED"] = "plan_updated";
34
31
  // UPGRADE_CRON_JOB_CREATED = 'upgrade_cron_job_created',
35
32
  PlanUpdateStatuses["COMPLETED"] = "completed";
36
- })(PlanUpdateStatuses || (exports.PlanUpdateStatuses = PlanUpdateStatuses = {}));
33
+ })(PlanUpdateStatuses || (PlanUpdateStatuses = {}));
37
34
  ;
38
- var PaystackWebhookEvents;
35
+ export var PaystackWebhookEvents;
39
36
  (function (PaystackWebhookEvents) {
40
37
  PaystackWebhookEvents["CHARGE_SUCCESS"] = "charge.success";
41
38
  PaystackWebhookEvents["SUBSCRIPTION_CREATE"] = "subscription.create";
@@ -45,10 +42,10 @@ var PaystackWebhookEvents;
45
42
  PaystackWebhookEvents["INVOICE_CREATE"] = "invoice.create";
46
43
  PaystackWebhookEvents["INVOICE_UPDATE"] = "invoice.update";
47
44
  PaystackWebhookEvents["REFUND_PROCESSED"] = "refund.processed";
48
- })(PaystackWebhookEvents || (exports.PaystackWebhookEvents = PaystackWebhookEvents = {}));
45
+ })(PaystackWebhookEvents || (PaystackWebhookEvents = {}));
49
46
  ;
50
- var PaystackMetadataActions;
47
+ export var PaystackMetadataActions;
51
48
  (function (PaystackMetadataActions) {
52
49
  PaystackMetadataActions["INITIAL_PAYMENT"] = "initial-payment";
53
- })(PaystackMetadataActions || (exports.PaystackMetadataActions = PaystackMetadataActions = {}));
50
+ })(PaystackMetadataActions || (PaystackMetadataActions = {}));
54
51
  ;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusEntityTypes = void 0;
4
- var StatusEntityTypes;
1
+ export var StatusEntityTypes;
5
2
  (function (StatusEntityTypes) {
6
3
  StatusEntityTypes["CLIENT"] = "clients";
7
4
  StatusEntityTypes["PROJECT"] = "projects";
8
5
  StatusEntityTypes["TASK"] = "tasks";
9
- })(StatusEntityTypes || (exports.StatusEntityTypes = StatusEntityTypes = {}));
6
+ })(StatusEntityTypes || (StatusEntityTypes = {}));
10
7
  ;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,19 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionReinstateStatus = exports.SubscriptionCancellationStatus = void 0;
4
- var SubscriptionCancellationStatus;
1
+ export var SubscriptionCancellationStatus;
5
2
  (function (SubscriptionCancellationStatus) {
6
3
  SubscriptionCancellationStatus["NONE"] = "none";
7
4
  SubscriptionCancellationStatus["PAYSTACK_SUBSCRIPTION_CANCELLED"] = "paystack_subscription_cancelled";
8
5
  SubscriptionCancellationStatus["CANCELLED"] = "cancelled";
9
- })(SubscriptionCancellationStatus || (exports.SubscriptionCancellationStatus = SubscriptionCancellationStatus = {}));
6
+ })(SubscriptionCancellationStatus || (SubscriptionCancellationStatus = {}));
10
7
  ;
11
- var SubscriptionReinstateStatus;
8
+ export var SubscriptionReinstateStatus;
12
9
  (function (SubscriptionReinstateStatus) {
13
10
  SubscriptionReinstateStatus["NONE"] = "none";
14
11
  SubscriptionReinstateStatus["REINSTATE_REQUESTED"] = "reinstate_requested";
15
12
  SubscriptionReinstateStatus["AUTHORIZATION_CHARGED"] = "authorization_charged";
16
13
  SubscriptionReinstateStatus["SUBSCRIPTION_REINSTATED"] = "subscription_reinstated";
17
14
  SubscriptionReinstateStatus["COMPLETED"] = "completed";
18
- })(SubscriptionReinstateStatus || (exports.SubscriptionReinstateStatus = SubscriptionReinstateStatus = {}));
15
+ })(SubscriptionReinstateStatus || (SubscriptionReinstateStatus = {}));
19
16
  ;
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SupportingFilesExtensions = exports.SupportingFilesEntityTypes = void 0;
4
- var SupportingFilesEntityTypes;
1
+ export var SupportingFilesEntityTypes;
5
2
  (function (SupportingFilesEntityTypes) {
6
3
  SupportingFilesEntityTypes["CLIENT"] = "clients";
7
4
  SupportingFilesEntityTypes["PROJECT"] = "projects";
8
5
  SupportingFilesEntityTypes["BUDGET_EXPENSE"] = "budget_expenses";
9
6
  SupportingFilesEntityTypes["TASKS"] = "tasks";
10
- })(SupportingFilesEntityTypes || (exports.SupportingFilesEntityTypes = SupportingFilesEntityTypes = {}));
7
+ })(SupportingFilesEntityTypes || (SupportingFilesEntityTypes = {}));
11
8
  ;
12
- var SupportingFilesExtensions;
9
+ export var SupportingFilesExtensions;
13
10
  (function (SupportingFilesExtensions) {
14
11
  SupportingFilesExtensions["PDF"] = "pdf";
15
12
  SupportingFilesExtensions["DOC"] = "doc";
@@ -23,4 +20,4 @@ var SupportingFilesExtensions;
23
20
  SupportingFilesExtensions["JPEG"] = "jpeg";
24
21
  SupportingFilesExtensions["PNG"] = "png";
25
22
  SupportingFilesExtensions["GIF"] = "gif";
26
- })(SupportingFilesExtensions || (exports.SupportingFilesExtensions = SupportingFilesExtensions = {}));
23
+ })(SupportingFilesExtensions || (SupportingFilesExtensions = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -0,0 +1,37 @@
1
+ import { EmergencyContactRelationship } from "../enum";
2
+ export type UserIdDto = {
3
+ userId: string;
4
+ };
5
+ export type GetUsersDto = {
6
+ search?: string | null;
7
+ page: number;
8
+ page_size: number;
9
+ };
10
+ export type CreateUserDto = {
11
+ email: string;
12
+ password: string;
13
+ name: string;
14
+ surname: string;
15
+ phone: string | null;
16
+ profile_image: string | null;
17
+ country_code: string;
18
+ };
19
+ export type UpdateUserDto = {
20
+ name: string;
21
+ surname: string;
22
+ phone: string;
23
+ birthday?: string | null;
24
+ end_date?: string | null;
25
+ job_title?: string | null;
26
+ manager_id?: string | null;
27
+ social_facebook?: string | null;
28
+ social_linkedin?: string | null;
29
+ social_twitter?: string | null;
30
+ social_instagram?: string | null;
31
+ social_github?: string | null;
32
+ social_website?: string | null;
33
+ emergency_contact_name?: string | null;
34
+ emergency_contact_relationship?: EmergencyContactRelationship | null;
35
+ emergency_contact_phone?: string | null;
36
+ emergency_contact_email?: string | null;
37
+ };
@@ -1,2 +1 @@
1
- "use strict";
2
- // User DTOs
1
+ export {};
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmergencyContactRelationship = exports.EmploymentType = void 0;
4
- var EmploymentType;
1
+ export var EmploymentType;
5
2
  (function (EmploymentType) {
6
3
  EmploymentType["FULL_TIME"] = "full_time";
7
4
  EmploymentType["PART_TIME"] = "part_time";
8
5
  EmploymentType["CONTRACTOR"] = "contractor";
9
6
  EmploymentType["INTERN"] = "intern";
10
7
  EmploymentType["TEMPORARY"] = "temporary";
11
- })(EmploymentType || (exports.EmploymentType = EmploymentType = {}));
12
- var EmergencyContactRelationship;
8
+ })(EmploymentType || (EmploymentType = {}));
9
+ export var EmergencyContactRelationship;
13
10
  (function (EmergencyContactRelationship) {
14
11
  EmergencyContactRelationship["SPOUSE"] = "spouse";
15
12
  EmergencyContactRelationship["PARENT"] = "parent";
@@ -17,4 +14,4 @@ var EmergencyContactRelationship;
17
14
  EmergencyContactRelationship["FRIEND"] = "friend";
18
15
  EmergencyContactRelationship["PARTNER"] = "partner";
19
16
  EmergencyContactRelationship["OTHER"] = "other";
20
- })(EmergencyContactRelationship || (exports.EmergencyContactRelationship = EmergencyContactRelationship = {}));
17
+ })(EmergencyContactRelationship || (EmergencyContactRelationship = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {
@@ -12,22 +12,26 @@
12
12
  },
13
13
  "license": "UNLICENSED",
14
14
  "author": "Scott Bebington <scottbebington@gmail.com>",
15
- "type": "commonjs",
15
+
16
+ "type": "module",
17
+
16
18
  "exports": {
17
19
  "./package.json": "./package.json",
18
20
  "./*": {
19
21
  "types": "./dist/*/index.d.ts",
20
- "default": "./dist/*/index.js"
22
+ "import": "./dist/*/index.js"
21
23
  }
22
24
  },
25
+
23
26
  "scripts": {
24
- "test": "echo \"Error: no test specified\" && exit 1",
25
27
  "build": "tsc",
26
28
  "release": "npm run build && npm publish --access public"
27
29
  },
30
+
28
31
  "files": [
29
32
  "dist"
30
33
  ],
34
+
31
35
  "devDependencies": {
32
36
  "@types/node": "^25.6.0"
33
37
  }