types-magic-api 0.1.25 → 0.1.27

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 +344 -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 +1010 -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,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
+ }
@@ -0,0 +1,18 @@
1
+ export var MenuStye;
2
+ (function (MenuStye) {
3
+ MenuStye[MenuStye["LEFT_PANEL"] = 1] = "LEFT_PANEL";
4
+ MenuStye[MenuStye["BOTTOM_BAR"] = 2] = "BOTTOM_BAR";
5
+ })(MenuStye || (MenuStye = {}));
6
+ export var IconType;
7
+ (function (IconType) {
8
+ IconType["LEFT"] = "LEFT";
9
+ IconType["EMPTY"] = "EMPTY";
10
+ IconType["RIGHT"] = "RIGHT";
11
+ })(IconType || (IconType = {}));
12
+ export var TitleAlignType;
13
+ (function (TitleAlignType) {
14
+ TitleAlignType["CENTER"] = "CENTER";
15
+ TitleAlignType["LEFT"] = "LEFT";
16
+ TitleAlignType["RIGHT"] = "RIGHT";
17
+ })(TitleAlignType || (TitleAlignType = {}));
18
+ //# sourceMappingURL=menu.model.js.map
@@ -0,0 +1,280 @@
1
+ import { Reminder } from "../../index.model.js";
2
+ export interface NotificationDetails {
3
+ deviceToken: string[] | null;
4
+ emailId: string | null;
5
+ mobileNumber: string | null;
6
+ userId: string;
7
+ orgId: string;
8
+ userName: string;
9
+ otherDetail?: object;
10
+ color?: string;
11
+ emailUnsubscribeLink?: string;
12
+ productImageUrl?: string;
13
+ appName?: string;
14
+ }
15
+ export interface TemplateContent {
16
+ push: {
17
+ body: string;
18
+ subject: string;
19
+ image: string;
20
+ };
21
+ email: {
22
+ body: string;
23
+ subject: string;
24
+ };
25
+ sms: {
26
+ message: string;
27
+ };
28
+ }
29
+ export interface UserAppNotificationType {
30
+ title: string;
31
+ body: string;
32
+ deviceToken: string[];
33
+ image?: string;
34
+ color?: string;
35
+ }
36
+ export interface UserEmailNotificationType {
37
+ sub: string;
38
+ body: string;
39
+ emailId: string[];
40
+ }
41
+ export interface UserMobileNotificationType {
42
+ message: string;
43
+ mobileNo: string;
44
+ }
45
+ export interface EmailSettings {
46
+ auth: {
47
+ pass: string;
48
+ user: string;
49
+ encryption: string;
50
+ };
51
+ from: string;
52
+ host: string;
53
+ port: number;
54
+ fromName: string;
55
+ }
56
+ export declare enum NotificationType {
57
+ OTPEmail = 1,
58
+ PasswordChanged = 2,
59
+ ForgetPassword = 3,
60
+ NewPostAdmin = 4,
61
+ UpdatePostToAdmin = 5,
62
+ UpdatePostToUser = 6,
63
+ AdminStatusChanged = 7,
64
+ AccountDeleted = 8,
65
+ NeedSupport = 9,
66
+ StockUpdate = 10,
67
+ buildSuccess = 11,
68
+ buildProcessPending = 12,
69
+ PublishPending = 13,
70
+ DealMail = 14,
71
+ OptionAppoinmentMail = 15,
72
+ RegistrationEmail = 16,
73
+ NoWorkStart = 17,
74
+ OptionRestPassword = 18,
75
+ ConfirmEmail = 19,
76
+ OtptionSurveyEmail = 20,
77
+ BuildFailure = 21,
78
+ NoActiveTime = 22,
79
+ OptionForgetPassword = 23,
80
+ BuildStart = 24,
81
+ IosBuildStart = 25,
82
+ IosBuildStartRequest = 26,
83
+ NoActivity = 27,
84
+ AppPublish = 28,
85
+ AppReleaseSuccess = 29,
86
+ IosAppReleaseSuccess = 30,
87
+ AppReleaseRequest = 31
88
+ }
89
+ export declare enum NotificationTemplate {
90
+ OTPEmail = "otp_email",
91
+ PasswordChanged = "password_changed",
92
+ ForgetPassword = "forget_password",
93
+ NewPostAdmin = "new_post_admin",
94
+ UpdatePostToAdmin = "update_post_to_admin",
95
+ UpdatePostToUser = "update_post_to_user",
96
+ AdminStatusChanged = "admin_status_changed",
97
+ AccountDeleted = "account_deleted",
98
+ NeedSupport = "need_support",
99
+ StockUpdate = "stock_update",
100
+ buildSuccess = "build_success",
101
+ buildProcessPending = "build_process_pending",
102
+ PublishPending = "publish_pending",
103
+ DealMail = "deal_mail",
104
+ OptionAppoinmentMail = "option_appoinment_schedule",
105
+ RegistrationEmail = "registeration_email",
106
+ NoWorkStart = "no_work_started",
107
+ OptionRestPassword = "option_reset_password",
108
+ ConfirmEmail = "confirmation_email",
109
+ OtptionSurveyEmail = "option_survey_email",
110
+ BuildFailure = "build_failure",
111
+ NoActiveTime = "no_activity_time",
112
+ OptionForgetPassword = "option_forget_password",
113
+ BuildStart = "build_start",
114
+ IosBuildStart = "ios_build_start",
115
+ IosBuildStartReq = "ios_build_start_Req",
116
+ NoActivity = "no_activity",
117
+ AppPublish = "app_publish_to_maintainer",
118
+ AppReleaseSuccess = "app_release_success",
119
+ IosAppReleaseSuccess = "ios_app_release_success",
120
+ AppReleaseRequest = "app_release_request"
121
+ }
122
+ export interface SendEmailNotificationOTPReq {
123
+ emailId: string;
124
+ userId: string;
125
+ otp: string;
126
+ }
127
+ export interface SendEmailNotification extends NotificationDetails {
128
+ emailId: string;
129
+ userId: string;
130
+ otp: string;
131
+ }
132
+ export interface SendPasswordChangedReq {
133
+ userId: string;
134
+ emailId: string;
135
+ firstName: string | null;
136
+ lastName: string | null;
137
+ }
138
+ export type SendPasswordChangedNotification = NotificationDetails;
139
+ export interface SendForgetPasswordReq {
140
+ userId: string;
141
+ emailId: string;
142
+ firstName: string | null;
143
+ lastName: string | null;
144
+ link: string;
145
+ }
146
+ export interface SendForgetPasswordNotification extends NotificationDetails {
147
+ link: string;
148
+ }
149
+ export interface SendPostAddedNotificationReq {
150
+ userId: string;
151
+ }
152
+ export interface SendPostAddedNotification extends NotificationDetails {
153
+ user: string;
154
+ }
155
+ export interface SendPostUpdateToAdminNotification extends NotificationDetails {
156
+ user: string;
157
+ }
158
+ export type SendPostUpdateToUserNotification = NotificationDetails;
159
+ export interface SendPostStatusChangedNotification extends NotificationDetails {
160
+ status: string;
161
+ }
162
+ export interface AppReminder {
163
+ appId: string;
164
+ reminder: Reminder[];
165
+ }
166
+ export interface AppBuildStartNotificationReq {
167
+ userId: string;
168
+ name: string;
169
+ team: string;
170
+ }
171
+ export interface AppBuildStartNotification extends NotificationDetails {
172
+ team: string;
173
+ }
174
+ export interface MaintainerDetail {
175
+ orgId: string;
176
+ userId: string;
177
+ firstName: string;
178
+ emailId: string;
179
+ team: string;
180
+ }
181
+ export interface IosBuildStartNotificationToAdmin extends NotificationDetails {
182
+ appName: string;
183
+ team: string;
184
+ }
185
+ export interface IosBuildStartNotificationReq {
186
+ userId: string;
187
+ name: string;
188
+ team: string;
189
+ }
190
+ export interface IosBuildStartNotification extends NotificationDetails {
191
+ team: string;
192
+ }
193
+ export interface AppBuildFailureNotificationReq {
194
+ userId: string;
195
+ name: string;
196
+ team: string;
197
+ supportEmailId: string;
198
+ }
199
+ export interface AppBuildFailureNotification extends NotificationDetails {
200
+ team: string;
201
+ supportEmailId: string;
202
+ }
203
+ export interface AppBuildSuccessNotificationReq {
204
+ userId: string;
205
+ name: string;
206
+ team: string;
207
+ supportEmailId: string;
208
+ }
209
+ export interface AppBuildSuccessNotification extends NotificationDetails {
210
+ team: string;
211
+ supportEmailId: string;
212
+ }
213
+ export interface ConfirmationNotificationReq {
214
+ userId: string;
215
+ name: string;
216
+ team: string;
217
+ supportEmailId: string;
218
+ }
219
+ export interface ConfirmationNotification extends NotificationDetails {
220
+ team: string;
221
+ supportEmailId: string;
222
+ }
223
+ export interface NeedSupportReq {
224
+ userId: string;
225
+ name: string;
226
+ team: string;
227
+ supportEmailId: string;
228
+ }
229
+ export interface NeedSupport extends NotificationDetails {
230
+ team: string;
231
+ supportEmailId: string;
232
+ }
233
+ export interface AfterRegistrationEmailReq {
234
+ userId: string;
235
+ name: string;
236
+ team: string;
237
+ supportEmailId: string;
238
+ }
239
+ export interface AfterRegistrationEmail extends NotificationDetails {
240
+ team: string;
241
+ supportEmailId: string;
242
+ }
243
+ export interface StockUpdateReq {
244
+ userId: string;
245
+ name: string;
246
+ team: string;
247
+ productName?: string;
248
+ productVariant: string;
249
+ productBrand?: string;
250
+ productSize?: string;
251
+ productColor?: string;
252
+ productPrice?: string;
253
+ productImageUrl?: string;
254
+ }
255
+ export interface StockUpdate extends NotificationDetails {
256
+ team: string;
257
+ productName?: string;
258
+ productVariant: string;
259
+ productBrand?: string;
260
+ productSize?: string;
261
+ productColor?: string;
262
+ productPrice?: string;
263
+ }
264
+ export interface AppPublishNotification extends NotificationDetails {
265
+ appName: string;
266
+ team: string;
267
+ }
268
+ export interface AppReleaseSuccessEmail extends NotificationDetails {
269
+ team: string;
270
+ playStoreAppLink: string;
271
+ }
272
+ export interface AppReleaseRequestEmail extends NotificationDetails {
273
+ team: string;
274
+ appName: string;
275
+ }
276
+ export interface IosAppReleaseSuccessEmail extends NotificationDetails {
277
+ team: string;
278
+ appName: string;
279
+ playStoreAppLink: string;
280
+ }
@@ -0,0 +1,69 @@
1
+ export var NotificationType;
2
+ (function (NotificationType) {
3
+ NotificationType[NotificationType["OTPEmail"] = 1] = "OTPEmail";
4
+ NotificationType[NotificationType["PasswordChanged"] = 2] = "PasswordChanged";
5
+ NotificationType[NotificationType["ForgetPassword"] = 3] = "ForgetPassword";
6
+ NotificationType[NotificationType["NewPostAdmin"] = 4] = "NewPostAdmin";
7
+ NotificationType[NotificationType["UpdatePostToAdmin"] = 5] = "UpdatePostToAdmin";
8
+ NotificationType[NotificationType["UpdatePostToUser"] = 6] = "UpdatePostToUser";
9
+ NotificationType[NotificationType["AdminStatusChanged"] = 7] = "AdminStatusChanged";
10
+ NotificationType[NotificationType["AccountDeleted"] = 8] = "AccountDeleted";
11
+ NotificationType[NotificationType["NeedSupport"] = 9] = "NeedSupport";
12
+ NotificationType[NotificationType["StockUpdate"] = 10] = "StockUpdate";
13
+ NotificationType[NotificationType["buildSuccess"] = 11] = "buildSuccess";
14
+ NotificationType[NotificationType["buildProcessPending"] = 12] = "buildProcessPending";
15
+ NotificationType[NotificationType["PublishPending"] = 13] = "PublishPending";
16
+ NotificationType[NotificationType["DealMail"] = 14] = "DealMail";
17
+ NotificationType[NotificationType["OptionAppoinmentMail"] = 15] = "OptionAppoinmentMail";
18
+ NotificationType[NotificationType["RegistrationEmail"] = 16] = "RegistrationEmail";
19
+ NotificationType[NotificationType["NoWorkStart"] = 17] = "NoWorkStart";
20
+ NotificationType[NotificationType["OptionRestPassword"] = 18] = "OptionRestPassword";
21
+ NotificationType[NotificationType["ConfirmEmail"] = 19] = "ConfirmEmail";
22
+ NotificationType[NotificationType["OtptionSurveyEmail"] = 20] = "OtptionSurveyEmail";
23
+ NotificationType[NotificationType["BuildFailure"] = 21] = "BuildFailure";
24
+ NotificationType[NotificationType["NoActiveTime"] = 22] = "NoActiveTime";
25
+ NotificationType[NotificationType["OptionForgetPassword"] = 23] = "OptionForgetPassword";
26
+ NotificationType[NotificationType["BuildStart"] = 24] = "BuildStart";
27
+ NotificationType[NotificationType["IosBuildStart"] = 25] = "IosBuildStart";
28
+ NotificationType[NotificationType["IosBuildStartRequest"] = 26] = "IosBuildStartRequest";
29
+ NotificationType[NotificationType["NoActivity"] = 27] = "NoActivity";
30
+ NotificationType[NotificationType["AppPublish"] = 28] = "AppPublish";
31
+ NotificationType[NotificationType["AppReleaseSuccess"] = 29] = "AppReleaseSuccess";
32
+ NotificationType[NotificationType["IosAppReleaseSuccess"] = 30] = "IosAppReleaseSuccess";
33
+ NotificationType[NotificationType["AppReleaseRequest"] = 31] = "AppReleaseRequest";
34
+ })(NotificationType || (NotificationType = {}));
35
+ export var NotificationTemplate;
36
+ (function (NotificationTemplate) {
37
+ NotificationTemplate["OTPEmail"] = "otp_email";
38
+ NotificationTemplate["PasswordChanged"] = "password_changed";
39
+ NotificationTemplate["ForgetPassword"] = "forget_password";
40
+ NotificationTemplate["NewPostAdmin"] = "new_post_admin";
41
+ NotificationTemplate["UpdatePostToAdmin"] = "update_post_to_admin";
42
+ NotificationTemplate["UpdatePostToUser"] = "update_post_to_user";
43
+ NotificationTemplate["AdminStatusChanged"] = "admin_status_changed";
44
+ NotificationTemplate["AccountDeleted"] = "account_deleted";
45
+ NotificationTemplate["NeedSupport"] = "need_support";
46
+ NotificationTemplate["StockUpdate"] = "stock_update";
47
+ NotificationTemplate["buildSuccess"] = "build_success";
48
+ NotificationTemplate["buildProcessPending"] = "build_process_pending";
49
+ NotificationTemplate["PublishPending"] = "publish_pending";
50
+ NotificationTemplate["DealMail"] = "deal_mail";
51
+ NotificationTemplate["OptionAppoinmentMail"] = "option_appoinment_schedule";
52
+ NotificationTemplate["RegistrationEmail"] = "registeration_email";
53
+ NotificationTemplate["NoWorkStart"] = "no_work_started";
54
+ NotificationTemplate["OptionRestPassword"] = "option_reset_password";
55
+ NotificationTemplate["ConfirmEmail"] = "confirmation_email";
56
+ NotificationTemplate["OtptionSurveyEmail"] = "option_survey_email";
57
+ NotificationTemplate["BuildFailure"] = "build_failure";
58
+ NotificationTemplate["NoActiveTime"] = "no_activity_time";
59
+ NotificationTemplate["OptionForgetPassword"] = "option_forget_password";
60
+ NotificationTemplate["BuildStart"] = "build_start";
61
+ NotificationTemplate["IosBuildStart"] = "ios_build_start";
62
+ NotificationTemplate["IosBuildStartReq"] = "ios_build_start_Req";
63
+ NotificationTemplate["NoActivity"] = "no_activity";
64
+ NotificationTemplate["AppPublish"] = "app_publish_to_maintainer";
65
+ NotificationTemplate["AppReleaseSuccess"] = "app_release_success";
66
+ NotificationTemplate["IosAppReleaseSuccess"] = "ios_app_release_success";
67
+ NotificationTemplate["AppReleaseRequest"] = "app_release_request";
68
+ })(NotificationTemplate || (NotificationTemplate = {}));
69
+ //# sourceMappingURL=notification.model.js.map
@@ -0,0 +1,153 @@
1
+ import { OrderItem, OrderPayment, SaaSOrderPayment } from "../../index.model.js";
2
+ export declare enum PaymentStatus {
3
+ New = 1,
4
+ WaitingForPayment = 8,
5
+ FAILURE = 9,
6
+ SUCCESS = 10,
7
+ PENDING = 11
8
+ }
9
+ export declare enum PaymentLogStage {
10
+ InitialRQ = 1,
11
+ InitialRS = 2,
12
+ WebhookRQ = 3,
13
+ WebhookRS = 4,
14
+ InquiryRQ = 5,
15
+ InquiryRS = 6
16
+ }
17
+ export interface IProviderSetting {
18
+ secretKey: string;
19
+ publishableKey: string;
20
+ webhookSecret: string;
21
+ successURL: string;
22
+ cancelURL: string;
23
+ }
24
+ export interface IOrderDetail {
25
+ mode: "payment" | "subscription";
26
+ emailId: string;
27
+ orgId: string;
28
+ userId: string;
29
+ trialPeriodDays?: number;
30
+ lineItems: LineItem[];
31
+ }
32
+ export interface LineItem {
33
+ price_data?: PriceData;
34
+ price?: string;
35
+ quantity: number;
36
+ }
37
+ export interface PriceData {
38
+ currency: string;
39
+ product_data: ProductData;
40
+ unit_amount: number;
41
+ recurring?: RecurringData;
42
+ }
43
+ export interface ProductData {
44
+ name: string;
45
+ images?: string[];
46
+ description?: string;
47
+ }
48
+ export interface RecurringData {
49
+ interval: 'day' | 'month' | 'week' | 'year';
50
+ }
51
+ export interface PaymentSessionReq {
52
+ planId: number;
53
+ qty: number;
54
+ moduleId: number[];
55
+ isHaveTrail: boolean;
56
+ emailId: string;
57
+ userId: string;
58
+ orgId: string;
59
+ trailDays?: number;
60
+ appId: string;
61
+ }
62
+ export interface PaymentSessionRes {
63
+ orderId: string;
64
+ orderPaymentId: string;
65
+ paymentProviderId: string;
66
+ }
67
+ export interface BuyPlanRes extends PaymentSessionRes {
68
+ appLaunchUrl: string;
69
+ }
70
+ export interface getPaymentSessionReq {
71
+ sessionid: string;
72
+ providerid: string;
73
+ orderpaymentid: string;
74
+ }
75
+ export interface PaymentSessionPriceRes {
76
+ order: SaaSOrderPayment;
77
+ orderItems: OrderItem[];
78
+ orderDetail: IOrderDetail;
79
+ }
80
+ export interface FeeSummary {
81
+ id: number;
82
+ amount: string;
83
+ paymentSettingId: number;
84
+ }
85
+ export interface RoundingDetail {
86
+ amountBeforeRounding: number;
87
+ amountAfterRounding: number;
88
+ difference: number;
89
+ }
90
+ export interface PaymentListForPayment {
91
+ card_type: string;
92
+ display_order: number;
93
+ group_id: string;
94
+ group_name: string;
95
+ is_production: boolean;
96
+ logo_url: string;
97
+ payment_settings_id: number;
98
+ provider_name: string;
99
+ provider_type: string;
100
+ small_logo_url: string;
101
+ description: string;
102
+ payment_type: string;
103
+ payment_group_id: string;
104
+ text_to_display: string;
105
+ fee_percentage: number;
106
+ fee_amount: number;
107
+ }
108
+ export declare enum OrderType {
109
+ subscription = 101
110
+ }
111
+ export declare enum OrderPaymentType {
112
+ subscription = "subscription"
113
+ }
114
+ export interface WebhookReq {
115
+ status: PaymentStatus;
116
+ transactionRef: string;
117
+ approvalCode: string;
118
+ statusInfo: string;
119
+ subscription?: string;
120
+ req?: unknown;
121
+ }
122
+ export declare abstract class PaymentHandler {
123
+ getSession: (order: OrderPayment, supportedCurrencies: string[], req: PaymentSessionRes) => Promise<object>;
124
+ handleWebHook: (paymentResponse: object) => Promise<WebhookReq>;
125
+ saveSubscription: (id: string, req: PaymentSessionRes) => Promise<void>;
126
+ }
127
+ export declare enum PaymentProviderType {
128
+ stripe = "stripe",
129
+ shopify = "shopify"
130
+ }
131
+ export interface WebhookRes {
132
+ isSuccess: boolean;
133
+ }
134
+ export declare enum SubscriptionStatus {
135
+ active = 1,
136
+ canceled = 2,
137
+ trialing = 3,
138
+ incomplete = 4
139
+ }
140
+ /**
141
+ * API Name: /api/payment/order/status
142
+ */
143
+ export interface GetPaymentStatusReq {
144
+ token: string;
145
+ }
146
+ /**
147
+ * API Name: /api/payment/order/status
148
+ */
149
+ export interface GetPaymentStatusRes {
150
+ orderPaymentId: string;
151
+ status: number;
152
+ transactionCode: string | null;
153
+ }
@@ -0,0 +1,43 @@
1
+ export var PaymentStatus;
2
+ (function (PaymentStatus) {
3
+ PaymentStatus[PaymentStatus["New"] = 1] = "New";
4
+ PaymentStatus[PaymentStatus["WaitingForPayment"] = 8] = "WaitingForPayment";
5
+ PaymentStatus[PaymentStatus["FAILURE"] = 9] = "FAILURE";
6
+ PaymentStatus[PaymentStatus["SUCCESS"] = 10] = "SUCCESS";
7
+ PaymentStatus[PaymentStatus["PENDING"] = 11] = "PENDING";
8
+ })(PaymentStatus || (PaymentStatus = {}));
9
+ export var PaymentLogStage;
10
+ (function (PaymentLogStage) {
11
+ PaymentLogStage[PaymentLogStage["InitialRQ"] = 1] = "InitialRQ";
12
+ PaymentLogStage[PaymentLogStage["InitialRS"] = 2] = "InitialRS";
13
+ PaymentLogStage[PaymentLogStage["WebhookRQ"] = 3] = "WebhookRQ";
14
+ PaymentLogStage[PaymentLogStage["WebhookRS"] = 4] = "WebhookRS";
15
+ PaymentLogStage[PaymentLogStage["InquiryRQ"] = 5] = "InquiryRQ";
16
+ PaymentLogStage[PaymentLogStage["InquiryRS"] = 6] = "InquiryRS";
17
+ })(PaymentLogStage || (PaymentLogStage = {}));
18
+ export var OrderType;
19
+ (function (OrderType) {
20
+ OrderType[OrderType["subscription"] = 101] = "subscription";
21
+ })(OrderType || (OrderType = {}));
22
+ export var OrderPaymentType;
23
+ (function (OrderPaymentType) {
24
+ OrderPaymentType["subscription"] = "subscription";
25
+ })(OrderPaymentType || (OrderPaymentType = {}));
26
+ export class PaymentHandler {
27
+ getSession;
28
+ handleWebHook;
29
+ saveSubscription;
30
+ }
31
+ export var PaymentProviderType;
32
+ (function (PaymentProviderType) {
33
+ PaymentProviderType["stripe"] = "stripe";
34
+ PaymentProviderType["shopify"] = "shopify";
35
+ })(PaymentProviderType || (PaymentProviderType = {}));
36
+ export var SubscriptionStatus;
37
+ (function (SubscriptionStatus) {
38
+ SubscriptionStatus[SubscriptionStatus["active"] = 1] = "active";
39
+ SubscriptionStatus[SubscriptionStatus["canceled"] = 2] = "canceled";
40
+ SubscriptionStatus[SubscriptionStatus["trialing"] = 3] = "trialing";
41
+ SubscriptionStatus[SubscriptionStatus["incomplete"] = 4] = "incomplete";
42
+ })(SubscriptionStatus || (SubscriptionStatus = {}));
43
+ //# sourceMappingURL=payment.model.js.map
@@ -0,0 +1,10 @@
1
+ import { Provider } from "../../index.model.js";
2
+ /**
3
+ * API Name: /api/provider/get/all
4
+ */
5
+ export interface GetProvidersRes {
6
+ provider: Provider[];
7
+ }
8
+ export declare enum ProviderList {
9
+ Shopify = "Shopify"
10
+ }
@@ -0,0 +1,5 @@
1
+ export var ProviderList;
2
+ (function (ProviderList) {
3
+ ProviderList["Shopify"] = "Shopify";
4
+ })(ProviderList || (ProviderList = {}));
5
+ //# sourceMappingURL=provider.model.js.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * API Name: /api/app/reminder/add
3
+ */
4
+ export interface AddReminderReq {
5
+ productId: string;
6
+ productVariantId: string;
7
+ }
8
+ /**
9
+ * API Name: /api/app/reminder/add
10
+ */
11
+ export interface AddReminderRes {
12
+ isAdded: boolean;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=reminder.model.js.map