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.
Files changed (140) hide show
  1. package/dist/src/common/model/index.model.d.ts +77 -0
  2. package/dist/src/common/model/index.model.js +45 -0
  3. package/dist/src/entities/index.model.d.ts +84 -0
  4. package/dist/src/entities/index.model.js +166 -0
  5. package/dist/src/entities/logs/CaptchaTokenUsage.entity.d.ts +4 -0
  6. package/dist/src/entities/logs/LogoutTokenUsage.entity.d.ts +4 -0
  7. package/dist/src/entities/logs/PasswordTokenUsage.entity.d.ts +4 -0
  8. package/dist/src/entities/magic/App.entity.d.ts +41 -0
  9. package/dist/src/entities/magic/AppBuild.entity.d.ts +22 -0
  10. package/dist/src/entities/magic/AppComponent.entity.d.ts +55 -0
  11. package/dist/src/entities/magic/AppComponentProduct.entity.d.ts +8 -0
  12. package/dist/src/entities/magic/AppMenu.entity.d.ts +18 -0
  13. package/dist/src/entities/magic/AppMenuSettings.entity.d.ts +16 -0
  14. package/dist/src/entities/magic/AppPublish.entity.d.ts +11 -0
  15. package/dist/src/entities/magic/AppScreenSettings.entity.d.ts +31 -0
  16. package/dist/src/entities/magic/AppSetting.entity.d.ts +13 -0
  17. package/dist/src/entities/magic/Cart.entity.d.ts +6 -0
  18. package/dist/src/entities/magic/City.entity.d.ts +12 -0
  19. package/dist/src/entities/magic/ColorSetting.entity.d.ts +15 -0
  20. package/dist/src/entities/magic/Component.entity.d.ts +15 -0
  21. package/dist/src/entities/magic/ComponentAttribute.entity.d.ts +12 -0
  22. package/dist/src/entities/magic/ComponentGroup.entity.d.ts +6 -0
  23. package/dist/src/entities/magic/ComponentProperty.entity.d.ts +12 -0
  24. package/dist/src/entities/magic/Country.entity.d.ts +21 -0
  25. package/dist/src/entities/magic/Customer.entity.d.ts +4 -0
  26. package/dist/src/entities/magic/Media.entity.d.ts +25 -0
  27. package/dist/src/entities/magic/Menu.entity.d.ts +18 -0
  28. package/dist/src/entities/magic/MenuAttribute.entity.d.ts +12 -0
  29. package/dist/src/entities/magic/MenuGroup.entity.d.ts +6 -0
  30. package/dist/src/entities/magic/MenuProperty.entity.d.ts +12 -0
  31. package/dist/src/entities/magic/Provider.entity.d.ts +13 -0
  32. package/dist/src/entities/magic/RecentlyView.entity.d.ts +5 -0
  33. package/dist/src/entities/magic/Reminder.entity.d.ts +11 -0
  34. package/dist/src/entities/magic/ShopifyEmbeddedApp.entity.d.ts +5 -0
  35. package/dist/src/entities/magic/ShopifySession.entity.d.ts +13 -0
  36. package/dist/src/entities/magic/State.entity.d.ts +12 -0
  37. package/dist/src/entities/magic/Theme.entity.d.ts +17 -0
  38. package/dist/src/entities/magic/Timezone.entity.d.ts +11 -0
  39. package/dist/src/entities/magic/WishList.entity.d.ts +6 -0
  40. package/dist/src/entities/payment/Customer.entity.d.ts +16 -0
  41. package/dist/src/entities/payment/Invoice.entity.d.ts +19 -0
  42. package/dist/src/entities/payment/OrderPayment.entity.d.ts +27 -0
  43. package/dist/src/entities/payment/OrderPaymentLog.entity.d.ts +8 -0
  44. package/dist/src/entities/payment/OverrideRetryPaymentSetting.entity.d.ts +8 -0
  45. package/dist/src/entities/payment/PaymentFee.entity.d.ts +17 -0
  46. package/dist/src/entities/payment/PaymentGroup.entity.d.ts +9 -0
  47. package/dist/src/entities/payment/PaymentLog.entity.d.ts +7 -0
  48. package/dist/src/entities/payment/PaymentProvider.entity.d.ts +14 -0
  49. package/dist/src/entities/payment/PaymentSetting.entity.d.ts +17 -0
  50. package/dist/src/entities/payment/PaymentType.entity.d.ts +8 -0
  51. package/dist/src/entities/payment/RetryPaymentLog.entity.d.ts +9 -0
  52. package/dist/src/entities/payment/RetryPaymentSetting.entity.d.ts +7 -0
  53. package/dist/src/entities/payment/Subscription.entity.d.ts +21 -0
  54. package/dist/src/entities/payment/SubscriptionLog.entity.d.ts +9 -0
  55. package/dist/src/entities/public/Country.entity.d.ts +14 -0
  56. package/dist/src/entities/public/CountryMl.entity.d.ts +8 -0
  57. package/dist/src/entities/public/ErrorLog.entity.d.ts +7 -0
  58. package/dist/src/entities/public/ErrorText.entity.d.ts +9 -0
  59. package/dist/src/entities/public/Language.entity.d.ts +6 -0
  60. package/dist/src/entities/public/Menu.entity.d.ts +20 -0
  61. package/dist/src/entities/public/MenuMl.entity.d.ts +9 -0
  62. package/dist/src/entities/public/Module.entity.d.ts +10 -0
  63. package/dist/src/entities/public/OrgSetting.entity.d.ts +11 -0
  64. package/dist/src/entities/public/Organization.entity.d.ts +24 -0
  65. package/dist/src/entities/public/Template.entity.d.ts +17 -0
  66. package/dist/src/entities/public/TemplateMl.entity.d.ts +14 -0
  67. package/dist/src/entities/public/Timezone.entity.d.ts +14 -0
  68. package/dist/src/entities/saas/CustomizedModule.entity.d.ts +9 -0
  69. package/dist/src/entities/saas/OrderItem.entity.d.ts +17 -0
  70. package/dist/src/entities/saas/Plan.entity.d.ts +23 -0
  71. package/dist/src/entities/saas/PlanModule.entity.d.ts +18 -0
  72. package/dist/src/entities/saas/PlanRestriction.entity.d.ts +6 -0
  73. package/dist/src/entities/saas/SaasOrderPayment.entity.d.ts +17 -0
  74. package/dist/src/entities/users/Plan.entity.d.ts +12 -0
  75. package/dist/src/entities/users/RoleAllowedRole.entity.d.ts +9 -0
  76. package/dist/src/entities/users/SignInOtpHistory.entity.d.ts +13 -0
  77. package/dist/src/entities/users/UnsubscribedEmail.entity.d.ts +4 -0
  78. package/dist/src/entities/users/UserDevice.entity.d.ts +12 -0
  79. package/dist/src/entities/users/UserLoginActivity.entity.d.ts +13 -0
  80. package/dist/src/entities/users/UserNotification.entity.d.ts +21 -0
  81. package/dist/src/entities/users/UserPermission.entity.d.ts +14 -0
  82. package/dist/src/entities/users/UserProfile.entity.d.ts +34 -0
  83. package/dist/src/entities/users/UserRole.entity.d.ts +13 -0
  84. package/dist/src/entities/users/UserSetting.entity.d.ts +14 -0
  85. package/dist/src/entities/view/ViewSubscriptionDetail.entity.d.ts +20 -0
  86. package/dist/src/index.model.d.ts +27 -0
  87. package/dist/src/index.model.js +28 -0
  88. package/dist/src/services/admin/admin.model.d.ts +175 -0
  89. package/dist/src/services/admin/admin.model.js +12 -0
  90. package/dist/src/services/app/app.model.d.ts +49 -0
  91. package/dist/src/services/app/app.model.js +2 -0
  92. package/dist/src/services/appBuilder/appBuilder.model.d.ts +73 -0
  93. package/dist/src/services/appBuilder/appBuilder.model.js +30 -0
  94. package/dist/src/services/appPublish/appPublish.model.d.ts +9 -0
  95. package/dist/src/services/appPublish/appPublish.model.js +2 -0
  96. package/dist/src/services/appSetting/appSetting.model.d.ts +17 -0
  97. package/dist/src/services/appSetting/appSetting.model.js +2 -0
  98. package/dist/src/services/auth/auth.model.d.ts +143 -0
  99. package/dist/src/services/auth/auth.model.js +16 -0
  100. package/dist/src/services/colorSettings/colorSettings.model.d.ts +18 -0
  101. package/dist/src/services/colorSettings/colorSettings.model.js +2 -0
  102. package/dist/src/services/common/common.model.d.ts +69 -0
  103. package/dist/src/services/common/common.model.js +2 -0
  104. package/dist/src/services/component/component.model.d.ts +87 -0
  105. package/dist/src/services/component/component.model.js +15 -0
  106. package/dist/src/services/customer/customer.model.d.ts +342 -0
  107. package/dist/src/services/customer/customer.model.js +2 -0
  108. package/dist/src/services/default/default.model.d.ts +134 -0
  109. package/dist/src/services/default/default.model.js +89 -0
  110. package/dist/src/services/file/file.model.d.ts +1 -0
  111. package/dist/src/services/file/file.model.js +2 -0
  112. package/dist/src/services/maintainer/maintainer.model.d.ts +71 -0
  113. package/dist/src/services/maintainer/maintainer.model.js +2 -0
  114. package/dist/src/services/menu/menu.model.d.ts +56 -0
  115. package/dist/src/services/menu/menu.model.js +18 -0
  116. package/dist/src/services/notification/notification.model.d.ts +280 -0
  117. package/dist/src/services/notification/notification.model.js +69 -0
  118. package/dist/src/services/payment/payment.model.d.ts +153 -0
  119. package/dist/src/services/payment/payment.model.js +43 -0
  120. package/dist/src/services/provider/provider.model.d.ts +10 -0
  121. package/dist/src/services/provider/provider.model.js +5 -0
  122. package/dist/src/services/reminder/reminder.model.d.ts +13 -0
  123. package/dist/src/services/reminder/reminder.model.js +2 -0
  124. package/dist/src/services/saas/saas.model.d.ts +62 -0
  125. package/dist/src/services/saas/saas.model.js +7 -0
  126. package/dist/src/services/screen/screen.model.d.ts +37 -0
  127. package/dist/src/services/screen/screen.model.js +2 -0
  128. package/dist/src/services/shopify/shopify.model.d.ts +1009 -0
  129. package/dist/src/services/shopify/shopify.model.js +84 -0
  130. package/dist/src/services/shopifyPayment/shopifyPayment.model.d.ts +5 -0
  131. package/dist/src/services/shopifyPayment/shopifyPayment.model.js +6 -0
  132. package/dist/src/services/stripe/stripe.model.d.ts +9 -0
  133. package/dist/src/services/stripe/stripe.model.js +2 -0
  134. package/dist/src/services/test/test.model.d.ts +1 -0
  135. package/dist/src/services/test/test.model.js +2 -0
  136. package/dist/src/services/theme/theme.model.d.ts +23 -0
  137. package/dist/src/services/theme/theme.model.js +2 -0
  138. package/dist/src/services/userDevice/userDevice.model.d.ts +7 -0
  139. package/dist/src/services/userDevice/userDevice.model.js +2 -0
  140. 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,9 @@
1
+ export interface AppPublishReq {
2
+ promotionalText: string | null;
3
+ category: string | null;
4
+ subCategory: string | null;
5
+ description: string | null;
6
+ }
7
+ export interface AppPublishRes {
8
+ isSaved: boolean;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=appPublish.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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=appSetting.model.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=colorSettings.model.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=common.model.js.map
@@ -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