@up-im/medotvet_sdk 0.0.1

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 (250) hide show
  1. package/.cursor/rules/apcheki_sdk.mdc +90 -0
  2. package/README.md +136 -0
  3. package/dist/api/abstract.d.ts +21 -0
  4. package/dist/api/abstract.js +125 -0
  5. package/dist/api/bookmarks.d.ts +28 -0
  6. package/dist/api/bookmarks.js +121 -0
  7. package/dist/api/chat.d.ts +30 -0
  8. package/dist/api/chat.js +118 -0
  9. package/dist/api/content.d.ts +154 -0
  10. package/dist/api/content.js +237 -0
  11. package/dist/api/geoIp.d.ts +8 -0
  12. package/dist/api/geoIp.js +14 -0
  13. package/dist/api/index.d.ts +27 -0
  14. package/dist/api/index.js +31 -0
  15. package/dist/api/payment.d.ts +54 -0
  16. package/dist/api/payment.js +90 -0
  17. package/dist/api/promocode.d.ts +9 -0
  18. package/dist/api/promocode.js +22 -0
  19. package/dist/api/push.d.ts +54 -0
  20. package/dist/api/push.js +99 -0
  21. package/dist/api/receipt.d.ts +34 -0
  22. package/dist/api/receipt.js +60 -0
  23. package/dist/api/stat.d.ts +21 -0
  24. package/dist/api/stat.js +75 -0
  25. package/dist/api/survey.d.ts +82 -0
  26. package/dist/api/survey.js +122 -0
  27. package/dist/api/user.d.ts +80 -0
  28. package/dist/api/user.js +167 -0
  29. package/dist/eventBus/abstract.d.ts +4 -0
  30. package/dist/eventBus/abstract.js +29 -0
  31. package/dist/eventBus/userLogin.d.ts +5 -0
  32. package/dist/eventBus/userLogin.js +11 -0
  33. package/dist/eventBus/userLogout.d.ts +4 -0
  34. package/dist/eventBus/userLogout.js +11 -0
  35. package/dist/http/apiError.d.ts +4 -0
  36. package/dist/http/apiError.js +10 -0
  37. package/dist/http/apiRoute.d.ts +98 -0
  38. package/dist/http/apiRoute.js +197 -0
  39. package/dist/index.d.ts +2 -0
  40. package/dist/index.js +7 -0
  41. package/dist/interfaces/BannerType.d.ts +5 -0
  42. package/dist/interfaces/BannerType.js +7 -0
  43. package/dist/interfaces/apiStatEvents.d.ts +1 -0
  44. package/dist/interfaces/apiStatEvents.js +18 -0
  45. package/dist/interfaces/diplomaStatus.d.ts +8 -0
  46. package/dist/interfaces/diplomaStatus.js +9 -0
  47. package/dist/interfaces/iAppStore.d.ts +1 -0
  48. package/dist/interfaces/iAppStore.js +2 -0
  49. package/dist/interfaces/iAppVersionCheck.d.ts +5 -0
  50. package/dist/interfaces/iAppVersionCheck.js +2 -0
  51. package/dist/interfaces/iArticle.d.ts +15 -0
  52. package/dist/interfaces/iArticle.js +2 -0
  53. package/dist/interfaces/iBalance.d.ts +6 -0
  54. package/dist/interfaces/iBalance.js +2 -0
  55. package/dist/interfaces/iBank.d.ts +4 -0
  56. package/dist/interfaces/iBank.js +2 -0
  57. package/dist/interfaces/iBanner.d.ts +6 -0
  58. package/dist/interfaces/iBanner.js +2 -0
  59. package/dist/interfaces/iBookmark.d.ts +3 -0
  60. package/dist/interfaces/iBookmark.js +2 -0
  61. package/dist/interfaces/iBrand.d.ts +6 -0
  62. package/dist/interfaces/iBrand.js +2 -0
  63. package/dist/interfaces/iCatalog.d.ts +50 -0
  64. package/dist/interfaces/iCatalog.js +2 -0
  65. package/dist/interfaces/iCatalogNode.d.ts +3 -0
  66. package/dist/interfaces/iCatalogNode.js +2 -0
  67. package/dist/interfaces/iCatalogPreview.d.ts +17 -0
  68. package/dist/interfaces/iCatalogPreview.js +2 -0
  69. package/dist/interfaces/iCity.d.ts +4 -0
  70. package/dist/interfaces/iCity.js +2 -0
  71. package/dist/interfaces/iContentItem.d.ts +7 -0
  72. package/dist/interfaces/iContentItem.js +2 -0
  73. package/dist/interfaces/iEnv.d.ts +6 -0
  74. package/dist/interfaces/iEnv.js +2 -0
  75. package/dist/interfaces/iFilter.d.ts +11 -0
  76. package/dist/interfaces/iFilter.js +2 -0
  77. package/dist/interfaces/iGetNodeListProps.d.ts +8 -0
  78. package/dist/interfaces/iGetNodeListProps.js +2 -0
  79. package/dist/interfaces/iInstruction.d.ts +6 -0
  80. package/dist/interfaces/iInstruction.js +2 -0
  81. package/dist/interfaces/iIntro.d.ts +6 -0
  82. package/dist/interfaces/iIntro.js +2 -0
  83. package/dist/interfaces/iMessage.d.ts +25 -0
  84. package/dist/interfaces/iMessage.js +2 -0
  85. package/dist/interfaces/iNode.d.ts +26 -0
  86. package/dist/interfaces/iNode.js +2 -0
  87. package/dist/interfaces/iNodeTree.d.ts +14 -0
  88. package/dist/interfaces/iNodeTree.js +2 -0
  89. package/dist/interfaces/iPagingItems.d.ts +9 -0
  90. package/dist/interfaces/iPagingItems.js +2 -0
  91. package/dist/interfaces/iPayment.d.ts +20 -0
  92. package/dist/interfaces/iPayment.js +2 -0
  93. package/dist/interfaces/iPush.d.ts +14 -0
  94. package/dist/interfaces/iPush.js +2 -0
  95. package/dist/interfaces/iQuestion.d.ts +7 -0
  96. package/dist/interfaces/iQuestion.js +2 -0
  97. package/dist/interfaces/iReceipt.d.ts +20 -0
  98. package/dist/interfaces/iReceipt.js +2 -0
  99. package/dist/interfaces/iReceiptAddProps.d.ts +8 -0
  100. package/dist/interfaces/iReceiptAddProps.js +2 -0
  101. package/dist/interfaces/iReceiptProduct.d.ts +7 -0
  102. package/dist/interfaces/iReceiptProduct.js +2 -0
  103. package/dist/interfaces/iSearchParams.d.ts +11 -0
  104. package/dist/interfaces/iSearchParams.js +2 -0
  105. package/dist/interfaces/iShop.d.ts +6 -0
  106. package/dist/interfaces/iShop.js +2 -0
  107. package/dist/interfaces/iShopAddress.d.ts +5 -0
  108. package/dist/interfaces/iShopAddress.js +2 -0
  109. package/dist/interfaces/iSorter.d.ts +7 -0
  110. package/dist/interfaces/iSorter.js +2 -0
  111. package/dist/interfaces/iSpecialization.d.ts +4 -0
  112. package/dist/interfaces/iSpecialization.js +2 -0
  113. package/dist/interfaces/iStatView.d.ts +4 -0
  114. package/dist/interfaces/iStatView.js +2 -0
  115. package/dist/interfaces/iStorage.d.ts +5 -0
  116. package/dist/interfaces/iStorage.js +2 -0
  117. package/dist/interfaces/iStories.d.ts +13 -0
  118. package/dist/interfaces/iStories.js +2 -0
  119. package/dist/interfaces/iSubstance.d.ts +4 -0
  120. package/dist/interfaces/iSubstance.js +2 -0
  121. package/dist/interfaces/iSurvey.d.ts +36 -0
  122. package/dist/interfaces/iSurvey.js +2 -0
  123. package/dist/interfaces/iSurveyQuestion.d.ts +11 -0
  124. package/dist/interfaces/iSurveyQuestion.js +2 -0
  125. package/dist/interfaces/iSymptoms.d.ts +4 -0
  126. package/dist/interfaces/iSymptoms.js +2 -0
  127. package/dist/interfaces/iTestQuestion.d.ts +20 -0
  128. package/dist/interfaces/iTestQuestion.js +2 -0
  129. package/dist/interfaces/iTestResult.d.ts +17 -0
  130. package/dist/interfaces/iTestResult.js +2 -0
  131. package/dist/interfaces/iText.d.ts +3 -0
  132. package/dist/interfaces/iText.js +2 -0
  133. package/dist/interfaces/iUser.d.ts +35 -0
  134. package/dist/interfaces/iUser.js +2 -0
  135. package/dist/interfaces/iUserData.d.ts +10 -0
  136. package/dist/interfaces/iUserData.js +2 -0
  137. package/dist/interfaces/iUserEditProps.d.ts +20 -0
  138. package/dist/interfaces/iUserEditProps.js +2 -0
  139. package/dist/interfaces/iUserStat.d.ts +7 -0
  140. package/dist/interfaces/iUserStat.js +2 -0
  141. package/dist/interfaces/iUserSurvey.d.ts +21 -0
  142. package/dist/interfaces/iUserSurvey.js +11 -0
  143. package/dist/interfaces/iUserTokens.d.ts +4 -0
  144. package/dist/interfaces/iUserTokens.js +2 -0
  145. package/dist/interfaces/intRange.d.ts +3 -0
  146. package/dist/interfaces/intRange.js +2 -0
  147. package/dist/interfaces/itemType.d.ts +9 -0
  148. package/dist/interfaces/itemType.js +11 -0
  149. package/dist/interfaces/paymentStatus.d.ts +7 -0
  150. package/dist/interfaces/paymentStatus.js +9 -0
  151. package/dist/interfaces/paymentType.d.ts +5 -0
  152. package/dist/interfaces/paymentType.js +7 -0
  153. package/dist/interfaces/payoutType.d.ts +5 -0
  154. package/dist/interfaces/payoutType.js +7 -0
  155. package/dist/interfaces/pushStatus.d.ts +6 -0
  156. package/dist/interfaces/pushStatus.js +8 -0
  157. package/dist/interfaces/receiptStatus.d.ts +7 -0
  158. package/dist/interfaces/receiptStatus.js +9 -0
  159. package/dist/interfaces/testStatus.d.ts +6 -0
  160. package/dist/interfaces/testStatus.js +7 -0
  161. package/dist/interfaces/userRole.d.ts +6 -0
  162. package/dist/interfaces/userRole.js +14 -0
  163. package/dist/interfaces/userStatEvent.d.ts +5 -0
  164. package/dist/interfaces/userStatEvent.js +7 -0
  165. package/dist/interfaces/viewEventType.d.ts +13 -0
  166. package/dist/interfaces/viewEventType.js +19 -0
  167. package/dist/service/webSocketClient.d.ts +21 -0
  168. package/dist/service/webSocketClient.js +87 -0
  169. package/dist/storage/default.d.ts +2 -0
  170. package/dist/storage/default.js +8 -0
  171. package/dist/storage/user.d.ts +21 -0
  172. package/dist/storage/user.js +107 -0
  173. package/dist/utils/queryString.d.ts +3 -0
  174. package/dist/utils/queryString.js +21 -0
  175. package/package.json +31 -0
  176. package/src/api/abstract.ts +136 -0
  177. package/src/api/bookmarks.ts +109 -0
  178. package/src/api/chat.ts +127 -0
  179. package/src/api/content.ts +258 -0
  180. package/src/api/geoIp.ts +12 -0
  181. package/src/api/index.ts +38 -0
  182. package/src/api/payment.ts +105 -0
  183. package/src/api/promocode.ts +18 -0
  184. package/src/api/push.ts +102 -0
  185. package/src/api/stat.ts +74 -0
  186. package/src/api/survey.ts +164 -0
  187. package/src/api/user.ts +176 -0
  188. package/src/eventBus/abstract.ts +33 -0
  189. package/src/eventBus/userLogin.ts +13 -0
  190. package/src/eventBus/userLogout.ts +12 -0
  191. package/src/http/apiError.ts +9 -0
  192. package/src/http/apiRoute.ts +234 -0
  193. package/src/index.ts +2 -0
  194. package/src/interfaces/BannerType.ts +6 -0
  195. package/src/interfaces/apiStatEvents.ts +18 -0
  196. package/src/interfaces/diplomaStatus.ts +10 -0
  197. package/src/interfaces/iAppStore.ts +1 -0
  198. package/src/interfaces/iArticle.ts +12 -0
  199. package/src/interfaces/iBalance.ts +6 -0
  200. package/src/interfaces/iBank.ts +4 -0
  201. package/src/interfaces/iBanner.ts +6 -0
  202. package/src/interfaces/iBookmark.ts +3 -0
  203. package/src/interfaces/iCity.ts +4 -0
  204. package/src/interfaces/iContentItem.ts +6 -0
  205. package/src/interfaces/iEnv.ts +6 -0
  206. package/src/interfaces/iFilter.ts +16 -0
  207. package/src/interfaces/iGetNodeListProps.ts +9 -0
  208. package/src/interfaces/iInstruction.ts +6 -0
  209. package/src/interfaces/iIntro.ts +6 -0
  210. package/src/interfaces/iMessage.ts +25 -0
  211. package/src/interfaces/iNode.ts +24 -0
  212. package/src/interfaces/iNodeTree.ts +14 -0
  213. package/src/interfaces/iPagingItems.ts +8 -0
  214. package/src/interfaces/iPayment.ts +28 -0
  215. package/src/interfaces/iPush.ts +15 -0
  216. package/src/interfaces/iQuestion.ts +4 -0
  217. package/src/interfaces/iSearchParams.ts +12 -0
  218. package/src/interfaces/iSorter.ts +10 -0
  219. package/src/interfaces/iSpecialization.ts +4 -0
  220. package/src/interfaces/iStatView.ts +4 -0
  221. package/src/interfaces/iStorage.ts +5 -0
  222. package/src/interfaces/iStories.ts +10 -0
  223. package/src/interfaces/iSubstance.ts +4 -0
  224. package/src/interfaces/iSurvey.ts +38 -0
  225. package/src/interfaces/iSurveyQuestion.ts +15 -0
  226. package/src/interfaces/iSymptoms.ts +4 -0
  227. package/src/interfaces/iTestQuestion.ts +21 -0
  228. package/src/interfaces/iTestResult.ts +20 -0
  229. package/src/interfaces/iText.ts +3 -0
  230. package/src/interfaces/iUser.ts +37 -0
  231. package/src/interfaces/iUserData.ts +10 -0
  232. package/src/interfaces/iUserEditProps.ts +16 -0
  233. package/src/interfaces/iUserStat.ts +8 -0
  234. package/src/interfaces/iUserSurvey.ts +23 -0
  235. package/src/interfaces/iUserTokens.ts +4 -0
  236. package/src/interfaces/intRange.ts +5 -0
  237. package/src/interfaces/itemType.ts +10 -0
  238. package/src/interfaces/paymentStatus.ts +8 -0
  239. package/src/interfaces/paymentType.ts +6 -0
  240. package/src/interfaces/payoutType.ts +6 -0
  241. package/src/interfaces/pushStatus.ts +7 -0
  242. package/src/interfaces/testStatus.ts +8 -0
  243. package/src/interfaces/userRole.ts +13 -0
  244. package/src/interfaces/userStatEvent.ts +6 -0
  245. package/src/interfaces/viewEventType.ts +17 -0
  246. package/src/service/webSocketClient.ts +94 -0
  247. package/src/storage/default.ts +7 -0
  248. package/src/storage/user.ts +109 -0
  249. package/src/utils/queryString.ts +22 -0
  250. package/tsconfig.json +27 -0
