@konplit-services/common 1.0.114 → 1.0.116
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/build/events/merchants-events/interfaces/business-created.interface.d.ts +21 -0
- package/build/events/merchants-events/interfaces/business-created.interface.js +1 -0
- package/build/events/merchants-events/interfaces/business-updated.interface.d.ts +21 -0
- package/build/events/merchants-events/interfaces/business-updated.interface.js +1 -0
- package/build/events/merchants-events/interfaces/index.d.ts +2 -0
- package/build/events/merchants-events/interfaces/index.js +2 -0
- package/build/helper/business-types.d.ts +22 -0
- package/build/helper/business-types.js +15 -0
- package/build/helper/index.d.ts +1 -0
- package/build/helper/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CURRENCY_TYPE, Status } from "../../../helper";
|
|
2
|
+
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
|
+
import { BUSINESS_TYPE } from "../../../helper/business-types";
|
|
4
|
+
export interface MerchantBusinessCreatedEvent {
|
|
5
|
+
subject: Subjects.MerchantCreated;
|
|
6
|
+
streamName: StreamName.name;
|
|
7
|
+
streamEvents: StreamEvent.Event;
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
accountId: string;
|
|
11
|
+
merchantId: string;
|
|
12
|
+
status: Status;
|
|
13
|
+
businessName: string;
|
|
14
|
+
businessType: BUSINESS_TYPE;
|
|
15
|
+
businessWebsite?: string;
|
|
16
|
+
businessDefaultCurrency?: CURRENCY_TYPE;
|
|
17
|
+
isBusinessVerified?: boolean;
|
|
18
|
+
businessStatus?: Status;
|
|
19
|
+
version?: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CURRENCY_TYPE, Status } from "../../../helper";
|
|
2
|
+
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
|
+
import { BUSINESS_TYPE } from "../../../helper/business-types";
|
|
4
|
+
export interface MerchantBusinessUpdatedEvent {
|
|
5
|
+
subject: Subjects.MerchantUpdated;
|
|
6
|
+
streamName: StreamName.name;
|
|
7
|
+
streamEvents: StreamEvent.Event;
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
accountId: string;
|
|
11
|
+
merchantId: string;
|
|
12
|
+
status: Status;
|
|
13
|
+
businessName: string;
|
|
14
|
+
businessType: BUSINESS_TYPE;
|
|
15
|
+
businessWebsite?: string;
|
|
16
|
+
businessDefaultCurrency?: CURRENCY_TYPE;
|
|
17
|
+
isBusinessVerified?: boolean;
|
|
18
|
+
businessStatus?: Status;
|
|
19
|
+
version?: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -5,3 +5,5 @@ export * from "./api-config.updated.interface";
|
|
|
5
5
|
export * from "./default-charg-updated.interfeace";
|
|
6
6
|
export * from "./setting-created.interface";
|
|
7
7
|
export * from "./setting-updated.interface";
|
|
8
|
+
export * from "./business-created.interface";
|
|
9
|
+
export * from "./business-updated.interface";
|
|
@@ -21,3 +21,5 @@ __exportStar(require("./api-config.updated.interface"), exports);
|
|
|
21
21
|
__exportStar(require("./default-charg-updated.interfeace"), exports);
|
|
22
22
|
__exportStar(require("./setting-created.interface"), exports);
|
|
23
23
|
__exportStar(require("./setting-updated.interface"), exports);
|
|
24
|
+
__exportStar(require("./business-created.interface"), exports);
|
|
25
|
+
__exportStar(require("./business-updated.interface"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum BUSINESS_TYPE {
|
|
2
|
+
INDIVIDUAL = "INDIVIDUAL_ACCOUNT",
|
|
3
|
+
BUSINESS = "BUSINESS_ACCOUNT"
|
|
4
|
+
}
|
|
5
|
+
export declare enum SocialMediaType {
|
|
6
|
+
facebook = "facebook",
|
|
7
|
+
instagram = "instagram",
|
|
8
|
+
youtube = "youtube",
|
|
9
|
+
x = "x"
|
|
10
|
+
}
|
|
11
|
+
export interface SocialMediaI {
|
|
12
|
+
type: SocialMediaType;
|
|
13
|
+
link: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ContactI {
|
|
16
|
+
id: string;
|
|
17
|
+
registeredEmail?: string;
|
|
18
|
+
supportEmail?: string;
|
|
19
|
+
disputeEmail?: string;
|
|
20
|
+
phoneNumber?: string;
|
|
21
|
+
socialMedias?: SocialMediaI[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SocialMediaType = exports.BUSINESS_TYPE = void 0;
|
|
4
|
+
var BUSINESS_TYPE;
|
|
5
|
+
(function (BUSINESS_TYPE) {
|
|
6
|
+
BUSINESS_TYPE["INDIVIDUAL"] = "INDIVIDUAL_ACCOUNT";
|
|
7
|
+
BUSINESS_TYPE["BUSINESS"] = "BUSINESS_ACCOUNT";
|
|
8
|
+
})(BUSINESS_TYPE = exports.BUSINESS_TYPE || (exports.BUSINESS_TYPE = {}));
|
|
9
|
+
var SocialMediaType;
|
|
10
|
+
(function (SocialMediaType) {
|
|
11
|
+
SocialMediaType["facebook"] = "facebook";
|
|
12
|
+
SocialMediaType["instagram"] = "instagram";
|
|
13
|
+
SocialMediaType["youtube"] = "youtube";
|
|
14
|
+
SocialMediaType["x"] = "x";
|
|
15
|
+
})(SocialMediaType = exports.SocialMediaType || (exports.SocialMediaType = {}));
|
package/build/helper/index.d.ts
CHANGED
package/build/helper/index.js
CHANGED
|
@@ -53,3 +53,4 @@ __exportStar(require("./validateParams"), exports);
|
|
|
53
53
|
__exportStar(require("./worker-task-types"), exports);
|
|
54
54
|
__exportStar(require("./api-config-types"), exports);
|
|
55
55
|
__exportStar(require("./settings-types"), exports);
|
|
56
|
+
__exportStar(require("./business-types"), exports);
|