@nomalism-com/types 0.17.56 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/dist/index.d.ts +1 -87
  2. package/dist/index.js +6 -179
  3. package/dist/index.min.js +1 -0
  4. package/dist/modules/stock/unitOfMeasure/interface.d.ts +4 -5
  5. package/dist/modules/supply/documentHeader/interfaces.d.ts +1 -0
  6. package/package.json +10 -11
  7. package/dist/modules/document/materialEntrance/tests.d.ts +0 -0
  8. package/dist/modules/document/materialEntrance/tests.js +0 -1
  9. package/dist/modules/document/purchase/tests.d.ts +0 -0
  10. package/dist/modules/document/purchase/tests.js +0 -1
  11. package/dist/modules/documentManagement/multimedia/oas.schema.d.ts +0 -108
  12. package/dist/modules/documentManagement/multimedia/oas.schema.js +0 -71
  13. package/dist/modules/documentManagement/multimedia/tests.d.ts +0 -2
  14. package/dist/modules/documentManagement/multimedia/tests.js +0 -53
  15. package/dist/modules/integration/dynamicData/interfaces.d.ts +0 -29
  16. package/dist/modules/integration/dynamicData/interfaces.js +0 -6
  17. package/dist/modules/integration/dynamicData/route.schema.d.ts +0 -4
  18. package/dist/modules/integration/dynamicData/route.schema.js +0 -25
  19. package/dist/modules/integration/field/oas.schema.d.ts +0 -224
  20. package/dist/modules/integration/field/oas.schema.js +0 -135
  21. package/dist/modules/integration/field/tests.d.ts +0 -3
  22. package/dist/modules/integration/field/tests.js +0 -57
  23. package/dist/modules/integration/fieldGroup/oas.schema.d.ts +0 -241
  24. package/dist/modules/integration/fieldGroup/oas.schema.js +0 -155
  25. package/dist/modules/integration/fieldGroup/tests.d.ts +0 -6
  26. package/dist/modules/integration/fieldGroup/tests.js +0 -66
  27. package/dist/modules/integration/history/oas.schema.d.ts +0 -399
  28. package/dist/modules/integration/history/oas.schema.js +0 -141
  29. package/dist/modules/integration/history/tests.d.ts +0 -0
  30. package/dist/modules/integration/history/tests.js +0 -1
  31. package/dist/modules/integration/observation/tests.d.ts +0 -8
  32. package/dist/modules/integration/observation/tests.js +0 -71
  33. package/dist/modules/integration/observationType/responseCreate.schema.d.ts +0 -5
  34. package/dist/modules/integration/observationType/responseCreate.schema.js +0 -47
  35. package/dist/modules/integration/observationType/tests.d.ts +0 -5
  36. package/dist/modules/integration/observationType/tests.js +0 -57
  37. package/dist/modules/integration/taskAttachment/interfaces.d.ts +0 -27
  38. package/dist/modules/integration/taskAttachment/interfaces.js +0 -6
  39. package/dist/modules/integration/taskAttachment/oas.schema.d.ts +0 -238
  40. package/dist/modules/integration/taskAttachment/oas.schema.js +0 -144
  41. package/dist/modules/integration/taskAttachment/route.schema.d.ts +0 -7
  42. package/dist/modules/integration/taskAttachment/route.schema.js +0 -21
  43. package/dist/modules/integration/taskAttachment/tests.d.ts +0 -4
  44. package/dist/modules/integration/taskAttachment/tests.js +0 -61
  45. package/dist/modules/integration/taskNote/interface.d.ts +0 -29
  46. package/dist/modules/integration/taskNote/interface.js +0 -6
  47. package/dist/modules/integration/taskNote/oas.schema.d.ts +0 -238
  48. package/dist/modules/integration/taskNote/oas.schema.js +0 -144
  49. package/dist/modules/integration/taskNote/route.schema.d.ts +0 -9
  50. package/dist/modules/integration/taskNote/route.schema.js +0 -24
  51. package/dist/modules/integration/taskNote/tests.d.ts +0 -4
  52. package/dist/modules/integration/taskNote/tests.js +0 -60
  53. package/dist/modules/integration/tasks/interfaces.d.ts +0 -68
  54. package/dist/modules/integration/tasks/interfaces.js +0 -6
  55. package/dist/modules/integration/tasks/oas.schema.d.ts +0 -618
  56. package/dist/modules/integration/tasks/oas.schema.js +0 -256
  57. package/dist/modules/integration/tasks/route.schema.d.ts +0 -14
  58. package/dist/modules/integration/tasks/route.schema.js +0 -54
  59. package/dist/modules/integration/tasks/tests.d.ts +0 -4
  60. package/dist/modules/integration/tasks/tests.js +0 -94
  61. package/dist/modules/integration/tasksGroup/interfaces.d.ts +0 -30
  62. package/dist/modules/integration/tasksGroup/interfaces.js +0 -6
  63. package/dist/modules/integration/tasksGroup/oas.schema.d.ts +0 -270
  64. package/dist/modules/integration/tasksGroup/oas.schema.js +0 -146
  65. package/dist/modules/integration/tasksGroup/route.schema.d.ts +0 -3
  66. package/dist/modules/integration/tasksGroup/route.schema.js +0 -16
  67. package/dist/modules/integration/tasksGroup/tests.d.ts +0 -5
  68. package/dist/modules/integration/tasksGroup/tests.js +0 -68
  69. package/dist/modules/stock/attribute/tests.d.ts +0 -10
  70. package/dist/modules/stock/attribute/tests.js +0 -102
  71. package/dist/modules/stock/attributeValue/tests.d.ts +0 -9
  72. package/dist/modules/stock/attributeValue/tests.js +0 -90
  73. package/dist/modules/stock/color/tests.d.ts +0 -9
  74. package/dist/modules/stock/color/tests.js +0 -90
  75. package/dist/modules/stock/composition/tests.d.ts +0 -9
  76. package/dist/modules/stock/composition/tests.js +0 -94
  77. package/dist/modules/stock/compositionMaterial/oas.schema.d.ts +0 -406
  78. package/dist/modules/stock/compositionMaterial/oas.schema.js +0 -268
  79. package/dist/modules/stock/compositionMaterial/tests.d.ts +0 -6
  80. package/dist/modules/stock/compositionMaterial/tests.js +0 -87
  81. package/dist/modules/stock/location/oas.schema.d.ts +0 -406
  82. package/dist/modules/stock/location/oas.schema.js +0 -268
  83. package/dist/modules/stock/location/tests.d.ts +0 -6
  84. package/dist/modules/stock/location/tests.js +0 -149
  85. package/dist/modules/stock/maintenance/tests.d.ts +0 -9
  86. package/dist/modules/stock/maintenance/tests.js +0 -96
  87. package/dist/modules/stock/maintenanceAssoc/tests.d.ts +0 -9
  88. package/dist/modules/stock/maintenanceAssoc/tests.js +0 -90
  89. package/dist/modules/stock/maintenancePreset/tests.d.ts +0 -3
  90. package/dist/modules/stock/maintenancePreset/tests.js +0 -57
  91. package/dist/modules/stock/maintenanceType/oas.schema.d.ts +0 -406
  92. package/dist/modules/stock/maintenanceType/oas.schema.js +0 -268
  93. package/dist/modules/stock/maintenanceType/tests.d.ts +0 -6
  94. package/dist/modules/stock/maintenanceType/tests.js +0 -87
  95. package/dist/modules/stock/primaryColor/oas.schema.d.ts +0 -406
  96. package/dist/modules/stock/primaryColor/oas.schema.js +0 -268
  97. package/dist/modules/stock/primaryColor/tests.d.ts +0 -6
  98. package/dist/modules/stock/primaryColor/tests.js +0 -87
  99. package/dist/modules/stock/product/tests.d.ts +0 -6
  100. package/dist/modules/stock/product/tests.js +0 -253
  101. package/dist/modules/stock/productAttribute/tests.d.ts +0 -9
  102. package/dist/modules/stock/productAttribute/tests.js +0 -94
  103. package/dist/modules/stock/productCategory/tests.d.ts +0 -10
  104. package/dist/modules/stock/productCategory/tests.js +0 -84
  105. package/dist/modules/stock/productColor/tests.d.ts +0 -9
  106. package/dist/modules/stock/productColor/tests.js +0 -94
  107. package/dist/modules/stock/productImage/tests.d.ts +0 -9
  108. package/dist/modules/stock/productImage/tests.js +0 -92
  109. package/dist/modules/stock/productName/tests.d.ts +0 -9
  110. package/dist/modules/stock/productName/tests.js +0 -84
  111. package/dist/modules/stock/productNamePreset/oas.schema.d.ts +0 -406
  112. package/dist/modules/stock/productNamePreset/oas.schema.js +0 -268
  113. package/dist/modules/stock/productNamePreset/tests.d.ts +0 -6
  114. package/dist/modules/stock/productNamePreset/tests.js +0 -87
  115. package/dist/modules/stock/productPart/tests.d.ts +0 -9
  116. package/dist/modules/stock/productPart/tests.js +0 -92
  117. package/dist/modules/stock/productSubCategory/responseCreate.schema.d.ts +0 -2
  118. package/dist/modules/stock/productSubCategory/responseCreate.schema.js +0 -50
  119. package/dist/modules/stock/productSubCategory/tests.d.ts +0 -9
  120. package/dist/modules/stock/productSubCategory/tests.js +0 -86
  121. package/dist/modules/stock/productUse/oas.schema.d.ts +0 -397
  122. package/dist/modules/stock/productUse/oas.schema.js +0 -268
  123. package/dist/modules/stock/productUse/tests.d.ts +0 -6
  124. package/dist/modules/stock/productUse/tests.js +0 -91
  125. package/dist/modules/stock/productUseAssoc/tests.d.ts +0 -9
  126. package/dist/modules/stock/productUseAssoc/tests.js +0 -90
  127. package/dist/modules/stock/promotion/tests.d.ts +0 -9
  128. package/dist/modules/stock/promotion/tests.js +0 -144
  129. package/dist/modules/stock/promotionAssoc/tests.d.ts +0 -9
  130. package/dist/modules/stock/promotionAssoc/tests.js +0 -100
  131. package/dist/modules/stock/similarProduct/tests.d.ts +0 -9
  132. package/dist/modules/stock/similarProduct/tests.js +0 -94
  133. package/dist/modules/stock/typeOfInventory/oas.schema.d.ts +0 -406
  134. package/dist/modules/stock/typeOfInventory/oas.schema.js +0 -268
  135. package/dist/modules/stock/typeOfInventory/tests.d.ts +0 -9
  136. package/dist/modules/stock/typeOfInventory/tests.js +0 -91
  137. package/dist/modules/stock/typeOfLocation/oas.schema.d.ts +0 -406
  138. package/dist/modules/stock/typeOfLocation/oas.schema.js +0 -268
  139. package/dist/modules/stock/typeOfLocation/tests.d.ts +0 -6
  140. package/dist/modules/stock/typeOfLocation/tests.js +0 -87
  141. package/dist/modules/stock/unitOfMeasure/oas.schema.d.ts +0 -406
  142. package/dist/modules/stock/unitOfMeasure/oas.schema.js +0 -269
  143. package/dist/modules/stock/unitOfMeasure/responseCreate.schema.d.ts +0 -2
  144. package/dist/modules/stock/unitOfMeasure/responseCreate.schema.js +0 -55
  145. package/dist/modules/stock/unitOfMeasure/tests.d.ts +0 -9
  146. package/dist/modules/stock/unitOfMeasure/tests.js +0 -99
  147. package/dist/modules/stock/vatTax/oas.schema.d.ts +0 -406
  148. package/dist/modules/stock/vatTax/oas.schema.js +0 -268
  149. package/dist/modules/stock/vatTax/tests.d.ts +0 -9
  150. package/dist/modules/stock/vatTax/tests.js +0 -91
  151. package/dist/modules/stock/vatTaxZone/tests.d.ts +0 -10
  152. package/dist/modules/stock/vatTaxZone/tests.js +0 -102
  153. package/dist/modules/supply/counter/tests.d.ts +0 -0
  154. package/dist/modules/supply/counter/tests.js +0 -1
  155. package/dist/modules/supply/documentLineAssoc/tests.d.ts +0 -5
  156. package/dist/modules/supply/documentLineAssoc/tests.js +0 -57
  157. package/dist/modules/supply/documentLineFolder/tests.d.ts +0 -0
  158. package/dist/modules/supply/documentLineFolder/tests.js +0 -1
  159. package/dist/modules/supply/documentType/tests.d.ts +0 -0
  160. package/dist/modules/supply/documentType/tests.js +0 -1
  161. package/dist/modules/supply/externalDocumentHeader/tests.d.ts +0 -5
  162. package/dist/modules/supply/externalDocumentHeader/tests.js +0 -103
  163. package/dist/modules/supply/payment/tests.d.ts +0 -8
  164. package/dist/modules/supply/payment/tests.js +0 -102
  165. package/dist/modules/user/bankData/oas.schema.d.ts +0 -406
  166. package/dist/modules/user/bankData/oas.schema.js +0 -268
  167. package/dist/modules/user/bankData/tests.d.ts +0 -6
  168. package/dist/modules/user/bankData/tests.js +0 -116
  169. package/dist/modules/user/clientType/oas.schema.d.ts +0 -350
  170. package/dist/modules/user/clientType/oas.schema.js +0 -237
  171. package/dist/modules/user/clientType/responseCreate.schema.d.ts +0 -2
  172. package/dist/modules/user/clientType/responseCreate.schema.js +0 -48
  173. package/dist/modules/user/clientType/tests.d.ts +0 -6
  174. package/dist/modules/user/clientType/tests.js +0 -71
  175. package/dist/modules/user/commissioner/oas.schema.d.ts +0 -0
  176. package/dist/modules/user/commissioner/oas.schema.js +0 -1
  177. package/dist/modules/user/country/oas.schema.d.ts +0 -350
  178. package/dist/modules/user/country/oas.schema.js +0 -237
  179. package/dist/modules/user/country/responseCreate.schema.d.ts +0 -2
  180. package/dist/modules/user/country/responseCreate.schema.js +0 -50
  181. package/dist/modules/user/country/tests.d.ts +0 -9
  182. package/dist/modules/user/country/tests.js +0 -75
  183. package/dist/modules/user/deliveryMethods/tests.d.ts +0 -2
  184. package/dist/modules/user/deliveryMethods/tests.js +0 -48
  185. package/dist/modules/user/entityList/interface.d.ts +0 -32
  186. package/dist/modules/user/entityList/interface.js +0 -14
  187. package/dist/modules/user/entityList/oas.schema.d.ts +0 -274
  188. package/dist/modules/user/entityList/oas.schema.js +0 -185
  189. package/dist/modules/user/entityList/route.schema.d.ts +0 -3
  190. package/dist/modules/user/entityList/route.schema.js +0 -30
  191. package/dist/modules/user/entityList/tests.d.ts +0 -3
  192. package/dist/modules/user/entityList/tests.js +0 -69
  193. package/dist/modules/user/favorites/oas.schema.d.ts +0 -112
  194. package/dist/modules/user/favorites/oas.schema.js +0 -103
  195. package/dist/modules/user/favorites/tests.d.ts +0 -2
  196. package/dist/modules/user/favorites/tests.js +0 -48
  197. package/dist/modules/user/groupPermissions/oas.schema.d.ts +0 -56
  198. package/dist/modules/user/groupPermissions/oas.schema.js +0 -73
  199. package/dist/modules/user/groupPermissions/tests.d.ts +0 -2
  200. package/dist/modules/user/groupPermissions/tests.js +0 -49
  201. package/dist/modules/user/language/oas.schema.d.ts +0 -350
  202. package/dist/modules/user/language/oas.schema.js +0 -237
  203. package/dist/modules/user/language/responseCreate.schema.d.ts +0 -2
  204. package/dist/modules/user/language/responseCreate.schema.js +0 -49
  205. package/dist/modules/user/language/tests.d.ts +0 -6
  206. package/dist/modules/user/language/tests.js +0 -73
  207. package/dist/modules/user/maturityDates/tests.d.ts +0 -2
  208. package/dist/modules/user/maturityDates/tests.js +0 -49
  209. package/dist/modules/user/paymentConditions/oas.schema.d.ts +0 -406
  210. package/dist/modules/user/paymentConditions/oas.schema.js +0 -268
  211. package/dist/modules/user/paymentConditions/responseCreate.schema.d.ts +0 -2
  212. package/dist/modules/user/paymentConditions/responseCreate.schema.js +0 -50
  213. package/dist/modules/user/paymentConditions/tests.d.ts +0 -7
  214. package/dist/modules/user/paymentConditions/tests.js +0 -86
  215. package/dist/modules/user/paymentMethods/tests.d.ts +0 -2
  216. package/dist/modules/user/paymentMethods/tests.js +0 -52
  217. package/dist/modules/user/permissions/oas.schema.d.ts +0 -56
  218. package/dist/modules/user/permissions/oas.schema.js +0 -73
  219. package/dist/modules/user/permissions/tests.d.ts +0 -2
  220. package/dist/modules/user/permissions/tests.js +0 -49
  221. package/dist/modules/user/providerType/oas.schema.d.ts +0 -350
  222. package/dist/modules/user/providerType/oas.schema.js +0 -237
  223. package/dist/modules/user/providerType/responseCreate.schema.d.ts +0 -2
  224. package/dist/modules/user/providerType/responseCreate.schema.js +0 -48
  225. package/dist/modules/user/providerType/tests.d.ts +0 -6
  226. package/dist/modules/user/providerType/tests.js +0 -71
  227. package/dist/modules/user/providers/oas.schema.d.ts +0 -0
  228. package/dist/modules/user/providers/oas.schema.js +0 -1
  229. package/dist/modules/user/purchaseConditions/oas.schema.d.ts +0 -406
  230. package/dist/modules/user/purchaseConditions/oas.schema.js +0 -268
  231. package/dist/modules/user/purchaseConditions/responseCreate.schema.d.ts +0 -2
  232. package/dist/modules/user/purchaseConditions/responseCreate.schema.js +0 -52
  233. package/dist/modules/user/purchaseConditions/tests.d.ts +0 -7
  234. package/dist/modules/user/purchaseConditions/tests.js +0 -108
  235. package/dist/modules/user/reasonForExemption/oas.schema.d.ts +0 -350
  236. package/dist/modules/user/reasonForExemption/oas.schema.js +0 -237
  237. package/dist/modules/user/reasonForExemption/responseCreate.schema.d.ts +0 -2
  238. package/dist/modules/user/reasonForExemption/responseCreate.schema.js +0 -51
  239. package/dist/modules/user/reasonForExemption/tests.d.ts +0 -6
  240. package/dist/modules/user/reasonForExemption/tests.js +0 -77
  241. package/dist/modules/user/refreshToken/tests.d.ts +0 -0
  242. package/dist/modules/user/refreshToken/tests.js +0 -1
  243. package/dist/modules/user/segmentsArea/oas.schema.d.ts +0 -350
  244. package/dist/modules/user/segmentsArea/oas.schema.js +0 -237
  245. package/dist/modules/user/segmentsArea/responseCreate.schema.d.ts +0 -2
  246. package/dist/modules/user/segmentsArea/responseCreate.schema.js +0 -49
  247. package/dist/modules/user/segmentsArea/tests.d.ts +0 -6
  248. package/dist/modules/user/segmentsArea/tests.js +0 -73
  249. package/dist/modules/user/sessions/tests.d.ts +0 -0
  250. package/dist/modules/user/sessions/tests.js +0 -1
  251. package/dist/modules/user/shippings/oas.schema.d.ts +0 -406
  252. package/dist/modules/user/shippings/oas.schema.js +0 -268
  253. package/dist/modules/user/shippings/responseCreate.shema.d.ts +0 -2
  254. package/dist/modules/user/shippings/responseCreate.shema.js +0 -52
  255. package/dist/modules/user/shippings/tests.d.ts +0 -7
  256. package/dist/modules/user/shippings/tests.js +0 -92
  257. package/dist/modules/user/socialMedia/oas.schema.d.ts +0 -406
  258. package/dist/modules/user/socialMedia/oas.schema.js +0 -268
  259. package/dist/modules/user/socialMedia/tests.d.ts +0 -6
  260. package/dist/modules/user/socialMedia/tests.js +0 -96
  261. package/dist/modules/user/swift/oas.schema.d.ts +0 -350
  262. package/dist/modules/user/swift/oas.schema.js +0 -237
  263. package/dist/modules/user/swift/tests.d.ts +0 -5
  264. package/dist/modules/user/swift/tests.js +0 -87
  265. package/dist/modules/user/userPermissions/oas.schema.d.ts +0 -224
  266. package/dist/modules/user/userPermissions/oas.schema.js +0 -166
  267. package/dist/modules/user/userPermissions/tests.d.ts +0 -3
  268. package/dist/modules/user/userPermissions/tests.js +0 -63
  269. package/dist/modules/user/userPositions/oas.schema.d.ts +0 -350
  270. package/dist/modules/user/userPositions/oas.schema.js +0 -237
  271. package/dist/modules/user/userPositions/responseCreate.schema.d.ts +0 -2
  272. package/dist/modules/user/userPositions/responseCreate.schema.js +0 -48
  273. package/dist/modules/user/userPositions/tests.d.ts +0 -6
  274. package/dist/modules/user/userPositions/tests.js +0 -71
  275. package/dist/modules/user/users/responseCreate.schema.d.ts +0 -2
  276. package/dist/modules/user/users/responseCreate.schema.js +0 -56
  277. package/dist/modules/user/vehicles/tests.d.ts +0 -2
  278. package/dist/modules/user/vehicles/tests.js +0 -49
  279. package/dist/modules/view/channels/oas.schema.d.ts +0 -0
  280. package/dist/modules/view/channels/oas.schema.js +0 -1
  281. package/dist/modules/view/channels/tests.d.ts +0 -0
  282. package/dist/modules/view/channels/tests.js +0 -1
  283. package/dist/modules/view/connections/oas.schema.d.ts +0 -0
  284. package/dist/modules/view/connections/oas.schema.js +0 -1
  285. package/dist/modules/view/connections/tests.d.ts +0 -0
  286. package/dist/modules/view/connections/tests.js +0 -1
  287. package/dist/modules/view/eventHistory/oas.schema.d.ts +0 -0
  288. package/dist/modules/view/eventHistory/oas.schema.js +0 -1
  289. package/dist/modules/view/eventHistory/tests.d.ts +0 -0
  290. package/dist/modules/view/eventHistory/tests.js +0 -1
