@nomalism-com/api 0.7.55 → 0.7.56

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 (325) hide show
  1. package/dist/index.d.ts +107 -107
  2. package/dist/index.js +242 -242
  3. package/dist/index.js.map +1 -1
  4. package/dist/modules/documentManagement/index.d.ts +2 -2
  5. package/dist/modules/documentManagement/index.js +7 -7
  6. package/dist/modules/documentManagement/multimedia.d.ts +5 -5
  7. package/dist/modules/documentManagement/multimedia.js +69 -69
  8. package/dist/modules/documentManagement/multimedia.js.map +1 -1
  9. package/dist/modules/integration/dynamicData.d.ts +8 -8
  10. package/dist/modules/integration/dynamicData.js +103 -103
  11. package/dist/modules/integration/dynamicData.js.map +1 -1
  12. package/dist/modules/integration/field.d.ts +8 -8
  13. package/dist/modules/integration/field.js +94 -94
  14. package/dist/modules/integration/field.js.map +1 -1
  15. package/dist/modules/integration/fieldGroup.d.ts +12 -12
  16. package/dist/modules/integration/fieldGroup.js +119 -119
  17. package/dist/modules/integration/fieldGroup.js.map +1 -1
  18. package/dist/modules/integration/file.d.ts +5 -5
  19. package/dist/modules/integration/file.js +83 -83
  20. package/dist/modules/integration/file.js.map +1 -1
  21. package/dist/modules/integration/history.d.ts +11 -11
  22. package/dist/modules/integration/history.js +66 -66
  23. package/dist/modules/integration/history.js.map +1 -1
  24. package/dist/modules/integration/index.d.ts +2 -2
  25. package/dist/modules/integration/index.js +7 -7
  26. package/dist/modules/integration/observation.d.ts +8 -8
  27. package/dist/modules/integration/observation.js +94 -94
  28. package/dist/modules/integration/observation.js.map +1 -1
  29. package/dist/modules/integration/observationType.d.ts +10 -10
  30. package/dist/modules/integration/observationType.js +107 -107
  31. package/dist/modules/integration/observationType.js.map +1 -1
  32. package/dist/modules/integration/task.d.ts +10 -10
  33. package/dist/modules/integration/task.js +113 -113
  34. package/dist/modules/integration/task.js.map +1 -1
  35. package/dist/modules/integration/taskAttachment.d.ts +7 -7
  36. package/dist/modules/integration/taskAttachment.js +72 -72
  37. package/dist/modules/integration/taskAttachment.js.map +1 -1
  38. package/dist/modules/integration/taskGroup.d.ts +8 -8
  39. package/dist/modules/integration/taskGroup.js +103 -103
  40. package/dist/modules/integration/taskGroup.js.map +1 -1
  41. package/dist/modules/integration/taskNote.d.ts +8 -8
  42. package/dist/modules/integration/taskNote.js +92 -92
  43. package/dist/modules/integration/taskNote.js.map +1 -1
  44. package/dist/modules/stock/attribute.d.ts +13 -13
  45. package/dist/modules/stock/attribute.js +140 -140
  46. package/dist/modules/stock/attribute.js.map +1 -1
  47. package/dist/modules/stock/attributeValue.d.ts +12 -12
  48. package/dist/modules/stock/attributeValue.js +140 -140
  49. package/dist/modules/stock/attributeValue.js.map +1 -1
  50. package/dist/modules/stock/cabide.d.ts +7 -7
  51. package/dist/modules/stock/cabide.js +114 -114
  52. package/dist/modules/stock/cabide.js.map +1 -1
  53. package/dist/modules/stock/cabideProduct.d.ts +5 -5
  54. package/dist/modules/stock/cabideProduct.js +80 -80
  55. package/dist/modules/stock/cabideProduct.js.map +1 -1
  56. package/dist/modules/stock/clientCurrentAccount.d.ts +5 -5
  57. package/dist/modules/stock/clientCurrentAccount.js +61 -61
  58. package/dist/modules/stock/clientCurrentAccount.js.map +1 -1
  59. package/dist/modules/stock/color.d.ts +13 -13
  60. package/dist/modules/stock/color.js +139 -139
  61. package/dist/modules/stock/color.js.map +1 -1
  62. package/dist/modules/stock/composition.d.ts +12 -12
  63. package/dist/modules/stock/composition.js +127 -127
  64. package/dist/modules/stock/composition.js.map +1 -1
  65. package/dist/modules/stock/compositionMaterial.d.ts +13 -13
  66. package/dist/modules/stock/compositionMaterial.js +140 -140
  67. package/dist/modules/stock/compositionMaterial.js.map +1 -1
  68. package/dist/modules/stock/documentHeader.d.ts +39 -39
  69. package/dist/modules/stock/documentHeader.js +321 -321
  70. package/dist/modules/stock/documentHeader.js.map +1 -1
  71. package/dist/modules/stock/documentLine.d.ts +14 -14
  72. package/dist/modules/stock/documentLine.js +123 -123
  73. package/dist/modules/stock/documentLine.js.map +1 -1
  74. package/dist/modules/stock/documentLineAssoc.d.ts +15 -15
  75. package/dist/modules/stock/documentLineAssoc.js +132 -132
  76. package/dist/modules/stock/documentLineAssoc.js.map +1 -1
  77. package/dist/modules/stock/documentLineFolder.d.ts +6 -6
  78. package/dist/modules/stock/documentLineFolder.js +92 -92
  79. package/dist/modules/stock/documentLineFolder.js.map +1 -1
  80. package/dist/modules/stock/documentLineState.d.ts +10 -10
  81. package/dist/modules/stock/documentLineState.js +114 -114
  82. package/dist/modules/stock/documentLineState.js.map +1 -1
  83. package/dist/modules/stock/documentLineStateCriteria.d.ts +20 -20
  84. package/dist/modules/stock/documentLineStateCriteria.js +124 -124
  85. package/dist/modules/stock/documentLineStateCriteria.js.map +1 -1
  86. package/dist/modules/stock/documentSet.d.ts +8 -8
  87. package/dist/modules/stock/documentSet.js +114 -114
  88. package/dist/modules/stock/documentSet.js.map +1 -1
  89. package/dist/modules/stock/documentType.d.ts +11 -11
  90. package/dist/modules/stock/documentType.js +114 -114
  91. package/dist/modules/stock/documentType.js.map +1 -1
  92. package/dist/modules/stock/externalDocumentHeader.d.ts +14 -14
  93. package/dist/modules/stock/externalDocumentHeader.js +125 -125
  94. package/dist/modules/stock/externalDocumentHeader.js.map +1 -1
  95. package/dist/modules/stock/externalDocumentType.d.ts +6 -6
  96. package/dist/modules/stock/externalDocumentType.js +70 -70
  97. package/dist/modules/stock/externalDocumentType.js.map +1 -1
  98. package/dist/modules/stock/index.d.ts +3 -3
  99. package/dist/modules/stock/index.js +8 -8
  100. package/dist/modules/stock/location.d.ts +12 -12
  101. package/dist/modules/stock/location.js +140 -140
  102. package/dist/modules/stock/location.js.map +1 -1
  103. package/dist/modules/stock/maintenance.d.ts +12 -12
  104. package/dist/modules/stock/maintenance.js +140 -140
  105. package/dist/modules/stock/maintenance.js.map +1 -1
  106. package/dist/modules/stock/maintenanceAssoc.d.ts +12 -12
  107. package/dist/modules/stock/maintenanceAssoc.js +127 -127
  108. package/dist/modules/stock/maintenanceAssoc.js.map +1 -1
  109. package/dist/modules/stock/maintenancePreset.d.ts +10 -10
  110. package/dist/modules/stock/maintenancePreset.js +114 -114
  111. package/dist/modules/stock/maintenancePreset.js.map +1 -1
  112. package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -8
  113. package/dist/modules/stock/maintenancePresetAssoc.js +91 -91
  114. package/dist/modules/stock/maintenancePresetAssoc.js.map +1 -1
  115. package/dist/modules/stock/maintenanceType.d.ts +13 -13
  116. package/dist/modules/stock/maintenanceType.js +140 -140
  117. package/dist/modules/stock/maintenanceType.js.map +1 -1
  118. package/dist/modules/stock/moloniRequest.d.ts +5 -5
  119. package/dist/modules/stock/moloniRequest.js +59 -59
  120. package/dist/modules/stock/moloniRequest.js.map +1 -1
  121. package/dist/modules/stock/payment.d.ts +19 -19
  122. package/dist/modules/stock/payment.js +185 -185
  123. package/dist/modules/stock/payment.js.map +1 -1
  124. package/dist/modules/stock/plot.d.ts +29 -29
  125. package/dist/modules/stock/plot.js +245 -245
  126. package/dist/modules/stock/plot.js.map +1 -1
  127. package/dist/modules/stock/preSale.d.ts +11 -11
  128. package/dist/modules/stock/preSale.js +125 -125
  129. package/dist/modules/stock/preSale.js.map +1 -1
  130. package/dist/modules/stock/primaryColor.d.ts +13 -13
  131. package/dist/modules/stock/primaryColor.js +140 -140
  132. package/dist/modules/stock/primaryColor.js.map +1 -1
  133. package/dist/modules/stock/product.d.ts +28 -28
  134. package/dist/modules/stock/product.js +217 -217
  135. package/dist/modules/stock/product.js.map +1 -1
  136. package/dist/modules/stock/productAttribute.d.ts +12 -12
  137. package/dist/modules/stock/productAttribute.js +127 -127
  138. package/dist/modules/stock/productAttribute.js.map +1 -1
  139. package/dist/modules/stock/productCategory.d.ts +13 -13
  140. package/dist/modules/stock/productCategory.js +140 -140
  141. package/dist/modules/stock/productCategory.js.map +1 -1
  142. package/dist/modules/stock/productColor.d.ts +12 -12
  143. package/dist/modules/stock/productColor.js +127 -127
  144. package/dist/modules/stock/productColor.js.map +1 -1
  145. package/dist/modules/stock/productImage.d.ts +14 -14
  146. package/dist/modules/stock/productImage.js +132 -132
  147. package/dist/modules/stock/productImage.js.map +1 -1
  148. package/dist/modules/stock/productName.d.ts +13 -13
  149. package/dist/modules/stock/productName.js +140 -140
  150. package/dist/modules/stock/productName.js.map +1 -1
  151. package/dist/modules/stock/productNamePreset.d.ts +13 -13
  152. package/dist/modules/stock/productNamePreset.js +140 -140
  153. package/dist/modules/stock/productNamePreset.js.map +1 -1
  154. package/dist/modules/stock/productPart.d.ts +14 -14
  155. package/dist/modules/stock/productPart.js +139 -139
  156. package/dist/modules/stock/productPart.js.map +1 -1
  157. package/dist/modules/stock/productSubCategory.d.ts +13 -13
  158. package/dist/modules/stock/productSubCategory.js +139 -139
  159. package/dist/modules/stock/productSubCategory.js.map +1 -1
  160. package/dist/modules/stock/productUse.d.ts +13 -13
  161. package/dist/modules/stock/productUse.js +140 -140
  162. package/dist/modules/stock/productUse.js.map +1 -1
  163. package/dist/modules/stock/productUseAssoc.d.ts +12 -12
  164. package/dist/modules/stock/productUseAssoc.js +126 -126
  165. package/dist/modules/stock/productUseAssoc.js.map +1 -1
  166. package/dist/modules/stock/promotion.d.ts +13 -13
  167. package/dist/modules/stock/promotion.js +140 -140
  168. package/dist/modules/stock/promotion.js.map +1 -1
  169. package/dist/modules/stock/promotionAssoc.d.ts +12 -12
  170. package/dist/modules/stock/promotionAssoc.js +127 -127
  171. package/dist/modules/stock/promotionAssoc.js.map +1 -1
  172. package/dist/modules/stock/providerCurrentAccount.d.ts +5 -5
  173. package/dist/modules/stock/providerCurrentAccount.js +61 -61
  174. package/dist/modules/stock/providerCurrentAccount.js.map +1 -1
  175. package/dist/modules/stock/similarProduct.d.ts +12 -12
  176. package/dist/modules/stock/similarProduct.js +127 -127
  177. package/dist/modules/stock/similarProduct.js.map +1 -1
  178. package/dist/modules/stock/stockMovement.d.ts +8 -8
  179. package/dist/modules/stock/stockMovement.js +75 -75
  180. package/dist/modules/stock/stockMovement.js.map +1 -1
  181. package/dist/modules/stock/topMenu.d.ts +5 -5
  182. package/dist/modules/stock/topMenu.js +61 -61
  183. package/dist/modules/stock/topMenu.js.map +1 -1
  184. package/dist/modules/stock/typeOfInventory.d.ts +13 -13
  185. package/dist/modules/stock/typeOfInventory.js +140 -140
  186. package/dist/modules/stock/typeOfInventory.js.map +1 -1
  187. package/dist/modules/stock/typeOfLocation.d.ts +13 -13
  188. package/dist/modules/stock/typeOfLocation.js +140 -140
  189. package/dist/modules/stock/typeOfLocation.js.map +1 -1
  190. package/dist/modules/stock/unitOfMeasure.d.ts +13 -13
  191. package/dist/modules/stock/unitOfMeasure.js +140 -140
  192. package/dist/modules/stock/unitOfMeasure.js.map +1 -1
  193. package/dist/modules/stock/vatTax.d.ts +13 -13
  194. package/dist/modules/stock/vatTax.js +140 -140
  195. package/dist/modules/stock/vatTax.js.map +1 -1
  196. package/dist/modules/stock/vatTaxZone.d.ts +14 -14
  197. package/dist/modules/stock/vatTaxZone.js +140 -140
  198. package/dist/modules/stock/vatTaxZone.js.map +1 -1
  199. package/dist/modules/stock/vatValidation.d.ts +4 -4
  200. package/dist/modules/stock/vatValidation.js +63 -63
  201. package/dist/modules/stock/vatValidation.js.map +1 -1
  202. package/dist/modules/stock/websiteRequest.d.ts +10 -10
  203. package/dist/modules/stock/websiteRequest.js +97 -97
  204. package/dist/modules/stock/websiteRequest.js.map +1 -1
  205. package/dist/modules/stock/workflow.d.ts +8 -8
  206. package/dist/modules/stock/workflow.js +103 -103
  207. package/dist/modules/stock/workflow.js.map +1 -1
  208. package/dist/modules/user/address.d.ts +12 -12
  209. package/dist/modules/user/address.js +127 -127
  210. package/dist/modules/user/address.js.map +1 -1
  211. package/dist/modules/user/bankData.d.ts +12 -12
  212. package/dist/modules/user/bankData.js +127 -127
  213. package/dist/modules/user/bankData.js.map +1 -1
  214. package/dist/modules/user/clientType.d.ts +12 -12
  215. package/dist/modules/user/clientType.js +127 -127
  216. package/dist/modules/user/clientType.js.map +1 -1
  217. package/dist/modules/user/clients.d.ts +15 -15
  218. package/dist/modules/user/clients.js +140 -140
  219. package/dist/modules/user/clients.js.map +1 -1
  220. package/dist/modules/user/commissioner.d.ts +15 -15
  221. package/dist/modules/user/commissioner.js +140 -140
  222. package/dist/modules/user/commissioner.js.map +1 -1
  223. package/dist/modules/user/contactTypes.d.ts +12 -12
  224. package/dist/modules/user/contactTypes.js +127 -127
  225. package/dist/modules/user/contactTypes.js.map +1 -1
  226. package/dist/modules/user/contacts.d.ts +14 -14
  227. package/dist/modules/user/contacts.js +149 -149
  228. package/dist/modules/user/contacts.js.map +1 -1
  229. package/dist/modules/user/country.d.ts +12 -12
  230. package/dist/modules/user/country.js +140 -140
  231. package/dist/modules/user/country.js.map +1 -1
  232. package/dist/modules/user/deliveryMethods.d.ts +8 -8
  233. package/dist/modules/user/deliveryMethods.js +116 -116
  234. package/dist/modules/user/deliveryMethods.js.map +1 -1
  235. package/dist/modules/user/entityList.d.ts +7 -7
  236. package/dist/modules/user/entityList.js +106 -106
  237. package/dist/modules/user/entityList.js.map +1 -1
  238. package/dist/modules/user/favorites.d.ts +7 -7
  239. package/dist/modules/user/favorites.js +92 -92
  240. package/dist/modules/user/favorites.js.map +1 -1
  241. package/dist/modules/user/groupPermission.d.ts +7 -7
  242. package/dist/modules/user/groupPermission.js +94 -94
  243. package/dist/modules/user/groupPermission.js.map +1 -1
  244. package/dist/modules/user/index.d.ts +3 -3
  245. package/dist/modules/user/index.js +8 -8
  246. package/dist/modules/user/language.d.ts +12 -12
  247. package/dist/modules/user/language.js +127 -127
  248. package/dist/modules/user/language.js.map +1 -1
  249. package/dist/modules/user/logout.d.ts +2 -2
  250. package/dist/modules/user/logout.js +58 -58
  251. package/dist/modules/user/logout.js.map +1 -1
  252. package/dist/modules/user/maturityDates.d.ts +8 -8
  253. package/dist/modules/user/maturityDates.js +116 -116
  254. package/dist/modules/user/maturityDates.js.map +1 -1
  255. package/dist/modules/user/password.d.ts +5 -5
  256. package/dist/modules/user/password.js +68 -68
  257. package/dist/modules/user/password.js.map +1 -1
  258. package/dist/modules/user/paymentCondition.d.ts +11 -11
  259. package/dist/modules/user/paymentCondition.js +127 -127
  260. package/dist/modules/user/paymentCondition.js.map +1 -1
  261. package/dist/modules/user/paymentMethods.d.ts +8 -8
  262. package/dist/modules/user/paymentMethods.js +116 -116
  263. package/dist/modules/user/paymentMethods.js.map +1 -1
  264. package/dist/modules/user/permission.d.ts +7 -7
  265. package/dist/modules/user/permission.js +94 -94
  266. package/dist/modules/user/permission.js.map +1 -1
  267. package/dist/modules/user/provider.d.ts +15 -15
  268. package/dist/modules/user/provider.js +140 -140
  269. package/dist/modules/user/provider.js.map +1 -1
  270. package/dist/modules/user/providerType.d.ts +12 -12
  271. package/dist/modules/user/providerType.js +127 -127
  272. package/dist/modules/user/providerType.js.map +1 -1
  273. package/dist/modules/user/purchaseCondition.d.ts +12 -12
  274. package/dist/modules/user/purchaseCondition.js +127 -127
  275. package/dist/modules/user/purchaseCondition.js.map +1 -1
  276. package/dist/modules/user/reasonForExemption.d.ts +12 -12
  277. package/dist/modules/user/reasonForExemption.js +127 -127
  278. package/dist/modules/user/reasonForExemption.js.map +1 -1
  279. package/dist/modules/user/refreshToken.d.ts +5 -5
  280. package/dist/modules/user/refreshToken.js +59 -59
  281. package/dist/modules/user/refreshToken.js.map +1 -1
  282. package/dist/modules/user/segmentsArea.d.ts +12 -12
  283. package/dist/modules/user/segmentsArea.js +127 -127
  284. package/dist/modules/user/segmentsArea.js.map +1 -1
  285. package/dist/modules/user/sessions.d.ts +5 -5
  286. package/dist/modules/user/sessions.js +59 -59
  287. package/dist/modules/user/sessions.js.map +1 -1
  288. package/dist/modules/user/shippings.d.ts +11 -11
  289. package/dist/modules/user/shippings.js +127 -127
  290. package/dist/modules/user/shippings.js.map +1 -1
  291. package/dist/modules/user/socialMedia.d.ts +11 -11
  292. package/dist/modules/user/socialMedia.js +127 -127
  293. package/dist/modules/user/socialMedia.js.map +1 -1
  294. package/dist/modules/user/storeOperator.d.ts +16 -16
  295. package/dist/modules/user/storeOperator.js +151 -151
  296. package/dist/modules/user/storeOperator.js.map +1 -1
  297. package/dist/modules/user/swift.d.ts +12 -12
  298. package/dist/modules/user/swift.js +127 -127
  299. package/dist/modules/user/swift.js.map +1 -1
  300. package/dist/modules/user/tenant.d.ts +6 -6
  301. package/dist/modules/user/tenant.js +92 -92
  302. package/dist/modules/user/tenant.js.map +1 -1
  303. package/dist/modules/user/user.d.ts +16 -16
  304. package/dist/modules/user/user.js +138 -138
  305. package/dist/modules/user/user.js.map +1 -1
  306. package/dist/modules/user/userPermission.d.ts +7 -7
  307. package/dist/modules/user/userPermission.js +83 -83
  308. package/dist/modules/user/userPermission.js.map +1 -1
  309. package/dist/modules/user/userPositions.d.ts +12 -12
  310. package/dist/modules/user/userPositions.js +127 -127
  311. package/dist/modules/user/userPositions.js.map +1 -1
  312. package/dist/modules/user/userToken.d.ts +9 -9
  313. package/dist/modules/user/userToken.js +116 -116
  314. package/dist/modules/user/userToken.js.map +1 -1
  315. package/dist/modules/user/vehicles.d.ts +6 -6
  316. package/dist/modules/user/vehicles.js +92 -92
  317. package/dist/modules/user/vehicles.js.map +1 -1
  318. package/dist/modules/user/zipCode.d.ts +6 -6
  319. package/dist/modules/user/zipCode.js +69 -69
  320. package/dist/modules/user/zipCode.js.map +1 -1
  321. package/dist/shared/client.d.ts +2 -2
  322. package/dist/shared/client.js +9 -9
  323. package/dist/shared/client.js.map +1 -1
  324. package/dist/tsconfig.tsbuildinfo +1 -1
  325. package/package.json +53 -53
