@dropins/storefront-purchase-order 1.2.0 → 1.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/api/addPurchaseOrderComment/addPurchaseOrderComment.d.ts +16 -2
- package/api/addPurchaseOrderComment/graphql/addPurchaseOrderComment.graphql.d.ts +0 -1
- package/api/addPurchaseOrderComment/index.d.ts +0 -1
- package/api/addPurchaseOrderItemsToCart/addPurchaseOrderItemsToCart.d.ts +16 -2
- package/api/addPurchaseOrderItemsToCart/graphql/addPurchaseOrderItemsToCart.graphql.d.ts +0 -1
- package/api/addPurchaseOrderItemsToCart/index.d.ts +0 -1
- package/api/approvePurchaseOrders/approvePurchaseOrders.d.ts +0 -2
- package/api/approvePurchaseOrders/graphql/approvePurchaseOrders.graphql.d.ts +1 -2
- package/api/approvePurchaseOrders/index.d.ts +0 -1
- package/api/cancelPurchaseOrders/cancelPurchaseOrders.d.ts +0 -2
- package/api/cancelPurchaseOrders/graphql/cancelPurchaseOrders.graphql.d.ts +1 -2
- package/api/cancelPurchaseOrders/index.d.ts +0 -1
- package/api/createPurchaseOrderApprovalRule/createPurchaseOrderApprovalRule.d.ts +0 -2
- package/api/createPurchaseOrderApprovalRule/graphql/createPurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/createPurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/currencyInfo/currencyInfo.d.ts +0 -1
- package/api/currencyInfo/graphql/currencyInfo.graphql.d.ts +0 -1
- package/api/currencyInfo/index.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/deletePurchaseOrderApprovalRule.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/graphql/deletePurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/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/fragments.d.ts +0 -1
- package/api/getPurchaseOrder/getPurchaseOrder.d.ts +16 -2
- package/api/getPurchaseOrder/graphql/getPurchaseOrder.graphql.d.ts +1 -2
- package/api/getPurchaseOrder/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRule/getPurchaseOrderApprovalRule.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRule/graphql/getPurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRuleMetadata/getPurchaseOrderApprovalRuleMetadata.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRuleMetadata/graphql/getPurchaseOrderApprovalRuleMetadata.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRuleMetadata/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRules/getPurchaseOrderApprovalRules.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRules/graphql/getPurchaseOrderApprovalRules.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRules/index.d.ts +0 -1
- package/api/getPurchaseOrders/getPurchaseOrders.d.ts +16 -2
- package/api/getPurchaseOrders/graphql/getPurchaseOrders.graphql.d.ts +1 -2
- package/api/getPurchaseOrders/index.d.ts +0 -1
- package/api/graphql/PurchaseOrderQuoteFragment.d.ts +0 -1
- package/api/graphql/PurchaseOrdersFragment.graphql.d.ts +1 -2
- package/api/index.d.ts +0 -1
- package/api/initialize/index.d.ts +0 -1
- package/api/initialize/initialize.d.ts +19 -5
- package/api/permissions.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/graphql/placeOrderForPurchaseOrder.graphql.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/index.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/placeOrderForPurchaseOrder.d.ts +16 -2
- package/api/placePurchaseOrder/graphql/placePurchaseOrder.graphql.d.ts +1 -2
- package/api/placePurchaseOrder/index.d.ts +0 -1
- package/api/placePurchaseOrder/placePurchaseOrder.d.ts +16 -2
- package/api/rejectPurchaseOrders/graphql/rejectPurchaseOrders.graphql.d.ts +1 -2
- package/api/rejectPurchaseOrders/index.d.ts +0 -1
- package/api/rejectPurchaseOrders/rejectPurchaseOrders.d.ts +0 -2
- package/api/updatePurchaseOrderApprovalRule/graphql/updatePurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/updatePurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/updatePurchaseOrderApprovalRule/updatePurchaseOrderApprovalRule.d.ts +0 -2
- package/api/validatePurchaseOrders/graphql/validatePurchaseOrders.graphql.d.ts +1 -2
- package/api/validatePurchaseOrders/index.d.ts +0 -1
- package/api/validatePurchaseOrders/validatePurchaseOrders.d.ts +0 -2
- package/api.d.ts +1 -1
- package/api.js +12 -12
- package/api.js.map +1 -1
- package/chunks/components.js +1 -1
- package/chunks/components.js.map +1 -1
- package/components/ApprovalRuleDetailsContent/ApprovalRuleDetailsContent.d.ts +16 -2
- package/components/ApprovalRuleDetailsContent/index.d.ts +0 -1
- package/components/ApprovalRuleForm/ApprovalRuleForm.d.ts +16 -2
- package/components/ApprovalRuleForm/blocks/ErrorMessage.d.ts +16 -2
- package/components/ApprovalRuleForm/blocks/Form.d.ts +18 -4
- package/components/ApprovalRuleForm/blocks/index.d.ts +0 -1
- package/components/ApprovalRuleForm/index.d.ts +0 -1
- package/components/FormLoader/FormLoader.d.ts +16 -2
- package/components/FormLoader/index.d.ts +0 -1
- package/components/PurchaseOrderApprovalFlowContent/PurchaseOrderApprovalFlowContent.d.ts +16 -2
- package/components/PurchaseOrderApprovalFlowContent/index.d.ts +0 -1
- package/components/PurchaseOrderCommentFormContent/PurchaseOrderCommentFormContent.d.ts +16 -2
- package/components/PurchaseOrderCommentFormContent/index.d.ts +0 -1
- package/components/PurchaseOrderCommentsListContent/PurchaseOrderCommentsListContent.d.ts +16 -2
- package/components/PurchaseOrderCommentsListContent/index.d.ts +0 -1
- package/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.d.ts +16 -2
- package/components/PurchaseOrderConfirmationContent/index.d.ts +0 -1
- package/components/PurchaseOrderHistoryLogContent/PurchaseOrderHistoryLogContent.d.ts +16 -2
- package/components/PurchaseOrderHistoryLogContent/index.d.ts +0 -1
- package/components/PurchaseOrderStatusContent/PurchaseOrderStatusContent.d.ts +16 -2
- package/components/PurchaseOrderStatusContent/index.d.ts +0 -1
- package/components/PurchaseOrdersHeader/PurchaseOrdersHeader.d.ts +16 -2
- package/components/PurchaseOrdersHeader/index.d.ts +0 -1
- package/components/PurchaseOrdersTable/PurchaseOrdersTable.d.ts +16 -2
- package/components/PurchaseOrdersTable/index.d.ts +0 -1
- package/components/PurchaseOrdersTableActions/PurchaseOrdersTableActions.d.ts +16 -2
- package/components/PurchaseOrdersTableActions/index.d.ts +0 -1
- package/components/index.d.ts +0 -1
- package/configs/approvalRuleForm.config.d.ts +19 -5
- package/configs/companyPurchaseOrders.config.d.ts +16 -2
- package/configs/customerPurchaseOrders.config.d.ts +16 -2
- package/configs/index.d.ts +0 -1
- package/configs/pageSize.config.d.ts +0 -1
- package/configs/purchaseOrderApprovalRules.config.d.ts +16 -2
- package/containers/ApprovalRuleDetails/ApprovalRuleDetails.d.ts +17 -3
- package/containers/ApprovalRuleDetails/index.d.ts +0 -1
- package/containers/ApprovalRuleDetails.d.ts +1 -3
- package/containers/ApprovalRuleDetails.js +1 -1
- package/containers/ApprovalRuleForm/ApprovalRuleForm.d.ts +17 -3
- package/containers/ApprovalRuleForm/index.d.ts +0 -1
- package/containers/ApprovalRuleForm.d.ts +1 -3
- package/containers/ApprovalRuleForm.js +1 -1
- package/containers/ApprovalRulesList/ApprovalRulesList.d.ts +17 -3
- package/containers/ApprovalRulesList/index.d.ts +0 -1
- package/containers/ApprovalRulesList.d.ts +1 -3
- package/containers/ApprovalRulesList.js +1 -1
- package/containers/CompanyPurchaseOrders/CompanyPurchaseOrders.d.ts +17 -3
- package/containers/CompanyPurchaseOrders/index.d.ts +0 -1
- package/containers/CompanyPurchaseOrders.d.ts +1 -3
- package/containers/CompanyPurchaseOrders.js +1 -1
- package/containers/CustomerPurchaseOrders/CustomerPurchaseOrders.d.ts +17 -3
- package/containers/CustomerPurchaseOrders/index.d.ts +0 -1
- package/containers/CustomerPurchaseOrders.d.ts +1 -3
- package/containers/CustomerPurchaseOrders.js +1 -1
- package/containers/PurchaseOrderApprovalFlow/PurchaseOrderApprovalFlow.d.ts +17 -3
- package/containers/PurchaseOrderApprovalFlow/index.d.ts +0 -1
- package/containers/PurchaseOrderApprovalFlow.d.ts +1 -3
- package/containers/PurchaseOrderApprovalFlow.js +1 -1
- package/containers/PurchaseOrderCommentForm/PurchaseOrderCommentForm.d.ts +17 -3
- package/containers/PurchaseOrderCommentForm/index.d.ts +0 -1
- package/containers/PurchaseOrderCommentForm.d.ts +1 -3
- package/containers/PurchaseOrderCommentForm.js +1 -1
- package/containers/PurchaseOrderCommentsList/PurchaseOrderCommentsList.d.ts +17 -3
- package/containers/PurchaseOrderCommentsList/index.d.ts +0 -1
- package/containers/PurchaseOrderCommentsList.d.ts +1 -3
- package/containers/PurchaseOrderCommentsList.js +1 -1
- package/containers/PurchaseOrderConfirmation/PurchaseOrderConfirmation.d.ts +17 -3
- package/containers/PurchaseOrderConfirmation/index.d.ts +0 -1
- package/containers/PurchaseOrderConfirmation.d.ts +1 -3
- package/containers/PurchaseOrderConfirmation.js +1 -1
- package/containers/PurchaseOrderHistoryLog/PurchaseOrderHistoryLog.d.ts +17 -3
- package/containers/PurchaseOrderHistoryLog/index.d.ts +0 -1
- package/containers/PurchaseOrderHistoryLog.d.ts +1 -3
- package/containers/PurchaseOrderHistoryLog.js +1 -1
- package/containers/PurchaseOrderStatus/PurchaseOrderStatus.d.ts +17 -3
- package/containers/PurchaseOrderStatus/index.d.ts +0 -1
- package/containers/PurchaseOrderStatus.d.ts +1 -3
- package/containers/PurchaseOrderStatus.js +1 -1
- package/containers/RequireApprovalPurchaseOrders/RequireApprovalPurchaseOrders.d.ts +17 -3
- package/containers/RequireApprovalPurchaseOrders/index.d.ts +0 -1
- package/containers/RequireApprovalPurchaseOrders.d.ts +1 -3
- package/containers/RequireApprovalPurchaseOrders.js +1 -1
- package/containers/index.d.ts +0 -1
- package/data/models/cart-model.d.ts +0 -1
- package/data/models/customer-order-model.d.ts +0 -1
- package/data/models/customer-role-permissions-model.d.ts +0 -1
- package/data/models/index.d.ts +0 -1
- package/data/models/purchase-order-approval-rule-metadata-model.d.ts +0 -1
- package/data/models/purchase-order-approval-rule-model.d.ts +0 -1
- package/data/models/purchase-order-comment-model.d.ts +0 -1
- package/data/models/purchase-order-model.d.ts +0 -1
- package/data/transforms/index.d.ts +0 -1
- package/data/transforms/transform-cart.d.ts +16 -2
- package/data/transforms/transform-customer-order.d.ts +16 -2
- package/data/transforms/transform-customer-role-permissions.d.ts +16 -2
- package/data/transforms/transform-purchase-order-approval-rule-metadata.d.ts +16 -2
- package/data/transforms/transform-purchase-order-approval-rule.d.ts +16 -2
- package/data/transforms/transform-purchase-order-comment.d.ts +16 -2
- package/data/transforms/transform-purchase-order.d.ts +16 -2
- package/hooks/index.d.ts +0 -1
- package/hooks/useApprovalRuleDetails.d.ts +16 -2
- package/hooks/useApprovalRuleForm.d.ts +16 -2
- package/hooks/useApprovalRulesList.d.ts +16 -2
- package/hooks/useCustomerRolePermissions.d.ts +16 -2
- package/hooks/usePurchaseOrderData.d.ts +16 -2
- package/hooks/usePurchaseOrderStatus.d.ts +16 -2
- package/hooks/usePurchaseOrders.d.ts +16 -2
- package/lib/case-converter.d.ts +0 -1
- package/lib/cleanAndDeep.d.ts +0 -1
- package/lib/fetch-error.d.ts +0 -1
- package/lib/formValidation.d.ts +16 -2
- package/lib/formatDate.d.ts +0 -1
- package/lib/getRange.d.ts +0 -1
- package/lib/getStatusVariant.d.ts +0 -1
- package/lib/index.d.ts +1 -1
- package/lib/isValidUrl.d.ts +0 -1
- package/lib/navigation.d.ts +1 -0
- package/lib/network-error.d.ts +0 -1
- package/lib/transformToFormValues.d.ts +16 -2
- package/lib/updateFormFieldValue.d.ts +16 -2
- package/mocks/index.d.ts +2 -3
- package/mocks/storybook/approval-rules.d.ts +18 -0
- package/mocks/storybook/events-data.d.ts +6 -2
- package/mocks/storybook/index.d.ts +0 -1
- package/mocks/storybook/purchase-orders.d.ts +179 -0
- 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 -3
- package/render.d.ts +1 -1
- package/types/api/api.enums.types.d.ts +0 -1
- package/types/api/index.d.ts +0 -1
- package/types/components/approvalFlowContent.types.d.ts +0 -2
- package/types/components/approvalRuleDetailsContentProps.types.d.ts +16 -2
- package/types/components/approvalRuleForm.types.d.ts +16 -2
- package/types/components/historyLogContent.types.d.ts +0 -2
- package/types/components/index.d.ts +0 -1
- package/types/components/pagination.types.d.ts +0 -1
- package/types/components/purchaseOrderCommentFormContent.types.d.ts +0 -2
- package/types/components/purchaseOrderCommentsListContent.types.d.ts +0 -2
- package/types/components/purchaseOrderConfirmationContent.types.d.ts +16 -2
- package/types/components/purchaseOrderHistoryLogContent.types.d.ts +16 -2
- package/types/components/purchaseOrderStatusContent.types.d.ts +17 -3
- package/types/components/purchaseOrdersTable.types.d.ts +16 -2
- package/types/components/purchaseOrdersTableActions.d.ts +0 -1
- package/types/containers/approvalRuleDetailsProps.types.d.ts +0 -1
- package/types/containers/approvalRuleForm.types.d.ts +16 -2
- package/types/containers/approvalRulesList.types.d.ts +16 -2
- package/types/containers/companyPurchaseOrders.types.d.ts +16 -2
- package/types/containers/customerPurchaseOrders.types.d.ts +16 -2
- package/types/containers/historyLog.types.d.ts +0 -1
- package/types/containers/index.d.ts +0 -1
- package/types/containers/purchaseOrderApprovalFlow.types.d.ts +0 -1
- package/types/containers/purchaseOrderCommentForm.types.d.ts +0 -1
- package/types/containers/purchaseOrderCommentsList.types.d.ts +0 -1
- package/types/containers/purchaseOrderConfirmationProps.types.d.ts +16 -2
- package/types/containers/purchaseOrderHistoryLog.types.d.ts +0 -1
- package/types/containers/purchaseOrderStatus.types.d.ts +17 -3
- package/types/containers/requireApprovalPurchaseOrders.types.d.ts +16 -2
- package/types/hooks/index.d.ts +0 -1
- package/types/hooks/useApprovalRuleDetails.types.d.ts +0 -1
- package/types/hooks/useApprovalRuleForm.types.d.ts +16 -2
- package/types/hooks/useApprovalRulesList.types.d.ts +16 -2
- package/types/hooks/usePurchaseOrderStatus.types.d.ts +17 -3
- package/types/hooks/usePurchaseOrders.types.d.ts +16 -2
- package/i18n/en_US.json.d.ts +0 -310
|
@@ -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 { CartModel } from '../models';
|
|
2
|
-
|
|
3
18
|
export declare const transformCart: (data: any) => CartModel;
|
|
4
|
-
//# sourceMappingURL=transform-cart.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 { CustomerOrderModel } from '../models/customer-order-model';
|
|
2
|
-
|
|
3
18
|
export declare const transformCustomerOrder: (response: any) => CustomerOrderModel;
|
|
4
|
-
//# sourceMappingURL=transform-customer-order.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 { CustomerRolePermissionsModel } from '../models/customer-role-permissions-model';
|
|
2
|
-
|
|
3
18
|
type PermissionsPayload = {
|
|
4
19
|
admin?: boolean;
|
|
5
20
|
[key: string]: boolean | undefined;
|
|
@@ -17,4 +32,3 @@ type PermissionsPayload = {
|
|
|
17
32
|
*/
|
|
18
33
|
export declare const transformPermissions: (permissionsData: PermissionsPayload | null | undefined) => CustomerRolePermissionsModel;
|
|
19
34
|
export {};
|
|
20
|
-
//# sourceMappingURL=transform-customer-role-permissions.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 { PurchaseOrderApprovalRuleMetadataModel } from '../models/purchase-order-approval-rule-metadata-model';
|
|
2
|
-
|
|
3
18
|
export declare const transformPurchaseOrderApprovalRuleMetadata: (response: any) => PurchaseOrderApprovalRuleMetadataModel;
|
|
4
|
-
//# sourceMappingURL=transform-purchase-order-approval-rule-metadata.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 { PurchaseOrderApprovalRuleModel } from '../models/purchase-order-approval-rule-model';
|
|
2
|
-
|
|
3
18
|
export declare const transformPurchaseOrderApprovalRule: (approvalRule: any) => PurchaseOrderApprovalRuleModel;
|
|
4
|
-
//# sourceMappingURL=transform-purchase-order-approval-rule.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 { PurchaseOrderCommentModel } from '../models';
|
|
2
|
-
|
|
3
18
|
export declare const transformPurchaseOrderComment: (comment: any) => PurchaseOrderCommentModel;
|
|
4
|
-
//# sourceMappingURL=transform-purchase-order-comment.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 { PurchaseOrderModel } from '../models';
|
|
2
|
-
|
|
3
18
|
export declare const transformPurchaseOrder: (purchaseOrder: any) => PurchaseOrderModel;
|
|
4
|
-
//# sourceMappingURL=transform-purchase-order.d.ts.map
|
package/hooks/index.d.ts
CHANGED
|
@@ -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 { UseApprovalRuleDetailsProps } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
export declare const useApprovalRuleDetails: ({ approvalRuleID, routeApprovalRulesList, }: UseApprovalRuleDetailsProps) => {
|
|
4
19
|
handleRedirectToList: () => void;
|
|
5
20
|
loading: boolean;
|
|
@@ -11,4 +26,3 @@ export declare const useApprovalRuleDetails: ({ approvalRuleID, routeApprovalRul
|
|
|
11
26
|
value: import("preact").JSX.Element;
|
|
12
27
|
})[];
|
|
13
28
|
};
|
|
14
|
-
//# sourceMappingURL=useApprovalRuleDetails.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 { UseApprovalRuleFormProps, UseApprovalRuleFormReturn } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
export declare const useApprovalRuleForm: ({ t, approvalRuleID, routeApprovalRulesList, onSubmit, onChange, permissions, loadingPermissions, }: UseApprovalRuleFormProps) => UseApprovalRuleFormReturn;
|
|
4
|
-
//# sourceMappingURL=useApprovalRuleForm.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 { UseApprovalRulesList, UseApprovalRulesListReturn } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
export declare const useApprovalRulesList: ({ routeApprovalRuleDetails, routeCreateApprovalRule, routeEditApprovalRule, setColumns, setRowsData, initialPageSize, permissions, loadingPermissions, t, }: UseApprovalRulesList) => UseApprovalRulesListReturn;
|
|
4
|
-
//# sourceMappingURL=useApprovalRulesList.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 { CustomerRolePermissionsModel } from '../data/models';
|
|
2
|
-
|
|
3
18
|
/**
|
|
4
19
|
* Hook to consume customer role permissions from the auth/permissions event
|
|
5
20
|
*
|
|
@@ -15,4 +30,3 @@ export declare const useCustomerRolePermissions: () => {
|
|
|
15
30
|
permissions: CustomerRolePermissionsModel;
|
|
16
31
|
loadingPermissions: boolean;
|
|
17
32
|
};
|
|
18
|
-
//# sourceMappingURL=useCustomerRolePermissions.d.ts.map
|
|
@@ -1,7 +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 { PurchaseOrderModel } from '../data/models';
|
|
2
|
-
|
|
3
18
|
export declare const usePurchaseOrderData: () => {
|
|
4
19
|
poDataLoading: boolean;
|
|
5
20
|
purchaseOrderData: PurchaseOrderModel | null;
|
|
6
21
|
};
|
|
7
|
-
//# sourceMappingURL=usePurchaseOrderData.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 { UsePurchaseOrderStatusReturn } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
export declare const usePurchaseOrderStatus: () => UsePurchaseOrderStatusReturn;
|
|
4
|
-
//# sourceMappingURL=usePurchaseOrderStatus.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 { UsePurchaseOrdersParams, UsePurchaseOrdersReturn } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
export declare const usePurchaseOrders: ({ view, initialPageSize, routePurchaseOrderDetails, setColumns, setRowsData, t, permissions, loadingPermissions, }: UsePurchaseOrdersParams) => UsePurchaseOrdersReturn;
|
|
4
|
-
//# sourceMappingURL=usePurchaseOrders.d.ts.map
|
package/lib/case-converter.d.ts
CHANGED
package/lib/cleanAndDeep.d.ts
CHANGED
package/lib/fetch-error.d.ts
CHANGED
package/lib/formValidation.d.ts
CHANGED
|
@@ -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 { FormValuesParams, ValidationApprovalFormError } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
/**
|
|
4
19
|
* Validates all form fields and returns validation errors
|
|
5
20
|
* This function contains the core validation logic for the approval rule form
|
|
@@ -19,4 +34,3 @@ export declare const getVisibleErrors: (allErrors: ValidationApprovalFormError,
|
|
|
19
34
|
export declare const updateValidationErrors: (newErrors: ValidationApprovalFormError, currentErrors: ValidationApprovalFormError, touchedFields: {
|
|
20
35
|
[key: string]: boolean;
|
|
21
36
|
}) => ValidationApprovalFormError;
|
|
22
|
-
//# sourceMappingURL=formValidation.d.ts.map
|
package/lib/formatDate.d.ts
CHANGED
package/lib/getRange.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/isValidUrl.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const navigate: (url: string) => void;
|
package/lib/network-error.d.ts
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
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 { PurchaseOrderApprovalRuleModel } from '../data/models';
|
|
2
18
|
import { FormValuesParams } from '../types/hooks';
|
|
3
|
-
|
|
4
19
|
/**
|
|
5
20
|
* Transforms API response data to form values format
|
|
6
21
|
* Handles all the necessary data conversions and provides safe defaults
|
|
7
22
|
*/
|
|
8
23
|
export declare const transformToFormValues: (data: PurchaseOrderApprovalRuleModel) => FormValuesParams;
|
|
9
|
-
//# sourceMappingURL=transformToFormValues.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 { FormValuesParams } from '../types/hooks';
|
|
2
|
-
|
|
3
18
|
export declare const updateFormFieldValue: (formValues: FormValuesParams, key: string, value: string | number | boolean | string[]) => FormValuesParams;
|
|
4
|
-
//# sourceMappingURL=updateFormFieldValue.d.ts.map
|
package/mocks/index.d.ts
CHANGED
|
@@ -163,14 +163,14 @@ export declare const mockCancelPurchaseOrderSingleSuccessResponse: {
|
|
|
163
163
|
export declare const mockCancelPurchaseOrderMultipleSuccessResponse: {
|
|
164
164
|
data: {
|
|
165
165
|
cancelPurchaseOrders: {
|
|
166
|
-
purchase_orders: {
|
|
166
|
+
purchase_orders: ({
|
|
167
167
|
uid: string;
|
|
168
168
|
number: string;
|
|
169
169
|
status: string;
|
|
170
170
|
created_at: string;
|
|
171
171
|
updated_at: string;
|
|
172
172
|
available_actions: string[];
|
|
173
|
-
}[];
|
|
173
|
+
} | undefined)[];
|
|
174
174
|
errors: never[];
|
|
175
175
|
};
|
|
176
176
|
};
|
|
@@ -3036,4 +3036,3 @@ export declare const mockGetPurchaseOrderApprovalRulesMissingRulesSnakeCase: {
|
|
|
3036
3036
|
};
|
|
3037
3037
|
};
|
|
3038
3038
|
};
|
|
3039
|
-
//# 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 approvalRulesHandlers: import("msw").GraphQLHandler[];
|
|
18
|
+
export declare const approvalRulesErrorHandlers: import("msw").GraphQLHandler[];
|
|
@@ -14,11 +14,15 @@
|
|
|
14
14
|
* is strictly forbidden unless prior written permission is obtained
|
|
15
15
|
* from Adobe.
|
|
16
16
|
*******************************************************************/
|
|
17
|
+
import { PO_PERMISSIONS } from '../../api/permissions';
|
|
17
18
|
export declare const mockPermissions: {
|
|
18
|
-
[
|
|
19
|
+
[PO_PERMISSIONS.PO_ALL]: boolean;
|
|
20
|
+
[PO_PERMISSIONS.VIEW_CUSTOMER]: boolean;
|
|
21
|
+
[PO_PERMISSIONS.SUPER_APPROVE]: boolean;
|
|
22
|
+
[PO_PERMISSIONS.VIEW_RULES]: boolean;
|
|
23
|
+
[PO_PERMISSIONS.MANAGE_RULES]: boolean;
|
|
19
24
|
all: boolean;
|
|
20
25
|
'Magento_Company::index': boolean;
|
|
21
26
|
'Magento_Sales::all': boolean;
|
|
22
27
|
'Magento_Company::user_management': boolean;
|
|
23
28
|
};
|
|
24
|
-
//# sourceMappingURL=events-data.d.ts.map
|