@nomalism-com/api 0.7.55 → 0.7.57

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 (329) hide show
  1. package/dist/index.d.ts +107 -107
  2. package/dist/index.js +242 -243
  3. package/dist/modules/documentManagement/index.d.ts +2 -2
  4. package/dist/modules/documentManagement/index.js +7 -8
  5. package/dist/modules/documentManagement/multimedia.d.ts +5 -5
  6. package/dist/modules/documentManagement/multimedia.js +69 -70
  7. package/dist/modules/integration/dynamicData.d.ts +8 -8
  8. package/dist/modules/integration/dynamicData.js +103 -104
  9. package/dist/modules/integration/field.d.ts +8 -8
  10. package/dist/modules/integration/field.js +94 -95
  11. package/dist/modules/integration/fieldGroup.d.ts +12 -12
  12. package/dist/modules/integration/fieldGroup.js +119 -120
  13. package/dist/modules/integration/file.d.ts +5 -5
  14. package/dist/modules/integration/file.js +83 -84
  15. package/dist/modules/integration/history.d.ts +11 -11
  16. package/dist/modules/integration/history.js +66 -67
  17. package/dist/modules/integration/index.d.ts +2 -2
  18. package/dist/modules/integration/index.js +7 -8
  19. package/dist/modules/integration/observation.d.ts +8 -8
  20. package/dist/modules/integration/observation.js +94 -95
  21. package/dist/modules/integration/observationType.d.ts +10 -10
  22. package/dist/modules/integration/observationType.js +107 -108
  23. package/dist/modules/integration/task.d.ts +10 -10
  24. package/dist/modules/integration/task.js +113 -114
  25. package/dist/modules/integration/taskAttachment.d.ts +7 -7
  26. package/dist/modules/integration/taskAttachment.js +72 -73
  27. package/dist/modules/integration/taskGroup.d.ts +8 -8
  28. package/dist/modules/integration/taskGroup.js +103 -104
  29. package/dist/modules/integration/taskNote.d.ts +8 -8
  30. package/dist/modules/integration/taskNote.js +92 -93
  31. package/dist/modules/stock/attribute.d.ts +13 -13
  32. package/dist/modules/stock/attribute.js +140 -141
  33. package/dist/modules/stock/attributeValue.d.ts +12 -12
  34. package/dist/modules/stock/attributeValue.js +140 -141
  35. package/dist/modules/stock/cabide.d.ts +7 -7
  36. package/dist/modules/stock/cabide.js +114 -115
  37. package/dist/modules/stock/cabideProduct.d.ts +5 -5
  38. package/dist/modules/stock/cabideProduct.js +80 -81
  39. package/dist/modules/stock/clientCurrentAccount.d.ts +5 -5
  40. package/dist/modules/stock/clientCurrentAccount.js +61 -62
  41. package/dist/modules/stock/color.d.ts +13 -13
  42. package/dist/modules/stock/color.js +139 -140
  43. package/dist/modules/stock/composition.d.ts +12 -12
  44. package/dist/modules/stock/composition.js +127 -128
  45. package/dist/modules/stock/compositionMaterial.d.ts +13 -13
  46. package/dist/modules/stock/compositionMaterial.js +140 -141
  47. package/dist/modules/stock/documentHeader.d.ts +39 -39
  48. package/dist/modules/stock/documentHeader.js +321 -322
  49. package/dist/modules/stock/documentLine.d.ts +14 -14
  50. package/dist/modules/stock/documentLine.js +123 -124
  51. package/dist/modules/stock/documentLineAssoc.d.ts +15 -15
  52. package/dist/modules/stock/documentLineAssoc.js +132 -133
  53. package/dist/modules/stock/documentLineFolder.d.ts +6 -6
  54. package/dist/modules/stock/documentLineFolder.js +92 -93
  55. package/dist/modules/stock/documentLineState.d.ts +10 -10
  56. package/dist/modules/stock/documentLineState.js +114 -115
  57. package/dist/modules/stock/documentLineStateCriteria.d.ts +20 -20
  58. package/dist/modules/stock/documentLineStateCriteria.js +124 -125
  59. package/dist/modules/stock/documentSet.d.ts +8 -8
  60. package/dist/modules/stock/documentSet.js +114 -115
  61. package/dist/modules/stock/documentType.d.ts +11 -11
  62. package/dist/modules/stock/documentType.js +114 -115
  63. package/dist/modules/stock/externalDocumentHeader.d.ts +14 -14
  64. package/dist/modules/stock/externalDocumentHeader.js +125 -126
  65. package/dist/modules/stock/externalDocumentType.d.ts +6 -6
  66. package/dist/modules/stock/externalDocumentType.js +70 -71
  67. package/dist/modules/stock/index.d.ts +3 -3
  68. package/dist/modules/stock/index.js +8 -9
  69. package/dist/modules/stock/location.d.ts +12 -12
  70. package/dist/modules/stock/location.js +140 -141
  71. package/dist/modules/stock/maintenance.d.ts +12 -12
  72. package/dist/modules/stock/maintenance.js +140 -141
  73. package/dist/modules/stock/maintenanceAssoc.d.ts +12 -12
  74. package/dist/modules/stock/maintenanceAssoc.js +127 -128
  75. package/dist/modules/stock/maintenancePreset.d.ts +10 -10
  76. package/dist/modules/stock/maintenancePreset.js +114 -115
  77. package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -8
  78. package/dist/modules/stock/maintenancePresetAssoc.js +91 -92
  79. package/dist/modules/stock/maintenanceType.d.ts +13 -13
  80. package/dist/modules/stock/maintenanceType.js +140 -141
  81. package/dist/modules/stock/moloniRequest.d.ts +5 -5
  82. package/dist/modules/stock/moloniRequest.js +59 -60
  83. package/dist/modules/stock/payment.d.ts +19 -19
  84. package/dist/modules/stock/payment.js +185 -186
  85. package/dist/modules/stock/plot.d.ts +29 -29
  86. package/dist/modules/stock/plot.js +245 -246
  87. package/dist/modules/stock/preSale.d.ts +11 -11
  88. package/dist/modules/stock/preSale.js +125 -126
  89. package/dist/modules/stock/primaryColor.d.ts +13 -13
  90. package/dist/modules/stock/primaryColor.js +140 -141
  91. package/dist/modules/stock/product.d.ts +28 -28
  92. package/dist/modules/stock/product.js +217 -218
  93. package/dist/modules/stock/productAttribute.d.ts +12 -12
  94. package/dist/modules/stock/productAttribute.js +127 -128
  95. package/dist/modules/stock/productCategory.d.ts +13 -13
  96. package/dist/modules/stock/productCategory.js +140 -141
  97. package/dist/modules/stock/productColor.d.ts +12 -12
  98. package/dist/modules/stock/productColor.js +127 -128
  99. package/dist/modules/stock/productImage.d.ts +14 -14
  100. package/dist/modules/stock/productImage.js +132 -133
  101. package/dist/modules/stock/productName.d.ts +13 -13
  102. package/dist/modules/stock/productName.js +140 -141
  103. package/dist/modules/stock/productNamePreset.d.ts +13 -13
  104. package/dist/modules/stock/productNamePreset.js +140 -141
  105. package/dist/modules/stock/productPart.d.ts +14 -14
  106. package/dist/modules/stock/productPart.js +139 -140
  107. package/dist/modules/stock/productSubCategory.d.ts +13 -13
  108. package/dist/modules/stock/productSubCategory.js +139 -140
  109. package/dist/modules/stock/productUse.d.ts +13 -13
  110. package/dist/modules/stock/productUse.js +140 -141
  111. package/dist/modules/stock/productUseAssoc.d.ts +12 -12
  112. package/dist/modules/stock/productUseAssoc.js +126 -127
  113. package/dist/modules/stock/promotion.d.ts +13 -13
  114. package/dist/modules/stock/promotion.js +140 -141
  115. package/dist/modules/stock/promotionAssoc.d.ts +12 -12
  116. package/dist/modules/stock/promotionAssoc.js +127 -128
  117. package/dist/modules/stock/providerCurrentAccount.d.ts +5 -5
  118. package/dist/modules/stock/providerCurrentAccount.js +61 -62
  119. package/dist/modules/stock/similarProduct.d.ts +12 -12
  120. package/dist/modules/stock/similarProduct.js +127 -128
  121. package/dist/modules/stock/stockMovement.d.ts +8 -8
  122. package/dist/modules/stock/stockMovement.js +75 -76
  123. package/dist/modules/stock/topMenu.d.ts +5 -5
  124. package/dist/modules/stock/topMenu.js +61 -62
  125. package/dist/modules/stock/typeOfInventory.d.ts +13 -13
  126. package/dist/modules/stock/typeOfInventory.js +140 -141
  127. package/dist/modules/stock/typeOfLocation.d.ts +13 -13
  128. package/dist/modules/stock/typeOfLocation.js +140 -141
  129. package/dist/modules/stock/unitOfMeasure.d.ts +13 -13
  130. package/dist/modules/stock/unitOfMeasure.js +140 -141
  131. package/dist/modules/stock/vatTax.d.ts +13 -13
  132. package/dist/modules/stock/vatTax.js +140 -141
  133. package/dist/modules/stock/vatTaxZone.d.ts +14 -14
  134. package/dist/modules/stock/vatTaxZone.js +140 -141
  135. package/dist/modules/stock/vatValidation.d.ts +4 -4
  136. package/dist/modules/stock/vatValidation.js +63 -64
  137. package/dist/modules/stock/websiteRequest.d.ts +10 -10
  138. package/dist/modules/stock/websiteRequest.js +97 -98
  139. package/dist/modules/stock/workflow.d.ts +8 -8
  140. package/dist/modules/stock/workflow.js +103 -104
  141. package/dist/modules/user/address.d.ts +12 -12
  142. package/dist/modules/user/address.js +127 -128
  143. package/dist/modules/user/bankData.d.ts +12 -12
  144. package/dist/modules/user/bankData.js +127 -128
  145. package/dist/modules/user/clientType.d.ts +12 -12
  146. package/dist/modules/user/clientType.js +127 -128
  147. package/dist/modules/user/clients.d.ts +15 -15
  148. package/dist/modules/user/clients.js +140 -141
  149. package/dist/modules/user/commissioner.d.ts +15 -15
  150. package/dist/modules/user/commissioner.js +140 -141
  151. package/dist/modules/user/contactTypes.d.ts +12 -12
  152. package/dist/modules/user/contactTypes.js +127 -128
  153. package/dist/modules/user/contacts.d.ts +14 -14
  154. package/dist/modules/user/contacts.js +149 -150
  155. package/dist/modules/user/country.d.ts +12 -12
  156. package/dist/modules/user/country.js +140 -141
  157. package/dist/modules/user/deliveryMethods.d.ts +8 -8
  158. package/dist/modules/user/deliveryMethods.js +116 -117
  159. package/dist/modules/user/entityList.d.ts +7 -7
  160. package/dist/modules/user/entityList.js +106 -107
  161. package/dist/modules/user/favorites.d.ts +7 -7
  162. package/dist/modules/user/favorites.js +92 -93
  163. package/dist/modules/user/groupPermission.d.ts +7 -7
  164. package/dist/modules/user/groupPermission.js +94 -95
  165. package/dist/modules/user/index.d.ts +3 -3
  166. package/dist/modules/user/index.js +8 -9
  167. package/dist/modules/user/language.d.ts +12 -12
  168. package/dist/modules/user/language.js +127 -128
  169. package/dist/modules/user/logout.d.ts +2 -2
  170. package/dist/modules/user/logout.js +58 -59
  171. package/dist/modules/user/maturityDates.d.ts +8 -8
  172. package/dist/modules/user/maturityDates.js +116 -117
  173. package/dist/modules/user/password.d.ts +5 -5
  174. package/dist/modules/user/password.js +68 -69
  175. package/dist/modules/user/paymentCondition.d.ts +11 -11
  176. package/dist/modules/user/paymentCondition.js +127 -128
  177. package/dist/modules/user/paymentMethods.d.ts +8 -8
  178. package/dist/modules/user/paymentMethods.js +116 -117
  179. package/dist/modules/user/permission.d.ts +7 -7
  180. package/dist/modules/user/permission.js +94 -95
  181. package/dist/modules/user/provider.d.ts +15 -15
  182. package/dist/modules/user/provider.js +140 -141
  183. package/dist/modules/user/providerType.d.ts +12 -12
  184. package/dist/modules/user/providerType.js +127 -128
  185. package/dist/modules/user/purchaseCondition.d.ts +12 -12
  186. package/dist/modules/user/purchaseCondition.js +127 -128
  187. package/dist/modules/user/reasonForExemption.d.ts +12 -12
  188. package/dist/modules/user/reasonForExemption.js +127 -128
  189. package/dist/modules/user/refreshToken.d.ts +5 -5
  190. package/dist/modules/user/refreshToken.js +59 -60
  191. package/dist/modules/user/segmentsArea.d.ts +12 -12
  192. package/dist/modules/user/segmentsArea.js +127 -128
  193. package/dist/modules/user/sessions.d.ts +5 -5
  194. package/dist/modules/user/sessions.js +59 -60
  195. package/dist/modules/user/shippings.d.ts +11 -11
  196. package/dist/modules/user/shippings.js +127 -128
  197. package/dist/modules/user/socialMedia.d.ts +11 -11
  198. package/dist/modules/user/socialMedia.js +127 -128
  199. package/dist/modules/user/storeOperator.d.ts +16 -16
  200. package/dist/modules/user/storeOperator.js +151 -152
  201. package/dist/modules/user/swift.d.ts +12 -12
  202. package/dist/modules/user/swift.js +127 -128
  203. package/dist/modules/user/tenant.d.ts +6 -6
  204. package/dist/modules/user/tenant.js +92 -93
  205. package/dist/modules/user/user.d.ts +16 -16
  206. package/dist/modules/user/user.js +138 -139
  207. package/dist/modules/user/userPermission.d.ts +7 -7
  208. package/dist/modules/user/userPermission.js +83 -84
  209. package/dist/modules/user/userPositions.d.ts +12 -12
  210. package/dist/modules/user/userPositions.js +127 -128
  211. package/dist/modules/user/userToken.d.ts +9 -9
  212. package/dist/modules/user/userToken.js +116 -117
  213. package/dist/modules/user/vehicles.d.ts +6 -6
  214. package/dist/modules/user/vehicles.js +92 -93
  215. package/dist/modules/user/zipCode.d.ts +6 -6
  216. package/dist/modules/user/zipCode.js +69 -70
  217. package/dist/shared/client.d.ts +2 -2
  218. package/dist/shared/client.js +9 -10
  219. package/dist/tsconfig.tsbuildinfo +1 -1
  220. package/package.json +53 -53
  221. package/dist/index.js.map +0 -1
  222. package/dist/modules/documentManagement/index.js.map +0 -1
  223. package/dist/modules/documentManagement/multimedia.js.map +0 -1
  224. package/dist/modules/integration/dynamicData.js.map +0 -1
  225. package/dist/modules/integration/field.js.map +0 -1
  226. package/dist/modules/integration/fieldGroup.js.map +0 -1
  227. package/dist/modules/integration/file.js.map +0 -1
  228. package/dist/modules/integration/history.js.map +0 -1
  229. package/dist/modules/integration/index.js.map +0 -1
  230. package/dist/modules/integration/observation.js.map +0 -1
  231. package/dist/modules/integration/observationType.js.map +0 -1
  232. package/dist/modules/integration/task.js.map +0 -1
  233. package/dist/modules/integration/taskAttachment.js.map +0 -1
  234. package/dist/modules/integration/taskGroup.js.map +0 -1
  235. package/dist/modules/integration/taskNote.js.map +0 -1
  236. package/dist/modules/stock/attribute.js.map +0 -1
  237. package/dist/modules/stock/attributeValue.js.map +0 -1
  238. package/dist/modules/stock/cabide.js.map +0 -1
  239. package/dist/modules/stock/cabideProduct.js.map +0 -1
  240. package/dist/modules/stock/clientCurrentAccount.js.map +0 -1
  241. package/dist/modules/stock/color.js.map +0 -1
  242. package/dist/modules/stock/composition.js.map +0 -1
  243. package/dist/modules/stock/compositionMaterial.js.map +0 -1
  244. package/dist/modules/stock/documentHeader.js.map +0 -1
  245. package/dist/modules/stock/documentLine.js.map +0 -1
  246. package/dist/modules/stock/documentLineAssoc.js.map +0 -1
  247. package/dist/modules/stock/documentLineFolder.js.map +0 -1
  248. package/dist/modules/stock/documentLineState.js.map +0 -1
  249. package/dist/modules/stock/documentLineStateCriteria.js.map +0 -1
  250. package/dist/modules/stock/documentSet.js.map +0 -1
  251. package/dist/modules/stock/documentType.js.map +0 -1
  252. package/dist/modules/stock/externalDocumentHeader.js.map +0 -1
  253. package/dist/modules/stock/externalDocumentType.js.map +0 -1
  254. package/dist/modules/stock/index.js.map +0 -1
  255. package/dist/modules/stock/location.js.map +0 -1
  256. package/dist/modules/stock/maintenance.js.map +0 -1
  257. package/dist/modules/stock/maintenanceAssoc.js.map +0 -1
  258. package/dist/modules/stock/maintenancePreset.js.map +0 -1
  259. package/dist/modules/stock/maintenancePresetAssoc.js.map +0 -1
  260. package/dist/modules/stock/maintenanceType.js.map +0 -1
  261. package/dist/modules/stock/moloniRequest.js.map +0 -1
  262. package/dist/modules/stock/payment.js.map +0 -1
  263. package/dist/modules/stock/plot.js.map +0 -1
  264. package/dist/modules/stock/preSale.js.map +0 -1
  265. package/dist/modules/stock/primaryColor.js.map +0 -1
  266. package/dist/modules/stock/product.js.map +0 -1
  267. package/dist/modules/stock/productAttribute.js.map +0 -1
  268. package/dist/modules/stock/productCategory.js.map +0 -1
  269. package/dist/modules/stock/productColor.js.map +0 -1
  270. package/dist/modules/stock/productImage.js.map +0 -1
  271. package/dist/modules/stock/productName.js.map +0 -1
  272. package/dist/modules/stock/productNamePreset.js.map +0 -1
  273. package/dist/modules/stock/productPart.js.map +0 -1
  274. package/dist/modules/stock/productSubCategory.js.map +0 -1
  275. package/dist/modules/stock/productUse.js.map +0 -1
  276. package/dist/modules/stock/productUseAssoc.js.map +0 -1
  277. package/dist/modules/stock/promotion.js.map +0 -1
  278. package/dist/modules/stock/promotionAssoc.js.map +0 -1
  279. package/dist/modules/stock/providerCurrentAccount.js.map +0 -1
  280. package/dist/modules/stock/similarProduct.js.map +0 -1
  281. package/dist/modules/stock/stockMovement.js.map +0 -1
  282. package/dist/modules/stock/topMenu.js.map +0 -1
  283. package/dist/modules/stock/typeOfInventory.js.map +0 -1
  284. package/dist/modules/stock/typeOfLocation.js.map +0 -1
  285. package/dist/modules/stock/unitOfMeasure.js.map +0 -1
  286. package/dist/modules/stock/vatTax.js.map +0 -1
  287. package/dist/modules/stock/vatTaxZone.js.map +0 -1
  288. package/dist/modules/stock/vatValidation.js.map +0 -1
  289. package/dist/modules/stock/websiteRequest.js.map +0 -1
  290. package/dist/modules/stock/workflow.js.map +0 -1
  291. package/dist/modules/user/address.js.map +0 -1
  292. package/dist/modules/user/bankData.js.map +0 -1
  293. package/dist/modules/user/clientType.js.map +0 -1
  294. package/dist/modules/user/clients.js.map +0 -1
  295. package/dist/modules/user/commissioner.js.map +0 -1
  296. package/dist/modules/user/contactTypes.js.map +0 -1
  297. package/dist/modules/user/contacts.js.map +0 -1
  298. package/dist/modules/user/country.js.map +0 -1
  299. package/dist/modules/user/deliveryMethods.js.map +0 -1
  300. package/dist/modules/user/entityList.js.map +0 -1
  301. package/dist/modules/user/favorites.js.map +0 -1
  302. package/dist/modules/user/groupPermission.js.map +0 -1
  303. package/dist/modules/user/index.js.map +0 -1
  304. package/dist/modules/user/language.js.map +0 -1
  305. package/dist/modules/user/logout.js.map +0 -1
  306. package/dist/modules/user/maturityDates.js.map +0 -1
  307. package/dist/modules/user/password.js.map +0 -1
  308. package/dist/modules/user/paymentCondition.js.map +0 -1
  309. package/dist/modules/user/paymentMethods.js.map +0 -1
  310. package/dist/modules/user/permission.js.map +0 -1
  311. package/dist/modules/user/provider.js.map +0 -1
  312. package/dist/modules/user/providerType.js.map +0 -1
  313. package/dist/modules/user/purchaseCondition.js.map +0 -1
  314. package/dist/modules/user/reasonForExemption.js.map +0 -1
  315. package/dist/modules/user/refreshToken.js.map +0 -1
  316. package/dist/modules/user/segmentsArea.js.map +0 -1
  317. package/dist/modules/user/sessions.js.map +0 -1
  318. package/dist/modules/user/shippings.js.map +0 -1
  319. package/dist/modules/user/socialMedia.js.map +0 -1
  320. package/dist/modules/user/storeOperator.js.map +0 -1
  321. package/dist/modules/user/swift.js.map +0 -1
  322. package/dist/modules/user/tenant.js.map +0 -1
  323. package/dist/modules/user/user.js.map +0 -1
  324. package/dist/modules/user/userPermission.js.map +0 -1
  325. package/dist/modules/user/userPositions.js.map +0 -1
  326. package/dist/modules/user/userToken.js.map +0 -1
  327. package/dist/modules/user/vehicles.js.map +0 -1
  328. package/dist/modules/user/zipCode.js.map +0 -1
  329. package/dist/shared/client.js.map +0 -1
