@dropins/storefront-purchase-order 0.0.1-alpha1 → 0.0.1-alpha2

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 (129) hide show
  1. package/api/addPurchaseOrderComment/addPurchaseOrderComment.d.ts +4 -0
  2. package/api/addPurchaseOrderComment/graphql/addPurchaseOrderComment.graphql.d.ts +18 -0
  3. package/api/addPurchaseOrderComment/index.d.ts +18 -0
  4. package/api/addPurchaseOrderItemsToCart/addPurchaseOrderItemsToCart.d.ts +4 -0
  5. package/api/addPurchaseOrderItemsToCart/graphql/addPurchaseOrderItemsToCart.graphql.d.ts +18 -0
  6. package/api/addPurchaseOrderItemsToCart/index.d.ts +18 -0
  7. package/api/approvePurchaseOrders/approvePurchaseOrders.d.ts +10 -0
  8. package/api/approvePurchaseOrders/graphql/approvePurchaseOrders.graphql.d.ts +18 -0
  9. package/api/approvePurchaseOrders/index.d.ts +18 -0
  10. package/api/cancelPurchaseOrders/cancelPurchaseOrders.d.ts +10 -0
  11. package/api/cancelPurchaseOrders/graphql/cancelPurchaseOrders.graphql.d.ts +18 -0
  12. package/api/cancelPurchaseOrders/index.d.ts +18 -0
  13. package/api/createPurchaseOrderApprovalRule/createPurchaseOrderApprovalRule.d.ts +4 -0
  14. package/api/createPurchaseOrderApprovalRule/graphql/createPurchaseOrderApprovalRule.graphql.d.ts +18 -0
  15. package/api/createPurchaseOrderApprovalRule/index.d.ts +18 -0
  16. package/api/deletePurchaseOrderApprovalRule/deletePurchaseOrderApprovalRule.d.ts +9 -0
  17. package/api/deletePurchaseOrderApprovalRule/graphql/deletePurchaseOrderApprovalRule.graphql.d.ts +18 -0
  18. package/api/deletePurchaseOrderApprovalRule/index.d.ts +18 -0
  19. package/api/fragments.d.ts +18 -0
  20. package/api/getCustomerRolePermissions/getCustomerRolePermissions.d.ts +4 -0
  21. package/api/getCustomerRolePermissions/graphql/getCustomerRolePermissions.d.ts +16 -0
  22. package/api/getCustomerRolePermissions/index.d.ts +18 -0
  23. package/api/getPurchaseOrder/getPurchaseOrder.d.ts +6 -0
  24. package/api/getPurchaseOrder/graphql/getPurchaseOrder.graphql.d.ts +18 -0
  25. package/api/getPurchaseOrder/index.d.ts +18 -0
  26. package/api/getPurchaseOrderApprovalRuleMetadata/getPurchaseOrderApprovalRuleMetadata.d.ts +4 -0
  27. package/api/getPurchaseOrderApprovalRuleMetadata/graphql/getPurchaseOrderApprovalRuleMetadata.graphql.d.ts +18 -0
  28. package/api/getPurchaseOrderApprovalRuleMetadata/index.d.ts +18 -0
  29. package/api/getPurchaseOrders/getPurchaseOrders.d.ts +12 -0
  30. package/api/getPurchaseOrders/graphql/getPurchaseOrders.graphql.d.ts +18 -0
  31. package/api/getPurchaseOrders/index.d.ts +18 -0
  32. package/api/graphql/PurchaseOrdersFragment.graphql.d.ts +18 -0
  33. package/api/index.d.ts +31 -0
  34. package/api/initialize/lib/getPermissions.d.ts +19 -0
  35. package/api/initialize/lib/index.d.ts +18 -0
  36. package/api/placeOrderForPurchaseOrder/graphql/placeOrderForPurchaseOrder.graphql.d.ts +18 -0
  37. package/api/placeOrderForPurchaseOrder/index.d.ts +18 -0
  38. package/api/placeOrderForPurchaseOrder/placeOrderForPurchaseOrder.d.ts +4 -0
  39. package/api/placePurchaseOrder/graphql/placePurchaseOrder.graphql.d.ts +18 -0
  40. package/api/placePurchaseOrder/index.d.ts +18 -0
  41. package/api/placePurchaseOrder/placePurchaseOrder.d.ts +6 -0
  42. package/api/rejectPurchaseOrders/graphql/rejectPurchaseOrders.graphql.d.ts +18 -0
  43. package/api/rejectPurchaseOrders/index.d.ts +18 -0
  44. package/api/rejectPurchaseOrders/rejectPurchaseOrders.d.ts +10 -0
  45. package/api/updatePurchaseOrderApprovalRule/graphql/updatePurchaseOrderApprovalRule.graphql.d.ts +18 -0
  46. package/api/updatePurchaseOrderApprovalRule/index.d.ts +18 -0
  47. package/api/updatePurchaseOrderApprovalRule/updatePurchaseOrderApprovalRule.d.ts +4 -0
  48. package/api/validatePurchaseOrders/graphql/validatePurchaseOrders.graphql.d.ts +18 -0
  49. package/api/validatePurchaseOrders/index.d.ts +18 -0
  50. package/api/validatePurchaseOrders/validatePurchaseOrders.d.ts +10 -0
  51. package/api.js +330 -1
  52. package/api.js.map +1 -1
  53. package/chunks/PurchaseOrdersTableActions.js +4 -0
  54. package/chunks/PurchaseOrdersTableActions.js.map +1 -0
  55. package/chunks/getPurchaseOrders.js +113 -0
  56. package/chunks/getPurchaseOrders.js.map +1 -0
  57. package/chunks/usePurchaseOrders.js +4 -0
  58. package/chunks/usePurchaseOrders.js.map +1 -0
  59. package/components/PurchaseOrdersHeader/PurchaseOrdersHeader.d.ts +6 -0
  60. package/components/PurchaseOrdersHeader/index.d.ts +19 -0
  61. package/components/PurchaseOrdersTable/PurchaseOrdersTable.d.ts +5 -0
  62. package/components/PurchaseOrdersTable/index.d.ts +19 -0
  63. package/components/PurchaseOrdersTableActions/PurchaseOrdersTableActions.d.ts +5 -0
  64. package/components/PurchaseOrdersTableActions/index.d.ts +19 -0
  65. package/components/index.d.ts +19 -1
  66. package/configs/companyPurchaseOrders.config.d.ts +4 -0
  67. package/configs/customerPurchaseOrders.config.d.ts +4 -0
  68. package/configs/index.d.ts +21 -0
  69. package/configs/pageSize.config.d.ts +22 -0
  70. package/configs/purchaseOrderApprovalRules.config.d.ts +4 -0
  71. package/containers/CompanyPurchaseOrders/CompanyPurchaseOrders.d.ts +5 -0
  72. package/containers/CompanyPurchaseOrders/index.d.ts +19 -0
  73. package/containers/CompanyPurchaseOrders.d.ts +3 -0
  74. package/containers/CompanyPurchaseOrders.js +4 -0
  75. package/containers/CompanyPurchaseOrders.js.map +1 -0
  76. package/containers/CustomerPurchaseOrders/CustomerPurchaseOrders.d.ts +5 -0
  77. package/containers/CustomerPurchaseOrders/index.d.ts +19 -0
  78. package/containers/CustomerPurchaseOrders.d.ts +3 -0
  79. package/containers/CustomerPurchaseOrders.js +4 -0
  80. package/containers/CustomerPurchaseOrders.js.map +1 -0
  81. package/containers/RequireApprovalPurchaseOrders/RequireApprovalPurchaseOrders.d.ts +5 -0
  82. package/containers/RequireApprovalPurchaseOrders/index.d.ts +19 -0
  83. package/containers/RequireApprovalPurchaseOrders.d.ts +3 -0
  84. package/containers/RequireApprovalPurchaseOrders.js +4 -0
  85. package/containers/RequireApprovalPurchaseOrders.js.map +1 -0
  86. package/containers/index.d.ts +3 -1
  87. package/data/models/cart-model.d.ts +40 -0
  88. package/data/models/customer-order-model.d.ts +128 -0
  89. package/data/models/customer-role-permissions-model.d.ts +35 -0
  90. package/data/models/index.d.ts +23 -1
  91. package/data/models/purchase-order-approval-rule-metadata-model.d.ts +33 -0
  92. package/data/models/purchase-order-approval-rule-model.d.ts +50 -0
  93. package/data/models/purchase-order-comment-model.d.ts +39 -0
  94. package/data/models/purchase-order-model.d.ts +75 -0
  95. package/data/transforms/index.d.ts +22 -1
  96. package/data/transforms/transform-cart.d.ts +4 -0
  97. package/data/transforms/transform-customer-order.d.ts +4 -0
  98. package/data/transforms/transform-customer-role-permissions.d.ts +4 -0
  99. package/data/transforms/transform-purchase-order-approval-rule-metadata.d.ts +4 -0
  100. package/data/transforms/transform-purchase-order-approval-rule.d.ts +4 -0
  101. package/data/transforms/transform-purchase-order-comment.d.ts +4 -0
  102. package/data/transforms/transform-purchase-order.d.ts +4 -0
  103. package/hooks/index.d.ts +18 -0
  104. package/hooks/usePurchaseOrders.d.ts +4 -0
  105. package/i18n/en_US.json.d.ts +86 -2
  106. package/lib/case-converter.d.ts +25 -0
  107. package/lib/fetch-error.d.ts +21 -0
  108. package/lib/formatDate.d.ts +24 -0
  109. package/lib/getRange.d.ts +6 -0
  110. package/lib/index.d.ts +7 -0
  111. package/lib/isValidUrl.d.ts +2 -0
  112. package/lib/network-error.d.ts +22 -0
  113. package/mocks/index.d.ts +2832 -0
  114. package/mocks/storybook/index.d.ts +29 -0
  115. package/package.json +1 -1
  116. package/render.js +2 -1
  117. package/render.js.map +1 -1
  118. package/types/api/api.enums.types.d.ts +21 -0
  119. package/types/api/index.d.ts +2 -0
  120. package/types/components/index.d.ts +4 -0
  121. package/types/components/pagination.types.d.ts +27 -0
  122. package/types/components/purchaseOrdersTable.types.d.ts +31 -0
  123. package/types/components/purchaseOrdersTableActions.d.ts +8 -0
  124. package/types/containers/companyPurchaseOrders.types.d.ts +12 -0
  125. package/types/containers/customerPurchaseOrders.types.d.ts +12 -0
  126. package/types/containers/index.d.ts +4 -0
  127. package/types/containers/requireApprovalPurchaseOrders.types.d.ts +12 -0
  128. package/types/hooks/index.d.ts +2 -0
  129. package/types/hooks/usePurchaseOrders.types.d.ts +37 -0
