@gofynd/fdk-client-javascript 0.1.35

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 (277) hide show
  1. package/.github/workflows/on_create_release.yml +23 -0
  2. package/.github/workflows/on_merge_main.yml +38 -0
  3. package/.github/workflows/on_pull_request.yml +35 -0
  4. package/.prettierrc +5 -0
  5. package/LICENSE +21 -0
  6. package/README.md +118 -0
  7. package/application.d.ts +3 -0
  8. package/application.js +6 -0
  9. package/common.d.ts +4 -0
  10. package/common.js +9 -0
  11. package/documentation/application/CART.md +7290 -0
  12. package/documentation/application/CATALOG.md +9570 -0
  13. package/documentation/application/COMMON.md +448 -0
  14. package/documentation/application/COMMUNICATION.md +463 -0
  15. package/documentation/application/CONFIGURATION.md +2902 -0
  16. package/documentation/application/CONTENT.md +3350 -0
  17. package/documentation/application/FILESTORAGE.md +491 -0
  18. package/documentation/application/LEAD.md +1891 -0
  19. package/documentation/application/LOGISTIC.md +439 -0
  20. package/documentation/application/ORDER.md +3428 -0
  21. package/documentation/application/PAYMENT.md +5035 -0
  22. package/documentation/application/POSCART.md +7889 -0
  23. package/documentation/application/README.md +21 -0
  24. package/documentation/application/REWARDS.md +714 -0
  25. package/documentation/application/SHARE.md +729 -0
  26. package/documentation/application/THEME.md +5796 -0
  27. package/documentation/application/USER.md +4326 -0
  28. package/documentation/platform/ANALYTICS.md +1150 -0
  29. package/documentation/platform/AUDITTRAIL.md +572 -0
  30. package/documentation/platform/BILLING.md +2396 -0
  31. package/documentation/platform/CART.md +5539 -0
  32. package/documentation/platform/CATALOG.md +21624 -0
  33. package/documentation/platform/COMMON.md +448 -0
  34. package/documentation/platform/COMMUNICATION.md +5714 -0
  35. package/documentation/platform/COMPANYPROFILE.md +2141 -0
  36. package/documentation/platform/CONFIGURATION.md +7335 -0
  37. package/documentation/platform/CONTENT.md +8989 -0
  38. package/documentation/platform/DISCOUNT.md +773 -0
  39. package/documentation/platform/FILESTORAGE.md +994 -0
  40. package/documentation/platform/INVENTORY.md +1775 -0
  41. package/documentation/platform/LEAD.md +4736 -0
  42. package/documentation/platform/ORDER.md +3764 -0
  43. package/documentation/platform/PARTNER.md +216 -0
  44. package/documentation/platform/PAYMENT.md +3444 -0
  45. package/documentation/platform/README.md +27 -0
  46. package/documentation/platform/REWARDS.md +871 -0
  47. package/documentation/platform/SHARE.md +602 -0
  48. package/documentation/platform/THEME.md +35725 -0
  49. package/documentation/platform/USER.md +2305 -0
  50. package/documentation/platform/WEBHOOK.md +587 -0
  51. package/documentation/public/CONFIGURATION.md +448 -0
  52. package/documentation/public/INVENTORY.md +686 -0
  53. package/documentation/public/WEBHOOK.md +348 -0
  54. package/index.d.ts +10 -0
  55. package/index.js +18 -0
  56. package/jest.config.d.ts +4 -0
  57. package/jest.config.js +6 -0
  58. package/package.json +35 -0
  59. package/platform.d.ts +3 -0
  60. package/platform.js +6 -0
  61. package/public.d.ts +3 -0
  62. package/public.js +6 -0
  63. package/sdk/application/ApplicationAPIClient.d.ts +11 -0
  64. package/sdk/application/ApplicationAPIClient.js +44 -0
  65. package/sdk/application/ApplicationClient.d.ts +40 -0
  66. package/sdk/application/ApplicationClient.js +84 -0
  67. package/sdk/application/ApplicationConfig.d.ts +19 -0
  68. package/sdk/application/ApplicationConfig.js +55 -0
  69. package/sdk/application/ApplicationModels.d.ts +826 -0
  70. package/sdk/application/ApplicationModels.js +10474 -0
  71. package/sdk/application/client/CartApplicationClient.d.ts +432 -0
  72. package/sdk/application/client/CartApplicationClient.js +1066 -0
  73. package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
  74. package/sdk/application/client/CatalogApplicationClient.js +1629 -0
  75. package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
  76. package/sdk/application/client/CommonApplicationClient.js +105 -0
  77. package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
  78. package/sdk/application/client/CommunicationApplicationClient.js +131 -0
  79. package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
  80. package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
  81. package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
  82. package/sdk/application/client/ContentApplicationClient.js +785 -0
  83. package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
  84. package/sdk/application/client/FileStorageApplicationClient.js +214 -0
  85. package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
  86. package/sdk/application/client/LeadApplicationClient.js +264 -0
  87. package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
  88. package/sdk/application/client/LogisticApplicationClient.js +128 -0
  89. package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
  90. package/sdk/application/client/OrderApplicationClient.js +479 -0
  91. package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
  92. package/sdk/application/client/PaymentApplicationClient.js +1378 -0
  93. package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
  94. package/sdk/application/client/PosCartApplicationClient.js +1123 -0
  95. package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
  96. package/sdk/application/client/RewardsApplicationClient.js +293 -0
  97. package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
  98. package/sdk/application/client/ShareApplicationClient.js +268 -0
  99. package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
  100. package/sdk/application/client/ThemeApplicationClient.js +161 -0
  101. package/sdk/application/client/UserApplicationClient.d.ts +446 -0
  102. package/sdk/application/client/UserApplicationClient.js +1275 -0
  103. package/sdk/application/constructUrl.d.ts +5 -0
  104. package/sdk/application/constructUrl.js +13 -0
  105. package/sdk/application/index.d.ts +2 -0
  106. package/sdk/application/index.js +4 -0
  107. package/sdk/application/models/CartValidator.d.ts +29 -0
  108. package/sdk/application/models/CartValidator.js +223 -0
  109. package/sdk/application/models/CatalogValidator.d.ts +33 -0
  110. package/sdk/application/models/CatalogValidator.js +233 -0
  111. package/sdk/application/models/CommonValidator.d.ts +5 -0
  112. package/sdk/application/models/CommonValidator.js +18 -0
  113. package/sdk/application/models/CommunicationValidator.d.ts +6 -0
  114. package/sdk/application/models/CommunicationValidator.js +20 -0
  115. package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
  116. package/sdk/application/models/ConfigurationValidator.js +88 -0
  117. package/sdk/application/models/ContentValidator.d.ts +22 -0
  118. package/sdk/application/models/ContentValidator.js +106 -0
  119. package/sdk/application/models/FileStorageValidator.d.ts +6 -0
  120. package/sdk/application/models/FileStorageValidator.js +24 -0
  121. package/sdk/application/models/LeadValidator.d.ts +10 -0
  122. package/sdk/application/models/LeadValidator.js +48 -0
  123. package/sdk/application/models/LogisticValidator.d.ts +6 -0
  124. package/sdk/application/models/LogisticValidator.js +22 -0
  125. package/sdk/application/models/OrderValidator.d.ts +15 -0
  126. package/sdk/application/models/OrderValidator.js +87 -0
  127. package/sdk/application/models/PaymentValidator.d.ts +40 -0
  128. package/sdk/application/models/PaymentValidator.js +235 -0
  129. package/sdk/application/models/PosCartValidator.d.ts +30 -0
  130. package/sdk/application/models/PosCartValidator.js +232 -0
  131. package/sdk/application/models/RewardsValidator.d.ts +10 -0
  132. package/sdk/application/models/RewardsValidator.js +43 -0
  133. package/sdk/application/models/ShareValidator.d.ts +10 -0
  134. package/sdk/application/models/ShareValidator.js +44 -0
  135. package/sdk/application/models/ThemeValidator.d.ts +7 -0
  136. package/sdk/application/models/ThemeValidator.js +27 -0
  137. package/sdk/application/models/UserValidator.d.ts +38 -0
  138. package/sdk/application/models/UserValidator.js +233 -0
  139. package/sdk/common/AxiosHelper.d.ts +1 -0
  140. package/sdk/common/AxiosHelper.js +141 -0
  141. package/sdk/common/Constant.d.ts +294 -0
  142. package/sdk/common/Constant.js +332 -0
  143. package/sdk/common/FDKError.d.ts +26 -0
  144. package/sdk/common/FDKError.js +51 -0
  145. package/sdk/common/Logger.d.ts +2 -0
  146. package/sdk/common/Logger.js +85 -0
  147. package/sdk/common/Paginator.d.ts +16 -0
  148. package/sdk/common/Paginator.js +26 -0
  149. package/sdk/common/RequestSigner.d.ts +1 -0
  150. package/sdk/common/RequestSigner.js +306 -0
  151. package/sdk/common/Utility.d.ts +9 -0
  152. package/sdk/common/Utility.js +86 -0
  153. package/sdk/common/utils.d.ts +14 -0
  154. package/sdk/common/utils.js +165 -0
  155. package/sdk/platform/OAuthClient.d.ts +26 -0
  156. package/sdk/platform/OAuthClient.js +221 -0
  157. package/sdk/platform/PlatformAPIClient.d.ts +12 -0
  158. package/sdk/platform/PlatformAPIClient.js +43 -0
  159. package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
  160. package/sdk/platform/PlatformApplicationClient.js +23185 -0
  161. package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
  162. package/sdk/platform/PlatformApplicationModels.js +21262 -0
  163. package/sdk/platform/PlatformClient.d.ts +9535 -0
  164. package/sdk/platform/PlatformClient.js +12336 -0
  165. package/sdk/platform/PlatformConfig.d.ts +29 -0
  166. package/sdk/platform/PlatformConfig.js +36 -0
  167. package/sdk/platform/PlatformModels.d.ts +1396 -0
  168. package/sdk/platform/PlatformModels.js +19222 -0
  169. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
  170. package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
  171. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
  172. package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
  173. package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
  174. package/sdk/platform/client/BillingPlatformClient.js +381 -0
  175. package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
  176. package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
  177. package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
  178. package/sdk/platform/client/CommonPlatformClient.js +84 -0
  179. package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
  180. package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
  181. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
  182. package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
  183. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
  184. package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
  185. package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
  186. package/sdk/platform/client/DiscountPlatformClient.js +364 -0
  187. package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
  188. package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
  189. package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
  190. package/sdk/platform/client/InventoryPlatformClient.js +409 -0
  191. package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
  192. package/sdk/platform/client/LeadPlatformClient.js +439 -0
  193. package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
  194. package/sdk/platform/client/OrderPlatformClient.js +521 -0
  195. package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
  196. package/sdk/platform/client/PaymentPlatformClient.js +331 -0
  197. package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
  198. package/sdk/platform/client/WebhookPlatformClient.js +207 -0
  199. package/sdk/platform/index.d.ts +2 -0
  200. package/sdk/platform/index.js +4 -0
  201. package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
  202. package/sdk/platform/models/AnalyticsValidator.js +36 -0
  203. package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
  204. package/sdk/platform/models/AuditTrailValidator.js +26 -0
  205. package/sdk/platform/models/BillingValidator.d.ts +15 -0
  206. package/sdk/platform/models/BillingValidator.js +72 -0
  207. package/sdk/platform/models/CartValidator.d.ts +0 -0
  208. package/sdk/platform/models/CartValidator.js +0 -0
  209. package/sdk/platform/models/CatalogValidator.d.ts +74 -0
  210. package/sdk/platform/models/CatalogValidator.js +484 -0
  211. package/sdk/platform/models/CommonValidator.d.ts +5 -0
  212. package/sdk/platform/models/CommonValidator.js +18 -0
  213. package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
  214. package/sdk/platform/models/CommunicationValidator.js +11 -0
  215. package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
  216. package/sdk/platform/models/CompanyProfileValidator.js +93 -0
  217. package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
  218. package/sdk/platform/models/ConfigurationValidator.js +134 -0
  219. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  220. package/sdk/platform/models/ContentValidator.js +0 -0
  221. package/sdk/platform/models/DiscountValidator.d.ts +13 -0
  222. package/sdk/platform/models/DiscountValidator.js +75 -0
  223. package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
  224. package/sdk/platform/models/FileStorageValidator.js +44 -0
  225. package/sdk/platform/models/InventoryValidator.d.ts +15 -0
  226. package/sdk/platform/models/InventoryValidator.js +81 -0
  227. package/sdk/platform/models/LeadValidator.d.ts +14 -0
  228. package/sdk/platform/models/LeadValidator.js +78 -0
  229. package/sdk/platform/models/OrderValidator.d.ts +14 -0
  230. package/sdk/platform/models/OrderValidator.js +110 -0
  231. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  232. package/sdk/platform/models/PartnerValidator.js +0 -0
  233. package/sdk/platform/models/PaymentValidator.d.ts +13 -0
  234. package/sdk/platform/models/PaymentValidator.js +65 -0
  235. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  236. package/sdk/platform/models/RewardsValidator.js +0 -0
  237. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  238. package/sdk/platform/models/ShareValidator.js +0 -0
  239. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  240. package/sdk/platform/models/ThemeValidator.js +0 -0
  241. package/sdk/platform/models/UserValidator.d.ts +0 -0
  242. package/sdk/platform/models/UserValidator.js +0 -0
  243. package/sdk/platform/models/WebhookValidator.d.ts +9 -0
  244. package/sdk/platform/models/WebhookValidator.js +42 -0
  245. package/sdk/public/PublicAPIClient.d.ts +11 -0
  246. package/sdk/public/PublicAPIClient.js +38 -0
  247. package/sdk/public/PublicClient.d.ts +12 -0
  248. package/sdk/public/PublicClient.js +24 -0
  249. package/sdk/public/PublicConfig.d.ts +10 -0
  250. package/sdk/public/PublicConfig.js +12 -0
  251. package/sdk/public/PublicModels.d.ts +50 -0
  252. package/sdk/public/PublicModels.js +712 -0
  253. package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
  254. package/sdk/public/client/ConfigurationPublicClient.js +102 -0
  255. package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
  256. package/sdk/public/client/InventoryPublicClient.js +239 -0
  257. package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
  258. package/sdk/public/client/WebhookPublicClient.js +92 -0
  259. package/sdk/public/constructUrl.d.ts +5 -0
  260. package/sdk/public/constructUrl.js +13 -0
  261. package/sdk/public/index.d.ts +2 -0
  262. package/sdk/public/index.js +4 -0
  263. package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
  264. package/sdk/public/models/ConfigurationValidator.js +18 -0
  265. package/sdk/public/models/InventoryValidator.d.ts +9 -0
  266. package/sdk/public/models/InventoryValidator.js +43 -0
  267. package/sdk/public/models/WebhookValidator.d.ts +5 -0
  268. package/sdk/public/models/WebhookValidator.js +14 -0
  269. package/tests/application/catalog.spec.js +47 -0
  270. package/tests/common/action-url.spec.js +35 -0
  271. package/tests/common/schema/action-url.json +163 -0
  272. package/tests/common/schema/url-action.json +667 -0
  273. package/tests/common/url-action.spec.js +48 -0
  274. package/tests/helpers/cookie.helper.js +31 -0
  275. package/tests/helpers/oauth.helper.js +43 -0
  276. package/tests/platform/catalog.spec.js +49 -0
  277. package/tests/public/location.spec.js +39 -0
