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,84 @@
1
+ export var ProductSortKeys;
2
+ (function (ProductSortKeys) {
3
+ ProductSortKeys["BEST_SELLING"] = "BEST_SELLING";
4
+ ProductSortKeys["CREATED_AT"] = "CREATED_AT";
5
+ ProductSortKeys["ID"] = "ID";
6
+ ProductSortKeys["PRICE"] = "PRICE";
7
+ ProductSortKeys["PRODUCT_TYPE"] = "PRODUCT_TYPE";
8
+ ProductSortKeys["TITLE"] = "TITLE";
9
+ ProductSortKeys["UPDATED_AT"] = "UPDATED_AT";
10
+ ProductSortKeys["VENDOR"] = "VENDOR";
11
+ })(ProductSortKeys || (ProductSortKeys = {}));
12
+ export var ProductCollectionSortKeys;
13
+ (function (ProductCollectionSortKeys) {
14
+ ProductCollectionSortKeys["BEST_SELLING"] = "BEST_SELLING";
15
+ ProductCollectionSortKeys["COLLECTION_DEFAULT"] = "COLLECTION_DEFAULT";
16
+ ProductCollectionSortKeys["CREATED"] = "CREATED";
17
+ ProductCollectionSortKeys["ID"] = "ID";
18
+ ProductCollectionSortKeys["PRICE"] = "PRICE";
19
+ ProductCollectionSortKeys["TITLE"] = "TITLE";
20
+ })(ProductCollectionSortKeys || (ProductCollectionSortKeys = {}));
21
+ export var AdminProductSortKeys;
22
+ (function (AdminProductSortKeys) {
23
+ AdminProductSortKeys["CREATED_AT"] = "CREATED_AT";
24
+ AdminProductSortKeys["ID"] = "ID";
25
+ AdminProductSortKeys["INVENTORY_TOTAL"] = "INVENTORY_TOTAL";
26
+ AdminProductSortKeys["PRODUCT_TYPE"] = "PRODUCT_TYPE";
27
+ AdminProductSortKeys["PUBLISHED_AT"] = "PUBLISHED_AT";
28
+ AdminProductSortKeys["TITLE"] = "TITLE";
29
+ AdminProductSortKeys["UPDATED_AT"] = "UPDATED_AT";
30
+ AdminProductSortKeys["VENDOR"] = "VENDOR";
31
+ })(AdminProductSortKeys || (AdminProductSortKeys = {}));
32
+ export var AdminCollectionProductSortKeys;
33
+ (function (AdminCollectionProductSortKeys) {
34
+ AdminCollectionProductSortKeys["BEST_SELLING"] = "BEST_SELLING";
35
+ AdminCollectionProductSortKeys["COLLECTION_DEFAULT"] = "COLLECTION_DEFAULT";
36
+ AdminCollectionProductSortKeys["CREATED"] = "CREATED";
37
+ AdminCollectionProductSortKeys["ID"] = "ID";
38
+ AdminCollectionProductSortKeys["MANUAL"] = "MANUAL";
39
+ AdminCollectionProductSortKeys["PRICE"] = "PRICE";
40
+ AdminCollectionProductSortKeys["RELEVANCE"] = "RELEVANCE";
41
+ AdminCollectionProductSortKeys["TITLE"] = "TITLE";
42
+ })(AdminCollectionProductSortKeys || (AdminCollectionProductSortKeys = {}));
43
+ export var CollectionSortKeys;
44
+ (function (CollectionSortKeys) {
45
+ CollectionSortKeys["TITLE"] = "TITLE";
46
+ CollectionSortKeys["UPDATED_AT"] = "UPDATED_AT";
47
+ })(CollectionSortKeys || (CollectionSortKeys = {}));
48
+ export var ProductRecommendationIntent;
49
+ (function (ProductRecommendationIntent) {
50
+ ProductRecommendationIntent["COMPLEMENTARY"] = "COMPLEMENTARY";
51
+ ProductRecommendationIntent["RELATED"] = "RELATED";
52
+ })(ProductRecommendationIntent || (ProductRecommendationIntent = {}));
53
+ export var ProductMediaContentType;
54
+ (function (ProductMediaContentType) {
55
+ ProductMediaContentType["EXTERNAL_VIDEO"] = "EXTERNAL_VIDEO";
56
+ ProductMediaContentType["IMAGE"] = "IMAGE";
57
+ ProductMediaContentType["VIDEO"] = "VIDEO";
58
+ })(ProductMediaContentType || (ProductMediaContentType = {}));
59
+ export var CustomerErrorCode;
60
+ (function (CustomerErrorCode) {
61
+ CustomerErrorCode["ALREADY_ENABLED"] = "ALREADY_ENABLED";
62
+ CustomerErrorCode["BAD_DOMAIN"] = "BAD_DOMAIN";
63
+ CustomerErrorCode["BLANK"] = "BLANK";
64
+ CustomerErrorCode["CONTAINS_HTML_TAGS"] = "CONTAINS_HTML_TAGS";
65
+ CustomerErrorCode["CONTAINS_URL"] = "CONTAINS_URL";
66
+ CustomerErrorCode["CUSTOMER_DISABLED"] = "CUSTOMER_DISABLED";
67
+ CustomerErrorCode["INVALID"] = "INVALID";
68
+ CustomerErrorCode["INVALID_MULTIPASS_REQUEST"] = "INVALID_MULTIPASS_REQUEST";
69
+ CustomerErrorCode["NOT_FOUND"] = "NOT_FOUND";
70
+ CustomerErrorCode["PASSWORD_STARTS_OR_ENDS_WITH_WHITESPACE"] = "PASSWORD_STARTS_OR_ENDS_WITH_WHITESPACE";
71
+ CustomerErrorCode["TAKEN"] = "TAKEN";
72
+ CustomerErrorCode["TOKEN_INVALID"] = "TOKEN_INVALID";
73
+ CustomerErrorCode["TOO_LONG"] = "TOO_LONG";
74
+ CustomerErrorCode["TOO_SHORT"] = "TOO_SHORT";
75
+ CustomerErrorCode["UNIDENTIFIED_CUSTOMER"] = "UNIDENTIFIED_CUSTOMER";
76
+ })(CustomerErrorCode || (CustomerErrorCode = {}));
77
+ export var ShopifySubscriptionStatus;
78
+ (function (ShopifySubscriptionStatus) {
79
+ ShopifySubscriptionStatus["pending"] = "PENDING";
80
+ ShopifySubscriptionStatus["active"] = "ACTIVE";
81
+ ShopifySubscriptionStatus["canceled"] = "CANCELLED";
82
+ ShopifySubscriptionStatus["expired"] = "EXPIRED";
83
+ })(ShopifySubscriptionStatus || (ShopifySubscriptionStatus = {}));
84
+ //# sourceMappingURL=shopify.model.js.map
@@ -0,0 +1,5 @@
1
+ export declare enum PlanInterval {
2
+ EVERY_30_DAYS = "EVERY_30_DAYS",
3
+ ANNUAL = "ANNUAL"
4
+ }
5
+ export type PlanIntervalRes = 'EVERY_30_DAYS' | 'ANNUAL';
@@ -0,0 +1,6 @@
1
+ export var PlanInterval;
2
+ (function (PlanInterval) {
3
+ PlanInterval["EVERY_30_DAYS"] = "EVERY_30_DAYS";
4
+ PlanInterval["ANNUAL"] = "ANNUAL";
5
+ })(PlanInterval || (PlanInterval = {}));
6
+ //# sourceMappingURL=shopifyPayment.model.js.map
@@ -0,0 +1,9 @@
1
+ export interface GetUpcomingInvoiceReq {
2
+ customerId?: string;
3
+ subscriptionId?: string;
4
+ }
5
+ export interface ClientRef {
6
+ orderPaymentID: string;
7
+ providerId: string;
8
+ sessionId: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stripe.model.js.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=test.model.js.map
@@ -0,0 +1,23 @@
1
+ import { Theme } from "../../index.model.js";
2
+ /**
3
+ * API Name: /api/theme/get/all
4
+ */
5
+ export interface GetThemesRes {
6
+ themes: Theme[];
7
+ }
8
+ /**
9
+ * API Name: /api/theme/preview/qr
10
+ */
11
+ export interface GetThemePreviewQRReq {
12
+ themeId: number;
13
+ }
14
+ /**
15
+ * API Name: /api/theme/apply
16
+ */
17
+ export type ApplyThemeReq = GetThemePreviewQRReq;
18
+ /**
19
+ * API Name: /api/theme/apply
20
+ */
21
+ export interface ApplyThemeRes {
22
+ isApplied: boolean;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.model.js.map
@@ -0,0 +1,7 @@
1
+ export interface AddUserDeviceReq {
2
+ deviceType: string;
3
+ deviceToken: string;
4
+ }
5
+ export interface AddUserDeviceRes {
6
+ isAdded: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=userDevice.model.js.map
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "types-magic-api",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "scripts": {
5
+ "build": "rimraf dist && tsc",
6
+ "prepare": "npm run build"
5
7
  },
6
8
  "description": "magic API",
7
9
  "exports": "./dist/server.js",