@dropins/storefront-company-management 1.3.0 → 1.4.0-beta.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 (330) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/api/acceptCompanyInvitation/acceptCompanyInvitation.d.ts +0 -2
  3. package/api/acceptCompanyInvitation/graphql/acceptCompanyInvitation.graphql.d.ts +0 -1
  4. package/api/acceptCompanyInvitation/index.d.ts +0 -1
  5. package/api/allowCompanyRegistration/allowCompanyRegistration.d.ts +0 -1
  6. package/api/allowCompanyRegistration/graphql/allowCompanyRegistration.graphql.d.ts +0 -1
  7. package/api/allowCompanyRegistration/index.d.ts +0 -1
  8. package/api/assignChildCompany/assignChildCompany.d.ts +16 -2
  9. package/api/assignChildCompany/graphql/assignChildCompany.graphql.d.ts +0 -1
  10. package/api/assignChildCompany/index.d.ts +0 -1
  11. package/api/checkCompanyCreditEnabled/checkCompanyCreditEnabled.d.ts +16 -2
  12. package/api/checkCompanyCreditEnabled/graphql/checkCompanyCreditEnabled.graphql.d.ts +0 -1
  13. package/api/checkCompanyCreditEnabled/index.d.ts +0 -1
  14. package/api/companyEnabled/companyEnabled.d.ts +0 -1
  15. package/api/companyEnabled/graphql/companyEnabled.graphql.d.ts +0 -1
  16. package/api/companyEnabled/index.d.ts +0 -1
  17. package/api/companyRoles/createCompanyRole.d.ts +16 -2
  18. package/api/companyRoles/deleteCompanyRole.d.ts +16 -2
  19. package/api/companyRoles/getCompanyAclResources.d.ts +16 -2
  20. package/api/companyRoles/getCompanyRole.d.ts +16 -2
  21. package/api/companyRoles/getCompanyRoles.d.ts +16 -2
  22. package/api/companyRoles/graphql/fragments.d.ts +0 -1
  23. package/api/companyRoles/graphql/index.d.ts +0 -1
  24. package/api/companyRoles/graphql/mutations.d.ts +0 -1
  25. package/api/companyRoles/graphql/queries.d.ts +0 -1
  26. package/api/companyRoles/index.d.ts +0 -1
  27. package/api/companyRoles/isCompanyRoleNameAvailable.d.ts +16 -2
  28. package/api/companyRoles/updateCompanyRole.d.ts +16 -2
  29. package/api/companyRoles/utils.d.ts +16 -2
  30. package/api/createCompany/createCompany.d.ts +16 -2
  31. package/api/createCompany/graphql/createCompany.graphql.d.ts +0 -1
  32. package/api/createCompany/index.d.ts +0 -1
  33. package/api/createCompanyTeam/createCompanyTeam.d.ts +0 -2
  34. package/api/createCompanyTeam/graphql/createCompanyTeam.graphql.d.ts +0 -1
  35. package/api/createCompanyTeam/index.d.ts +0 -1
  36. package/api/createCompanyUser/createCompanyUser.d.ts +0 -2
  37. package/api/createCompanyUser/graphql/createCompanyUser.graphql.d.ts +0 -1
  38. package/api/createCompanyUser/index.d.ts +0 -1
  39. package/api/deleteCompanyTeam/deleteCompanyTeam.d.ts +0 -1
  40. package/api/deleteCompanyTeam/graphql/deleteCompanyTeam.graphql.d.ts +0 -1
  41. package/api/deleteCompanyTeam/index.d.ts +0 -1
  42. package/api/deleteCompanyUser/deleteCompanyUser.d.ts +0 -2
  43. package/api/deleteCompanyUser/graphql/deleteCompanyUser.graphql.d.ts +0 -1
  44. package/api/deleteCompanyUser/index.d.ts +0 -1
  45. package/api/fetch-graphql/fetch-graphql.d.ts +3 -4
  46. package/api/fetch-graphql/index.d.ts +0 -1
  47. package/api/fetchUserPermissions/fetchUserPermissions.d.ts +1 -3
  48. package/api/fetchUserPermissions/graphql/getCustomerRole.graphql.d.ts +0 -1
  49. package/api/fetchUserPermissions/index.d.ts +0 -1
  50. package/api/getCompany/getCompany.d.ts +0 -2
  51. package/api/getCompany/index.d.ts +0 -1
  52. package/api/getCompanyCredit/getCompanyCredit.d.ts +16 -2
  53. package/api/getCompanyCredit/graphql/getCompanyCredit.graphql.d.ts +0 -1
  54. package/api/getCompanyCredit/index.d.ts +0 -1
  55. package/api/getCompanyCreditHistory/getCompanyCreditHistory.d.ts +16 -2
  56. package/api/getCompanyCreditHistory/graphql/getCompanyCreditHistory.graphql.d.ts +0 -1
  57. package/api/getCompanyCreditHistory/index.d.ts +0 -1
  58. package/api/getCompanyHierarchy/getCompanyHierarchy.d.ts +16 -2
  59. package/api/getCompanyHierarchy/graphql/getCompanyHierarchy.graphql.d.ts +0 -1
  60. package/api/getCompanyHierarchy/index.d.ts +0 -1
  61. package/api/getCompanyStructure/getCompanyStructure.d.ts +0 -2
  62. package/api/getCompanyStructure/graphql/getCompanyStructure.graphql.d.ts +0 -1
  63. package/api/getCompanyStructure/index.d.ts +0 -1
  64. package/api/getCompanyTeam/getCompanyTeam.d.ts +0 -2
  65. package/api/getCompanyTeam/graphql/getCompanyTeam.graphql.d.ts +0 -1
  66. package/api/getCompanyTeam/index.d.ts +0 -1
  67. package/api/getCompanyUser/getCompanyUser.d.ts +0 -2
  68. package/api/getCompanyUser/graphql/getCompanyUser.graphql.d.ts +0 -1
  69. package/api/getCompanyUser/index.d.ts +0 -1
  70. package/api/getCompanyUsers/getCompanyUsers.d.ts +0 -2
  71. package/api/getCompanyUsers/graphql/companyUsers.graphql.d.ts +0 -1
  72. package/api/getCompanyUsers/index.d.ts +0 -1
  73. package/api/getCountries/getCountries.d.ts +1 -4
  74. package/api/getCountries/graphql/getCountries.graphql.d.ts +0 -1
  75. package/api/getCountries/index.d.ts +0 -1
  76. package/api/getCustomerCompany/getCustomerCompany.d.ts +0 -2
  77. package/api/getCustomerCompany/graphql/getCustomerCompanyInfo.graphql.d.ts +0 -1
  78. package/api/getCustomerCompany/index.d.ts +0 -1
  79. package/api/getStoreConfig/getStoreConfig.d.ts +16 -2
  80. package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +0 -1
  81. package/api/getStoreConfig/index.d.ts +0 -1
  82. package/api/graphql/CompanyFragment.graphql.d.ts +1 -2
  83. package/api/graphql/CompanyHierarchyFragment.graphql.d.ts +0 -1
  84. package/api/graphql/buildCompanyQueries.d.ts +0 -1
  85. package/api/index.d.ts +0 -1
  86. package/api/initialize/index.d.ts +0 -1
  87. package/api/initialize/initialize.d.ts +18 -6
  88. package/api/isCompanyAdmin/graphql/isCompanyAdmin.graphql.d.ts +0 -1
  89. package/api/isCompanyAdmin/index.d.ts +0 -1
  90. package/api/isCompanyAdmin/isCompanyAdmin.d.ts +0 -1
  91. package/api/isCompanyUser/graphql/isCompanyUser.graphql.d.ts +0 -1
  92. package/api/isCompanyUser/index.d.ts +0 -1
  93. package/api/isCompanyUser/isCompanyUser.d.ts +0 -1
  94. package/api/isCompanyUserEmailAvailable/graphql/isCompanyUserEmailAvailable.graphql.d.ts +0 -1
  95. package/api/isCompanyUserEmailAvailable/index.d.ts +0 -1
  96. package/api/isCompanyUserEmailAvailable/isCompanyUserEmailAvailable.d.ts +0 -1
  97. package/api/unassignChildCompany/graphql/unassignChildCompany.graphql.d.ts +0 -1
  98. package/api/unassignChildCompany/index.d.ts +0 -1
  99. package/api/unassignChildCompany/unassignChildCompany.d.ts +16 -2
  100. package/api/updateCompany/index.d.ts +0 -1
  101. package/api/updateCompany/updateCompany.d.ts +0 -2
  102. package/api/updateCompanyStructure/graphql/updateCompanyStructure.graphql.d.ts +0 -1
  103. package/api/updateCompanyStructure/index.d.ts +0 -1
  104. package/api/updateCompanyStructure/updateCompanyStructure.d.ts +0 -2
  105. package/api/updateCompanyTeam/graphql/updateCompanyTeam.graphql.d.ts +0 -1
  106. package/api/updateCompanyTeam/index.d.ts +0 -1
  107. package/api/updateCompanyTeam/updateCompanyTeam.d.ts +0 -2
  108. package/api/updateCompanyUser/graphql/updateCompanyUser.graphql.d.ts +0 -1
  109. package/api/updateCompanyUser/index.d.ts +0 -1
  110. package/api/updateCompanyUser/updateCompanyUser.d.ts +0 -2
  111. package/api/updateCompanyUserStatus/graphql/updateCompanyUserStatus.graphql.d.ts +0 -1
  112. package/api/updateCompanyUserStatus/index.d.ts +0 -1
  113. package/api/updateCompanyUserStatus/updateCompanyUserStatus.d.ts +0 -2
  114. package/api/validateCompanyEmail/graphql/validateCompanyEmail.graphql.d.ts +0 -1
  115. package/api/validateCompanyEmail/index.d.ts +0 -1
  116. package/api/validateCompanyEmail/validateCompanyEmail.d.ts +0 -2
  117. package/api.d.ts +1 -1
  118. package/api.js +46 -46
  119. package/api.js.map +1 -1
  120. package/chunks/components.js +1 -1
  121. package/chunks/components.js.map +1 -1
  122. package/components/AcceptInvitationForm/AcceptInvitationForm.d.ts +16 -2
  123. package/components/AcceptInvitationForm/index.d.ts +0 -1
  124. package/components/CompanyCreditDisplay/CompanyCreditDisplay.d.ts +16 -2
  125. package/components/CompanyCreditDisplay/index.d.ts +0 -1
  126. package/components/CompanyCreditHistoryDisplay/CompanyCreditHistoryDisplay.d.ts +16 -2
  127. package/components/CompanyCreditHistoryDisplay/index.d.ts +0 -1
  128. package/components/CompanyHierarchyContent/CompanyHierarchyContent.d.ts +16 -2
  129. package/components/CompanyHierarchyContent/index.d.ts +0 -1
  130. package/components/CompanyLoaders/CompanyLoaders.d.ts +6 -8
  131. package/components/CompanyLoaders/index.d.ts +0 -1
  132. package/components/CompanyProfileCard/CompanyProfileCard.d.ts +16 -2
  133. package/components/CompanyProfileCard/index.d.ts +0 -1
  134. package/components/CompanyRegistrationForm/CompanyRegistrationForm.d.ts +16 -2
  135. package/components/CompanyRegistrationForm/Form/Form.d.ts +16 -2
  136. package/components/CompanyRegistrationForm/Form/FormInputs/FormInputs.d.ts +16 -2
  137. package/components/CompanyRegistrationForm/Form/FormInputs/index.d.ts +0 -1
  138. package/components/CompanyRegistrationForm/Form/fieldHandlers.d.ts +17 -3
  139. package/components/CompanyRegistrationForm/Form/fieldValidationRules.d.ts +0 -1
  140. package/components/CompanyRegistrationForm/Form/formValidation.d.ts +16 -2
  141. package/components/CompanyRegistrationForm/Form/getCompanyFieldsConfig.d.ts +16 -2
  142. package/components/CompanyRegistrationForm/Form/index.d.ts +0 -1
  143. package/components/CompanyRegistrationForm/index.d.ts +0 -1
  144. package/components/CompanyRegistrationSuccess/CompanyRegistrationSuccess.d.ts +16 -2
  145. package/components/CompanyRegistrationSuccess/index.d.ts +0 -1
  146. package/components/CompanyStructureCard/CompanyStructureCard.d.ts +16 -2
  147. package/components/CompanyStructureCard/index.d.ts +0 -1
  148. package/components/CompanyStructureEmpty/CompanyStructureEmpty.d.ts +16 -2
  149. package/components/CompanyStructureEmpty/index.d.ts +0 -1
  150. package/components/CompanyTeamForm/CompanyTeamForm.d.ts +16 -2
  151. package/components/CompanyTeamForm/index.d.ts +0 -1
  152. package/components/CompanyUserForm/CompanyUserForm.d.ts +16 -2
  153. package/components/CompanyUserForm/index.d.ts +0 -1
  154. package/components/CompanyUsersFilters/CompanyUsersFilters.d.ts +0 -1
  155. package/components/CompanyUsersFilters/index.d.ts +0 -1
  156. package/components/CompanyUsersManagementModal/CompanyUsersManagementModal.d.ts +17 -3
  157. package/components/CompanyUsersManagementModal/index.d.ts +0 -1
  158. package/components/CustomerCompanyInfoCard/CustomerCompanyInfoCard.d.ts +16 -2
  159. package/components/CustomerCompanyInfoCard/index.d.ts +0 -1
  160. package/components/DeleteRoleModal/DeleteRoleModal.d.ts +16 -2
  161. package/components/DeleteRoleModal/index.d.ts +0 -1
  162. package/components/EditCompanyProfile/CompanyAccountFields.d.ts +16 -2
  163. package/components/EditCompanyProfile/EditCompanyProfile.d.ts +16 -2
  164. package/components/EditCompanyProfile/LegalAddressFields.d.ts +16 -2
  165. package/components/EditCompanyProfile/index.d.ts +0 -1
  166. package/components/EditRoleAndPermission/EditRoleAndPermission.d.ts +16 -2
  167. package/components/EditRoleAndPermission/index.d.ts +0 -1
  168. package/components/RoleAndPermissionTable/RoleAndPermissionTable.d.ts +16 -2
  169. package/components/RoleAndPermissionTable/index.d.ts +0 -1
  170. package/components/Tree/Tree.d.ts +16 -2
  171. package/components/Tree/index.d.ts +0 -1
  172. package/components/index.d.ts +0 -1
  173. package/containers/AcceptInvitation/AcceptInvitation.d.ts +17 -3
  174. package/containers/AcceptInvitation/index.d.ts +0 -1
  175. package/containers/AcceptInvitation.d.ts +1 -1
  176. package/containers/AcceptInvitation.js +1 -1
  177. package/containers/AcceptInvitation.js.map +1 -1
  178. package/containers/CompanyCredit/CompanyCredit.d.ts +17 -3
  179. package/containers/CompanyCredit/index.d.ts +0 -1
  180. package/containers/CompanyCredit.d.ts +1 -3
  181. package/containers/CompanyCredit.js +1 -1
  182. package/containers/CompanyCredit.js.map +1 -1
  183. package/containers/CompanyHierarchy/CompanyHierarchy.d.ts +17 -3
  184. package/containers/CompanyHierarchy/index.d.ts +0 -1
  185. package/containers/CompanyHierarchy.d.ts +1 -3
  186. package/containers/CompanyHierarchy.js +1 -1
  187. package/containers/CompanyHierarchy.js.map +1 -1
  188. package/containers/CompanyProfile/CompanyProfile.d.ts +17 -3
  189. package/containers/CompanyProfile/index.d.ts +0 -1
  190. package/containers/CompanyProfile.d.ts +1 -3
  191. package/containers/CompanyProfile.js +1 -1
  192. package/containers/CompanyProfile.js.map +1 -1
  193. package/containers/CompanyRegistration/CompanyRegistration.d.ts +17 -3
  194. package/containers/CompanyRegistration/index.d.ts +0 -1
  195. package/containers/CompanyRegistration.d.ts +1 -3
  196. package/containers/CompanyRegistration.js +1 -1
  197. package/containers/CompanyRegistration.js.map +1 -1
  198. package/containers/CompanyStructure/CompanyStructure.d.ts +1 -3
  199. package/containers/CompanyStructure/index.d.ts +0 -1
  200. package/containers/CompanyStructure.d.ts +1 -3
  201. package/containers/CompanyStructure.js +1 -1
  202. package/containers/CompanyStructure.js.map +1 -1
  203. package/containers/CompanyUsers/CompanyUsers.d.ts +17 -3
  204. package/containers/CompanyUsers/index.d.ts +0 -1
  205. package/containers/CompanyUsers.d.ts +1 -3
  206. package/containers/CompanyUsers.js +1 -1
  207. package/containers/CompanyUsers.js.map +1 -1
  208. package/containers/CustomerCompanyInfo/CustomerCompanyInfo.d.ts +17 -3
  209. package/containers/CustomerCompanyInfo/index.d.ts +0 -1
  210. package/containers/CustomerCompanyInfo.d.ts +1 -1
  211. package/containers/CustomerCompanyInfo.js +1 -1
  212. package/containers/CustomerCompanyInfo.js.map +1 -1
  213. package/containers/RolesAndPermissions/RolesAndPermissions.d.ts +17 -3
  214. package/containers/RolesAndPermissions/index.d.ts +2 -3
  215. package/containers/RolesAndPermissions.d.ts +1 -3
  216. package/containers/RolesAndPermissions.js +1 -1
  217. package/containers/RolesAndPermissions.js.map +1 -1
  218. package/containers/index.d.ts +0 -1
  219. package/data/models/company-address.d.ts +0 -1
  220. package/data/models/company-credit-history.d.ts +0 -1
  221. package/data/models/company-credit-info.d.ts +0 -1
  222. package/data/models/company-role.d.ts +0 -1
  223. package/data/models/company-structure.d.ts +0 -1
  224. package/data/models/company-team.d.ts +0 -1
  225. package/data/models/company-user.d.ts +0 -1
  226. package/data/models/company.d.ts +16 -2
  227. package/data/models/country.d.ts +0 -1
  228. package/data/models/customer-company-info.d.ts +0 -1
  229. package/data/models/index.d.ts +0 -1
  230. package/data/transforms/company.d.ts +16 -2
  231. package/data/transforms/index.d.ts +0 -1
  232. package/data/transforms/transform-company-credit-history.d.ts +16 -2
  233. package/data/transforms/transform-company-credit.d.ts +16 -2
  234. package/data/transforms/transform-company-hierarchy.d.ts +16 -2
  235. package/data/transforms/transform-company-roles.d.ts +16 -2
  236. package/data/transforms/transform-company-structure.d.ts +17 -3
  237. package/data/transforms/transform-company-team.d.ts +16 -2
  238. package/data/transforms/transform-company-user.d.ts +16 -2
  239. package/data/transforms/transform-company.d.ts +16 -2
  240. package/data/transforms/transform-countries.d.ts +17 -4
  241. package/data/transforms/transform-customer-company-info.d.ts +16 -2
  242. package/data/transforms/transform-store-config.d.ts +16 -2
  243. package/hooks/containers/index.d.ts +0 -1
  244. package/hooks/containers/useCompanyCreditHistory.d.ts +16 -2
  245. package/hooks/containers/useCompanyProfile.d.ts +2 -5
  246. package/hooks/containers/useCompanyUsers.d.ts +16 -2
  247. package/hooks/containers/useCustomerCompanyInfo.d.ts +1 -4
  248. package/hooks/index.d.ts +0 -1
  249. package/hooks/useAcceptInvitation.d.ts +16 -2
  250. package/hooks/useCompanyContextListener.d.ts +0 -1
  251. package/hooks/useCompanyHierarchy.d.ts +5 -9
  252. package/hooks/useCompanyRegistrationForm.d.ts +0 -1
  253. package/hooks/useCompanyRoles.d.ts +16 -2
  254. package/hooks/useCompanyStructureCard.d.ts +7 -9
  255. package/hooks/useCompanyTeamForm.d.ts +0 -2
  256. package/hooks/useCompanyUserForm.d.ts +3 -8
  257. package/hooks/useCountries.d.ts +1 -3
  258. package/hooks/useCountryAndRegionFields.d.ts +17 -4
  259. package/hooks/useInLineAlert.d.ts +0 -2
  260. package/hooks/useModal.d.ts +0 -1
  261. package/hooks/usePermissions.d.ts +17 -4
  262. package/hooks/useUserPermissions.d.ts +0 -1
  263. package/lib/acdl.d.ts +0 -1
  264. package/lib/company-permissions.d.ts +16 -2
  265. package/lib/configureCompanyRecaptcha.d.ts +21 -0
  266. package/lib/convertCase.d.ts +1 -2
  267. package/lib/convertToBoolean.d.ts +0 -1
  268. package/lib/convertToInputDateFormat.d.ts +0 -1
  269. package/lib/cookies.d.ts +0 -1
  270. package/lib/encoding.d.ts +0 -1
  271. package/lib/fetch-error.d.ts +0 -1
  272. package/lib/index.d.ts +1 -1
  273. package/lib/navigation.d.ts +1 -0
  274. package/lib/network-error.d.ts +0 -1
  275. package/lib/recaptcha.constants.d.ts +21 -0
  276. package/lib/setReCaptchaToken.d.ts +17 -0
  277. package/lib/switchCompanyContext.d.ts +0 -1
  278. package/lib/userHelpers.d.ts +0 -1
  279. package/lib/validationFields.d.ts +1 -2
  280. package/package.json +1 -1
  281. package/render/Provider.d.ts +16 -2
  282. package/render/index.d.ts +0 -1
  283. package/render/render.d.ts +17 -4
  284. package/render.d.ts +1 -1
  285. package/render.js +2 -2
  286. package/render.js.map +1 -1
  287. package/types/acceptInvitation.types.d.ts +0 -1
  288. package/types/api/acceptCompanyInvitation.types.d.ts +0 -1
  289. package/types/api/assignChildCompany.types.d.ts +16 -2
  290. package/types/api/checkCompanyCreditEnabled.types.d.ts +0 -1
  291. package/types/api/companyBasicInfo.types.d.ts +0 -1
  292. package/types/api/companyRoles.types.d.ts +0 -1
  293. package/types/api/companyUsers.types.d.ts +0 -1
  294. package/types/api/createCompanyTeam.types.d.ts +0 -1
  295. package/types/api/createCompanyUser.types.d.ts +0 -1
  296. package/types/api/deleteCompanyTeam.types.d.ts +0 -1
  297. package/types/api/deleteCompanyUser.types.d.ts +0 -1
  298. package/types/api/fetchUserPermissions.types.d.ts +0 -1
  299. package/types/api/getCompany.types.d.ts +0 -1
  300. package/types/api/getCompanyCredit.types.d.ts +0 -1
  301. package/types/api/getCompanyCreditHistory.types.d.ts +0 -1
  302. package/types/api/getCompanyCreditHistoryParams.types.d.ts +0 -1
  303. package/types/api/getCompanyHierarchy.types.d.ts +0 -1
  304. package/types/api/getCompanyStructure.types.d.ts +0 -1
  305. package/types/api/getCompanyTeam.types.d.ts +0 -1
  306. package/types/api/getCompanyUser.types.d.ts +0 -1
  307. package/types/api/getCountries.types.d.ts +0 -1
  308. package/types/api/getCustomerCompanyInfo.types.d.ts +0 -1
  309. package/types/api/getStoreConfig.types.d.ts +0 -1
  310. package/types/api/index.d.ts +0 -1
  311. package/types/api/initialize.types.d.ts +17 -3
  312. package/types/api/isCompanyUserEmailAvailable.types.d.ts +0 -1
  313. package/types/api/unassignChildCompany.types.d.ts +16 -2
  314. package/types/api/updateCompany.types.d.ts +0 -1
  315. package/types/api/updateCompanyStructure.types.d.ts +0 -1
  316. package/types/api/updateCompanyTeam.types.d.ts +0 -1
  317. package/types/api/updateCompanyUser.types.d.ts +0 -1
  318. package/types/api/updateCompanyUserStatus.types.d.ts +16 -2
  319. package/types/api/validateCompanyEmail.types.d.ts +0 -1
  320. package/types/companyForm.types.d.ts +16 -2
  321. package/types/companyHierarchy.types.d.ts +1 -3
  322. package/types/companyPermission.types.d.ts +0 -1
  323. package/types/companyProfile.types.d.ts +17 -3
  324. package/types/companyStructure.types.d.ts +17 -3
  325. package/types/customerCompanyInfo.types.d.ts +16 -2
  326. package/types/events.d.ts +16 -2
  327. package/types/form.types.d.ts +16 -2
  328. package/types/hook.types.d.ts +16 -2
  329. package/types/index.d.ts +0 -1
  330. package/i18n/en_US.json.d.ts +0 -467
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @dropins/storefront-company-management
2
2
 
