@buildery/ts-api-kit 6.2.2 → 7.0.0

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 (359) hide show
  1. package/dist/Api.d.ts +21 -21
  2. package/dist/Api.js +38 -42
  3. package/dist/Api.js.map +1 -1
  4. package/dist/ApiConfigs.js +12 -16
  5. package/dist/ApiConfigs.js.map +1 -1
  6. package/dist/compose/index.d.ts +1 -1
  7. package/dist/compose/index.js +1 -17
  8. package/dist/compose/index.js.map +1 -1
  9. package/dist/compose/useSingleton.d.ts +1 -1
  10. package/dist/compose/useSingleton.js +6 -10
  11. package/dist/compose/useSingleton.js.map +1 -1
  12. package/dist/constants.d.ts +1 -1
  13. package/dist/constants.js +8 -11
  14. package/dist/constants.js.map +1 -1
  15. package/dist/features/api/AbstractApi.d.ts +1 -1
  16. package/dist/features/api/AbstractApi.js +4 -9
  17. package/dist/features/api/AbstractApi.js.map +1 -1
  18. package/dist/features/api/index.d.ts +1 -1
  19. package/dist/features/api/index.js +1 -17
  20. package/dist/features/api/index.js.map +1 -1
  21. package/dist/features/auth/errors/AuthError.js +1 -5
  22. package/dist/features/auth/errors/AuthError.js.map +1 -1
  23. package/dist/features/auth/errors/index.d.ts +1 -1
  24. package/dist/features/auth/errors/index.js +1 -17
  25. package/dist/features/auth/errors/index.js.map +1 -1
  26. package/dist/features/auth/index.d.ts +3 -3
  27. package/dist/features/auth/index.js +3 -19
  28. package/dist/features/auth/index.js.map +1 -1
  29. package/dist/features/auth/services/AuthAxiosService.js +10 -15
  30. package/dist/features/auth/services/AuthAxiosService.js.map +1 -1
  31. package/dist/features/auth/services/AuthService.d.ts +2 -2
  32. package/dist/features/auth/services/AuthService.js +5 -9
  33. package/dist/features/auth/services/AuthService.js.map +1 -1
  34. package/dist/features/auth/services/AuthTokensService.d.ts +5 -5
  35. package/dist/features/auth/services/AuthTokensService.js +14 -18
  36. package/dist/features/auth/services/AuthTokensService.js.map +1 -1
  37. package/dist/features/auth/services/index.d.ts +3 -3
  38. package/dist/features/auth/services/index.js +3 -19
  39. package/dist/features/auth/services/index.js.map +1 -1
  40. package/dist/features/auth/types/AuthActivateUser.js +1 -2
  41. package/dist/features/auth/types/AuthApiTokens.js +1 -2
  42. package/dist/features/auth/types/AuthChangePassword.js +1 -2
  43. package/dist/features/auth/types/AuthCode.js +1 -2
  44. package/dist/features/auth/types/AuthConfirmResetPassword.js +1 -2
  45. package/dist/features/auth/types/AuthSignIn.js +1 -2
  46. package/dist/features/auth/types/AuthUserJWT.js +1 -2
  47. package/dist/features/auth/types/index.d.ts +7 -7
  48. package/dist/features/auth/types/index.js +7 -23
  49. package/dist/features/auth/types/index.js.map +1 -1
  50. package/dist/features/callout/Callout.d.ts +2 -2
  51. package/dist/features/callout/Callout.js +11 -14
  52. package/dist/features/callout/Callout.js.map +1 -1
  53. package/dist/features/callout/CalloutMiddlewareService.d.ts +1 -1
  54. package/dist/features/callout/CalloutMiddlewareService.js +6 -10
  55. package/dist/features/callout/CalloutMiddlewareService.js.map +1 -1
  56. package/dist/features/callout/CalloutMiddlewares.d.ts +1 -1
  57. package/dist/features/callout/CalloutMiddlewares.js +9 -13
  58. package/dist/features/callout/CalloutMiddlewares.js.map +1 -1
  59. package/dist/features/callout/Calloutable.d.ts +2 -2
  60. package/dist/features/callout/Calloutable.js +6 -10
  61. package/dist/features/callout/Calloutable.js.map +1 -1
  62. package/dist/features/callout/index.d.ts +5 -5
  63. package/dist/features/callout/index.js +5 -21
  64. package/dist/features/callout/index.js.map +1 -1
  65. package/dist/features/callout/types.d.ts +2 -2
  66. package/dist/features/callout/types.js +1 -2
  67. package/dist/features/crud/index.d.ts +2 -2
  68. package/dist/features/crud/index.js +2 -18
  69. package/dist/features/crud/index.js.map +1 -1
  70. package/dist/features/crud/operations/abstract/AbstractCRUDApi.d.ts +2 -2
  71. package/dist/features/crud/operations/abstract/AbstractCRUDApi.js +3 -6
  72. package/dist/features/crud/operations/abstract/AbstractCRUDApi.js.map +1 -1
  73. package/dist/features/crud/operations/abstract/index.d.ts +1 -1
  74. package/dist/features/crud/operations/abstract/index.js +1 -17
  75. package/dist/features/crud/operations/abstract/index.js.map +1 -1
  76. package/dist/features/crud/operations/index.d.ts +2 -2
  77. package/dist/features/crud/operations/index.js +2 -18
  78. package/dist/features/crud/operations/index.js.map +1 -1
  79. package/dist/features/crud/operations/operations/Create.d.ts +1 -1
  80. package/dist/features/crud/operations/operations/Create.js +5 -10
  81. package/dist/features/crud/operations/operations/Create.js.map +1 -1
  82. package/dist/features/crud/operations/operations/CreateBulk.d.ts +1 -1
  83. package/dist/features/crud/operations/operations/CreateBulk.js +5 -9
  84. package/dist/features/crud/operations/operations/CreateBulk.js.map +1 -1
  85. package/dist/features/crud/operations/operations/DeleteByFilters.d.ts +1 -1
  86. package/dist/features/crud/operations/operations/DeleteByFilters.js +5 -9
  87. package/dist/features/crud/operations/operations/DeleteByFilters.js.map +1 -1
  88. package/dist/features/crud/operations/operations/DeleteById.d.ts +1 -1
  89. package/dist/features/crud/operations/operations/DeleteById.js +6 -10
  90. package/dist/features/crud/operations/operations/DeleteById.js.map +1 -1
  91. package/dist/features/crud/operations/operations/DeleteByIds.d.ts +1 -1
  92. package/dist/features/crud/operations/operations/DeleteByIds.js +7 -11
  93. package/dist/features/crud/operations/operations/DeleteByIds.js.map +1 -1
  94. package/dist/features/crud/operations/operations/GetAll.d.ts +1 -1
  95. package/dist/features/crud/operations/operations/GetAll.js +6 -10
  96. package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
  97. package/dist/features/crud/operations/operations/GetByFilters.d.ts +2 -2
  98. package/dist/features/crud/operations/operations/GetByFilters.js +6 -10
  99. package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -1
  100. package/dist/features/crud/operations/operations/GetById.d.ts +1 -1
  101. package/dist/features/crud/operations/operations/GetById.js +6 -10
  102. package/dist/features/crud/operations/operations/GetById.js.map +1 -1
  103. package/dist/features/crud/operations/operations/GetByIds.d.ts +1 -1
  104. package/dist/features/crud/operations/operations/GetByIds.js +6 -10
  105. package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
  106. package/dist/features/crud/operations/operations/Update.d.ts +1 -1
  107. package/dist/features/crud/operations/operations/Update.js +6 -10
  108. package/dist/features/crud/operations/operations/Update.js.map +1 -1
  109. package/dist/features/crud/operations/operations/UpdateBulk.d.ts +1 -1
  110. package/dist/features/crud/operations/operations/UpdateBulk.js +6 -10
  111. package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
  112. package/dist/features/crud/operations/operations/Upsert.d.ts +1 -1
  113. package/dist/features/crud/operations/operations/Upsert.js +6 -10
  114. package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
  115. package/dist/features/crud/operations/operations/UpsertBulk.d.ts +1 -1
  116. package/dist/features/crud/operations/operations/UpsertBulk.js +6 -10
  117. package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
  118. package/dist/features/crud/operations/operations/index.d.ts +13 -13
  119. package/dist/features/crud/operations/operations/index.js +13 -29
  120. package/dist/features/crud/operations/operations/index.js.map +1 -1
  121. package/dist/features/crud/sync/compose/index.d.ts +1 -1
  122. package/dist/features/crud/sync/compose/index.js +1 -17
  123. package/dist/features/crud/sync/compose/index.js.map +1 -1
  124. package/dist/features/crud/sync/compose/useCrudSync.d.ts +4 -4
  125. package/dist/features/crud/sync/compose/useCrudSync.js +34 -33
  126. package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
  127. package/dist/features/crud/sync/constants/CrudSyncAction.js +2 -5
  128. package/dist/features/crud/sync/constants/CrudSyncAction.js.map +1 -1
  129. package/dist/features/crud/sync/constants/CrudSyncConstants.js +1 -4
  130. package/dist/features/crud/sync/constants/CrudSyncConstants.js.map +1 -1
  131. package/dist/features/crud/sync/constants/index.d.ts +2 -2
  132. package/dist/features/crud/sync/constants/index.js +2 -18
  133. package/dist/features/crud/sync/constants/index.js.map +1 -1
  134. package/dist/features/crud/sync/error/CrudSyncError.js +1 -5
  135. package/dist/features/crud/sync/error/CrudSyncError.js.map +1 -1
  136. package/dist/features/crud/sync/error/index.d.ts +1 -1
  137. package/dist/features/crud/sync/error/index.js +1 -17
  138. package/dist/features/crud/sync/error/index.js.map +1 -1
  139. package/dist/features/crud/sync/index.d.ts +6 -6
  140. package/dist/features/crud/sync/index.js +6 -22
  141. package/dist/features/crud/sync/index.js.map +1 -1
  142. package/dist/features/crud/sync/middlewares/PushCrudEvent.d.ts +3 -3
  143. package/dist/features/crud/sync/middlewares/PushCrudEvent.js +6 -10
  144. package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
  145. package/dist/features/crud/sync/middlewares/index.d.ts +1 -1
  146. package/dist/features/crud/sync/middlewares/index.js +1 -17
  147. package/dist/features/crud/sync/middlewares/index.js.map +1 -1
  148. package/dist/features/crud/sync/services/CrudSyncService.d.ts +1 -1
  149. package/dist/features/crud/sync/services/CrudSyncService.js +3 -7
  150. package/dist/features/crud/sync/services/CrudSyncService.js.map +1 -1
  151. package/dist/features/crud/sync/services/index.d.ts +1 -1
  152. package/dist/features/crud/sync/services/index.js +1 -17
  153. package/dist/features/crud/sync/services/index.js.map +1 -1
  154. package/dist/features/crud/sync/sync/CrudSyncCreate.d.ts +2 -2
  155. package/dist/features/crud/sync/sync/CrudSyncCreate.js +6 -10
  156. package/dist/features/crud/sync/sync/CrudSyncCreate.js.map +1 -1
  157. package/dist/features/crud/sync/sync/CrudSyncDelete.d.ts +2 -2
  158. package/dist/features/crud/sync/sync/CrudSyncDelete.js +6 -10
  159. package/dist/features/crud/sync/sync/CrudSyncDelete.js.map +1 -1
  160. package/dist/features/crud/sync/sync/CrudSyncUpdate.d.ts +2 -2
  161. package/dist/features/crud/sync/sync/CrudSyncUpdate.js +6 -10
  162. package/dist/features/crud/sync/sync/CrudSyncUpdate.js.map +1 -1
  163. package/dist/features/crud/sync/sync/CrudSyncUpsert.d.ts +2 -2
  164. package/dist/features/crud/sync/sync/CrudSyncUpsert.js +5 -9
  165. package/dist/features/crud/sync/sync/CrudSyncUpsert.js.map +1 -1
  166. package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.d.ts +1 -1
  167. package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.js +4 -8
  168. package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.js.map +1 -1
  169. package/dist/features/crud/sync/sync/abstract/index.d.ts +1 -1
  170. package/dist/features/crud/sync/sync/abstract/index.js +1 -17
  171. package/dist/features/crud/sync/sync/abstract/index.js.map +1 -1
  172. package/dist/features/crud/sync/sync/index.d.ts +5 -5
  173. package/dist/features/crud/sync/sync/index.js +5 -21
  174. package/dist/features/crud/sync/sync/index.js.map +1 -1
  175. package/dist/features/index.d.ts +4 -4
  176. package/dist/features/index.js +4 -20
  177. package/dist/features/index.js.map +1 -1
  178. package/dist/index.d.ts +8 -8
  179. package/dist/index.js +14 -33
  180. package/dist/index.js.map +1 -1
  181. package/dist/main.d.ts +1 -0
  182. package/dist/main.js +1 -0
  183. package/dist/micro/auth/AuthApi.d.ts +1 -1
  184. package/dist/micro/auth/AuthApi.js +20 -24
  185. package/dist/micro/auth/AuthApi.js.map +1 -1
  186. package/dist/micro/auth/WorkspaceApi.d.ts +1 -1
  187. package/dist/micro/auth/WorkspaceApi.js +6 -10
  188. package/dist/micro/auth/WorkspaceApi.js.map +1 -1
  189. package/dist/micro/auth/index.d.ts +2 -2
  190. package/dist/micro/auth/index.js +2 -18
  191. package/dist/micro/auth/index.js.map +1 -1
  192. package/dist/micro/auth/types/InitWorkspace.d.ts +1 -1
  193. package/dist/micro/auth/types/InitWorkspace.js +1 -2
  194. package/dist/micro/auth/types/index.d.ts +1 -1
  195. package/dist/micro/auth/types/index.js +1 -17
  196. package/dist/micro/auth/types/index.js.map +1 -1
  197. package/dist/micro/blueprint/types.js +1 -2
  198. package/dist/micro/index.d.ts +4 -4
  199. package/dist/micro/index.js +4 -20
  200. package/dist/micro/index.js.map +1 -1
  201. package/dist/micro/query/FieldApi.d.ts +2 -2
  202. package/dist/micro/query/FieldApi.js +7 -11
  203. package/dist/micro/query/FieldApi.js.map +1 -1
  204. package/dist/micro/query/SObjectApi.d.ts +1 -1
  205. package/dist/micro/query/SObjectApi.js +4 -8
  206. package/dist/micro/query/SObjectApi.js.map +1 -1
  207. package/dist/micro/query/error/ObjectApiError.js +1 -5
  208. package/dist/micro/query/error/ObjectApiError.js.map +1 -1
  209. package/dist/micro/query/error/index.d.ts +1 -1
  210. package/dist/micro/query/error/index.js +1 -17
  211. package/dist/micro/query/error/index.js.map +1 -1
  212. package/dist/micro/query/index.d.ts +4 -4
  213. package/dist/micro/query/index.js +4 -20
  214. package/dist/micro/query/index.js.map +1 -1
  215. package/dist/micro/query/types/FieldType.js +2 -5
  216. package/dist/micro/query/types/FieldType.js.map +1 -1
  217. package/dist/micro/query/types/PicklistValue.js +1 -2
  218. package/dist/micro/query/types/SObject.d.ts +1 -1
  219. package/dist/micro/query/types/SObject.js +1 -2
  220. package/dist/micro/query/types/SObjectField.d.ts +3 -3
  221. package/dist/micro/query/types/SObjectField.js +1 -2
  222. package/dist/micro/query/types/index.d.ts +4 -4
  223. package/dist/micro/query/types/index.js +4 -20
  224. package/dist/micro/query/types/index.js.map +1 -1
  225. package/dist/micro/security/PermissionApi.d.ts +2 -2
  226. package/dist/micro/security/PermissionApi.js +7 -11
  227. package/dist/micro/security/PermissionApi.js.map +1 -1
  228. package/dist/micro/security/PermissionCategoryApi.d.ts +1 -1
  229. package/dist/micro/security/PermissionCategoryApi.js +4 -8
  230. package/dist/micro/security/PermissionCategoryApi.js.map +1 -1
  231. package/dist/micro/security/PermissionSetApi.d.ts +2 -2
  232. package/dist/micro/security/PermissionSetApi.js +6 -10
  233. package/dist/micro/security/PermissionSetApi.js.map +1 -1
  234. package/dist/micro/security/TeamApi.d.ts +2 -2
  235. package/dist/micro/security/TeamApi.js +6 -10
  236. package/dist/micro/security/TeamApi.js.map +1 -1
  237. package/dist/micro/security/index.d.ts +5 -5
  238. package/dist/micro/security/index.js +5 -21
  239. package/dist/micro/security/index.js.map +1 -1
  240. package/dist/micro/security/types/CalculatedPermissionAssignment.js +1 -2
  241. package/dist/micro/security/types/Permission.js +1 -2
  242. package/dist/micro/security/types/PermissionAssignment.js +1 -2
  243. package/dist/micro/security/types/PermissionCategory.js +1 -2
  244. package/dist/micro/security/types/PermissionDefinition.js +1 -2
  245. package/dist/micro/security/types/PermissionGroup.js +1 -2
  246. package/dist/micro/security/types/PermissionSet.d.ts +1 -1
  247. package/dist/micro/security/types/PermissionSet.js +1 -2
  248. package/dist/micro/security/types/PermissionSetAssignment.js +1 -2
  249. package/dist/micro/security/types/Team.d.ts +1 -1
  250. package/dist/micro/security/types/Team.js +1 -2
  251. package/dist/micro/security/types/TeamAssignment.js +1 -2
  252. package/dist/micro/security/types/index.d.ts +10 -10
  253. package/dist/micro/security/types/index.js +10 -26
  254. package/dist/micro/security/types/index.js.map +1 -1
  255. package/dist/micro/workspace/ModuleApi.d.ts +2 -2
  256. package/dist/micro/workspace/ModuleApi.js +7 -11
  257. package/dist/micro/workspace/ModuleApi.js.map +1 -1
  258. package/dist/micro/workspace/index.d.ts +2 -2
  259. package/dist/micro/workspace/index.js +2 -18
  260. package/dist/micro/workspace/index.js.map +1 -1
  261. package/dist/micro/workspace/types/CreateUser.js +1 -2
  262. package/dist/micro/workspace/types/EUserStatus.js +2 -5
  263. package/dist/micro/workspace/types/EUserStatus.js.map +1 -1
  264. package/dist/micro/workspace/types/Module.d.ts +1 -1
  265. package/dist/micro/workspace/types/Module.js +1 -2
  266. package/dist/micro/workspace/types/ModuleAction.js +1 -2
  267. package/dist/micro/workspace/types/User.d.ts +3 -3
  268. package/dist/micro/workspace/types/User.js +1 -2
  269. package/dist/micro/workspace/types/index.d.ts +5 -5
  270. package/dist/micro/workspace/types/index.js +5 -21
  271. package/dist/micro/workspace/types/index.js.map +1 -1
  272. package/dist/services/MapService.js +2 -6
  273. package/dist/services/MapService.js.map +1 -1
  274. package/dist/services/ResponseService.d.ts +1 -1
  275. package/dist/services/ResponseService.js +5 -12
  276. package/dist/services/ResponseService.js.map +1 -1
  277. package/dist/services/UrlService.d.ts +1 -1
  278. package/dist/services/UrlService.js +5 -10
  279. package/dist/services/UrlService.js.map +1 -1
  280. package/dist/services/index.d.ts +3 -3
  281. package/dist/services/index.js +3 -19
  282. package/dist/services/index.js.map +1 -1
  283. package/dist/types.d.ts +1 -1
  284. package/dist/types.js +4 -7
  285. package/dist/types.js.map +1 -1
  286. package/package.json +15 -12
  287. package/dist/features/callout/decorators/Calloutable.d.ts +0 -3
  288. package/dist/features/callout/decorators/Calloutable.js +0 -20
  289. package/dist/features/callout/decorators/Calloutable.js.map +0 -1
  290. package/dist/features/callout/decorators/index.d.ts +0 -1
  291. package/dist/features/callout/decorators/index.js +0 -18
  292. package/dist/features/callout/decorators/index.js.map +0 -1
  293. package/dist/features/callout/types/ApiCalloutMiddleware.d.ts +0 -2
  294. package/dist/features/callout/types/ApiCalloutMiddleware.js +0 -3
  295. package/dist/features/callout/types/ApiCalloutMiddleware.js.map +0 -1
  296. package/dist/features/callout/types/index.d.ts +0 -1
  297. package/dist/features/callout/types/index.js +0 -18
  298. package/dist/features/callout/types/index.js.map +0 -1
  299. package/dist/micro/security/types/IPermission.d.ts +0 -10
  300. package/dist/micro/security/types/IPermission.js +0 -3
  301. package/dist/micro/security/types/IPermission.js.map +0 -1
  302. package/dist/micro/security/types/IPermissionAssignment.d.ts +0 -6
  303. package/dist/micro/security/types/IPermissionAssignment.js +0 -3
  304. package/dist/micro/security/types/IPermissionAssignment.js.map +0 -1
  305. package/dist/micro/security/types/IPermissionCategory.d.ts +0 -5
  306. package/dist/micro/security/types/IPermissionCategory.js +0 -3
  307. package/dist/micro/security/types/IPermissionCategory.js.map +0 -1
  308. package/dist/micro/security/types/IPermissionDefinition.d.ts +0 -6
  309. package/dist/micro/security/types/IPermissionDefinition.js +0 -3
  310. package/dist/micro/security/types/IPermissionDefinition.js.map +0 -1
  311. package/dist/micro/security/types/IPermissionGroup.d.ts +0 -4
  312. package/dist/micro/security/types/IPermissionGroup.js +0 -3
  313. package/dist/micro/security/types/IPermissionGroup.js.map +0 -1
  314. package/dist/micro/security/types/IPermissionSet.d.ts +0 -6
  315. package/dist/micro/security/types/IPermissionSet.js +0 -3
  316. package/dist/micro/security/types/IPermissionSet.js.map +0 -1
  317. package/dist/tsconfig.build.tsbuildinfo +0 -1
  318. package/dist/types/ApiQueryOptions.d.ts +0 -14
  319. package/dist/types/ApiQueryOptions.js +0 -3
  320. package/dist/types/ApiQueryOptions.js.map +0 -1
  321. package/dist/types/Constructable.d.ts +0 -3
  322. package/dist/types/Constructable.js +0 -3
  323. package/dist/types/Constructable.js.map +0 -1
  324. package/dist/types/Constructor.d.ts +0 -1
  325. package/dist/types/Constructor.js +0 -3
  326. package/dist/types/Constructor.js.map +0 -1
  327. package/dist/types/HasApiName.d.ts +0 -3
  328. package/dist/types/HasApiName.js +0 -3
  329. package/dist/types/HasApiName.js.map +0 -1
  330. package/dist/types/HasCallouts.d.ts +0 -4
  331. package/dist/types/HasCallouts.js +0 -3
  332. package/dist/types/HasCallouts.js.map +0 -1
  333. package/dist/types/HasDBId.d.ts +0 -3
  334. package/dist/types/HasDBId.js +0 -3
  335. package/dist/types/HasDBId.js.map +0 -1
  336. package/dist/types/HasDescription.d.ts +0 -3
  337. package/dist/types/HasDescription.js +0 -3
  338. package/dist/types/HasDescription.js.map +0 -1
  339. package/dist/types/HasEmail.d.ts +0 -3
  340. package/dist/types/HasEmail.js +0 -3
  341. package/dist/types/HasEmail.js.map +0 -1
  342. package/dist/types/HasId.d.ts +0 -3
  343. package/dist/types/HasId.js +0 -3
  344. package/dist/types/HasId.js.map +0 -1
  345. package/dist/types/HasLabel.d.ts +0 -3
  346. package/dist/types/HasLabel.js +0 -3
  347. package/dist/types/HasLabel.js.map +0 -1
  348. package/dist/types/HasMode.d.ts +0 -3
  349. package/dist/types/HasMode.js +0 -3
  350. package/dist/types/HasMode.js.map +0 -1
  351. package/dist/types/HasNamespace.d.ts +0 -3
  352. package/dist/types/HasNamespace.js +0 -3
  353. package/dist/types/HasNamespace.js.map +0 -1
  354. package/dist/types/HasOrder.d.ts +0 -3
  355. package/dist/types/HasOrder.js +0 -3
  356. package/dist/types/HasOrder.js.map +0 -1
  357. package/dist/types/index.d.ts +0 -11
  358. package/dist/types/index.js +0 -28
  359. package/dist/types/index.js.map +0 -1
