@managemint-solutions/entities 1.0.11 → 1.0.13
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/dist/auth/dto/index.js +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/clients/dto/index.d.ts +29 -0
- package/dist/clients/dto/index.js +1 -0
- package/dist/clients/index.js +1 -0
- package/dist/modules/enum/index.js +5 -0
- package/dist/organization/dto/index.js +1 -0
- package/dist/organization/enum/index.js +6 -0
- package/dist/organization/index.js +1 -0
- package/dist/payments/enums/index.js +51 -0
- package/dist/status/dto/index.js +2 -0
- package/dist/status/index.js +1 -0
- package/dist/subscription/enum/index.js +16 -0
- package/dist/users/dto/index.js +2 -0
- package/dist/users/enum/index.js +17 -0
- package/dist/users/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UUID } from "crypto";
|
|
2
|
+
export type GetClientsDto = {
|
|
3
|
+
search?: string | null;
|
|
4
|
+
page: number;
|
|
5
|
+
page_size: number;
|
|
6
|
+
created_after?: string | null;
|
|
7
|
+
created_before?: string | null;
|
|
8
|
+
status_id_in?: UUID[] | null;
|
|
9
|
+
archive: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ClientIdDto = {
|
|
12
|
+
clientId: string;
|
|
13
|
+
};
|
|
14
|
+
export type CreateClientDto = {
|
|
15
|
+
name: string;
|
|
16
|
+
email: string | null;
|
|
17
|
+
phone: string | null;
|
|
18
|
+
status_id: UUID | null;
|
|
19
|
+
contract_client: boolean;
|
|
20
|
+
contracted_hours: number | null;
|
|
21
|
+
};
|
|
22
|
+
export type UpdateClientDto = {
|
|
23
|
+
name: string;
|
|
24
|
+
email: string | null;
|
|
25
|
+
phone: string | null;
|
|
26
|
+
status_id: UUID | null;
|
|
27
|
+
contract_client: boolean;
|
|
28
|
+
contracted_hours: number | null;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
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,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