types-magic-api 0.1.25 → 0.1.26
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/src/common/model/index.model.d.ts +77 -0
- package/dist/src/common/model/index.model.js +45 -0
- package/dist/src/entities/index.model.d.ts +84 -0
- package/dist/src/entities/index.model.js +166 -0
- package/dist/src/entities/logs/CaptchaTokenUsage.entity.d.ts +4 -0
- package/dist/src/entities/logs/LogoutTokenUsage.entity.d.ts +4 -0
- package/dist/src/entities/logs/PasswordTokenUsage.entity.d.ts +4 -0
- package/dist/src/entities/magic/App.entity.d.ts +41 -0
- package/dist/src/entities/magic/AppBuild.entity.d.ts +22 -0
- package/dist/src/entities/magic/AppComponent.entity.d.ts +55 -0
- package/dist/src/entities/magic/AppComponentProduct.entity.d.ts +8 -0
- package/dist/src/entities/magic/AppMenu.entity.d.ts +18 -0
- package/dist/src/entities/magic/AppMenuSettings.entity.d.ts +16 -0
- package/dist/src/entities/magic/AppPublish.entity.d.ts +11 -0
- package/dist/src/entities/magic/AppScreenSettings.entity.d.ts +31 -0
- package/dist/src/entities/magic/AppSetting.entity.d.ts +13 -0
- package/dist/src/entities/magic/Cart.entity.d.ts +6 -0
- package/dist/src/entities/magic/City.entity.d.ts +12 -0
- package/dist/src/entities/magic/ColorSetting.entity.d.ts +15 -0
- package/dist/src/entities/magic/Component.entity.d.ts +15 -0
- package/dist/src/entities/magic/ComponentAttribute.entity.d.ts +12 -0
- package/dist/src/entities/magic/ComponentGroup.entity.d.ts +6 -0
- package/dist/src/entities/magic/ComponentProperty.entity.d.ts +12 -0
- package/dist/src/entities/magic/Country.entity.d.ts +21 -0
- package/dist/src/entities/magic/Customer.entity.d.ts +4 -0
- package/dist/src/entities/magic/Media.entity.d.ts +25 -0
- package/dist/src/entities/magic/Menu.entity.d.ts +18 -0
- package/dist/src/entities/magic/MenuAttribute.entity.d.ts +12 -0
- package/dist/src/entities/magic/MenuGroup.entity.d.ts +6 -0
- package/dist/src/entities/magic/MenuProperty.entity.d.ts +12 -0
- package/dist/src/entities/magic/Provider.entity.d.ts +13 -0
- package/dist/src/entities/magic/RecentlyView.entity.d.ts +5 -0
- package/dist/src/entities/magic/Reminder.entity.d.ts +11 -0
- package/dist/src/entities/magic/ShopifyEmbeddedApp.entity.d.ts +5 -0
- package/dist/src/entities/magic/ShopifySession.entity.d.ts +13 -0
- package/dist/src/entities/magic/State.entity.d.ts +12 -0
- package/dist/src/entities/magic/Theme.entity.d.ts +17 -0
- package/dist/src/entities/magic/Timezone.entity.d.ts +11 -0
- package/dist/src/entities/magic/WishList.entity.d.ts +6 -0
- package/dist/src/entities/payment/Customer.entity.d.ts +16 -0
- package/dist/src/entities/payment/Invoice.entity.d.ts +19 -0
- package/dist/src/entities/payment/OrderPayment.entity.d.ts +27 -0
- package/dist/src/entities/payment/OrderPaymentLog.entity.d.ts +8 -0
- package/dist/src/entities/payment/OverrideRetryPaymentSetting.entity.d.ts +8 -0
- package/dist/src/entities/payment/PaymentFee.entity.d.ts +17 -0
- package/dist/src/entities/payment/PaymentGroup.entity.d.ts +9 -0
- package/dist/src/entities/payment/PaymentLog.entity.d.ts +7 -0
- package/dist/src/entities/payment/PaymentProvider.entity.d.ts +14 -0
- package/dist/src/entities/payment/PaymentSetting.entity.d.ts +17 -0
- package/dist/src/entities/payment/PaymentType.entity.d.ts +8 -0
- package/dist/src/entities/payment/RetryPaymentLog.entity.d.ts +9 -0
- package/dist/src/entities/payment/RetryPaymentSetting.entity.d.ts +7 -0
- package/dist/src/entities/payment/Subscription.entity.d.ts +21 -0
- package/dist/src/entities/payment/SubscriptionLog.entity.d.ts +9 -0
- package/dist/src/entities/public/Country.entity.d.ts +14 -0
- package/dist/src/entities/public/CountryMl.entity.d.ts +8 -0
- package/dist/src/entities/public/ErrorLog.entity.d.ts +7 -0
- package/dist/src/entities/public/ErrorText.entity.d.ts +9 -0
- package/dist/src/entities/public/Language.entity.d.ts +6 -0
- package/dist/src/entities/public/Menu.entity.d.ts +20 -0
- package/dist/src/entities/public/MenuMl.entity.d.ts +9 -0
- package/dist/src/entities/public/Module.entity.d.ts +10 -0
- package/dist/src/entities/public/OrgSetting.entity.d.ts +11 -0
- package/dist/src/entities/public/Organization.entity.d.ts +24 -0
- package/dist/src/entities/public/Template.entity.d.ts +17 -0
- package/dist/src/entities/public/TemplateMl.entity.d.ts +14 -0
- package/dist/src/entities/public/Timezone.entity.d.ts +14 -0
- package/dist/src/entities/saas/CustomizedModule.entity.d.ts +9 -0
- package/dist/src/entities/saas/OrderItem.entity.d.ts +17 -0
- package/dist/src/entities/saas/Plan.entity.d.ts +23 -0
- package/dist/src/entities/saas/PlanModule.entity.d.ts +18 -0
- package/dist/src/entities/saas/PlanRestriction.entity.d.ts +6 -0
- package/dist/src/entities/saas/SaasOrderPayment.entity.d.ts +17 -0
- package/dist/src/entities/users/Plan.entity.d.ts +12 -0
- package/dist/src/entities/users/RoleAllowedRole.entity.d.ts +9 -0
- package/dist/src/entities/users/SignInOtpHistory.entity.d.ts +13 -0
- package/dist/src/entities/users/UnsubscribedEmail.entity.d.ts +4 -0
- package/dist/src/entities/users/UserDevice.entity.d.ts +12 -0
- package/dist/src/entities/users/UserLoginActivity.entity.d.ts +13 -0
- package/dist/src/entities/users/UserNotification.entity.d.ts +21 -0
- package/dist/src/entities/users/UserPermission.entity.d.ts +14 -0
- package/dist/src/entities/users/UserProfile.entity.d.ts +34 -0
- package/dist/src/entities/users/UserRole.entity.d.ts +13 -0
- package/dist/src/entities/users/UserSetting.entity.d.ts +14 -0
- package/dist/src/entities/view/ViewSubscriptionDetail.entity.d.ts +20 -0
- package/dist/src/index.model.d.ts +27 -0
- package/dist/src/index.model.js +28 -0
- package/dist/src/services/admin/admin.model.d.ts +175 -0
- package/dist/src/services/admin/admin.model.js +12 -0
- package/dist/src/services/app/app.model.d.ts +49 -0
- package/dist/src/services/app/app.model.js +2 -0
- package/dist/src/services/appBuilder/appBuilder.model.d.ts +73 -0
- package/dist/src/services/appBuilder/appBuilder.model.js +30 -0
- package/dist/src/services/appPublish/appPublish.model.d.ts +9 -0
- package/dist/src/services/appPublish/appPublish.model.js +2 -0
- package/dist/src/services/appSetting/appSetting.model.d.ts +17 -0
- package/dist/src/services/appSetting/appSetting.model.js +2 -0
- package/dist/src/services/auth/auth.model.d.ts +143 -0
- package/dist/src/services/auth/auth.model.js +16 -0
- package/dist/src/services/colorSettings/colorSettings.model.d.ts +18 -0
- package/dist/src/services/colorSettings/colorSettings.model.js +2 -0
- package/dist/src/services/common/common.model.d.ts +69 -0
- package/dist/src/services/common/common.model.js +2 -0
- package/dist/src/services/component/component.model.d.ts +87 -0
- package/dist/src/services/component/component.model.js +15 -0
- package/dist/src/services/customer/customer.model.d.ts +342 -0
- package/dist/src/services/customer/customer.model.js +2 -0
- package/dist/src/services/default/default.model.d.ts +134 -0
- package/dist/src/services/default/default.model.js +89 -0
- package/dist/src/services/file/file.model.d.ts +1 -0
- package/dist/src/services/file/file.model.js +2 -0
- package/dist/src/services/maintainer/maintainer.model.d.ts +71 -0
- package/dist/src/services/maintainer/maintainer.model.js +2 -0
- package/dist/src/services/menu/menu.model.d.ts +56 -0
- package/dist/src/services/menu/menu.model.js +18 -0
- package/dist/src/services/notification/notification.model.d.ts +280 -0
- package/dist/src/services/notification/notification.model.js +69 -0
- package/dist/src/services/payment/payment.model.d.ts +153 -0
- package/dist/src/services/payment/payment.model.js +43 -0
- package/dist/src/services/provider/provider.model.d.ts +10 -0
- package/dist/src/services/provider/provider.model.js +5 -0
- package/dist/src/services/reminder/reminder.model.d.ts +13 -0
- package/dist/src/services/reminder/reminder.model.js +2 -0
- package/dist/src/services/saas/saas.model.d.ts +62 -0
- package/dist/src/services/saas/saas.model.js +7 -0
- package/dist/src/services/screen/screen.model.d.ts +37 -0
- package/dist/src/services/screen/screen.model.js +2 -0
- package/dist/src/services/shopify/shopify.model.d.ts +1009 -0
- package/dist/src/services/shopify/shopify.model.js +84 -0
- package/dist/src/services/shopifyPayment/shopifyPayment.model.d.ts +5 -0
- package/dist/src/services/shopifyPayment/shopifyPayment.model.js +6 -0
- package/dist/src/services/stripe/stripe.model.d.ts +9 -0
- package/dist/src/services/stripe/stripe.model.js +2 -0
- package/dist/src/services/test/test.model.d.ts +1 -0
- package/dist/src/services/test/test.model.js +2 -0
- package/dist/src/services/theme/theme.model.d.ts +23 -0
- package/dist/src/services/theme/theme.model.js +2 -0
- package/dist/src/services/userDevice/userDevice.model.d.ts +7 -0
- package/dist/src/services/userDevice/userDevice.model.js +2 -0
- package/package.json +3 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { AppBuild } from "../../index.model.js";
|
|
2
|
+
export declare enum APPBuildPlatform {
|
|
3
|
+
Android = "Android",
|
|
4
|
+
IOS = "IOS"
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* API Name: /api/app/build/start
|
|
8
|
+
*/
|
|
9
|
+
export interface AppBuildStartReq {
|
|
10
|
+
platform: APPBuildPlatform;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* API Name: /api/app/build/start
|
|
14
|
+
*/
|
|
15
|
+
export interface AppBuildStartRes {
|
|
16
|
+
isStarted: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* API Name: /api/app/build/start
|
|
20
|
+
*/
|
|
21
|
+
export interface InstanceAppBuildStartNotification {
|
|
22
|
+
userId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
team: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* API Name: /api/app/build/get/all
|
|
28
|
+
*/
|
|
29
|
+
export interface GetAppBuildRes {
|
|
30
|
+
appBuild: AppBuild[];
|
|
31
|
+
}
|
|
32
|
+
export declare enum AppBuildStatus {
|
|
33
|
+
ready = 1,
|
|
34
|
+
configured = 2,
|
|
35
|
+
running = 3,
|
|
36
|
+
success = 4,
|
|
37
|
+
failure = 5,
|
|
38
|
+
error = 6,
|
|
39
|
+
cancel = 7,
|
|
40
|
+
appReleaseRequired = 8,
|
|
41
|
+
appReleaseRunning = 9,
|
|
42
|
+
appReleaseSuccess = 10,
|
|
43
|
+
appReleaseRejected = 11
|
|
44
|
+
}
|
|
45
|
+
export declare enum AppBuildGitStatus {
|
|
46
|
+
completed = "completed",
|
|
47
|
+
in_progress = "in_progress"
|
|
48
|
+
}
|
|
49
|
+
export declare enum AppBuildGitConclusion {
|
|
50
|
+
success = "success",
|
|
51
|
+
failure = "failure"
|
|
52
|
+
}
|
|
53
|
+
export interface IBuildJobHandlerReq {
|
|
54
|
+
appSessionId: string;
|
|
55
|
+
providerType: string;
|
|
56
|
+
userId: string;
|
|
57
|
+
platform: APPBuildPlatform;
|
|
58
|
+
}
|
|
59
|
+
export interface APPBuildCancelReq {
|
|
60
|
+
id: number;
|
|
61
|
+
}
|
|
62
|
+
export interface APPBuildCancelRes {
|
|
63
|
+
isCanceled: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* API Name: /api/user/app/release/request
|
|
67
|
+
*/
|
|
68
|
+
export interface UserAppReleaseReq {
|
|
69
|
+
id: number;
|
|
70
|
+
}
|
|
71
|
+
export interface UserAppReleaseRes {
|
|
72
|
+
isRequested: boolean;
|
|
73
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export var APPBuildPlatform;
|
|
2
|
+
(function (APPBuildPlatform) {
|
|
3
|
+
APPBuildPlatform["Android"] = "Android";
|
|
4
|
+
APPBuildPlatform["IOS"] = "IOS";
|
|
5
|
+
})(APPBuildPlatform || (APPBuildPlatform = {}));
|
|
6
|
+
export var AppBuildStatus;
|
|
7
|
+
(function (AppBuildStatus) {
|
|
8
|
+
AppBuildStatus[AppBuildStatus["ready"] = 1] = "ready";
|
|
9
|
+
AppBuildStatus[AppBuildStatus["configured"] = 2] = "configured";
|
|
10
|
+
AppBuildStatus[AppBuildStatus["running"] = 3] = "running";
|
|
11
|
+
AppBuildStatus[AppBuildStatus["success"] = 4] = "success";
|
|
12
|
+
AppBuildStatus[AppBuildStatus["failure"] = 5] = "failure";
|
|
13
|
+
AppBuildStatus[AppBuildStatus["error"] = 6] = "error";
|
|
14
|
+
AppBuildStatus[AppBuildStatus["cancel"] = 7] = "cancel";
|
|
15
|
+
AppBuildStatus[AppBuildStatus["appReleaseRequired"] = 8] = "appReleaseRequired";
|
|
16
|
+
AppBuildStatus[AppBuildStatus["appReleaseRunning"] = 9] = "appReleaseRunning";
|
|
17
|
+
AppBuildStatus[AppBuildStatus["appReleaseSuccess"] = 10] = "appReleaseSuccess";
|
|
18
|
+
AppBuildStatus[AppBuildStatus["appReleaseRejected"] = 11] = "appReleaseRejected";
|
|
19
|
+
})(AppBuildStatus || (AppBuildStatus = {}));
|
|
20
|
+
export var AppBuildGitStatus;
|
|
21
|
+
(function (AppBuildGitStatus) {
|
|
22
|
+
AppBuildGitStatus["completed"] = "completed";
|
|
23
|
+
AppBuildGitStatus["in_progress"] = "in_progress";
|
|
24
|
+
})(AppBuildGitStatus || (AppBuildGitStatus = {}));
|
|
25
|
+
export var AppBuildGitConclusion;
|
|
26
|
+
(function (AppBuildGitConclusion) {
|
|
27
|
+
AppBuildGitConclusion["success"] = "success";
|
|
28
|
+
AppBuildGitConclusion["failure"] = "failure";
|
|
29
|
+
})(AppBuildGitConclusion || (AppBuildGitConclusion = {}));
|
|
30
|
+
//# sourceMappingURL=appBuilder.model.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AppSetting } from "../../index.model.js";
|
|
2
|
+
export interface GetAppSettingRes {
|
|
3
|
+
appSetting: AppSetting | null;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateAppSettingReq {
|
|
6
|
+
appName: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
appIcon: string | null;
|
|
9
|
+
splashIcon: string | null;
|
|
10
|
+
showGuestCheckout: boolean;
|
|
11
|
+
showHolidayEffect: boolean;
|
|
12
|
+
showBranding: boolean;
|
|
13
|
+
language: string;
|
|
14
|
+
}
|
|
15
|
+
export interface UpdateAppSettingRes {
|
|
16
|
+
isUpdated: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Name: /api/auth/register
|
|
3
|
+
*/
|
|
4
|
+
export interface RegisterReq {
|
|
5
|
+
email: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* API Name: /api/auth/register
|
|
9
|
+
*/
|
|
10
|
+
export interface RegisterRes {
|
|
11
|
+
isRegister: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare enum UserRoleId {
|
|
14
|
+
Admin = "1",
|
|
15
|
+
User = "2"
|
|
16
|
+
}
|
|
17
|
+
export declare enum UserRoleName {
|
|
18
|
+
Admin = "Admin",
|
|
19
|
+
User = "User"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* API Name: /api/auth/otp/resend
|
|
23
|
+
*/
|
|
24
|
+
export type ResendOTPReq = RegisterReq;
|
|
25
|
+
/**
|
|
26
|
+
* API Name: /api/auth/otp/resend
|
|
27
|
+
*/
|
|
28
|
+
export interface ResendOTPRes {
|
|
29
|
+
isResent: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* API Name: /api/auth/otp/verify
|
|
33
|
+
*/
|
|
34
|
+
export interface VerifyOTPReq {
|
|
35
|
+
email: string;
|
|
36
|
+
enteredOtp: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* API Name: /api/auth/otp/verify
|
|
40
|
+
*/
|
|
41
|
+
export interface VerifyOTPRes {
|
|
42
|
+
authorization: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* API Name: /api/auth/password/reset
|
|
46
|
+
*/
|
|
47
|
+
export interface ResetPasswordReq {
|
|
48
|
+
password: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* API Name: /api/auth/password/reset
|
|
52
|
+
*/
|
|
53
|
+
export interface ResetPasswordRes {
|
|
54
|
+
isSent: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* API Name: /api/auth/password/token/validate
|
|
58
|
+
*/
|
|
59
|
+
export interface ValidateAuthTokenRes {
|
|
60
|
+
isValid: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* API Name: /api/auth/forget
|
|
64
|
+
*/
|
|
65
|
+
export type ForgetPasswordReq = RegisterReq;
|
|
66
|
+
/**
|
|
67
|
+
* API Name: /api/auth/forget
|
|
68
|
+
*/
|
|
69
|
+
export interface ForgetPasswordRes {
|
|
70
|
+
isSent: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* API Name: /api/auth/login
|
|
74
|
+
*/
|
|
75
|
+
export interface LoginReq {
|
|
76
|
+
emailId: string;
|
|
77
|
+
password: string;
|
|
78
|
+
captchaText: string | null;
|
|
79
|
+
enteredCaptcha: string | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* API Name: /api/auth/login
|
|
83
|
+
*/
|
|
84
|
+
export interface LoginRes {
|
|
85
|
+
isSuccess: boolean;
|
|
86
|
+
captcha: CaptchaObject;
|
|
87
|
+
authorization: string;
|
|
88
|
+
loginDetails: {
|
|
89
|
+
userName: string | null;
|
|
90
|
+
lastName: string | null;
|
|
91
|
+
emailId: string;
|
|
92
|
+
userRole: string[];
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export interface CaptchaObject {
|
|
96
|
+
text: string;
|
|
97
|
+
data: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* API Name: /api/auth/renew
|
|
101
|
+
*/
|
|
102
|
+
export interface RenewRes {
|
|
103
|
+
authorization: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* API Name: /api/auth/logout
|
|
107
|
+
*/
|
|
108
|
+
export interface LogOutRes {
|
|
109
|
+
isLogOut: boolean;
|
|
110
|
+
}
|
|
111
|
+
export declare enum OrderByType {
|
|
112
|
+
ascending = 1,
|
|
113
|
+
descending = -1
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* API Name: /api/auth/firebase
|
|
117
|
+
*/
|
|
118
|
+
export interface FireBaseSignInReq {
|
|
119
|
+
token: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* API Name: /api/auth/firebase
|
|
123
|
+
*/
|
|
124
|
+
export interface FirebaseSignInRes {
|
|
125
|
+
result: string;
|
|
126
|
+
msg: string;
|
|
127
|
+
desc: string;
|
|
128
|
+
userRoles: string[];
|
|
129
|
+
userId: string;
|
|
130
|
+
isNewStore: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface FirebaseData {
|
|
133
|
+
type: string;
|
|
134
|
+
project_id: string;
|
|
135
|
+
private_key_id: string;
|
|
136
|
+
private_key: string;
|
|
137
|
+
client_email: string;
|
|
138
|
+
client_id: string;
|
|
139
|
+
auth_uri: string;
|
|
140
|
+
token_uri: string;
|
|
141
|
+
auth_provider_x509_cert_url: string;
|
|
142
|
+
client_x509_cert_url: string;
|
|
143
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var UserRoleId;
|
|
2
|
+
(function (UserRoleId) {
|
|
3
|
+
UserRoleId["Admin"] = "1";
|
|
4
|
+
UserRoleId["User"] = "2";
|
|
5
|
+
})(UserRoleId || (UserRoleId = {}));
|
|
6
|
+
export var UserRoleName;
|
|
7
|
+
(function (UserRoleName) {
|
|
8
|
+
UserRoleName["Admin"] = "Admin";
|
|
9
|
+
UserRoleName["User"] = "User";
|
|
10
|
+
})(UserRoleName || (UserRoleName = {}));
|
|
11
|
+
export var OrderByType;
|
|
12
|
+
(function (OrderByType) {
|
|
13
|
+
OrderByType[OrderByType["ascending"] = 1] = "ascending";
|
|
14
|
+
OrderByType[OrderByType["descending"] = -1] = "descending";
|
|
15
|
+
})(OrderByType || (OrderByType = {}));
|
|
16
|
+
//# sourceMappingURL=auth.model.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColorSetting } from "../../index.model.js";
|
|
2
|
+
export interface GetColorSettingsResponse {
|
|
3
|
+
colorSetting: ColorSetting | null;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateColorSettingsRequest {
|
|
6
|
+
appId: string;
|
|
7
|
+
primaryColor: string;
|
|
8
|
+
secondaryColor: string;
|
|
9
|
+
cartColor: string;
|
|
10
|
+
chatColor: string;
|
|
11
|
+
menuIcon: string;
|
|
12
|
+
cartIcon: string;
|
|
13
|
+
chatIcon: string;
|
|
14
|
+
appTitleBanner: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateColorSettingsResponse {
|
|
17
|
+
isUpdated: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as Model from "../../index.model.js";
|
|
2
|
+
export interface GetCountriesRes {
|
|
3
|
+
countries: Model.CountryX[];
|
|
4
|
+
}
|
|
5
|
+
export interface GetLanguagesRes {
|
|
6
|
+
languages: Model.Language[];
|
|
7
|
+
}
|
|
8
|
+
export interface GetTimezonesRes {
|
|
9
|
+
timezones: Model.TimezoneX[];
|
|
10
|
+
}
|
|
11
|
+
export interface GetStateReq {
|
|
12
|
+
countryId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetStateRes {
|
|
15
|
+
states: Model.State[];
|
|
16
|
+
}
|
|
17
|
+
export interface GetCitiesReq {
|
|
18
|
+
stateId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetCitiesRes {
|
|
21
|
+
cities: Model.City[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* API Name: /api/user/unsubscription
|
|
25
|
+
*/
|
|
26
|
+
export interface EmailUnsubscribeReq {
|
|
27
|
+
token: string;
|
|
28
|
+
}
|
|
29
|
+
export interface EmailUnsubscribeRes {
|
|
30
|
+
isUnsubscribed: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface GetVideoSnapshotReq {
|
|
33
|
+
url: string;
|
|
34
|
+
timestamps: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* API Name: /api/shopify/country/get
|
|
38
|
+
*/
|
|
39
|
+
export interface ShopifyCountry {
|
|
40
|
+
id: number;
|
|
41
|
+
name: string;
|
|
42
|
+
code: string;
|
|
43
|
+
phCode: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* API Name: /api/shopify/country/get
|
|
47
|
+
*/
|
|
48
|
+
export interface ShopifyCountryRes {
|
|
49
|
+
countries: ShopifyCountry[];
|
|
50
|
+
}
|
|
51
|
+
export interface ShopifyStateReq {
|
|
52
|
+
countryId: number;
|
|
53
|
+
}
|
|
54
|
+
export interface CountryCode {
|
|
55
|
+
isoTwo: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* API Name: /api/shopify/state/get
|
|
59
|
+
*/
|
|
60
|
+
export interface ShopifyState {
|
|
61
|
+
id: number;
|
|
62
|
+
name: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* API Name: /api/shopify/state/get
|
|
66
|
+
*/
|
|
67
|
+
export interface ShopifyStateRes {
|
|
68
|
+
states: ShopifyState[];
|
|
69
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { AppComponent, ComponentTypes } from "../../index.model.js";
|
|
2
|
+
export declare enum EAttributeType {
|
|
3
|
+
"string" = "string",
|
|
4
|
+
"enum" = "enum",
|
|
5
|
+
"boolean" = "boolean",
|
|
6
|
+
"label" = "label",
|
|
7
|
+
"file" = "file",
|
|
8
|
+
"icon-select" = "icon-select"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ItemType {
|
|
11
|
+
PRODUCT = "PRODUCT",
|
|
12
|
+
COLLECTION = "COLLECTION"
|
|
13
|
+
}
|
|
14
|
+
export interface ComponentProduct {
|
|
15
|
+
productId: string;
|
|
16
|
+
type: ItemType;
|
|
17
|
+
displayOrder: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IAppComponent {
|
|
20
|
+
id: string | null;
|
|
21
|
+
componentType: ComponentTypes;
|
|
22
|
+
displayOrder: number;
|
|
23
|
+
addToCart?: boolean;
|
|
24
|
+
autoPlay?: boolean;
|
|
25
|
+
actionText?: string;
|
|
26
|
+
barType?: string;
|
|
27
|
+
clickable?: boolean;
|
|
28
|
+
contentType?: string;
|
|
29
|
+
controlBar?: boolean;
|
|
30
|
+
customerDiscountCode?: string;
|
|
31
|
+
discountCode?: string;
|
|
32
|
+
discountImage?: string;
|
|
33
|
+
displayType?: string;
|
|
34
|
+
dividerType?: string;
|
|
35
|
+
hasActionText?: boolean;
|
|
36
|
+
hasItemMargin?: boolean;
|
|
37
|
+
hasMargin?: boolean;
|
|
38
|
+
hideBorder?: boolean;
|
|
39
|
+
hideWhenFinish?: boolean;
|
|
40
|
+
isNeedLink?: boolean;
|
|
41
|
+
linkTo?: string;
|
|
42
|
+
loop?: boolean;
|
|
43
|
+
muteBtn?: boolean;
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
promotionImage?: string;
|
|
46
|
+
restartBtn?: boolean;
|
|
47
|
+
showItemTitle?: boolean;
|
|
48
|
+
showPrice?: boolean;
|
|
49
|
+
showTitle?: boolean;
|
|
50
|
+
thumbnailImage?: string;
|
|
51
|
+
timerExpireDate?: string;
|
|
52
|
+
timerNumberColor?: string;
|
|
53
|
+
timerTimezone?: string;
|
|
54
|
+
title?: string;
|
|
55
|
+
titleAlignment?: string;
|
|
56
|
+
titlePosition?: string;
|
|
57
|
+
videoDisplayType?: string;
|
|
58
|
+
videoUpload?: string;
|
|
59
|
+
viewSize?: string;
|
|
60
|
+
isAutoSelect?: boolean;
|
|
61
|
+
collectionId?: string | null;
|
|
62
|
+
items?: ComponentProduct[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* API Name: /api/app/component/save
|
|
66
|
+
*/
|
|
67
|
+
export interface SaveAppComponentReq {
|
|
68
|
+
components: IAppComponent[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* API Name: /api/app/component/save
|
|
72
|
+
*/
|
|
73
|
+
export interface SaveAppComponentRes {
|
|
74
|
+
isSaved: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* API Name: /api/app/component/get
|
|
78
|
+
*/
|
|
79
|
+
export interface GetAPPComponentRes {
|
|
80
|
+
components: AppComponent[];
|
|
81
|
+
}
|
|
82
|
+
export interface DeleteComponentReq {
|
|
83
|
+
ids: string[];
|
|
84
|
+
}
|
|
85
|
+
export interface DeleteComponentRes {
|
|
86
|
+
isDeleted: boolean;
|
|
87
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var EAttributeType;
|
|
2
|
+
(function (EAttributeType) {
|
|
3
|
+
EAttributeType["string"] = "string";
|
|
4
|
+
EAttributeType["enum"] = "enum";
|
|
5
|
+
EAttributeType["boolean"] = "boolean";
|
|
6
|
+
EAttributeType["label"] = "label";
|
|
7
|
+
EAttributeType["file"] = "file";
|
|
8
|
+
EAttributeType["icon-select"] = "icon-select";
|
|
9
|
+
})(EAttributeType || (EAttributeType = {}));
|
|
10
|
+
export var ItemType;
|
|
11
|
+
(function (ItemType) {
|
|
12
|
+
ItemType["PRODUCT"] = "PRODUCT";
|
|
13
|
+
ItemType["COLLECTION"] = "COLLECTION";
|
|
14
|
+
})(ItemType || (ItemType = {}));
|
|
15
|
+
//# sourceMappingURL=component.model.js.map
|