3
+ ## 1.4.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b5b7bbf: Implemented company hierarchy functionality with tree view displaying parent-child relationships and drag-and-drop support for structure management. Added GraphQL APIs for retrieving hierarchy (getCompanyHierarchy), assigning (assignChildCompany), and unassigning (unassignChildCompany) child companies. Integrated permission checks with visual distinction between root and child companies, expand/collapse node support, and loading/error state handling.
8
+
9
+ ### Patch Changes
10
+
11
+ - a76b2c6: Fix company registration reCAPTCHA integration.
12
+
13
+ Adds `X-ReCaptcha` on `createCompany`, wires company form reCAPTCHA initialization via `@adobe-commerce/recaptcha@1.2.0-alpha-20260527145655` (includes `COMPANY_CREATE` in the default form map), and updates test setup/import boundaries to avoid unintended recaptcha module side effects in unrelated test suites.
14
+
3
15
  ## 1.3.0
4
16
 
5
17
  ### Minor Changes
@@ -1,9 +1,7 @@
1
1
  import { AcceptCompanyInvitationInput, AcceptCompanyInvitationResult } from '../../types';
2
-
3
2
  /**
4
3
  * Accepts a company invitation using the invitation code and user information
5
4
  * @param input - Invitation code, user information (customer_id, company_id, etc.), and optional role_id
6
5
  * @returns Promise resolving to result indicating success or failure
7
6
  */
