@gofynd/fdk-client-javascript 1.4.2-beta.7 → 1.4.4

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 (254) hide show
  1. package/README.md +1 -10
  2. package/application.d.ts +3 -3
  3. package/common.d.ts +3 -3
  4. package/index.d.ts +15 -15
  5. package/package.json +5 -3
  6. package/partner.d.ts +3 -3
  7. package/platform.d.ts +3 -3
  8. package/public.d.ts +2 -2
  9. package/sdk/application/ApplicationAPIClient.d.ts +1 -1
  10. package/sdk/application/ApplicationAPIClient.js +0 -1
  11. package/sdk/application/ApplicationClient.d.ts +17 -17
  12. package/sdk/application/ApplicationConfig.d.ts +3 -3
  13. package/sdk/application/Cart/CartApplicationClient.d.ts +58 -58
  14. package/sdk/application/Cart/CartApplicationClient.js +56 -56
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +72 -72
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
  18. package/sdk/application/Common/CommonApplicationClient.d.ts +6 -6
  19. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  20. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +8 -8
  21. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
  22. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  23. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -34
  24. package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
  25. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
  26. package/sdk/application/Content/ContentApplicationClient.d.ts +48 -48
  27. package/sdk/application/Content/ContentApplicationClient.js +45 -45
  28. package/sdk/application/Content/ContentApplicationModel.d.ts +18 -18
  29. package/sdk/application/Content/ContentApplicationModel.js +26 -26
  30. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +7 -7
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.js +15 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  33. package/sdk/application/Lead/LeadApplicationClient.d.ts +12 -12
  34. package/sdk/application/Lead/LeadApplicationClient.js +10 -10
  35. package/sdk/application/Lead/LeadApplicationModel.d.ts +64 -77
  36. package/sdk/application/Lead/LeadApplicationModel.js +42 -52
  37. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
  38. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +24 -24
  39. package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
  40. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
  41. package/sdk/application/Order/OrderApplicationClient.d.ts +19 -30
  42. package/sdk/application/Order/OrderApplicationClient.js +17 -97
  43. package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -16
  44. package/sdk/application/Order/OrderApplicationValidator.js +0 -13
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -91
  46. package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -2
  48. package/sdk/application/Payment/PaymentApplicationModel.js +4 -2
  49. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +6 -6
  50. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  51. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +29 -29
  52. package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
  53. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +1 -1
  54. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +9 -9
  55. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  56. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
  57. package/sdk/application/Share/ShareApplicationClient.d.ts +9 -9
  58. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  59. package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
  60. package/sdk/application/Share/ShareApplicationModel.js +2 -0
  61. package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
  62. package/sdk/application/Theme/ThemeApplicationClient.d.ts +10 -10
  63. package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
  64. package/sdk/application/Theme/ThemeApplicationModel.d.ts +25 -32
  65. package/sdk/application/Theme/ThemeApplicationModel.js +30 -40
  66. package/sdk/application/User/UserApplicationClient.d.ts +76 -76
  67. package/sdk/application/User/UserApplicationClient.js +74 -74
  68. package/sdk/application/User/UserApplicationModel.d.ts +44 -13
  69. package/sdk/application/User/UserApplicationModel.js +17 -13
  70. package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
  71. package/sdk/application/index.d.ts +18 -18
  72. package/sdk/common/AxiosHelper.d.ts +1 -1
  73. package/sdk/common/AxiosHelper.js +38 -17
  74. package/sdk/common/Clickstream.js +22 -16
  75. package/sdk/common/curlHelper.js +1 -3
  76. package/sdk/common/utils.d.ts +15 -0
  77. package/sdk/common/utils.js +30 -0
  78. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +3 -3
  79. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +2 -2
  80. package/sdk/partner/Lead/LeadPartnerClient.d.ts +3 -3
  81. package/sdk/partner/Lead/LeadPartnerClient.js +1 -1
  82. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +5 -5
  83. package/sdk/partner/Logistics/LogisticsPartnerClient.js +4 -4
  84. package/sdk/partner/OAuthClient.d.ts +4 -4
  85. package/sdk/partner/PartnerAPIClient.d.ts +1 -1
  86. package/sdk/partner/PartnerAPIClient.js +0 -1
  87. package/sdk/partner/PartnerClient.d.ts +6 -6
  88. package/sdk/partner/PartnerConfig.d.ts +4 -4
  89. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -20
  90. package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
  91. package/sdk/partner/Theme/ThemePartnerModel.d.ts +25 -32
  92. package/sdk/partner/Theme/ThemePartnerModel.js +30 -40
  93. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +3 -3
  94. package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
  95. package/sdk/partner/index.d.ts +7 -7
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
  97. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +6 -6
  98. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  99. package/sdk/platform/Billing/BillingPlatformClient.d.ts +25 -25
  100. package/sdk/platform/Billing/BillingPlatformClient.js +23 -23
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +115 -115
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.js +113 -113
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
  105. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +147 -146
  106. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +146 -145
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
  108. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +156 -156
  109. package/sdk/platform/Catalog/CatalogPlatformClient.js +153 -153
  110. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +65 -28
  111. package/sdk/platform/Catalog/CatalogPlatformModel.js +68 -36
  112. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -1
  113. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -5
  114. package/sdk/platform/Common/CommonPlatformClient.js +3 -3
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +133 -133
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +131 -131
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +4 -4
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -2
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +12 -0
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +12 -0
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +28 -28
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +25 -25
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +1 -1
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -52
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +50 -50
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +31 -31
  131. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +29 -29
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
  133. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +128 -128
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.js +131 -131
  135. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +5 -5
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
  137. package/sdk/platform/Content/ContentPlatformClient.d.ts +33 -33
  138. package/sdk/platform/Content/ContentPlatformClient.js +37 -37
  139. package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -18
  140. package/sdk/platform/Content/ContentPlatformModel.js +26 -26
  141. package/sdk/platform/Content/ContentPlatformValidator.d.ts +5 -5
  142. package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
  143. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +24 -24
  144. package/sdk/platform/Discount/DiscountPlatformClient.js +22 -22
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -23
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +32 -25
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +15 -15
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +12 -1
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +16 -2
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
  155. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  156. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +19 -19
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +17 -17
  159. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
  160. package/sdk/platform/Lead/LeadPlatformClient.d.ts +20 -20
  161. package/sdk/platform/Lead/LeadPlatformClient.js +18 -18
  162. package/sdk/platform/Lead/LeadPlatformModel.d.ts +62 -77
  163. package/sdk/platform/Lead/LeadPlatformModel.js +40 -52
  164. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
  165. package/sdk/platform/OAuthClient.d.ts +3 -3
  166. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +12 -12
  167. package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
  168. package/sdk/platform/Order/OrderPlatformClient.d.ts +111 -122
  169. package/sdk/platform/Order/OrderPlatformClient.js +109 -204
  170. package/sdk/platform/Order/OrderPlatformModel.d.ts +18 -2
  171. package/sdk/platform/Order/OrderPlatformModel.js +12 -2
  172. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -34
  173. package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -6
  175. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
  177. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +97 -97
  178. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +95 -95
  179. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
  180. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +13 -13
  181. package/sdk/platform/Payment/PaymentPlatformClient.js +11 -11
  182. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
  183. package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
  184. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
  185. package/sdk/platform/PlatformAPIClient.d.ts +1 -1
  186. package/sdk/platform/PlatformAPIClient.js +0 -1
  187. package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
  188. package/sdk/platform/PlatformClient.d.ts +19 -21
  189. package/sdk/platform/PlatformClient.js +0 -4
  190. package/sdk/platform/PlatformConfig.d.ts +4 -4
  191. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -14
  192. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  193. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +42 -42
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +55 -54
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +53 -52
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2 -2
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -2
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  204. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -0
  206. package/sdk/platform/Share/SharePlatformModel.js +4 -0
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +42 -112
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +40 -597
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +2 -101
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -8
  212. package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +25 -32
  214. package/sdk/platform/Theme/ThemePlatformModel.js +30 -40
  215. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
  216. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +37 -37
  217. package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
  218. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/User/UserPlatformModel.d.ts +48 -13
  220. package/sdk/platform/User/UserPlatformModel.js +21 -13
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +20 -19
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +18 -17
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
  226. package/sdk/platform/index.d.ts +24 -25
  227. package/sdk/platform/index.js +0 -2
  228. package/sdk/public/Billing/BillingPublicClient.d.ts +3 -3
  229. package/sdk/public/Billing/BillingPublicClient.js +4 -4
  230. package/sdk/public/Billing/BillingPublicValidator.d.ts +2 -2
  231. package/sdk/public/Billing/BillingPublicValidator.js +2 -2
  232. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -3
  233. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
  234. package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
  235. package/sdk/public/Content/ContentPublicValidator.d.ts +2 -2
  236. package/sdk/public/Content/ContentPublicValidator.js +3 -3
  237. package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
  238. package/sdk/public/Inventory/InventoryPublicModel.d.ts +8 -8
  239. package/sdk/public/Inventory/InventoryPublicModel.js +8 -8
  240. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +3 -3
  242. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  243. package/sdk/public/PublicAPIClient.d.ts +1 -1
  244. package/sdk/public/PublicClient.d.ts +7 -7
  245. package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
  246. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
  247. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
  248. package/sdk/public/index.d.ts +8 -8
  249. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
  250. package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
  251. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
  252. package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
  253. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
  254. package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