@@ -0,0 +1,15 @@
1
+ export interface iArticle {
2
+ id: number;
3
+ title: string;
4
+ code: string;
5
+ date: string;
6
+ image_preview: string;
7
+ image_head: string;
8
+ video?: string;
9
+ sku: {
10
+ id: number;
11
+ title: string;
12
+ } | null;
13
+ announce: string;
14
+ text: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iBalance {
2
+ accrued: number;
3
+ paid: number;
4
+ invite_user: number;
5
+ balance: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface iBank {
2
+ id: number;
3
+ title: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iBanner {
2
+ banner_id: number;
3
+ sku_id: number;
4
+ image: string;
5
+ adv_info: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface iBookmark {
2
+ item_key: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iBrand {
2
+ id: number;
3
+ title: string;
4
+ code: string;
5
+ image?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,50 @@
1
+ import { iBrand } from "./iBrand";
2
+ import { iQuestion } from "./iQuestion";
3
+ import { iSubstance } from "./iSubstance";
4
+ import { iSymptoms } from "./iSymptoms";
5
+ export interface iCatalog {
6
+ pub_date: string;
7
+ pub_date_original: string;
8
+ node: number;
9
+ title: string;
10
+ disclaimer: {
11
+ title: string;
12
+ } | null;
13
+ code: string;
14
+ image: string;
15
+ video?: string;
16
+ brand?: iBrand;
17
+ symptoms?: iSymptoms[];
18
+ substance?: iSubstance[];
19
+ id: number;
20
+ shop_all: 1 | 0;
21
+ cashback_percent: boolean;
22
+ cashback_level_1: number;
23
+ cashback_level_2?: number;
24
+ cashback_level_3?: number;
25
+ presentation_title?: string;
26
+ presentation_text?: string;
27
+ presentation?: string[];
28
+ questions_title?: string;
29
+ questions_text?: string;
30
+ questions?: iQuestion[];
31
+ date_start: string;
32
+ date_end: string;
33
+ text: string;
34
+ text_full: string;
35
+ region: {
36
+ id: number;
37
+ title: string;
38
+ }[] | null;
39
+ promo_title: string;
40
+ promo_subtitle: string;
41
+ promo_image: string;
42
+ promo_disclaimer: string;
43
+ promo_text: string;
44
+ boost_type?: string | null;
45
+ boost_start_date?: string | null;
46
+ boost_end_date?: string | null;
47
+ cashback_level_1_boost?: number;
48
+ cashback_level_2_boost?: number;
49
+ cashback_level_3_boost?: number;
50
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface iCatalogNode {
2
+ text: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface iCatalogPreview {
2
+ id: number;
3
+ title: string;
4
+ image: string;
5
+ disclaimer: string | null;
6
+ promo_title: string;
7
+ date_start: string;
8
+ date_end: string;
9
+ cashback_max: number;
10
+ cashback_percent: 1 | 0;
11
+ many_cashback: 1 | 0;
12
+ shop_all: 1 | 0;
13
+ max_cashback_level: 0 | 1 | 2 | 3;
14
+ boost_type?: string | null;
15
+ boost_start_date?: string | null;
16
+ boost_end_date?: string | null;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface iCity {
2
+ id: number;
3
+ title: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { iNode } from "./iNode";
2
+ export interface iContentItem<TItem, TNode = {
3
+ [key: string]: unknown;
4
+ } | undefined> {
5
+ node: iNode<TNode>;
6
+ item: TItem;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iEnv {
2
+ referrer_cashback_percent: number;
3
+ referrer_register_bonus: number;
4
+ root_catalog_id: number;
5
+ payout_min_price: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export type iFilterValue = (string | number)[];
2
+ type ExcludeMethods<T> = {
3
+ [K in keyof T as (T[K] extends Function ? never : K)]: T[K];
4
+ };
5
+ type iFilterKey<TKey> = TKey | (TKey extends string ? `!${TKey}` : never) | (TKey extends string ? `>${TKey}` : never) | (TKey extends string ? `<${TKey}` : never) | (TKey extends string ? `*${TKey}` : never);
6
+ export type iFilter<T> = {
7
+ [key in iFilterKey<keyof ExcludeMethods<T>>]?: iFilterValue | {
8
+ [key in iFilterKey<keyof ExcludeMethods<T>>]?: iFilterValue;
9
+ }[];
10
+ };
11
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { iFilter } from "./iFilter";
2
+ export interface iGetNodeListProps<T> {
3
+ page?: number;
4
+ filters?: iFilter<T>;
5
+ sorter?: string | string[];
6
+ perPage?: number;
7
+ setParams?: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iInstruction {
2
+ id: number;
3
+ title: string;
4
+ text: string;
5
+ image: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iIntro {
2
+ id: number;
3
+ title?: string;
4
+ text: string;
5
+ image: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ export interface iMessageView {
2
+ route: "/view";
3
+ message_id: number;
4
+ }
5
+ export interface iMessageError {
6
+ route: "/error";
7
+ text: string;
8
+ }
9
+ export interface iMessageOutgoing {
10
+ route: "/message";
11
+ text: string;
12
+ file: string | undefined;
13
+ }
14
+ export interface iMessageIncome extends iMessageOutgoing {
15
+ id: number;
16
+ date: Date;
17
+ from_user_id: number;
18
+ from_user_name: string;
19
+ view: 0 | 1;
20
+ }
21
+ export interface iMessageUnread {
22
+ route: "/unread";
23
+ unread: number;
24
+ }
25
+ export type iMessage = iMessageIncome | iMessageUnread | iMessageView | iMessageError;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ export interface iNode<ParamsT = {
2
+ [key: string]: unknown;
3
+ } | undefined> {
4
+ id: number;
5
+ pub_date: string;
6
+ type: string;
7
+ parent: number;
8
+ code: string;
9
+ title: string;
10
+ h1?: string;
11
+ menutitle: string;
12
+ sorter: number;
13
+ image: string;
14
+ icon: string;
15
+ redirect: string;
16
+ meta_title: string;
17
+ meta_keywords: string;
18
+ meta_description: string;
19
+ meta_title_element_tpl: string;
20
+ meta_keywords_element_tpl: string;
21
+ meta_description_element_tpl: string;
22
+ no_search: boolean;
23
+ no_menu: boolean;
24
+ public: boolean;
25
+ paramsDisplay: ParamsT;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface iNodeTree {
2
+ id: number;
3
+ type: string;
4
+ parent: number;
5
+ code: string;
6
+ title: string;
7
+ menutitle: string;
8
+ image: string;
9
+ icon: string;
10
+ sorter: number;
11
+ redirect: string;
12
+ no_menu: boolean;
13
+ children?: iNodeTree[];
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { iNode } from "./iNode";
2
+ export interface iPagingItems<TItems, TNode = {
3
+ [key: string]: unknown;
4
+ } | undefined> {
5
+ node?: iNode<TNode>;
6
+ totalItems: number;
7
+ perPage: number;
8
+ items: TItems[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { PaymentStatus, PaymentStatusKeys } from "./paymentStatus";
2
+ import { PaymentType, PaymentTypeKeys } from "./paymentType";
3
+ import { PayoutType, PayoutTypeKeys } from "./payoutType";
4
+ export interface iPayment {
5
+ id: number;
6
+ reg_date: string;
7
+ status: typeof PaymentStatus[PaymentStatusKeys];
8
+ pay_type: typeof PaymentType[PaymentTypeKeys];
9
+ title: string;
10
+ receipt: number | null;
11
+ receipt_product: number | null;
12
+ catalog: number | null;
13
+ sku: number | null;
14
+ shop: number | null;
15
+ cashback_level: 0 | 1 | 2 | 3;
16
+ max_cashback_level: null | 0 | 1 | 2 | 3;
17
+ payout_type: typeof PayoutType[PayoutTypeKeys] | null;
18
+ last_error: string;
19
+ price: number;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { PushStatus, PushStatusKeys } from "./pushStatus";
2
+ export interface iPush {
3
+ id: number;
4
+ reg_date: string;
5
+ send_date: string | null;
6
+ user: number;
7
+ status: typeof PushStatus[PushStatusKeys];
8
+ mailing: number | null;
9
+ priority: number;
10
+ title: string;
11
+ text: string;
12
+ route: string;
13
+ view: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface iQuestion {
2
+ title: string;
3
+ answers: {
4
+ title: string;
5
+ correct: boolean;
6
+ }[];
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { iPayment } from "./iPayment";
2
+ import { iReceiptProduct } from "./iReceiptProduct";
3
+ import { ReceiptStatus, ReceiptStatusKeys } from "./receiptStatus";
4
+ export interface iReceipt {
5
+ id: number;
6
+ reg_date: string;
7
+ status: typeof ReceiptStatus[ReceiptStatusKeys];
8
+ fn: string;
9
+ fd: string;
10
+ fp: string;
11
+ date: string | null;
12
+ sum: number;
13
+ address?: string;
14
+ address_name?: string;
15
+ inn?: string;
16
+ last_error?: string;
17
+ products: iReceiptProduct[] | null;
18
+ payments: iPayment[] | null;
19
+ cashback_sum: number;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface iReceiptAddProps {
2
+ fn: string;
3
+ fd: string;
4
+ fp: string;
5
+ sum: number;
6
+ t: string;
7
+ isManual: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface iReceiptProduct {
2
+ id: number;
3
+ title: string;
4
+ price: number;
5
+ count: number;
6
+ sum: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { iFilter } from "./iFilter";
2
+ import { iSorter } from "./iSorter";
3
+ export type iSearchParams<Data extends object, Keys extends keyof Data> = {
4
+ nodeCode?: string | undefined;
5
+ select: Keys[];
6
+ page?: number;
7
+ filters?: iFilter<Data>;
8
+ sorters?: iSorter<Data>;
9
+ perPage?: number;
10
+ subNodes?: boolean;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface iShop {
2
+ id: number;
3
+ title: string;
4
+ inn: string;
5
+ address: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface iShopAddress {
2
+ id: number;
3
+ shop: number | null;
4
+ address_standardized: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export type iSorterValue = string;
2
+ type ExcludeMethods<T> = {
3
+ [K in keyof T as (T[K] extends Function ? never : K)]: T[K];
4
+ };
5
+ type iSorterKey<TKey> = (TKey extends string ? `${TKey} asc` : never) | (TKey extends string ? `${TKey} desc` : never);
6
+ export type iSorter<T> = (iSorterKey<keyof ExcludeMethods<T>>)[];
7
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface iSpecialization {
2
+ id: number;
3
+ title: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface iStatView {
2
+ item_key: string;
3
+ count: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface iStorage {
2
+ set: (key: string, data: string) => Promise<void>;
3
+ get: (key: string) => Promise<string | null>;
4
+ remove: (key: string) => Promise<void>;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export interface iStories {
2
+ id: number;
3
+ title: string;
4
+ image: string;
5
+ video: string[];
6
+ photo: string[];
7
+ sku: {
8
+ id: number;
9
+ title: string;
10
+ } | null;
11
+ sorter: number;
12
+ is_view?: 1 | 0;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface iSubstance {
2
+ id: number;
3
+ title: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ import { iSurveyQuestion } from "./iSurveyQuestion";
2
+ interface iRefItem {
3
+ id: number;
4
+ title: string;
5
+ }
6
+ export interface iSurvey {
7
+ id: number;
8
+ node: number;
9
+ title: string;
10
+ partner: number | null;
11
+ budget: number;
12
+ budget_min: number;
13
+ date_start: string | null;
14
+ date_end: string | null;
15
+ reward_base: number;
16
+ reward_max: number;
17
+ questions: iSurveyQuestion[] | null;
18
+ slots: number;
19
+ slots_taken?: number;
20
+ specialization: iRefItem[] | null;
21
+ city: iRefItem[] | null;
22
+ city_not: iRefItem[] | null;
23
+ region: iRefItem[] | null;
24
+ region_not: iRefItem[] | null;
25
+ promo_title: string;
26
+ promo_subtitle: string;
27
+ promo_image: string;
28
+ promo_text: string;
29
+ promo_disclaimer: string;
30
+ text: string;
31
+ text_full: string;
32
+ public: boolean;
33
+ priority?: number;
34
+ payment_total?: number;
35
+ }
36
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export type tSurveyNextStep = number | "default" | "terminate";
2
+ export type tSurveyQuestionType = "single" | "multiple" | "text";
3
+ export interface iSurveyAnswer {
4
+ title: string;
5
+ next_step: tSurveyNextStep;
6
+ }
7
+ export interface iSurveyQuestion {
8
+ title: string;
9
+ type: tSurveyQuestionType;
10
+ answers: iSurveyAnswer[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface iSymptoms {
2
+ id: number;
3
+ title: string;
4
+ }