@dropins/storefront-purchase-order 1.2.0 → 1.2.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/api/addPurchaseOrderComment/addPurchaseOrderComment.d.ts +16 -2
  3. package/api/addPurchaseOrderComment/graphql/addPurchaseOrderComment.graphql.d.ts +0 -1
  4. package/api/addPurchaseOrderComment/index.d.ts +0 -1
  5. package/api/addPurchaseOrderItemsToCart/addPurchaseOrderItemsToCart.d.ts +16 -2
  6. package/api/addPurchaseOrderItemsToCart/graphql/addPurchaseOrderItemsToCart.graphql.d.ts +0 -1
  7. package/api/addPurchaseOrderItemsToCart/index.d.ts +0 -1
  8. package/api/approvePurchaseOrders/approvePurchaseOrders.d.ts +0 -2
  9. package/api/approvePurchaseOrders/graphql/approvePurchaseOrders.graphql.d.ts +1 -2
  10. package/api/approvePurchaseOrders/index.d.ts +0 -1
  11. package/api/cancelPurchaseOrders/cancelPurchaseOrders.d.ts +0 -2
  12. package/api/cancelPurchaseOrders/graphql/cancelPurchaseOrders.graphql.d.ts +1 -2
  13. package/api/cancelPurchaseOrders/index.d.ts +0 -1
  14. package/api/createPurchaseOrderApprovalRule/createPurchaseOrderApprovalRule.d.ts +0 -2
  15. package/api/createPurchaseOrderApprovalRule/graphql/createPurchaseOrderApprovalRule.graphql.d.ts +0 -1
  16. package/api/createPurchaseOrderApprovalRule/index.d.ts +0 -1
  17. package/api/currencyInfo/currencyInfo.d.ts +0 -1
  18. package/api/currencyInfo/graphql/currencyInfo.graphql.d.ts +0 -1
  19. package/api/currencyInfo/index.d.ts +0 -1
  20. package/api/deletePurchaseOrderApprovalRule/deletePurchaseOrderApprovalRule.d.ts +0 -1
  21. package/api/deletePurchaseOrderApprovalRule/graphql/deletePurchaseOrderApprovalRule.graphql.d.ts +0 -1
  22. package/api/deletePurchaseOrderApprovalRule/index.d.ts +0 -1
  23. package/api/fetch-graphql/fetch-graphql.d.ts +3 -4
  24. package/api/fetch-graphql/index.d.ts +0 -1
  25. package/api/fragments.d.ts +0 -1
  26. package/api/getPurchaseOrder/getPurchaseOrder.d.ts +16 -2
  27. package/api/getPurchaseOrder/graphql/getPurchaseOrder.graphql.d.ts +1 -2
  28. package/api/getPurchaseOrder/index.d.ts +0 -1
  29. package/api/getPurchaseOrderApprovalRule/getPurchaseOrderApprovalRule.d.ts +16 -2
  30. package/api/getPurchaseOrderApprovalRule/graphql/getPurchaseOrderApprovalRule.graphql.d.ts +0 -1
  31. package/api/getPurchaseOrderApprovalRule/index.d.ts +0 -1
  32. package/api/getPurchaseOrderApprovalRuleMetadata/getPurchaseOrderApprovalRuleMetadata.d.ts +16 -2
  33. package/api/getPurchaseOrderApprovalRuleMetadata/graphql/getPurchaseOrderApprovalRuleMetadata.graphql.d.ts +0 -1
  34. package/api/getPurchaseOrderApprovalRuleMetadata/index.d.ts +0 -1
  35. package/api/getPurchaseOrderApprovalRules/getPurchaseOrderApprovalRules.d.ts +16 -2
  36. package/api/getPurchaseOrderApprovalRules/graphql/getPurchaseOrderApprovalRules.graphql.d.ts +0 -1
  37. package/api/getPurchaseOrderApprovalRules/index.d.ts +0 -1
  38. package/api/getPurchaseOrders/getPurchaseOrders.d.ts +16 -2
  39. package/api/getPurchaseOrders/graphql/getPurchaseOrders.graphql.d.ts +1 -2
  40. package/api/getPurchaseOrders/index.d.ts +0 -1
  41. package/api/graphql/PurchaseOrderQuoteFragment.d.ts +0 -1
  42. package/api/graphql/PurchaseOrdersFragment.graphql.d.ts +1 -2
  43. package/api/index.d.ts +0 -1
  44. package/api/initialize/index.d.ts +0 -1
  45. package/api/initialize/initialize.d.ts +19 -5
  46. package/api/permissions.d.ts +0 -1
  47. package/api/placeOrderForPurchaseOrder/graphql/placeOrderForPurchaseOrder.graphql.d.ts +0 -1
  48. package/api/placeOrderForPurchaseOrder/index.d.ts +0 -1
  49. package/api/placeOrderForPurchaseOrder/placeOrderForPurchaseOrder.d.ts +16 -2
  50. package/api/placePurchaseOrder/graphql/placePurchaseOrder.graphql.d.ts +1 -2
  51. package/api/placePurchaseOrder/index.d.ts +0 -1
  52. package/api/placePurchaseOrder/placePurchaseOrder.d.ts +16 -2
  53. package/api/rejectPurchaseOrders/graphql/rejectPurchaseOrders.graphql.d.ts +1 -2
  54. package/api/rejectPurchaseOrders/index.d.ts +0 -1
  55. package/api/rejectPurchaseOrders/rejectPurchaseOrders.d.ts +0 -2
  56. package/api/updatePurchaseOrderApprovalRule/graphql/updatePurchaseOrderApprovalRule.graphql.d.ts +0 -1
  57. package/api/updatePurchaseOrderApprovalRule/index.d.ts +0 -1
  58. package/api/updatePurchaseOrderApprovalRule/updatePurchaseOrderApprovalRule.d.ts +0 -2
  59. package/api/validatePurchaseOrders/graphql/validatePurchaseOrders.graphql.d.ts +1 -2
  60. package/api/validatePurchaseOrders/index.d.ts +0 -1
  61. package/api/validatePurchaseOrders/validatePurchaseOrders.d.ts +0 -2
  62. package/api.d.ts +1 -1
  63. package/api.js +12 -12
  64. package/api.js.map +1 -1
  65. package/chunks/components.js +1 -1
  66. package/chunks/components.js.map +1 -1
  67. package/components/ApprovalRuleDetailsContent/ApprovalRuleDetailsContent.d.ts +16 -2
  68. package/components/ApprovalRuleDetailsContent/index.d.ts +0 -1
  69. package/components/ApprovalRuleForm/ApprovalRuleForm.d.ts +16 -2
  70. package/components/ApprovalRuleForm/blocks/ErrorMessage.d.ts +16 -2
  71. package/components/ApprovalRuleForm/blocks/Form.d.ts +18 -4
  72. package/components/ApprovalRuleForm/blocks/index.d.ts +0 -1
  73. package/components/ApprovalRuleForm/index.d.ts +0 -1
  74. package/components/FormLoader/FormLoader.d.ts +16 -2
  75. package/components/FormLoader/index.d.ts +0 -1
  76. package/components/PurchaseOrderApprovalFlowContent/PurchaseOrderApprovalFlowContent.d.ts +16 -2
  77. package/components/PurchaseOrderApprovalFlowContent/index.d.ts +0 -1
  78. package/components/PurchaseOrderCommentFormContent/PurchaseOrderCommentFormContent.d.ts +16 -2
  79. package/components/PurchaseOrderCommentFormContent/index.d.ts +0 -1
  80. package/components/PurchaseOrderCommentsListContent/PurchaseOrderCommentsListContent.d.ts +16 -2
  81. package/components/PurchaseOrderCommentsListContent/index.d.ts +0 -1
  82. package/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.d.ts +16 -2
  83. package/components/PurchaseOrderConfirmationContent/index.d.ts +0 -1
  84. package/components/PurchaseOrderHistoryLogContent/PurchaseOrderHistoryLogContent.d.ts +16 -2
  85. package/components/PurchaseOrderHistoryLogContent/index.d.ts +0 -1
  86. package/components/PurchaseOrderStatusContent/PurchaseOrderStatusContent.d.ts +16 -2
  87. package/components/PurchaseOrderStatusContent/index.d.ts +0 -1
  88. package/components/PurchaseOrdersHeader/PurchaseOrdersHeader.d.ts +16 -2
  89. package/components/PurchaseOrdersHeader/index.d.ts +0 -1
  90. package/components/PurchaseOrdersTable/PurchaseOrdersTable.d.ts +16 -2
  91. package/components/PurchaseOrdersTable/index.d.ts +0 -1
  92. package/components/PurchaseOrdersTableActions/PurchaseOrdersTableActions.d.ts +16 -2
  93. package/components/PurchaseOrdersTableActions/index.d.ts +0 -1
  94. package/components/index.d.ts +0 -1
  95. package/configs/approvalRuleForm.config.d.ts +19 -5
  96. package/configs/companyPurchaseOrders.config.d.ts +16 -2
  97. package/configs/customerPurchaseOrders.config.d.ts +16 -2
  98. package/configs/index.d.ts +0 -1
  99. package/configs/pageSize.config.d.ts +0 -1
  100. package/configs/purchaseOrderApprovalRules.config.d.ts +16 -2
  101. package/containers/ApprovalRuleDetails/ApprovalRuleDetails.d.ts +17 -3
  102. package/containers/ApprovalRuleDetails/index.d.ts +0 -1
  103. package/containers/ApprovalRuleDetails.d.ts +1 -3
  104. package/containers/ApprovalRuleDetails.js +1 -1
  105. package/containers/ApprovalRuleForm/ApprovalRuleForm.d.ts +17 -3
  106. package/containers/ApprovalRuleForm/index.d.ts +0 -1
  107. package/containers/ApprovalRuleForm.d.ts +1 -3
  108. package/containers/ApprovalRuleForm.js +1 -1
  109. package/containers/ApprovalRulesList/ApprovalRulesList.d.ts +17 -3
  110. package/containers/ApprovalRulesList/index.d.ts +0 -1
  111. package/containers/ApprovalRulesList.d.ts +1 -3
  112. package/containers/ApprovalRulesList.js +1 -1
  113. package/containers/CompanyPurchaseOrders/CompanyPurchaseOrders.d.ts +17 -3
  114. package/containers/CompanyPurchaseOrders/index.d.ts +0 -1
  115. package/containers/CompanyPurchaseOrders.d.ts +1 -3
  116. package/containers/CompanyPurchaseOrders.js +1 -1
  117. package/containers/CustomerPurchaseOrders/CustomerPurchaseOrders.d.ts +17 -3
  118. package/containers/CustomerPurchaseOrders/index.d.ts +0 -1
  119. package/containers/CustomerPurchaseOrders.d.ts +1 -3
  120. package/containers/CustomerPurchaseOrders.js +1 -1
  121. package/containers/PurchaseOrderApprovalFlow/PurchaseOrderApprovalFlow.d.ts +17 -3
  122. package/containers/PurchaseOrderApprovalFlow/index.d.ts +0 -1
  123. package/containers/PurchaseOrderApprovalFlow.d.ts +1 -3
  124. package/containers/PurchaseOrderApprovalFlow.js +1 -1
  125. package/containers/PurchaseOrderCommentForm/PurchaseOrderCommentForm.d.ts +17 -3
  126. package/containers/PurchaseOrderCommentForm/index.d.ts +0 -1
  127. package/containers/PurchaseOrderCommentForm.d.ts +1 -3
  128. package/containers/PurchaseOrderCommentForm.js +1 -1
  129. package/containers/PurchaseOrderCommentsList/PurchaseOrderCommentsList.d.ts +17 -3
  130. package/containers/PurchaseOrderCommentsList/index.d.ts +0 -1
  131. package/containers/PurchaseOrderCommentsList.d.ts +1 -3
  132. package/containers/PurchaseOrderCommentsList.js +1 -1
  133. package/containers/PurchaseOrderConfirmation/PurchaseOrderConfirmation.d.ts +17 -3
  134. package/containers/PurchaseOrderConfirmation/index.d.ts +0 -1
  135. package/containers/PurchaseOrderConfirmation.d.ts +1 -3
  136. package/containers/PurchaseOrderConfirmation.js +1 -1
  137. package/containers/PurchaseOrderHistoryLog/PurchaseOrderHistoryLog.d.ts +17 -3
  138. package/containers/PurchaseOrderHistoryLog/index.d.ts +0 -1
  139. package/containers/PurchaseOrderHistoryLog.d.ts +1 -3
  140. package/containers/PurchaseOrderHistoryLog.js +1 -1
  141. package/containers/PurchaseOrderStatus/PurchaseOrderStatus.d.ts +17 -3
  142. package/containers/PurchaseOrderStatus/index.d.ts +0 -1
  143. package/containers/PurchaseOrderStatus.d.ts +1 -3
  144. package/containers/PurchaseOrderStatus.js +1 -1
  145. package/containers/RequireApprovalPurchaseOrders/RequireApprovalPurchaseOrders.d.ts +17 -3
  146. package/containers/RequireApprovalPurchaseOrders/index.d.ts +0 -1
  147. package/containers/RequireApprovalPurchaseOrders.d.ts +1 -3
  148. package/containers/RequireApprovalPurchaseOrders.js +1 -1
  149. package/containers/index.d.ts +0 -1
  150. package/data/models/cart-model.d.ts +0 -1
  151. package/data/models/customer-order-model.d.ts +0 -1
  152. package/data/models/customer-role-permissions-model.d.ts +0 -1
  153. package/data/models/index.d.ts +0 -1
  154. package/data/models/purchase-order-approval-rule-metadata-model.d.ts +0 -1
  155. package/data/models/purchase-order-approval-rule-model.d.ts +0 -1
  156. package/data/models/purchase-order-comment-model.d.ts +0 -1
  157. package/data/models/purchase-order-model.d.ts +0 -1
  158. package/data/transforms/index.d.ts +0 -1
  159. package/data/transforms/transform-cart.d.ts +16 -2
  160. package/data/transforms/transform-customer-order.d.ts +16 -2
  161. package/data/transforms/transform-customer-role-permissions.d.ts +16 -2
  162. package/data/transforms/transform-purchase-order-approval-rule-metadata.d.ts +16 -2
  163. package/data/transforms/transform-purchase-order-approval-rule.d.ts +16 -2
  164. package/data/transforms/transform-purchase-order-comment.d.ts +16 -2
  165. package/data/transforms/transform-purchase-order.d.ts +16 -2
  166. package/hooks/index.d.ts +0 -1
  167. package/hooks/useApprovalRuleDetails.d.ts +16 -2
  168. package/hooks/useApprovalRuleForm.d.ts +16 -2
  169. package/hooks/useApprovalRulesList.d.ts +16 -2
  170. package/hooks/useCustomerRolePermissions.d.ts +16 -2
  171. package/hooks/usePurchaseOrderData.d.ts +16 -2
  172. package/hooks/usePurchaseOrderStatus.d.ts +16 -2
  173. package/hooks/usePurchaseOrders.d.ts +16 -2
  174. package/lib/case-converter.d.ts +0 -1
  175. package/lib/cleanAndDeep.d.ts +0 -1
  176. package/lib/fetch-error.d.ts +0 -1
  177. package/lib/formValidation.d.ts +16 -2
  178. package/lib/formatDate.d.ts +0 -1
  179. package/lib/getRange.d.ts +0 -1
  180. package/lib/getStatusVariant.d.ts +0 -1
  181. package/lib/index.d.ts +1 -1
  182. package/lib/isValidUrl.d.ts +0 -1
  183. package/lib/navigation.d.ts +1 -0
  184. package/lib/network-error.d.ts +0 -1
  185. package/lib/transformToFormValues.d.ts +16 -2
  186. package/lib/updateFormFieldValue.d.ts +16 -2
  187. package/mocks/index.d.ts +2 -3
  188. package/mocks/storybook/approval-rules.d.ts +18 -0
  189. package/mocks/storybook/events-data.d.ts +6 -2
  190. package/mocks/storybook/index.d.ts +0 -1
  191. package/mocks/storybook/purchase-orders.d.ts +179 -0
  192. package/package.json +1 -1
  193. package/render/Provider.d.ts +16 -2
  194. package/render/index.d.ts +0 -1
  195. package/render/render.d.ts +17 -3
  196. package/render.d.ts +1 -1
  197. package/types/api/api.enums.types.d.ts +0 -1
  198. package/types/api/index.d.ts +0 -1
  199. package/types/components/approvalFlowContent.types.d.ts +0 -2
  200. package/types/components/approvalRuleDetailsContentProps.types.d.ts +16 -2
  201. package/types/components/approvalRuleForm.types.d.ts +16 -2
  202. package/types/components/historyLogContent.types.d.ts +0 -2
  203. package/types/components/index.d.ts +0 -1
  204. package/types/components/pagination.types.d.ts +0 -1
  205. package/types/components/purchaseOrderCommentFormContent.types.d.ts +0 -2
  206. package/types/components/purchaseOrderCommentsListContent.types.d.ts +0 -2
  207. package/types/components/purchaseOrderConfirmationContent.types.d.ts +16 -2
  208. package/types/components/purchaseOrderHistoryLogContent.types.d.ts +16 -2
  209. package/types/components/purchaseOrderStatusContent.types.d.ts +17 -3
  210. package/types/components/purchaseOrdersTable.types.d.ts +16 -2
  211. package/types/components/purchaseOrdersTableActions.d.ts +0 -1
  212. package/types/containers/approvalRuleDetailsProps.types.d.ts +0 -1
  213. package/types/containers/approvalRuleForm.types.d.ts +16 -2
  214. package/types/containers/approvalRulesList.types.d.ts +16 -2
  215. package/types/containers/companyPurchaseOrders.types.d.ts +16 -2
  216. package/types/containers/customerPurchaseOrders.types.d.ts +16 -2
  217. package/types/containers/historyLog.types.d.ts +0 -1
  218. package/types/containers/index.d.ts +0 -1
  219. package/types/containers/purchaseOrderApprovalFlow.types.d.ts +0 -1
  220. package/types/containers/purchaseOrderCommentForm.types.d.ts +0 -1
  221. package/types/containers/purchaseOrderCommentsList.types.d.ts +0 -1
  222. package/types/containers/purchaseOrderConfirmationProps.types.d.ts +16 -2
  223. package/types/containers/purchaseOrderHistoryLog.types.d.ts +0 -1
  224. package/types/containers/purchaseOrderStatus.types.d.ts +17 -3
  225. package/types/containers/requireApprovalPurchaseOrders.types.d.ts +16 -2
  226. package/types/hooks/index.d.ts +0 -1
  227. package/types/hooks/useApprovalRuleDetails.types.d.ts +0 -1
  228. package/types/hooks/useApprovalRuleForm.types.d.ts +16 -2
  229. package/types/hooks/useApprovalRulesList.types.d.ts +16 -2
  230. package/types/hooks/usePurchaseOrderStatus.types.d.ts +17 -3
  231. package/types/hooks/usePurchaseOrders.types.d.ts +16 -2
  232. package/i18n/en_US.json.d.ts +0 -310