8
7
  export declare function acceptCompanyInvitation(input: AcceptCompanyInvitationInput): Promise<AcceptCompanyInvitationResult | null>;
9
- //# sourceMappingURL=acceptCompanyInvitation.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const ACCEPT_COMPANY_INVITATION = "\n mutation acceptCompanyInvitation($input: CompanyInvitationInput!) {\n acceptCompanyInvitation(input: $input) {\n success\n }\n }\n";
18
- //# sourceMappingURL=acceptCompanyInvitation.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './acceptCompanyInvitation';
18
- //# sourceMappingURL=index.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const allowCompanyRegistration: () => Promise<boolean>;
18
- //# sourceMappingURL=allowCompanyRegistration.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const GET_ALLOW_COMPANY_REGISTRATION = "\n query GET_ALLOW_COMPANY_REGISTRATION {\n storeConfig {\n allow_company_registration\n }\n }\n";
18
- //# sourceMappingURL=allowCompanyRegistration.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './allowCompanyRegistration';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2026 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { Company } from '../../types';
2
-
3
18
  /**
4
19
  * Assign a child company to a parent company within the company relation hierarchy
5
20
  *
@@ -9,4 +24,3 @@ import { Company } from '../../types';
9
24
  * @throws {Error} When network errors or GraphQL errors occur
10
25
  */