@@ -1,47 +0,0 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.createUpdateDeleteBodyResponse = exports.createUpdateDeleteBodyResponseKeys = void 0;
41
- var joi_1 = __importDefault(require("joi"));
42
- var IShared = __importStar(require("../../../shared/interface"));
43
- exports.createUpdateDeleteBodyResponseKeys = {
44
- id: joi_1.default.string().uuid().required(),
45
- name: joi_1.default.string().required(),
46
- };
47
- exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, exports.createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
@@ -1,5 +0,0 @@
1
- import joi from 'joi';
2
- import { createUpdateDeleteBodyResponse } from './responseCreate.schema';
3
- export { createUpdateDeleteBodyResponse };
4
- export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
5
- export declare const findDetailedResponse: joi.ArraySchema<any[]>;
@@ -1,57 +0,0 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.findDetailedResponse = exports.findByIdBodyResponse = exports.createUpdateDeleteBodyResponse = void 0;
41
- var joi_1 = __importDefault(require("joi"));
42
- var IShared = __importStar(require("../../../shared/interface"));
43
- var responseCreate_schema_1 = require("./responseCreate.schema");
44
- Object.defineProperty(exports, "createUpdateDeleteBodyResponse", { enumerable: true, get: function () { return responseCreate_schema_1.createUpdateDeleteBodyResponse; } });
45
- exports.findByIdBodyResponse = joi_1.default
46
- .object()
47
- .keys(__assign(__assign({}, responseCreate_schema_1.createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps))
48
- .allow(null);
49
- var findDetailedResponseKeys = {
50
- id: joi_1.default.string().uuid().required(),
51
- name: joi_1.default.string().required(),
52
- };
53
- exports.findDetailedResponse = joi_1.default
54
- .array()
55
- .items(joi_1.default
56
- .object()
57
- .keys(__assign(__assign({}, findDetailedResponseKeys), IShared.joiValidateStamps)));
@@ -1,27 +0,0 @@
1
- import * as IShared from '../../../shared/interface';
2
- import { TaskAttachment } from '../../../shared/entities';
3
- export type Entity = TaskAttachment;
4
- export declare const Route = "taskAttachment";
5
- export declare const UpperName = "TaskAttachment";
6
- export declare const LowerName: string;
7
- export interface IFindRequest {
8
- task_id: string;
9
- }
10
- export interface IFindResponse {
11
- multimedia_id: string;
12
- filename: string;
13
- created_by: string | null;
14
- created_at: Date;
15
- }
16
- export interface ICreateRequest {
17
- task_id: string;
18
- multimedia_id: string;
19
- filename: string;
20
- }
21
- export interface IRepository {
22
- findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
23
- findByTaskId(params: IFindRequest): Promise<IFindResponse[]>;
24
- create(data: ICreateRequest): Promise<Entity>;
25
- }
26
- export type IController = IShared.IEntityWithUserToken<IRepository>;
27
- export type IApi = Omit<IRepository, 'findById'>;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LowerName = exports.UpperName = exports.Route = void 0;
4
- exports.Route = 'taskAttachment';
5
- exports.UpperName = 'TaskAttachment';
6
- exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
@@ -1,238 +0,0 @@
1
- export declare const getTaskAttachment: {
2
- tags: string[];
3
- summary: string;
4
- description: string;
5
- parameters: {
6
- in: string;
7
- name: string;
8
- schema: {
9
- type: string;
10
- };
11
- }[];
12
- responses: {
13
- '200': {
14
- description: string;
15
- content: {
16
- 'application/json': {
17
- schema: {
18
- type: string;
19
- items: {
20
- [x: string]: any;
21
- };
22
- };
23
- };
24
- };
25
- };
26
- };
27
- };
28
- export declare const createTaskAttachment: {
29
- tags: string[];
30
- summary: string;
31
- description: string;
32
- requestBody: {
33
- content: {
34
- 'application/json': {
35
- schema: {
36
- [x: string]: any;
37
- };
38
- };
39
- };
40
- };
41
- responses: {
42
- '200': {
43
- description: string;
44
- content: {
45
- 'application/json': {
46
- schema: {
47
- [x: string]: any;
48
- };
49
- };
50
- };
51
- };
52
- };
53
- };
54
- export declare const updateTaskAttachment: {
55
- tags: string[];
56
- summary: string;
57
- description: string;
58
- parameters: {
59
- name: string;
60
- in: string;
61
- description: string;
62
- required: boolean;
63
- schema: {
64
- type: string;
65
- format: string;
66
- };
67
- }[];
68
- requestBody: {
69
- content: {
70
- 'application/json': {
71
- schema: {
72
- [x: string]: any;
73
- };
74
- };
75
- };
76
- };
77
- responses: {
78
- '200': {
79
- description: string;
80
- content: {
81
- 'application/json': {
82
- schema: {
83
- type: string;
84
- };
85
- };
86
- };
87
- };
88
- };
89
- };
90
- export declare const deleteTaskAttachment: {
91
- tags: string[];
92
- summary: string;
93
- description: string;
94
- parameters: {
95
- name: string;
96
- in: string;
97
- description: string;
98
- required: boolean;
99
- schema: {
100
- type: string;
101
- format: string;
102
- };
103
- }[];
104
- responses: {
105
- '200': {
106
- description: string;
107
- content: {
108
- 'application/json': {
109
- schema: {
110
- type: string;
111
- };
112
- };
113
- };
114
- };
115
- };
116
- };
117
- export declare const swTaskAttachment: {
118
- '/task_attachment': {
119
- get: {
120
- tags: string[];
121
- summary: string;
122
- description: string;
123
- parameters: {
124
- in: string;
125
- name: string;
126
- schema: {
127
- type: string;
128
- };
129
- }[];
130
- responses: {
131
- '200': {
132
- description: string;
133
- content: {
134
- 'application/json': {
135
- schema: {
136
- type: string;
137
- items: {
138
- [x: string]: any;
139
- };
140
- };
141
- };
142
- };
143
- };
144
- };
145
- };
146
- post: {
147
- tags: string[];
148
- summary: string;
149
- description: string;
150
- requestBody: {
151
- content: {
152
- 'application/json': {
153
- schema: {
154
- [x: string]: any;
155
- };
156
- };
157
- };
158
- };
159
- responses: {
160
- '200': {
161
- description: string;
162
- content: {
163
- 'application/json': {
164
- schema: {
165
- [x: string]: any;
166
- };
167
- };
168
- };
169
- };
170
- };
171
- };
172
- };
173
- '/task_attachment/{id}': {
174
- put: {
175
- tags: string[];
176
- summary: string;
177
- description: string;
178
- parameters: {
179
- name: string;
180
- in: string;
181
- description: string;
182
- required: boolean;
183
- schema: {
184
- type: string;
185
- format: string;
186
- };
187
- }[];
188
- requestBody: {
189
- content: {
190
- 'application/json': {
191
- schema: {
192
- [x: string]: any;
193
- };
194
- };
195
- };
196
- };
197
- responses: {
198
- '200': {
199
- description: string;
200
- content: {
201
- 'application/json': {
202
- schema: {
203
- type: string;
204
- };
205
- };
206
- };
207
- };
208
- };
209
- };
210
- delete: {
211
- tags: string[];
212
- summary: string;
213
- description: string;
214
- parameters: {
215
- name: string;
216
- in: string;
217
- description: string;
218
- required: boolean;
219
- schema: {
220
- type: string;
221
- format: string;
222
- };
223
- }[];
224
- responses: {
225
- '200': {
226
- description: string;
227
- content: {
228
- 'application/json': {
229
- schema: {
230
- type: string;
231
- };
232
- };
233
- };
234
- };
235
- };
236
- };
237
- };
238
- };
@@ -1,144 +0,0 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.swTaskAttachment = exports.deleteTaskAttachment = exports.updateTaskAttachment = exports.createTaskAttachment = exports.getTaskAttachment = void 0;
18
- var joi_to_swagger_1 = __importDefault(require("joi-to-swagger"));
19
- var route_schema_1 = require("./route.schema");
20
- var createTaskAttachmentSchema = (0, joi_to_swagger_1.default)(route_schema_1.createBody).swagger;
21
- exports.getTaskAttachment = {
22
- tags: ['Task Attachment'],
23
- summary: 'List Task Attachment',
24
- description: 'List Task Attachment',
25
- parameters: [
26
- {
27
- in: 'query',
28
- name: 'entity',
29
- schema: {
30
- type: 'string',
31
- },
32
- },
33
- ],
34
- responses: {
35
- '200': {
36
- description: 'Task Attachment successfully List',
37
- content: {
38
- 'application/json': {
39
- schema: {
40
- type: 'array',
41
- items: __assign({}, createTaskAttachmentSchema),
42
- },
43
- },
44
- },
45
- },
46
- },
47
- };
48
- exports.createTaskAttachment = {
49
- tags: ['Task Attachment'],
50
- summary: 'Create Task Attachment',
51
- description: 'Create Task Attachment',
52
- requestBody: {
53
- content: {
54
- 'application/json': {
55
- schema: __assign({}, createTaskAttachmentSchema),
56
- },
57
- },
58
- },
59
- responses: {
60
- '200': {
61
- description: 'Task Attachment successfully create',
62
- content: {
63
- 'application/json': {
64
- schema: __assign({}, createTaskAttachmentSchema),
65
- },
66
- },
67
- },
68
- },
69
- };
70
- exports.updateTaskAttachment = {
71
- tags: ['Task Attachment'],
72
- summary: 'Update Task Attachment',
73
- description: 'Update Task Attachment',
74
- parameters: [
75
- {
76
- name: 'id',
77
- in: 'path',
78
- description: 'ID Task Attachment to edit',
79
- required: true,
80
- schema: {
81
- type: 'string',
82
- format: 'uuid',
83
- },
84
- },
85
- ],
86
- requestBody: {
87
- content: {
88
- 'application/json': {
89
- schema: __assign({}, createTaskAttachmentSchema),
90
- },
91
- },
92
- },
93
- responses: {
94
- '200': {
95
- description: 'Updated with success',
96
- content: {
97
- 'application/json': {
98
- schema: {
99
- type: 'boolean',
100
- },
101
- },
102
- },
103
- },
104
- },
105
- };
106
- exports.deleteTaskAttachment = {
107
- tags: ['Task Attachment'],
108
- summary: 'Delete Task Attachment',
109
- description: 'Delete Task Attachment',
110
- parameters: [
111
- {
112
- name: 'id',
113
- in: 'path',
114
- description: 'ID Task Attachment to edit',
115
- required: true,
116
- schema: {
117
- type: 'string',
118
- format: 'uuid',
119
- },
120
- },
121
- ],
122
- responses: {
123
- '200': {
124
- description: 'Delete with success',
125
- content: {
126
- 'application/json': {
127
- schema: {
128
- type: 'boolean',
129
- },
130
- },
131
- },
132
- },
133
- },
134
- };
135
- exports.swTaskAttachment = {
136
- '/task_attachment': {
137
- get: __assign({}, exports.getTaskAttachment),
138
- post: __assign({}, exports.createTaskAttachment),
139
- },
140
- '/task_attachment/{id}': {
141
- put: __assign({}, exports.updateTaskAttachment),
142
- delete: __assign({}, exports.deleteTaskAttachment),
143
- },
144
- };
@@ -1,7 +0,0 @@
1
- import joi from 'joi';
2
- import { ICreateRequest, IFindRequest } from './interfaces';
3
- import * as IShared from '../../../shared/interface';
4
- export declare const createBodyKeys: IShared.IRouteRequest<ICreateRequest>;
5
- export declare const createBody: joi.ObjectSchema<any>;
6
- export declare const getQueryBodyKeys: IShared.IRouteRequest<IFindRequest>;
7
- export declare const getQueryBody: joi.ObjectSchema<any>;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getQueryBody = exports.getQueryBodyKeys = exports.createBody = exports.createBodyKeys = void 0;
7
- var joi_1 = __importDefault(require("joi"));
8
- var messages_1 = require("../../../shared/messages");
9
- exports.createBodyKeys = {
10
- task_id: joi_1.default.string().uuid().required(),
11
- multimedia_id: joi_1.default.string().required(),
12
- filename: joi_1.default.string().required(),
13
- };
14
- exports.createBody = joi_1.default.object().keys(exports.createBodyKeys).messages(messages_1.messages);
15
- exports.getQueryBodyKeys = {
16
- task_id: joi_1.default.string().uuid().required(),
17
- };
18
- exports.getQueryBody = joi_1.default
19
- .object()
20
- .keys(exports.getQueryBodyKeys)
21
- .messages(messages_1.messages);
@@ -1,4 +0,0 @@
1
- import joi from 'joi';
2
- export declare const createUpdateDeleteBodyResponse: joi.ObjectSchema<any>;
3
- export declare const findBodyResponse: joi.ArraySchema<any[]>;
4
- export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
@@ -1,61 +0,0 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.findByIdBodyResponse = exports.findBodyResponse = exports.createUpdateDeleteBodyResponse = void 0;
41
- var joi_1 = __importDefault(require("joi"));
42
- var IShared = __importStar(require("../../../shared/interface"));
43
- var createUpdateDeleteBodyResponseKeys = {
44
- id: joi_1.default.string().uuid().required(),
45
- task_id: joi_1.default.string().uuid().required(),
46
- multimedia_id: joi_1.default.string().required(),
47
- filename: joi_1.default.string().required(),
48
- };
49
- exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
50
- var findBodyResponseKeys = {
51
- multimedia_id: joi_1.default.string().uuid().required(),
52
- filename: joi_1.default.string().required(),
53
- };
54
- exports.findBodyResponse = joi_1.default
55
- .array()
56
- .items(__assign(__assign({}, findBodyResponseKeys), { created_by: joi_1.default.string().uuid().required(), created_at: joi_1.default.date().required() }))
57
- .required();
58
- exports.findByIdBodyResponse = joi_1.default
59
- .object()
60
- .keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps))
61
- .allow(null);
@@ -1,29 +0,0 @@
1
- import * as IShared from '../../../shared/interface';
2
- import { TaskNotes } from '../../../shared/entities';
3
- export type Entity = TaskNotes;
4
- export declare const Route = "taskNotes";
5
- export declare const UpperName = "TaskNotes";
6
- export declare const LowerName: string;
7
- export interface IFindRequest {
8
- task_id: string;
9
- }
10
- export interface IFindResponse extends IShared.WithTimestamps, IShared.WithCreatedBy {
11
- id: string;
12
- description: string;
13
- }
14
- export interface ICreateRequest {
15
- task_id: string;
16
- description: string;
17
- }
18
- export interface IUpdateRequest {
19
- description: string;
20
- }
21
- export interface IRepository {
22
- findById(selector: IShared.IFindByIdRequest): Promise<TaskNotes | null>;
23
- findByTaskId(params: IFindRequest): Promise<IFindResponse[]>;
24
- create(data: ICreateRequest): Promise<Entity>;
25
- update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
26
- deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
27
- }
28
- export type IController = IShared.IEntityWithUserToken<IRepository>;
29
- export type IApi = Omit<IRepository, 'findById'>;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LowerName = exports.UpperName = exports.Route = void 0;
4
- exports.Route = 'taskNotes';
5
- exports.UpperName = 'TaskNotes';
6
- exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);