@@ -1,218 +1,217 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- exports.__esModule = true;
42
- exports.findByPlot = exports.printLabelToPdfUrl = exports.printLabelToPdf = exports.printLabel = exports.bulkUpdate = exports.basicSearch = exports.deleteOne = exports.update = exports.create = exports.findByRef = exports.findById = exports.findByOwnerId = exports.findMinified = exports.findPaginated = exports.find = exports.publicRoute = exports.route = exports.productTypes = exports.ProductTypeEnum = void 0;
43
- var types_1 = require("@nomalism-com/types");
44
- var client_1 = __importDefault(require("../../shared/client"));
45
- var _1 = require(".");
46
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
- exports.ProductTypeEnum = types_1.Product.ProductTypeEnum;
48
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
49
- exports.productTypes = types_1.Product.productTypes;
50
- exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "product/");
51
- exports.publicRoute = "".concat(_1.serviceHostname).concat(_1.servicePublicPath, "product/");
52
- var repository = {
53
- find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
54
- var response;
55
- return __generator(this, function (_a) {
56
- switch (_a.label) {
57
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route), { params: params })];
58
- case 1:
59
- response = _a.sent();
60
- return [2 /*return*/, response.data];
61
- }
62
- });
63
- }); },
64
- findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
65
- var response;
66
- return __generator(this, function (_a) {
67
- switch (_a.label) {
68
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "paginated"), { params: params })];
69
- case 1:
70
- response = _a.sent();
71
- return [2 /*return*/, response.data];
72
- }
73
- });
74
- }); },
75
- findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
76
- var response;
77
- return __generator(this, function (_a) {
78
- switch (_a.label) {
79
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "minified"), {
80
- params: params
81
- })];
82
- case 1:
83
- response = _a.sent();
84
- return [2 /*return*/, response.data];
85
- }
86
- });
87
- }); },
88
- findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
89
- var response;
90
- return __generator(this, function (_a) {
91
- switch (_a.label) {
92
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "by_owner"), {
93
- params: params
94
- })];
95
- case 1:
96
- response = _a.sent();
97
- return [2 /*return*/, response.data];
98
- }
99
- });
100
- }); },
101
- findByRef: function (params) { return __awaiter(void 0, void 0, void 0, function () {
102
- var response;
103
- return __generator(this, function (_a) {
104
- switch (_a.label) {
105
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "by_ref"), {
106
- params: params
107
- })];
108
- case 1:
109
- response = _a.sent();
110
- return [2 /*return*/, response.data];
111
- }
112
- });
113
- }); },
114
- findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
115
- var response;
116
- return __generator(this, function (_a) {
117
- switch (_a.label) {
118
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route).concat(selector.id))];
119
- case 1:
120
- response = _a.sent();
121
- return [2 /*return*/, response.data];
122
- }
123
- });
124
- }); },
125
- findByPlot: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
126
- var response;
127
- return __generator(this, function (_a) {
128
- switch (_a.label) {
129
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "plot/").concat(selector.id))];
130
- case 1:
131
- response = _a.sent();
132
- return [2 /*return*/, response.data];
133
- }
134
- });
135
- }); },
136
- create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
137
- var response;
138
- return __generator(this, function (_a) {
139
- switch (_a.label) {
140
- case 0: return [4 /*yield*/, client_1["default"].post("".concat(exports.route), body)];
141
- case 1:
142
- response = _a.sent();
143
- return [2 /*return*/, response.data];
144
- }
145
- });
146
- }); },
147
- update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
148
- var response;
149
- return __generator(this, function (_a) {
150
- switch (_a.label) {
151
- case 0: return [4 /*yield*/, client_1["default"].put("".concat(exports.route).concat(selector.id), body)];
152
- case 1:
153
- response = _a.sent();
154
- return [2 /*return*/, response.data];
155
- }
156
- });
157
- }); },
158
- deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
159
- var response;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
162
- case 0: return [4 /*yield*/, client_1["default"]["delete"]("".concat(exports.route).concat(selector.id))];
163
- case 1:
164
- response = _a.sent();
165
- return [2 /*return*/, response.data];
166
- }
167
- });
168
- }); },
169
- basicSearch: function (params) { return __awaiter(void 0, void 0, void 0, function () {
170
- var response;
171
- return __generator(this, function (_a) {
172
- switch (_a.label) {
173
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "basic_search"), {
174
- params: params
175
- })];
176
- case 1:
177
- response = _a.sent();
178
- return [2 /*return*/, response.data];
179
- }
180
- });
181
- }); },
182
- bulkUpdate: function (body) { return __awaiter(void 0, void 0, void 0, function () {
183
- var response;
184
- return __generator(this, function (_a) {
185
- switch (_a.label) {
186
- case 0: return [4 /*yield*/, client_1["default"].put("".concat(exports.route, "bulk"), body)];
187
- case 1:
188
- response = _a.sent();
189
- return [2 /*return*/, response.data];
190
- }
191
- });
192
- }); },
193
- printLabel: function (params) { return __awaiter(void 0, void 0, void 0, function () {
194
- return __generator(this, function (_a) {
195
- switch (_a.label) {
196
- case 0: return [4 /*yield*/, client_1["default"].post("".concat(exports.route, "print_label"), params)];
197
- case 1:
198
- _a.sent();
199
- return [2 /*return*/];
200
- }
201
- });
202
- }); },
203
- printLabelToPdf: function (params) { return __awaiter(void 0, void 0, void 0, function () {
204
- return __generator(this, function (_a) {
205
- switch (_a.label) {
206
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.publicRoute, "print_label_pdf/").concat(params))];
207
- case 1:
208
- _a.sent();
209
- return [2 /*return*/];
210
- }
211
- });
212
- }); },
213
- printLabelToPdfUrl: function (params) {
214
- return "".concat(exports.publicRoute, "print_label_pdf?").concat(new URLSearchParams(params));
215
- }
216
- };
217
- exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findMinified = repository.findMinified, exports.findByOwnerId = repository.findByOwnerId, exports.findById = repository.findById, exports.findByRef = repository.findByRef, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne, exports.basicSearch = repository.basicSearch, exports.bulkUpdate = repository.bulkUpdate, exports.printLabel = repository.printLabel, exports.printLabelToPdf = repository.printLabelToPdf, exports.printLabelToPdfUrl = repository.printLabelToPdfUrl, exports.findByPlot = repository.findByPlot;
218
- //# sourceMappingURL=product.js.map
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.findByPlot = exports.printLabelToPdfUrl = exports.printLabelToPdf = exports.printLabel = exports.bulkUpdate = exports.basicSearch = exports.deleteOne = exports.update = exports.create = exports.findByRef = exports.findById = exports.findByOwnerId = exports.findMinified = exports.findPaginated = exports.find = exports.publicRoute = exports.route = exports.productTypes = exports.ProductTypeEnum = void 0;
43
+ var types_1 = require("@nomalism-com/types");
44
+ var client_1 = __importDefault(require("../../shared/client"));
45
+ var _1 = require(".");
46
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
+ exports.ProductTypeEnum = types_1.Product.ProductTypeEnum;
48
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
49
+ exports.productTypes = types_1.Product.productTypes;
50
+ exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "product/");
51
+ exports.publicRoute = "".concat(_1.serviceHostname).concat(_1.servicePublicPath, "product/");
52
+ var repository = {
53
+ find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
54
+ var response;
55
+ return __generator(this, function (_a) {
56
+ switch (_a.label) {
57
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route), { params: params })];
58
+ case 1:
59
+ response = _a.sent();
60
+ return [2 /*return*/, response.data];
61
+ }
62
+ });
63
+ }); },
64
+ findPaginated: function (params) { return __awaiter(void 0, void 0, void 0, function () {
65
+ var response;
66
+ return __generator(this, function (_a) {
67
+ switch (_a.label) {
68
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "paginated"), { params: params })];
69
+ case 1:
70
+ response = _a.sent();
71
+ return [2 /*return*/, response.data];
72
+ }
73
+ });
74
+ }); },
75
+ findMinified: function (params) { return __awaiter(void 0, void 0, void 0, function () {
76
+ var response;
77
+ return __generator(this, function (_a) {
78
+ switch (_a.label) {
79
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "minified"), {
80
+ params: params,
81
+ })];
82
+ case 1:
83
+ response = _a.sent();
84
+ return [2 /*return*/, response.data];
85
+ }
86
+ });
87
+ }); },
88
+ findByOwnerId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
89
+ var response;
90
+ return __generator(this, function (_a) {
91
+ switch (_a.label) {
92
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "by_owner"), {
93
+ params: params,
94
+ })];
95
+ case 1:
96
+ response = _a.sent();
97
+ return [2 /*return*/, response.data];
98
+ }
99
+ });
100
+ }); },
101
+ findByRef: function (params) { return __awaiter(void 0, void 0, void 0, function () {
102
+ var response;
103
+ return __generator(this, function (_a) {
104
+ switch (_a.label) {
105
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "by_ref"), {
106
+ params: params,
107
+ })];
108
+ case 1:
109
+ response = _a.sent();
110
+ return [2 /*return*/, response.data];
111
+ }
112
+ });
113
+ }); },
114
+ findById: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
115
+ var response;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route).concat(selector.id))];
119
+ case 1:
120
+ response = _a.sent();
121
+ return [2 /*return*/, response.data];
122
+ }
123
+ });
124
+ }); },
125
+ findByPlot: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
126
+ var response;
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "plot/").concat(selector.id))];
130
+ case 1:
131
+ response = _a.sent();
132
+ return [2 /*return*/, response.data];
133
+ }
134
+ });
135
+ }); },
136
+ create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
137
+ var response;
138
+ return __generator(this, function (_a) {
139
+ switch (_a.label) {
140
+ case 0: return [4 /*yield*/, client_1.default.post("".concat(exports.route), body)];
141
+ case 1:
142
+ response = _a.sent();
143
+ return [2 /*return*/, response.data];
144
+ }
145
+ });
146
+ }); },
147
+ update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
148
+ var response;
149
+ return __generator(this, function (_a) {
150
+ switch (_a.label) {
151
+ case 0: return [4 /*yield*/, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
152
+ case 1:
153
+ response = _a.sent();
154
+ return [2 /*return*/, response.data];
155
+ }
156
+ });
157
+ }); },
158
+ deleteOne: function (selector) { return __awaiter(void 0, void 0, void 0, function () {
159
+ var response;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0: return [4 /*yield*/, client_1.default.delete("".concat(exports.route).concat(selector.id))];
163
+ case 1:
164
+ response = _a.sent();
165
+ return [2 /*return*/, response.data];
166
+ }
167
+ });
168
+ }); },
169
+ basicSearch: function (params) { return __awaiter(void 0, void 0, void 0, function () {
170
+ var response;
171
+ return __generator(this, function (_a) {
172
+ switch (_a.label) {
173
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "basic_search"), {
174
+ params: params,
175
+ })];
176
+ case 1:
177
+ response = _a.sent();
178
+ return [2 /*return*/, response.data];
179
+ }
180
+ });
181
+ }); },
182
+ bulkUpdate: function (body) { return __awaiter(void 0, void 0, void 0, function () {
183
+ var response;
184
+ return __generator(this, function (_a) {
185
+ switch (_a.label) {
186
+ case 0: return [4 /*yield*/, client_1.default.put("".concat(exports.route, "bulk"), body)];
187
+ case 1:
188
+ response = _a.sent();
189
+ return [2 /*return*/, response.data];
190
+ }
191
+ });
192
+ }); },
193
+ printLabel: function (params) { return __awaiter(void 0, void 0, void 0, function () {
194
+ return __generator(this, function (_a) {
195
+ switch (_a.label) {
196
+ case 0: return [4 /*yield*/, client_1.default.post("".concat(exports.route, "print_label"), params)];
197
+ case 1:
198
+ _a.sent();
199
+ return [2 /*return*/];
200
+ }
201
+ });
202
+ }); },
203
+ printLabelToPdf: function (params) { return __awaiter(void 0, void 0, void 0, function () {
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.publicRoute, "print_label_pdf/").concat(params))];
207
+ case 1:
208
+ _a.sent();
209
+ return [2 /*return*/];
210
+ }
211
+ });
212
+ }); },
213
+ printLabelToPdfUrl: function (params) {
214
+ return "".concat(exports.publicRoute, "print_label_pdf?").concat(new URLSearchParams(params));
215
+ },
216
+ };
217
+ exports.find = repository.find, exports.findPaginated = repository.findPaginated, exports.findMinified = repository.findMinified, exports.findByOwnerId = repository.findByOwnerId, exports.findById = repository.findById, exports.findByRef = repository.findByRef, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne, exports.basicSearch = repository.basicSearch, exports.bulkUpdate = repository.bulkUpdate, exports.printLabel = repository.printLabel, exports.printLabelToPdf = repository.printLabelToPdf, exports.printLabelToPdfUrl = repository.printLabelToPdfUrl, exports.findByPlot = repository.findByPlot;
@@ -1,12 +1,12 @@
1
- import { shared, ProductAttribute as Entity } from '@nomalism-com/types';
2
- export import IFindDetailedResponse = Entity.IFindDetailedResponse;
3
- export import IFindRequest = Entity.IFindRequest;
4
- export import IFindResponse = Entity.IFindResponse;
5
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
6
- export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
7
- export import IFindByOwnerIdResponse = Entity.IFindByOwnerIdResponse;
8
- export import ICreateRequest = Entity.ICreateRequest;
9
- export import IUpdateRequest = Entity.IUpdateRequest;
10
- export declare type IPaginationResponse = shared.IPaginationResponse<Entity.IFindResponse>;
11
- export declare const route: string;
12
- export declare const find: (selector: Entity.IFindRequest) => Promise<Entity.IFindResponse[]>, findPaginated: (selector: Entity.IFindPaginatedRequest) => Promise<Entity.IFindWithPaginationResponse>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindByOwnerIdResponse[]>, findById: (selector: shared.IFindByIdRequest) => Promise<Entity.IFindByIdResponse | null>, create: (data: Entity.ICreateRequest) => Promise<Entity.IFindDetailedResponse>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindDetailedResponse | null>, deleteOne: (selector: shared.IFindByIdRequest, data?: shared.WithUpdatedBy | undefined) => Promise<Entity.IFindDetailedResponse | null>;
1
+ import { shared, ProductAttribute as Entity } from '@nomalism-com/types';
2
+ export import IFindDetailedResponse = Entity.IFindDetailedResponse;
3
+ export import IFindRequest = Entity.IFindRequest;
4
+ export import IFindResponse = Entity.IFindResponse;
5
+ export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
6
+ export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
7
+ export import IFindByOwnerIdResponse = Entity.IFindByOwnerIdResponse;
8
+ export import ICreateRequest = Entity.ICreateRequest;
9
+ export import IUpdateRequest = Entity.IUpdateRequest;
10
+ export declare type IPaginationResponse = shared.IPaginationResponse<Entity.IFindResponse>;
11
+ export declare const route: string;
12
+ export declare const find: (selector: Entity.IFindRequest) => Promise<Entity.IFindResponse[]>, findPaginated: (selector: Entity.IFindPaginatedRequest) => Promise<Entity.IFindWithPaginationResponse>, findByOwnerId: (params: shared.IFindByOwnerIdRequest) => Promise<Entity.IFindByOwnerIdResponse[]>, findById: (selector: shared.IFindByIdRequest) => Promise<Entity.IFindByIdResponse | null>, create: (data: Entity.ICreateRequest) => Promise<Entity.IFindDetailedResponse>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindDetailedResponse | null>, deleteOne: (selector: shared.IFindByIdRequest, data?: shared.WithUpdatedBy | undefined) => Promise<Entity.IFindDetailedResponse | null>;