@nimee/shared-types 1.0.85 → 1.0.87
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/account/account.d.ts +4 -4
- package/dist/event/event.d.ts +3 -0
- package/dist/event/event.js.map +1 -1
- package/dist/payment/charge.d.ts +3 -0
- package/dist/payment/charge.js.map +1 -1
- package/dist/payment/index.d.ts +1 -0
- package/dist/payment/index.js +1 -0
- package/dist/payment/index.js.map +1 -1
- package/dist/payment/payment.d.ts +4 -0
- package/dist/payment/payment.js +9 -0
- package/dist/payment/payment.js.map +1 -0
- package/dist/send-notification/sms.d.ts +1 -1
- package/dist/send-notification/sms.js +1 -1
- package/dist/send-notification/sms.js.map +1 -1
- package/dist/send-notification/sqs.d.ts +2 -1
- package/dist/send-notification/sqs.js +1 -0
- package/dist/send-notification/sqs.js.map +1 -1
- package/dist/user/endUser.d.ts +23 -0
- package/dist/user/endUser.js +3 -0
- package/dist/user/endUser.js.map +1 -0
- package/dist/user/index.d.ts +1 -0
- package/dist/user/index.js +1 -0
- package/dist/user/index.js.map +1 -1
- package/dist/userEvent/eventOrder.d.ts +3 -1
- package/package.json +1 -1
- package/src/account/account.ts +3 -3
- package/src/event/event.ts +3 -0
- package/src/payment/charge.ts +4 -0
- package/src/payment/index.ts +1 -0
- package/src/payment/payment.ts +4 -0
- package/src/send-notification/sms.ts +1 -1
- package/src/send-notification/sqs.ts +1 -0
- package/src/user/endUser.ts +23 -0
- package/src/user/index.ts +1 -0
- package/src/userEvent/eventOrder.ts +3 -1
|
@@ -45,13 +45,13 @@ export interface IAccountModel {
|
|
|
45
45
|
email: string;
|
|
46
46
|
socialGovId: string;
|
|
47
47
|
collaborates: ICollaboratesModel[];
|
|
48
|
-
invitees:
|
|
48
|
+
invitees: {
|
|
49
49
|
state: IInviteeStateTypeEnum;
|
|
50
50
|
name: string;
|
|
51
51
|
email: string;
|
|
52
52
|
role: IRoleTypeEnum;
|
|
53
53
|
token: string;
|
|
54
|
-
}];
|
|
54
|
+
}[];
|
|
55
55
|
isAccountVerified: boolean;
|
|
56
56
|
isEmailVerified: boolean;
|
|
57
57
|
transactionPercentage: number;
|
|
@@ -61,8 +61,8 @@ export interface IAccountModel {
|
|
|
61
61
|
sellerPaymeId: string;
|
|
62
62
|
currency: string;
|
|
63
63
|
_id: string;
|
|
64
|
-
createdAt:
|
|
65
|
-
updatedAt:
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
updatedAt: Date;
|
|
66
66
|
isSubAccount: boolean;
|
|
67
67
|
handler: string;
|
|
68
68
|
parent: string;
|
package/dist/event/event.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IRoleTypeEnum } from "../account";
|
|
2
|
+
import { IFeeCollectionType } from "../payment";
|
|
2
3
|
export interface IEventLinkModel {
|
|
3
4
|
name: string;
|
|
4
5
|
description: string;
|
|
@@ -49,4 +50,6 @@ export interface IEventModel {
|
|
|
49
50
|
is_manual_approve_buyer?: boolean;
|
|
50
51
|
isMoneyTransferred?: boolean;
|
|
51
52
|
links: IEventLinkModel[];
|
|
53
|
+
feeCollectionType: IFeeCollectionType;
|
|
54
|
+
isPublic: boolean;
|
|
52
55
|
}
|
package/dist/event/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":";;;AAWA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,uDAAqC,CAAA;AACvC,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
package/dist/payment/charge.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IFeeCollectionType } from "./payment";
|
|
1
2
|
export declare enum IStatusPaymentEnum {
|
|
2
3
|
pending = "pending",
|
|
3
4
|
approved = "approved",
|
|
@@ -49,4 +50,6 @@ export interface IChargeModel {
|
|
|
49
50
|
amount_left_after_all_refunds?: string;
|
|
50
51
|
external_transaction_total?: string;
|
|
51
52
|
sale_description?: string;
|
|
53
|
+
nimiFeeType: IFeeCollectionType;
|
|
54
|
+
nimiFee: Number;
|
|
52
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;AACrB,CAAC,EAZW,kBAAkB,kCAAlB,kBAAkB,QAY7B"}
|
package/dist/payment/index.d.ts
CHANGED
package/dist/payment/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./charge"), exports);
|
|
18
18
|
__exportStar(require("./coupon"), exports);
|
|
19
|
+
__exportStar(require("./payment"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IFeeCollectionType = void 0;
|
|
4
|
+
var IFeeCollectionType;
|
|
5
|
+
(function (IFeeCollectionType) {
|
|
6
|
+
IFeeCollectionType["PERCENTAGE_FROM_TICKET"] = "percentage_from_ticket";
|
|
7
|
+
IFeeCollectionType["ON_TOP_OF_TICKET"] = "on_top_of_ticket";
|
|
8
|
+
})(IFeeCollectionType || (exports.IFeeCollectionType = IFeeCollectionType = {}));
|
|
9
|
+
//# sourceMappingURL=payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/payment/payment.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uEAAiD,CAAA;IACjD,2DAAqC,CAAA;AACvC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
|
|
@@ -3,7 +3,7 @@ export declare enum IPostSMSType {
|
|
|
3
3
|
FORGOT_PASSWORD_SMS = "FORGOT_PASSWORD_SMS",
|
|
4
4
|
FORGOT_PASSWORD_WHATSAPP = "FORGOT_PASSWORD_WHATSAPP",
|
|
5
5
|
WELCOME_MAIL = "WELCOME_MAIL",
|
|
6
|
-
|
|
6
|
+
SMS_VERIFICATION = "SMS_VERIFICATION",
|
|
7
7
|
WEBHOOK_RECEIVED = "WEBHOOK_RECEIVED",
|
|
8
8
|
GENERATE_SALE = "GENERATE_SALE",
|
|
9
9
|
ORDER_WAITING_FOR_APPROVAL = "ORDER_WAITING_FOR_APPROVAL",
|
|
@@ -7,7 +7,7 @@ var IPostSMSType;
|
|
|
7
7
|
IPostSMSType["FORGOT_PASSWORD_SMS"] = "FORGOT_PASSWORD_SMS";
|
|
8
8
|
IPostSMSType["FORGOT_PASSWORD_WHATSAPP"] = "FORGOT_PASSWORD_WHATSAPP";
|
|
9
9
|
IPostSMSType["WELCOME_MAIL"] = "WELCOME_MAIL";
|
|
10
|
-
IPostSMSType["
|
|
10
|
+
IPostSMSType["SMS_VERIFICATION"] = "SMS_VERIFICATION";
|
|
11
11
|
IPostSMSType["WEBHOOK_RECEIVED"] = "WEBHOOK_RECEIVED";
|
|
12
12
|
IPostSMSType["GENERATE_SALE"] = "GENERATE_SALE";
|
|
13
13
|
IPostSMSType["ORDER_WAITING_FOR_APPROVAL"] = "ORDER_WAITING_FOR_APPROVAL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/send-notification/sms.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAkBX;AAlBD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,2DAA2C,CAAA;IAC3C,qEAAqD,CAAA;IACrD,6CAA6B,CAAA;IAC7B,
|
|
1
|
+
{"version":3,"file":"sms.js","sourceRoot":"","sources":["../../src/send-notification/sms.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAkBX;AAlBD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,2DAA2C,CAAA;IAC3C,qEAAqD,CAAA;IACrD,6CAA6B,CAAA;IAC7B,qDAAqC,CAAA;IACrC,qDAAqC,CAAA;IACrC,+CAA+B,CAAA;IAC/B,yEAAyD,CAAA;IACzD,iDAAiC,CAAA;IACjC,yDAAyC,CAAA;IACzC,iEAAiD,CAAA;IACjD,iCAAiB,CAAA;IACjB,2DAA2C,CAAA;IAC3C,+DAA+C,CAAA;IAC/C,iEAAiD,CAAA;IACjD,qEAAqD,CAAA;IACrD,qCAAqB,CAAA;AACvB,CAAC,EAlBW,YAAY,4BAAZ,YAAY,QAkBvB"}
|
|
@@ -14,5 +14,6 @@ export declare enum IPostSQSType {
|
|
|
14
14
|
UPDATE_TICKETS_SOLD = "UPDATE_TICKETS_SOLD",
|
|
15
15
|
UPDATE_TICKETS_REFUND = "UPDATE_TICKETS_REFUND",
|
|
16
16
|
UPDATE_TICKETS_PENDING = "UPDATE_TICKETS_PENDING",
|
|
17
|
-
UPDATE_TICKETS_CANCELLED = "UPDATE_TICKETS_CANCELLED"
|
|
17
|
+
UPDATE_TICKETS_CANCELLED = "UPDATE_TICKETS_CANCELLED",
|
|
18
|
+
SMS_VERIFICATION = "SMS_VERIFICATION"
|
|
18
19
|
}
|
|
@@ -19,5 +19,6 @@ var IPostSQSType;
|
|
|
19
19
|
IPostSQSType["UPDATE_TICKETS_REFUND"] = "UPDATE_TICKETS_REFUND";
|
|
20
20
|
IPostSQSType["UPDATE_TICKETS_PENDING"] = "UPDATE_TICKETS_PENDING";
|
|
21
21
|
IPostSQSType["UPDATE_TICKETS_CANCELLED"] = "UPDATE_TICKETS_CANCELLED";
|
|
22
|
+
IPostSQSType["SMS_VERIFICATION"] = "SMS_VERIFICATION";
|
|
22
23
|
})(IPostSQSType || (exports.IPostSQSType = IPostSQSType = {}));
|
|
23
24
|
//# sourceMappingURL=sqs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../src/send-notification/sqs.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"sqs.js","sourceRoot":"","sources":["../../src/send-notification/sqs.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAkBX;AAlBD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,2DAA2C,CAAA;IAC3C,qEAAqD,CAAA;IACrD,6CAA6B,CAAA;IAC7B,yDAAyC,CAAA;IACzC,qDAAqC,CAAA;IACrC,+CAA+B,CAAA;IAC/B,yEAAyD,CAAA;IACzD,iDAAiC,CAAA;IACjC,yDAAyC,CAAA;IACzC,iEAAiD,CAAA;IACjD,iCAAiB,CAAA;IACjB,2DAA2C,CAAA;IAC3C,+DAA+C,CAAA;IAC/C,iEAAiD,CAAA;IACjD,qEAAqD,CAAA;IACrD,qDAAqC,CAAA;AACvC,CAAC,EAlBW,YAAY,4BAAZ,YAAY,QAkBvB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
export interface IEndUserModel {
|
|
3
|
+
_id: string | mongoose.Types.ObjectId;
|
|
4
|
+
fname: string;
|
|
5
|
+
lname: string;
|
|
6
|
+
email: string;
|
|
7
|
+
emailVerifiedToken: string;
|
|
8
|
+
twitterProfile: string;
|
|
9
|
+
instagramProfile: string;
|
|
10
|
+
facebookProfile: string;
|
|
11
|
+
token: string;
|
|
12
|
+
forgetPasswordToken: string;
|
|
13
|
+
roles: Array<string>;
|
|
14
|
+
isEmailVerified: Boolean;
|
|
15
|
+
isPhoneVerified: Boolean;
|
|
16
|
+
phone: string;
|
|
17
|
+
gender: string;
|
|
18
|
+
imageUrl: string;
|
|
19
|
+
verificationCode: string;
|
|
20
|
+
birthDate: Date;
|
|
21
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
22
|
+
account: string | mongoose.Types.ObjectId;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endUser.js","sourceRoot":"","sources":["../../src/user/endUser.ts"],"names":[],"mappings":""}
|
package/dist/user/index.d.ts
CHANGED
package/dist/user/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./user"), exports);
|
|
18
18
|
__exportStar(require("./partner"), exports);
|
|
19
|
+
__exportStar(require("./endUser"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/user/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,4CAA0B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IChargeModel } from "../payment";
|
|
1
|
+
import { IChargeModel, IFeeCollectionType } from "../payment";
|
|
2
2
|
import { IUserEventModel } from "./userEvent";
|
|
3
3
|
export interface IEventOrderModel {
|
|
4
4
|
event?: string;
|
|
@@ -16,4 +16,6 @@ export interface IEventOrderModel {
|
|
|
16
16
|
externalAuthorizationNumber?: string;
|
|
17
17
|
isTicketLimitReached?: boolean;
|
|
18
18
|
price?: number;
|
|
19
|
+
nimiFeeType?: IFeeCollectionType;
|
|
20
|
+
nimiFee?: number;
|
|
19
21
|
}
|
package/package.json
CHANGED
package/src/account/account.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface IAccountModel {
|
|
|
46
46
|
email: string;
|
|
47
47
|
socialGovId: string;
|
|
48
48
|
collaborates: ICollaboratesModel[];
|
|
49
|
-
invitees:
|
|
49
|
+
invitees: { state: IInviteeStateTypeEnum; name: string; email: string; role: IRoleTypeEnum; token: string }[];
|
|
50
50
|
isAccountVerified: boolean;
|
|
51
51
|
isEmailVerified: boolean;
|
|
52
52
|
transactionPercentage: number;
|
|
@@ -56,8 +56,8 @@ export interface IAccountModel {
|
|
|
56
56
|
sellerPaymeId: string;
|
|
57
57
|
currency: string;
|
|
58
58
|
_id: string;
|
|
59
|
-
createdAt:
|
|
60
|
-
updatedAt:
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
61
|
isSubAccount: boolean;
|
|
62
62
|
handler: string;
|
|
63
63
|
parent: string;
|
package/src/event/event.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IRoleTypeEnum } from "../account";
|
|
2
|
+
import { IFeeCollectionType } from "../payment";
|
|
2
3
|
export interface IEventLinkModel {
|
|
3
4
|
name: string;
|
|
4
5
|
description: string;
|
|
@@ -40,4 +41,6 @@ export interface IEventModel {
|
|
|
40
41
|
is_manual_approve_buyer?: boolean;
|
|
41
42
|
isMoneyTransferred?: boolean;
|
|
42
43
|
links: IEventLinkModel[];
|
|
44
|
+
feeCollectionType: IFeeCollectionType;
|
|
45
|
+
isPublic: boolean;
|
|
43
46
|
}
|
package/src/payment/charge.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IFeeCollectionType } from "./payment";
|
|
2
|
+
|
|
1
3
|
export enum IStatusPaymentEnum {
|
|
2
4
|
pending = "pending",
|
|
3
5
|
approved = "approved",
|
|
@@ -55,4 +57,6 @@ export interface IChargeModel {
|
|
|
55
57
|
amount_left_after_all_refunds?: string;
|
|
56
58
|
external_transaction_total?: string;
|
|
57
59
|
sale_description?: string;
|
|
60
|
+
nimiFeeType: IFeeCollectionType;
|
|
61
|
+
nimiFee: Number;
|
|
58
62
|
}
|
package/src/payment/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ export enum IPostSMSType {
|
|
|
3
3
|
FORGOT_PASSWORD_SMS = "FORGOT_PASSWORD_SMS",
|
|
4
4
|
FORGOT_PASSWORD_WHATSAPP = "FORGOT_PASSWORD_WHATSAPP",
|
|
5
5
|
WELCOME_MAIL = "WELCOME_MAIL",
|
|
6
|
-
|
|
6
|
+
SMS_VERIFICATION = "SMS_VERIFICATION",
|
|
7
7
|
WEBHOOK_RECEIVED = "WEBHOOK_RECEIVED",
|
|
8
8
|
GENERATE_SALE = "GENERATE_SALE",
|
|
9
9
|
ORDER_WAITING_FOR_APPROVAL = "ORDER_WAITING_FOR_APPROVAL",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
export interface IEndUserModel {
|
|
3
|
+
_id: string | mongoose.Types.ObjectId;
|
|
4
|
+
fname: string;
|
|
5
|
+
lname: string;
|
|
6
|
+
email: string;
|
|
7
|
+
emailVerifiedToken: string;
|
|
8
|
+
twitterProfile: string;
|
|
9
|
+
instagramProfile: string;
|
|
10
|
+
facebookProfile: string;
|
|
11
|
+
token: string;
|
|
12
|
+
forgetPasswordToken: string;
|
|
13
|
+
roles: Array<string>;
|
|
14
|
+
isEmailVerified: Boolean;
|
|
15
|
+
isPhoneVerified: Boolean;
|
|
16
|
+
phone: string;
|
|
17
|
+
gender: string;
|
|
18
|
+
imageUrl: string;
|
|
19
|
+
verificationCode: string;
|
|
20
|
+
birthDate: Date;
|
|
21
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
22
|
+
account: string | mongoose.Types.ObjectId;
|
|
23
|
+
}
|
package/src/user/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IChargeModel } from "../payment";
|
|
1
|
+
import { IChargeModel, IFeeCollectionType } from "../payment";
|
|
2
2
|
import { IUserEventModel } from "./userEvent";
|
|
3
3
|
export interface IEventOrderModel {
|
|
4
4
|
event?: string;
|
|
@@ -16,4 +16,6 @@ export interface IEventOrderModel {
|
|
|
16
16
|
externalAuthorizationNumber?: string;
|
|
17
17
|
isTicketLimitReached?: boolean;
|
|
18
18
|
price?: number;
|
|
19
|
+
nimiFeeType?: IFeeCollectionType;
|
|
20
|
+
nimiFee?: number;
|
|
19
21
|
}
|