@@ -20,4 +20,3 @@ export * from './transform-purchase-order-approval-rule-metadata';
20
20
  export * from './transform-purchase-order-approval-rule';
21
21
  export * from './transform-purchase-order-comment';
22
22
  export * from './transform-purchase-order';
23
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  import { 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
@@ -22,4 +22,3 @@ export * from './useApprovalRulesList';
22
22
  export * from './usePurchaseOrderData';
23
23
  export * from './usePurchaseOrderStatus';
24
24
  export * from './usePurchaseOrderData';
25
- //# 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 { 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
@@ -22,4 +22,3 @@ export declare const toSnakeCase: (obj: any) => any;
22
22
  * Converts snake_case object keys to camelCase recursively
23
23
  */
24
24
  export declare const toCamelCase: (obj: any) => any;
25
- //# sourceMappingURL=case-converter.d.ts.map
@@ -21,4 +21,3 @@
21
21
  * - Converts camelCase keys to snake_case
22
22
  */
23
23
  export declare function cleanAndDeep(formValues: Record<string, any>): any;
24
- //# sourceMappingURL=cleanAndDeep.d.ts.map
@@ -19,4 +19,3 @@ export declare const handleFetchError: (errors: Array<{
19
19
  message: string;
20
20
  path: string[];
21
21
  }>) => void;
22
- //# sourceMappingURL=fetch-error.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 { 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
@@ -26,4 +26,3 @@ export declare function getEffectiveLocale(locale?: string): string;
26
26
  * @returns Formatted date string
27
27
  */
28
28
  export declare const formatDate: (dateString: string, locale?: string) => string;
29
- //# sourceMappingURL=formatDate.d.ts.map
package/lib/getRange.d.ts CHANGED
@@ -19,4 +19,3 @@ export declare const getRange: (currentPage: number, pageSize: number, total: nu
19
19
  to: number;
20
20
  total: number;
21
21
  };
22
- //# sourceMappingURL=getRange.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const getStatusVariant: (status: string) => string;
2
- //# sourceMappingURL=getStatusVariant.d.ts.map
package/lib/index.d.ts CHANGED
@@ -25,4 +25,4 @@ export * from './formValidation';
25
25
  export * from './transformToFormValues';
26
26
  export * from './cleanAndDeep';
27
27
  export * from './getStatusVariant';
28
- //# sourceMappingURL=index.d.ts.map
28
+ export * from './navigation';
@@ -15,4 +15,3 @@
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
17
  export declare const isValidUrl: (url: string) => boolean;
18
- //# sourceMappingURL=isValidUrl.d.ts.map
@@ -0,0 +1 @@
1
+ export declare const navigate: (url: string) => void;
@@ -19,4 +19,3 @@
19
19
  * a generic way.
20
20
  */
21
21
  export declare const handleNetworkError: (error: Error) => never;
22
- //# sourceMappingURL=network-error.d.ts.map
@@ -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
- [x: string]: boolean;
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
@@ -29,4 +29,3 @@ export { storybookHandlers, purchaseOrderHandlers, purchaseOrderLoadingHandlers,
29
29
  export * from './events-data';
30
30
  export * from './purchase-orders';
31
31
  export * from './approval-rules';
32
- //# sourceMappingURL=index.d.ts.map