@nomalism-com/types 0.17.57 → 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 (289) 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/package.json +6 -7
  6. package/dist/modules/document/materialEntrance/tests.d.ts +0 -0
  7. package/dist/modules/document/materialEntrance/tests.js +0 -1
  8. package/dist/modules/document/purchase/tests.d.ts +0 -0
  9. package/dist/modules/document/purchase/tests.js +0 -1
  10. package/dist/modules/documentManagement/multimedia/oas.schema.d.ts +0 -108
  11. package/dist/modules/documentManagement/multimedia/oas.schema.js +0 -71
  12. package/dist/modules/documentManagement/multimedia/tests.d.ts +0 -2
  13. package/dist/modules/documentManagement/multimedia/tests.js +0 -53
  14. package/dist/modules/integration/dynamicData/interfaces.d.ts +0 -29
  15. package/dist/modules/integration/dynamicData/interfaces.js +0 -6
  16. package/dist/modules/integration/dynamicData/route.schema.d.ts +0 -4
  17. package/dist/modules/integration/dynamicData/route.schema.js +0 -25
  18. package/dist/modules/integration/field/oas.schema.d.ts +0 -224
  19. package/dist/modules/integration/field/oas.schema.js +0 -135
  20. package/dist/modules/integration/field/tests.d.ts +0 -3
  21. package/dist/modules/integration/field/tests.js +0 -57
  22. package/dist/modules/integration/fieldGroup/oas.schema.d.ts +0 -241
  23. package/dist/modules/integration/fieldGroup/oas.schema.js +0 -155
  24. package/dist/modules/integration/fieldGroup/tests.d.ts +0 -6
  25. package/dist/modules/integration/fieldGroup/tests.js +0 -66
  26. package/dist/modules/integration/history/oas.schema.d.ts +0 -399
  27. package/dist/modules/integration/history/oas.schema.js +0 -141
  28. package/dist/modules/integration/history/tests.d.ts +0 -0
  29. package/dist/modules/integration/history/tests.js +0 -1
  30. package/dist/modules/integration/observation/tests.d.ts +0 -8
  31. package/dist/modules/integration/observation/tests.js +0 -71
  32. package/dist/modules/integration/observationType/responseCreate.schema.d.ts +0 -5
  33. package/dist/modules/integration/observationType/responseCreate.schema.js +0 -47
  34. package/dist/modules/integration/observationType/tests.d.ts +0 -5
  35. package/dist/modules/integration/observationType/tests.js +0 -57
  36. package/dist/modules/integration/taskAttachment/interfaces.d.ts +0 -27
  37. package/dist/modules/integration/taskAttachment/interfaces.js +0 -6
  38. package/dist/modules/integration/taskAttachment/oas.schema.d.ts +0 -238
  39. package/dist/modules/integration/taskAttachment/oas.schema.js +0 -144
  40. package/dist/modules/integration/taskAttachment/route.schema.d.ts +0 -7
  41. package/dist/modules/integration/taskAttachment/route.schema.js +0 -21
  42. package/dist/modules/integration/taskAttachment/tests.d.ts +0 -4
  43. package/dist/modules/integration/taskAttachment/tests.js +0 -61
  44. package/dist/modules/integration/taskNote/interface.d.ts +0 -29
  45. package/dist/modules/integration/taskNote/interface.js +0 -6
  46. package/dist/modules/integration/taskNote/oas.schema.d.ts +0 -238
  47. package/dist/modules/integration/taskNote/oas.schema.js +0 -144
  48. package/dist/modules/integration/taskNote/route.schema.d.ts +0 -9
  49. package/dist/modules/integration/taskNote/route.schema.js +0 -24
  50. package/dist/modules/integration/taskNote/tests.d.ts +0 -4
  51. package/dist/modules/integration/taskNote/tests.js +0 -60
  52. package/dist/modules/integration/tasks/interfaces.d.ts +0 -68
  53. package/dist/modules/integration/tasks/interfaces.js +0 -6
  54. package/dist/modules/integration/tasks/oas.schema.d.ts +0 -618
  55. package/dist/modules/integration/tasks/oas.schema.js +0 -256
  56. package/dist/modules/integration/tasks/route.schema.d.ts +0 -14
  57. package/dist/modules/integration/tasks/route.schema.js +0 -54
  58. package/dist/modules/integration/tasks/tests.d.ts +0 -4
  59. package/dist/modules/integration/tasks/tests.js +0 -94
  60. package/dist/modules/integration/tasksGroup/interfaces.d.ts +0 -30
  61. package/dist/modules/integration/tasksGroup/interfaces.js +0 -6
  62. package/dist/modules/integration/tasksGroup/oas.schema.d.ts +0 -270
  63. package/dist/modules/integration/tasksGroup/oas.schema.js +0 -146
  64. package/dist/modules/integration/tasksGroup/route.schema.d.ts +0 -3
  65. package/dist/modules/integration/tasksGroup/route.schema.js +0 -16
  66. package/dist/modules/integration/tasksGroup/tests.d.ts +0 -5
  67. package/dist/modules/integration/tasksGroup/tests.js +0 -68
  68. package/dist/modules/stock/attribute/tests.d.ts +0 -10
  69. package/dist/modules/stock/attribute/tests.js +0 -102
  70. package/dist/modules/stock/attributeValue/tests.d.ts +0 -9
  71. package/dist/modules/stock/attributeValue/tests.js +0 -90
  72. package/dist/modules/stock/color/tests.d.ts +0 -9
  73. package/dist/modules/stock/color/tests.js +0 -90
  74. package/dist/modules/stock/composition/tests.d.ts +0 -9
  75. package/dist/modules/stock/composition/tests.js +0 -94
  76. package/dist/modules/stock/compositionMaterial/oas.schema.d.ts +0 -406
  77. package/dist/modules/stock/compositionMaterial/oas.schema.js +0 -268
  78. package/dist/modules/stock/compositionMaterial/tests.d.ts +0 -6
  79. package/dist/modules/stock/compositionMaterial/tests.js +0 -87
  80. package/dist/modules/stock/location/oas.schema.d.ts +0 -406
  81. package/dist/modules/stock/location/oas.schema.js +0 -268
  82. package/dist/modules/stock/location/tests.d.ts +0 -6
  83. package/dist/modules/stock/location/tests.js +0 -149
  84. package/dist/modules/stock/maintenance/tests.d.ts +0 -9
  85. package/dist/modules/stock/maintenance/tests.js +0 -96
  86. package/dist/modules/stock/maintenanceAssoc/tests.d.ts +0 -9
  87. package/dist/modules/stock/maintenanceAssoc/tests.js +0 -90
  88. package/dist/modules/stock/maintenancePreset/tests.d.ts +0 -3
  89. package/dist/modules/stock/maintenancePreset/tests.js +0 -57
  90. package/dist/modules/stock/maintenanceType/oas.schema.d.ts +0 -406
  91. package/dist/modules/stock/maintenanceType/oas.schema.js +0 -268
  92. package/dist/modules/stock/maintenanceType/tests.d.ts +0 -6
  93. package/dist/modules/stock/maintenanceType/tests.js +0 -87
  94. package/dist/modules/stock/primaryColor/oas.schema.d.ts +0 -406
  95. package/dist/modules/stock/primaryColor/oas.schema.js +0 -268
  96. package/dist/modules/stock/primaryColor/tests.d.ts +0 -6
  97. package/dist/modules/stock/primaryColor/tests.js +0 -87
  98. package/dist/modules/stock/product/tests.d.ts +0 -6
  99. package/dist/modules/stock/product/tests.js +0 -253
  100. package/dist/modules/stock/productAttribute/tests.d.ts +0 -9
  101. package/dist/modules/stock/productAttribute/tests.js +0 -94
  102. package/dist/modules/stock/productCategory/tests.d.ts +0 -10
  103. package/dist/modules/stock/productCategory/tests.js +0 -84
  104. package/dist/modules/stock/productColor/tests.d.ts +0 -9
  105. package/dist/modules/stock/productColor/tests.js +0 -94
  106. package/dist/modules/stock/productImage/tests.d.ts +0 -9
  107. package/dist/modules/stock/productImage/tests.js +0 -92
  108. package/dist/modules/stock/productName/tests.d.ts +0 -9
  109. package/dist/modules/stock/productName/tests.js +0 -84
  110. package/dist/modules/stock/productNamePreset/oas.schema.d.ts +0 -406
  111. package/dist/modules/stock/productNamePreset/oas.schema.js +0 -268
  112. package/dist/modules/stock/productNamePreset/tests.d.ts +0 -6
  113. package/dist/modules/stock/productNamePreset/tests.js +0 -87
  114. package/dist/modules/stock/productPart/tests.d.ts +0 -9
  115. package/dist/modules/stock/productPart/tests.js +0 -92
  116. package/dist/modules/stock/productSubCategory/responseCreate.schema.d.ts +0 -2
  117. package/dist/modules/stock/productSubCategory/responseCreate.schema.js +0 -50
  118. package/dist/modules/stock/productSubCategory/tests.d.ts +0 -9
  119. package/dist/modules/stock/productSubCategory/tests.js +0 -86
  120. package/dist/modules/stock/productUse/oas.schema.d.ts +0 -397
  121. package/dist/modules/stock/productUse/oas.schema.js +0 -268
  122. package/dist/modules/stock/productUse/tests.d.ts +0 -6
  123. package/dist/modules/stock/productUse/tests.js +0 -91
  124. package/dist/modules/stock/productUseAssoc/tests.d.ts +0 -9
  125. package/dist/modules/stock/productUseAssoc/tests.js +0 -90
  126. package/dist/modules/stock/promotion/tests.d.ts +0 -9
  127. package/dist/modules/stock/promotion/tests.js +0 -144
  128. package/dist/modules/stock/promotionAssoc/tests.d.ts +0 -9
  129. package/dist/modules/stock/promotionAssoc/tests.js +0 -100
  130. package/dist/modules/stock/similarProduct/tests.d.ts +0 -9
  131. package/dist/modules/stock/similarProduct/tests.js +0 -94
  132. package/dist/modules/stock/typeOfInventory/oas.schema.d.ts +0 -406
  133. package/dist/modules/stock/typeOfInventory/oas.schema.js +0 -268
  134. package/dist/modules/stock/typeOfInventory/tests.d.ts +0 -9
  135. package/dist/modules/stock/typeOfInventory/tests.js +0 -91
  136. package/dist/modules/stock/typeOfLocation/oas.schema.d.ts +0 -406
  137. package/dist/modules/stock/typeOfLocation/oas.schema.js +0 -268
  138. package/dist/modules/stock/typeOfLocation/tests.d.ts +0 -6
  139. package/dist/modules/stock/typeOfLocation/tests.js +0 -87
  140. package/dist/modules/stock/unitOfMeasure/oas.schema.d.ts +0 -406
  141. package/dist/modules/stock/unitOfMeasure/oas.schema.js +0 -269
  142. package/dist/modules/stock/unitOfMeasure/responseCreate.schema.d.ts +0 -2
  143. package/dist/modules/stock/unitOfMeasure/responseCreate.schema.js +0 -55
  144. package/dist/modules/stock/unitOfMeasure/tests.d.ts +0 -9
  145. package/dist/modules/stock/unitOfMeasure/tests.js +0 -99
  146. package/dist/modules/stock/vatTax/oas.schema.d.ts +0 -406
  147. package/dist/modules/stock/vatTax/oas.schema.js +0 -268
  148. package/dist/modules/stock/vatTax/tests.d.ts +0 -9
  149. package/dist/modules/stock/vatTax/tests.js +0 -91
  150. package/dist/modules/stock/vatTaxZone/tests.d.ts +0 -10
  151. package/dist/modules/stock/vatTaxZone/tests.js +0 -102
  152. package/dist/modules/supply/counter/tests.d.ts +0 -0
  153. package/dist/modules/supply/counter/tests.js +0 -1
  154. package/dist/modules/supply/documentLineAssoc/tests.d.ts +0 -5
  155. package/dist/modules/supply/documentLineAssoc/tests.js +0 -57
  156. package/dist/modules/supply/documentLineFolder/tests.d.ts +0 -0
  157. package/dist/modules/supply/documentLineFolder/tests.js +0 -1
  158. package/dist/modules/supply/documentType/tests.d.ts +0 -0
  159. package/dist/modules/supply/documentType/tests.js +0 -1
  160. package/dist/modules/supply/externalDocumentHeader/tests.d.ts +0 -5
  161. package/dist/modules/supply/externalDocumentHeader/tests.js +0 -103
  162. package/dist/modules/supply/payment/tests.d.ts +0 -8
  163. package/dist/modules/supply/payment/tests.js +0 -102
  164. package/dist/modules/user/bankData/oas.schema.d.ts +0 -406
  165. package/dist/modules/user/bankData/oas.schema.js +0 -268
  166. package/dist/modules/user/bankData/tests.d.ts +0 -6
  167. package/dist/modules/user/bankData/tests.js +0 -116
  168. package/dist/modules/user/clientType/oas.schema.d.ts +0 -350
  169. package/dist/modules/user/clientType/oas.schema.js +0 -237
  170. package/dist/modules/user/clientType/responseCreate.schema.d.ts +0 -2
  171. package/dist/modules/user/clientType/responseCreate.schema.js +0 -48
  172. package/dist/modules/user/clientType/tests.d.ts +0 -6
  173. package/dist/modules/user/clientType/tests.js +0 -71
  174. package/dist/modules/user/commissioner/oas.schema.d.ts +0 -0
  175. package/dist/modules/user/commissioner/oas.schema.js +0 -1
  176. package/dist/modules/user/country/oas.schema.d.ts +0 -350
  177. package/dist/modules/user/country/oas.schema.js +0 -237
  178. package/dist/modules/user/country/responseCreate.schema.d.ts +0 -2
  179. package/dist/modules/user/country/responseCreate.schema.js +0 -50
  180. package/dist/modules/user/country/tests.d.ts +0 -9
  181. package/dist/modules/user/country/tests.js +0 -75
  182. package/dist/modules/user/deliveryMethods/tests.d.ts +0 -2
  183. package/dist/modules/user/deliveryMethods/tests.js +0 -48
  184. package/dist/modules/user/entityList/interface.d.ts +0 -32
  185. package/dist/modules/user/entityList/interface.js +0 -14
  186. package/dist/modules/user/entityList/oas.schema.d.ts +0 -274
  187. package/dist/modules/user/entityList/oas.schema.js +0 -185
  188. package/dist/modules/user/entityList/route.schema.d.ts +0 -3
  189. package/dist/modules/user/entityList/route.schema.js +0 -30
  190. package/dist/modules/user/entityList/tests.d.ts +0 -3
  191. package/dist/modules/user/entityList/tests.js +0 -69
  192. package/dist/modules/user/favorites/oas.schema.d.ts +0 -112
  193. package/dist/modules/user/favorites/oas.schema.js +0 -103
  194. package/dist/modules/user/favorites/tests.d.ts +0 -2
  195. package/dist/modules/user/favorites/tests.js +0 -48
  196. package/dist/modules/user/groupPermissions/oas.schema.d.ts +0 -56
  197. package/dist/modules/user/groupPermissions/oas.schema.js +0 -73
  198. package/dist/modules/user/groupPermissions/tests.d.ts +0 -2
  199. package/dist/modules/user/groupPermissions/tests.js +0 -49
  200. package/dist/modules/user/language/oas.schema.d.ts +0 -350
  201. package/dist/modules/user/language/oas.schema.js +0 -237
  202. package/dist/modules/user/language/responseCreate.schema.d.ts +0 -2
  203. package/dist/modules/user/language/responseCreate.schema.js +0 -49
  204. package/dist/modules/user/language/tests.d.ts +0 -6
  205. package/dist/modules/user/language/tests.js +0 -73
  206. package/dist/modules/user/maturityDates/tests.d.ts +0 -2
  207. package/dist/modules/user/maturityDates/tests.js +0 -49
  208. package/dist/modules/user/paymentConditions/oas.schema.d.ts +0 -406
  209. package/dist/modules/user/paymentConditions/oas.schema.js +0 -268
  210. package/dist/modules/user/paymentConditions/responseCreate.schema.d.ts +0 -2
  211. package/dist/modules/user/paymentConditions/responseCreate.schema.js +0 -50
  212. package/dist/modules/user/paymentConditions/tests.d.ts +0 -7
  213. package/dist/modules/user/paymentConditions/tests.js +0 -86
  214. package/dist/modules/user/paymentMethods/tests.d.ts +0 -2
  215. package/dist/modules/user/paymentMethods/tests.js +0 -52
  216. package/dist/modules/user/permissions/oas.schema.d.ts +0 -56
  217. package/dist/modules/user/permissions/oas.schema.js +0 -73
  218. package/dist/modules/user/permissions/tests.d.ts +0 -2
  219. package/dist/modules/user/permissions/tests.js +0 -49
  220. package/dist/modules/user/providerType/oas.schema.d.ts +0 -350
  221. package/dist/modules/user/providerType/oas.schema.js +0 -237
  222. package/dist/modules/user/providerType/responseCreate.schema.d.ts +0 -2
  223. package/dist/modules/user/providerType/responseCreate.schema.js +0 -48
  224. package/dist/modules/user/providerType/tests.d.ts +0 -6
  225. package/dist/modules/user/providerType/tests.js +0 -71
  226. package/dist/modules/user/providers/oas.schema.d.ts +0 -0
  227. package/dist/modules/user/providers/oas.schema.js +0 -1
  228. package/dist/modules/user/purchaseConditions/oas.schema.d.ts +0 -406
  229. package/dist/modules/user/purchaseConditions/oas.schema.js +0 -268
  230. package/dist/modules/user/purchaseConditions/responseCreate.schema.d.ts +0 -2
  231. package/dist/modules/user/purchaseConditions/responseCreate.schema.js +0 -52
  232. package/dist/modules/user/purchaseConditions/tests.d.ts +0 -7
  233. package/dist/modules/user/purchaseConditions/tests.js +0 -108
  234. package/dist/modules/user/reasonForExemption/oas.schema.d.ts +0 -350
  235. package/dist/modules/user/reasonForExemption/oas.schema.js +0 -237
  236. package/dist/modules/user/reasonForExemption/responseCreate.schema.d.ts +0 -2
  237. package/dist/modules/user/reasonForExemption/responseCreate.schema.js +0 -51
  238. package/dist/modules/user/reasonForExemption/tests.d.ts +0 -6
  239. package/dist/modules/user/reasonForExemption/tests.js +0 -77
  240. package/dist/modules/user/refreshToken/tests.d.ts +0 -0
  241. package/dist/modules/user/refreshToken/tests.js +0 -1
  242. package/dist/modules/user/segmentsArea/oas.schema.d.ts +0 -350
  243. package/dist/modules/user/segmentsArea/oas.schema.js +0 -237
  244. package/dist/modules/user/segmentsArea/responseCreate.schema.d.ts +0 -2
  245. package/dist/modules/user/segmentsArea/responseCreate.schema.js +0 -49
  246. package/dist/modules/user/segmentsArea/tests.d.ts +0 -6
  247. package/dist/modules/user/segmentsArea/tests.js +0 -73
  248. package/dist/modules/user/sessions/tests.d.ts +0 -0
  249. package/dist/modules/user/sessions/tests.js +0 -1
  250. package/dist/modules/user/shippings/oas.schema.d.ts +0 -406
  251. package/dist/modules/user/shippings/oas.schema.js +0 -268
  252. package/dist/modules/user/shippings/responseCreate.shema.d.ts +0 -2
  253. package/dist/modules/user/shippings/responseCreate.shema.js +0 -52
  254. package/dist/modules/user/shippings/tests.d.ts +0 -7
  255. package/dist/modules/user/shippings/tests.js +0 -92
  256. package/dist/modules/user/socialMedia/oas.schema.d.ts +0 -406
  257. package/dist/modules/user/socialMedia/oas.schema.js +0 -268
  258. package/dist/modules/user/socialMedia/tests.d.ts +0 -6
  259. package/dist/modules/user/socialMedia/tests.js +0 -96
  260. package/dist/modules/user/swift/oas.schema.d.ts +0 -350
  261. package/dist/modules/user/swift/oas.schema.js +0 -237
  262. package/dist/modules/user/swift/tests.d.ts +0 -5
  263. package/dist/modules/user/swift/tests.js +0 -87
  264. package/dist/modules/user/userPermissions/oas.schema.d.ts +0 -224
  265. package/dist/modules/user/userPermissions/oas.schema.js +0 -166
  266. package/dist/modules/user/userPermissions/tests.d.ts +0 -3
  267. package/dist/modules/user/userPermissions/tests.js +0 -63
  268. package/dist/modules/user/userPositions/oas.schema.d.ts +0 -350
  269. package/dist/modules/user/userPositions/oas.schema.js +0 -237
  270. package/dist/modules/user/userPositions/responseCreate.schema.d.ts +0 -2
  271. package/dist/modules/user/userPositions/responseCreate.schema.js +0 -48
  272. package/dist/modules/user/userPositions/tests.d.ts +0 -6
  273. package/dist/modules/user/userPositions/tests.js +0 -71
  274. package/dist/modules/user/users/responseCreate.schema.d.ts +0 -2
  275. package/dist/modules/user/users/responseCreate.schema.js +0 -56
  276. package/dist/modules/user/vehicles/tests.d.ts +0 -2
  277. package/dist/modules/user/vehicles/tests.js +0 -49
  278. package/dist/modules/view/channels/oas.schema.d.ts +0 -0
  279. package/dist/modules/view/channels/oas.schema.js +0 -1
  280. package/dist/modules/view/channels/tests.d.ts +0 -0
  281. package/dist/modules/view/channels/tests.js +0 -1
  282. package/dist/modules/view/connections/oas.schema.d.ts +0 -0
  283. package/dist/modules/view/connections/oas.schema.js +0 -1
  284. package/dist/modules/view/connections/tests.d.ts +0 -0
  285. package/dist/modules/view/connections/tests.js +0 -1
  286. package/dist/modules/view/eventHistory/oas.schema.d.ts +0 -0
  287. package/dist/modules/view/eventHistory/oas.schema.js +0 -1
  288. package/dist/modules/view/eventHistory/tests.d.ts +0 -0
  289. package/dist/modules/view/eventHistory/tests.js +0 -1