@@ -0,0 +1,686 @@
1
+
2
+
3
+
4
+
5
+ ##### [Back to Public docs](./README.md)
6
+
7
+ ## Inventory Methods
8
+
9
+ * [getJobCodesMetrics](#getjobcodesmetrics)
10
+ * [saveJobCodesMetrics](#savejobcodesmetrics)
11
+ * [getConfigByApiKey](#getconfigbyapikey)
12
+ * [getApiKey](#getapikey)
13
+ * [getJobByCode](#getjobbycode)
14
+ * [getJobConfigByIntegrationType](#getjobconfigbyintegrationtype)
15
+
16
+
17
+
18
+ ## Methods with example and description
19
+
20
+
21
+ ### getJobCodesMetrics
22
+ Find all the JobCodes from Metrics Collection based on the field Values
23
+
24
+
25
+
26
+ ```javascript
27
+ // Promise
28
+ const promise = inventory.getJobCodesMetrics({ dailyJob : value,
29
+ jobCode : value });
30
+
31
+ // Async/Await
32
+ const data = await inventory.getJobCodesMetrics({ dailyJob : value,
33
+ jobCode : value });
34
+ ```
35
+
36
+
37
+
38
+
39
+
40
+ | Argument | Type | Required | Description |
41
+ | --------- | ----- | -------- | ----------- |
42
+ | dailyJob | boolean | no | Daily Job Flag |
43
+ | jobCode | string | no | Email Job Code |
44
+
45
+
46
+
47
+ Endpoint to return all JobCodes present in Metrics Collection
48
+
49
+ *Returned Response:*
50
+
51
+
52
+
53
+
54
+ [ResponseEnvelopeObject](#ResponseEnvelopeObject)
55
+
56
+ Successful operation
57
+
58
+
59
+
60
+
61
+ <details>
62
+ <summary><i>&nbsp; Example:</i></summary>
63
+
64
+ ```json
65
+
66
+ ```
67
+ </details>
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ ---
78
+
79
+
80
+ ### saveJobCodesMetrics
81
+ Save JobCode Metrics
82
+
83
+
84
+
85
+ ```javascript
86
+ // Promise
87
+ const promise = inventory.saveJobCodesMetrics({ body : value });
88
+
89
+ // Async/Await
90
+ const data = await inventory.saveJobCodesMetrics({ body : value });
91
+ ```
92
+
93
+
94
+
95
+
96
+
97
+ | Argument | Type | Required | Description |
98
+ | --------- | ----- | -------- | ----------- |
99
+ | body | [EmailJobMetrics](#EmailJobMetrics) | yes | Request body |
100
+
101
+
102
+ Endpoint to save JobCode Metrics
103
+
104
+ *Returned Response:*
105
+
106
+
107
+
108
+
109
+ [ResponseEnvelopeEmailJobMetrics](#ResponseEnvelopeEmailJobMetrics)
110
+
111
+ JobCode Metrics entry Created Successfully
112
+
113
+
114
+
115
+
116
+ <details>
117
+ <summary><i>&nbsp; Example:</i></summary>
118
+
119
+ ```json
120
+
121
+ ```
122
+ </details>
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ ---
133
+
134
+
135
+ ### getConfigByApiKey
136
+ Get Slingshot Configuration Of A Company using API key
137
+
138
+
139
+
140
+ ```javascript
141
+ // Promise
142
+ const promise = inventory.getConfigByApiKey({ apikey : value });
143
+
144
+ // Async/Await
145
+ const data = await inventory.getConfigByApiKey({ apikey : value });
146
+ ```
147
+
148
+
149
+
150
+
151
+
152
+ | Argument | Type | Required | Description |
153
+ | --------- | ----- | -------- | ----------- |
154
+ | apikey | string | yes | Api key |
155
+
156
+
157
+
158
+ REST Endpoint that returns all configuration detail of a company
159
+
160
+ *Returned Response:*
161
+
162
+
163
+
164
+
165
+ [ResponseEnvelopeSlingshotConfigurationDetail](#ResponseEnvelopeSlingshotConfigurationDetail)
166
+
167
+ Successful operation
168
+
169
+
170
+
171
+
172
+ <details>
173
+ <summary><i>&nbsp; Example:</i></summary>
174
+
175
+ ```json
176
+
177
+ ```
178
+ </details>
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+ ---
189
+
190
+
191
+ ### getApiKey
192
+ Get apikey for Company to call other Slingshot Configuration APIs
193
+
194
+
195
+
196
+ ```javascript
197
+ // Promise
198
+ const promise = inventory.getApiKey({ userName : value,
199
+ password : value });
200
+
201
+ // Async/Await
202
+ const data = await inventory.getApiKey({ userName : value,
203
+ password : value });
204
+ ```
205
+
206
+
207
+
208
+
209
+
210
+ | Argument | Type | Required | Description |
211
+ | --------- | ----- | -------- | ----------- |
212
+ | userName | string | yes | Integration id |
213
+ | password | string | yes | company/store token |
214
+
215
+
216
+
217
+ REST Endpoint that returns apikey by username by password
218
+
219
+ *Returned Response:*
220
+
221
+
222
+
223
+
224
+ [ResponseEnvelopeApikeyModel](#ResponseEnvelopeApikeyModel)
225
+
226
+ Successful operation
227
+
228
+
229
+
230
+
231
+ <details>
232
+ <summary><i>&nbsp; Example:</i></summary>
233
+
234
+ ```json
235
+
236
+ ```
237
+ </details>
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+ ---
248
+
249
+
250
+ ### getJobByCode
251
+ Get Job Config By Code
252
+
253
+
254
+
255
+ ```javascript
256
+ // Promise
257
+ const promise = inventory.getJobByCode({ code : value });
258
+
259
+ // Async/Await
260
+ const data = await inventory.getJobByCode({ code : value });
261
+ ```
262
+
263
+
264
+
265
+
266
+
267
+ | Argument | Type | Required | Description |
268
+ | --------- | ----- | -------- | ----------- |
269
+ | code | string | yes | Job Code |
270
+
271
+
272
+
273
+ REST Endpoint that returns job config by code
274
+
275
+ *Returned Response:*
276
+
277
+
278
+
279
+
280
+ [ResponseEnvelopeJobConfigDTO](#ResponseEnvelopeJobConfigDTO)
281
+
282
+ Successful operation
283
+
284
+
285
+
286
+
287
+ <details>
288
+ <summary><i>&nbsp; Example:</i></summary>
289
+
290
+ ```json
291
+
292
+ ```
293
+ </details>
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+ ---
304
+
305
+
306
+ ### getJobConfigByIntegrationType
307
+ Get Job Configs By Integration Type
308
+
309
+
310
+
311
+ ```javascript
312
+ // Promise
313
+ const promise = inventory.getJobConfigByIntegrationType({ integrationType : value,
314
+ disable : value });
315
+
316
+ // Async/Await
317
+ const data = await inventory.getJobConfigByIntegrationType({ integrationType : value,
318
+ disable : value });
319
+ ```
320
+
321
+
322
+
323
+
324
+
325
+ | Argument | Type | Required | Description |
326
+ | --------- | ----- | -------- | ----------- |
327
+ | integrationType | string | yes | Integration Type |
328
+ | disable | boolean | no | JobConfig current state |
329
+
330
+
331
+
332
+ REST Endpoint that returns all job Configs by Integration Type
333
+
334
+ *Returned Response:*
335
+
336
+
337
+
338
+
339
+ [ResponseEnvelopeListJobConfigDTO](#ResponseEnvelopeListJobConfigDTO)
340
+
341
+ Successful operation
342
+
343
+
344
+
345
+
346
+ <details>
347
+ <summary><i>&nbsp; Example:</i></summary>
348
+
349
+ ```json
350
+
351
+ ```
352
+ </details>
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+ ---
363
+
364
+
365
+
366
+ ### Schemas
367
+
368
+
369
+
370
+ #### [EmailJobMetrics](#EmailJobMetrics)
371
+
372
+ | Properties | Type | Nullable | Description |
373
+ | ---------- | ---- | -------- | ----------- |
374
+ | executed | boolean | no | |
375
+ | id | string | no | |
376
+ | job_code | string | no | |
377
+ | daily_job | boolean | no | |
378
+ | last_executed_on | string | no | |
379
+
380
+ ---
381
+
382
+
383
+
384
+
385
+ #### [Page](#Page)
386
+
387
+ | Properties | Type | Nullable | Description |
388
+ | ---------- | ---- | -------- | ----------- |
389
+ | type | string | yes | |
390
+ | size | number | no | |
391
+ | current | number | no | |
392
+ | has_next | boolean | no | |
393
+ | item_total | number | no | |
394
+ | next_id | string | no | |
395
+ | has_previous | boolean | no | |
396
+
397
+ ---
398
+
399
+
400
+
401
+
402
+ #### [ResponseEnvelopeEmailJobMetrics](#ResponseEnvelopeEmailJobMetrics)
403
+
404
+ | Properties | Type | Nullable | Description |
405
+ | ---------- | ---- | -------- | ----------- |
406
+ | timestamp | string | no | |
407
+ | status | number | no | |
408
+ | error | string | no | |
409
+ | exception | string | no | |
410
+ | message | string | no | |
411
+ | total_time_taken_in_millis | number | no | |
412
+ | http_status | string | no | |
413
+ | items | [EmailJobMetrics](#EmailJobMetrics) | no | |
414
+ | payload | [EmailJobMetrics](#EmailJobMetrics) | no | |
415
+ | trace_id | string | no | |
416
+ | page | [Page](#Page) | no | |
417
+
418
+ ---
419
+
420
+
421
+
422
+
423
+ #### [GCompany](#GCompany)
424
+
425
+ | Properties | Type | Nullable | Description |
426
+ | ---------- | ---- | -------- | ----------- |
427
+ | _id | string | no | |
428
+ | integration | string | no | |
429
+ | level | string | no | |
430
+ | uid | number | no | |
431
+ | opted | boolean | no | |
432
+ | permissions | [string] | no | |
433
+ | token | string | no | |
434
+ | name | string | no | |
435
+ | stores | [[GStore](#GStore)] | no | |
436
+
437
+ ---
438
+
439
+
440
+
441
+
442
+ #### [GStore](#GStore)
443
+
444
+ | Properties | Type | Nullable | Description |
445
+ | ---------- | ---- | -------- | ----------- |
446
+ | _id | string | no | |
447
+ | integration | string | no | |
448
+ | level | string | no | |
449
+ | uid | number | no | |
450
+ | opted | boolean | no | |
451
+ | permissions | [string] | no | |
452
+ | token | string | no | |
453
+ | code | string | no | |
454
+ | name | string | no | |
455
+ | data | [StoreData](#StoreData) | no | |
456
+
457
+ ---
458
+
459
+
460
+
461
+
462
+ #### [Metum](#Metum)
463
+
464
+ | Properties | Type | Nullable | Description |
465
+ | ---------- | ---- | -------- | ----------- |
466
+ | _id | string | no | |
467
+ | name | string | no | |
468
+ | value | string | no | |
469
+
470
+ ---
471
+
472
+
473
+
474
+
475
+ #### [ResponseEnvelopeSlingshotConfigurationDetail](#ResponseEnvelopeSlingshotConfigurationDetail)
476
+
477
+ | Properties | Type | Nullable | Description |
478
+ | ---------- | ---- | -------- | ----------- |
479
+ | timestamp | string | no | |
480
+ | status | number | no | |
481
+ | error | string | no | |
482
+ | exception | string | no | |
483
+ | message | string | no | |
484
+ | total_time_taken_in_millis | number | no | |
485
+ | http_status | string | no | |
486
+ | items | [SlingshotConfigurationDetail](#SlingshotConfigurationDetail) | no | |
487
+ | payload | [SlingshotConfigurationDetail](#SlingshotConfigurationDetail) | no | |
488
+ | trace_id | string | no | |
489
+ | page | [Page](#Page) | no | |
490
+
491
+ ---
492
+
493
+
494
+
495
+
496
+ #### [SlingshotConfigurationDetail](#SlingshotConfigurationDetail)
497
+
498
+ | Properties | Type | Nullable | Description |
499
+ | ---------- | ---- | -------- | ----------- |
500
+ | integration | [SlingshotIntegration](#SlingshotIntegration) | no | |
501
+ | companies | [[GCompany](#GCompany)] | no | |
502
+
503
+ ---
504
+
505
+
506
+
507
+
508
+ #### [SlingshotIntegration](#SlingshotIntegration)
509
+
510
+ | Properties | Type | Nullable | Description |
511
+ | ---------- | ---- | -------- | ----------- |
512
+ | _id | string | no | |
513
+ | description | string | no | |
514
+ | name | string | no | |
515
+ | slug | string | no | |
516
+ | meta | [[Metum](#Metum)] | no | |
517
+
518
+ ---
519
+
520
+
521
+
522
+
523
+ #### [StoreData](#StoreData)
524
+
525
+ | Properties | Type | Nullable | Description |
526
+ | ---------- | ---- | -------- | ----------- |
527
+ | location_id | string | no | |
528
+
529
+ ---
530
+
531
+
532
+
533
+
534
+ #### [ApikeyModel](#ApikeyModel)
535
+
536
+ | Properties | Type | Nullable | Description |
537
+ | ---------- | ---- | -------- | ----------- |
538
+ | session_id | string | no | |
539
+ | error_message | string | no | |
540
+
541
+ ---
542
+
543
+
544
+
545
+
546
+ #### [ResponseEnvelopeApikeyModel](#ResponseEnvelopeApikeyModel)
547
+
548
+ | Properties | Type | Nullable | Description |
549
+ | ---------- | ---- | -------- | ----------- |
550
+ | timestamp | string | no | |
551
+ | status | number | no | |
552
+ | error | string | no | |
553
+ | exception | string | no | |
554
+ | message | string | no | |
555
+ | total_time_taken_in_millis | number | no | |
556
+ | http_status | string | no | |
557
+ | items | [ApikeyModel](#ApikeyModel) | no | |
558
+ | payload | [ApikeyModel](#ApikeyModel) | no | |
559
+ | trace_id | string | no | |
560
+ | page | [Page](#Page) | no | |
561
+
562
+ ---
563
+
564
+
565
+
566
+
567
+ #### [DataTresholdDTO](#DataTresholdDTO)
568
+
569
+ | Properties | Type | Nullable | Description |
570
+ | ---------- | ---- | -------- | ----------- |
571
+ | min_price | number | no | |
572
+ | safe_stock | number | no | |
573
+ | period_threshold | number | no | |
574
+ | period_threshold_type | string | no | |
575
+ | period_type_list | [[GenericDTO](#GenericDTO)] | no | |
576
+
577
+ ---
578
+
579
+
580
+
581
+
582
+ #### [GenericDTO](#GenericDTO)
583
+
584
+ | Properties | Type | Nullable | Description |
585
+ | ---------- | ---- | -------- | ----------- |
586
+ | text | string | no | |
587
+ | value | string | no | |
588
+
589
+ ---
590
+
591
+
592
+
593
+
594
+ #### [JobConfigDTO](#JobConfigDTO)
595
+
596
+ | Properties | Type | Nullable | Description |
597
+ | ---------- | ---- | -------- | ----------- |
598
+ | integration_data | string | no | |
599
+ | company_name | string | no | |
600
+ | integration | string | yes | |
601
+ | company_id | number | yes | |
602
+ | task_details | [TaskDTO](#TaskDTO) | no | |
603
+ | threshold_details | [DataTresholdDTO](#DataTresholdDTO) | no | |
604
+ | job_code | string | no | |
605
+ | alias | string | no | |
606
+
607
+ ---
608
+
609
+
610
+
611
+
612
+ #### [ResponseEnvelopeJobConfigDTO](#ResponseEnvelopeJobConfigDTO)
613
+
614
+ | Properties | Type | Nullable | Description |
615
+ | ---------- | ---- | -------- | ----------- |
616
+ | timestamp | string | no | |
617
+ | status | number | no | |
618
+ | error | string | no | |
619
+ | exception | string | no | |
620
+ | message | string | no | |
621
+ | total_time_taken_in_millis | number | no | |
622
+ | http_status | string | no | |
623
+ | items | [JobConfigDTO](#JobConfigDTO) | no | |
624
+ | payload | [JobConfigDTO](#JobConfigDTO) | no | |
625
+ | trace_id | string | no | |
626
+ | page | [Page](#Page) | no | |
627
+
628
+ ---
629
+
630
+
631
+
632
+
633
+ #### [TaskDTO](#TaskDTO)
634
+
635
+ | Properties | Type | Nullable | Description |
636
+ | ---------- | ---- | -------- | ----------- |
637
+ | type | number | no | |
638
+ | group_list | [[GenericDTO](#GenericDTO)] | no | |
639
+
640
+ ---
641
+
642
+
643
+
644
+
645
+ #### [ResponseEnvelopeListJobConfigDTO](#ResponseEnvelopeListJobConfigDTO)
646
+
647
+ | Properties | Type | Nullable | Description |
648
+ | ---------- | ---- | -------- | ----------- |
649
+ | timestamp | string | no | |
650
+ | status | number | no | |
651
+ | error | string | no | |
652
+ | exception | string | no | |
653
+ | message | string | no | |
654
+ | total_time_taken_in_millis | number | no | |
655
+ | http_status | string | no | |
656
+ | items | [[JobConfigDTO](#JobConfigDTO)] | no | |
657
+ | payload | [[JobConfigDTO](#JobConfigDTO)] | no | |
658
+ | trace_id | string | no | |
659
+ | page | [Page](#Page) | no | |
660
+
661
+ ---
662
+
663
+
664
+
665
+
666
+ #### [ResponseEnvelopeObject](#ResponseEnvelopeObject)
667
+
668
+ | Properties | Type | Nullable | Description |
669
+ | ---------- | ---- | -------- | ----------- |
670
+ | timestamp | string | no | |
671
+ | status | number | no | |
672
+ | error | string | no | |
673
+ | exception | string | no | |
674
+ | message | string | no | |
675
+ | total_time_taken_in_millis | number | no | |
676
+ | http_status | string | no | |
677
+ | items | string | no | |
678
+ | payload | string | no | |
679
+ | trace_id | string | no | |
680
+ | page | [Page](#Page) | no | |
681
+
682
+ ---
683
+
684
+
685
+
686
+