11
26
  export declare function assignChildCompany(parentCompanyId: string, childCompanyId: string): Promise<Company[]>;
12
- //# sourceMappingURL=assignChildCompany.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const ASSIGN_CHILD_COMPANY: string;
18
- //# sourceMappingURL=assignChildCompany.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './assignChildCompany';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CheckCompanyCreditEnabledResponse } from '../../types/api/checkCompanyCreditEnabled.types';
2
-
3
18
  export declare const checkCompanyCreditEnabled: () => Promise<CheckCompanyCreditEnabledResponse>;
4
- //# sourceMappingURL=checkCompanyCreditEnabled.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const CHECK_COMPANY_CREDIT_ENABLED = "\n query CHECK_COMPANY_CREDIT_ENABLED {\n storeConfig{\n company_credit_enabled\n }\n }\n";
18
- //# sourceMappingURL=checkCompanyCreditEnabled.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './checkCompanyCreditEnabled';
18
- //# sourceMappingURL=index.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const companyEnabled: () => Promise<boolean>;
18
- //# sourceMappingURL=companyEnabled.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const GET_COMPANY_ENABLED = "\n query GET_COMPANY_ENABLED {\n storeConfig {\n company_enabled\n }\n }\n";
18
- //# sourceMappingURL=companyEnabled.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './companyEnabled';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CompanyRoleModel, CompanyRoleCreateInputModel } from '../../data/models/company-role';
2
-
3
18
  /**
4
19
  * Creates a new company role with specified name and permissions.
5
20
  *
@@ -29,4 +44,3 @@ import { CompanyRoleModel, CompanyRoleCreateInputModel } from '../../data/models
29
44
  * ```
30
45
  */
