@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.
- package/CHANGELOG.md +12 -0
- package/api/acceptCompanyInvitation/acceptCompanyInvitation.d.ts +0 -2
- package/api/acceptCompanyInvitation/graphql/acceptCompanyInvitation.graphql.d.ts +0 -1
- package/api/acceptCompanyInvitation/index.d.ts +0 -1
- package/api/allowCompanyRegistration/allowCompanyRegistration.d.ts +0 -1
- package/api/allowCompanyRegistration/graphql/allowCompanyRegistration.graphql.d.ts +0 -1
- package/api/allowCompanyRegistration/index.d.ts +0 -1
- package/api/assignChildCompany/assignChildCompany.d.ts +16 -2
- package/api/assignChildCompany/graphql/assignChildCompany.graphql.d.ts +0 -1
- package/api/assignChildCompany/index.d.ts +0 -1
- package/api/checkCompanyCreditEnabled/checkCompanyCreditEnabled.d.ts +16 -2
- package/api/checkCompanyCreditEnabled/graphql/checkCompanyCreditEnabled.graphql.d.ts +0 -1
- package/api/checkCompanyCreditEnabled/index.d.ts +0 -1
- package/api/companyEnabled/companyEnabled.d.ts +0 -1
- package/api/companyEnabled/graphql/companyEnabled.graphql.d.ts +0 -1
- package/api/companyEnabled/index.d.ts +0 -1
- package/api/companyRoles/createCompanyRole.d.ts +16 -2
- package/api/companyRoles/deleteCompanyRole.d.ts +16 -2
- package/api/companyRoles/getCompanyAclResources.d.ts +16 -2
- package/api/companyRoles/getCompanyRole.d.ts +16 -2
- package/api/companyRoles/getCompanyRoles.d.ts +16 -2
- package/api/companyRoles/graphql/fragments.d.ts +0 -1
- package/api/companyRoles/graphql/index.d.ts +0 -1
- package/api/companyRoles/graphql/mutations.d.ts +0 -1
- package/api/companyRoles/graphql/queries.d.ts +0 -1
- package/api/companyRoles/index.d.ts +0 -1
- package/api/companyRoles/isCompanyRoleNameAvailable.d.ts +16 -2
- package/api/companyRoles/updateCompanyRole.d.ts +16 -2
- package/api/companyRoles/utils.d.ts +16 -2
- package/api/createCompany/createCompany.d.ts +16 -2
- package/api/createCompany/graphql/createCompany.graphql.d.ts +0 -1
- package/api/createCompany/index.d.ts +0 -1
- package/api/createCompanyTeam/createCompanyTeam.d.ts +0 -2
- package/api/createCompanyTeam/graphql/createCompanyTeam.graphql.d.ts +0 -1
- package/api/createCompanyTeam/index.d.ts +0 -1
- package/api/createCompanyUser/createCompanyUser.d.ts +0 -2
- package/api/createCompanyUser/graphql/createCompanyUser.graphql.d.ts +0 -1
- package/api/createCompanyUser/index.d.ts +0 -1
- package/api/deleteCompanyTeam/deleteCompanyTeam.d.ts +0 -1
- package/api/deleteCompanyTeam/graphql/deleteCompanyTeam.graphql.d.ts +0 -1
- package/api/deleteCompanyTeam/index.d.ts +0 -1
- package/api/deleteCompanyUser/deleteCompanyUser.d.ts +0 -2
- package/api/deleteCompanyUser/graphql/deleteCompanyUser.graphql.d.ts +0 -1
- package/api/deleteCompanyUser/index.d.ts +0 -1
- package/api/fetch-graphql/fetch-graphql.d.ts +3 -4
- package/api/fetch-graphql/index.d.ts +0 -1
- package/api/fetchUserPermissions/fetchUserPermissions.d.ts +1 -3
- package/api/fetchUserPermissions/graphql/getCustomerRole.graphql.d.ts +0 -1
- package/api/fetchUserPermissions/index.d.ts +0 -1
- package/api/getCompany/getCompany.d.ts +0 -2
- package/api/getCompany/index.d.ts +0 -1
- package/api/getCompanyCredit/getCompanyCredit.d.ts +16 -2
- package/api/getCompanyCredit/graphql/getCompanyCredit.graphql.d.ts +0 -1
- package/api/getCompanyCredit/index.d.ts +0 -1
- package/api/getCompanyCreditHistory/getCompanyCreditHistory.d.ts +16 -2
- package/api/getCompanyCreditHistory/graphql/getCompanyCreditHistory.graphql.d.ts +0 -1
- package/api/getCompanyCreditHistory/index.d.ts +0 -1
- package/api/getCompanyHierarchy/getCompanyHierarchy.d.ts +16 -2
- package/api/getCompanyHierarchy/graphql/getCompanyHierarchy.graphql.d.ts +0 -1
- package/api/getCompanyHierarchy/index.d.ts +0 -1
- package/api/getCompanyStructure/getCompanyStructure.d.ts +0 -2
- package/api/getCompanyStructure/graphql/getCompanyStructure.graphql.d.ts +0 -1
- package/api/getCompanyStructure/index.d.ts +0 -1
- package/api/getCompanyTeam/getCompanyTeam.d.ts +0 -2
- package/api/getCompanyTeam/graphql/getCompanyTeam.graphql.d.ts +0 -1
- package/api/getCompanyTeam/index.d.ts +0 -1
- package/api/getCompanyUser/getCompanyUser.d.ts +0 -2
- package/api/getCompanyUser/graphql/getCompanyUser.graphql.d.ts +0 -1
- package/api/getCompanyUser/index.d.ts +0 -1
- package/api/getCompanyUsers/getCompanyUsers.d.ts +0 -2
- package/api/getCompanyUsers/graphql/companyUsers.graphql.d.ts +0 -1
- package/api/getCompanyUsers/index.d.ts +0 -1
- package/api/getCountries/getCountries.d.ts +1 -4
- package/api/getCountries/graphql/getCountries.graphql.d.ts +0 -1
- package/api/getCountries/index.d.ts +0 -1
- package/api/getCustomerCompany/getCustomerCompany.d.ts +0 -2
- package/api/getCustomerCompany/graphql/getCustomerCompanyInfo.graphql.d.ts +0 -1
- package/api/getCustomerCompany/index.d.ts +0 -1
- package/api/getStoreConfig/getStoreConfig.d.ts +16 -2
- package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +0 -1
- package/api/getStoreConfig/index.d.ts +0 -1
- package/api/graphql/CompanyFragment.graphql.d.ts +1 -2
- package/api/graphql/CompanyHierarchyFragment.graphql.d.ts +0 -1
- package/api/graphql/buildCompanyQueries.d.ts +0 -1
- package/api/index.d.ts +0 -1
- package/api/initialize/index.d.ts +0 -1
- package/api/initialize/initialize.d.ts +18 -6
- package/api/isCompanyAdmin/graphql/isCompanyAdmin.graphql.d.ts +0 -1
- package/api/isCompanyAdmin/index.d.ts +0 -1
- package/api/isCompanyAdmin/isCompanyAdmin.d.ts +0 -1
- package/api/isCompanyUser/graphql/isCompanyUser.graphql.d.ts +0 -1
- package/api/isCompanyUser/index.d.ts +0 -1
- package/api/isCompanyUser/isCompanyUser.d.ts +0 -1
- package/api/isCompanyUserEmailAvailable/graphql/isCompanyUserEmailAvailable.graphql.d.ts +0 -1
- package/api/isCompanyUserEmailAvailable/index.d.ts +0 -1
- package/api/isCompanyUserEmailAvailable/isCompanyUserEmailAvailable.d.ts +0 -1
- package/api/unassignChildCompany/graphql/unassignChildCompany.graphql.d.ts +0 -1
- package/api/unassignChildCompany/index.d.ts +0 -1
- package/api/unassignChildCompany/unassignChildCompany.d.ts +16 -2
- package/api/updateCompany/index.d.ts +0 -1
- package/api/updateCompany/updateCompany.d.ts +0 -2
- package/api/updateCompanyStructure/graphql/updateCompanyStructure.graphql.d.ts +0 -1
- package/api/updateCompanyStructure/index.d.ts +0 -1
- package/api/updateCompanyStructure/updateCompanyStructure.d.ts +0 -2
- package/api/updateCompanyTeam/graphql/updateCompanyTeam.graphql.d.ts +0 -1
- package/api/updateCompanyTeam/index.d.ts +0 -1
- package/api/updateCompanyTeam/updateCompanyTeam.d.ts +0 -2
- package/api/updateCompanyUser/graphql/updateCompanyUser.graphql.d.ts +0 -1
- package/api/updateCompanyUser/index.d.ts +0 -1
- package/api/updateCompanyUser/updateCompanyUser.d.ts +0 -2
- package/api/updateCompanyUserStatus/graphql/updateCompanyUserStatus.graphql.d.ts +0 -1
- package/api/updateCompanyUserStatus/index.d.ts +0 -1
- package/api/updateCompanyUserStatus/updateCompanyUserStatus.d.ts +0 -2
- package/api/validateCompanyEmail/graphql/validateCompanyEmail.graphql.d.ts +0 -1
- package/api/validateCompanyEmail/index.d.ts +0 -1
- package/api/validateCompanyEmail/validateCompanyEmail.d.ts +0 -2
- package/api.d.ts +1 -1
- package/api.js +46 -46
- package/api.js.map +1 -1
- package/chunks/components.js +1 -1
- package/chunks/components.js.map +1 -1
- package/components/AcceptInvitationForm/AcceptInvitationForm.d.ts +16 -2
- package/components/AcceptInvitationForm/index.d.ts +0 -1
- package/components/CompanyCreditDisplay/CompanyCreditDisplay.d.ts +16 -2
- package/components/CompanyCreditDisplay/index.d.ts +0 -1
- package/components/CompanyCreditHistoryDisplay/CompanyCreditHistoryDisplay.d.ts +16 -2
- package/components/CompanyCreditHistoryDisplay/index.d.ts +0 -1
- package/components/CompanyHierarchyContent/CompanyHierarchyContent.d.ts +16 -2
- package/components/CompanyHierarchyContent/index.d.ts +0 -1
- package/components/CompanyLoaders/CompanyLoaders.d.ts +6 -8
- package/components/CompanyLoaders/index.d.ts +0 -1
- package/components/CompanyProfileCard/CompanyProfileCard.d.ts +16 -2
- package/components/CompanyProfileCard/index.d.ts +0 -1
- package/components/CompanyRegistrationForm/CompanyRegistrationForm.d.ts +16 -2
- package/components/CompanyRegistrationForm/Form/Form.d.ts +16 -2
- package/components/CompanyRegistrationForm/Form/FormInputs/FormInputs.d.ts +16 -2
- package/components/CompanyRegistrationForm/Form/FormInputs/index.d.ts +0 -1
- package/components/CompanyRegistrationForm/Form/fieldHandlers.d.ts +17 -3
- package/components/CompanyRegistrationForm/Form/fieldValidationRules.d.ts +0 -1
- package/components/CompanyRegistrationForm/Form/formValidation.d.ts +16 -2
- package/components/CompanyRegistrationForm/Form/getCompanyFieldsConfig.d.ts +16 -2
- package/components/CompanyRegistrationForm/Form/index.d.ts +0 -1
- package/components/CompanyRegistrationForm/index.d.ts +0 -1
- package/components/CompanyRegistrationSuccess/CompanyRegistrationSuccess.d.ts +16 -2
- package/components/CompanyRegistrationSuccess/index.d.ts +0 -1
- package/components/CompanyStructureCard/CompanyStructureCard.d.ts +16 -2
- package/components/CompanyStructureCard/index.d.ts +0 -1
- package/components/CompanyStructureEmpty/CompanyStructureEmpty.d.ts +16 -2
- package/components/CompanyStructureEmpty/index.d.ts +0 -1
- package/components/CompanyTeamForm/CompanyTeamForm.d.ts +16 -2
- package/components/CompanyTeamForm/index.d.ts +0 -1
- package/components/CompanyUserForm/CompanyUserForm.d.ts +16 -2
- package/components/CompanyUserForm/index.d.ts +0 -1
- package/components/CompanyUsersFilters/CompanyUsersFilters.d.ts +0 -1
- package/components/CompanyUsersFilters/index.d.ts +0 -1
- package/components/CompanyUsersManagementModal/CompanyUsersManagementModal.d.ts +17 -3
- package/components/CompanyUsersManagementModal/index.d.ts +0 -1
- package/components/CustomerCompanyInfoCard/CustomerCompanyInfoCard.d.ts +16 -2
- package/components/CustomerCompanyInfoCard/index.d.ts +0 -1
- package/components/DeleteRoleModal/DeleteRoleModal.d.ts +16 -2
- package/components/DeleteRoleModal/index.d.ts +0 -1
- package/components/EditCompanyProfile/CompanyAccountFields.d.ts +16 -2
- package/components/EditCompanyProfile/EditCompanyProfile.d.ts +16 -2
- package/components/EditCompanyProfile/LegalAddressFields.d.ts +16 -2
- package/components/EditCompanyProfile/index.d.ts +0 -1
- package/components/EditRoleAndPermission/EditRoleAndPermission.d.ts +16 -2
- package/components/EditRoleAndPermission/index.d.ts +0 -1
- package/components/RoleAndPermissionTable/RoleAndPermissionTable.d.ts +16 -2
- package/components/RoleAndPermissionTable/index.d.ts +0 -1
- package/components/Tree/Tree.d.ts +16 -2
- package/components/Tree/index.d.ts +0 -1
- package/components/index.d.ts +0 -1
- package/containers/AcceptInvitation/AcceptInvitation.d.ts +17 -3
- package/containers/AcceptInvitation/index.d.ts +0 -1
- package/containers/AcceptInvitation.d.ts +1 -1
- package/containers/AcceptInvitation.js +1 -1
- package/containers/AcceptInvitation.js.map +1 -1
- package/containers/CompanyCredit/CompanyCredit.d.ts +17 -3
- package/containers/CompanyCredit/index.d.ts +0 -1
- package/containers/CompanyCredit.d.ts +1 -3
- package/containers/CompanyCredit.js +1 -1
- package/containers/CompanyCredit.js.map +1 -1
- package/containers/CompanyHierarchy/CompanyHierarchy.d.ts +17 -3
- package/containers/CompanyHierarchy/index.d.ts +0 -1
- package/containers/CompanyHierarchy.d.ts +1 -3
- package/containers/CompanyHierarchy.js +1 -1
- package/containers/CompanyHierarchy.js.map +1 -1
- package/containers/CompanyProfile/CompanyProfile.d.ts +17 -3
- package/containers/CompanyProfile/index.d.ts +0 -1
- package/containers/CompanyProfile.d.ts +1 -3
- package/containers/CompanyProfile.js +1 -1
- package/containers/CompanyProfile.js.map +1 -1
- package/containers/CompanyRegistration/CompanyRegistration.d.ts +17 -3
- package/containers/CompanyRegistration/index.d.ts +0 -1
- package/containers/CompanyRegistration.d.ts +1 -3
- package/containers/CompanyRegistration.js +1 -1
- package/containers/CompanyRegistration.js.map +1 -1
- package/containers/CompanyStructure/CompanyStructure.d.ts +1 -3
- package/containers/CompanyStructure/index.d.ts +0 -1
- package/containers/CompanyStructure.d.ts +1 -3
- package/containers/CompanyStructure.js +1 -1
- package/containers/CompanyStructure.js.map +1 -1
- package/containers/CompanyUsers/CompanyUsers.d.ts +17 -3
- package/containers/CompanyUsers/index.d.ts +0 -1
- package/containers/CompanyUsers.d.ts +1 -3
- package/containers/CompanyUsers.js +1 -1
- package/containers/CompanyUsers.js.map +1 -1
- package/containers/CustomerCompanyInfo/CustomerCompanyInfo.d.ts +17 -3
- package/containers/CustomerCompanyInfo/index.d.ts +0 -1
- package/containers/CustomerCompanyInfo.d.ts +1 -1
- package/containers/CustomerCompanyInfo.js +1 -1
- package/containers/CustomerCompanyInfo.js.map +1 -1
- package/containers/RolesAndPermissions/RolesAndPermissions.d.ts +17 -3
- package/containers/RolesAndPermissions/index.d.ts +2 -3
- package/containers/RolesAndPermissions.d.ts +1 -3
- package/containers/RolesAndPermissions.js +1 -1
- package/containers/RolesAndPermissions.js.map +1 -1
- package/containers/index.d.ts +0 -1
- package/data/models/company-address.d.ts +0 -1
- package/data/models/company-credit-history.d.ts +0 -1
- package/data/models/company-credit-info.d.ts +0 -1
- package/data/models/company-role.d.ts +0 -1
- package/data/models/company-structure.d.ts +0 -1
- package/data/models/company-team.d.ts +0 -1
- package/data/models/company-user.d.ts +0 -1
- package/data/models/company.d.ts +16 -2
- package/data/models/country.d.ts +0 -1
- package/data/models/customer-company-info.d.ts +0 -1
- package/data/models/index.d.ts +0 -1
- package/data/transforms/company.d.ts +16 -2
- package/data/transforms/index.d.ts +0 -1
- package/data/transforms/transform-company-credit-history.d.ts +16 -2
- package/data/transforms/transform-company-credit.d.ts +16 -2
- package/data/transforms/transform-company-hierarchy.d.ts +16 -2
- package/data/transforms/transform-company-roles.d.ts +16 -2
- package/data/transforms/transform-company-structure.d.ts +17 -3
- package/data/transforms/transform-company-team.d.ts +16 -2
- package/data/transforms/transform-company-user.d.ts +16 -2
- package/data/transforms/transform-company.d.ts +16 -2
- package/data/transforms/transform-countries.d.ts +17 -4
- package/data/transforms/transform-customer-company-info.d.ts +16 -2
- package/data/transforms/transform-store-config.d.ts +16 -2
- package/hooks/containers/index.d.ts +0 -1
- package/hooks/containers/useCompanyCreditHistory.d.ts +16 -2
- package/hooks/containers/useCompanyProfile.d.ts +2 -5
- package/hooks/containers/useCompanyUsers.d.ts +16 -2
- package/hooks/containers/useCustomerCompanyInfo.d.ts +1 -4
- package/hooks/index.d.ts +0 -1
- package/hooks/useAcceptInvitation.d.ts +16 -2
- package/hooks/useCompanyContextListener.d.ts +0 -1
- package/hooks/useCompanyHierarchy.d.ts +5 -9
- package/hooks/useCompanyRegistrationForm.d.ts +0 -1
- package/hooks/useCompanyRoles.d.ts +16 -2
- package/hooks/useCompanyStructureCard.d.ts +7 -9
- package/hooks/useCompanyTeamForm.d.ts +0 -2
- package/hooks/useCompanyUserForm.d.ts +3 -8
- package/hooks/useCountries.d.ts +1 -3
- package/hooks/useCountryAndRegionFields.d.ts +17 -4
- package/hooks/useInLineAlert.d.ts +0 -2
- package/hooks/useModal.d.ts +0 -1
- package/hooks/usePermissions.d.ts +17 -4
- package/hooks/useUserPermissions.d.ts +0 -1
- package/lib/acdl.d.ts +0 -1
- package/lib/company-permissions.d.ts +16 -2
- package/lib/configureCompanyRecaptcha.d.ts +21 -0
- package/lib/convertCase.d.ts +1 -2
- package/lib/convertToBoolean.d.ts +0 -1
- package/lib/convertToInputDateFormat.d.ts +0 -1
- package/lib/cookies.d.ts +0 -1
- package/lib/encoding.d.ts +0 -1
- package/lib/fetch-error.d.ts +0 -1
- package/lib/index.d.ts +1 -1
- package/lib/navigation.d.ts +1 -0
- package/lib/network-error.d.ts +0 -1
- package/lib/recaptcha.constants.d.ts +21 -0
- package/lib/setReCaptchaToken.d.ts +17 -0
- package/lib/switchCompanyContext.d.ts +0 -1
- package/lib/userHelpers.d.ts +0 -1
- package/lib/validationFields.d.ts +1 -2
- package/package.json +1 -1
- package/render/Provider.d.ts +16 -2
- package/render/index.d.ts +0 -1
- package/render/render.d.ts +17 -4
- package/render.d.ts +1 -1
- package/render.js +2 -2
- package/render.js.map +1 -1
- package/types/acceptInvitation.types.d.ts +0 -1
- package/types/api/acceptCompanyInvitation.types.d.ts +0 -1
- package/types/api/assignChildCompany.types.d.ts +16 -2
- package/types/api/checkCompanyCreditEnabled.types.d.ts +0 -1
- package/types/api/companyBasicInfo.types.d.ts +0 -1
- package/types/api/companyRoles.types.d.ts +0 -1
- package/types/api/companyUsers.types.d.ts +0 -1
- package/types/api/createCompanyTeam.types.d.ts +0 -1
- package/types/api/createCompanyUser.types.d.ts +0 -1
- package/types/api/deleteCompanyTeam.types.d.ts +0 -1
- package/types/api/deleteCompanyUser.types.d.ts +0 -1
- package/types/api/fetchUserPermissions.types.d.ts +0 -1
- package/types/api/getCompany.types.d.ts +0 -1
- package/types/api/getCompanyCredit.types.d.ts +0 -1
- package/types/api/getCompanyCreditHistory.types.d.ts +0 -1
- package/types/api/getCompanyCreditHistoryParams.types.d.ts +0 -1
- package/types/api/getCompanyHierarchy.types.d.ts +0 -1
- package/types/api/getCompanyStructure.types.d.ts +0 -1
- package/types/api/getCompanyTeam.types.d.ts +0 -1
- package/types/api/getCompanyUser.types.d.ts +0 -1
- package/types/api/getCountries.types.d.ts +0 -1
- package/types/api/getCustomerCompanyInfo.types.d.ts +0 -1
- package/types/api/getStoreConfig.types.d.ts +0 -1
- package/types/api/index.d.ts +0 -1
- package/types/api/initialize.types.d.ts +17 -3
- package/types/api/isCompanyUserEmailAvailable.types.d.ts +0 -1
- package/types/api/unassignChildCompany.types.d.ts +16 -2
- package/types/api/updateCompany.types.d.ts +0 -1
- package/types/api/updateCompanyStructure.types.d.ts +0 -1
- package/types/api/updateCompanyTeam.types.d.ts +0 -1
- package/types/api/updateCompanyUser.types.d.ts +0 -1
- package/types/api/updateCompanyUserStatus.types.d.ts +16 -2
- package/types/api/validateCompanyEmail.types.d.ts +0 -1
- package/types/companyForm.types.d.ts +16 -2
- package/types/companyHierarchy.types.d.ts +1 -3
- package/types/companyPermission.types.d.ts +0 -1
- package/types/companyProfile.types.d.ts +17 -3
- package/types/companyStructure.types.d.ts +17 -3
- package/types/customerCompanyInfo.types.d.ts +16 -2
- package/types/events.d.ts +16 -2
- package/types/form.types.d.ts +16 -2
- package/types/hook.types.d.ts +16 -2
- package/types/index.d.ts +0 -1
- 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 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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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 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
|
|
@@ -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
|
|
@@ -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 declare const DELETE_COMPANY_TEAM = "\n mutation deleteCompanyTeam($id: ID!) {\n deleteCompanyTeam(id: $id) { __typename }\n }\n";
|
|
18
|
-
//# sourceMappingURL=deleteCompanyTeam.graphql.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
|
|
@@ -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(
|
|
18
|
-
errors?: import(
|
|
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(
|
|
22
|
+
fetchGraphQlHeaders: import("@adobe-commerce/fetch-graphql").Header;
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=fetch-graphql.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
|
|
@@ -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
|
|
@@ -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
|