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,14 @@
|
|
|
1
|
+
import { Template } from "./Template.entity.js";
|
|
2
|
+
import { Relation } from "../index.model.js";
|
|
3
|
+
export declare class TemplateMl {
|
|
4
|
+
templateId: string;
|
|
5
|
+
emailSubject: string | null;
|
|
6
|
+
emailBody: string | null;
|
|
7
|
+
pushSubject: string | null;
|
|
8
|
+
pushBody: string | null;
|
|
9
|
+
langCode: string;
|
|
10
|
+
bodyTemplate: string | null;
|
|
11
|
+
headTemplate: string | null;
|
|
12
|
+
footerTemplate: string | null;
|
|
13
|
+
template: Relation<Template>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Organization } from "./Organization.entity.js";
|
|
2
|
+
import { Country } from "./Country.entity.js";
|
|
3
|
+
import { Relation } from "../index.model.js";
|
|
4
|
+
export declare class Timezone {
|
|
5
|
+
tzString: string;
|
|
6
|
+
dstFrom: Date | null;
|
|
7
|
+
dstUntil: Date | null;
|
|
8
|
+
updatedAt: Date | null;
|
|
9
|
+
timezoneOffset: number | null;
|
|
10
|
+
dstOffset: number | null;
|
|
11
|
+
countryId: string | null;
|
|
12
|
+
organizations: Organization[];
|
|
13
|
+
country: Relation<Country>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Model from '../index.model.js';
|
|
2
|
+
export declare class OrderItem {
|
|
3
|
+
id: number;
|
|
4
|
+
orgId: string;
|
|
5
|
+
amount: string;
|
|
6
|
+
qty: number;
|
|
7
|
+
userId: string;
|
|
8
|
+
status: number;
|
|
9
|
+
createdBy: string;
|
|
10
|
+
updatedBy: string | null;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date | null;
|
|
13
|
+
fulfillmentError: object | null;
|
|
14
|
+
addOn: Model.Relation<Model.PlanModule>;
|
|
15
|
+
order: Model.Relation<Model.SaaSOrderPayment>;
|
|
16
|
+
plan: Model.Relation<Model.SaaSPlan>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Model from '../index.model.js';
|
|
2
|
+
export declare class SaaSPlan {
|
|
3
|
+
id: number;
|
|
4
|
+
frequencyType: number;
|
|
5
|
+
price: string;
|
|
6
|
+
priceDescription: string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
isHaveTrial: boolean;
|
|
10
|
+
trialDays: number | null;
|
|
11
|
+
isMostPopular: boolean | null;
|
|
12
|
+
isActive: boolean | null;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedBy: string | null;
|
|
16
|
+
updatedAt: Date | null;
|
|
17
|
+
color: string | null;
|
|
18
|
+
annualPriceDiscount: string | null;
|
|
19
|
+
annualPriceDescription: string | null;
|
|
20
|
+
orderItems: Model.OrderItem[];
|
|
21
|
+
planModules: Model.PlanModule[];
|
|
22
|
+
planRestrictions: Model.PlanRestriction[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Model from '../index.model.js';
|
|
2
|
+
export declare class PlanModule {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string | null;
|
|
5
|
+
description: string | null;
|
|
6
|
+
isBasicModule: boolean;
|
|
7
|
+
planId: string;
|
|
8
|
+
modulesId: string;
|
|
9
|
+
price: string | null;
|
|
10
|
+
isAddOn: boolean;
|
|
11
|
+
createdBy: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedBy: string | null;
|
|
14
|
+
updatedAt: Date | null;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
orderItems: Model.OrderItem[];
|
|
17
|
+
plan: Model.Relation<Model.SaaSPlan>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Model from '../index.model.js';
|
|
2
|
+
import { App } from "../index.model.js";
|
|
3
|
+
export declare class SaaSOrderPayment {
|
|
4
|
+
id: string;
|
|
5
|
+
orderType: number;
|
|
6
|
+
amount: string;
|
|
7
|
+
status: number;
|
|
8
|
+
orgId: string;
|
|
9
|
+
createdBy: string;
|
|
10
|
+
updatedBy: string | null;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date | null;
|
|
13
|
+
orderCurrency: string;
|
|
14
|
+
orderItems: Model.OrderItem[];
|
|
15
|
+
app: Model.Relation<App> | null;
|
|
16
|
+
orderPayment: Model.OrderPayment[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserProfile } from "./UserProfile.entity.js";
|
|
2
|
+
export declare class Plan {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
projectMax: number;
|
|
6
|
+
projectCountIncludesShared: boolean;
|
|
7
|
+
projectReadonlyMax: number;
|
|
8
|
+
shareMax: number;
|
|
9
|
+
assigneeMax: number;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
userProfiles: UserProfile[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UserRole } from "./UserRole.entity.js";
|
|
2
|
+
import { Relation } from "../index.model.js";
|
|
3
|
+
export declare class RoleAllowedRole {
|
|
4
|
+
roleId: string;
|
|
5
|
+
allowedRoleId: string;
|
|
6
|
+
orgId: string;
|
|
7
|
+
allowedRole: Relation<UserRole>;
|
|
8
|
+
role: Relation<UserRole>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UserProfile } from "./UserProfile.entity.js";
|
|
2
|
+
import { Relation } from "../index.model.js";
|
|
3
|
+
export declare class SignInOtpHistory {
|
|
4
|
+
otp: string;
|
|
5
|
+
isValid: boolean;
|
|
6
|
+
noOfTimesTried: number;
|
|
7
|
+
createAt: Date;
|
|
8
|
+
expireAt: Date;
|
|
9
|
+
id: number;
|
|
10
|
+
emailId: string;
|
|
11
|
+
isLogin: boolean;
|
|
12
|
+
user: Relation<UserProfile>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class UserLoginActivity {
|
|
2
|
+
id: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
isLoginSuccess: boolean | null;
|
|
6
|
+
orgId: string | null;
|
|
7
|
+
isCaptchaEntered: boolean | null;
|
|
8
|
+
ip: string | null;
|
|
9
|
+
ipCountry: string | null;
|
|
10
|
+
ipCity: string | null;
|
|
11
|
+
ipRegion: string | null;
|
|
12
|
+
email: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UserProfile } from "./UserProfile.entity.js";
|
|
2
|
+
import { UserEmailNotificationType } from "../../index.model.js";
|
|
3
|
+
import { Relation } from "../index.model.js";
|
|
4
|
+
export declare class UserNotification {
|
|
5
|
+
id: string;
|
|
6
|
+
mobileNo: string | null;
|
|
7
|
+
emailId: string | null;
|
|
8
|
+
appNotification: object | null;
|
|
9
|
+
emailNotification: UserEmailNotificationType | null;
|
|
10
|
+
mobileNotification: object | null;
|
|
11
|
+
notificationType: number;
|
|
12
|
+
isSent: boolean | null;
|
|
13
|
+
createdAt: Date | null;
|
|
14
|
+
successAt: Date | null;
|
|
15
|
+
ref: object | null;
|
|
16
|
+
isUserRead: boolean | null;
|
|
17
|
+
orgId: string;
|
|
18
|
+
otherDetails: object | null;
|
|
19
|
+
failureAt: Date | null;
|
|
20
|
+
user: Relation<UserProfile>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UserProfile } from "./UserProfile.entity.js";
|
|
2
|
+
import { UserRole } from "./UserRole.entity.js";
|
|
3
|
+
import { Relation } from "../index.model.js";
|
|
4
|
+
export declare class UserPermission {
|
|
5
|
+
id: number;
|
|
6
|
+
orgId: string;
|
|
7
|
+
permissionJson: object | null;
|
|
8
|
+
userRoleName: string;
|
|
9
|
+
updatedBy: string;
|
|
10
|
+
updatedAt: Date | null;
|
|
11
|
+
moduleCode: string | null;
|
|
12
|
+
updatedBy2: Relation<UserProfile>;
|
|
13
|
+
userRole: Relation<UserRole>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SignInOtpHistory } from "./SignInOtpHistory.entity.js";
|
|
2
|
+
import { UserNotification } from "./UserNotification.entity.js";
|
|
3
|
+
import { UserPermission } from "./UserPermission.entity.js";
|
|
4
|
+
import { Plan } from "./Plan.entity.js";
|
|
5
|
+
import { UserRole } from "./UserRole.entity.js";
|
|
6
|
+
import { UserSetting } from "./UserSetting.entity.js";
|
|
7
|
+
import { App, AppBuild, AppPublish, Relation } from "../index.model.js";
|
|
8
|
+
export declare class UserProfile {
|
|
9
|
+
id: string;
|
|
10
|
+
emailId: string;
|
|
11
|
+
firstName: string | null;
|
|
12
|
+
lastName: string | null;
|
|
13
|
+
token: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
authProvider: string | null;
|
|
16
|
+
timezone: string | null;
|
|
17
|
+
orgId: string;
|
|
18
|
+
isActive: boolean | null;
|
|
19
|
+
passwordHash: string | null;
|
|
20
|
+
type: number | null;
|
|
21
|
+
gender: number | null;
|
|
22
|
+
address: string | null;
|
|
23
|
+
mobileNo: string | null;
|
|
24
|
+
deletedAt: Date | null;
|
|
25
|
+
signInOtpHistories: SignInOtpHistory[];
|
|
26
|
+
userNotifications: UserNotification[];
|
|
27
|
+
userPermissions: UserPermission[];
|
|
28
|
+
app: App[];
|
|
29
|
+
appBuild: AppBuild[];
|
|
30
|
+
appPublish: AppPublish[];
|
|
31
|
+
plan: Relation<Plan>;
|
|
32
|
+
role: Relation<UserRole>;
|
|
33
|
+
userSetting: Relation<UserSetting>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RoleAllowedRole } from "./RoleAllowedRole.entity.js";
|
|
2
|
+
import { UserPermission } from "./UserPermission.entity.js";
|
|
3
|
+
import { UserProfile } from "./UserProfile.entity.js";
|
|
4
|
+
export declare class UserRole {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
orgId: string;
|
|
8
|
+
isRoot: boolean | null;
|
|
9
|
+
roleAllowedRoles: RoleAllowedRole[];
|
|
10
|
+
roleAllowedRoles2: RoleAllowedRole[];
|
|
11
|
+
userPermissions: UserPermission[];
|
|
12
|
+
userProfiles: UserProfile[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UserProfile } from "./UserProfile.entity.js";
|
|
2
|
+
import { Relation } from "../index.model.js";
|
|
3
|
+
export declare class UserSetting {
|
|
4
|
+
userId: string;
|
|
5
|
+
languageCode: string;
|
|
6
|
+
emailNotification: boolean;
|
|
7
|
+
smsNotification: boolean;
|
|
8
|
+
appNotification: boolean;
|
|
9
|
+
theme: number;
|
|
10
|
+
dpBaseUrl: string | null;
|
|
11
|
+
dpUrlPath: string | null;
|
|
12
|
+
country: string | null;
|
|
13
|
+
user: Relation<UserProfile>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class ViewSubscriptionDetail {
|
|
2
|
+
id: string;
|
|
3
|
+
customerId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
status: number;
|
|
6
|
+
currentPeriodStart: Date | null;
|
|
7
|
+
currentPeriodEnd: Date | null;
|
|
8
|
+
trialStart: Date | null;
|
|
9
|
+
trialEnd: Date | null;
|
|
10
|
+
cancelAt: Date | null;
|
|
11
|
+
canceledAt: Date | null;
|
|
12
|
+
orderId: string;
|
|
13
|
+
orgId: string;
|
|
14
|
+
orgName: string;
|
|
15
|
+
isPaused: boolean;
|
|
16
|
+
createdAt: Date | null;
|
|
17
|
+
deletedAt: Date | null;
|
|
18
|
+
appId: string | null;
|
|
19
|
+
frequencyType: number | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './entities/index.model.js';
|
|
2
|
+
export * from './services/test/test.model.js';
|
|
3
|
+
export * from './services/auth/auth.model.js';
|
|
4
|
+
export * from './services/shopify/shopify.model.js';
|
|
5
|
+
export * from './services/component/component.model.js';
|
|
6
|
+
export * from './services/default/default.model.js';
|
|
7
|
+
export * from './services/appSetting/appSetting.model.js';
|
|
8
|
+
export * from './services/colorSettings/colorSettings.model.js';
|
|
9
|
+
export * from './services/menu/menu.model.js';
|
|
10
|
+
export * from './services/screen/screen.model.js';
|
|
11
|
+
export * from './services/app/app.model.js';
|
|
12
|
+
export * from './services/admin/admin.model.js';
|
|
13
|
+
export * from './services/provider/provider.model.js';
|
|
14
|
+
export * from './services/common/common.model.js';
|
|
15
|
+
export * from './services/customer/customer.model.js';
|
|
16
|
+
export * from './services/userDevice/userDevice.model.js';
|
|
17
|
+
export * from './services/reminder/reminder.model.js';
|
|
18
|
+
export * from './services/theme/theme.model.js';
|
|
19
|
+
export * from './services/appBuilder/appBuilder.model.js';
|
|
20
|
+
export * from './services/maintainer/maintainer.model.js';
|
|
21
|
+
export * from './services/test/test.model.js';
|
|
22
|
+
export * from './services/notification/notification.model.js';
|
|
23
|
+
export * from './services/appPublish/appPublish.model.js';
|
|
24
|
+
export * from './services/saas/saas.model.js';
|
|
25
|
+
export * from './services/payment/payment.model.js';
|
|
26
|
+
export * from './services/stripe/stripe.model.js';
|
|
27
|
+
export * from './services/shopifyPayment/shopifyPayment.model.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './entities/index.model.js';
|
|
2
|
+
export * from './services/test/test.model.js';
|
|
3
|
+
export * from './services/auth/auth.model.js';
|
|
4
|
+
export * from './services/shopify/shopify.model.js';
|
|
5
|
+
export * from './services/component/component.model.js';
|
|
6
|
+
export * from './services/default/default.model.js';
|
|
7
|
+
export * from './services/appSetting/appSetting.model.js';
|
|
8
|
+
export * from './services/colorSettings/colorSettings.model.js';
|
|
9
|
+
export * from './services/menu/menu.model.js';
|
|
10
|
+
export * from './services/screen/screen.model.js';
|
|
11
|
+
export * from './services/app/app.model.js';
|
|
12
|
+
export * from './services/admin/admin.model.js';
|
|
13
|
+
export * from './services/provider/provider.model.js';
|
|
14
|
+
export * from './services/common/common.model.js';
|
|
15
|
+
export * from './services/customer/customer.model.js';
|
|
16
|
+
export * from './services/userDevice/userDevice.model.js';
|
|
17
|
+
export * from './services/reminder/reminder.model.js';
|
|
18
|
+
export * from './services/theme/theme.model.js';
|
|
19
|
+
export * from './services/appBuilder/appBuilder.model.js';
|
|
20
|
+
export * from './services/maintainer/maintainer.model.js';
|
|
21
|
+
export * from './services/test/test.model.js';
|
|
22
|
+
export * from './services/notification/notification.model.js';
|
|
23
|
+
export * from './services/appPublish/appPublish.model.js';
|
|
24
|
+
export * from './services/saas/saas.model.js';
|
|
25
|
+
export * from './services/payment/payment.model.js';
|
|
26
|
+
export * from './services/stripe/stripe.model.js';
|
|
27
|
+
export * from './services/shopifyPayment/shopifyPayment.model.js';
|
|
28
|
+
//# sourceMappingURL=index.model.js.map
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as Model from "../../index.model.js";
|
|
2
|
+
export interface PageInfo {
|
|
3
|
+
nextPage: string | null;
|
|
4
|
+
prevPage: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare enum ProductStatus {
|
|
7
|
+
ACTIVE = "active",
|
|
8
|
+
ARCHIVED = "archived",
|
|
9
|
+
DRAFT = "draft"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* API Name: /api/admin/product/get/all
|
|
13
|
+
*/
|
|
14
|
+
export interface GetAllAdminProductReq {
|
|
15
|
+
count: number;
|
|
16
|
+
searchKey: string | null;
|
|
17
|
+
status: ProductStatus | null;
|
|
18
|
+
reverse: boolean;
|
|
19
|
+
sortKey: Model.AdminProductSortKeys | null;
|
|
20
|
+
cursor: string | null;
|
|
21
|
+
isNextPage: boolean;
|
|
22
|
+
isPrevPage: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* API Name: /api/admin/product/get/all
|
|
26
|
+
*/
|
|
27
|
+
export interface GetAllAdminProductRes {
|
|
28
|
+
products: IProduct[];
|
|
29
|
+
pageInfo: Model.StoreFrontPageInfo | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface IProduct {
|
|
32
|
+
id: string;
|
|
33
|
+
title?: string;
|
|
34
|
+
vendor?: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
status?: string;
|
|
37
|
+
image: Model.Image | null;
|
|
38
|
+
priceRange: Model.PriceRange;
|
|
39
|
+
comparePrice?: string;
|
|
40
|
+
availableForSale?: boolean;
|
|
41
|
+
variants: Model.ICustomerProductsVariant[];
|
|
42
|
+
}
|
|
43
|
+
export interface IProductsVariant {
|
|
44
|
+
id: number;
|
|
45
|
+
name?: string;
|
|
46
|
+
price?: string;
|
|
47
|
+
qty: number;
|
|
48
|
+
image?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* API Name: /api/admin/collection/get/all
|
|
52
|
+
*/
|
|
53
|
+
export interface GetAllAdminCollectionsReq extends Omit<GetAllAdminProductReq, "status" | "sortKey"> {
|
|
54
|
+
sortKey: Model.CollectionSortKeys | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* API Name: /api/admin/collection/get/all
|
|
58
|
+
*/
|
|
59
|
+
export interface GetAllAdminCollectionsRes {
|
|
60
|
+
collections: ICollection[];
|
|
61
|
+
pageInfo: Model.StoreFrontPageInfo | undefined;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* API Name: /api/admin/collection/product/get/all
|
|
65
|
+
*/
|
|
66
|
+
export interface GetAllCollectionProductReq extends GetAllAdminProductReq {
|
|
67
|
+
collectionId: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* API Name: /api/admin/collection/product/get/all
|
|
71
|
+
*/
|
|
72
|
+
export type GetAllCollectionProductRes = GetAllAdminProductRes;
|
|
73
|
+
export interface ICollection {
|
|
74
|
+
id: string;
|
|
75
|
+
title?: string;
|
|
76
|
+
handle?: string;
|
|
77
|
+
image?: Model.Image;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* API Name: /api/admin/product/get/all/by/id
|
|
81
|
+
*/
|
|
82
|
+
export interface GetAllAdminProductsByIdsReq {
|
|
83
|
+
ids: string[];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* API Name: /api/admin/product/get/all/by/id
|
|
87
|
+
*/
|
|
88
|
+
export interface GetAllAdminProductsByIdsRes {
|
|
89
|
+
products: IProduct[];
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* API Name: /api/admin/collection/get/all/by/id
|
|
93
|
+
*/
|
|
94
|
+
export type GetAllAdminCollectionsByIdsReq = GetAllAdminProductsByIdsReq;
|
|
95
|
+
/**
|
|
96
|
+
* API Name: /api/admin/collection/get/all/by/id
|
|
97
|
+
*/
|
|
98
|
+
export interface GetAllAdminCollectionsByIdsRes {
|
|
99
|
+
collections: (ICollection | null)[];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* API Name: /api/customer/product/get/all/by/id
|
|
103
|
+
*/
|
|
104
|
+
export type GetAllCustomerProductsByIdsReq = GetAllAdminProductsByIdsReq;
|
|
105
|
+
/**
|
|
106
|
+
* API Name: /api/customer/product/get/all/by/id
|
|
107
|
+
*/
|
|
108
|
+
export interface GetAllCustomerProductsByIdsRes {
|
|
109
|
+
products: Model.ICustomerAdminProduct[];
|
|
110
|
+
}
|
|
111
|
+
export interface ICustomerAdminProduct extends IProduct {
|
|
112
|
+
compareAtPriceRange: Model.PriceRange;
|
|
113
|
+
isWishList?: boolean;
|
|
114
|
+
currency?: string;
|
|
115
|
+
currencySymbol?: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* API Name: /api/customer/product/get/all/by/id
|
|
119
|
+
*/
|
|
120
|
+
export type GetAllCustomerWishListProductsRes = GetAllCustomerProductsByIdsRes;
|
|
121
|
+
/**
|
|
122
|
+
* API Name: /api/customer/collection/get/all/by/id
|
|
123
|
+
*/
|
|
124
|
+
export type GetAllCustomerCollectionsByIdsReq = GetAllAdminCollectionsByIdsReq;
|
|
125
|
+
/**
|
|
126
|
+
* API Name: /api/customer/collection/get/all/by/id
|
|
127
|
+
*/
|
|
128
|
+
export type GetAllCustomerCollectionsByIdsRes = GetAllAdminCollectionsByIdsRes;
|
|
129
|
+
/**
|
|
130
|
+
* API Name: /api/customer/product/tag/get/all
|
|
131
|
+
*/
|
|
132
|
+
export interface GetAllProductsTagsRes {
|
|
133
|
+
tags: string[];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* API Name: /api/customer/product/types/get/all
|
|
137
|
+
*/
|
|
138
|
+
export interface GetAllProductsTypesRes {
|
|
139
|
+
types: string[];
|
|
140
|
+
}
|
|
141
|
+
export interface GetAdminProfileRes {
|
|
142
|
+
userProfile: Model.UserProfile | null;
|
|
143
|
+
}
|
|
144
|
+
export declare enum UserProfileGender {
|
|
145
|
+
MALE = 1,
|
|
146
|
+
FEMALE = 2
|
|
147
|
+
}
|
|
148
|
+
export interface UpdateAdminProfileReq {
|
|
149
|
+
firstName: string | null;
|
|
150
|
+
lastName: string | null;
|
|
151
|
+
gender: UserProfileGender | null;
|
|
152
|
+
mobileNo: string | null;
|
|
153
|
+
languageCode: string;
|
|
154
|
+
}
|
|
155
|
+
export interface UpdateAdminProfileRes {
|
|
156
|
+
isUpdated: boolean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Product update corn job
|
|
160
|
+
*/
|
|
161
|
+
export interface GetCustomerByShopifyReq {
|
|
162
|
+
customerId: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Product update corn job
|
|
166
|
+
*/
|
|
167
|
+
export interface CustomerStoreFrontResponse<T> {
|
|
168
|
+
data: T;
|
|
169
|
+
}
|
|
170
|
+
export interface GetCustomerByShopifyRes {
|
|
171
|
+
id: string;
|
|
172
|
+
verifiedEmail: boolean;
|
|
173
|
+
firstName: string;
|
|
174
|
+
email: string;
|
|
175
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var ProductStatus;
|
|
2
|
+
(function (ProductStatus) {
|
|
3
|
+
ProductStatus["ACTIVE"] = "active";
|
|
4
|
+
ProductStatus["ARCHIVED"] = "archived";
|
|
5
|
+
ProductStatus["DRAFT"] = "draft";
|
|
6
|
+
})(ProductStatus || (ProductStatus = {}));
|
|
7
|
+
export var UserProfileGender;
|
|
8
|
+
(function (UserProfileGender) {
|
|
9
|
+
UserProfileGender[UserProfileGender["MALE"] = 1] = "MALE";
|
|
10
|
+
UserProfileGender[UserProfileGender["FEMALE"] = 2] = "FEMALE";
|
|
11
|
+
})(UserProfileGender || (UserProfileGender = {}));
|
|
12
|
+
//# sourceMappingURL=admin.model.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AppComponent, AppMenuSettings, AppScreenSettings } from "../../index.model.js";
|
|
2
|
+
/**
|
|
3
|
+
* API Name: /api/app/data/get/all
|
|
4
|
+
*/
|
|
5
|
+
export interface AppGetAllComponentsRes {
|
|
6
|
+
appConfigs: AppConfigs;
|
|
7
|
+
}
|
|
8
|
+
export interface AppConfigs {
|
|
9
|
+
app: IAppDetails;
|
|
10
|
+
colors: IColorSettings;
|
|
11
|
+
screenSettings: AppScreenSettings;
|
|
12
|
+
menus: IMenuDetails;
|
|
13
|
+
components: AppComponent[];
|
|
14
|
+
}
|
|
15
|
+
export interface IAppDetails {
|
|
16
|
+
appIcon: string;
|
|
17
|
+
appId: string;
|
|
18
|
+
appName: string;
|
|
19
|
+
appSplashScreen: string | null;
|
|
20
|
+
language: string;
|
|
21
|
+
showBranding: boolean;
|
|
22
|
+
showGuestCheckout: boolean;
|
|
23
|
+
showHolidayEffect: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface IColorSettings {
|
|
26
|
+
primaryColor: string;
|
|
27
|
+
secondaryColor: string;
|
|
28
|
+
cartColor: string;
|
|
29
|
+
chatColor: string;
|
|
30
|
+
menuIcon: string;
|
|
31
|
+
cartIcon: string;
|
|
32
|
+
chatIcon: string;
|
|
33
|
+
appTitleBanner: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface IMenuDetails {
|
|
36
|
+
settings: AppMenuSettings | null;
|
|
37
|
+
menu: IMenu[];
|
|
38
|
+
}
|
|
39
|
+
export interface IMenu {
|
|
40
|
+
displayOrder: number;
|
|
41
|
+
icon: string | null;
|
|
42
|
+
id: string;
|
|
43
|
+
type: string;
|
|
44
|
+
redirectTo: string | null;
|
|
45
|
+
title: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface GetAllAppDataRes {
|
|
48
|
+
appConfigs: AppConfigs;
|
|
49
|
+
}
|