@@ -0,0 +1,4 @@
1
+ import { PurchaseOrderCommentModel } from '../../data/models';
2
+
3
+ export declare const addPurchaseOrderComment: (uid: string, comment: string) => Promise<PurchaseOrderCommentModel>;
4
+ //# sourceMappingURL=addPurchaseOrderComment.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 ADD_PURCHASE_ORDER_COMMENT = "\n mutation ADD_PURCHASE_ORDER_COMMENT(\n $purchaseOrderUid: ID!\n $comment: String!\n ) {\n addPurchaseOrderComment(\n input: { purchase_order_uid: $purchaseOrderUid, comment: $comment }\n ) {\n comment {\n created_at\n text\n uid\n author {\n allow_remote_shopping_assistance\n confirmation_status\n created_at\n date_of_birth\n email\n firstname\n gender\n job_title\n lastname\n middlename\n prefix\n status\n structure_id\n suffix\n telephone\n }\n }\n }\n }\n";
18
+ //# sourceMappingURL=addPurchaseOrderComment.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './addPurchaseOrderComment';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { CartModel } from '../../data/models';
2
+
3
+ export declare const addPurchaseOrderItemsToCart: (purchaseOrderUid: string, cartId: string, replaceExistingCartItems?: boolean) => Promise<CartModel>;
4
+ //# sourceMappingURL=addPurchaseOrderItemsToCart.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 ADD_PURCHASE_ORDER_ITEMS_TO_CART = "\n mutation ADD_PURCHASE_ORDER_ITEMS_TO_CART(\n $purchaseOrderUid: ID!\n $cartId: String!\n $replaceExistingCartItems: Boolean!\n ) {\n addPurchaseOrderItemsToCart(\n input: {\n purchase_order_uid: $purchaseOrderUid\n cart_id: $cartId\n replace_existing_cart_items: $replaceExistingCartItems\n }\n ) {\n cart {\n id\n itemsV2 {\n items {\n uid\n quantity\n product {\n uid\n name\n sku\n }\n }\n page_info {\n current_page\n page_size\n total_pages\n }\n total_count\n }\n }\n }\n }\n";
18
+ //# sourceMappingURL=addPurchaseOrderItemsToCart.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './addPurchaseOrderItemsToCart';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { PurchaseOrderModel } from '../../data/models';
2
+
3
+ export declare const approvePurchaseOrders: (uids: string | string[]) => Promise<{
4
+ errors: {
5
+ message: string;
6
+ type: string;
7
+ }[];
8
+ purchaseOrders: PurchaseOrderModel[];
9
+ }>;
10
+ //# sourceMappingURL=approvePurchaseOrders.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 APPROVE_PURCHASE_ORDERS: string;
18
+ //# sourceMappingURL=approvePurchaseOrders.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './approvePurchaseOrders';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { PurchaseOrderModel } from '../../data/models';
2
+
3
+ export declare const cancelPurchaseOrders: (uids: string | string[]) => Promise<{
4
+ errors: {
5
+ message: string;
6
+ type: string;
7
+ }[];
8
+ purchaseOrders: PurchaseOrderModel[];
9
+ }>;
10
+ //# sourceMappingURL=cancelPurchaseOrders.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 CANCEL_PURCHASE_ORDERS: string;
18
+ //# sourceMappingURL=cancelPurchaseOrders.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './cancelPurchaseOrders';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { PurchaseOrderApprovalRuleModel } from '../../data/models/purchase-order-approval-rule-model';
2
+
3
+ export declare const createPurchaseOrderApprovalRule: (input: any) => Promise<PurchaseOrderApprovalRuleModel>;
4
+ //# sourceMappingURL=createPurchaseOrderApprovalRule.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const CREATE_PURCHASE_ORDER_APPROVAL_RULE = "\n mutation CREATE_PURCHASE_ORDER_APPROVAL_RULE(\n $input: PurchaseOrderApprovalRuleInput!\n ) {\n createPurchaseOrderApprovalRule(input: $input) {\n created_at\n created_by\n description\n name\n status\n uid\n updated_at\n applies_to_roles {\n id\n name\n users_count\n permissions {\n id\n sort_order\n text\n }\n }\n condition {\n attribute\n operator\n }\n approver_roles {\n id\n name\n users_count\n permissions {\n id\n sort_order\n text\n }\n }\n }\n }\n";
18
+ //# sourceMappingURL=createPurchaseOrderApprovalRule.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './createPurchaseOrderApprovalRule';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ export declare const deletePurchaseOrderApprovalRule: (uids: string | string[]) => Promise<{
2
+ deletePurchaseOrderApprovalRule: {
3
+ errors: {
4
+ message?: string;
5
+ type?: string;
6
+ }[];
7
+ };
8
+ }>;
9
+ //# sourceMappingURL=deletePurchaseOrderApprovalRule.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const DELETE_PURCHASE_ORDER_APPROVAL_RULE = "\n mutation DELETE_PURCHASE_ORDER_APPROVAL_RULE(\n $input: DeletePurchaseOrderApprovalRuleInput!\n ) {\n deletePurchaseOrderApprovalRule(input: $input) {\n errors {\n message\n type\n }\n }\n }\n";
18
+ //# sourceMappingURL=deletePurchaseOrderApprovalRule.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './deletePurchaseOrderApprovalRule';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export { PURCHASE_ORDERS_FRAGMENT } from './graphql/PurchaseOrdersFragment.graphql';
18
+ //# sourceMappingURL=fragments.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { CustomerRolePermissionsModel } from '../../data/models';
2
+
3
+ export declare const getCustomerRolePermissions: () => Promise<CustomerRolePermissionsModel>;
4
+ //# sourceMappingURL=getCustomerRolePermissions.d.ts.map
@@ -0,0 +1,16 @@
1
+ /********************************************************************
2
+ *
3
+ * Copyright 2025 Adobe
4
+ * All Rights Reserved.
5
+ *
6
+ * NOTICE: All information contained herein is, and remains
7
+ * the property of Adobe and its suppliers, if any. The intellectual
8
+ * and technical concepts contained herein are proprietary to Adobe
9
+ * and its suppliers and are protected by all applicable intellectual
10
+ * property laws, including trade secret and copyright laws.
11
+ * Dissemination of this information or reproduction of this material
12
+ * is strictly forbidden unless prior written permission is obtained
13
+ * from Adobe.
14
+ *******************************************************************/
15
+ export declare const GET_CUSTOMER_ROLE_PERMISSIONS = "\n query GET_CUSTOMER_ROLE_PERMISSIONS {\n customer {\n purchase_orders_enabled\n role {\n id\n name\n permissions {\n id\n text\n sort_order\n children {\n # 2\n id\n text\n sort_order\n children {\n # 3\n id\n text\n sort_order\n children {\n # 4\n id\n text\n sort_order\n children {\n # 5\n id\n text\n sort_order\n children {\n # 6\n id\n text\n sort_order\n }\n }\n }\n }\n }\n }\n }\n }\n }\n";
16
+ //# sourceMappingURL=getCustomerRolePermissions.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './getCustomerRolePermissions';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { PurchaseOrderModel } from '../../data/models';
2
+
3
+ export declare const getPurchaseOrder: (uid: string) => Promise<{
4
+ purchaseOrder: PurchaseOrderModel;
5
+ }>;
6
+ //# sourceMappingURL=getPurchaseOrder.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const GET_PURCHASE_ORDER = "\n query GET_PURCHASE_ORDER($uid: ID!) {\n customer {\n purchase_order(uid: $uid) {\n uid\n number\n created_at\n updated_at\n status\n available_actions\n created_by {\n firstname\n lastname\n email\n }\n order {\n id\n number\n total {\n grand_total {\n value\n currency\n }\n }\n }\n quote {\n prices {\n grand_total {\n value\n currency\n }\n }\n }\n }\n }\n }\n";
18
+ //# sourceMappingURL=getPurchaseOrder.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './getPurchaseOrder';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { PurchaseOrderApprovalRuleMetadataModel } from '../../data/models';
2
+
3
+ export declare const getPurchaseOrderApprovalRuleMetadata: () => Promise<PurchaseOrderApprovalRuleMetadataModel>;
4
+ //# sourceMappingURL=getPurchaseOrderApprovalRuleMetadata.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const GET_PURCHASE_ORDER_APPROVAL_RULE_METADATA = "\n query GET_PURCHASE_ORDER_APPROVAL_RULE_METADATA {\n customer {\n purchase_order_approval_rule_metadata {\n available_applies_to {\n id\n name\n users_count\n permissions {\n id\n sort_order\n text\n children {\n id\n sort_order\n text\n }\n }\n }\n available_requires_approval_from {\n id\n name\n users_count\n permissions {\n id\n sort_order\n text\n children {\n id\n sort_order\n text\n }\n }\n }\n }\n }\n }\n";
18
+ //# sourceMappingURL=getPurchaseOrderApprovalRuleMetadata.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './getPurchaseOrderApprovalRuleMetadata';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { PurchaseOrderModel } from '../../data/models';
2
+
3
+ export declare const getPurchaseOrders: (filter?: any, pageSize?: number, currentPage?: number) => Promise<{
4
+ totalCount: number;
5
+ pageInfo: {
6
+ currentPage: number;
7
+ pageSize: number;
8
+ totalPages: number;
9
+ };
10
+ purchaseOrderItems: PurchaseOrderModel[];
11
+ }>;
12
+ //# sourceMappingURL=getPurchaseOrders.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const GET_PURCHASE_ORDERS: string;
18
+ //# sourceMappingURL=getPurchaseOrders.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './getPurchaseOrders';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const PURCHASE_ORDERS_FRAGMENT = "\n fragment PURCHASE_ORDERS_FRAGMENT on PurchaseOrder {\n __typename\n uid\n number\n status\n available_actions\n approval_flow {\n rule_name\n events {\n message\n name\n role\n status\n updated_at\n }\n }\n comments {\n created_at\n author {\n firstname\n lastname\n email\n }\n text\n }\n created_at\n updated_at\n created_by {\n firstname\n lastname\n email\n }\n history_log {\n activity\n created_at\n message\n uid\n }\n order {\n number\n }\n quote {\n id\n prices {\n grand_total {\n value\n currency\n }\n }\n itemsV2 {\n items {\n uid\n quantity\n }\n }\n }\n }\n";
18
+ //# sourceMappingURL=PurchaseOrdersFragment.graphql.d.ts.map
package/api/index.d.ts CHANGED
@@ -1,3 +1,34 @@
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
  export * from './initialize';