@@ -1,135 +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.swField = exports.deleteField = exports.updateField = exports.createField = exports.getField = void 0;
18
- var joi_to_swagger_1 = __importDefault(require("joi-to-swagger"));
19
- var route_schema_1 = require("./route.schema");
20
- var createFieldSchema = (0, joi_to_swagger_1.default)(route_schema_1.createBody).swagger;
21
- exports.getField = {
22
- tags: ['Field'],
23
- summary: 'List Field',
24
- description: 'List Field',
25
- responses: {
26
- '200': {
27
- description: 'Field successfully List',
28
- content: {
29
- 'application/json': {
30
- schema: {
31
- type: 'array',
32
- items: __assign({}, createFieldSchema),
33
- },
34
- },
35
- },
36
- },
37
- },
38
- };
39
- exports.createField = {
40
- tags: ['Field'],
41
- summary: 'Create Field',
42
- description: 'Create Field',
43
- requestBody: {
44
- content: {
45
- 'application/json': {
46
- schema: __assign({}, createFieldSchema),
47
- },
48
- },
49
- },
50
- responses: {
51
- '200': {
52
- description: 'Field successfully create',
53
- content: {
54
- 'application/json': {
55
- schema: __assign({}, createFieldSchema),
56
- },
57
- },
58
- },
59
- },
60
- };
61
- exports.updateField = {
62
- tags: ['Field'],
63
- summary: 'Update Field',
64
- description: 'Update Field',
65
- parameters: [
66
- {
67
- name: 'id',
68
- in: 'path',
69
- description: 'ID field to edit',
70
- required: true,
71
- schema: {
72
- type: 'string',
73
- format: 'uuid',
74
- },
75
- },
76
- ],
77
- requestBody: {
78
- content: {
79
- 'application/json': {
80
- schema: __assign({}, createFieldSchema),
81
- },
82
- },
83
- },
84
- responses: {
85
- '200': {
86
- description: 'Updated with success',
87
- content: {
88
- 'application/json': {
89
- schema: {
90
- type: 'boolean',
91
- },
92
- },
93
- },
94
- },
95
- },
96
- };
97
- exports.deleteField = {
98
- tags: ['Field'],
99
- summary: 'Delete Field',
100
- description: 'Delete Field',
101
- parameters: [
102
- {
103
- name: 'id',
104
- in: 'path',
105
- description: 'ID field to edit',
106
- required: true,
107
- schema: {
108
- type: 'string',
109
- format: 'uuid',
110
- },
111
- },
112
- ],
113
- responses: {
114
- '200': {
115
- description: 'Delete with success',
116
- content: {
117
- 'application/json': {
118
- schema: {
119
- type: 'boolean',
120
- },
121
- },
122
- },
123
- },
124
- },
125
- };
126
- exports.swField = {
127
- '/field': {
128
- post: __assign({}, exports.createField),
129
- get: __assign({}, exports.getField),
130
- },
131
- '/field/{id}': {
132
- put: __assign({}, exports.updateField),
133
- delete: __assign({}, exports.deleteField),
134
- },
135
- };
@@ -1,3 +0,0 @@
1
- import joi from 'joi';
2
- export declare const createUpdateDeleteBodyResponse: joi.ObjectSchema<any>;
3
- export declare const findDetailedBodyResponse: 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
- var _a;
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.findDetailedBodyResponse = exports.createUpdateDeleteBodyResponse = void 0;
42
- var joi_1 = __importDefault(require("joi"));
43
- var IShared = __importStar(require("../../../shared/interface"));
44
- var interfaces_1 = require("./interfaces");
45
- var createUpdateDeleteBodyResponseKeys = {
46
- id: joi_1.default.string().uuid().required(),
47
- field_group_id: joi_1.default.string().uuid().required(),
48
- name: joi_1.default.string().required(),
49
- accessor: joi_1.default.string().required(),
50
- getter_url: joi_1.default.string().required().allow(null),
51
- datatype: (_a = joi_1.default
52
- .string())
53
- .valid.apply(_a, Object.values(interfaces_1.IDataTypeEnum)).required(),
54
- is_bulk_editable: joi_1.default.boolean().required(),
55
- };
56
- exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
57
- exports.findDetailedBodyResponse = joi_1.default.array().items(joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps)));
@@ -1,241 +0,0 @@
1
- import { IEntity } from './interfaces';
2
- export declare const getFieldGroup: {
3
- tags: string[];
4
- summary: string;
5
- description: string;
6
- parameters: {
7
- in: string;
8
- name: string;
9
- schema: {
10
- type: string;
11
- enum: IEntity[];
12
- };
13
- }[];
14
- responses: {
15
- '200': {
16
- description: string;
17
- content: {
18
- 'application/json': {
19
- schema: {
20
- type: string;
21
- items: {
22
- [x: string]: any;
23
- };
24
- };
25
- };
26
- };
27
- };
28
- };
29
- };
30
- export declare const createFieldGroup: {
31
- tags: string[];
32
- summary: string;
33
- description: string;
34
- requestBody: {
35
- content: {
36
- 'application/json': {
37
- schema: {
38
- [x: string]: any;
39
- };
40
- };
41
- };
42
- };
43
- responses: {
44
- '200': {
45
- description: string;
46
- content: {
47
- 'application/json': {
48
- schema: {
49
- [x: string]: any;
50
- };
51
- };
52
- };
53
- };
54
- };
55
- };
56
- export declare const updateFieldGroup: {
57
- tags: string[];
58
- summary: string;
59
- description: string;
60
- parameters: {
61
- name: string;
62
- in: string;
63
- description: string;
64
- required: boolean;
65
- schema: {
66
- type: string;
67
- format: string;
68
- };
69
- }[];
70
- requestBody: {
71
- content: {
72
- 'application/json': {
73
- schema: {
74
- [x: string]: any;
75
- };
76
- };
77
- };
78
- };
79
- responses: {
80
- '200': {
81
- description: string;
82
- content: {
83
- 'application/json': {
84
- schema: {
85
- type: string;
86
- };
87
- };
88
- };
89
- };
90
- };
91
- };
92
- export declare const deleteFieldGroup: {
93
- tags: string[];
94
- summary: string;
95
- description: string;
96
- parameters: {
97
- name: string;
98
- in: string;
99
- description: string;
100
- required: boolean;
101
- schema: {
102
- type: string;
103
- format: string;
104
- };
105
- }[];
106
- responses: {
107
- '200': {
108
- description: string;
109
- content: {
110
- 'application/json': {
111
- schema: {
112
- type: string;
113
- };
114
- };
115
- };
116
- };
117
- };
118
- };
119
- export declare const swFieldGroup: {
120
- '/field_group': {
121
- post: {
122
- tags: string[];
123
- summary: string;
124
- description: string;
125
- requestBody: {
126
- content: {
127
- 'application/json': {
128
- schema: {
129
- [x: string]: any;
130
- };
131
- };
132
- };
133
- };
134
- responses: {
135
- '200': {
136
- description: string;
137
- content: {
138
- 'application/json': {
139
- schema: {
140
- [x: string]: any;
141
- };
142
- };
143
- };
144
- };
145
- };
146
- };
147
- get: {
148
- tags: string[];
149
- summary: string;
150
- description: string;
151
- parameters: {
152
- in: string;
153
- name: string;
154
- schema: {
155
- type: string;
156
- enum: IEntity[];
157
- };
158
- }[];
159
- responses: {
160
- '200': {
161
- description: string;
162
- content: {
163
- 'application/json': {
164
- schema: {
165
- type: string;
166
- items: {
167
- [x: string]: any;
168
- };
169
- };
170
- };
171
- };
172
- };
173
- };
174
- };
175
- };
176
- '/field_group/{id}': {
177
- put: {
178
- tags: string[];
179
- summary: string;
180
- description: string;
181
- parameters: {
182
- name: string;
183
- in: string;
184
- description: string;
185
- required: boolean;
186
- schema: {
187
- type: string;
188
- format: string;
189
- };
190
- }[];
191
- requestBody: {
192
- content: {
193
- 'application/json': {
194
- schema: {
195
- [x: string]: any;
196
- };
197
- };
198
- };
199
- };
200
- responses: {
201
- '200': {
202
- description: string;
203
- content: {
204
- 'application/json': {
205
- schema: {
206
- type: string;
207
- };
208
- };
209
- };
210
- };
211
- };
212
- };
213
- delete: {
214
- tags: string[];
215
- summary: string;
216
- description: string;
217
- parameters: {
218
- name: string;
219
- in: string;
220
- description: string;
221
- required: boolean;
222
- schema: {
223
- type: string;
224
- format: string;
225
- };
226
- }[];
227
- responses: {
228
- '200': {
229
- description: string;
230
- content: {
231
- 'application/json': {
232
- schema: {
233
- type: string;
234
- };
235
- };
236
- };
237
- };
238
- };
239
- };
240
- };
241
- };
@@ -1,155 +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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- var __importDefault = (this && this.__importDefault) || function (mod) {
23
- return (mod && mod.__esModule) ? mod : { "default": mod };
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.swFieldGroup = exports.deleteFieldGroup = exports.updateFieldGroup = exports.createFieldGroup = exports.getFieldGroup = void 0;
27
- var joi_to_swagger_1 = __importDefault(require("joi-to-swagger"));
28
- var interfaces_1 = require("./interfaces");
29
- var route_schema_1 = require("./route.schema");
30
- var createFieldGroupSchema = (0, joi_to_swagger_1.default)(route_schema_1.createBody).swagger;
31
- exports.getFieldGroup = {
32
- tags: ['Field Group'],
33
- summary: 'List Field Group',
34
- description: 'List Field Group',
35
- parameters: [
36
- {
37
- in: 'query',
38
- name: 'entity',
39
- schema: {
40
- type: 'string',
41
- enum: __spreadArray([], Object.values(interfaces_1.IEntity), true),
42
- },
43
- },
44
- ],
45
- responses: {
46
- '200': {
47
- description: 'Field Group successfully List',
48
- content: {
49
- 'application/json': {
50
- schema: {
51
- type: 'array',
52
- items: __assign({}, createFieldGroupSchema),
53
- },
54
- },
55
- },
56
- },
57
- },
58
- };
59
- exports.createFieldGroup = {
60
- tags: ['Field Group'],
61
- summary: 'Create Field Group',
62
- description: 'Create Field Group',
63
- requestBody: {
64
- content: {
65
- 'application/json': {
66
- schema: __assign({}, createFieldGroupSchema),
67
- },
68
- },
69
- },
70
- responses: {
71
- '200': {
72
- description: 'Field Group successfully create',
73
- content: {
74
- 'application/json': {
75
- schema: __assign({}, createFieldGroupSchema),
76
- },
77
- },
78
- },
79
- },
80
- };
81
- exports.updateFieldGroup = {
82
- tags: ['Field Group'],
83
- summary: 'Update Field Group',
84
- description: 'Update Field Group',
85
- parameters: [
86
- {
87
- name: 'id',
88
- in: 'path',
89
- description: 'ID field group to edit',
90
- required: true,
91
- schema: {
92
- type: 'string',
93
- format: 'uuid',
94
- },
95
- },
96
- ],
97
- requestBody: {
98
- content: {
99
- 'application/json': {
100
- schema: __assign({}, createFieldGroupSchema),
101
- },
102
- },
103
- },
104
- responses: {
105
- '200': {
106
- description: 'Updated with success',
107
- content: {
108
- 'application/json': {
109
- schema: {
110
- type: 'boolean',
111
- },
112
- },
113
- },
114
- },
115
- },
116
- };
117
- exports.deleteFieldGroup = {
118
- tags: ['Field Group'],
119
- summary: 'Delete Field Group',
120
- description: 'Delete Field Group',
121
- parameters: [
122
- {
123
- name: 'id',
124
- in: 'path',
125
- description: 'ID field group to edit',
126
- required: true,
127
- schema: {
128
- type: 'string',
129
- format: 'uuid',
130
- },
131
- },
132
- ],
133
- responses: {
134
- '200': {
135
- description: 'Delete with success',
136
- content: {
137
- 'application/json': {
138
- schema: {
139
- type: 'boolean',
140
- },
141
- },
142
- },
143
- },
144
- },
145
- };
146
- exports.swFieldGroup = {
147
- '/field_group': {
148
- post: __assign({}, exports.createFieldGroup),
149
- get: __assign({}, exports.getFieldGroup),
150
- },
151
- '/field_group/{id}': {
152
- put: __assign({}, exports.updateFieldGroup),
153
- delete: __assign({}, exports.deleteFieldGroup),
154
- },
155
- };
@@ -1,6 +0,0 @@
1
- import joi from 'joi';
2
- export declare const createUpdateDeleteBodyResponse: joi.ObjectSchema<any>;
3
- export declare const findByIdBodyResponse: joi.ObjectSchema<any>;
4
- export declare const findByNameBodyResponse: joi.ObjectSchema<any>;
5
- export declare const findDetailedBodyResponse: joi.ArraySchema<any[]>;
6
- export declare const findByEntityResponse: joi.ArraySchema<any[]>;
@@ -1,66 +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.findByEntityResponse = exports.findDetailedBodyResponse = exports.findByNameBodyResponse = exports.findByIdBodyResponse = exports.createUpdateDeleteBodyResponse = void 0;
41
- var joi_1 = __importDefault(require("joi"));
42
- var IShared = __importStar(require("../../../shared/interface"));
43
- var tests_1 = require("../field/tests");
44
- var createUpdateDeleteBodyResponseKeys = {
45
- id: joi_1.default.string().uuid().required(),
46
- group_name: joi_1.default.string().required(),
47
- entity: joi_1.default.string().required(),
48
- };
49
- exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
50
- exports.findByIdBodyResponse = joi_1.default
51
- .object()
52
- .keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps))
53
- .allow(null);
54
- exports.findByNameBodyResponse = joi_1.default
55
- .object()
56
- .keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps))
57
- .allow(null);
58
- exports.findDetailedBodyResponse = joi_1.default.array().items(joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps)));
59
- var findByEntityResponseKeys = {
60
- group_name: joi_1.default.string().required(),
61
- entity: joi_1.default.string().required(),
62
- fields: joi_1.default.array().items(tests_1.findDetailedBodyResponse).required(),
63
- };
64
- exports.findByEntityResponse = joi_1.default.array().items(joi_1.default.object().keys({
65
- findByEntityResponseKeys: findByEntityResponseKeys,
66
- }));