@managemint-solutions/entities 1.0.10 → 1.0.12

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 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ // Client DTOs
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export var Modules;
2
+ (function (Modules) {
3
+ Modules["CRM"] = "CRM";
4
+ })(Modules || (Modules = {}));
5
+ ;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export var OrganizationTypes;
2
+ (function (OrganizationTypes) {
3
+ OrganizationTypes["COMPANY"] = "Company";
4
+ OrganizationTypes["SOLE_TRADER"] = "Sole-Trader";
5
+ })(OrganizationTypes || (OrganizationTypes = {}));
6
+ ;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ export var PaymentStatuses;
2
+ (function (PaymentStatuses) {
3
+ PaymentStatuses["PAID"] = "paid";
4
+ PaymentStatuses["AWAITING_INITIAL_PAYMENT"] = "awaiting initial payment";
5
+ PaymentStatuses["INITIAL_AMOUNT_PAID"] = "initial amount paid";
6
+ PaymentStatuses["INITIAL_PAYMENT_FAILED"] = "initial payment failed";
7
+ PaymentStatuses["AWAITING_PLAN"] = "awaiting plan";
8
+ PaymentStatuses["AWAITING_SUBSCRIPTION"] = "awaiting subscription";
9
+ PaymentStatuses["SUBSCRIPTION_PAYMENT_FAILED"] = "subscription payment failed";
10
+ PaymentStatuses["CANCELLED"] = "cancelled";
11
+ })(PaymentStatuses || (PaymentStatuses = {}));
12
+ ;
13
+ export var PaymentIntervals;
14
+ (function (PaymentIntervals) {
15
+ PaymentIntervals["HOURLY"] = "hourly";
16
+ PaymentIntervals["DAILY"] = "daily";
17
+ PaymentIntervals["WEEKLY"] = "weekly";
18
+ PaymentIntervals["MONTHLY"] = "monthly";
19
+ PaymentIntervals["QUARTERLY"] = "quarterly";
20
+ PaymentIntervals["BIANNUALLY"] = "biannually";
21
+ PaymentIntervals["ANNUALLY"] = "annually";
22
+ })(PaymentIntervals || (PaymentIntervals = {}));
23
+ ;
24
+ export var PlanUpdateStatuses;
25
+ (function (PlanUpdateStatuses) {
26
+ PlanUpdateStatuses["NONE"] = "none";
27
+ PlanUpdateStatuses["NEW_PLAN_REQUESTED"] = "new_plan_requested";
28
+ // DOWNGRADE_CRON_JOB_CREATED = 'downgrade_cron_job_created',
29
+ PlanUpdateStatuses["PRO_RATA_CHARGED"] = "pro_rata_charged";
30
+ PlanUpdateStatuses["PLAN_UPDATED"] = "plan_updated";
31
+ // UPGRADE_CRON_JOB_CREATED = 'upgrade_cron_job_created',
32
+ PlanUpdateStatuses["COMPLETED"] = "completed";
33
+ })(PlanUpdateStatuses || (PlanUpdateStatuses = {}));
34
+ ;
35
+ export var PaystackWebhookEvents;
36
+ (function (PaystackWebhookEvents) {
37
+ PaystackWebhookEvents["CHARGE_SUCCESS"] = "charge.success";
38
+ PaystackWebhookEvents["SUBSCRIPTION_CREATE"] = "subscription.create";
39
+ PaystackWebhookEvents["SUBSCRIPTION_NOT_RENEW"] = "subscription.not_renew";
40
+ PaystackWebhookEvents["SUBSCRIPTION_EXPIRING_CARDS"] = "subscription.expiring_cards";
41
+ PaystackWebhookEvents["INVOICE_PAYMENT_FAILED"] = "invoice.payment_failed";
42
+ PaystackWebhookEvents["INVOICE_CREATE"] = "invoice.create";
43
+ PaystackWebhookEvents["INVOICE_UPDATE"] = "invoice.update";
44
+ PaystackWebhookEvents["REFUND_PROCESSED"] = "refund.processed";
45
+ })(PaystackWebhookEvents || (PaystackWebhookEvents = {}));
46
+ ;
47
+ export var PaystackMetadataActions;
48
+ (function (PaystackMetadataActions) {
49
+ PaystackMetadataActions["INITIAL_PAYMENT"] = "initial-payment";
50
+ })(PaystackMetadataActions || (PaystackMetadataActions = {}));
51
+ ;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ // Status DTOs
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export var SubscriptionCancellationStatus;
2
+ (function (SubscriptionCancellationStatus) {
3
+ SubscriptionCancellationStatus["NONE"] = "none";
4
+ SubscriptionCancellationStatus["PAYSTACK_SUBSCRIPTION_CANCELLED"] = "paystack_subscription_cancelled";
5
+ SubscriptionCancellationStatus["CANCELLED"] = "cancelled";
6
+ })(SubscriptionCancellationStatus || (SubscriptionCancellationStatus = {}));
7
+ ;
8
+ export var SubscriptionReinstateStatus;
9
+ (function (SubscriptionReinstateStatus) {
10
+ SubscriptionReinstateStatus["NONE"] = "none";
11
+ SubscriptionReinstateStatus["REINSTATE_REQUESTED"] = "reinstate_requested";
12
+ SubscriptionReinstateStatus["AUTHORIZATION_CHARGED"] = "authorization_charged";
13
+ SubscriptionReinstateStatus["SUBSCRIPTION_REINSTATED"] = "subscription_reinstated";
14
+ SubscriptionReinstateStatus["COMPLETED"] = "completed";
15
+ })(SubscriptionReinstateStatus || (SubscriptionReinstateStatus = {}));
16
+ ;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ // User DTOs
@@ -0,0 +1,17 @@
1
+ export var EmploymentType;
2
+ (function (EmploymentType) {
3
+ EmploymentType["FULL_TIME"] = "full_time";
4
+ EmploymentType["PART_TIME"] = "part_time";
5
+ EmploymentType["CONTRACTOR"] = "contractor";
6
+ EmploymentType["INTERN"] = "intern";
7
+ EmploymentType["TEMPORARY"] = "temporary";
8
+ })(EmploymentType || (EmploymentType = {}));
9
+ export var EmergencyContactRelationship;
10
+ (function (EmergencyContactRelationship) {
11
+ EmergencyContactRelationship["SPOUSE"] = "spouse";
12
+ EmergencyContactRelationship["PARENT"] = "parent";
13
+ EmergencyContactRelationship["SIBLING"] = "sibling";
14
+ EmergencyContactRelationship["FRIEND"] = "friend";
15
+ EmergencyContactRelationship["PARTNER"] = "partner";
16
+ EmergencyContactRelationship["OTHER"] = "other";
17
+ })(EmergencyContactRelationship || (EmergencyContactRelationship = {}));
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
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": {
@@ -54,17 +54,17 @@
54
54
  "default": "./dist/users/enum/index.js"
55
55
  },
56
56
 
57
- "./organizations": {
58
- "types": "./dist/organizations/index.d.ts",
59
- "default": "./dist/organizations/index.js"
57
+ "./organization": {
58
+ "types": "./dist/organization/index.d.ts",
59
+ "default": "./dist/organization/index.js"
60
60
  },
61
- "./organizations/dto": {
62
- "types": "./dist/organizations/dto/index.d.ts",
63
- "default": "./dist/organizations/dto/index.js"
61
+ "./organization/dto": {
62
+ "types": "./dist/organization/dto/index.d.ts",
63
+ "default": "./dist/organization/dto/index.js"
64
64
  },
65
- "./organizations/enum": {
66
- "types": "./dist/organizations/enum/index.d.ts",
67
- "default": "./dist/organizations/enum/index.js"
65
+ "./organization/enum": {
66
+ "types": "./dist/organization/enum/index.d.ts",
67
+ "default": "./dist/organization/enum/index.js"
68
68
  },
69
69
 
70
70
  "./modules/enum": {