@rocketlink/crm-model 1.0.236 → 1.0.237
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/dtos/csv.request.dto.d.ts +1 -1
- package/dist/dtos/csv.request.dto.d.ts.map +1 -1
- package/dist/dtos/csvRow.request.dto.d.ts +1 -1
- package/dist/dtos/csvRow.request.dto.d.ts.map +1 -1
- package/dist/dtos/mid.request.dto.d.ts +1 -1
- package/dist/dtos/mid.request.dto.d.ts.map +1 -1
- package/dist/dtos/subscription.request.dto.d.ts +1 -1
- package/dist/dtos/subscription.request.dto.d.ts.map +1 -1
- package/dist/dtos/transaction.request.dto.d.ts +1 -1
- package/dist/dtos/transaction.request.dto.d.ts.map +1 -1
- package/dist/gateways/adapters/model/transactionEmp.model.d.ts +1 -1
- package/dist/gateways/adapters/model/transactionEmp.model.d.ts.map +1 -1
- package/dist/gateways/adapters/model/transactionEmp.model.js +2 -2
- package/dist/gateways/adapters/model/transactionFinXP.model.d.ts +1 -1
- package/dist/gateways/adapters/model/transactionFinXP.model.d.ts.map +1 -1
- package/dist/gateways/adapters/model/transactionFinXP.model.js +3 -3
- package/dist/gateways/adapters/model/transactionNovalNet.model.d.ts +1 -1
- package/dist/gateways/adapters/model/transactionNovalNet.model.d.ts.map +1 -1
- package/dist/gateways/adapters/model/transactionNovalNet.model.js +2 -2
- package/dist/index.d.ts +17 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -1
- package/dist/mappers/csv/csvRowDataOrder.csv.mapper.d.ts +5 -0
- package/dist/mappers/csv/csvRowDataOrder.csv.mapper.d.ts.map +1 -0
- package/dist/mappers/csv/csvRowDataOrder.csv.mapper.js +21 -0
- package/dist/mappers/csv/csvRowDataSubscriptionId.csv.mapper.d.ts +4 -0
- package/dist/mappers/csv/csvRowDataSubscriptionId.csv.mapper.d.ts.map +1 -0
- package/dist/mappers/csv/csvRowDataSubscriptionId.csv.mapper.js +7 -0
- package/dist/model/campaign.model.d.ts +1 -1
- package/dist/model/campaign.model.d.ts.map +1 -1
- package/dist/model/constants/csv.constants.d.ts +26 -0
- package/dist/model/constants/csv.constants.d.ts.map +1 -0
- package/dist/model/constants/csv.constants.js +25 -0
- package/dist/model/constants/event.constants.d.ts +14 -0
- package/dist/model/constants/event.constants.d.ts.map +1 -0
- package/dist/model/constants/event.constants.js +15 -0
- package/dist/model/constants/gateway.constants.d.ts +21 -0
- package/dist/model/constants/gateway.constants.d.ts.map +1 -0
- package/dist/model/constants/gateway.constants.js +21 -0
- package/dist/model/constants/hookOutbox.constants.d.ts +7 -0
- package/dist/model/constants/hookOutbox.constants.d.ts.map +1 -0
- package/dist/model/constants/hookOutbox.constants.js +8 -0
- package/dist/model/constants/job.constants.d.ts +11 -0
- package/dist/model/constants/job.constants.d.ts.map +1 -0
- package/dist/model/constants/job.constants.js +12 -0
- package/dist/model/constants/lead.constants.d.ts +6 -0
- package/dist/model/constants/lead.constants.d.ts.map +1 -0
- package/dist/model/constants/lead.constants.js +7 -0
- package/dist/model/constants/mid.constants.d.ts +6 -0
- package/dist/model/constants/mid.constants.d.ts.map +1 -0
- package/dist/model/constants/mid.constants.js +7 -0
- package/dist/model/constants/offer.constants.d.ts +7 -0
- package/dist/model/constants/offer.constants.d.ts.map +1 -0
- package/dist/model/constants/offer.constants.js +8 -0
- package/dist/model/constants/order.constants.d.ts +8 -0
- package/dist/model/constants/order.constants.d.ts.map +1 -0
- package/dist/model/constants/order.constants.js +9 -0
- package/dist/model/constants/paymentData.constants.d.ts +7 -0
- package/dist/model/constants/paymentData.constants.d.ts.map +1 -0
- package/dist/model/constants/paymentData.constants.js +8 -0
- package/dist/model/constants/subscription.constants.d.ts +16 -0
- package/dist/model/constants/subscription.constants.d.ts.map +1 -0
- package/dist/model/constants/subscription.constants.js +24 -0
- package/dist/model/constants/subscriptionRebill.constants.d.ts +4 -0
- package/dist/model/constants/subscriptionRebill.constants.d.ts.map +1 -0
- package/dist/model/constants/subscriptionRebill.constants.js +6 -0
- package/dist/model/constants/transaction.constants.d.ts +27 -0
- package/dist/model/constants/transaction.constants.d.ts.map +1 -0
- package/dist/model/constants/transaction.constants.js +25 -0
- package/dist/model/csv.model.d.ts +2 -30
- package/dist/model/csv.model.d.ts.map +1 -1
- package/dist/model/csv.model.js +0 -24
- package/dist/model/csvRowDataOrder.model.d.ts +21 -0
- package/dist/model/csvRowDataOrder.model.d.ts.map +1 -0
- package/dist/model/csvRowDataSubscriptionId.model.d.ts +4 -0
- package/dist/model/csvRowDataSubscriptionId.model.d.ts.map +1 -0
- package/dist/model/csvRowDataSubscriptionId.model.js +2 -0
- package/dist/model/gateway.model.d.ts +1 -20
- package/dist/model/gateway.model.d.ts.map +1 -1
- package/dist/model/gateway.model.js +0 -19
- package/dist/model/hookOutbox.model.d.ts +1 -6
- package/dist/model/hookOutbox.model.d.ts.map +1 -1
- package/dist/model/hookOutbox.model.js +0 -6
- package/dist/model/job.model.d.ts +1 -1
- package/dist/model/job.model.d.ts.map +1 -1
- package/dist/model/lead.model.d.ts +1 -1
- package/dist/model/lead.model.d.ts.map +1 -1
- package/dist/model/mid.model.d.ts +1 -5
- package/dist/model/mid.model.d.ts.map +1 -1
- package/dist/model/mid.model.js +0 -5
- package/dist/model/offer.model.d.ts +2 -2
- package/dist/model/offer.model.d.ts.map +1 -1
- package/dist/model/order.model.d.ts +1 -1
- package/dist/model/order.model.d.ts.map +1 -1
- package/dist/model/paymentData.model.d.ts +1 -6
- package/dist/model/paymentData.model.d.ts.map +1 -1
- package/dist/model/paymentData.model.js +4 -9
- package/dist/model/rebillingConfig.model.d.ts +14 -0
- package/dist/model/rebillingConfig.model.d.ts.map +1 -0
- package/dist/model/rebillingConfig.model.js +2 -0
- package/dist/model/subscription.model.d.ts +2 -4
- package/dist/model/subscription.model.d.ts.map +1 -1
- package/dist/model/subscription.model.js +0 -12
- package/dist/model/subscriptionRebill.model.d.ts +1 -0
- package/dist/model/subscriptionRebill.model.d.ts.map +1 -0
- package/dist/model/subscriptionRebill.model.js +1 -0
- package/dist/model/transaction.model.d.ts +2 -20
- package/dist/model/transaction.model.d.ts.map +1 -1
- package/dist/model/transaction.model.js +0 -17
- package/dist/model/transactionError.model.d.ts +1 -1
- package/dist/model/transactionError.model.d.ts.map +1 -1
- package/dist/util/constants.d.ts +1 -91
- package/dist/util/constants.d.ts.map +1 -1
- package/dist/util/constants.js +2 -82
- package/package.json +1 -1
- package/src/dtos/csv.request.dto.ts +1 -1
- package/src/dtos/csvRow.request.dto.ts +1 -1
- package/src/dtos/mid.request.dto.ts +1 -1
- package/src/dtos/subscription.request.dto.ts +1 -1
- package/src/dtos/transaction.request.dto.ts +1 -1
- package/src/gateways/adapters/model/transactionEmp.model.ts +1 -1
- package/src/gateways/adapters/model/transactionFinXP.model.ts +1 -1
- package/src/gateways/adapters/model/transactionNovalNet.model.ts +1 -1
- package/src/index.ts +22 -2
- package/src/mappers/csv/csvRowDataOrder.csv.mapper.ts +20 -0
- package/src/mappers/csv/csvRowDataSubscriptionId.csv.mapper.ts +6 -0
- package/src/model/campaign.model.ts +1 -1
- package/src/model/constants/csv.constants.ts +27 -0
- package/src/model/constants/event.constants.ts +13 -0
- package/src/model/constants/gateway.constants.ts +21 -0
- package/src/model/constants/hookOutbox.constants.ts +6 -0
- package/src/model/constants/job.constants.ts +10 -0
- package/src/model/constants/lead.constants.ts +5 -0
- package/src/model/constants/mid.constants.ts +5 -0
- package/src/model/constants/offer.constants.ts +6 -0
- package/src/model/constants/order.constants.ts +7 -0
- package/src/model/constants/paymentData.constants.ts +7 -0
- package/src/model/constants/subscription.constants.ts +26 -0
- package/src/model/constants/subscriptionRebill.constants.ts +3 -0
- package/src/model/constants/transaction.constants.ts +29 -0
- package/src/model/csv.model.ts +3 -53
- package/src/model/csvRowDataOrder.model.ts +21 -0
- package/src/model/csvRowDataSubscriptionId.model.ts +3 -0
- package/src/model/gateway.model.ts +2 -22
- package/src/model/hookOutbox.model.ts +1 -6
- package/src/model/job.model.ts +1 -1
- package/src/model/lead.model.ts +1 -1
- package/src/model/mid.model.ts +2 -7
- package/src/model/offer.model.ts +3 -3
- package/src/model/order.model.ts +2 -2
- package/src/model/paymentData.model.ts +2 -9
- package/src/model/{recurringSettingConfig.model.ts → rebillingConfig.model.ts} +5 -5
- package/src/model/subscription.model.ts +2 -14
- package/src/model/subscriptionRebill.model.ts +0 -0
- package/src/model/transaction.model.ts +3 -24
- package/src/model/transactionError.model.ts +1 -1
- package/src/util/constants.ts +2 -106
- package/dist/model/recurringSettingConfig.model.d.ts +0 -14
- package/dist/model/recurringSettingConfig.model.d.ts.map +0 -1
- /package/dist/model/{recurringSettingConfig.model.js → csvRowDataOrder.model.js} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrderItem } from "./order.model";
|
|
2
|
+
import type { SUBSCRIPTION_STATUS } from "./constants/subscription.constants";
|
|
2
3
|
export interface Subscription {
|
|
3
4
|
id?: number;
|
|
4
5
|
username?: string;
|
|
@@ -6,7 +7,7 @@ export interface Subscription {
|
|
|
6
7
|
startDate?: Date;
|
|
7
8
|
endDate?: Date;
|
|
8
9
|
nextBillingDate?: Date;
|
|
9
|
-
status?:
|
|
10
|
+
status?: SUBSCRIPTION_STATUS;
|
|
10
11
|
orderItemId?: number;
|
|
11
12
|
orderItem?: OrderItem;
|
|
12
13
|
registrationEmailSent?: boolean;
|
|
@@ -25,7 +26,4 @@ export interface Subscription {
|
|
|
25
26
|
leadEmail?: string;
|
|
26
27
|
bankName?: string;
|
|
27
28
|
}
|
|
28
|
-
export declare const subscriptionCredentialsColumn: Partial<Record<keyof Subscription, string>>;
|
|
29
|
-
export declare const subscriptionCredentialsColumnMapper: Partial<Record<keyof Subscription, string>>;
|
|
30
|
-
export declare const subscriptionCredentialsColumnKeys: string[];
|
|
31
29
|
//# sourceMappingURL=subscription.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.model.d.ts","sourceRoot":"","sources":["../../src/model/subscription.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription.model.d.ts","sourceRoot":"","sources":["../../src/model/subscription.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.subscriptionCredentialsColumnKeys = exports.subscriptionCredentialsColumnMapper = exports.subscriptionCredentialsColumn = void 0;
|
|
4
|
-
exports.subscriptionCredentialsColumn = {
|
|
5
|
-
orderId: "order_id",
|
|
6
|
-
id: "subscription_id",
|
|
7
|
-
email: "email",
|
|
8
|
-
startDate: "subscription_date",
|
|
9
|
-
username: "username",
|
|
10
|
-
password: "password",
|
|
11
|
-
status: "status"
|
|
12
|
-
};
|
|
13
|
-
exports.subscriptionCredentialsColumnMapper = exports.subscriptionCredentialsColumn;
|
|
14
|
-
exports.subscriptionCredentialsColumnKeys = Object.keys(exports.subscriptionCredentialsColumn);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=subscriptionRebill.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionRebill.model.d.ts","sourceRoot":"","sources":["../../src/model/subscriptionRebill.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
import { BANKS } from "./gateway.
|
|
1
|
+
import { BANKS } from "./constants/gateway.constants";
|
|
2
2
|
import { Mid } from "./mid.model";
|
|
3
|
-
|
|
4
|
-
PENDING_ASYNC: string;
|
|
5
|
-
SUCCESS: string;
|
|
6
|
-
FAILED: string;
|
|
7
|
-
UNKNOWN: string;
|
|
8
|
-
};
|
|
9
|
-
export type TRANSACTION_STATUS = (typeof TRANSACTION_STATUS)[keyof typeof TRANSACTION_STATUS];
|
|
10
|
-
export declare const APP_TRANSACTION_TYPE: {
|
|
11
|
-
INITIAL: string;
|
|
12
|
-
REBILL: string;
|
|
13
|
-
STEPDOWN: string;
|
|
14
|
-
};
|
|
15
|
-
export type APP_TRANSACTION_TYPE = (typeof APP_TRANSACTION_TYPE)[keyof typeof APP_TRANSACTION_TYPE];
|
|
16
|
-
export declare const PAYMENT_TYPE: {
|
|
17
|
-
SDD_SALE: string;
|
|
18
|
-
REFUND: string;
|
|
19
|
-
CHARGEBACK: string;
|
|
20
|
-
};
|
|
21
|
-
export type PAYMENT_TYPE = (typeof PAYMENT_TYPE)[keyof typeof PAYMENT_TYPE];
|
|
3
|
+
import type { PAYMENT_TYPE, APP_TRANSACTION_TYPE, TRANSACTION_STATUS } from "./constants/transaction.constants";
|
|
22
4
|
export interface Transaction {
|
|
23
5
|
id?: number;
|
|
24
6
|
bank?: BANKS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.model.d.ts","sourceRoot":"","sources":["../../src/model/transaction.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transaction.model.d.ts","sourceRoot":"","sources":["../../src/model/transaction.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEhH,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,uBAAuB,CAAC,EAAE,oBAAoB,CAAC;IAC/C,yBAAyB,CAAC,EAAE,kBAAkB,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PAYMENT_TYPE = exports.APP_TRANSACTION_TYPE = exports.TRANSACTION_STATUS = void 0;
|
|
4
|
-
exports.TRANSACTION_STATUS = {
|
|
5
|
-
PENDING_ASYNC: "PENDING_ASYNC",
|
|
6
|
-
SUCCESS: "SUCCESS",
|
|
7
|
-
FAILED: "FAILED",
|
|
8
|
-
UNKNOWN: "UNKNOWN",
|
|
9
|
-
};
|
|
10
|
-
exports.APP_TRANSACTION_TYPE = {
|
|
11
|
-
INITIAL: "INITIAL",
|
|
12
|
-
REBILL: "REBILL",
|
|
13
|
-
STEPDOWN: "STEPDOWN",
|
|
14
|
-
};
|
|
15
|
-
exports.PAYMENT_TYPE = {
|
|
16
|
-
SDD_SALE: "SDD_SALE",
|
|
17
|
-
REFUND: "REFUND",
|
|
18
|
-
CHARGEBACK: "CHARGEBACK"
|
|
19
|
-
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionError.model.d.ts","sourceRoot":"","sources":["../../src/model/transactionError.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transactionError.model.d.ts","sourceRoot":"","sources":["../../src/model/transactionError.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
package/dist/util/constants.d.ts
CHANGED
|
@@ -3,91 +3,11 @@ export declare const YES_NO: {
|
|
|
3
3
|
NO: string;
|
|
4
4
|
};
|
|
5
5
|
export type YES_NO = (typeof YES_NO)[keyof typeof YES_NO];
|
|
6
|
+
export declare const ALL = "all";
|
|
6
7
|
export declare const MIME_TYPES: {
|
|
7
8
|
csv: string;
|
|
8
9
|
};
|
|
9
10
|
export type MIME_TYPES = (typeof MIME_TYPES)[keyof typeof MIME_TYPES];
|
|
10
|
-
export declare const CSV_TYPES: {
|
|
11
|
-
CREATE_ORDERS: string;
|
|
12
|
-
BILL_SUBSCRIPTIONS: string;
|
|
13
|
-
IMPORT_TRANSACTIONS_SDD: string;
|
|
14
|
-
IMPORT_TRANSACTIONS_CHARGEBACK: string;
|
|
15
|
-
CANCEL_SUBSCRIPTIONS: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const CSV_TYPE_VALUES: string[];
|
|
18
|
-
export type CSV_TYPES = (typeof CSV_TYPES)[keyof typeof CSV_TYPES];
|
|
19
|
-
export declare const CSV_STATUS: {
|
|
20
|
-
UPLOADED: string;
|
|
21
|
-
QUEUED: string;
|
|
22
|
-
PROCESSING: string;
|
|
23
|
-
COMPLETED: string;
|
|
24
|
-
COMPLETED_WITH_ERRORS: string;
|
|
25
|
-
FAILED: string;
|
|
26
|
-
CANCELLED: string;
|
|
27
|
-
};
|
|
28
|
-
export type CSVStatusTypes = (typeof CSV_STATUS)[keyof typeof CSV_STATUS];
|
|
29
|
-
export declare const CSV_ROW_STATUS: {
|
|
30
|
-
QUEUED: string;
|
|
31
|
-
SUCCESS: string;
|
|
32
|
-
FAILED: string;
|
|
33
|
-
};
|
|
34
|
-
export type CSVRowStatusTypes = (typeof CSV_ROW_STATUS)[keyof typeof CSV_ROW_STATUS];
|
|
35
|
-
export declare const REGISTRATION_MODE: {
|
|
36
|
-
LIVE_TRAFFIC: string;
|
|
37
|
-
CSV: string;
|
|
38
|
-
};
|
|
39
|
-
export type REGISTRATION_MODE = (typeof REGISTRATION_MODE)[keyof typeof REGISTRATION_MODE];
|
|
40
|
-
export declare const OFFER_TYPE: {
|
|
41
|
-
OFFER: string;
|
|
42
|
-
UPSELL: string;
|
|
43
|
-
DOWNSELL: string;
|
|
44
|
-
};
|
|
45
|
-
export type OFFER_TYPE = (typeof OFFER_TYPE)[keyof typeof OFFER_TYPE];
|
|
46
|
-
export declare const TRANSACTION_TYPE: {
|
|
47
|
-
sdd_sale: string;
|
|
48
|
-
chargeback: string;
|
|
49
|
-
refund: string;
|
|
50
|
-
};
|
|
51
|
-
export declare const ALL = "all";
|
|
52
|
-
export type TRANSACTION_TYPE = (typeof TRANSACTION_TYPE)[keyof typeof TRANSACTION_TYPE];
|
|
53
|
-
export declare const TRANSACTION_TYPE_VALUES: string[];
|
|
54
|
-
export declare const TRANSACTION_TYPE_CODE: {
|
|
55
|
-
DB: string;
|
|
56
|
-
RF: string;
|
|
57
|
-
PA: string;
|
|
58
|
-
CB: string;
|
|
59
|
-
CP: string;
|
|
60
|
-
RV: string;
|
|
61
|
-
};
|
|
62
|
-
export declare const ORDER_STATUS: {
|
|
63
|
-
INITIATED: string;
|
|
64
|
-
COMPLETED: string;
|
|
65
|
-
FAILED: string;
|
|
66
|
-
};
|
|
67
|
-
export type ORDER_STATUS = (typeof ORDER_STATUS)[keyof typeof ORDER_STATUS];
|
|
68
|
-
export declare const ORDER_STATUS_VALUES: string[];
|
|
69
|
-
export declare const SUBSCRIPTION_STATUS: {
|
|
70
|
-
PAYMENT_PENDING: string;
|
|
71
|
-
PAYMENT_PENDING_CONFIRMATION: string;
|
|
72
|
-
ACTIVE: string;
|
|
73
|
-
EXPIRED: string;
|
|
74
|
-
CANCELLED: string;
|
|
75
|
-
TRIAL: string;
|
|
76
|
-
};
|
|
77
|
-
export type SUBSCRIPTION_STATUS = (typeof SUBSCRIPTION_STATUS)[keyof typeof SUBSCRIPTION_STATUS];
|
|
78
|
-
export declare const EVENTS: {
|
|
79
|
-
ORDER_CREATED: string;
|
|
80
|
-
ORDER_UPDATED: string;
|
|
81
|
-
SUBSCRIPTION_CREATED: string;
|
|
82
|
-
TRANSACTION_SDD_IMPORTED: string;
|
|
83
|
-
TRANSACTION_REFUND_IMPORTED: string;
|
|
84
|
-
TRANSACTION_CHARGEBACK_IMPORTED: string;
|
|
85
|
-
TRANSACTION_REFUND_ISSUED: string;
|
|
86
|
-
TRANSACTION_UPDATED: string;
|
|
87
|
-
TRANSACTION_ERROR: string;
|
|
88
|
-
SUBSCRIPTION_CANCELLATION_ISSUED: string;
|
|
89
|
-
};
|
|
90
|
-
export type EVENTS = (typeof EVENTS)[keyof typeof EVENTS];
|
|
91
11
|
export declare const SAFE_WHILE_LIMIT = 1000;
|
|
92
12
|
export declare const CURRENCIES: {
|
|
93
13
|
EUR: string;
|
|
@@ -97,14 +17,4 @@ export declare const CURRENCIES: {
|
|
|
97
17
|
export type CURRENCIES = (typeof CURRENCIES)[keyof typeof CURRENCIES];
|
|
98
18
|
export declare const MB_1: number;
|
|
99
19
|
export declare const MAX_MB_STREAM_SIZE: number;
|
|
100
|
-
export declare const JOB_STATE: {
|
|
101
|
-
CREATED: string;
|
|
102
|
-
RETRY: string;
|
|
103
|
-
ACTIVE: string;
|
|
104
|
-
COMPLETED: string;
|
|
105
|
-
EXPIRED: string;
|
|
106
|
-
CANCELLED: string;
|
|
107
|
-
FAILED: string;
|
|
108
|
-
};
|
|
109
|
-
export type JobStateTypes = (typeof JOB_STATE)[keyof typeof JOB_STATE];
|
|
110
20
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/util/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/util/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,GAAG,QAAQ,CAAC;AAEzB,eAAO,MAAM,UAAU;;CAEtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,OAAQ,CAAC;AAEtC,eAAO,MAAM,UAAU;;;;CAItB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,eAAO,MAAM,IAAI,QAAkB,CAAC;AAEpC,eAAO,MAAM,kBAAkB,QAAW,CAAC"}
|
package/dist/util/constants.js
CHANGED
|
@@ -1,85 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MAX_MB_STREAM_SIZE = exports.MB_1 = exports.CURRENCIES = exports.SAFE_WHILE_LIMIT = exports.MIME_TYPES = exports.ALL = exports.YES_NO = void 0;
|
|
4
4
|
exports.YES_NO = {
|
|
5
5
|
YES: "Y",
|
|
6
6
|
NO: "N",
|
|
7
7
|
};
|
|
8
|
+
exports.ALL = 'all';
|
|
8
9
|
exports.MIME_TYPES = {
|
|
9
10
|
csv: "text/csv",
|
|
10
11
|
};
|
|
11
|
-
exports.CSV_TYPES = {
|
|
12
|
-
CREATE_ORDERS: "CREATE_ORDERS",
|
|
13
|
-
BILL_SUBSCRIPTIONS: "BILL_SUBSCRIPTIONS",
|
|
14
|
-
IMPORT_TRANSACTIONS_SDD: "IMPORT_TRANSACTIONS_SDD",
|
|
15
|
-
IMPORT_TRANSACTIONS_CHARGEBACK: "IMPORT_TRANSACTIONS_CHARGEBACK",
|
|
16
|
-
CANCEL_SUBSCRIPTIONS: "CANCEL_SUBSCRIPTIONS",
|
|
17
|
-
};
|
|
18
|
-
exports.CSV_TYPE_VALUES = Object.values(exports.CSV_TYPES);
|
|
19
|
-
exports.CSV_STATUS = {
|
|
20
|
-
UPLOADED: "UPLOADED",
|
|
21
|
-
QUEUED: "QUEUED",
|
|
22
|
-
PROCESSING: "PROCESSING",
|
|
23
|
-
COMPLETED: "COMPLETED",
|
|
24
|
-
COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
|
|
25
|
-
FAILED: "FAILED",
|
|
26
|
-
CANCELLED: "CANCELLED"
|
|
27
|
-
};
|
|
28
|
-
exports.CSV_ROW_STATUS = {
|
|
29
|
-
QUEUED: 'QUEUED',
|
|
30
|
-
SUCCESS: "SUCCESS",
|
|
31
|
-
FAILED: "FAILED",
|
|
32
|
-
};
|
|
33
|
-
exports.REGISTRATION_MODE = {
|
|
34
|
-
LIVE_TRAFFIC: "LIVE_TRAFFIC",
|
|
35
|
-
CSV: "CSV"
|
|
36
|
-
};
|
|
37
|
-
exports.OFFER_TYPE = {
|
|
38
|
-
OFFER: "OFFER",
|
|
39
|
-
UPSELL: "UPSELL",
|
|
40
|
-
DOWNSELL: "DOWNSELL"
|
|
41
|
-
};
|
|
42
|
-
exports.TRANSACTION_TYPE = {
|
|
43
|
-
sdd_sale: 'sdd_sale',
|
|
44
|
-
chargeback: 'chargeback',
|
|
45
|
-
refund: 'refund'
|
|
46
|
-
};
|
|
47
|
-
exports.ALL = 'all';
|
|
48
|
-
exports.TRANSACTION_TYPE_VALUES = Object.values(exports.TRANSACTION_TYPE);
|
|
49
|
-
exports.TRANSACTION_TYPE_CODE = {
|
|
50
|
-
DB: 'Debit',
|
|
51
|
-
RF: 'Refund',
|
|
52
|
-
PA: 'Payment Authorization',
|
|
53
|
-
CB: 'Chargeback',
|
|
54
|
-
CP: 'Capture',
|
|
55
|
-
RV: 'Reversal',
|
|
56
|
-
};
|
|
57
|
-
exports.ORDER_STATUS = {
|
|
58
|
-
INITIATED: "INITIATED",
|
|
59
|
-
COMPLETED: "COMPLETED",
|
|
60
|
-
FAILED: "FAILED",
|
|
61
|
-
};
|
|
62
|
-
exports.ORDER_STATUS_VALUES = Object.values(exports.CSV_TYPES);
|
|
63
|
-
exports.SUBSCRIPTION_STATUS = {
|
|
64
|
-
PAYMENT_PENDING: "PAYMENT_PENDING",
|
|
65
|
-
PAYMENT_PENDING_CONFIRMATION: "PAYMENT_PENDING_CONFIRMATION",
|
|
66
|
-
ACTIVE: "ACTIVE",
|
|
67
|
-
EXPIRED: "EXPIRED",
|
|
68
|
-
CANCELLED: "CANCELLED",
|
|
69
|
-
TRIAL: "TRIAL"
|
|
70
|
-
};
|
|
71
|
-
exports.EVENTS = {
|
|
72
|
-
ORDER_CREATED: "order.created",
|
|
73
|
-
ORDER_UPDATED: "order.updated",
|
|
74
|
-
SUBSCRIPTION_CREATED: "subscription.created",
|
|
75
|
-
TRANSACTION_SDD_IMPORTED: "transaction.sdd_sale.imported",
|
|
76
|
-
TRANSACTION_REFUND_IMPORTED: "transaction.refund.imported",
|
|
77
|
-
TRANSACTION_CHARGEBACK_IMPORTED: "transaction.chargeback.imported",
|
|
78
|
-
TRANSACTION_REFUND_ISSUED: "transaction.refund.issued",
|
|
79
|
-
TRANSACTION_UPDATED: "transaction.updated",
|
|
80
|
-
TRANSACTION_ERROR: "transaction.error",
|
|
81
|
-
SUBSCRIPTION_CANCELLATION_ISSUED: "subscription.cancellation.issued"
|
|
82
|
-
};
|
|
83
12
|
exports.SAFE_WHILE_LIMIT = 1_000;
|
|
84
13
|
exports.CURRENCIES = {
|
|
85
14
|
EUR: "EUR",
|
|
@@ -88,12 +17,3 @@ exports.CURRENCIES = {
|
|
|
88
17
|
};
|
|
89
18
|
exports.MB_1 = 1 * 1024 * 1024;
|
|
90
19
|
exports.MAX_MB_STREAM_SIZE = exports.MB_1 * 5;
|
|
91
|
-
exports.JOB_STATE = {
|
|
92
|
-
CREATED: "created",
|
|
93
|
-
RETRY: "retry",
|
|
94
|
-
ACTIVE: "active",
|
|
95
|
-
COMPLETED: "completed",
|
|
96
|
-
EXPIRED: "expired",
|
|
97
|
-
CANCELLED: "cancelled",
|
|
98
|
-
FAILED: "failed"
|
|
99
|
-
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginatedRequest } from "./common/paginated.request.dto";
|
|
2
|
-
import {
|
|
2
|
+
import { CSV_TYPES, CSVStatusTypes } from "../model/constants/csv.constants";
|
|
3
3
|
|
|
4
4
|
export interface CSVsRequest extends PaginatedRequest {
|
|
5
5
|
id?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSVRowStatusTypes } from "../util/constants";
|
|
2
1
|
import { PaginatedRequest } from "../dtos/common/paginated.request.dto";
|
|
2
|
+
import { CSVRowStatusTypes } from "../model/constants/csv.constants";
|
|
3
3
|
|
|
4
4
|
export interface CSVRowsRequest extends PaginatedRequest {
|
|
5
5
|
id?: number;
|
package/src/index.ts
CHANGED
|
@@ -36,10 +36,30 @@ export * from './dtos/subscription.request.dto';
|
|
|
36
36
|
export * from './dtos/transaction.request.dto';
|
|
37
37
|
export * from './dtos/transactionError.request.dto';
|
|
38
38
|
|
|
39
|
+
// Export all Mappers
|
|
40
|
+
export * from './mappers/csv/csvRowDataOrder.csv.mapper';
|
|
41
|
+
export * from './mappers/csv/csvRowDataSubscriptionId.csv.mapper';
|
|
42
|
+
|
|
43
|
+
// Export all Model Constants
|
|
44
|
+
export * from './model/constants/lead.constants';
|
|
45
|
+
export * from './model/constants/order.constants';
|
|
46
|
+
export * from './model/constants/subscription.constants';
|
|
47
|
+
export * from './model/constants/transaction.constants';
|
|
48
|
+
export * from './model/constants/csv.constants';
|
|
49
|
+
export * from './model/constants/mid.constants';
|
|
50
|
+
export * from './model/constants/gateway.constants';
|
|
51
|
+
export * from './model/constants/paymentData.constants';
|
|
52
|
+
export * from './model/constants/hookOutbox.constants';
|
|
53
|
+
export * from './model/constants/job.constants';
|
|
54
|
+
export * from './model/constants/event.constants';
|
|
55
|
+
export * from './model/constants/offer.constants';
|
|
56
|
+
|
|
39
57
|
// Export all Models
|
|
40
58
|
export * from './model/campaign.model';
|
|
41
59
|
export * from './model/category.model';
|
|
42
60
|
export * from './model/csv.model';
|
|
61
|
+
export * from './model/csvRowDataOrder.model';
|
|
62
|
+
export * from './model/csvRowDataSubscriptionId.model';
|
|
43
63
|
// export * from './model/emailTemplate.model'; // Empty file
|
|
44
64
|
export * from './model/empTransactions.model';
|
|
45
65
|
export * from './model/event.model';
|
|
@@ -56,7 +76,7 @@ export * from './model/offer.model';
|
|
|
56
76
|
export * from './model/order.model';
|
|
57
77
|
export * from './model/paymentData.model';
|
|
58
78
|
export * from './model/product.model';
|
|
59
|
-
export * from './model/
|
|
79
|
+
export * from './model/rebillingConfig.model';
|
|
60
80
|
export * from './model/subscription.model';
|
|
61
81
|
export * from './model/subscriptionStepdown.model';
|
|
62
82
|
export * from './model/transaction.model';
|
|
@@ -76,4 +96,4 @@ export * from './gateways/adapters/dtos/transaction-finxp.request.dto';
|
|
|
76
96
|
export * from './gateways/providers/model/genesis.constants';
|
|
77
97
|
export * from './gateways/providers/model/genesis.model';
|
|
78
98
|
export * from './gateways/providers/model/novalNetManual.model';
|
|
79
|
-
export * from './gateways/providers/model/finXpManual.model';
|
|
99
|
+
export * from './gateways/providers/model/finXpManual.model';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSVRowDataOrder } from "@/model/csvRowDataOrder.model";
|
|
2
|
+
|
|
3
|
+
export const csvRowDataOrderMapper: Partial<Record<keyof CSVRowDataOrder, string>> = {
|
|
4
|
+
firstName: "firstName",
|
|
5
|
+
lastName: "lastName",
|
|
6
|
+
address1: "address1",
|
|
7
|
+
address2: "address2",
|
|
8
|
+
city: "city",
|
|
9
|
+
state: "state",
|
|
10
|
+
country: "country",
|
|
11
|
+
zipCode: "zipCode",
|
|
12
|
+
phone: "phone",
|
|
13
|
+
email: "email",
|
|
14
|
+
iban: "iban",
|
|
15
|
+
bic: "bic",
|
|
16
|
+
offerId: "offerId",
|
|
17
|
+
campaignId: "campaignId",
|
|
18
|
+
};
|
|
19
|
+
export const ordersCSVColumnKeys = Object.keys(csvRowDataOrderMapper);
|
|
20
|
+
export const ordersCSVColumnValues = Object.values(csvRowDataOrderMapper);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CSVRowDataSubscriptionId } from "@/model/csvRowDataSubscriptionId.model";
|
|
2
|
+
|
|
3
|
+
export const subscriptionIdCSVColumnMapper: Partial<Record<keyof CSVRowDataSubscriptionId, string>> = {
|
|
4
|
+
subscriptionId: "subscriptionId"
|
|
5
|
+
};
|
|
6
|
+
export const subscriptionIdCSVColumnKeys = Object.keys(subscriptionIdCSVColumnMapper);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const CSV_STATUS = {
|
|
2
|
+
UPLOADED: "UPLOADED",
|
|
3
|
+
QUEUED: "QUEUED",
|
|
4
|
+
PROCESSING: "PROCESSING",
|
|
5
|
+
COMPLETED: "COMPLETED",
|
|
6
|
+
COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
|
|
7
|
+
FAILED: "FAILED",
|
|
8
|
+
CANCELLED: "CANCELLED"
|
|
9
|
+
};
|
|
10
|
+
export type CSVStatusTypes = (typeof CSV_STATUS)[keyof typeof CSV_STATUS];
|
|
11
|
+
|
|
12
|
+
export const CSV_ROW_STATUS = {
|
|
13
|
+
QUEUED: 'QUEUED',
|
|
14
|
+
SUCCESS: "SUCCESS",
|
|
15
|
+
FAILED: "FAILED",
|
|
16
|
+
};
|
|
17
|
+
export type CSVRowStatusTypes = (typeof CSV_ROW_STATUS)[keyof typeof CSV_ROW_STATUS];
|
|
18
|
+
|
|
19
|
+
export const CSV_TYPES = {
|
|
20
|
+
CREATE_ORDERS: "CREATE_ORDERS",
|
|
21
|
+
BILL_SUBSCRIPTIONS: "BILL_SUBSCRIPTIONS",
|
|
22
|
+
IMPORT_TRANSACTIONS_SDD: "IMPORT_TRANSACTIONS_SDD",
|
|
23
|
+
IMPORT_TRANSACTIONS_CHARGEBACK: "IMPORT_TRANSACTIONS_CHARGEBACK",
|
|
24
|
+
CANCEL_SUBSCRIPTIONS: "CANCEL_SUBSCRIPTIONS",
|
|
25
|
+
};
|
|
26
|
+
export const CSV_TYPE_VALUES = Object.values(CSV_TYPES);
|
|
27
|
+
export type CSV_TYPES = (typeof CSV_TYPES)[keyof typeof CSV_TYPES];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const EVENTS = {
|
|
2
|
+
ORDER_CREATED: "order.created",
|
|
3
|
+
ORDER_UPDATED: "order.updated",
|
|
4
|
+
SUBSCRIPTION_CREATED: "subscription.created",
|
|
5
|
+
TRANSACTION_SDD_IMPORTED: "transaction.sdd_sale.imported",
|
|
6
|
+
TRANSACTION_REFUND_IMPORTED: "transaction.refund.imported",
|
|
7
|
+
TRANSACTION_CHARGEBACK_IMPORTED: "transaction.chargeback.imported",
|
|
8
|
+
TRANSACTION_REFUND_ISSUED: "transaction.refund.issued",
|
|
9
|
+
TRANSACTION_UPDATED: "transaction.updated",
|
|
10
|
+
TRANSACTION_ERROR: "transaction.error",
|
|
11
|
+
SUBSCRIPTION_CANCELLATION_ISSUED: "subscription.cancellation.issued"
|
|
12
|
+
};
|
|
13
|
+
export type EVENTS = (typeof EVENTS)[keyof typeof EVENTS];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const BANKS = {
|
|
2
|
+
EMP: "emp", // status pending
|
|
3
|
+
finXP: "finxp", // manual. status pending.
|
|
4
|
+
Paynt: "paynt",
|
|
5
|
+
Paystrax: "paystrax",
|
|
6
|
+
PayBank2Bank: "paybank2bank",
|
|
7
|
+
Novalnet: "novalnet", //manual. all in un place CB
|
|
8
|
+
UNKNOWN: "unknown",
|
|
9
|
+
ALL: "all",
|
|
10
|
+
};
|
|
11
|
+
export const BANK_NAME_VALUES = Object.values(BANKS);
|
|
12
|
+
export type BANKS = (typeof BANKS)[keyof typeof BANKS];
|
|
13
|
+
|
|
14
|
+
export const PROVIDER_NAMES = {
|
|
15
|
+
GENESIS: "GENESIS",
|
|
16
|
+
ROCKETPAY: "ROCKETPAY",
|
|
17
|
+
NOVALNET_MANUAL: "NOVALNET_MANUAL",
|
|
18
|
+
FINXP_MANUAL: "FINXP_MANUAL",
|
|
19
|
+
ACI: "ACI"
|
|
20
|
+
};
|
|
21
|
+
export type providersTypes = (typeof PROVIDER_NAMES)[keyof typeof PROVIDER_NAMES];
|