31
46
  export declare const createCompanyRole: (input: CompanyRoleCreateInputModel) => Promise<CompanyRoleModel>;
32
- //# sourceMappingURL=createCompanyRole.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { DeleteCompanyRoleVariables } from '../../types/api/companyRoles.types';
2
-
3
18
  /**
4
19
  * Permanently deletes a company role.
5
20
  *
@@ -31,4 +46,3 @@ import { DeleteCompanyRoleVariables } from '../../types/api/companyRoles.types';
31
46
  * ```
32
47
  */
33
48
  export declare const deleteCompanyRole: (variables: DeleteCompanyRoleVariables) => Promise<boolean>;
34
- //# sourceMappingURL=deleteCompanyRole.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CompanyAclResourceModel } from '../../data/models/company-role';
2
-
3
18
  /**
4
19
  * Retrieves the complete hierarchical tree of ACL (Access Control List) resources.
5
20
  *
@@ -26,4 +41,3 @@ import { CompanyAclResourceModel } from '../../data/models/company-role';
26
41
  * ```
27
42
  */
28
43
  export declare const getCompanyAclResources: () => Promise<CompanyAclResourceModel[]>;
29
- //# sourceMappingURL=getCompanyAclResources.d.ts.map
@@ -1,6 +1,21 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { GetCompanyRoleVariables } from '../../types/api/companyRoles.types';
2
18
  import { CompanyRoleModel } from '../../data/models/company-role';