@@ -1 +1 @@
1
- {"version":3,"file":"observationType.js","sourceRoot":"","sources":["../../../src/modules/integration/observationType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAsC;AACtC,sBAAiD;AAapC,QAAA,KAAK,GAAG,UAAG,kBAAe,SAAG,cAAW,sBAAmB,CA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E,CAAE,CAAC,EAAA;;oBAArD,QAAQ,GAAG,SAA0C;oBAC3D,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;CACF,CAAC;AAEa,QAAA,YAAY,GACzB,UAAU,eADiB,QAAA,YAAY,GACvC,UAAU,eAD+B,QAAA,MAAM,GAC/C,UAAU,SADuC,QAAA,MAAM,GACvD,UAAU,SAD+C,QAAA,SAAS,GAClE,UAAU,WAAC"}
@@ -1,10 +1,10 @@
1
- import { shared, Tasks as Entity } from '@nomalism-com/types';
2
- export import IFindByQueryRequest = Entity.IFindByQueryRequest;
3
- export import IFindByQueryResponse = Entity.IFindByQueryResponse;
4
- export import IBasicSearchRequest = Entity.IBasicSearchRequest;
5
- export import IBasicSearchResponse = Entity.IBasicSearchResponse;
6
- export import IUpdateRequest = Entity.IUpdateRequest;
7
- export import IEntity = Entity.Entity;
8
- export import ICreateRequest = Entity.ICreateRequest;
9
- export declare const route: string;
10
- export declare const findByQuery: (data: Entity.IFindByQueryRequest) => Promise<Entity.IFindByQueryResponse[]>, basicSearch: (data: Entity.IBasicSearchRequest) => Promise<shared.IPaginationResponse<Entity.IBasicSearchResponse>>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindByQueryResponse | null>, create: (task: Entity.ICreateRequest, parentTaskId?: string | undefined) => Promise<Entity.IFindByQueryResponse>;
1
+ import { shared, Tasks as Entity } from '@nomalism-com/types';
2
+ export import IFindByQueryRequest = Entity.IFindByQueryRequest;
3
+ export import IFindByQueryResponse = Entity.IFindByQueryResponse;
4
+ export import IBasicSearchRequest = Entity.IBasicSearchRequest;
5
+ export import IBasicSearchResponse = Entity.IBasicSearchResponse;
6
+ export import IUpdateRequest = Entity.IUpdateRequest;
7
+ export import IEntity = Entity.Entity;
8
+ export import ICreateRequest = Entity.ICreateRequest;
9
+ export declare const route: string;
10
+ export declare const findByQuery: (data: Entity.IFindByQueryRequest) => Promise<Entity.IFindByQueryResponse[]>, basicSearch: (data: Entity.IBasicSearchRequest) => Promise<shared.IPaginationResponse<Entity.IBasicSearchResponse>>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindByQueryResponse | null>, create: (task: Entity.ICreateRequest, parentTaskId?: string | undefined) => Promise<Entity.IFindByQueryResponse>;
@@ -1,114 +1,114 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
29
- 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;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __importDefault = (this && this.__importDefault) || function (mod) {
50
- return (mod && mod.__esModule) ? mod : { "default": mod };
51
- };
52
- exports.__esModule = true;
53
- exports.create = exports.update = exports.basicSearch = exports.findByQuery = exports.route = void 0;
54
- var client_1 = __importDefault(require("../../shared/client"));
55
- var _1 = require(".");
56
- exports.route = "".concat(_1.serviceHostname).concat(_1.servicePath, "task/");
57
- var repository = {
58
- findByQuery: function (params) { return __awaiter(void 0, void 0, void 0, function () {
59
- var response;
60
- return __generator(this, function (_a) {
61
- switch (_a.label) {
62
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route), { params: params })];
63
- case 1:
64
- response = _a.sent();
65
- return [2 /*return*/, response.data.map(function (task) {
66
- return __assign(__assign({}, task), { children: task.children.map(function (child) {
67
- return __assign(__assign({}, child), { parent_id: task.id });
68
- }) });
69
- })];
70
- }
71
- });
72
- }); },
73
- basicSearch: function (params) { return __awaiter(void 0, void 0, void 0, function () {
74
- var response;
75
- return __generator(this, function (_a) {
76
- switch (_a.label) {
77
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route, "basic_search"), {
78
- params: params
79
- })];
80
- case 1:
81
- response = _a.sent();
82
- return [2 /*return*/, response.data];
83
- }
84
- });
85
- }); },
86
- update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
87
- var response;
88
- return __generator(this, function (_a) {
89
- switch (_a.label) {
90
- case 0: return [4 /*yield*/, client_1["default"].put("".concat(exports.route).concat(selector.id), body)];
91
- case 1:
92
- response = _a.sent();
93
- return [2 /*return*/, response.data];
94
- }
95
- });
96
- }); },
97
- create: function (body, reply_to) { return __awaiter(void 0, void 0, void 0, function () {
98
- var response;
99
- return __generator(this, function (_a) {
100
- switch (_a.label) {
101
- case 0: return [4 /*yield*/, client_1["default"].post("".concat(exports.route), body, {
102
- params: {
103
- reply_to: reply_to
104
- }
105
- })];
106
- case 1:
107
- response = _a.sent();
108
- return [2 /*return*/, response.data];
109
- }
110
- });
111
- }); }
112
- };
113
- exports.findByQuery = repository.findByQuery, exports.basicSearch = repository.basicSearch, exports.update = repository.update, exports.create = repository.create;
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (_) try {
29
+ 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;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ var __importDefault = (this && this.__importDefault) || function (mod) {
50
+ return (mod && mod.__esModule) ? mod : { "default": mod };
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.create = exports.update = exports.basicSearch = exports.findByQuery = exports.route = void 0;
54
+ var client_1 = __importDefault(require("../../shared/client"));
55
+ var _1 = require(".");
56
+ exports.route = "".concat(_1.serviceHostname).concat(_1.servicePath, "task/");
57
+ var repository = {
58
+ findByQuery: function (params) { return __awaiter(void 0, void 0, void 0, function () {
59
+ var response;
60
+ return __generator(this, function (_a) {
61
+ switch (_a.label) {
62
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route), { params: params })];
63
+ case 1:
64
+ response = _a.sent();
65
+ return [2 /*return*/, response.data.map(function (task) {
66
+ return __assign(__assign({}, task), { children: task.children.map(function (child) {
67
+ return __assign(__assign({}, child), { parent_id: task.id });
68
+ }) });
69
+ })];
70
+ }
71
+ });
72
+ }); },
73
+ basicSearch: function (params) { return __awaiter(void 0, void 0, void 0, function () {
74
+ var response;
75
+ return __generator(this, function (_a) {
76
+ switch (_a.label) {
77
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route, "basic_search"), {
78
+ params: params,
79
+ })];
80
+ case 1:
81
+ response = _a.sent();
82
+ return [2 /*return*/, response.data];
83
+ }
84
+ });
85
+ }); },
86
+ update: function (selector, body) { return __awaiter(void 0, void 0, void 0, function () {
87
+ var response;
88
+ return __generator(this, function (_a) {
89
+ switch (_a.label) {
90
+ case 0: return [4 /*yield*/, client_1.default.put("".concat(exports.route).concat(selector.id), body)];
91
+ case 1:
92
+ response = _a.sent();
93
+ return [2 /*return*/, response.data];
94
+ }
95
+ });
96
+ }); },
97
+ create: function (body, reply_to) { return __awaiter(void 0, void 0, void 0, function () {
98
+ var response;
99
+ return __generator(this, function (_a) {
100
+ switch (_a.label) {
101
+ case 0: return [4 /*yield*/, client_1.default.post("".concat(exports.route), body, {
102
+ params: {
103
+ reply_to: reply_to,
104
+ },
105
+ })];
106
+ case 1:
107
+ response = _a.sent();
108
+ return [2 /*return*/, response.data];
109
+ }
110
+ });
111
+ }); },
112
+ };
113
+ exports.findByQuery = repository.findByQuery, exports.basicSearch = repository.basicSearch, exports.update = repository.update, exports.create = repository.create;
114
114
  //# sourceMappingURL=task.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task.js","sourceRoot":"","sources":["../../../src/modules/integration/task.ts"],"names":[],"mappings":";;;;;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EAAE,CAAE,EAAE,IAAI,CAAC,EAAA;;oBAAxD,QAAQ,GAAG,SAA6C;oBAC9D,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;IACD,MAAM,EAAE,UACN,IAAoB,EACpB,QAAiB;;;;wBAEA,qBAAM,gBAAG,CAAC,IAAI,CAAC,UAAG,aAAK,CAAE,EAAE,IAAI,EAAE;wBAChD,MAAM,EAAE;4BACN,QAAQ,UAAA;yBACT;qBACF,CAAC,EAAA;;oBAJI,QAAQ,GAAG,SAIf;oBACF,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;CACF,CAAC;AAEa,QAAA,WAAW,GAAkC,UAAU,cAA1C,QAAA,WAAW,GAAqB,UAAU,cAA7B,QAAA,MAAM,GAAa,UAAU,SAArB,QAAA,MAAM,GAAK,UAAU,QAAC"}