@@ -1,1355 +0,0 @@
1
- export = InventoryPlatformModel;
2
- /**
3
- * @typedef DataTresholdDTO
4
- * @property {number} [min_price]
5
- * @property {number} [safe_stock]
6
- * @property {number} [period_threshold]
7
- * @property {string} [period_threshold_type]
8
- * @property {GenericDTO[]} [period_type_list]
9
- */
10
- /**
11
- * @typedef GenericDTO
12
- * @property {string} [text]
13
- * @property {Object} [value]
14
- */
15
- /**
16
- * @typedef JobConfigDTO
17
- * @property {Object} [integration_data]
18
- * @property {string} [company_name]
19
- * @property {string} integration
20
- * @property {number} company_id
21
- * @property {TaskDTO} [task_details]
22
- * @property {DataTresholdDTO} [threshold_details]
23
- * @property {string} [job_code]
24
- * @property {string} [alias]
25
- */
26
- /**
27
- * @typedef TaskDTO
28
- * @property {number} [type]
29
- * @property {GenericDTO[]} [group_list]
30
- */
31
- /**
32
- * @typedef Page
33
- * @property {number} [item_total]
34
- * @property {string} [next_id]
35
- * @property {boolean} [has_previous]
36
- * @property {boolean} [has_next]
37
- * @property {number} [current]
38
- * @property {string} type
39
- * @property {number} [size]
40
- */
41
- /**
42
- * @typedef ResponseEnvelopeString
43
- * @property {string} [timestamp]
44
- * @property {number} [status]
45
- * @property {string} [error]
46
- * @property {string} [exception]
47
- * @property {string} [message]
48
- * @property {number} [total_time_taken_in_millis]
49
- * @property {string} [http_status]
50
- * @property {string} [items]
51
- * @property {string} [payload]
52
- * @property {string} [trace_id]
53
- * @property {Page} [page]
54
- */
55
- /**
56
- * @typedef KafkaMetaModel
57
- * @property {string} [job_type]
58
- * @property {number} [batch_id]
59
- * @property {string} [action]
60
- * @property {string[]} [trace]
61
- * @property {string} [created_on]
62
- * @property {number} [created_timestamp]
63
- */
64
- /**
65
- * @typedef SuppressStoreModel
66
- * @property {number[]} [stores]
67
- */
68
- /**
69
- * @typedef SuppressStorePayload
70
- * @property {SuppressStoreModel[]} [payload]
71
- * @property {KafkaMetaModel} [meta]
72
- */
73
- /**
74
- * @typedef KafkaResponse
75
- * @property {number} [offset]
76
- * @property {number} [partition]
77
- */
78
- /**
79
- * @typedef ResponseEnvelopeKafkaResponse
80
- * @property {string} [timestamp]
81
- * @property {number} [status]
82
- * @property {string} [error]
83
- * @property {string} [exception]
84
- * @property {string} [message]
85
- * @property {number} [total_time_taken_in_millis]
86
- * @property {string} [http_status]
87
- * @property {KafkaResponse} [items]
88
- * @property {KafkaResponse} [payload]
89
- * @property {string} [trace_id]
90
- * @property {Page} [page]
91
- */
92
- /**
93
- * @typedef GCompany
94
- * @property {string} [_id]
95
- * @property {string} [integration]
96
- * @property {string} [level]
97
- * @property {number} [uid]
98
- * @property {boolean} [opted]
99
- * @property {string[]} [permissions]
100
- * @property {string} [token]
101
- * @property {string} [name]
102
- * @property {GStore[]} [stores]
103
- */
104
- /**
105
- * @typedef GStore
106
- * @property {string} [_id]
107
- * @property {string} [integration]
108
- * @property {string} [level]
109
- * @property {number} [uid]
110
- * @property {boolean} [opted]
111
- * @property {string[]} [permissions]
112
- * @property {string} [token]
113
- * @property {string} [code]
114
- * @property {string} [name]
115
- * @property {StoreData} [data]
116
- */
117
- /**
118
- * @typedef Metum
119
- * @property {string} [_id]
120
- * @property {string} [name]
121
- * @property {string} [value]
122
- */
123
- /**
124
- * @typedef ResponseEnvelopeListSlingshotConfigurationDetail
125
- * @property {string} [timestamp]
126
- * @property {number} [status]
127
- * @property {string} [error]
128
- * @property {string} [exception]
129
- * @property {string} [message]
130
- * @property {number} [total_time_taken_in_millis]
131
- * @property {string} [http_status]
132
- * @property {SlingshotConfigurationDetail[]} [items]
133
- * @property {SlingshotConfigurationDetail[]} [payload]
134
- * @property {string} [trace_id]
135
- * @property {Page} [page]
136
- */
137
- /**
138
- * @typedef SlingshotConfigurationDetail
139
- * @property {SlingshotIntegration} [integration]
140
- * @property {GCompany[]} [companies]
141
- */
142
- /**
143
- * @typedef SlingshotIntegration
144
- * @property {string} [_id]
145
- * @property {string} [description]
146
- * @property {string} [name]
147
- * @property {string} [slug]
148
- * @property {Metum[]} [meta]
149
- */
150
- /**
151
- * @typedef StoreData
152
- * @property {string} [location_id]
153
- */
154
- /**
155
- * @typedef AWSS3config
156
- * @property {string} [bucket]
157
- * @property {string} [region]
158
- * @property {string} [dir]
159
- * @property {string} [access_key]
160
- * @property {string} [secret_key]
161
- * @property {string} [local_file_path]
162
- * @property {string} [archive_path]
163
- * @property {boolean} [archive]
164
- * @property {boolean} [delete]
165
- * @property {boolean} [unzip]
166
- * @property {string} [zip_format]
167
- * @property {string} [file_regex]
168
- * @property {ArchiveConfig} [archive_config]
169
- */
170
- /**
171
- * @typedef ArchiveConfig
172
- * @property {boolean} [delete]
173
- * @property {boolean} [archive]
174
- * @property {string} [archive_dir]
175
- */
176
- /**
177
- * @typedef Audit
178
- * @property {string} [created_by]
179
- * @property {string} [modified_by]
180
- * @property {string} [created_on]
181
- * @property {string} [modified_on]
182
- */
183
- /**
184
- * @typedef CatalogMasterConfig
185
- * @property {string} [source_slug]
186
- */
187
- /**
188
- * @typedef CompanyConfig
189
- * @property {number} [company_id]
190
- * @property {number[]} [exclude_steps]
191
- * @property {string[]} [hidden_closet_keys]
192
- * @property {Object} [open_tags]
193
- * @property {string[]} [tax_identifiers]
194
- * @property {number} [delete_quantity_threshold]
195
- */
196
- /**
197
- * @typedef DBConfig
198
- * @property {string} [vendor]
199
- * @property {string} [host]
200
- * @property {number} [port]
201
- * @property {string} [username]
202
- * @property {string} [password]
203
- * @property {string} [dbname]
204
- * @property {string} [query]
205
- * @property {boolean} [procedure]
206
- * @property {string} [driver_class]
207
- * @property {string} [jdbc_url]
208
- * @property {Object} [optional_properties]
209
- */
210
- /**
211
- * @typedef DBConnectionProfile
212
- * @property {string} [inventory]
213
- */
214
- /**
215
- * @typedef DBParamConfig
216
- * @property {Object} [params]
217
- */
218
- /**
219
- * @typedef DefaultHeadersDTO
220
- * @property {PropBeanDTO} [store]
221
- * @property {PropBeanDTO} [intf_article_id]
222
- * @property {PropBeanDTO} [price_effective]
223
- * @property {PropBeanDTO} [quantity]
224
- */
225
- /**
226
- * @typedef DocMappingConfig
227
- * @property {Object} [properties]
228
- * @property {number} [junk_data_threshold_count]
229
- * @property {PropBeanConfig[]} [prop_bean_configs]
230
- * @property {string} [unwind_field]
231
- * @property {DefaultHeadersDTO} [default_headers]
232
- */
233
- /**
234
- * @typedef EmailConfig
235
- * @property {string} [recepient]
236
- * @property {string} [host]
237
- * @property {string} [username]
238
- * @property {string} [password]
239
- * @property {boolean} [unzip]
240
- * @property {boolean} [read_from_content]
241
- * @property {boolean} [filter_based_on_recepients]
242
- * @property {string} [pcol]
243
- * @property {string} [subject_line_regex]
244
- * @property {string} [sender_address]
245
- * @property {string} [local_dir]
246
- * @property {string[]} [folder_name_hierarchies]
247
- * @property {string} [attachment_regex]
248
- * @property {string} [body_content_regex]
249
- * @property {boolean} [password_protected]
250
- * @property {string} [zip_format]
251
- * @property {boolean} [attachment_mandate]
252
- * @property {boolean} [filter_files_after_extraction]
253
- * @property {ArchiveConfig} [archive_config]
254
- * @property {boolean} [read_all_unread_mails]
255
- * @property {string} [content_type]
256
- * @property {boolean} [downloadable_link]
257
- * @property {Object} [properties]
258
- */
259
- /**
260
- * @typedef FTPConfig
261
- * @property {string} [host]
262
- * @property {number} [port]
263
- * @property {string} [username]
264
- * @property {string} [password]
265
- * @property {boolean} [unzip]
266
- * @property {number} [retries]
267
- * @property {number} [interval]
268
- * @property {string} [local_dir]
269
- * @property {string} [remote_dir]
270
- * @property {string} [zip_file_regex]
271
- * @property {ArchiveConfig} [archive_config]
272
- * @property {string} [file_regex]
273
- * @property {string} [zip_format]
274
- * @property {boolean} [read_all_files]
275
- */
276
- /**
277
- * @typedef FileConfig
278
- * @property {string} [delimiter]
279
- * @property {string} [charset]
280
- * @property {Object} [properties]
281
- * @property {boolean} [file_has_header]
282
- * @property {number} [header_index]
283
- * @property {string[]} [header_array]
284
- * @property {number} [data_start_index]
285
- * @property {PropBeanConfig[]} [prop_bean_configs]
286
- * @property {number} [junk_data_threshold_count]
287
- * @property {string} [file_type]
288
- * @property {boolean} [line_validity_check]
289
- * @property {string[]} [sheet_names]
290
- * @property {boolean} [read_all_sheets]
291
- * @property {string} [quote_char]
292
- * @property {string} [escape_char]
293
- * @property {DefaultHeadersDTO} [default_headers]
294
- */
295
- /**
296
- * @typedef GoogleSpreadSheetConfig
297
- * @property {string} [range]
298
- * @property {string} [sheet_id]
299
- * @property {string} [client_secret_location]
300
- * @property {string} [cred_storage_directory]
301
- * @property {string} [local_dir]
302
- * @property {ArchiveConfig} [archive_config]
303
- */
304
- /**
305
- * @typedef HttpConfig
306
- * @property {string} [hosturl]
307
- * @property {string} [username]
308
- * @property {string} [password]
309
- * @property {Object} [request_params]
310
- * @property {string} [http_method]
311
- * @property {string} [request_payload]
312
- * @property {string} [local_path]
313
- * @property {ArchiveConfig} [archive_config]
314
- */
315
- /**
316
- * @typedef JobConfig
317
- * @property {number} [_id]
318
- * @property {string} [job_code]
319
- * @property {string} [task_type]
320
- * @property {number} [sync_delay]
321
- * @property {string} [cron_expression]
322
- * @property {StoreFilter} [store_filter]
323
- * @property {ProcessConfig} [process_config]
324
- * @property {StoreConfig[]} [store_config]
325
- * @property {Object} [properties]
326
- * @property {boolean} [immediate_first_run]
327
- * @property {boolean} [disable]
328
- * @property {string[]} [dependent_job_codes]
329
- * @property {CompanyConfig[]} [company_config]
330
- * @property {number[]} [company_ids]
331
- * @property {string[]} [tax_identifiers]
332
- * @property {string} [priority]
333
- * @property {number} [period_threshold]
334
- * @property {string} [period_threshold_type]
335
- * @property {DBConnectionProfile} [db_connection_profile]
336
- * @property {Object} [params]
337
- * @property {Object} [open_tags]
338
- * @property {number} [delete_quantity_threshold]
339
- * @property {CatalogMasterConfig} [catalog_master_config]
340
- * @property {string[]} [aggregator_types]
341
- * @property {string} [integration_type]
342
- * @property {number} [min_price]
343
- * @property {Audit} [audit]
344
- * @property {number} [version]
345
- * @property {string} [alias]
346
- */
347
- /**
348
- * @typedef JobConfigRawDTO
349
- * @property {string} company_name
350
- * @property {string} integration
351
- * @property {number} company_id
352
- * @property {JobConfig} [data]
353
- */
354
- /**
355
- * @typedef JsonDocConfig
356
- * @property {PropBeanConfig[]} [prop_bean_configs]
357
- */
358
- /**
359
- * @typedef LocalFileConfig
360
- * @property {number} [retries]
361
- * @property {number} [interval]
362
- * @property {string} [local_dir]
363
- * @property {string} [working_dir]
364
- * @property {boolean} [unzip]
365
- * @property {string} [zip_file_regex]
366
- * @property {string} [file_regex]
367
- * @property {string} [zip_format]
368
- * @property {ArchiveConfig} [archive_config]
369
- * @property {boolean} [read_all_files]
370
- */
371
- /**
372
- * @typedef MongoDocConfig
373
- * @property {string} [collection_name]
374
- * @property {Object} [find_query]
375
- * @property {Object} [projection_query]
376
- * @property {PropBeanConfig[]} [prop_bean_configs]
377
- * @property {Object[]} [aggregate_pipeline]
378
- * @property {boolean} [skip_save]
379
- */
380
- /**
381
- * @typedef OAuthConfig
382
- * @property {number} [limit]
383
- * @property {number} [pages]
384
- * @property {number} [interval]
385
- * @property {string} [consumer_key]
386
- * @property {string} [consumer_secret]
387
- * @property {string} [token]
388
- * @property {string} [token_secret]
389
- * @property {string} [rest_url]
390
- * @property {string} [rest_base_url]
391
- * @property {string} [function_name]
392
- */
393
- /**
394
- * @typedef ProcessConfig
395
- * @property {DBConfig} [db_config]
396
- * @property {DBParamConfig} [db_param_config]
397
- * @property {SFTPConfig} [sftp_config]
398
- * @property {AWSS3config} [aws_s3_config]
399
- * @property {MongoDocConfig} [mongo_doc_config]
400
- * @property {FTPConfig} [ftp_config]
401
- * @property {EmailConfig} [email_config]
402
- * @property {FileConfig} [file_config]
403
- * @property {JsonDocConfig} [json_doc_config]
404
- * @property {DocMappingConfig} [doc_mapping_config]
405
- * @property {TaskStepConfig} [task_step_config]
406
- * @property {HttpConfig} [http_config]
407
- * @property {LocalFileConfig} [local_file_config]
408
- * @property {OAuthConfig} [oauth_config]
409
- * @property {GoogleSpreadSheetConfig} [google_spreadsheet_config]
410
- */
411
- /**
412
- * @typedef PropBeanConfig
413
- * @property {boolean} [required]
414
- * @property {boolean} [optional]
415
- * @property {Send} [send]
416
- * @property {Object[]} [validations]
417
- * @property {string[]} [values]
418
- * @property {boolean} [include]
419
- * @property {string} [source_field]
420
- * @property {string[]} [source_fields]
421
- * @property {string} [destination_field]
422
- * @property {string} [data_type]
423
- * @property {Object} [default_value]
424
- * @property {Object} [const_value]
425
- * @property {string} [concat_str]
426
- * @property {string} [function_name]
427
- * @property {string} [transformer_name]
428
- * @property {string} [all_param_function_name]
429
- * @property {string} [sub_separator]
430
- * @property {string} [index_field]
431
- * @property {boolean} [ignore_if_not_exists]
432
- * @property {string} [identifier_type]
433
- * @property {Object} [projection_query]
434
- * @property {boolean} [enrich_from_master]
435
- */
436
- /**
437
- * @typedef PropBeanDTO
438
- * @property {boolean} [required]
439
- * @property {boolean} [optional]
440
- * @property {boolean} [include]
441
- * @property {string} [source_field]
442
- * @property {string[]} [source_fields]
443
- * @property {string} [destination_field]
444
- * @property {string} [data_type]
445
- * @property {Object} [default_value]
446
- * @property {Object} [const_value]
447
- * @property {string} [concat_str]
448
- * @property {string} [function_name]
449
- * @property {string} [transformer_name]
450
- * @property {string} [all_param_function_name]
451
- * @property {string} [sub_separator]
452
- * @property {string} [index_field]
453
- * @property {boolean} [ignore_if_not_exists]
454
- * @property {string} [identifier_type]
455
- * @property {Object} [projection_query]
456
- * @property {boolean} [enrich_from_master]
457
- */
458
- /**
459
- * @typedef ResponseEnvelopeListJobConfigRawDTO
460
- * @property {string} [timestamp]
461
- * @property {number} [status]
462
- * @property {string} [error]
463
- * @property {string} [exception]
464
- * @property {string} [message]
465
- * @property {number} [total_time_taken_in_millis]
466
- * @property {string} [http_status]
467
- * @property {JobConfigRawDTO[]} [items]
468
- * @property {JobConfigRawDTO[]} [payload]
469
- * @property {string} [trace_id]
470
- * @property {Page} [page]
471
- */
472
- /**
473
- * @typedef SFTPConfig
474
- * @property {string} [host]
475
- * @property {number} [port]
476
- * @property {string} [username]
477
- * @property {string} [password]
478
- * @property {boolean} [unzip]
479
- * @property {number} [retries]
480
- * @property {number} [interval]
481
- * @property {string} [private_key_path]
482
- * @property {boolean} [strict_host_key_checking]
483
- * @property {string} [local_dir]
484
- * @property {string} [remote_dir]
485
- * @property {boolean} [password_protected]
486
- * @property {string} [zip_file_regex]
487
- * @property {string} [file_regex]
488
- * @property {string} [zip_format]
489
- * @property {ArchiveConfig} [archive_config]
490
- * @property {boolean} [read_all_files]
491
- */
492
- /**
493
- * @typedef Send
494
- * @property {boolean} [raw]
495
- * @property {boolean} [processed]
496
- */
497
- /**
498
- * @typedef StoreConfig
499
- * @property {string} [job_code]
500
- * @property {string} [storeid]
501
- * @property {string} [store_alias]
502
- * @property {string} [store_file_regex]
503
- * @property {string} [store_file_name]
504
- * @property {ProcessConfig} [process_config]
505
- * @property {Object} [properties]
506
- */
507
- /**
508
- * @typedef StoreFilter
509
- * @property {string[]} [include_tags]
510
- * @property {string[]} [exclude_tags]
511
- * @property {Object} [query]
512
- */
513
- /**
514
- * @typedef TaskConfig
515
- * @property {string} [name]
516
- * @property {number} [task_config_id]
517
- * @property {TaskParam[]} [task_params]
518
- */
519
- /**
520
- * @typedef TaskParam
521
- * @property {string} [name]
522
- * @property {Object} [value]
523
- */
524
- /**
525
- * @typedef TaskStepConfig
526
- * @property {TaskConfig[]} [task_configs]
527
- * @property {number[]} [task_config_ids]
528
- * @property {number[]} [task_config_group_ids]
529
- */
530
- /**
531
- * @typedef JobStepsDTO
532
- * @property {string} [step_name]
533
- * @property {string} [type]
534
- * @property {number} [step_execution_time]
535
- * @property {number} [start_count]
536
- * @property {number} [end_count]
537
- * @property {number} [deleted_count]
538
- * @property {string} [processed_start_time]
539
- * @property {string} [processed_at]
540
- */
541
- /**
542
- * @typedef ResponseEnvelopeListJobStepsDTO
543
- * @property {string} [timestamp]
544
- * @property {number} [status]
545
- * @property {string} [error]
546
- * @property {string} [exception]
547
- * @property {string} [message]
548
- * @property {number} [total_time_taken_in_millis]
549
- * @property {string} [http_status]
550
- * @property {JobStepsDTO[]} [items]
551
- * @property {JobStepsDTO[]} [payload]
552
- * @property {string} [trace_id]
553
- * @property {Page} [page]
554
- */
555
- /**
556
- * @typedef ResponseEnvelopeListJobConfigDTO
557
- * @property {string} [timestamp]
558
- * @property {number} [status]
559
- * @property {string} [error]
560
- * @property {string} [exception]
561
- * @property {string} [message]
562
- * @property {number} [total_time_taken_in_millis]
563
- * @property {string} [http_status]
564
- * @property {JobConfigDTO[]} [items]
565
- * @property {JobConfigDTO[]} [payload]
566
- * @property {string} [trace_id]
567
- * @property {Page} [page]
568
- */
569
- /**
570
- * @typedef ResponseEnvelopeJobConfigDTO
571
- * @property {string} [timestamp]
572
- * @property {number} [status]
573
- * @property {string} [error]
574
- * @property {string} [exception]
575
- * @property {string} [message]
576
- * @property {number} [total_time_taken_in_millis]
577
- * @property {string} [http_status]
578
- * @property {JobConfigDTO} [items]
579
- * @property {JobConfigDTO} [payload]
580
- * @property {string} [trace_id]
581
- * @property {Page} [page]
582
- */
583
- /**
584
- * @typedef JobHistoryDto
585
- * @property {number} [total_added_count]
586
- * @property {number} [total_updated_count]
587
- * @property {number} [total_suppressed_count]
588
- * @property {number} [total_initial_count]
589
- * @property {number} [job_id]
590
- * @property {string} [status]
591
- * @property {string} [job_code]
592
- * @property {string} [processed_on]
593
- * @property {string[]} [filename]
594
- * @property {string} [error_type]
595
- * @property {string} [message]
596
- */
597
- /**
598
- * @typedef JobMetricsDto
599
- * @property {string} [job_code]
600
- * @property {string} [is_run_more_than_usual]
601
- * @property {JobHistoryDto[]} [job_history]
602
- * @property {number} [total_success_count]
603
- * @property {number} [total_failure_count]
604
- * @property {number} [total_warning_count]
605
- * @property {number} [total_suppressed_count]
606
- * @property {number} [total_job_runs]
607
- */
608
- /**
609
- * @typedef ResponseEnvelopeJobMetricsDto
610
- * @property {string} [timestamp]
611
- * @property {number} [status]
612
- * @property {string} [error]
613
- * @property {string} [exception]
614
- * @property {string} [message]
615
- * @property {number} [total_time_taken_in_millis]
616
- * @property {string} [http_status]
617
- * @property {JobMetricsDto} [items]
618
- * @property {JobMetricsDto} [payload]
619
- * @property {string} [trace_id]
620
- * @property {Page} [page]
621
- */
622
- /**
623
- * @typedef JobConfigListDTO
624
- * @property {string} [code]
625
- * @property {string} [alias]
626
- * @property {string} [modified_by]
627
- * @property {string} [created_by]
628
- * @property {string} [modified_on]
629
- * @property {string} [created_on]
630
- * @property {boolean} [active]
631
- * @property {string} [type]
632
- */
633
- /**
634
- * @typedef ResponseEnvelopeListJobConfigListDTO
635
- * @property {string} [timestamp]
636
- * @property {number} [status]
637
- * @property {string} [error]
638
- * @property {string} [exception]
639
- * @property {string} [message]
640
- * @property {number} [total_time_taken_in_millis]
641
- * @property {string} [http_status]
642
- * @property {JobConfigListDTO[]} [items]
643
- * @property {JobConfigListDTO[]} [payload]
644
- * @property {string} [trace_id]
645
- * @property {Page} [page]
646
- */
647
- declare class InventoryPlatformModel {
648
- }
649
- declare namespace InventoryPlatformModel {
650
- export { DataTresholdDTO, GenericDTO, JobConfigDTO, TaskDTO, Page, ResponseEnvelopeString, KafkaMetaModel, SuppressStoreModel, SuppressStorePayload, KafkaResponse, ResponseEnvelopeKafkaResponse, GCompany, GStore, Metum, ResponseEnvelopeListSlingshotConfigurationDetail, SlingshotConfigurationDetail, SlingshotIntegration, StoreData, AWSS3config, ArchiveConfig, Audit, CatalogMasterConfig, CompanyConfig, DBConfig, DBConnectionProfile, DBParamConfig, DefaultHeadersDTO, DocMappingConfig, EmailConfig, FTPConfig, FileConfig, GoogleSpreadSheetConfig, HttpConfig, JobConfig, JobConfigRawDTO, JsonDocConfig, LocalFileConfig, MongoDocConfig, OAuthConfig, ProcessConfig, PropBeanConfig, PropBeanDTO, ResponseEnvelopeListJobConfigRawDTO, SFTPConfig, Send, StoreConfig, StoreFilter, TaskConfig, TaskParam, TaskStepConfig, JobStepsDTO, ResponseEnvelopeListJobStepsDTO, ResponseEnvelopeListJobConfigDTO, ResponseEnvelopeJobConfigDTO, JobHistoryDto, JobMetricsDto, ResponseEnvelopeJobMetricsDto, JobConfigListDTO, ResponseEnvelopeListJobConfigListDTO };
651
- }
652
- /** @returns {DataTresholdDTO} */
653
- declare function DataTresholdDTO(): DataTresholdDTO;
654
- type DataTresholdDTO = {
655
- min_price?: number;
656
- safe_stock?: number;
657
- period_threshold?: number;
658
- period_threshold_type?: string;
659
- period_type_list?: GenericDTO[];
660
- };
661
- /** @returns {GenericDTO} */
662
- declare function GenericDTO(): GenericDTO;
663
- type GenericDTO = {
664
- text?: string;
665
- value?: any;
666
- };
667
- /** @returns {JobConfigDTO} */
668
- declare function JobConfigDTO(): JobConfigDTO;
669
- type JobConfigDTO = {
670
- integration_data?: any;
671
- company_name?: string;
672
- integration: string;
673
- company_id: number;
674
- task_details?: TaskDTO;
675
- threshold_details?: DataTresholdDTO;
676
- job_code?: string;
677
- alias?: string;
678
- };
679
- /** @returns {TaskDTO} */
680
- declare function TaskDTO(): TaskDTO;
681
- type TaskDTO = {
682
- type?: number;
683
- group_list?: GenericDTO[];
684
- };
685
- /** @returns {Page} */
686
- declare function Page(): Page;
687
- type Page = {
688
- item_total?: number;
689
- next_id?: string;
690
- has_previous?: boolean;
691
- has_next?: boolean;
692
- current?: number;
693
- type: string;
694
- size?: number;
695
- };
696
- /** @returns {ResponseEnvelopeString} */
697
- declare function ResponseEnvelopeString(): ResponseEnvelopeString;
698
- type ResponseEnvelopeString = {
699
- timestamp?: string;
700
- status?: number;
701
- error?: string;
702
- exception?: string;
703
- message?: string;
704
- total_time_taken_in_millis?: number;
705
- http_status?: string;
706
- items?: string;
707
- payload?: string;
708
- trace_id?: string;
709
- page?: Page;
710
- };
711
- /** @returns {KafkaMetaModel} */
712
- declare function KafkaMetaModel(): KafkaMetaModel;
713
- type KafkaMetaModel = {
714
- job_type?: string;
715
- batch_id?: number;
716
- action?: string;
717
- trace?: string[];
718
- created_on?: string;
719
- created_timestamp?: number;
720
- };
721
- /** @returns {SuppressStoreModel} */
722
- declare function SuppressStoreModel(): SuppressStoreModel;
723
- type SuppressStoreModel = {
724
- stores?: number[];
725
- };
726
- /** @returns {SuppressStorePayload} */
727
- declare function SuppressStorePayload(): SuppressStorePayload;
728
- type SuppressStorePayload = {
729
- payload?: SuppressStoreModel[];
730
- meta?: KafkaMetaModel;
731
- };
732
- /** @returns {KafkaResponse} */
733
- declare function KafkaResponse(): KafkaResponse;
734
- type KafkaResponse = {
735
- offset?: number;
736
- partition?: number;
737
- };
738
- /** @returns {ResponseEnvelopeKafkaResponse} */
739
- declare function ResponseEnvelopeKafkaResponse(): ResponseEnvelopeKafkaResponse;
740
- type ResponseEnvelopeKafkaResponse = {
741
- timestamp?: string;
742
- status?: number;
743
- error?: string;
744
- exception?: string;
745
- message?: string;
746
- total_time_taken_in_millis?: number;
747
- http_status?: string;
748
- items?: KafkaResponse;
749
- payload?: KafkaResponse;
750
- trace_id?: string;
751
- page?: Page;
752
- };
753
- /** @returns {GCompany} */
754
- declare function GCompany(): GCompany;
755
- type GCompany = {
756
- _id?: string;
757
- integration?: string;
758
- level?: string;
759
- uid?: number;
760
- opted?: boolean;
761
- permissions?: string[];
762
- token?: string;
763
- name?: string;
764
- stores?: GStore[];
765
- };
766
- /** @returns {GStore} */
767
- declare function GStore(): GStore;
768
- type GStore = {
769
- _id?: string;
770
- integration?: string;
771
- level?: string;
772
- uid?: number;
773
- opted?: boolean;
774
- permissions?: string[];
775
- token?: string;
776
- code?: string;
777
- name?: string;
778
- data?: StoreData;
779
- };
780
- /** @returns {Metum} */
781
- declare function Metum(): Metum;
782
- type Metum = {
783
- _id?: string;
784
- name?: string;
785
- value?: string;
786
- };
787
- /** @returns {ResponseEnvelopeListSlingshotConfigurationDetail} */
788
- declare function ResponseEnvelopeListSlingshotConfigurationDetail(): ResponseEnvelopeListSlingshotConfigurationDetail;
789
- type ResponseEnvelopeListSlingshotConfigurationDetail = {
790
- timestamp?: string;
791
- status?: number;
792
- error?: string;
793
- exception?: string;
794
- message?: string;
795
- total_time_taken_in_millis?: number;
796
- http_status?: string;
797
- items?: SlingshotConfigurationDetail[];
798
- payload?: SlingshotConfigurationDetail[];
799
- trace_id?: string;
800
- page?: Page;
801
- };
802
- /** @returns {SlingshotConfigurationDetail} */
803
- declare function SlingshotConfigurationDetail(): SlingshotConfigurationDetail;
804
- type SlingshotConfigurationDetail = {
805
- integration?: SlingshotIntegration;
806
- companies?: GCompany[];
807
- };
808
- /** @returns {SlingshotIntegration} */
809
- declare function SlingshotIntegration(): SlingshotIntegration;
810
- type SlingshotIntegration = {
811
- _id?: string;
812
- description?: string;
813
- name?: string;
814
- slug?: string;
815
- meta?: Metum[];
816
- };
817
- /** @returns {StoreData} */
818
- declare function StoreData(): StoreData;
819
- type StoreData = {
820
- location_id?: string;
821
- };
822
- /** @returns {AWSS3config} */
823
- declare function AWSS3config(): AWSS3config;
824
- type AWSS3config = {
825
- bucket?: string;
826
- region?: string;
827
- dir?: string;
828
- access_key?: string;
829
- secret_key?: string;
830
- local_file_path?: string;
831
- archive_path?: string;
832
- archive?: boolean;
833
- delete?: boolean;
834
- unzip?: boolean;
835
- zip_format?: string;
836
- file_regex?: string;
837
- archive_config?: ArchiveConfig;
838
- };
839
- /** @returns {ArchiveConfig} */
840
- declare function ArchiveConfig(): ArchiveConfig;
841
- type ArchiveConfig = {
842
- delete?: boolean;
843
- archive?: boolean;
844
- archive_dir?: string;
845
- };
846
- /** @returns {Audit} */
847
- declare function Audit(): Audit;
848
- type Audit = {
849
- created_by?: string;
850
- modified_by?: string;
851
- created_on?: string;
852
- modified_on?: string;
853
- };
854
- /** @returns {CatalogMasterConfig} */
855
- declare function CatalogMasterConfig(): CatalogMasterConfig;
856
- type CatalogMasterConfig = {
857
- source_slug?: string;
858
- };
859
- /** @returns {CompanyConfig} */
860
- declare function CompanyConfig(): CompanyConfig;
861
- type CompanyConfig = {
862
- company_id?: number;
863
- exclude_steps?: number[];
864
- hidden_closet_keys?: string[];
865
- open_tags?: any;
866
- tax_identifiers?: string[];
867
- delete_quantity_threshold?: number;
868
- };
869
- /** @returns {DBConfig} */
870
- declare function DBConfig(): DBConfig;
871
- type DBConfig = {
872
- vendor?: string;
873
- host?: string;
874
- port?: number;
875
- username?: string;
876
- password?: string;
877
- dbname?: string;
878
- query?: string;
879
- procedure?: boolean;
880
- driver_class?: string;
881
- jdbc_url?: string;
882
- optional_properties?: any;
883
- };
884
- /** @returns {DBConnectionProfile} */
885
- declare function DBConnectionProfile(): DBConnectionProfile;
886
- type DBConnectionProfile = {
887
- inventory?: string;
888
- };
889
- /** @returns {DBParamConfig} */
890
- declare function DBParamConfig(): DBParamConfig;
891
- type DBParamConfig = {
892
- params?: any;
893
- };
894
- /** @returns {DefaultHeadersDTO} */
895
- declare function DefaultHeadersDTO(): DefaultHeadersDTO;
896
- type DefaultHeadersDTO = {
897
- store?: PropBeanDTO;
898
- intf_article_id?: PropBeanDTO;
899
- price_effective?: PropBeanDTO;
900
- quantity?: PropBeanDTO;
901
- };
902
- /** @returns {DocMappingConfig} */
903
- declare function DocMappingConfig(): DocMappingConfig;
904
- type DocMappingConfig = {
905
- properties?: any;
906
- junk_data_threshold_count?: number;
907
- prop_bean_configs?: PropBeanConfig[];
908
- unwind_field?: string;
909
- default_headers?: DefaultHeadersDTO;
910
- };
911
- /** @returns {EmailConfig} */
912
- declare function EmailConfig(): EmailConfig;
913
- type EmailConfig = {
914
- recepient?: string;
915
- host?: string;
916
- username?: string;
917
- password?: string;
918
- unzip?: boolean;
919
- read_from_content?: boolean;
920
- filter_based_on_recepients?: boolean;
921
- pcol?: string;
922
- subject_line_regex?: string;
923
- sender_address?: string;
924
- local_dir?: string;
925
- folder_name_hierarchies?: string[];
926
- attachment_regex?: string;
927
- body_content_regex?: string;
928
- password_protected?: boolean;
929
- zip_format?: string;
930
- attachment_mandate?: boolean;
931
- filter_files_after_extraction?: boolean;
932
- archive_config?: ArchiveConfig;
933
- read_all_unread_mails?: boolean;
934
- content_type?: string;
935
- downloadable_link?: boolean;
936
- properties?: any;
937
- };
938
- /** @returns {FTPConfig} */
939
- declare function FTPConfig(): FTPConfig;
940
- type FTPConfig = {
941
- host?: string;
942
- port?: number;
943
- username?: string;
944
- password?: string;
945
- unzip?: boolean;
946
- retries?: number;
947
- interval?: number;
948
- local_dir?: string;
949
- remote_dir?: string;
950
- zip_file_regex?: string;
951
- archive_config?: ArchiveConfig;
952
- file_regex?: string;
953
- zip_format?: string;
954
- read_all_files?: boolean;
955
- };
956
- /** @returns {FileConfig} */
957
- declare function FileConfig(): FileConfig;
958
- type FileConfig = {
959
- delimiter?: string;
960
- charset?: string;
961
- properties?: any;
962
- file_has_header?: boolean;
963
- header_index?: number;
964
- header_array?: string[];
965
- data_start_index?: number;
966
- prop_bean_configs?: PropBeanConfig[];
967
- junk_data_threshold_count?: number;
968
- file_type?: string;
969
- line_validity_check?: boolean;
970
- sheet_names?: string[];
971
- read_all_sheets?: boolean;
972
- quote_char?: string;
973
- escape_char?: string;
974
- default_headers?: DefaultHeadersDTO;
975
- };
976
- /** @returns {GoogleSpreadSheetConfig} */
977
- declare function GoogleSpreadSheetConfig(): GoogleSpreadSheetConfig;
978
- type GoogleSpreadSheetConfig = {
979
- range?: string;
980
- sheet_id?: string;
981
- client_secret_location?: string;
982
- cred_storage_directory?: string;
983
- local_dir?: string;
984
- archive_config?: ArchiveConfig;
985
- };
986
- /** @returns {HttpConfig} */
987
- declare function HttpConfig(): HttpConfig;
988
- type HttpConfig = {
989
- hosturl?: string;
990
- username?: string;
991
- password?: string;
992
- request_params?: any;
993
- http_method?: string;
994
- request_payload?: string;
995
- local_path?: string;
996
- archive_config?: ArchiveConfig;
997
- };
998
- /** @returns {JobConfig} */
999
- declare function JobConfig(): JobConfig;
1000
- type JobConfig = {
1001
- _id?: number;
1002
- job_code?: string;
1003
- task_type?: string;
1004
- sync_delay?: number;
1005
- cron_expression?: string;
1006
- store_filter?: StoreFilter;
1007
- process_config?: ProcessConfig;
1008
- store_config?: StoreConfig[];
1009
- properties?: any;
1010
- immediate_first_run?: boolean;
1011
- disable?: boolean;
1012
- dependent_job_codes?: string[];
1013
- company_config?: CompanyConfig[];
1014
- company_ids?: number[];
1015
- tax_identifiers?: string[];
1016
- priority?: string;
1017
- period_threshold?: number;
1018
- period_threshold_type?: string;
1019
- db_connection_profile?: DBConnectionProfile;
1020
- params?: any;
1021
- open_tags?: any;
1022
- delete_quantity_threshold?: number;
1023
- catalog_master_config?: CatalogMasterConfig;
1024
- aggregator_types?: string[];
1025
- integration_type?: string;
1026
- min_price?: number;
1027
- audit?: Audit;
1028
- version?: number;
1029
- alias?: string;
1030
- };
1031
- /** @returns {JobConfigRawDTO} */
1032
- declare function JobConfigRawDTO(): JobConfigRawDTO;
1033
- type JobConfigRawDTO = {
1034
- company_name: string;
1035
- integration: string;
1036
- company_id: number;
1037
- data?: JobConfig;
1038
- };
1039
- /** @returns {JsonDocConfig} */
1040
- declare function JsonDocConfig(): JsonDocConfig;
1041
- type JsonDocConfig = {
1042
- prop_bean_configs?: PropBeanConfig[];
1043
- };
1044
- /** @returns {LocalFileConfig} */
1045
- declare function LocalFileConfig(): LocalFileConfig;
1046
- type LocalFileConfig = {
1047
- retries?: number;
1048
- interval?: number;
1049
- local_dir?: string;
1050
- working_dir?: string;
1051
- unzip?: boolean;
1052
- zip_file_regex?: string;
1053
- file_regex?: string;
1054
- zip_format?: string;
1055
- archive_config?: ArchiveConfig;
1056
- read_all_files?: boolean;
1057
- };
1058
- /** @returns {MongoDocConfig} */
1059
- declare function MongoDocConfig(): MongoDocConfig;
1060
- type MongoDocConfig = {
1061
- collection_name?: string;
1062
- find_query?: any;
1063
- projection_query?: any;
1064
- prop_bean_configs?: PropBeanConfig[];
1065
- aggregate_pipeline?: any[];
1066
- skip_save?: boolean;
1067
- };
1068
- /** @returns {OAuthConfig} */
1069
- declare function OAuthConfig(): OAuthConfig;
1070
- type OAuthConfig = {
1071
- limit?: number;
1072
- pages?: number;
1073
- interval?: number;
1074
- consumer_key?: string;
1075
- consumer_secret?: string;
1076
- token?: string;
1077
- token_secret?: string;
1078
- rest_url?: string;
1079
- rest_base_url?: string;
1080
- function_name?: string;
1081
- };
1082
- /** @returns {ProcessConfig} */
1083
- declare function ProcessConfig(): ProcessConfig;
1084
- type ProcessConfig = {
1085
- db_config?: DBConfig;
1086
- db_param_config?: DBParamConfig;
1087
- sftp_config?: SFTPConfig;
1088
- aws_s3_config?: AWSS3config;
1089
- mongo_doc_config?: MongoDocConfig;
1090
- ftp_config?: FTPConfig;
1091
- email_config?: EmailConfig;
1092
- file_config?: FileConfig;
1093
- json_doc_config?: JsonDocConfig;
1094
- doc_mapping_config?: DocMappingConfig;
1095
- task_step_config?: TaskStepConfig;
1096
- http_config?: HttpConfig;
1097
- local_file_config?: LocalFileConfig;
1098
- oauth_config?: OAuthConfig;
1099
- google_spreadsheet_config?: GoogleSpreadSheetConfig;
1100
- };
1101
- /** @returns {PropBeanConfig} */
1102
- declare function PropBeanConfig(): PropBeanConfig;
1103
- type PropBeanConfig = {
1104
- required?: boolean;
1105
- optional?: boolean;
1106
- send?: Send;
1107
- validations?: any[];
1108
- values?: string[];
1109
- include?: boolean;
1110
- source_field?: string;
1111
- source_fields?: string[];
1112
- destination_field?: string;
1113
- data_type?: string;
1114
- default_value?: any;
1115
- const_value?: any;
1116
- concat_str?: string;
1117
- function_name?: string;
1118
- transformer_name?: string;
1119
- all_param_function_name?: string;
1120
- sub_separator?: string;
1121
- index_field?: string;
1122
- ignore_if_not_exists?: boolean;
1123
- identifier_type?: string;
1124
- projection_query?: any;
1125
- enrich_from_master?: boolean;
1126
- };
1127
- /** @returns {PropBeanDTO} */
1128
- declare function PropBeanDTO(): PropBeanDTO;
1129
- type PropBeanDTO = {
1130
- required?: boolean;
1131
- optional?: boolean;
1132
- include?: boolean;
1133
- source_field?: string;
1134
- source_fields?: string[];
1135
- destination_field?: string;
1136
- data_type?: string;
1137
- default_value?: any;
1138
- const_value?: any;
1139
- concat_str?: string;
1140
- function_name?: string;
1141
- transformer_name?: string;
1142
- all_param_function_name?: string;
1143
- sub_separator?: string;
1144
- index_field?: string;
1145
- ignore_if_not_exists?: boolean;
1146
- identifier_type?: string;
1147
- projection_query?: any;
1148
- enrich_from_master?: boolean;
1149
- };
1150
- /** @returns {ResponseEnvelopeListJobConfigRawDTO} */
1151
- declare function ResponseEnvelopeListJobConfigRawDTO(): ResponseEnvelopeListJobConfigRawDTO;
1152
- type ResponseEnvelopeListJobConfigRawDTO = {
1153
- timestamp?: string;
1154
- status?: number;
1155
- error?: string;
1156
- exception?: string;
1157
- message?: string;
1158
- total_time_taken_in_millis?: number;
1159
- http_status?: string;
1160
- items?: JobConfigRawDTO[];
1161
- payload?: JobConfigRawDTO[];
1162
- trace_id?: string;
1163
- page?: Page;
1164
- };
1165
- /** @returns {SFTPConfig} */
1166
- declare function SFTPConfig(): SFTPConfig;
1167
- type SFTPConfig = {
1168
- host?: string;
1169
- port?: number;
1170
- username?: string;
1171
- password?: string;
1172
- unzip?: boolean;
1173
- retries?: number;
1174
- interval?: number;
1175
- private_key_path?: string;
1176
- strict_host_key_checking?: boolean;
1177
- local_dir?: string;
1178
- remote_dir?: string;
1179
- password_protected?: boolean;
1180
- zip_file_regex?: string;
1181
- file_regex?: string;
1182
- zip_format?: string;
1183
- archive_config?: ArchiveConfig;
1184
- read_all_files?: boolean;
1185
- };
1186
- /** @returns {Send} */
1187
- declare function Send(): Send;
1188
- type Send = {
1189
- raw?: boolean;
1190
- processed?: boolean;
1191
- };
1192
- /** @returns {StoreConfig} */
1193
- declare function StoreConfig(): StoreConfig;
1194
- type StoreConfig = {
1195
- job_code?: string;
1196
- storeid?: string;
1197
- store_alias?: string;
1198
- store_file_regex?: string;
1199
- store_file_name?: string;
1200
- process_config?: ProcessConfig;
1201
- properties?: any;
1202
- };
1203
- /** @returns {StoreFilter} */
1204
- declare function StoreFilter(): StoreFilter;
1205
- type StoreFilter = {
1206
- include_tags?: string[];
1207
- exclude_tags?: string[];
1208
- query?: any;
1209
- };
1210
- /** @returns {TaskConfig} */
1211
- declare function TaskConfig(): TaskConfig;
1212
- type TaskConfig = {
1213
- name?: string;
1214
- task_config_id?: number;
1215
- task_params?: TaskParam[];
1216
- };
1217
- /** @returns {TaskParam} */
1218
- declare function TaskParam(): TaskParam;
1219
- type TaskParam = {
1220
- name?: string;
1221
- value?: any;
1222
- };
1223
- /** @returns {TaskStepConfig} */
1224
- declare function TaskStepConfig(): TaskStepConfig;
1225
- type TaskStepConfig = {
1226
- task_configs?: TaskConfig[];
1227
- task_config_ids?: number[];
1228
- task_config_group_ids?: number[];
1229
- };
1230
- /** @returns {JobStepsDTO} */
1231
- declare function JobStepsDTO(): JobStepsDTO;
1232
- type JobStepsDTO = {
1233
- step_name?: string;
1234
- type?: string;
1235
- step_execution_time?: number;
1236
- start_count?: number;
1237
- end_count?: number;
1238
- deleted_count?: number;
1239
- processed_start_time?: string;
1240
- processed_at?: string;
1241
- };
1242
- /** @returns {ResponseEnvelopeListJobStepsDTO} */
1243
- declare function ResponseEnvelopeListJobStepsDTO(): ResponseEnvelopeListJobStepsDTO;
1244
- type ResponseEnvelopeListJobStepsDTO = {
1245
- timestamp?: string;
1246
- status?: number;
1247
- error?: string;
1248
- exception?: string;
1249
- message?: string;
1250
- total_time_taken_in_millis?: number;
1251
- http_status?: string;
1252
- items?: JobStepsDTO[];
1253
- payload?: JobStepsDTO[];
1254
- trace_id?: string;
1255
- page?: Page;
1256
- };
1257
- /** @returns {ResponseEnvelopeListJobConfigDTO} */
1258
- declare function ResponseEnvelopeListJobConfigDTO(): ResponseEnvelopeListJobConfigDTO;
1259
- type ResponseEnvelopeListJobConfigDTO = {
1260
- timestamp?: string;
1261
- status?: number;
1262
- error?: string;
1263
- exception?: string;
1264
- message?: string;
1265
- total_time_taken_in_millis?: number;
1266
- http_status?: string;
1267
- items?: JobConfigDTO[];
1268
- payload?: JobConfigDTO[];
1269
- trace_id?: string;
1270
- page?: Page;
1271
- };
1272
- /** @returns {ResponseEnvelopeJobConfigDTO} */
1273
- declare function ResponseEnvelopeJobConfigDTO(): ResponseEnvelopeJobConfigDTO;
1274
- type ResponseEnvelopeJobConfigDTO = {
1275
- timestamp?: string;
1276
- status?: number;
1277
- error?: string;
1278
- exception?: string;
1279
- message?: string;
1280
- total_time_taken_in_millis?: number;
1281
- http_status?: string;
1282
- items?: JobConfigDTO;
1283
- payload?: JobConfigDTO;
1284
- trace_id?: string;
1285
- page?: Page;
1286
- };
1287
- /** @returns {JobHistoryDto} */
1288
- declare function JobHistoryDto(): JobHistoryDto;
1289
- type JobHistoryDto = {
1290
- total_added_count?: number;
1291
- total_updated_count?: number;
1292
- total_suppressed_count?: number;
1293
- total_initial_count?: number;
1294
- job_id?: number;
1295
- status?: string;
1296
- job_code?: string;
1297
- processed_on?: string;
1298
- filename?: string[];
1299
- error_type?: string;
1300
- message?: string;
1301
- };
1302
- /** @returns {JobMetricsDto} */
1303
- declare function JobMetricsDto(): JobMetricsDto;
1304
- type JobMetricsDto = {
1305
- job_code?: string;
1306
- is_run_more_than_usual?: string;
1307
- job_history?: JobHistoryDto[];
1308
- total_success_count?: number;
1309
- total_failure_count?: number;
1310
- total_warning_count?: number;
1311
- total_suppressed_count?: number;
1312
- total_job_runs?: number;
1313
- };
1314
- /** @returns {ResponseEnvelopeJobMetricsDto} */
1315
- declare function ResponseEnvelopeJobMetricsDto(): ResponseEnvelopeJobMetricsDto;
1316
- type ResponseEnvelopeJobMetricsDto = {
1317
- timestamp?: string;
1318
- status?: number;
1319
- error?: string;
1320
- exception?: string;
1321
- message?: string;
1322
- total_time_taken_in_millis?: number;
1323
- http_status?: string;
1324
- items?: JobMetricsDto;
1325
- payload?: JobMetricsDto;
1326
- trace_id?: string;
1327
- page?: Page;
1328
- };
1329
- /** @returns {JobConfigListDTO} */
1330
- declare function JobConfigListDTO(): JobConfigListDTO;
1331
- type JobConfigListDTO = {
1332
- code?: string;
1333
- alias?: string;
1334
- modified_by?: string;
1335
- created_by?: string;
1336
- modified_on?: string;
1337
- created_on?: string;
1338
- active?: boolean;
1339
- type?: string;
1340
- };
1341
- /** @returns {ResponseEnvelopeListJobConfigListDTO} */
1342
- declare function ResponseEnvelopeListJobConfigListDTO(): ResponseEnvelopeListJobConfigListDTO;
1343
- type ResponseEnvelopeListJobConfigListDTO = {
1344
- timestamp?: string;
1345
- status?: number;
1346
- error?: string;
1347
- exception?: string;
1348
- message?: string;
1349
- total_time_taken_in_millis?: number;
1350
- http_status?: string;
1351
- items?: JobConfigListDTO[];
1352
- payload?: JobConfigListDTO[];
1353
- trace_id?: string;
1354
- page?: Page;
1355
- };