3
-
4
19
  /**
5
20
  * Retrieves complete details for a specific company role by ID.
6
21
  *
@@ -25,4 +40,3 @@ import { CompanyRoleModel } from '../../data/models/company-role';
25
40
  * ```
26
41
  */
27
42
  export declare const getCompanyRole: (variables: GetCompanyRoleVariables) => Promise<CompanyRoleModel>;
28
- //# sourceMappingURL=getCompanyRole.d.ts.map
@@ -1,6 +1,21 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { GetCompanyRolesVariables } from '../../types/api/companyRoles.types';
2
18
  import { CompanyRolesResponseModel } from '../../data/models/company-role';
3
-
4
19
  /**
5
20
  * Retrieves a paginated list of all company roles with basic information.
6
21
  *
@@ -29,4 +44,3 @@ import { CompanyRolesResponseModel } from '../../data/models/company-role';
29
44
  * ```
30
45
  */
31
46
  export declare const getCompanyRoles: (variables?: GetCompanyRolesVariables) => Promise<CompanyRolesResponseModel>;
32
- //# sourceMappingURL=getCompanyRoles.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const COMPANY_ROLE_FRAGMENT = "\n fragment CompanyRoleFragment on CompanyRole {\n id\n name\n users_count\n permissions {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n }\n }\n }\n }\n }\n }\n";
18
- //# sourceMappingURL=fragments.d.ts.map
@@ -17,4 +17,3 @@
17
17
  export * from './fragments';
18
18
  export * from './queries';
19
19
  export * from './mutations';
20
- //# sourceMappingURL=index.d.ts.map
@@ -17,4 +17,3 @@
17
17
  export declare const CREATE_COMPANY_ROLE: string;
18
18
  export declare const UPDATE_COMPANY_ROLE: string;
19
19
  export declare const DELETE_COMPANY_ROLE = "\n mutation DeleteCompanyRole($id: ID!) {\n deleteCompanyRole(id: $id) {\n success\n }\n }\n";
20
- //# sourceMappingURL=mutations.d.ts.map
@@ -18,4 +18,3 @@ export declare const GET_COMPANY_ROLES: string;
18
18
  export declare const GET_COMPANY_ROLE: string;