2
18
  export * from './fetch-graphql';
19
+ export * from './approvePurchaseOrders';
20
+ export * from './cancelPurchaseOrders';
21
+ export * from './rejectPurchaseOrders';
22
+ export * from './validatePurchaseOrders';
23
+ export * from './addPurchaseOrderComment';
24
+ export * from './addPurchaseOrderItemsToCart';
25
+ export * from './createPurchaseOrderApprovalRule';
26
+ export * from './deletePurchaseOrderApprovalRule';
27
+ export * from './updatePurchaseOrderApprovalRule';
28
+ export * from './getPurchaseOrder';
29
+ export * from './getPurchaseOrders';
30
+ export * from './placeOrderForPurchaseOrder';
31
+ export * from './placePurchaseOrder';
32
+ export * from './getPurchaseOrderApprovalRuleMetadata';
33
+ export * from './getCustomerRolePermissions';
3
34
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,19 @@
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 getPermissions: () => Promise<any>;
18
+ export declare const clearPermissionsCache: () => void;
19
+ //# sourceMappingURL=getPermissions.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './getPermissions';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export declare const PLACE_ORDER_FOR_PURCHASE_ORDER = "\n mutation PLACE_ORDER_FOR_PURCHASE_ORDER(\n $input: PlaceOrderForPurchaseOrderInput!\n ) {\n placeOrderForPurchaseOrder(input: $input) {\n order {\n available_actions\n carrier\n email\n gift_receipt_included\n id\n is_virtual\n number\n order_date\n order_status_change_date\n printed_card_included\n shipping_method\n status\n token\n }\n }\n }\n";
18
+ //# sourceMappingURL=placeOrderForPurchaseOrder.graphql.d.ts.map
@@ -0,0 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
17
+ export * from './placeOrderForPurchaseOrder';
18
+ //# sourceMappingURL=index.d.ts.map