package/dist/Api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Module, Permission, PermissionAssignment, PermissionCategory, PermissionDefinition, PermissionGroup, PermissionSet, SObject, SObjectField, Team, User, WorkspaceApi } from "./micro";
2
- import { HasCallouts, MicroserviceName } from "./types";
3
- import { AuthApi } from "./micro/auth/AuthApi";
1
+ import { Module, Permission, PermissionAssignment, PermissionCategory, PermissionDefinition, PermissionGroup, PermissionSet, SObject, SObjectField, Team, User, WorkspaceApi } from "./micro/index.js";
2
+ import { HasCallouts, MicroserviceName } from "./types.js";
3
+ import { AuthApi } from "./micro/auth/AuthApi.js";
4
4
  import { Flow } from '@buildery/flow';
5
5
  export type ApiLayer<T> = {
6
6
  [Micro in keyof T]: {
@@ -47,7 +47,7 @@ declare function getApi(): {
47
47
  readonly _serverName: MicroserviceName;
48
48
  get serverUrl(): string;
49
49
  getById(entityId: string): import("axios").AxiosRequestConfig;
50
- getByFilters(query?: import("./types").ApiQueryRequest<T>): import("axios").AxiosRequestConfig;
50
+ getByFilters(query?: import("./types.js").ApiQueryRequest<T> | undefined): import("axios").AxiosRequestConfig;
51
51
  create(entity: T): import("axios").AxiosRequestConfig<T>;
52
52
  update(entity: T): import("axios").AxiosRequestConfig<T>;
53
53
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
@@ -57,7 +57,7 @@ declare function getApi(): {
57
57
  readonly permission: {
58
58
  getByCategoryId(categoryId: string): import("axios").AxiosRequestConfig;
59
59
  getByCategoryIds(categoryIds: Array<string>): import("axios").AxiosRequestConfig;
60
- getWithAssignments(data: import("./types").ApiQueryRequest<any> & {
60
+ getWithAssignments(data: import("./types.js").ApiQueryRequest<any> & {
61
61
  permissionSetId: string;
62
62
  }): import("axios").AxiosRequestConfig;
63
63
  readonly objectName: string;
@@ -65,7 +65,7 @@ declare function getApi(): {
65
65
  get serverUrl(): string;
66
66
  getAll(): import("axios").AxiosRequestConfig;
67
67
  getById(entityId: string): import("axios").AxiosRequestConfig;
68
- getByFilters(query?: import("./types").ApiQueryRequest<Permission>): import("axios").AxiosRequestConfig;
68
+ getByFilters(query?: import("./types.js").ApiQueryRequest<Permission> | undefined): import("axios").AxiosRequestConfig;
69
69
  create(entity: Permission): import("axios").AxiosRequestConfig<Permission>;
70
70
  update(entity: Permission): import("axios").AxiosRequestConfig<Permission>;
71
71
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
@@ -77,7 +77,7 @@ declare function getApi(): {
77
77
  get serverUrl(): string;
78
78
  getAll(): import("axios").AxiosRequestConfig;
79
79
  getById(entityId: string): import("axios").AxiosRequestConfig;
80
- getByFilters(query?: import("./types").ApiQueryRequest<PermissionCategory>): import("axios").AxiosRequestConfig;
80
+ getByFilters(query?: import("./types.js").ApiQueryRequest<PermissionCategory> | undefined): import("axios").AxiosRequestConfig;
81
81
  create(entity: PermissionCategory): import("axios").AxiosRequestConfig<PermissionCategory>;
82
82
  update(entity: PermissionCategory): import("axios").AxiosRequestConfig<PermissionCategory>;
83
83
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
@@ -88,7 +88,7 @@ declare function getApi(): {
88
88
  readonly _serverName: MicroserviceName;
89
89
  get serverUrl(): string;
90
90
  getById(entityId: string): import("axios").AxiosRequestConfig;
91
- getByFilters(query?: import("./types").ApiQueryRequest<PermissionAssignment>): import("axios").AxiosRequestConfig;
91
+ getByFilters(query?: import("./types.js").ApiQueryRequest<PermissionAssignment> | undefined): import("axios").AxiosRequestConfig;
92
92
  create(entity: PermissionAssignment): import("axios").AxiosRequestConfig<PermissionAssignment>;
93
93
  update(entity: PermissionAssignment): import("axios").AxiosRequestConfig<PermissionAssignment>;
94
94
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
@@ -101,7 +101,7 @@ declare function getApi(): {
101
101
  get serverUrl(): string;
102
102
  getById(entityId: string): import("axios").AxiosRequestConfig;
103
103
  getByIds(entityIds: Array<string>): import("axios").AxiosRequestConfig;
104
- getByFilters(query?: import("./types").ApiQueryRequest<PermissionDefinition>): import("axios").AxiosRequestConfig;
104
+ getByFilters(query?: import("./types.js").ApiQueryRequest<PermissionDefinition> | undefined): import("axios").AxiosRequestConfig;
105
105
  create(entity: PermissionDefinition): import("axios").AxiosRequestConfig<PermissionDefinition>;
106
106
  update(entity: PermissionDefinition): import("axios").AxiosRequestConfig<PermissionDefinition>;
107
107
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
@@ -112,33 +112,33 @@ declare function getApi(): {
112
112
  readonly _serverName: MicroserviceName;
113
113
  get serverUrl(): string;
114
114
  getById(entityId: string): import("axios").AxiosRequestConfig;
115
- getByFilters(query?: import("./types").ApiQueryRequest<PermissionGroup>): import("axios").AxiosRequestConfig;
115
+ getByFilters(query?: import("./types.js").ApiQueryRequest<PermissionGroup> | undefined): import("axios").AxiosRequestConfig;
116
116
  create(entity: PermissionGroup): import("axios").AxiosRequestConfig<PermissionGroup>;
117
117
  update(entity: PermissionGroup): import("axios").AxiosRequestConfig<PermissionGroup>;
118
118
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
119
119
  };
120
120
  readonly permissionSet: {
121
- assign(assignment: import("./micro").PermissionSetAssignment): import("axios").AxiosRequestConfig;
122
- unAssign(assignment: import("./micro").PermissionSetAssignment): import("axios").AxiosRequestConfig;
121
+ assign(assignment: import("./micro/index.js").PermissionSetAssignment): import("axios").AxiosRequestConfig;
122
+ unAssign(assignment: import("./micro/index.js").PermissionSetAssignment): import("axios").AxiosRequestConfig;
123
123
  readonly objectName: string;
124
124
  readonly _serverName: MicroserviceName;
125
125
  get serverUrl(): string;
126
126
  getAll(): import("axios").AxiosRequestConfig;
127
127
  getById(entityId: string): import("axios").AxiosRequestConfig;
128
- getByFilters(query?: import("./types").ApiQueryRequest<PermissionSet>): import("axios").AxiosRequestConfig;
128
+ getByFilters(query?: import("./types.js").ApiQueryRequest<PermissionSet> | undefined): import("axios").AxiosRequestConfig;
129
129
  create(entity: PermissionSet): import("axios").AxiosRequestConfig<PermissionSet>;
130
130
  update(entity: PermissionSet): import("axios").AxiosRequestConfig<PermissionSet>;
131
131
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
132
132
  };
133
133
  readonly team: {
134
- assign(assignment: import("./micro").TeamAssignment): import("axios").AxiosRequestConfig;
135
- unassign(assignment: import("./micro").TeamAssignment): import("axios").AxiosRequestConfig;
134
+ assign(assignment: import("./micro/index.js").TeamAssignment): import("axios").AxiosRequestConfig;
135
+ unassign(assignment: import("./micro/index.js").TeamAssignment): import("axios").AxiosRequestConfig;
136
136
  readonly objectName: string;
137
137
  readonly _serverName: MicroserviceName;
138
138
  get serverUrl(): string;
139
139
  getAll(): import("axios").AxiosRequestConfig;
140
140
  getById(entityId: string): import("axios").AxiosRequestConfig;
141
- getByFilters(query?: import("./types").ApiQueryRequest<Team>): import("axios").AxiosRequestConfig;
141
+ getByFilters(query?: import("./types.js").ApiQueryRequest<Team> | undefined): import("axios").AxiosRequestConfig;
142
142
  create(entity: Team): import("axios").AxiosRequestConfig<Team>;
143
143
  update(entity: Team): import("axios").AxiosRequestConfig<Team>;
144
144
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
@@ -151,21 +151,21 @@ declare function getApi(): {
151
151
  readonly _serverName: MicroserviceName;
152
152
  get serverUrl(): string;
153
153
  getById(entityId: string): import("axios").AxiosRequestConfig;
154
- getByFilters(query?: import("./types").ApiQueryRequest<User>): import("axios").AxiosRequestConfig;
154
+ getByFilters(query?: import("./types.js").ApiQueryRequest<User> | undefined): import("axios").AxiosRequestConfig;
155
155
  create(entity: User): import("axios").AxiosRequestConfig<User>;
156
156
  update(entity: User): import("axios").AxiosRequestConfig<User>;
157
157
  deleteById(entityId: string): import("axios").AxiosRequestConfig;
158
158
  };
159
159
  readonly module: {
160
- createAction(moduleId: string, action: import("./micro").ModuleAction): import("axios").AxiosRequestConfig;
161
- updateAction(moduleId: string, actionName: string, action: import("./micro").ModuleAction): import("axios").AxiosRequestConfig;
160
+ createAction(moduleId: string, action: import("./micro/index.js").ModuleAction): import("axios").AxiosRequestConfig;
161
+ updateAction(moduleId: string, actionName: string, action: import("./micro/index.js").ModuleAction): import("axios").AxiosRequestConfig;
162
162
  deleteAction(moduleId: string, actionName: string): import("axios").AxiosRequestConfig;
163
163
  readonly objectName: string;
164
164
  readonly _serverName: MicroserviceName;
165
165
  get serverUrl(): string;
166
166
  getAll(): import("axios").AxiosRequestConfig;
167
167
  getById(entityId: string): import("axios").AxiosRequestConfig;
168
- getByFilters(query?: import("./types").ApiQueryRequest<Module>): import("axios").AxiosRequestConfig;
168
+ getByFilters(query?: import("./types.js").ApiQueryRequest<Module> | undefined): import("axios").AxiosRequestConfig;
169
169
  create(entity: Module): import("axios").AxiosRequestConfig<Module>;
170
170
  update(entity: Module): import("axios").AxiosRequestConfig<Module>;
171
171
  upsert(entity: Module): import("axios").AxiosRequestConfig<Module>;
@@ -193,7 +193,7 @@ declare function getApi(): {
193
193
  readonly _serverName: MicroserviceName;
194
194
  get serverUrl(): string;
195
195
  getById(entityId: string): import("axios").AxiosRequestConfig;
196
- getByFilters(query?: import("./types").ApiQueryRequest<unknown>): import("axios").AxiosRequestConfig;
196
+ getByFilters(query?: import("./types.js").ApiQueryRequest<unknown> | undefined): import("axios").AxiosRequestConfig;
197
197
  create(entity: any): import("axios").AxiosRequestConfig<any>;
198
198
  update(entity: any): import("axios").AxiosRequestConfig<any>;
199
199
  upsert(entity: any): import("axios").AxiosRequestConfig<any>;
package/dist/Api.js CHANGED
@@ -1,60 +1,56 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Api = void 0;
4
- exports.initApi = initApi;
5
- const micro_1 = require("./micro");
6
- const features_1 = require("./features");
7
- const types_1 = require("./types");
8
- const ts_mixer_1 = require("ts-mixer");
9
- const AuthApi_1 = require("./micro/auth/AuthApi");
1
+ import { FieldApi, ModuleApi, PermissionApi, PermissionCategoryApi, PermissionSetApi, SObjectApi, TeamApi, WorkspaceApi } from "./micro/index.js";
2
+ import { Create, CreateBulk, DeleteByFilters, DeleteById, DeleteByIds, GetAll, GetByFilters, GetById, GetByIds, Update, UpdateBulk, Upsert, UpsertBulk } from "./features/index.js";
3
+ import { MicroserviceName } from "./types.js";
4
+ import { Mixin } from "ts-mixer";
5
+ import { AuthApi } from "./micro/auth/AuthApi.js";
10
6
  function getApi() {
11
7
  return {
12
8
  auth: {
13
- user: new AuthApi_1.AuthApi()
9
+ user: new AuthApi()
14
10
  },
15
11
  init: {
16
- workspace: new micro_1.WorkspaceApi()
12
+ workspace: new WorkspaceApi()
17
13
  },
18
14
  query: {
19
- object: new (class extends (0, ts_mixer_1.Mixin)(micro_1.SObjectApi, features_1.GetAll, features_1.GetById, (features_1.Create), (features_1.Update), features_1.DeleteById) {
20
- })(types_1.MicroserviceName.query, 'metadata/object'),
21
- field: new (class extends (0, ts_mixer_1.Mixin)(micro_1.FieldApi, features_1.GetById, (features_1.Update), features_1.DeleteById) {
22
- })(types_1.MicroserviceName.query, 'metadata/field'),
23
- record: (objectName) => new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
24
- })(types_1.MicroserviceName.query, `object/${objectName}`),
15
+ object: new (class extends Mixin(SObjectApi, GetAll, GetById, (Create), (Update), DeleteById) {
16
+ })(MicroserviceName.query, 'metadata/object'),
17
+ field: new (class extends Mixin(FieldApi, GetById, (Update), DeleteById) {
18
+ })(MicroserviceName.query, 'metadata/field'),
19
+ record: (objectName) => new (class extends Mixin(GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
20
+ })(MicroserviceName.query, `object/${objectName}`),
25
21
  },
26
22
  security: {
27
- permission: new (class extends (0, ts_mixer_1.Mixin)(micro_1.PermissionApi, features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
28
- })(types_1.MicroserviceName.security, 'permission'),
29
- permissionCategory: new (class extends (0, ts_mixer_1.Mixin)(micro_1.PermissionCategoryApi, features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
30
- })(types_1.MicroserviceName.security, 'permission-category'),
31
- permissionAssignment: new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById, (features_1.DeleteByFilters)) {
32
- })(types_1.MicroserviceName.security, 'permissionAssignment'),
33
- permissionDefinition: new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, features_1.GetByIds, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
34
- })(types_1.MicroserviceName.security, 'permission-definition'),
35
- permissionGroup: new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
36
- })(types_1.MicroserviceName.security, 'permission-group'),
37
- permissionSet: new (class extends (0, ts_mixer_1.Mixin)(micro_1.PermissionSetApi, features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
38
- })(types_1.MicroserviceName.security, 'permission-set'),
39
- team: new (class extends (0, ts_mixer_1.Mixin)(micro_1.TeamApi, features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
40
- })(types_1.MicroserviceName.security, 'team'),
23
+ permission: new (class extends Mixin(PermissionApi, GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
24
+ })(MicroserviceName.security, 'permission'),
25
+ permissionCategory: new (class extends Mixin(PermissionCategoryApi, GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
26
+ })(MicroserviceName.security, 'permission-category'),
27
+ permissionAssignment: new (class extends Mixin(GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById, (DeleteByFilters)) {
28
+ })(MicroserviceName.security, 'permissionAssignment'),
29
+ permissionDefinition: new (class extends Mixin(GetAll, GetById, GetByIds, (GetByFilters), (Create), (Update), DeleteById) {
30
+ })(MicroserviceName.security, 'permission-definition'),
31
+ permissionGroup: new (class extends Mixin(GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
32
+ })(MicroserviceName.security, 'permission-group'),
33
+ permissionSet: new (class extends Mixin(PermissionSetApi, GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
34
+ })(MicroserviceName.security, 'permission-set'),
35
+ team: new (class extends Mixin(TeamApi, GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
36
+ })(MicroserviceName.security, 'team'),
41
37
  },
42
38
  workspace: {
43
- user: new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, (features_1.GetByFilters), (features_1.Create), (features_1.Update), features_1.DeleteById) {
44
- })(types_1.MicroserviceName.workspace, 'user'),
45
- module: new (class extends (0, ts_mixer_1.Mixin)(micro_1.ModuleApi, (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, (features_1.GetByFilters)), (0, ts_mixer_1.Mixin)((features_1.Create), (features_1.Update), (features_1.Upsert)), features_1.CreateBulk, features_1.UpdateBulk, features_1.UpsertBulk, features_1.DeleteById, features_1.DeleteByIds) {
46
- })(types_1.MicroserviceName.workspace, 'module'),
39
+ user: new (class extends Mixin(GetAll, GetById, (GetByFilters), (Create), (Update), DeleteById) {
40
+ })(MicroserviceName.workspace, 'user'),
41
+ module: new (class extends Mixin(ModuleApi, Mixin(GetAll, GetById, (GetByFilters)), Mixin((Create), (Update), (Upsert)), CreateBulk, UpdateBulk, UpsertBulk, DeleteById, DeleteByIds) {
42
+ })(MicroserviceName.workspace, 'module'),
47
43
  },
48
44
  blueprint: {
49
- blueprint: new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, (features_1.Create), (features_1.Update), features_1.DeleteById) {
50
- })(types_1.MicroserviceName.blueprint, 'blueprint'),
51
- ui: new (class extends (0, ts_mixer_1.Mixin)(features_1.GetAll, features_1.GetById, features_1.GetByFilters, (features_1.Create), (features_1.Update), (features_1.Upsert), features_1.DeleteById) {
52
- })(types_1.MicroserviceName.blueprint, 'ui')
45
+ blueprint: new (class extends Mixin(GetAll, GetById, (Create), (Update), DeleteById) {
46
+ })(MicroserviceName.blueprint, 'blueprint'),
47
+ ui: new (class extends Mixin(GetAll, GetById, GetByFilters, (Create), (Update), (Upsert), DeleteById) {
48
+ })(MicroserviceName.blueprint, 'ui')
53
49
  },
54
50
  };
55
51
  }
56
- function initApi() {
57
- exports.Api = getApi();
52
+ export function initApi() {
53
+ Api = getApi();
58
54
  }
59
- exports.Api = undefined;
55
+ export let Api = undefined;
60
56
  //# sourceMappingURL=Api.js.map
package/dist/Api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Api.js","sourceRoot":"","sources":["../src/Api.ts"],"names":[],"mappings":";;;AA8LA,0BAEC;AAhMD,mCAoBiB;AACjB,yCAcoB;AACpB,mCAAsD;AACtD,uCAA+B;AAC/B,kDAA6C;AAW7C,SAAS,MAAM;IACb,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI,iBAAO,EAAE;SACpB;QAED,IAAI,EAAE;YACJ,SAAS,EAAE,IAAI,oBAAY,EAAE;SAC9B;QAED,KAAK,EAAE;YACL,MAAM,EAAE,IAAI,CAAC,KAAM,SAAQ,IAAA,gBAAK,EAC5B,kBAAU,EACV,iBAAM,EAAE,kBAAO,EACf,CAAA,iBAAe,CAAA,EACf,CAAA,iBAAe,CAAA,EACf,qBAAU,CACb;aAAG,CAAC,CAAC,wBAAgB,CAAC,KAAK,EAAE,iBAAiB,CAAC;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EACP,YAAY,EACZ,CAAA,MAAW,CAAA,EACX,CAAA,MAAW,CAAA,EACX,CAAA,MAAW,CAAA,EACX,UAAU,CACb;aAAG,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC;SACxC;KACO,CAAA;AACZ,CAAC;AAED,MAAM,UAAU,OAAO;IACrB,GAAG,GAAG,MAAM,EAAW,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,IAAI,GAAG,GAAwC,SAAkB,CAAC"}
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiConfigs = void 0;
4
- class ApiConfigs {
1
+ export class ApiConfigs {
2
+ static api = {
3
+ workspaceUrl: undefined,
4
+ initUrl: undefined,
5
+ queryUrl: undefined,
6
+ authUrl: undefined,
7
+ securityUrl: undefined,
8
+ blueprintUrl: undefined,
9
+ };
10
+ static event = {
11
+ eventBus: null,
12
+ };
5
13
  }
6
- exports.ApiConfigs = ApiConfigs;
7
- ApiConfigs.api = {
8
- workspaceUrl: undefined,
9
- initUrl: undefined,
10
- queryUrl: undefined,
11
- authUrl: undefined,
12
- securityUrl: undefined,
13
- blueprintUrl: undefined,
14
- };
15
- ApiConfigs.event = {
16
- eventBus: null,
17
- };
18
14
  //# sourceMappingURL=ApiConfigs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiConfigs.js","sourceRoot":"","sources":["../src/ApiConfigs.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;;AAAvB,gCAaC;AAZwB,cAAG,GAAG;IAC3B,YAAY,EAAE,SAA+B;IAC7C,OAAO,EAAE,SAA+B;IACxC,QAAQ,EAAE,SAA+B;IACzC,OAAO,EAAE,SAA+B;IACxC,WAAW,EAAE,SAA+B;IAC5C,YAAY,EAAE,SAA+B;CAC9C,CAAA;AAEsB,gBAAK,GAAG;IAC7B,QAAQ,EAAE,IAAuB;CAClC,CAAA"}
1
+ {"version":3,"file":"ApiConfigs.js","sourceRoot":"","sources":["../src/ApiConfigs.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IACd,MAAM,CAAU,GAAG,GAAG;QAC3B,YAAY,EAAE,SAA+B;QAC7C,OAAO,EAAE,SAA+B;QACxC,QAAQ,EAAE,SAA+B;QACzC,OAAO,EAAE,SAA+B;QACxC,WAAW,EAAE,SAA+B;QAC5C,YAAY,EAAE,SAA+B;KAC9C,CAAA;IAEM,MAAM,CAAU,KAAK,GAAG;QAC7B,QAAQ,EAAE,IAAuB;KAClC,CAAA"}
@@ -1 +1 @@
1
- export * from './useSingleton';
1
+ export * from './useSingleton.js';
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./useSingleton"), exports);
1
+ export * from './useSingleton.js';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/compose/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/compose/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Constructor } from "../types";
1
+ import { Constructor } from "../types.js";
2
2
  export declare function useSingleton(): {
3
3
  instanceByDefinition: Map<any, any>;
4
4
  getInstanceByDefinition: <T extends Constructor<any>>(definition: T, ...params: ConstructorParameters<T>) => InstanceType<T>;
@@ -1,22 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useSingleton = useSingleton;
4
- function useSingleton() {
1
+ export function useSingleton() {
5
2
  const instanceByDefinition = new Map();
6
3
  const instanceByKey = new Map();
7
4
  function getInstanceByDefinition(definition, ...params) {
8
- var _a;
9
5
  if (!definition)
10
- return;
11
- let instance = (_a = instanceByDefinition.get(definition)) !== null && _a !== void 0 ? _a : new definition(...params);
6
+ throw new Error('useSingleton requires definition');
7
+ let instance = instanceByDefinition.get(definition) ?? new definition(...params);
12
8
  instanceByDefinition.set(definition, instance);
13
9
  return instance;
14
10
  }
15
11
  function getInstanceByKey(key, definition, ...params) {
16
- var _a;
17
12
  if (!definition)
18
- return;
19
- let instance = (_a = instanceByKey.get(key)) !== null && _a !== void 0 ? _a : new definition(...params);
13
+ throw new Error('useSingleton requires definition');
14
+ ;
15
+ let instance = instanceByKey.get(key) ?? new definition(...params);
20
16
  instanceByKey.set(key, instance);
21
17
  return instance;
22
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useSingleton.js","sourceRoot":"","sources":["../../src/compose/useSingleton.ts"],"names":[],"mappings":";;AAEA,oCAgCC;AAhCD,SAAgB,YAAY;IAE1B,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAE,CAAC;IAEvC,MAAM,aAAa,GAAG,IAAI,GAAG,EAAE,CAAC;IAEhC,SAAS,uBAAuB,CAA6B,UAAa,EAAE,GAAG,MAAgC;;QAC7G,IAAI,CAAC,UAAU;YAAE,OAAO;QAExB,IAAI,QAAQ,GAAG,MAAA,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC,mCAAI,IAAI,UAAU,CAAC,GAAG,MAAM,CAAC,CAAC;QAEjF,oBAAoB,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAA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AAM,CAAC,CAAC;QAEnE,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAEjC,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,OAAO;QACL,oBAAoB;QACpB,uBAAuB;QACvB,gBAAgB;KACjB,CAAA;AAEH,CAAC"}
@@ -1,3 +1,3 @@
1
- import { Env, MicroserviceName } from "./types";
1
+ import { Env, MicroserviceName } from "./types.js";
2
2
  export declare const BASE_DEVELOPMENT_URL = "http://localhost:3000";
3
3
  export declare const MICROSERVICE_URL: Record<MicroserviceName, Record<Env, string>>;
package/dist/constants.js CHANGED
@@ -1,30 +1,27 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MICROSERVICE_URL = exports.BASE_DEVELOPMENT_URL = void 0;
4
- exports.BASE_DEVELOPMENT_URL = 'http://localhost:3000';
5
- exports.MICROSERVICE_URL = {
1
+ export const BASE_DEVELOPMENT_URL = 'http://localhost:3000';
2
+ export const MICROSERVICE_URL = {
6
3
  workspace: {
7
- development: `${exports.BASE_DEVELOPMENT_URL}/workspace`,
4
+ development: `${BASE_DEVELOPMENT_URL}/workspace`,
8
5
  production: '',
9
6
  },
10
7
  init: {
11
- development: `${exports.BASE_DEVELOPMENT_URL}/workspace-init`,
8
+ development: `${BASE_DEVELOPMENT_URL}/workspace-init`,
12
9
  production: '',
13
10
  },
14
11
  query: {
15
- development: `${exports.BASE_DEVELOPMENT_URL}/query`,
12
+ development: `${BASE_DEVELOPMENT_URL}/query`,
16
13
  production: '',
17
14
  },
18
15
  auth: {
19
- development: `${exports.BASE_DEVELOPMENT_URL}/auth`,
16
+ development: `${BASE_DEVELOPMENT_URL}/auth`,
20
17
  production: '',
21
18
  },
22
19
  security: {
23
- development: `${exports.BASE_DEVELOPMENT_URL}/security`,
20
+ development: `${BASE_DEVELOPMENT_URL}/security`,
24
21
  production: '',
25
22
  },
26
23
  blueprint: {
27
- development: `${exports.BASE_DEVELOPMENT_URL}/blueprint`,
24
+ development: `${BASE_DEVELOPMENT_URL}/blueprint`,
28
25
  production: '',
29
26
  }
30
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG,uBAAuB,CAAA;AAE9C,QAAA,gBAAgB,GAAG;IAC5B,SAAS,EAAE;QACP,WAAW,EAAE,GAAG,4BAAoB,YAAY;QAChD,UAAU,EAAE,EAAE;KACjB;IACD,IAAI,EAAE;QACF,WAAW,EAAE,GAAG,4BAAoB,iBAAiB;QACrD,UAAU,EAAE,EAAE;KACjB;IACD,KAAK,EAAE;QACH,WAAW,EAAE,GAAG,4BAAoB,QAAQ;QAC5C,UAAU,EAAE,EAAE;KACjB;IACD,IAAI,EAAE;QACF,WAAW,EAAE,GAAG,4BAAoB,OAAO;QAC3C,UAAU,EAAE,EAAE;KACjB;IACD,QAAQ,EAAE;QACN,WAAW,EAAE,GAAG,4BAAoB,WAAW;QAC/C,UAAU,EAAE,EAAE;KACjB;IACD,SAAS,EAAE;QACP,WAAW,EAAE,GAAG,4BAAoB,YAAY;QAChD,UAAU,EAAE,EAAE;KACjB;CAC6C,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,uBAAuB,CAAA;AAE3D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,SAAS,EAAE;QACP,WAAW,EAAE,GAAG,oBAAoB,YAAY;QAChD,UAAU,EAAE,EAAE;KACjB;IACD,IAAI,EAAE;QACF,WAAW,EAAE,GAAG,oBAAoB,iBAAiB;QACrD,UAAU,EAAE,EAAE;KACjB;IACD,KAAK,EAAE;QACH,WAAW,EAAE,GAAG,oBAAoB,QAAQ;QAC5C,UAAU,EAAE,EAAE;KACjB;IACD,IAAI,EAAE;QACF,WAAW,EAAE,GAAG,oBAAoB,OAAO;QAC3C,UAAU,EAAE,EAAE;KACjB;IACD,QAAQ,EAAE;QACN,WAAW,EAAE,GAAG,oBAAoB,WAAW;QAC/C,UAAU,EAAE,EAAE;KACjB;IACD,SAAS,EAAE;QACP,WAAW,EAAE,GAAG,oBAAoB,YAAY;QAChD,UAAU,EAAE,EAAE;KACjB;CAC6C,CAAA"}
@@ -1,4 +1,4 @@
1
- import { MicroserviceName } from "../../types";
1
+ import { MicroserviceName } from "../../types.js";
2
2
  export declare abstract class AbstractApi {
3
3
  readonly _serverName: MicroserviceName;
4
4
  get serverUrl(): string;
@@ -1,21 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AbstractApi = void 0;
4
- const auto_bind_1 = require("@buildery/auto-bind");
5
- const UrlService_1 = require("../../services/UrlService");
6
- class AbstractApi {
1
+ import { UrlService } from "../../services/index.js";
2
+ export class AbstractApi {
3
+ _serverName;
7
4
  get serverUrl() {
8
- return UrlService_1.UrlService.getMicroUrl(this._serverName);
5
+ return UrlService.getMicroUrl(this._serverName);
9
6
  }
10
7
  constructor(microName) {
11
- (0, auto_bind_1.default)(this);
12
8
  if (!microName) {
13
9
  throw new AbstractApiError('Server API name is not defined!');
14
10
  }
15
11
  this._serverName = microName;
16
12
  }
17
13
  }
18
- exports.AbstractApi = AbstractApi;
19
14
  class AbstractApiError extends Error {
20
15
  }
21
16
  //# sourceMappingURL=AbstractApi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractApi.js","sourceRoot":"","sources":["../../../src/features/api/AbstractApi.ts"],"names":[],"mappings":";;;AAAA,mDAA2C;AAC3C,0DAAqD;AAGrD,MAAsB,WAAW;IAI/B,IAAW,SAAS;QAClB,OAAO,uBAAU,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,YAAsB,SAA2B;QAC/C,IAAA,mBAAQ,EAAC,IAAI,CAAC,CAAC;QAEf,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,gBAAgB,CAAC,iCAAiC,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;IAC/B,CAAC;CACF;AAjBD,kCAiBC;AAED,MAAM,gBAAiB,SAAQ,KAAK;CAAG"}
1
+ {"version":3,"file":"AbstractApi.js","sourceRoot":"","sources":["../../../src/features/api/AbstractApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAGnD,MAAM,OAAgB,WAAW;IAEf,WAAW,CAAmB;IAE9C,IAAW,SAAS;QAClB,OAAO,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,YAAsB,SAA2B;QAC/C,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,gBAAgB,CAAC,iCAAiC,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;IAC/B,CAAC;CACF;AAED,MAAM,gBAAiB,SAAQ,KAAK;CAAG"}
@@ -1 +1 @@
1
- export * from './AbstractApi';
1
+ export * from './AbstractApi.js';
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AbstractApi"), exports);
1
+ export * from './AbstractApi.js';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,10 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthError = void 0;
4
- class AuthError extends Error {
1
+ export class AuthError extends Error {
5
2
  constructor(message) {
6
3
  super(message);
7
4
  }
8
5
  }
9
- exports.AuthError = AuthError;
10
6
  //# sourceMappingURL=AuthError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthError.js","sourceRoot":"","sources":["../../../../src/features/auth/errors/AuthError.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAU,SAAQ,KAAK;IAClC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAJD,8BAIC"}
1
+ {"version":3,"file":"AuthError.js","sourceRoot":"","sources":["../../../../src/features/auth/errors/AuthError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1 +1 @@
1
- export * from './AuthError';
1
+ export * from './AuthError.js';
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AuthError"), exports);
1
+ export * from './AuthError.js';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/auth/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/auth/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,3 +1,3 @@
1
- export * from './errors';
2
- export * from './services';
3
- export * from './types';
1
+ export * from './errors/index.js';
2
+ export * from './services/index.js';
3
+ export * from './types/index.js';
@@ -1,20 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./errors"), exports);
18
- __exportStar(require("./services"), exports);
19
- __exportStar(require("./types"), exports);
1
+ export * from './errors/index.js';
2
+ export * from './services/index.js';
3
+ export * from './types/index.js';
20
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}