@@ -1,7 +1,7 @@
1
- import { TaskAttachment as Entity } from '@nomalism-com/types';
2
- export import IFindRequest = Entity.IFindRequest;
3
- export import IFindResponse = Entity.IFindResponse;
4
- export import ICreateRequest = Entity.ICreateRequest;
5
- export import IEntity = Entity.Entity;
6
- export declare const route: string;
7
- export declare const findByTaskId: (params: Entity.IFindRequest) => Promise<Entity.IFindResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskAttachment>;
1
+ import { TaskAttachment as Entity } from '@nomalism-com/types';
2
+ export import IFindRequest = Entity.IFindRequest;
3
+ export import IFindResponse = Entity.IFindResponse;
4
+ export import ICreateRequest = Entity.ICreateRequest;
5
+ export import IEntity = Entity.Entity;
6
+ export declare const route: string;
7
+ export declare const findByTaskId: (params: Entity.IFindRequest) => Promise<Entity.IFindResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskAttachment>;
@@ -1,73 +1,73 @@
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.create = exports.findByTaskId = exports.route = void 0;
43
- var client_1 = __importDefault(require("../../shared/client"));
44
- var _1 = require(".");
45
- exports.route = "".concat(_1.serviceHostname).concat(_1.servicePath, "task_attachment/");
46
- var repository = {
47
- findByTaskId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
48
- var response;
49
- return __generator(this, function (_a) {
50
- switch (_a.label) {
51
- case 0: return [4 /*yield*/, client_1["default"].get("".concat(exports.route), {
52
- params: params
53
- })];
54
- case 1:
55
- response = _a.sent();
56
- return [2 /*return*/, response.data];
57
- }
58
- });
59
- }); },
60
- create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
61
- var response;
62
- return __generator(this, function (_a) {
63
- switch (_a.label) {
64
- case 0: return [4 /*yield*/, client_1["default"].post("".concat(exports.route), body)];
65
- case 1:
66
- response = _a.sent();
67
- return [2 /*return*/, response.data];
68
- }
69
- });
70
- }); }
71
- };
72
- exports.findByTaskId = repository.findByTaskId, exports.create = repository.create;
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.create = exports.findByTaskId = exports.route = void 0;
43
+ var client_1 = __importDefault(require("../../shared/client"));
44
+ var _1 = require(".");
45
+ exports.route = "".concat(_1.serviceHostname).concat(_1.servicePath, "task_attachment/");
46
+ var repository = {
47
+ findByTaskId: function (params) { return __awaiter(void 0, void 0, void 0, function () {
48
+ var response;
49
+ return __generator(this, function (_a) {
50
+ switch (_a.label) {
51
+ case 0: return [4 /*yield*/, client_1.default.get("".concat(exports.route), {
52
+ params: params,
53
+ })];
54
+ case 1:
55
+ response = _a.sent();
56
+ return [2 /*return*/, response.data];
57
+ }
58
+ });
59
+ }); },
60
+ create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
61
+ var response;
62
+ return __generator(this, function (_a) {
63
+ switch (_a.label) {
64
+ case 0: return [4 /*yield*/, client_1.default.post("".concat(exports.route), body)];
65
+ case 1:
66
+ response = _a.sent();
67
+ return [2 /*return*/, response.data];
68
+ }
69
+ });
70
+ }); },
71
+ };
72
+ exports.findByTaskId = repository.findByTaskId, exports.create = repository.create;
73
73
  //# sourceMappingURL=taskAttachment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taskAttachment.js","sourceRoot":"","sources":["../../../src/modules/integration/taskAttachment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAsC;AACtC,sBAAiD;AAQpC,QAAA,KAAK,GAAG,UAAG,kBAAe,SAAG,cAAW,qBAAkB,CAAC;AAExE,IAAM,UAAU,GAAyC;IACvD,YAAY,EAAE,UAAO,MAAoB;;;;wBACtB,qBAAM,mBAAG,CAAC,GAAG,CAAC,UAAG,aAAK,CAAE,EAAE;wBACzC,MAAM,QAAA;qBACP,CAAC,EAAA;;oBAFI,QAAQ,GAAG,SAEf;oBACF,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;IACD,MAAM,EAAE,UAAO,IAAoB;;;;wBAChB,qBAAM,mBAAG,CAAC,IAAI,CAAC,UAAG,aAAK,CAAE,EAAE,IAAI,CAAC,EAAA;;oBAA3C,QAAQ,GAAG,SAAgC;oBACjD,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;CACF,CAAC;AAEa,QAAA,YAAY,GAAa,UAAU,eAArB,QAAA,MAAM,GAAK,UAAU,QAAC"}
