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,342 @@
|
|
|
1
|
+
import * as Model from "../../index.model.js";
|
|
2
|
+
/**
|
|
3
|
+
* API Name : /api/customer/qr/token/get
|
|
4
|
+
*/
|
|
5
|
+
export interface GetTokenFromQRReq {
|
|
6
|
+
uuid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetTokenFromQRRes {
|
|
9
|
+
authorization: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AddWishListReq {
|
|
12
|
+
productId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AddWishListRes {
|
|
15
|
+
isSaved: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface RemoveWishListReq {
|
|
18
|
+
productId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface RemoveWishListRes {
|
|
21
|
+
isRemoved: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface AddProductViewReq {
|
|
24
|
+
productIds: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface AddProductViewRes {
|
|
27
|
+
isAdded: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface GetShippingZoneRes {
|
|
30
|
+
shippingZones: Model.ShopifyShippingZoneRes[];
|
|
31
|
+
}
|
|
32
|
+
export interface CustomerCheckoutDeliveryAddress {
|
|
33
|
+
address1: string | null;
|
|
34
|
+
address2: string | null;
|
|
35
|
+
city: string | null;
|
|
36
|
+
company: string | null;
|
|
37
|
+
country: string | null;
|
|
38
|
+
firstName: string | null;
|
|
39
|
+
lastName: string | null;
|
|
40
|
+
phone: string | null;
|
|
41
|
+
province: string | null;
|
|
42
|
+
zip: string | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* API Name: /api/customer/checkout/create
|
|
46
|
+
*/
|
|
47
|
+
export interface CreateCustomerCheckoutReq {
|
|
48
|
+
discountAmount: string | null;
|
|
49
|
+
discountCode: string | null;
|
|
50
|
+
shippingMethodName: string | null;
|
|
51
|
+
isByCart: boolean;
|
|
52
|
+
deliveryAddress: CustomerCheckoutDeliveryAddress;
|
|
53
|
+
variantId: string | null;
|
|
54
|
+
qty: number | null;
|
|
55
|
+
token: string | null;
|
|
56
|
+
note: string | null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* API Name: /api/customer/checkout/create
|
|
60
|
+
*/
|
|
61
|
+
export interface CreateCustomerCheckoutRes {
|
|
62
|
+
checkout: Model.ShopifyCheckoutRes;
|
|
63
|
+
}
|
|
64
|
+
export interface ReorderReq {
|
|
65
|
+
orderId: string;
|
|
66
|
+
}
|
|
67
|
+
export type ReorderRes = CreateCartRes;
|
|
68
|
+
/**
|
|
69
|
+
* API Name: /api/customer/wishlist/product/get
|
|
70
|
+
*/
|
|
71
|
+
export interface GetWishListProductsReq {
|
|
72
|
+
count: number;
|
|
73
|
+
page: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* API Name: /api/customer/wishlist/product/get
|
|
77
|
+
*/
|
|
78
|
+
export interface GetWishListProductsRes extends Model.GetAllCustomerProductsByIdsRes {
|
|
79
|
+
count: number;
|
|
80
|
+
page: number;
|
|
81
|
+
totalCount: number;
|
|
82
|
+
totalPage: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* API Name: /api/customer/setting/save
|
|
86
|
+
*/
|
|
87
|
+
export interface SaveCustomerSettingReq {
|
|
88
|
+
language: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* API Name: /api/customer/setting/save
|
|
92
|
+
*/
|
|
93
|
+
export interface SaveCustomerSettingRes {
|
|
94
|
+
isSaved: boolean;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* API Name: /api/customer/setting/get
|
|
98
|
+
*/
|
|
99
|
+
export interface GetCustomerSettingRes {
|
|
100
|
+
setting: Model.Customer;
|
|
101
|
+
}
|
|
102
|
+
export interface MailingAddressInput {
|
|
103
|
+
address1: string | null;
|
|
104
|
+
address2: string | null;
|
|
105
|
+
city: string | null;
|
|
106
|
+
company: string | null;
|
|
107
|
+
country: string | null;
|
|
108
|
+
firstName: string | null;
|
|
109
|
+
lastName: string | null;
|
|
110
|
+
phone: string | null;
|
|
111
|
+
province?: string | null;
|
|
112
|
+
zip: string | null;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* API Name: /api/customer/address/create
|
|
116
|
+
*/
|
|
117
|
+
export type CreateCustomerAddressReq = MailingAddressInput;
|
|
118
|
+
/**
|
|
119
|
+
* API Name: /api/customer/address/create
|
|
120
|
+
*/
|
|
121
|
+
export interface CreateCustomerAddressRes {
|
|
122
|
+
isCreated: boolean;
|
|
123
|
+
address: Model.MailingAddress;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* API Name: /api/customer/address/delete
|
|
127
|
+
*/
|
|
128
|
+
export interface DeleteCustomerAddressReq {
|
|
129
|
+
id: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* API Name: /api/customer/address/delete
|
|
133
|
+
*/
|
|
134
|
+
export interface DeleteCustomerAddressRes {
|
|
135
|
+
isDeleted: boolean;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* API Name: /api/customer/address/update
|
|
139
|
+
*/
|
|
140
|
+
export interface UpdateCustomerAddressReq extends CreateCustomerAddressReq {
|
|
141
|
+
id: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* API Name: /api/customer/address/update
|
|
145
|
+
*/
|
|
146
|
+
export interface UpdateCustomerAddressRes {
|
|
147
|
+
isUpdated: boolean;
|
|
148
|
+
address: Model.MailingAddress;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* API Name: /api/customer/address/default/update
|
|
152
|
+
*/
|
|
153
|
+
export interface UpdateCustomerDefaultAddressReq {
|
|
154
|
+
addressId: string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* API Name: /api/customer/address/default/update
|
|
158
|
+
*/
|
|
159
|
+
export interface UpdateCustomerDefaultAddressRes {
|
|
160
|
+
isUpdated: boolean;
|
|
161
|
+
id: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* API Name: /api/customer/create
|
|
165
|
+
*/
|
|
166
|
+
export interface CustomerCreateReq {
|
|
167
|
+
acceptsMarketing: boolean;
|
|
168
|
+
email: string;
|
|
169
|
+
firstName?: string;
|
|
170
|
+
lastName?: string;
|
|
171
|
+
password: string;
|
|
172
|
+
phone?: string;
|
|
173
|
+
language: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* API Name: /api/customer/create
|
|
177
|
+
*/
|
|
178
|
+
export interface CustomerCreateRes {
|
|
179
|
+
customer: Model.ICustomer;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* API Name: /api/customer/cart/address
|
|
183
|
+
*/
|
|
184
|
+
export interface addCartDeliveryAddressReq {
|
|
185
|
+
cartId: string;
|
|
186
|
+
addresses: Array<{
|
|
187
|
+
selected: boolean;
|
|
188
|
+
address: {
|
|
189
|
+
deliveryAddress: {
|
|
190
|
+
address1: string;
|
|
191
|
+
address2?: string;
|
|
192
|
+
city: string;
|
|
193
|
+
company?: string;
|
|
194
|
+
firstName?: string;
|
|
195
|
+
lastName?: string;
|
|
196
|
+
phone?: string;
|
|
197
|
+
provinceCode: string;
|
|
198
|
+
zip: string;
|
|
199
|
+
countryCode: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* API Name: /api/customer/get
|
|
206
|
+
*/
|
|
207
|
+
export interface GetCustomerReq {
|
|
208
|
+
count: number;
|
|
209
|
+
cursor: string | null;
|
|
210
|
+
isNextPage: boolean;
|
|
211
|
+
isPrevPage: boolean;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* API Name: /api/customer/order/get
|
|
215
|
+
*/
|
|
216
|
+
export interface GetCustomerOrderRes {
|
|
217
|
+
orders: Model.CustomerOrder[];
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* API Name: /api/customer/get
|
|
221
|
+
*/
|
|
222
|
+
export interface GetCustomerRes {
|
|
223
|
+
customer: Model.ICustomer;
|
|
224
|
+
pageInfo?: Model.StoreFrontPageInfo;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* API Name: /api/customer/update
|
|
228
|
+
*/
|
|
229
|
+
export type CustomerUpdateReq = Omit<CustomerCreateReq, 'password' | 'language'>;
|
|
230
|
+
/**
|
|
231
|
+
* API Name: /api/customer/update
|
|
232
|
+
*/
|
|
233
|
+
export interface CustomerUpdateRes {
|
|
234
|
+
isUpdated: boolean;
|
|
235
|
+
token: string | null;
|
|
236
|
+
}
|
|
237
|
+
export interface ShopifyCartInfoReq {
|
|
238
|
+
count: number;
|
|
239
|
+
reverse: boolean;
|
|
240
|
+
cursor: string | null;
|
|
241
|
+
isNextPage: boolean;
|
|
242
|
+
isPrevPage: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface GetCartReq {
|
|
245
|
+
pageInfo: ShopifyCartInfoReq;
|
|
246
|
+
}
|
|
247
|
+
export interface GetCartRes {
|
|
248
|
+
cart: Model.ICart | null;
|
|
249
|
+
}
|
|
250
|
+
export interface CreateCartReq {
|
|
251
|
+
lines: Model.CartLineInput[];
|
|
252
|
+
note: string | null;
|
|
253
|
+
discountCodes: string[];
|
|
254
|
+
}
|
|
255
|
+
export interface CreateCartRes {
|
|
256
|
+
id: string;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* API Name: /api/customer/product/get
|
|
260
|
+
*/
|
|
261
|
+
export interface GetCustomerProductByIdReq {
|
|
262
|
+
id: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* API Name: /api/customer/product/get
|
|
266
|
+
*/
|
|
267
|
+
export interface GetCustomerProductByIdRes {
|
|
268
|
+
product: Model.ICustomerProduct;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* API Name: /api/customer/product/get/all
|
|
272
|
+
*/
|
|
273
|
+
export interface GetCustomerAllProductsReq {
|
|
274
|
+
count: number;
|
|
275
|
+
reverse: boolean;
|
|
276
|
+
sortKey: Model.ProductSortKeys | null;
|
|
277
|
+
searchKey: string | null;
|
|
278
|
+
cursor: string | null;
|
|
279
|
+
isNextPage: boolean;
|
|
280
|
+
isPrevPage: boolean;
|
|
281
|
+
filter: {
|
|
282
|
+
tag: string | null;
|
|
283
|
+
lowPrice: string | number | null;
|
|
284
|
+
highPrice: string | number | null;
|
|
285
|
+
productType: string | null;
|
|
286
|
+
vendor: string | null;
|
|
287
|
+
availableForSale: boolean | null;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* API Name: /api/customer/product/get/all
|
|
292
|
+
*/
|
|
293
|
+
export interface GetCustomerAllProductsRes {
|
|
294
|
+
products: Model.ICustomerProductX[];
|
|
295
|
+
pageInfo: Model.StoreFrontPageInfo | undefined;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* API Name: /api/customer/product/recommendations/get
|
|
299
|
+
*/
|
|
300
|
+
export interface GetProductRecommendationsReq {
|
|
301
|
+
productId: string;
|
|
302
|
+
recommendationIntent: Model.ProductRecommendationIntent;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* API Name: /api/customer/product/recommendations/get
|
|
306
|
+
*/
|
|
307
|
+
export interface GetProductRecommendationsRes {
|
|
308
|
+
productRecommendations: Model.ICustomerProductX[];
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* API Name: /api/customer/collection/get
|
|
312
|
+
*/
|
|
313
|
+
export interface GetCustomerCollectionByIdReq extends Omit<GetCustomerAllProductsReq, 'sortKey' | 'searchKey'> {
|
|
314
|
+
id: string;
|
|
315
|
+
sortKey: Model.ProductCollectionSortKeys | null;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* API Name: /api/customer/collection/get
|
|
319
|
+
*/
|
|
320
|
+
export interface GetCustomerCollectionByIdRes {
|
|
321
|
+
collection: Model.ICustomerCollection;
|
|
322
|
+
pageInfo: Model.StoreFrontPageInfo | undefined;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* API Name: /api/customer/collection/get/all
|
|
326
|
+
*/
|
|
327
|
+
export interface GetCustomerAllCollectionsReq {
|
|
328
|
+
count: number;
|
|
329
|
+
reverse: boolean;
|
|
330
|
+
sortKey: Model.CollectionSortKeys | null;
|
|
331
|
+
searchKey: string | null;
|
|
332
|
+
cursor: string | null;
|
|
333
|
+
isNextPage: boolean;
|
|
334
|
+
isPrevPage: boolean;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* API Name: /api/customer/collection/get/all
|
|
338
|
+
*/
|
|
339
|
+
export interface GetCustomerAllCollectionsRes {
|
|
340
|
+
collections: Model.ICollection[];
|
|
341
|
+
pageInfo: Model.StoreFrontPageInfo | undefined;
|
|
342
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Language } from "../../index.model.js";
|
|
2
|
+
export declare enum ComponentTypes {
|
|
3
|
+
CAROUSEL = "CAROUSEL",
|
|
4
|
+
CIRCLE = "CIRCLE",
|
|
5
|
+
COUNTDOWN_TIMER = "COUNTDOWN_TIMER",
|
|
6
|
+
DISCOUNT = "DISCOUNT",
|
|
7
|
+
DIVIDER = "DIVIDER",
|
|
8
|
+
GALLERY = "GALLERY",
|
|
9
|
+
GRID = "GRID",
|
|
10
|
+
IMAGE = "IMAGE",
|
|
11
|
+
RECENTLY_VIEWED = "RECENTLY_VIEWED",
|
|
12
|
+
SEARCH_BAR = "SEARCH_BAR",
|
|
13
|
+
SLIDER = "SLIDER",
|
|
14
|
+
SLIDESHOW = "SLIDESHOW",
|
|
15
|
+
TITLE = "TITLE",
|
|
16
|
+
VIDEO_PLAYER = "VIDEO_PLAYER"
|
|
17
|
+
}
|
|
18
|
+
export declare enum EComponentProperty {
|
|
19
|
+
ADD_TO_CART = "addToCart",
|
|
20
|
+
AUTO_PLAY = "autoPlay",
|
|
21
|
+
ACTION_TEXT = "actionText",
|
|
22
|
+
BAR_TYPE = "barType",
|
|
23
|
+
CLICKABLE = "clickable",
|
|
24
|
+
CONTENT_TYPE = "contentType",
|
|
25
|
+
CONTROL_BAR = "controlBar",
|
|
26
|
+
CUSTOMER_DISCOUNT_CODE = "customerDiscountCode",
|
|
27
|
+
DISCOUNT_CODE = "discountCode",
|
|
28
|
+
DISCOUNT_IMAGE = "discountImage",
|
|
29
|
+
DISPLAY_TYPE = "displayType",
|
|
30
|
+
DIVIDER_TYPE = "dividerType",
|
|
31
|
+
HAS_ACTION_TEXT = "hasActionText",
|
|
32
|
+
HAS_ITEM_MARGIN = "hasItemMargin",
|
|
33
|
+
HAS_MARGIN = "hasMargin",
|
|
34
|
+
HIDE_BORDER = "hideBorder",
|
|
35
|
+
HIDE_WHEN_FINISH = "hideWhenFinish",
|
|
36
|
+
LINK_TO = "linkTo",
|
|
37
|
+
IS_NEED_LINK = "isNeedLink",
|
|
38
|
+
LOOP = "loop",
|
|
39
|
+
MUTE_BTN = "muteBtn",
|
|
40
|
+
PLACEHOLDER = "placeholder",
|
|
41
|
+
PROMOTION_IMAGE = "promotionImage",
|
|
42
|
+
RESTART_BTN = "restartBtn",
|
|
43
|
+
SHOW_ITEM_TITLE = "showItemTitle",
|
|
44
|
+
SHOW_PRICE = "showPrice",
|
|
45
|
+
SHOW_TITLE = "showTitle",
|
|
46
|
+
THUMBNAIL_IMAGE = "thumbnailImage",
|
|
47
|
+
TIMER_EXPIRE_DATE = "timerExpireDate",
|
|
48
|
+
TIMER_NUMBER_COLOR = "timerNumberColor",
|
|
49
|
+
TIMER_TIMEZONE = "timerTimezone",
|
|
50
|
+
TITLE = "title",
|
|
51
|
+
TITLE_ALIGNMENT = "titleAlignment",
|
|
52
|
+
TITLE_POSITION = "titlePosition",
|
|
53
|
+
VIDEO_DISPLAY_TYPE = "videoDisplayType",
|
|
54
|
+
VIDEO_UPLOAD = "videoUpload",
|
|
55
|
+
VIEW_SIZE = "viewSize"
|
|
56
|
+
}
|
|
57
|
+
export type DefaultComponents = {
|
|
58
|
+
[key in ComponentTypes]: string[];
|
|
59
|
+
};
|
|
60
|
+
export interface IComponentGroup {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
components: DefaultComponents;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* API Name: /api/default/component/get/all
|
|
67
|
+
*/
|
|
68
|
+
export interface GetAllComponentRes {
|
|
69
|
+
componentGroups: IComponentGroup[];
|
|
70
|
+
}
|
|
71
|
+
export declare enum MenuTypes {
|
|
72
|
+
SHOWCASE = "SHOWCASE",
|
|
73
|
+
MY_ORDERS = "MY_ORDERS",
|
|
74
|
+
NOTIFICATION = "NOTIFICATION",
|
|
75
|
+
SEARCH = "SEARCH",
|
|
76
|
+
MY_ACCOUNT = "MY_ACCOUNT",
|
|
77
|
+
WEB_URL = "WEB_URL",
|
|
78
|
+
CART = "CART",
|
|
79
|
+
HOME_PAGE = "HOME_PAGE",
|
|
80
|
+
ALL_PRODUCT = "ALL_PRODUCT",
|
|
81
|
+
RECENTLY_VIEWED = "RECENTLY_VIEWED",
|
|
82
|
+
FAVORITES = "FAVORITES",
|
|
83
|
+
GROUP = "GROUP",
|
|
84
|
+
CONTACT = "CONTACT",
|
|
85
|
+
MOBILE_APP_PRIVACY_POLICY = "MOBILE_APP_PRIVACY_POLICY",
|
|
86
|
+
STYLE = "STYLE",
|
|
87
|
+
COLOR = "COLOR",
|
|
88
|
+
PAGE = "PAGE",
|
|
89
|
+
COLLECTION = "COLLECTION"
|
|
90
|
+
}
|
|
91
|
+
export declare enum EMenuProperty {
|
|
92
|
+
NAME = "name",
|
|
93
|
+
TITLE_ALIGN_TYPE = "titleAlignType",
|
|
94
|
+
ICON_TYPE = "iconType",
|
|
95
|
+
URL = "url",
|
|
96
|
+
LEFT_PANEL = "leftPanel",
|
|
97
|
+
BOTTOM_BAR = "bottomBar",
|
|
98
|
+
TEXT_COLOR = "textColor"
|
|
99
|
+
}
|
|
100
|
+
export type DefaultMenus = {
|
|
101
|
+
[key in MenuTypes]: string[];
|
|
102
|
+
};
|
|
103
|
+
export interface DefaultMenusCollection {
|
|
104
|
+
id: string;
|
|
105
|
+
title?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface DefaultMenusPage {
|
|
108
|
+
id: string | number;
|
|
109
|
+
title: string | null;
|
|
110
|
+
html: string | null;
|
|
111
|
+
url: string;
|
|
112
|
+
}
|
|
113
|
+
export interface DefaultMenusField {
|
|
114
|
+
COLLECTION: DefaultMenusCollection[];
|
|
115
|
+
PAGE: DefaultMenusPage[];
|
|
116
|
+
}
|
|
117
|
+
export interface IMenuGroup {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
menus: DefaultMenus;
|
|
121
|
+
fields?: DefaultMenusField;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* API Name: /api/default/menu/get/all
|
|
125
|
+
*/
|
|
126
|
+
export interface GetAllMenuRes {
|
|
127
|
+
menuGroups: IMenuGroup[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* API Name: /api/app/language/get
|
|
131
|
+
*/
|
|
132
|
+
export interface GetAppLanguagesRes {
|
|
133
|
+
languages: Language[];
|
|
134
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export var ComponentTypes;
|
|
2
|
+
(function (ComponentTypes) {
|
|
3
|
+
ComponentTypes["CAROUSEL"] = "CAROUSEL";
|
|
4
|
+
ComponentTypes["CIRCLE"] = "CIRCLE";
|
|
5
|
+
ComponentTypes["COUNTDOWN_TIMER"] = "COUNTDOWN_TIMER";
|
|
6
|
+
ComponentTypes["DISCOUNT"] = "DISCOUNT";
|
|
7
|
+
ComponentTypes["DIVIDER"] = "DIVIDER";
|
|
8
|
+
ComponentTypes["GALLERY"] = "GALLERY";
|
|
9
|
+
ComponentTypes["GRID"] = "GRID";
|
|
10
|
+
ComponentTypes["IMAGE"] = "IMAGE";
|
|
11
|
+
ComponentTypes["RECENTLY_VIEWED"] = "RECENTLY_VIEWED";
|
|
12
|
+
ComponentTypes["SEARCH_BAR"] = "SEARCH_BAR";
|
|
13
|
+
ComponentTypes["SLIDER"] = "SLIDER";
|
|
14
|
+
ComponentTypes["SLIDESHOW"] = "SLIDESHOW";
|
|
15
|
+
ComponentTypes["TITLE"] = "TITLE";
|
|
16
|
+
ComponentTypes["VIDEO_PLAYER"] = "VIDEO_PLAYER";
|
|
17
|
+
})(ComponentTypes || (ComponentTypes = {}));
|
|
18
|
+
export var EComponentProperty;
|
|
19
|
+
(function (EComponentProperty) {
|
|
20
|
+
EComponentProperty["ADD_TO_CART"] = "addToCart";
|
|
21
|
+
EComponentProperty["AUTO_PLAY"] = "autoPlay";
|
|
22
|
+
EComponentProperty["ACTION_TEXT"] = "actionText";
|
|
23
|
+
EComponentProperty["BAR_TYPE"] = "barType";
|
|
24
|
+
EComponentProperty["CLICKABLE"] = "clickable";
|
|
25
|
+
EComponentProperty["CONTENT_TYPE"] = "contentType";
|
|
26
|
+
EComponentProperty["CONTROL_BAR"] = "controlBar";
|
|
27
|
+
EComponentProperty["CUSTOMER_DISCOUNT_CODE"] = "customerDiscountCode";
|
|
28
|
+
EComponentProperty["DISCOUNT_CODE"] = "discountCode";
|
|
29
|
+
EComponentProperty["DISCOUNT_IMAGE"] = "discountImage";
|
|
30
|
+
EComponentProperty["DISPLAY_TYPE"] = "displayType";
|
|
31
|
+
EComponentProperty["DIVIDER_TYPE"] = "dividerType";
|
|
32
|
+
EComponentProperty["HAS_ACTION_TEXT"] = "hasActionText";
|
|
33
|
+
EComponentProperty["HAS_ITEM_MARGIN"] = "hasItemMargin";
|
|
34
|
+
EComponentProperty["HAS_MARGIN"] = "hasMargin";
|
|
35
|
+
EComponentProperty["HIDE_BORDER"] = "hideBorder";
|
|
36
|
+
EComponentProperty["HIDE_WHEN_FINISH"] = "hideWhenFinish";
|
|
37
|
+
EComponentProperty["LINK_TO"] = "linkTo";
|
|
38
|
+
EComponentProperty["IS_NEED_LINK"] = "isNeedLink";
|
|
39
|
+
EComponentProperty["LOOP"] = "loop";
|
|
40
|
+
EComponentProperty["MUTE_BTN"] = "muteBtn";
|
|
41
|
+
EComponentProperty["PLACEHOLDER"] = "placeholder";
|
|
42
|
+
EComponentProperty["PROMOTION_IMAGE"] = "promotionImage";
|
|
43
|
+
EComponentProperty["RESTART_BTN"] = "restartBtn";
|
|
44
|
+
EComponentProperty["SHOW_ITEM_TITLE"] = "showItemTitle";
|
|
45
|
+
EComponentProperty["SHOW_PRICE"] = "showPrice";
|
|
46
|
+
EComponentProperty["SHOW_TITLE"] = "showTitle";
|
|
47
|
+
EComponentProperty["THUMBNAIL_IMAGE"] = "thumbnailImage";
|
|
48
|
+
EComponentProperty["TIMER_EXPIRE_DATE"] = "timerExpireDate";
|
|
49
|
+
EComponentProperty["TIMER_NUMBER_COLOR"] = "timerNumberColor";
|
|
50
|
+
EComponentProperty["TIMER_TIMEZONE"] = "timerTimezone";
|
|
51
|
+
EComponentProperty["TITLE"] = "title";
|
|
52
|
+
EComponentProperty["TITLE_ALIGNMENT"] = "titleAlignment";
|
|
53
|
+
EComponentProperty["TITLE_POSITION"] = "titlePosition";
|
|
54
|
+
EComponentProperty["VIDEO_DISPLAY_TYPE"] = "videoDisplayType";
|
|
55
|
+
EComponentProperty["VIDEO_UPLOAD"] = "videoUpload";
|
|
56
|
+
EComponentProperty["VIEW_SIZE"] = "viewSize";
|
|
57
|
+
})(EComponentProperty || (EComponentProperty = {}));
|
|
58
|
+
export var MenuTypes;
|
|
59
|
+
(function (MenuTypes) {
|
|
60
|
+
MenuTypes["SHOWCASE"] = "SHOWCASE";
|
|
61
|
+
MenuTypes["MY_ORDERS"] = "MY_ORDERS";
|
|
62
|
+
MenuTypes["NOTIFICATION"] = "NOTIFICATION";
|
|
63
|
+
MenuTypes["SEARCH"] = "SEARCH";
|
|
64
|
+
MenuTypes["MY_ACCOUNT"] = "MY_ACCOUNT";
|
|
65
|
+
MenuTypes["WEB_URL"] = "WEB_URL";
|
|
66
|
+
MenuTypes["CART"] = "CART";
|
|
67
|
+
MenuTypes["HOME_PAGE"] = "HOME_PAGE";
|
|
68
|
+
MenuTypes["ALL_PRODUCT"] = "ALL_PRODUCT";
|
|
69
|
+
MenuTypes["RECENTLY_VIEWED"] = "RECENTLY_VIEWED";
|
|
70
|
+
MenuTypes["FAVORITES"] = "FAVORITES";
|
|
71
|
+
MenuTypes["GROUP"] = "GROUP";
|
|
72
|
+
MenuTypes["CONTACT"] = "CONTACT";
|
|
73
|
+
MenuTypes["MOBILE_APP_PRIVACY_POLICY"] = "MOBILE_APP_PRIVACY_POLICY";
|
|
74
|
+
MenuTypes["STYLE"] = "STYLE";
|
|
75
|
+
MenuTypes["COLOR"] = "COLOR";
|
|
76
|
+
MenuTypes["PAGE"] = "PAGE";
|
|
77
|
+
MenuTypes["COLLECTION"] = "COLLECTION";
|
|
78
|
+
})(MenuTypes || (MenuTypes = {}));
|
|
79
|
+
export var EMenuProperty;
|
|
80
|
+
(function (EMenuProperty) {
|
|
81
|
+
EMenuProperty["NAME"] = "name";
|
|
82
|
+
EMenuProperty["TITLE_ALIGN_TYPE"] = "titleAlignType";
|
|
83
|
+
EMenuProperty["ICON_TYPE"] = "iconType";
|
|
84
|
+
EMenuProperty["URL"] = "url";
|
|
85
|
+
EMenuProperty["LEFT_PANEL"] = "leftPanel";
|
|
86
|
+
EMenuProperty["BOTTOM_BAR"] = "bottomBar";
|
|
87
|
+
EMenuProperty["TEXT_COLOR"] = "textColor";
|
|
88
|
+
})(EMenuProperty || (EMenuProperty = {}));
|
|
89
|
+
//# sourceMappingURL=default.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as Model from "../../index.model.js";
|
|
2
|
+
/**
|
|
3
|
+
* API Name: /api/maintainer/login
|
|
4
|
+
*/
|
|
5
|
+
export type MaintainerLoginRes = Model.LoginRes;
|
|
6
|
+
/**
|
|
7
|
+
* API Name: /api/maintainer/login
|
|
8
|
+
*/
|
|
9
|
+
export type MaintainerLoginReq = Model.LoginReq;
|
|
10
|
+
/**
|
|
11
|
+
* API Name: /api/maintainer/app/get/all
|
|
12
|
+
*/
|
|
13
|
+
export interface MaintainerGetAppsRes {
|
|
14
|
+
apps: Model.Organization[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* API Name: /api/maintainer/app/subscriber/get/all
|
|
18
|
+
*/
|
|
19
|
+
export interface MaintainerAppSubscribeReq {
|
|
20
|
+
orgId: string;
|
|
21
|
+
searchKey: string | null;
|
|
22
|
+
pageNo: number;
|
|
23
|
+
count: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* API Name: /api/maintainer/app/subscriber/get/all
|
|
27
|
+
*/
|
|
28
|
+
export interface MaintainerAppSubscribeRes {
|
|
29
|
+
users: Model.UserProfile[];
|
|
30
|
+
count: number;
|
|
31
|
+
pageNo: number;
|
|
32
|
+
totalCount: number;
|
|
33
|
+
totalPage: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* API Name: /api/maintainer/app/subscriber/store/get/all
|
|
37
|
+
*/
|
|
38
|
+
export interface AppSubscriberStoreReq {
|
|
39
|
+
subscriberId: string;
|
|
40
|
+
orgId: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* API Name: /api/maintainer/app/subscriber/store/get/all
|
|
44
|
+
*/
|
|
45
|
+
export interface AppSubscriberStoreRes {
|
|
46
|
+
store: Model.App[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* API Name: /api/maintainer/store/build/get/all
|
|
50
|
+
*/
|
|
51
|
+
export interface AppSubscriberStoreBuildDetailReq {
|
|
52
|
+
orgId: string;
|
|
53
|
+
subscriberId: string;
|
|
54
|
+
appId: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* API Name: /api/maintainer/store/build/get/all
|
|
58
|
+
*/
|
|
59
|
+
export interface AppSubscriberStoreBuildDetailRes {
|
|
60
|
+
storeBuilds: Model.AppBuild[];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* API Name: /api/maintainer/app/build/status/change
|
|
64
|
+
*/
|
|
65
|
+
export interface AppBuildStatusChangeReq {
|
|
66
|
+
id: number;
|
|
67
|
+
status: number;
|
|
68
|
+
}
|
|
69
|
+
export interface AppBuildStatusChangeRes {
|
|
70
|
+
isUpdated: boolean;
|
|
71
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AppMenu, AppMenuSettings } from "../../index.model.js";
|
|
2
|
+
import { MenuTypes } from "../default/default.model.js";
|
|
3
|
+
/**
|
|
4
|
+
* API Name: /api/app/menu/save
|
|
5
|
+
*/
|
|
6
|
+
export interface SaveMenuReq {
|
|
7
|
+
menus: IAppMenu[];
|
|
8
|
+
settings: IAppMenuSetting;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* API Name: /api/app/menu/save
|
|
12
|
+
*/
|
|
13
|
+
export interface SaveMenuRes {
|
|
14
|
+
isSaved: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* API Name: /api/app/menu/get
|
|
18
|
+
*/
|
|
19
|
+
export interface GetMenusRes {
|
|
20
|
+
menus: AppMenu[];
|
|
21
|
+
settings: AppMenuSettings | null;
|
|
22
|
+
}
|
|
23
|
+
export interface IAppMenu {
|
|
24
|
+
id: string | null;
|
|
25
|
+
menuType: MenuTypes;
|
|
26
|
+
displayOrder: number;
|
|
27
|
+
icon?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IAppMenuSetting {
|
|
32
|
+
menuStyle: number;
|
|
33
|
+
iconType: string;
|
|
34
|
+
titleAlignType: string;
|
|
35
|
+
textColor: string;
|
|
36
|
+
}
|
|
37
|
+
export declare enum MenuStye {
|
|
38
|
+
LEFT_PANEL = 1,
|
|
39
|
+
BOTTOM_BAR = 2
|
|
40
|
+
}
|
|
41
|
+
export declare enum IconType {
|
|
42
|
+
LEFT = "LEFT",
|
|
43
|
+
EMPTY = "EMPTY",
|
|
44
|
+
RIGHT = "RIGHT"
|
|
45
|
+
}
|
|
46
|
+
export declare enum TitleAlignType {
|
|
47
|
+
CENTER = "CENTER",
|
|
48
|
+
LEFT = "LEFT",
|
|
49
|
+
RIGHT = "RIGHT"
|
|
50
|
+
}
|
|
51
|
+
export interface DeleteAppMenuReq {
|
|
52
|
+
ids: string[];
|
|
53
|
+
}
|
|
54
|
+
export interface DeleteAppMenuRes {
|
|
55
|
+
isDeleted: boolean;
|
|
56
|
+
}
|