@dropins/storefront-company-management 1.0.0-alpha2002 → 1.0.0-alpha2003
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/api/allowCompanyRegistration/allowCompanyRegistration.d.ts +18 -0
- package/api/allowCompanyRegistration/graphql/allowCompanyRegistration.graphql.d.ts +18 -0
- package/api/allowCompanyRegistration/index.d.ts +18 -0
- package/api/companyEnabled/companyEnabled.d.ts +18 -0
- package/api/companyEnabled/graphql/companyEnabled.graphql.d.ts +18 -0
- package/api/companyEnabled/index.d.ts +18 -0
- package/api/createCompany/createCompany.d.ts +39 -0
- package/api/createCompany/graphql/createCompany.graphql.d.ts +18 -0
- package/api/createCompany/index.d.ts +18 -0
- package/api/createCompanyTeam/createCompanyTeam.d.ts +11 -0
- package/api/createCompanyTeam/graphql/createCompanyTeam.graphql.d.ts +18 -0
- package/api/createCompanyTeam/index.d.ts +18 -0
- package/api/deleteCompanyTeam/deleteCompanyTeam.d.ts +9 -0
- package/api/deleteCompanyTeam/graphql/deleteCompanyTeam.graphql.d.ts +18 -0
- package/api/deleteCompanyTeam/index.d.ts +18 -0
- package/api/fetchUserPermissions/fetchUserPermissions.d.ts +6 -4
- package/api/fetchUserPermissions/graphql/getCustomerRole.graphql.d.ts +1 -1
- package/api/getCompany/getCompany.d.ts +9 -2
- package/api/getCompanyStructure/getCompanyStructure.d.ts +10 -0
- package/api/getCompanyStructure/graphql/getCompanyStructure.graphql.d.ts +18 -0
- package/api/getCompanyStructure/index.d.ts +18 -0
- package/api/getCompanyTeam/getCompanyTeam.d.ts +11 -0
- package/api/getCompanyTeam/graphql/getCompanyTeam.graphql.d.ts +18 -0
- package/api/getCompanyTeam/index.d.ts +18 -0
- package/api/getCompanyUsers/getCompanyUsers.d.ts +1 -1
- package/api/getCustomerCompany/getCustomerCompany.d.ts +5 -2
- package/api/getStoreConfig/getStoreConfig.d.ts +6 -0
- package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +18 -0
- package/api/getStoreConfig/index.d.ts +18 -0
- package/api/graphql/CompanyFragment.graphql.d.ts +1 -1
- package/api/index.d.ts +12 -0
- package/api/initialize/initialize.d.ts +2 -20
- package/api/isCompanyAdmin/graphql/isCompanyAdmin.graphql.d.ts +18 -0
- package/api/isCompanyAdmin/index.d.ts +18 -0
- package/api/isCompanyAdmin/isCompanyAdmin.d.ts +22 -0
- package/api/isCompanyUser/graphql/isCompanyUser.graphql.d.ts +18 -0
- package/api/isCompanyUser/index.d.ts +18 -0
- package/api/isCompanyUser/isCompanyUser.d.ts +22 -0
- package/api/updateCompanyStructure/graphql/updateCompanyStructure.graphql.d.ts +18 -0
- package/api/updateCompanyStructure/index.d.ts +18 -0
- package/api/updateCompanyStructure/updateCompanyStructure.d.ts +11 -0
- package/api/updateCompanyTeam/graphql/updateCompanyTeam.graphql.d.ts +18 -0
- package/api/updateCompanyTeam/index.d.ts +18 -0
- package/api/updateCompanyTeam/updateCompanyTeam.d.ts +11 -0
- package/api/updateCompanyUserStatus/updateCompanyUserStatus.d.ts +1 -1
- package/api.js +16 -1
- package/api.js.map +1 -1
- package/chunks/CompanyUserForm.js +4 -0
- package/chunks/CompanyUserForm.js.map +1 -0
- package/chunks/acdl.js +4 -0
- package/chunks/acdl.js.map +1 -0
- package/chunks/company-permissions.js +4 -0
- package/chunks/company-permissions.js.map +1 -0
- package/chunks/fetchUserPermissions.js +10 -3
- package/chunks/fetchUserPermissions.js.map +1 -1
- package/chunks/getCountries.js +29 -0
- package/chunks/getCountries.js.map +1 -0
- package/chunks/getCustomerCompany.js +8 -2
- package/chunks/getCustomerCompany.js.map +1 -1
- package/chunks/isCompanyUser.js +61 -0
- package/chunks/isCompanyUser.js.map +1 -0
- package/chunks/{fetch-error.js → network-error.js} +2 -2
- package/chunks/network-error.js.map +1 -0
- package/chunks/updateCompany.js +11 -29
- package/chunks/updateCompany.js.map +1 -1
- package/chunks/updateCompanyTeam.js +42 -0
- package/chunks/updateCompanyTeam.js.map +1 -0
- package/chunks/updateCompanyUser.js +45 -0
- package/chunks/updateCompanyUser.js.map +1 -0
- package/chunks/updateCompanyUserStatus.js +3 -44
- package/chunks/updateCompanyUserStatus.js.map +1 -1
- package/chunks/useInLineAlert.js +1 -1
- package/chunks/useInLineAlert.js.map +1 -1
- package/components/CompanyLoaders/CompanyLoaders.d.ts +2 -0
- package/components/CompanyRegistrationForm/CompanyRegistrationForm.d.ts +13 -0
- package/components/CompanyRegistrationForm/Form/Form.d.ts +5 -0
- package/components/CompanyRegistrationForm/Form/FormInputs/FormInputs.d.ts +5 -0
- package/components/CompanyRegistrationForm/Form/FormInputs/index.d.ts +18 -0
- package/components/CompanyRegistrationForm/Form/fieldHandlers.d.ts +26 -0
- package/components/CompanyRegistrationForm/Form/fieldValidationRules.d.ts +63 -0
- package/components/CompanyRegistrationForm/Form/formValidation.d.ts +17 -0
- package/components/CompanyRegistrationForm/Form/getCompanyFieldsConfig.d.ts +13 -0
- package/components/CompanyRegistrationForm/Form/index.d.ts +18 -0
- package/components/CompanyRegistrationForm/index.d.ts +20 -0
- package/components/CompanyRegistrationSuccess/CompanyRegistrationSuccess.d.ts +8 -0
- package/components/CompanyRegistrationSuccess/index.d.ts +18 -0
- package/components/CompanyStructureCard/CompanyStructureCard.d.ts +12 -0
- package/components/CompanyStructureCard/index.d.ts +18 -0
- package/components/CompanyStructureEmpty/CompanyStructureEmpty.d.ts +9 -0
- package/components/CompanyStructureEmpty/index.d.ts +19 -0
- package/components/CompanyTeamForm/CompanyTeamForm.d.ts +17 -0
- package/components/CompanyTeamForm/index.d.ts +18 -0
- package/components/CompanyUsersFilters/CompanyUsersFilters.d.ts +29 -0
- package/components/CompanyUsersFilters/index.d.ts +18 -0
- package/components/index.d.ts +8 -1
- package/containers/CompanyProfile.js +1 -1
- package/containers/CompanyProfile.js.map +1 -1
- package/containers/CompanyRegistration/CompanyRegistration.d.ts +15 -0
- package/containers/CompanyRegistration/index.d.ts +19 -0
- package/containers/CompanyRegistration.d.ts +3 -0
- package/containers/CompanyRegistration.js +4 -0
- package/containers/CompanyRegistration.js.map +1 -0
- package/containers/CompanyStructure/CompanyStructure.d.ts +5 -0
- package/containers/CompanyStructure/index.d.ts +19 -0
- package/containers/CompanyStructure.d.ts +3 -0
- package/containers/CompanyStructure.js +4 -0
- package/containers/CompanyStructure.js.map +1 -0
- package/containers/CompanyUsers.js +1 -1
- package/containers/CompanyUsers.js.map +1 -1
- package/containers/CustomerCompanyInfo.js +1 -1
- package/containers/CustomerCompanyInfo.js.map +1 -1
- package/containers/index.d.ts +4 -1
- package/data/models/company-structure.d.ts +26 -0
- package/data/models/company-team.d.ts +24 -0
- package/data/models/company.d.ts +55 -16
- package/data/models/index.d.ts +2 -0
- package/data/transforms/company.d.ts +5 -0
- package/data/transforms/index.d.ts +3 -0
- package/data/transforms/transform-company-structure.d.ts +21 -0
- package/data/transforms/transform-company-team.d.ts +10 -0
- package/data/transforms/transform-company.d.ts +5 -1
- package/data/transforms/transform-store-config.d.ts +4 -0
- package/hooks/containers/useCompanyProfile.d.ts +1 -9
- package/hooks/index.d.ts +7 -0
- package/hooks/useCompanyRegistrationForm.d.ts +37 -0
- package/hooks/useCompanyStructureCard.d.ts +36 -0
- package/hooks/useCompanyTeamForm.d.ts +25 -0
- package/hooks/useCountryAndRegionFields.d.ts +20 -0
- package/hooks/useModal.d.ts +24 -0
- package/hooks/usePermissions.d.ts +30 -0
- package/i18n/en_US.json.d.ts +131 -44
- package/lib/acdl.d.ts +2 -1
- package/lib/company-permissions.d.ts +6 -28
- package/lib/fetch-error.d.ts +6 -1
- package/lib/network-error.d.ts +4 -0
- package/package.json +1 -1
- package/render.js +6 -3
- package/render.js.map +1 -1
- package/types/api/createCompanyTeam.types.d.ts +27 -0
- package/types/api/deleteCompanyTeam.types.d.ts +20 -0
- package/types/api/fetchUserPermissions.types.d.ts +43 -0
- package/types/api/getCompanyStructure.types.d.ts +33 -0
- package/types/api/getCompanyTeam.types.d.ts +20 -0
- package/types/api/getStoreConfig.types.d.ts +33 -0
- package/types/api/initialize.types.d.ts +21 -0
- package/types/api/updateCompanyStructure.types.d.ts +21 -0
- package/types/api/updateCompanyTeam.types.d.ts +22 -0
- package/types/companyPermission.types.d.ts +31 -0
- package/types/companyProfile.types.d.ts +43 -0
- package/types/companyStructure.types.d.ts +25 -0
- package/types/events.d.ts +21 -0
- package/types/form.types.d.ts +93 -0
- package/types/hook.types.d.ts +18 -0
- package/types/index.d.ts +25 -2
- package/api/updateCompany/graphql/updateCompany.graphql.d.ts +0 -2
- package/chunks/fetch-error.js.map +0 -1
- package/chunks/validateCompanyEmail.js +0 -10
- package/chunks/validateCompanyEmail.js.map +0 -1
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export declare const allowCompanyRegistration: () => Promise<boolean>;
|
|
18
|
+
//# sourceMappingURL=allowCompanyRegistration.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
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
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './allowCompanyRegistration';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export declare const companyEnabled: () => Promise<boolean>;
|
|
18
|
+
//# sourceMappingURL=companyEnabled.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
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
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './companyEnabled';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CompanyRegistrationModel } from '../../data/models/company';
|
|
2
|
+
|
|
3
|
+
export interface CompanyCreateInput {
|
|
4
|
+
company_name: string;
|
|
5
|
+
company_email: string;
|
|
6
|
+
legal_name?: string;
|
|
7
|
+
vat_tax_id?: string;
|
|
8
|
+
reseller_id?: string;
|
|
9
|
+
legal_address: {
|
|
10
|
+
street: string[];
|
|
11
|
+
city: string;
|
|
12
|
+
region: {
|
|
13
|
+
region_code: string;
|
|
14
|
+
region?: string;
|
|
15
|
+
region_id?: number;
|
|
16
|
+
};
|
|
17
|
+
postcode: string;
|
|
18
|
+
country_id: string;
|
|
19
|
+
telephone?: string;
|
|
20
|
+
};
|
|
21
|
+
company_admin: {
|
|
22
|
+
email: string;
|
|
23
|
+
firstname: string;
|
|
24
|
+
lastname: string;
|
|
25
|
+
job_title?: string;
|
|
26
|
+
telephone?: string;
|
|
27
|
+
gender?: number;
|
|
28
|
+
custom_attributes?: Array<{
|
|
29
|
+
attribute_code: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare const createCompany: (formData: any) => Promise<{
|
|
35
|
+
success: boolean;
|
|
36
|
+
company?: CompanyRegistrationModel;
|
|
37
|
+
errors?: string[];
|
|
38
|
+
}>;
|
|
39
|
+
//# sourceMappingURL=createCompany.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
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
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './createCompany';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreateCompanyTeamInput, CreateCompanyTeamResult } from '../../types/api/createCompanyTeam.types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new company team with the provided information
|
|
5
|
+
*
|
|
6
|
+
* @param input - Team information including name, description, and target location
|
|
7
|
+
* @returns Promise resolving to created team result or null if creation failed
|
|
8
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
9
|
+
*/
|
|
10
|
+
export declare function createCompanyTeam(input: CreateCompanyTeamInput): Promise<CreateCompanyTeamResult | null>;
|
|
11
|
+
//# sourceMappingURL=createCompanyTeam.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
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
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './createCompanyTeam';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deletes a company team by their ID
|
|
3
|
+
*
|
|
4
|
+
* @param id - The ID of the company team to delete
|
|
5
|
+
* @returns Promise resolving to boolean indicating success
|
|
6
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
7
|
+
*/
|
|
8
|
+
export declare function deleteCompanyTeam(id: string): Promise<boolean>;
|
|
9
|
+
//# sourceMappingURL=deleteCompanyTeam.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
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
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './deleteCompanyTeam';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { FetchUserPermissionsResult } from '../../types/api/fetchUserPermissions.types';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Fetches user permissions and returns both the allowed permission IDs and the role response
|
|
3
5
|
* This is a general-purpose API function that can be used across the application
|
|
6
|
+
*
|
|
7
|
+
* @returns Promise resolving to object containing allowed permission IDs and role response
|
|
8
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
4
9
|
*/
|
|
5
|
-
export declare
|
|
6
|
-
allowedIds: Set<string>;
|
|
7
|
-
roleResponse: any;
|
|
8
|
-
}>;
|
|
10
|
+
export declare function fetchUserPermissions(): Promise<FetchUserPermissionsResult>;
|
|
9
11
|
//# sourceMappingURL=fetchUserPermissions.d.ts.map
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* is strictly forbidden unless prior written permission is obtained
|
|
15
15
|
* from Adobe.
|
|
16
16
|
*******************************************************************/
|
|
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 children {\n id\n children {\n id\n children {\n id\n children { id }\n }\n }\n }\n }\n }\n status\n }\n }\n";
|
|
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
18
|
//# sourceMappingURL=getCustomerRole.graphql.d.ts.map
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { CompanyModel } from '../../data/models
|
|
1
|
+
import { CompanyModel } from '../../data/models';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves company information with permissions-aware field selection
|
|
5
|
+
* Only returns fields that the current user has permission to view
|
|
6
|
+
*
|
|
7
|
+
* @returns Promise resolving to CompanyModel or null if no company data available
|
|
8
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
9
|
+
*/
|
|
10
|
+
export declare function getCompany(): Promise<CompanyModel | null>;
|
|
4
11
|
//# sourceMappingURL=getCompany.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CompanyStructureNode } from '../../data/models';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves the company organizational structure as a tree of nodes
|
|
5
|
+
*
|
|
6
|
+
* @returns Promise resolving to array of CompanyStructureNode representing the company hierarchy
|
|
7
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
8
|
+
*/
|
|
9
|
+
export declare function getCompanyStructure(): Promise<CompanyStructureNode[]>;
|
|
10
|
+
//# sourceMappingURL=getCompanyStructure.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export declare const GET_COMPANY_STRUCTURE = "\n query getCompanyStructure {\n company {\n structure {\n items {\n id\n parent_id\n entity {\n __typename\n ... on CompanyTeam { id structure_id name description }\n ... on Customer { id structure_id firstname lastname }\n }\n }\n }\n }\n }\n";
|
|
18
|
+
//# sourceMappingURL=getCompanyStructure.graphql.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './getCompanyStructure';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompanyTeamModel } from '../../data/models';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves a specific company team by their ID
|
|
5
|
+
*
|
|
6
|
+
* @param id - The ID of the company team to retrieve
|
|
7
|
+
* @returns Promise resolving to CompanyTeamModel or null if team not found
|
|
8
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
9
|
+
*/
|
|
10
|
+
export declare function getCompanyTeam(id: string): Promise<CompanyTeamModel | null>;
|
|
11
|
+
//# sourceMappingURL=getCompanyTeam.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export declare const GET_COMPANY_TEAM = "\n query getCompanyTeam($id: ID!) {\n company { team(id: $id) { id name description } }\n }\n";
|
|
18
|
+
//# sourceMappingURL=getCompanyTeam.graphql.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './getCompanyTeam';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { CustomerCompanyInfo } from '../../data/models
|
|
1
|
+
import { CustomerCompanyInfo } from '../../data/models';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Gets customer company information for display on account information page
|
|
5
5
|
* This is a simplified API that only returns the essential company info needed
|
|
6
6
|
* for the customer account page, without requiring full company permissions
|
|
7
|
+
*
|
|
8
|
+
* @returns Promise resolving to CustomerCompanyInfo or null if company functionality is disabled
|
|
9
|
+
* @throws {Error} When network errors or GraphQL errors occur
|
|
7
10
|
*/
|
|
8
|
-
export declare
|
|
11
|
+
export declare function getCustomerCompany(): Promise<CustomerCompanyInfo | null>;
|
|
9
12
|
//# sourceMappingURL=getCustomerCompany.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoreConfigModel } from '../../types';
|
|
2
|
+
|
|
3
|
+
export declare const DEFAULT_COUNTRY = "US";
|
|
4
|
+
export declare const STORE_CONFIG_DEFAULTS: StoreConfigModel;
|
|
5
|
+
export declare const getStoreConfig: () => Promise<StoreConfigModel>;
|
|
6
|
+
//# sourceMappingURL=getStoreConfig.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export declare const GET_STORE_CONFIG_QUERY = "\n query getStoreConfig {\n storeConfig {\n default_country\n store_code\n }\n }\n";
|
|
18
|
+
//# sourceMappingURL=getStoreConfig.graphql.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export { getStoreConfig, STORE_CONFIG_DEFAULTS, DEFAULT_COUNTRY } from './getStoreConfig';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
export declare const COMPANY_LEGAL_ADDRESS_FRAGMENT = "\n fragment COMPANY_LEGAL_ADDRESS_FRAGMENT on CompanyLegalAddress {\n street\n city\n region {\n region\n region_code\n region_id\n }\n country_code\n postcode\n telephone\n }\n";
|
|
18
18
|
export declare const COMPANY_BASIC_INFO_FRAGMENT = "\n fragment COMPANY_BASIC_INFO_FRAGMENT on Company {\n id\n name\n email\n legal_name\n vat_tax_id\n reseller_id\n }\n";
|
|
19
19
|
export declare const COMPANY_SALES_REPRESENTATIVE_FRAGMENT = "\n fragment COMPANY_SALES_REPRESENTATIVE_FRAGMENT on CompanySalesRepresentative {\n firstname\n lastname\n email\n }\n";
|
|
20
|
-
export declare const COMPANY_ADMIN_FRAGMENT = "\n fragment COMPANY_ADMIN_FRAGMENT on Customer {\n firstname\n lastname\n email\n job_title\n }\n";
|
|
20
|
+
export declare const COMPANY_ADMIN_FRAGMENT = "\n fragment COMPANY_ADMIN_FRAGMENT on Customer {\n id\n firstname\n lastname\n email\n job_title\n }\n";
|
|
21
21
|
export declare const COMPANY_FULL_FRAGMENT: string;
|
|
22
22
|
//# sourceMappingURL=CompanyFragment.graphql.d.ts.map
|
package/api/index.d.ts
CHANGED
|
@@ -17,17 +17,29 @@
|
|
|
17
17
|
export * from './initialize';
|
|
18
18
|
export * from './fetch-graphql';
|
|
19
19
|
export * from './fetchUserPermissions';
|
|
20
|
+
export * from './allowCompanyRegistration';
|
|
20
21
|
export * from './checkIsCompanyEnabled';
|
|
22
|
+
export * from './companyEnabled';
|
|
23
|
+
export * from './createCompany';
|
|
24
|
+
export * from './createCompanyTeam';
|
|
21
25
|
export * from './createCompanyUser';
|
|
26
|
+
export * from './deleteCompanyTeam';
|
|
22
27
|
export * from './deleteCompanyUser';
|
|
23
28
|
export * from './getCompany';
|
|
24
29
|
export * from './getCompanyRoles';
|
|
30
|
+
export * from './getCompanyStructure';
|
|
31
|
+
export * from './getCompanyTeam';
|
|
25
32
|
export * from './getCompanyUser';
|
|
26
33
|
export * from './getCompanyUsers';
|
|
27
34
|
export * from './getCountries';
|
|
28
35
|
export * from './getCustomerCompany';
|
|
36
|
+
export * from './getStoreConfig';
|
|
37
|
+
export * from './isCompanyAdmin';
|
|
38
|
+
export * from './isCompanyUser';
|
|
29
39
|
export * from './isCompanyUserEmailAvailable';
|
|
30
40
|
export * from './updateCompany';
|
|
41
|
+
export * from './updateCompanyStructure';
|
|
42
|
+
export * from './updateCompanyTeam';
|
|
31
43
|
export * from './updateCompanyUser';
|
|
32
44
|
export * from './updateCompanyUserStatus';
|
|
33
45
|
export * from './validateCompanyEmail';
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
*******************************************************************/
|
|
17
|
-
export interface CompanyDropinConfig {
|
|
18
|
-
langDefinitions?: Record<string, Record<string, string>>;
|
|
19
|
-
models?: Record<string, any>;
|
|
20
|
-
}
|
|
1
|
+
import { CompanyDropinConfig } from '../../types/api/initialize.types';
|
|
2
|
+
|
|
21
3
|
export declare const initialize: (config?: CompanyDropinConfig) => Promise<{
|
|
22
4
|
success: boolean;
|
|
23
5
|
config: CompanyDropinConfig;
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export declare const GET_CUSTOMER_COMPANIES_WITH_ROLES = "\n query GET_CUSTOMER_COMPANIES_WITH_ROLES {\n customer {\n companies(input: {}) {\n items {\n id\n name\n }\n }\n role {\n id\n name\n }\n }\n }\n";
|
|
18
|
+
//# sourceMappingURL=isCompanyAdmin.graphql.d.ts.map
|
|
@@ -0,0 +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
|
+
*******************************************************************/
|
|
17
|
+
export * from './isCompanyAdmin';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|