@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.
Files changed (232) hide show
  1. package/CHANGELOG.md +12 -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
@@ -1,6 +1,21 @@
1
- import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
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
+ import { SlotProps } from '@dropins/tools/lib';
2
18
  import { PURCHASE_ORDER_ACTION } from '../hooks';
3
-
4
19
  export type PurchaseOrderStatusSlotContext = {
5
20
  loading: boolean;
6
21
  availableActions?: PURCHASE_ORDER_ACTION[];
@@ -17,4 +32,3 @@ export interface PurchaseOrderStatusProps {
17
32
  PurchaseOrderActions: SlotProps<PurchaseOrderStatusSlotContext>;
18
33
  };
19
34
  }
20
- //# sourceMappingURL=purchaseOrderStatus.types.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 { Column, PageSizeListProps, Row } from '../components';
2
-
3
18
  export interface RequireApprovalPurchaseOrdersProps {
4
19
  initialPageSize: PageSizeListProps[];
5
20
  routePurchaseOrderDetails?: (poId: string) => string;
@@ -10,4 +25,3 @@ export interface RequireApprovalPurchaseOrdersProps {
10
25
  withWrapper?: boolean;
11
26
  skeletonRowCount?: number;
12
27
  }
13
- //# sourceMappingURL=requireApprovalPurchaseOrders.types.d.ts.map
@@ -19,4 +19,3 @@ export * from './usePurchaseOrders.types';
19
19
  export * from './useApprovalRuleDetails.types';
20
20
  export * from './useApprovalRulesList.types';
21
21
  export * from './usePurchaseOrderStatus.types';
22
- //# sourceMappingURL=index.d.ts.map
@@ -18,4 +18,3 @@ export interface UseApprovalRuleDetailsProps {
18
18
  approvalRuleID?: string;
19
19
  routeApprovalRulesList: () => string;
20
20
  }
21
- //# sourceMappingURL=useApprovalRuleDetails.types.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 { CompanyRole, CustomerRolePermissionsModel } from '../../data/models';
2
-
3
18
  export interface FormState {
4
19
  formValues: FormValuesParams;
5
20
  isLoading: boolean;
@@ -118,4 +133,3 @@ export interface UseApprovalRuleFormReturn {
118
133
  submitError: string | null;
119
134
  formLoading: boolean;
120
135
  }
121
- //# sourceMappingURL=useApprovalRuleForm.types.d.ts.map
@@ -1,7 +1,22 @@
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
18
  import { PageSizeListProps, PaginationState } from '../components/pagination.types';
3
19
  import { Column, Row } from '../components/purchaseOrdersTable.types';
4
-
5
20
  export interface UseApprovalRulesList {
6
21
  initialPageSize: PageSizeListProps[];
7
22
  permissions: CustomerRolePermissionsModel;
@@ -28,4 +43,3 @@ export interface UseApprovalRulesListReturn {
28
43
  };
29
44
  handleCreateUrl: (id: string, type: 'edit' | 'new' | 'view') => string;
30
45
  }
31
- //# sourceMappingURL=useApprovalRulesList.types.d.ts.map
@@ -1,5 +1,20 @@
1
- import { InLineAlertProps } from '@dropins/tools/types/elsie/src/components';
2
-
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
+ import { InLineAlertProps } from '@dropins/tools/components';
3
18
  export type PURCHASE_ORDER_STATUS = 'PENDING' | 'APPROVAL_REQUIRED' | 'APPROVED' | 'ORDER_IN_PROGRESS' | 'ORDER_PLACED' | 'ORDER_FAILED' | 'REJECTED' | 'CANCELED' | 'APPROVED_PENDING_PAYMENT';
4
19
  export type PURCHASE_ORDER_ACTION = 'REJECT' | 'CANCEL' | 'APPROVE' | 'PLACE_ORDER';
5
20
  export interface UsePurchaseOrderStatusReturn {
@@ -17,4 +32,3 @@ export interface UsePurchaseOrderStatusReturn {
17
32
  handleCancel: () => Promise<void>;
18
33
  handlePlaceOrder: () => Promise<void>;
19
34
  }
20
- //# sourceMappingURL=usePurchaseOrderStatus.types.d.ts.map
@@ -1,8 +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 { PageSizeListProps, PaginationState } from '../components/pagination.types';
2
18
  import { Column, Row } from '../components/purchaseOrdersTable.types';
3
19
  import { EnumPurchaseOrdersView } from '../api';
4
20
  import { CustomerRolePermissionsModel } from '../../data/models';
5
-
6
21
  export type AlertMessageConfigType = {
7
22
  heading: string;
8
23
  description: string;
@@ -38,4 +53,3 @@ export interface UsePurchaseOrdersReturn {
38
53
  handleApproveSelected: () => void;
39
54
  alertMessageConfig: AlertMessageConfigType;
40
55
  }
41
- //# sourceMappingURL=usePurchaseOrders.types.d.ts.map
@@ -1,310 +0,0 @@
1
- declare const _default: {
2
- "PurchaseOrders": {
3
- "customerPurchaseOrders": {
4
- "containerTitle": "My purchase orders",
5
- "noPurchaseOrders": "No purchase orders found."
6
- },
7
- "companyPurchaseOrders": {
8
- "containerTitle": "Company purchase orders",
9
- "noPurchaseOrders": "No company purchase orders found."
10
- },
11
- "requireApprovalPurchaseOrders": {
12
- "containerTitle": "Requires my approval",
13
- "noPurchaseOrders": "No purchase orders requiring my approval found."
14
- },
15
- "approvalRulesList": {
16
- "containerTitle": "Approval rules",
17
- "emptyTitle": "No approval rules found",
18
- "ariaLabel": {
19
- "editRule": "Edit approval rule {{ruleName}}",
20
- "deleteRule": "Delete approval rule {{ruleName}}",
21
- "viewRule": "View approval rule {{ruleName}}"
22
- },
23
- "buttons": {
24
- "newRule": "Add New Rule"
25
- }
26
- },
27
- "alertMessages": {
28
- "header": {
29
- "approve": "Approve Purchase Orders",
30
- "reject": "Reject Purchase Orders",
31
- "error": "Error"
32
- },
33
- "description": {
34
- "approve": "The selected purchase orders were approved successfully.",
35
- "reject": "The selected purchase orders were rejected successfully.",
36
- "error": "An error occurred while processing your request."
37
- }
38
- },
39
- "purchaseOrdersTable": {
40
- "noPurchaseOrders": {
41
- "default": "No purchase orders found."
42
- },
43
- "pagination": {
44
- "status": "Items {{from}}-{{to}} of {{total}}",
45
- "pageSizeLabel": {
46
- "start": "Show"
47
- }
48
- },
49
- "loading": "Loading purchase orders...",
50
- "actionView": "View",
51
- "actionEdit": "Edit",
52
- "actionDelete": "Delete",
53
- "rulesStatus": {
54
- "enabled": "Enabled",
55
- "disabled": "Disabled"
56
- },
57
- "ruleTypes": {
58
- "grand_total": "Grand Total",
59
- "number_of_skus": "Number of SKUs",
60
- "any_item": "Any Item",
61
- "all_items": "All Items"
62
- },
63
- "buttons": {
64
- "expandedHidden": "Hide",
65
- "expandedShow": "Show"
66
- },
67
- "appliesToAll": "All",
68
- "statusOrder": {
69
- "order_placed": "Order placed",
70
- "order_failed": "Order failed",
71
- "pending": "Pending",
72
- "approved": "Approved",
73
- "rejected": "Rejected",
74
- "canceled": "Canceled",
75
- "order_in_progress": "Order in progress",
76
- "approval_required": "Approval required",
77
- "approved_pending_payment": "Approved pending Payment"
78
- },
79
- "expandedRowLabels": {
80
- "orderNumber": "Order Number:",
81
- "createdDate": "Created Date:",
82
- "updatedDate": "Updated Date:",
83
- "total": "Total:",
84
- "ruleType": "Rule Type:",
85
- "appliesTo": "Applies To:",
86
- "approver": "Approver:"
87
- },
88
- "tableColumns": {
89
- "poNumber": "PO #",
90
- "orderNumber": "Order #",
91
- "createdDate": "Created",
92
- "updatedDate": "Updated",
93
- "createdBy": "Created By",
94
- "status": "Status",
95
- "total": "Total",
96
- "action": "Action",
97
- "ruleName": "Rule Name",
98
- "selectAllAriaLabel": "Select all not approved purchase orders"
99
- }
100
- },
101
- "purchaseOrderConfirmation": {
102
- "title": "Your Purchase Order has been submitted for approval.",
103
- "messagePrefix": "Your Purchase Order request number is",
104
- "messageSuffix": "A copy of this Purchase Order will be emailed to you shortly."
105
- },
106
- "purchaseOrderStatus": {
107
- "headerText": "Status",
108
- "emptyText": "No actions available for this purchase order.",
109
- "status": {
110
- "pending": {
111
- "title": "Pending approval",
112
- "message": "Purchase order is awaiting approval."
113
- },
114
- "approval_required": {
115
- "title": "Approval required",
116
- "message": "Purchase order requires approval before it can be processed."
117
- },
118
- "approved": {
119
- "title": "Order approved",
120
- "message": "Purchase order has been approved."
121
- },
122
- "order_in_progress": {
123
- "title": "Processing in progress",
124
- "message": "Purchase order is currently being processed."
125
- },
126
- "order_placed": {
127
- "title": "Order placed",
128
- "message": "Order has been placed successfully."
129
- },
130
- "order_failed": {
131
- "title": "Order failed",
132
- "message": "Order placing has failed."
133
- },
134
- "rejected": {
135
- "title": "Order rejected",
136
- "message": "Purchase order has been rejected."
137
- },
138
- "canceled": {
139
- "title": "Order canceled",
140
- "message": "Purchase order has been canceled."
141
- },
142
- "approved_pending_payment": {
143
- "title": "Order approved - pending payment",
144
- "message": "Purchase order has been approved and is awaiting payment."
145
- }
146
- },
147
- "alertMessages": {
148
- "success": {
149
- "approval": "The purchase order was approved successfully.",
150
- "reject": "The purchase order was rejected successfully.",
151
- "cancel": "The purchase order was canceled successfully.",
152
- "placeOrder": "The sales order was placed successfully."
153
- },
154
- "errors": {
155
- "approval": "An error occurred while approving the purchase order. Please try again.",
156
- "reject": "An error occurred while rejecting the purchase order. Please try again.",
157
- "cancel": "An error occurred while canceling the purchase order. Please try again.",
158
- "placeOrder": "An error occurred while placing the sales order. Please try again."
159
- }
160
- },
161
- "buttons": {
162
- "approve": "Approve",
163
- "reject": "Reject",
164
- "cancel": "Cancel",
165
- "placeOrder": "Place Order"
166
- }
167
- },
168
- "approvalRuleForm": {
169
- "headerText": "Purchase order approval rule",
170
- "titleAppliesTo": "Applies To",
171
- "titleRuleType": "Rule Type",
172
- "titleRequiresApprovalRole": "Requires Approval From",
173
- "fields": {
174
- "enabled": "Rule Enabled",
175
- "disabled": "Rule Disabled",
176
- "inputRuleName": {
177
- "floatingLabel": "Rule Name",
178
- "placeholder": "Rule Name"
179
- },
180
- "textAreaDescription": {
181
- "label": "Rule Description"
182
- },
183
- "appliesTo": {
184
- "allUsers": "All Users",
185
- "specificRoles": "Specific Roles"
186
- },
187
- "ruleTypeOptions": {
188
- "grandTotal": "Grand Total",
189
- "shippingInclTax": "Shipping Cost",
190
- "numberOfSkus": "Number of SKUs"
191
- },
192
- "conditionOperators": {
193
- "moreThan": "is more than",
194
- "lessThan": "is less than",
195
- "moreThanOrEqualTo": "is more than or equal to",
196
- "lessThanOrEqualTo": "is less than or equal to"
197
- },
198
- "inputQuantity": {
199
- "floatingLabel": "Enter Amount",
200
- "placeholder": "Enter Amount"
201
- },
202
- "inputAmount": {
203
- "floatingLabel": "Enter Amount",
204
- "placeholder": "Enter Amount"
205
- },
206
- "buttons": {
207
- "cancel": "Cancel",
208
- "save": "Save"
209
- }
210
- },
211
- "errorsMessages": {
212
- "required": "This field is required.",
213
- "quantity": "Quantity must be greater than 0.",
214
- "amount": "Amount must be greater than 0.",
215
- "approvers": "Please select at least one approver."
216
- }
217
- },
218
- "approvalRuleDetails": {
219
- "containerTitle": "Approval rule details",
220
- "buttons": {
221
- "back": "Back to Rules List"
222
- },
223
- "fields": {
224
- "ruleName": "Rule Name:",
225
- "status": "Status:",
226
- "description": "Description:",
227
- "appliesTo": "Applies To:",
228
- "requiresApprovalFrom": "Requires Approval From:",
229
- "ruleType": "Rule Type:",
230
- "amount": {
231
- "label": " amount "
232
- },
233
- "statusView": {
234
- "enabled": "Enabled",
235
- "disabled": "Disabled"
236
- },
237
- "condition": {
238
- "attribute": {
239
- "grand_total": "Grand Total",
240
- "shipping_incl_tax": "Shipping Cost",
241
- "number_of_skus": "Number of SKUs"
242
- },
243
- "operator": {
244
- "more_than": "Is more than",
245
- "less_than": "Is less than",
246
- "more_than_or_equal_to": "Is more than or equal to",
247
- "less_than_or_equal_to": "Is less than or equal to"
248
- }
249
- }
250
- }
251
- },
252
- "historyLog": {
253
- "headerText": "Purchase order history log",
254
- "statusTitle": "Status Changes",
255
- "emptyText": "No history log available.",
256
- "status": {
257
- "cancel": "Cancelled on {{date}}",
258
- "reject": "Rejected on {{date}}",
259
- "place_order_fail": "Failed to place order on {{date}}",
260
- "apply_rules": "Rule applied on {{date}}",
261
- "place_order": "Order placed on {{date}}",
262
- "auto_approve": "Auto approved on {{date}}",
263
- "approve": "Approved on {{date}}",
264
- "submit": "Submitted for approval on {{date}}"
265
- },
266
- "buttons": {
267
- "viewMore": "View More",
268
- "viewLess": "View Less"
269
- },
270
- "ariaLabel": {
271
- "showMore": "Show more history items",
272
- "showLess": "Show fewer history items"
273
- }
274
- },
275
- "comments": {
276
- "view": {
277
- "headerText": "Purchase order comments",
278
- "emptyText": "No comments available.",
279
- "buttons": {
280
- "viewMore": "View More",
281
- "viewLess": "View Less"
282
- },
283
- "ariaLabel": {
284
- "showMore": "Show more comments",
285
- "showLess": "Show fewer comments"
286
- }
287
- },
288
- "add": {
289
- "headerText": "Add purchase order comment",
290
- "placeholder": "Add your comment",
291
- "submit": "Add Comment",
292
- "errorMessage": "Something went wrong while adding your comment. Please try again."
293
- }
294
- },
295
- "approvalFlow": {
296
- "headerText": "Purchase order approval flow",
297
- "emptyText": "No approval flow is available for this purchase order.",
298
- "ariaLabels": {
299
- "icons": {
300
- "approved": "Status approved",
301
- "rejected": "Status rejected",
302
- "pending": "Status pending approval"
303
- }
304
- }
305
- }
306
- }
307
- }
308
- ;
309
-
310
- export default _default;