19
19
  export declare const GET_COMPANY_ACL_RESOURCES = "\n query GetCompanyAclResources {\n company {\n acl_resources {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n children {\n id\n text\n sort_order\n }\n }\n }\n }\n }\n }\n }\n";
20
20
  export declare const IS_COMPANY_ROLE_NAME_AVAILABLE = "\n query IsCompanyRoleNameAvailable($name: String!) {\n isCompanyRoleNameAvailable(name: $name) {\n is_role_name_available\n }\n }\n";
21
- //# sourceMappingURL=queries.d.ts.map
@@ -24,4 +24,3 @@ export { isCompanyRoleNameAvailable } from './isCompanyRoleNameAvailable';
24
24
  export { flattenPermissionIds, buildPermissionTree } from './utils';
25
25
  export type { CompanyAclResourceModel, CompanyRoleModel, PageInfoModel, CompanyRolesResponseModel, CompanyRoleCreateInputModel, CompanyRoleUpdateInputModel, } from '../../data/models/company-role';
26
26
  export type { GetCompanyRolesVariables, GetCompanyRoleVariables, DeleteCompanyRoleVariables, IsCompanyRoleNameAvailableVariables, } from '../../types/api/companyRoles.types';
27
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { IsCompanyRoleNameAvailableVariables } from '../../types/api/companyRoles.types';
2
-
3
18
  /**
4
19
  * Validates whether a role name is available for use (not already taken).
5
20
  *
@@ -27,4 +42,3 @@ import { IsCompanyRoleNameAvailableVariables } from '../../types/api/companyRole
27
42
  * ```
28
43
  */
29
44
  export declare const isCompanyRoleNameAvailable: (variables: IsCompanyRoleNameAvailableVariables) => Promise<boolean>;
30
- //# sourceMappingURL=isCompanyRoleNameAvailable.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CompanyRoleModel, CompanyRoleUpdateInputModel } from '../../data/models/company-role';
2
-
3
18
  /**
4
19
  * Updates an existing company role's name and/or permissions.
5
20
  *
@@ -32,4 +47,3 @@ import { CompanyRoleModel, CompanyRoleUpdateInputModel } from '../../data/models
32
47
  * ```
33
48
  */
34
49
  export declare const updateCompanyRole: (input: CompanyRoleUpdateInputModel) => Promise<CompanyRoleModel>;
35
- //# sourceMappingURL=updateCompanyRole.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CompanyAclResourceModel } from '../../data/models/company-role';
2
-
3
18
  /**
4
19
  * Helper function to flatten ACL resources into a list of permission IDs
5
20
  */