1
+ {"version":3,"file":"taskAttachment.js","sourceRoot":"","sources":["../../../src/modules/integration/taskAttachment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAsC;AACtC,sBAAiD;AAQpC,QAAA,KAAK,GAAG,UAAG,kBAAe,SAAG,cAAW,qBAAkB,CAAC;AAExE,IAAM,UAAU,GAAyC;IACvD,YAAY,EAAE,UAAO,MAAoB;;;;wBACtB,qBAAM,gBAAG,CAAC,GAAG,CAAC,UAAG,aAAK,CAAE,EAAE;wBACzC,MAAM,QAAA;qBACP,CAAC,EAAA;;oBAFI,QAAQ,GAAG,SAEf;oBACF,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;IACD,MAAM,EAAE,UAAO,IAAoB;;;;wBAChB,qBAAM,gBAAG,CAAC,IAAI,CAAC,UAAG,aAAK,CAAE,EAAE,IAAI,CAAC,EAAA;;oBAA3C,QAAQ,GAAG,SAAgC;oBACjD,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB;CACF,CAAC;AAEa,QAAA,YAAY,GAAa,UAAU,eAArB,QAAA,MAAM,GAAK,UAAU,QAAC"}
@@ -1,8 +1,8 @@
1
- import { TasksGroup as Entity, shared } from '@nomalism-com/types';
2
- export import IFindDetailedResponse = Entity.IFindDetailedResponse;
3
- export import IFindAndCountResponse = Entity.IFindAndCountResponse;
4
- export import ICreateRequest = Entity.ICreateRequest;
5
- export import IUpdateRequest = Entity.IUpdateRequest;
6
- export import IEntity = Entity.Entity;
7
- export declare const route: string;
8
- export declare const findDetailed: () => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup[]>, findAndCount: () => Promise<Entity.IFindAndCountResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup | null>, deleteOne: (selector: shared.IFindByIdRequest, user_id?: string | undefined) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup | null>;
1
+ import { TasksGroup as Entity, shared } from '@nomalism-com/types';
2
+ export import IFindDetailedResponse = Entity.IFindDetailedResponse;
3
+ export import IFindAndCountResponse = Entity.IFindAndCountResponse;
4
+ export import ICreateRequest = Entity.ICreateRequest;
5
+ export import IUpdateRequest = Entity.IUpdateRequest;
6
+ export import IEntity = Entity.Entity;
7
+ export declare const route: string;
8
+ export declare const findDetailed: () => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup[]>, findAndCount: () => Promise<Entity.IFindAndCountResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup | null>, deleteOne: (selector: shared.IFindByIdRequest, user_id?: string | undefined) => Promise<import("@nomalism-com/types/dist/shared/entities").TaskGroup | null>;