@@ -8,4 +23,3 @@ export declare const flattenPermissionIds: (resources: CompanyAclResourceModel[]
8
23
  * Helper function to build a permission tree from flat permission IDs
9
24
  */
10
25
  export declare const buildPermissionTree: (allResources: CompanyAclResourceModel[], selectedIds: string[]) => CompanyAclResourceModel[];
11
- //# sourceMappingURL=utils.d.ts.map
@@ -1,5 +1,20 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CompanyRegistrationModel } from '../../data/models/company';
2
-
3
18
  export interface CompanyCreateInput {
4
19
  company_name: string;
5
20
  company_email: string;
@@ -78,4 +93,3 @@ export declare const createCompany: (formData: any) => Promise<{
78
93
  company?: CompanyRegistrationModel;
79
94
  errors?: string[];
80
95
  }>;
81
- //# sourceMappingURL=createCompany.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const CREATE_COMPANY_MUTATION = "\n mutation CreateCompany($input: CompanyCreateInput!) {\n createCompany(input: $input) {\n company {\n id\n name\n email\n legal_name\n vat_tax_id\n reseller_id\n legal_address {\n street\n city\n region {\n region_code\n region\n region_id\n }\n postcode\n country_code\n telephone\n }\n company_admin {\n id\n firstname\n lastname\n email\n job_title\n telephone\n }\n }\n }\n }\n";
18
- //# sourceMappingURL=createCompany.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './createCompany';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { CreateCompanyTeamInput, CreateCompanyTeamResult } from '../../types/api/createCompanyTeam.types';
2
-
3
2
  /**
4
3
  * Creates a new company team with the provided information
5
4
  *
@@ -8,4 +7,3 @@ import { CreateCompanyTeamInput, CreateCompanyTeamResult } from '../../types/api
8
7
  * @throws {Error} When network errors or GraphQL errors occur
9
8
  */
10
9
  export declare function createCompanyTeam(input: CreateCompanyTeamInput): Promise<CreateCompanyTeamResult | null>;
11
- //# sourceMappingURL=createCompanyTeam.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const CREATE_COMPANY_TEAM = "\n mutation createCompanyTeam($input: CompanyTeamCreateInput!) {\n createCompanyTeam(input: $input) { __typename team { id structure_id name } }\n }\n";
18
- //# sourceMappingURL=createCompanyTeam.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './createCompanyTeam';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,7 @@
1
1
  import { CreateCompanyUserInput, CreateCompanyUserResult } from '../../types';
2
-
3
2
  /**
4
3
  * Creates a new company user with the provided information
5
4
  * @param input - User information including email, name, job title, and role
6
5
  * @returns Promise resolving to created user result or null if creation failed
7
6
  */
8
7
  export declare function createCompanyUser(input: CreateCompanyUserInput): Promise<CreateCompanyUserResult | null>;
9
- //# sourceMappingURL=createCompanyUser.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const CREATE_COMPANY_USER = "\n mutation createCompanyUser($input: CompanyUserCreateInput!) {\n createCompanyUser(input: $input) { __typename user { id structure_id email firstname lastname job_title } }\n }\n";
18
- //# sourceMappingURL=createCompanyUser.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './createCompanyUser';
18
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@
6
6
  * @throws {Error} When network errors or GraphQL errors occur
7
7
  */
8
8
  export declare function deleteCompanyTeam(id: string): Promise<boolean>;
9
- //# sourceMappingURL=deleteCompanyTeam.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const DELETE_COMPANY_TEAM = "\n mutation deleteCompanyTeam($id: ID!) {\n deleteCompanyTeam(id: $id) { __typename }\n }\n";
18
- //# sourceMappingURL=deleteCompanyTeam.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './deleteCompanyTeam';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { DeleteCompanyUserParams, DeleteCompanyUserResponse } from '../../types';
2
-
3
2
  /**
4
3
  * Deletes a company user by their ID
5
4
  * @param params - The parameters containing user ID
@@ -7,4 +6,3 @@ import { DeleteCompanyUserParams, DeleteCompanyUserResponse } from '../../types'
7
6
  * @returns Promise<DeleteCompanyUserResponse> - Object containing success status
8
7
  */
9
8
  export declare const deleteCompanyUser: (params: DeleteCompanyUserParams) => Promise<DeleteCompanyUserResponse>;
10
- //# sourceMappingURL=deleteCompanyUser.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const DELETE_COMPANY_USER_MUTATION = "\n mutation DELETE_COMPANY_USER($id: ID!) {\n deleteCompanyUserV2(id: $id) {\n success\n }\n }\n";
18
- //# sourceMappingURL=deleteCompanyUser.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './deleteCompanyUser';
18
- //# sourceMappingURL=index.d.ts.map
@@ -14,11 +14,10 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export declare const setEndpoint: (endpoint: string) => void, setFetchGraphQlHeader: (key: string, value: string | null) => void, removeFetchGraphQlHeader: (key: string) => void, setFetchGraphQlHeaders: (header: import('@adobe-commerce/fetch-graphql').Header | ((prev: import('@adobe-commerce/fetch-graphql').Header) => import('@adobe-commerce/fetch-graphql').Header)) => void, fetchGraphQl: <T = any>(query: string, options?: import('@adobe-commerce/fetch-graphql').FetchOptions | undefined) => Promise<{
18
- errors?: import('@adobe-commerce/fetch-graphql').FetchQueryError | undefined;
17
+ export declare const setEndpoint: (endpoint: string) => void, setFetchGraphQlHeader: (key: string, value: string | null) => void, removeFetchGraphQlHeader: (key: string) => void, setFetchGraphQlHeaders: (header: import("@adobe-commerce/fetch-graphql").Header | ((prev: import("@adobe-commerce/fetch-graphql").Header) => import("@adobe-commerce/fetch-graphql").Header)) => void, fetchGraphQl: <T = any>(query: string, options?: import("@adobe-commerce/fetch-graphql").FetchOptions) => Promise<{
18
+ errors?: import("@adobe-commerce/fetch-graphql").FetchQueryError;
19
19
  data: T;
20
20
  }>, getConfig: () => {
21
21
  endpoint: string | undefined;
22
- fetchGraphQlHeaders: import('@adobe-commerce/fetch-graphql').Header;
22
+ fetchGraphQlHeaders: import("@adobe-commerce/fetch-graphql").Header;
23
23
  };
24
- //# sourceMappingURL=fetch-graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './fetch-graphql';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
- import { FetchUserPermissionsResult } from '../../types/api/fetchUserPermissions.types';
2
-
1
+ import type { FetchUserPermissionsResult } from '../../types/api/fetchUserPermissions.types';
3
2
  /**
4
3
  * Fetches user permissions and returns both the allowed permission IDs and the role response
5
4
  * This is a general-purpose API function that can be used across the application
@@ -8,4 +7,3 @@ import { FetchUserPermissionsResult } from '../../types/api/fetchUserPermissions
8
7
  * @throws {Error} When network errors or GraphQL errors occur
9
8
  */
10
9
  export declare function fetchUserPermissions(): Promise<FetchUserPermissionsResult>;
11
- //# sourceMappingURL=fetchUserPermissions.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const GET_CUSTOMER_ROLE_PERMISSIONS = "\n query GET_CUSTOMER_ROLE_PERMISSIONS {\n customer {\n role {\n id\n name\n permissions {\n id\n text\n children {\n id\n text\n children {\n id\n text\n children {\n id\n text\n children { \n id \n text \n }\n }\n }\n }\n }\n }\n status\n }\n }\n";
18
- //# sourceMappingURL=getCustomerRole.graphql.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export { fetchUserPermissions } from './fetchUserPermissions';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { CompanyModel } from '../../data/models';
2
-
3
2
  /**
4
3
  * Retrieves company information with permissions-aware field selection
5
4
  * Only returns fields that the current user has permission to view
@@ -8,4 +7,3 @@ import { CompanyModel } from '../../data/models';
8
7
  * @throws {Error} When network errors or GraphQL errors occur
9
8
  */
10
9
  export declare function getCompany(): Promise<CompanyModel | null>;
11
- //# sourceMappingURL=getCompany.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export * from './getCompany';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { CompanyCreditInfo } from '../../data/models';
2
-
3
18
  export declare const getCompanyCredit: () => Promise<CompanyCreditInfo | null>;
4
- //# sourceMappingURL=getCompanyCredit.d.ts.map