@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.
- package/CHANGELOG.md +6 -0
- package/api/addPurchaseOrderComment/addPurchaseOrderComment.d.ts +16 -2
- package/api/addPurchaseOrderComment/graphql/addPurchaseOrderComment.graphql.d.ts +0 -1
- package/api/addPurchaseOrderComment/index.d.ts +0 -1
- package/api/addPurchaseOrderItemsToCart/addPurchaseOrderItemsToCart.d.ts +16 -2
- package/api/addPurchaseOrderItemsToCart/graphql/addPurchaseOrderItemsToCart.graphql.d.ts +0 -1
- package/api/addPurchaseOrderItemsToCart/index.d.ts +0 -1
- package/api/approvePurchaseOrders/approvePurchaseOrders.d.ts +0 -2
- package/api/approvePurchaseOrders/graphql/approvePurchaseOrders.graphql.d.ts +1 -2
- package/api/approvePurchaseOrders/index.d.ts +0 -1
- package/api/cancelPurchaseOrders/cancelPurchaseOrders.d.ts +0 -2
- package/api/cancelPurchaseOrders/graphql/cancelPurchaseOrders.graphql.d.ts +1 -2
- package/api/cancelPurchaseOrders/index.d.ts +0 -1
- package/api/createPurchaseOrderApprovalRule/createPurchaseOrderApprovalRule.d.ts +0 -2
- package/api/createPurchaseOrderApprovalRule/graphql/createPurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/createPurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/currencyInfo/currencyInfo.d.ts +0 -1
- package/api/currencyInfo/graphql/currencyInfo.graphql.d.ts +0 -1
- package/api/currencyInfo/index.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/deletePurchaseOrderApprovalRule.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/graphql/deletePurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/deletePurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/fetch-graphql/fetch-graphql.d.ts +3 -4
- package/api/fetch-graphql/index.d.ts +0 -1
- package/api/fragments.d.ts +0 -1
- package/api/getPurchaseOrder/getPurchaseOrder.d.ts +16 -2
- package/api/getPurchaseOrder/graphql/getPurchaseOrder.graphql.d.ts +1 -2
- package/api/getPurchaseOrder/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRule/getPurchaseOrderApprovalRule.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRule/graphql/getPurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRuleMetadata/getPurchaseOrderApprovalRuleMetadata.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRuleMetadata/graphql/getPurchaseOrderApprovalRuleMetadata.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRuleMetadata/index.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRules/getPurchaseOrderApprovalRules.d.ts +16 -2
- package/api/getPurchaseOrderApprovalRules/graphql/getPurchaseOrderApprovalRules.graphql.d.ts +0 -1
- package/api/getPurchaseOrderApprovalRules/index.d.ts +0 -1
- package/api/getPurchaseOrders/getPurchaseOrders.d.ts +16 -2
- package/api/getPurchaseOrders/graphql/getPurchaseOrders.graphql.d.ts +1 -2
- package/api/getPurchaseOrders/index.d.ts +0 -1
- package/api/graphql/PurchaseOrderQuoteFragment.d.ts +0 -1
- package/api/graphql/PurchaseOrdersFragment.graphql.d.ts +1 -2
- package/api/index.d.ts +0 -1
- package/api/initialize/index.d.ts +0 -1
- package/api/initialize/initialize.d.ts +19 -5
- package/api/permissions.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/graphql/placeOrderForPurchaseOrder.graphql.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/index.d.ts +0 -1
- package/api/placeOrderForPurchaseOrder/placeOrderForPurchaseOrder.d.ts +16 -2
- package/api/placePurchaseOrder/graphql/placePurchaseOrder.graphql.d.ts +1 -2
- package/api/placePurchaseOrder/index.d.ts +0 -1
- package/api/placePurchaseOrder/placePurchaseOrder.d.ts +16 -2
- package/api/rejectPurchaseOrders/graphql/rejectPurchaseOrders.graphql.d.ts +1 -2
- package/api/rejectPurchaseOrders/index.d.ts +0 -1
- package/api/rejectPurchaseOrders/rejectPurchaseOrders.d.ts +0 -2
- package/api/updatePurchaseOrderApprovalRule/graphql/updatePurchaseOrderApprovalRule.graphql.d.ts +0 -1
- package/api/updatePurchaseOrderApprovalRule/index.d.ts +0 -1
- package/api/updatePurchaseOrderApprovalRule/updatePurchaseOrderApprovalRule.d.ts +0 -2
- package/api/validatePurchaseOrders/graphql/validatePurchaseOrders.graphql.d.ts +1 -2
- package/api/validatePurchaseOrders/index.d.ts +0 -1
- package/api/validatePurchaseOrders/validatePurchaseOrders.d.ts +0 -2
- package/api.d.ts +1 -1
- package/api.js +12 -12
- package/api.js.map +1 -1
- package/chunks/components.js +1 -1
- package/chunks/components.js.map +1 -1
- package/components/ApprovalRuleDetailsContent/ApprovalRuleDetailsContent.d.ts +16 -2
- package/components/ApprovalRuleDetailsContent/index.d.ts +0 -1
- package/components/ApprovalRuleForm/ApprovalRuleForm.d.ts +16 -2
- package/components/ApprovalRuleForm/blocks/ErrorMessage.d.ts +16 -2
- package/components/ApprovalRuleForm/blocks/Form.d.ts +18 -4
- package/components/ApprovalRuleForm/blocks/index.d.ts +0 -1
- package/components/ApprovalRuleForm/index.d.ts +0 -1
- package/components/FormLoader/FormLoader.d.ts +16 -2
- package/components/FormLoader/index.d.ts +0 -1
- package/components/PurchaseOrderApprovalFlowContent/PurchaseOrderApprovalFlowContent.d.ts +16 -2
- package/components/PurchaseOrderApprovalFlowContent/index.d.ts +0 -1
- package/components/PurchaseOrderCommentFormContent/PurchaseOrderCommentFormContent.d.ts +16 -2
- package/components/PurchaseOrderCommentFormContent/index.d.ts +0 -1
- package/components/PurchaseOrderCommentsListContent/PurchaseOrderCommentsListContent.d.ts +16 -2
- package/components/PurchaseOrderCommentsListContent/index.d.ts +0 -1
- package/components/PurchaseOrderConfirmationContent/PurchaseOrderConfirmationContent.d.ts +16 -2
- package/components/PurchaseOrderConfirmationContent/index.d.ts +0 -1
- package/components/PurchaseOrderHistoryLogContent/PurchaseOrderHistoryLogContent.d.ts +16 -2
- package/components/PurchaseOrderHistoryLogContent/index.d.ts +0 -1
- package/components/PurchaseOrderStatusContent/PurchaseOrderStatusContent.d.ts +16 -2
- package/components/PurchaseOrderStatusContent/index.d.ts +0 -1
- package/components/PurchaseOrdersHeader/PurchaseOrdersHeader.d.ts +16 -2
- package/components/PurchaseOrdersHeader/index.d.ts +0 -1
- package/components/PurchaseOrdersTable/PurchaseOrdersTable.d.ts +16 -2
- package/components/PurchaseOrdersTable/index.d.ts +0 -1
- package/components/PurchaseOrdersTableActions/PurchaseOrdersTableActions.d.ts +16 -2
- package/components/PurchaseOrdersTableActions/index.d.ts +0 -1
- package/components/index.d.ts +0 -1
- package/configs/approvalRuleForm.config.d.ts +19 -5
- package/configs/companyPurchaseOrders.config.d.ts +16 -2
- package/configs/customerPurchaseOrders.config.d.ts +16 -2
- package/configs/index.d.ts +0 -1
- package/configs/pageSize.config.d.ts +0 -1
- package/configs/purchaseOrderApprovalRules.config.d.ts +16 -2
- package/containers/ApprovalRuleDetails/ApprovalRuleDetails.d.ts +17 -3
- package/containers/ApprovalRuleDetails/index.d.ts +0 -1
- package/containers/ApprovalRuleDetails.d.ts +1 -3
- package/containers/ApprovalRuleDetails.js +1 -1
- package/containers/ApprovalRuleForm/ApprovalRuleForm.d.ts +17 -3
- package/containers/ApprovalRuleForm/index.d.ts +0 -1
- package/containers/ApprovalRuleForm.d.ts +1 -3
- package/containers/ApprovalRuleForm.js +1 -1
- package/containers/ApprovalRulesList/ApprovalRulesList.d.ts +17 -3
- package/containers/ApprovalRulesList/index.d.ts +0 -1
- package/containers/ApprovalRulesList.d.ts +1 -3
- package/containers/ApprovalRulesList.js +1 -1
- package/containers/CompanyPurchaseOrders/CompanyPurchaseOrders.d.ts +17 -3
- package/containers/CompanyPurchaseOrders/index.d.ts +0 -1
- package/containers/CompanyPurchaseOrders.d.ts +1 -3
- package/containers/CompanyPurchaseOrders.js +1 -1
- package/containers/CustomerPurchaseOrders/CustomerPurchaseOrders.d.ts +17 -3
- package/containers/CustomerPurchaseOrders/index.d.ts +0 -1
- package/containers/CustomerPurchaseOrders.d.ts +1 -3
- package/containers/CustomerPurchaseOrders.js +1 -1
- package/containers/PurchaseOrderApprovalFlow/PurchaseOrderApprovalFlow.d.ts +17 -3
- package/containers/PurchaseOrderApprovalFlow/index.d.ts +0 -1
- package/containers/PurchaseOrderApprovalFlow.d.ts +1 -3
- package/containers/PurchaseOrderApprovalFlow.js +1 -1
- package/containers/PurchaseOrderCommentForm/PurchaseOrderCommentForm.d.ts +17 -3
- package/containers/PurchaseOrderCommentForm/index.d.ts +0 -1
- package/containers/PurchaseOrderCommentForm.d.ts +1 -3
- package/containers/PurchaseOrderCommentForm.js +1 -1
- package/containers/PurchaseOrderCommentsList/PurchaseOrderCommentsList.d.ts +17 -3
- package/containers/PurchaseOrderCommentsList/index.d.ts +0 -1
- package/containers/PurchaseOrderCommentsList.d.ts +1 -3
- package/containers/PurchaseOrderCommentsList.js +1 -1
- package/containers/PurchaseOrderConfirmation/PurchaseOrderConfirmation.d.ts +17 -3
- package/containers/PurchaseOrderConfirmation/index.d.ts +0 -1
- package/containers/PurchaseOrderConfirmation.d.ts +1 -3
- package/containers/PurchaseOrderConfirmation.js +1 -1
- package/containers/PurchaseOrderHistoryLog/PurchaseOrderHistoryLog.d.ts +17 -3
- package/containers/PurchaseOrderHistoryLog/index.d.ts +0 -1
- package/containers/PurchaseOrderHistoryLog.d.ts +1 -3
- package/containers/PurchaseOrderHistoryLog.js +1 -1
- package/containers/PurchaseOrderStatus/PurchaseOrderStatus.d.ts +17 -3
- package/containers/PurchaseOrderStatus/index.d.ts +0 -1
- package/containers/PurchaseOrderStatus.d.ts +1 -3
- package/containers/PurchaseOrderStatus.js +1 -1
- package/containers/RequireApprovalPurchaseOrders/RequireApprovalPurchaseOrders.d.ts +17 -3
- package/containers/RequireApprovalPurchaseOrders/index.d.ts +0 -1
- package/containers/RequireApprovalPurchaseOrders.d.ts +1 -3
- package/containers/RequireApprovalPurchaseOrders.js +1 -1
- package/containers/index.d.ts +0 -1
- package/data/models/cart-model.d.ts +0 -1
- package/data/models/customer-order-model.d.ts +0 -1
- package/data/models/customer-role-permissions-model.d.ts +0 -1
- package/data/models/index.d.ts +0 -1
- package/data/models/purchase-order-approval-rule-metadata-model.d.ts +0 -1
- package/data/models/purchase-order-approval-rule-model.d.ts +0 -1
- package/data/models/purchase-order-comment-model.d.ts +0 -1
- package/data/models/purchase-order-model.d.ts +0 -1
- package/data/transforms/index.d.ts +0 -1
- package/data/transforms/transform-cart.d.ts +16 -2
- package/data/transforms/transform-customer-order.d.ts +16 -2
- package/data/transforms/transform-customer-role-permissions.d.ts +16 -2
- package/data/transforms/transform-purchase-order-approval-rule-metadata.d.ts +16 -2
- package/data/transforms/transform-purchase-order-approval-rule.d.ts +16 -2
- package/data/transforms/transform-purchase-order-comment.d.ts +16 -2
- package/data/transforms/transform-purchase-order.d.ts +16 -2
- package/hooks/index.d.ts +0 -1
- package/hooks/useApprovalRuleDetails.d.ts +16 -2
- package/hooks/useApprovalRuleForm.d.ts +16 -2
- package/hooks/useApprovalRulesList.d.ts +16 -2
- package/hooks/useCustomerRolePermissions.d.ts +16 -2
- package/hooks/usePurchaseOrderData.d.ts +16 -2
- package/hooks/usePurchaseOrderStatus.d.ts +16 -2
- package/hooks/usePurchaseOrders.d.ts +16 -2
- package/lib/case-converter.d.ts +0 -1
- package/lib/cleanAndDeep.d.ts +0 -1
- package/lib/fetch-error.d.ts +0 -1
- package/lib/formValidation.d.ts +16 -2
- package/lib/formatDate.d.ts +0 -1
- package/lib/getRange.d.ts +0 -1
- package/lib/getStatusVariant.d.ts +0 -1
- package/lib/index.d.ts +1 -1
- package/lib/isValidUrl.d.ts +0 -1
- package/lib/navigation.d.ts +1 -0
- package/lib/network-error.d.ts +0 -1
- package/lib/transformToFormValues.d.ts +16 -2
- package/lib/updateFormFieldValue.d.ts +16 -2
- package/mocks/index.d.ts +2 -3
- package/mocks/storybook/approval-rules.d.ts +18 -0
- package/mocks/storybook/events-data.d.ts +6 -2
- package/mocks/storybook/index.d.ts +0 -1
- package/mocks/storybook/purchase-orders.d.ts +179 -0
- package/package.json +1 -1
- package/render/Provider.d.ts +16 -2
- package/render/index.d.ts +0 -1
- package/render/render.d.ts +17 -3
- package/render.d.ts +1 -1
- package/types/api/api.enums.types.d.ts +0 -1
- package/types/api/index.d.ts +0 -1
- package/types/components/approvalFlowContent.types.d.ts +0 -2
- package/types/components/approvalRuleDetailsContentProps.types.d.ts +16 -2
- package/types/components/approvalRuleForm.types.d.ts +16 -2
- package/types/components/historyLogContent.types.d.ts +0 -2
- package/types/components/index.d.ts +0 -1
- package/types/components/pagination.types.d.ts +0 -1
- package/types/components/purchaseOrderCommentFormContent.types.d.ts +0 -2
- package/types/components/purchaseOrderCommentsListContent.types.d.ts +0 -2
- package/types/components/purchaseOrderConfirmationContent.types.d.ts +16 -2
- package/types/components/purchaseOrderHistoryLogContent.types.d.ts +16 -2
- package/types/components/purchaseOrderStatusContent.types.d.ts +17 -3
- package/types/components/purchaseOrdersTable.types.d.ts +16 -2
- package/types/components/purchaseOrdersTableActions.d.ts +0 -1
- package/types/containers/approvalRuleDetailsProps.types.d.ts +0 -1
- package/types/containers/approvalRuleForm.types.d.ts +16 -2
- package/types/containers/approvalRulesList.types.d.ts +16 -2
- package/types/containers/companyPurchaseOrders.types.d.ts +16 -2
- package/types/containers/customerPurchaseOrders.types.d.ts +16 -2
- package/types/containers/historyLog.types.d.ts +0 -1
- package/types/containers/index.d.ts +0 -1
- package/types/containers/purchaseOrderApprovalFlow.types.d.ts +0 -1
- package/types/containers/purchaseOrderCommentForm.types.d.ts +0 -1
- package/types/containers/purchaseOrderCommentsList.types.d.ts +0 -1
- package/types/containers/purchaseOrderConfirmationProps.types.d.ts +16 -2
- package/types/containers/purchaseOrderHistoryLog.types.d.ts +0 -1
- package/types/containers/purchaseOrderStatus.types.d.ts +17 -3
- package/types/containers/requireApprovalPurchaseOrders.types.d.ts +16 -2
- package/types/hooks/index.d.ts +0 -1
- package/types/hooks/useApprovalRuleDetails.types.d.ts +0 -1
- package/types/hooks/useApprovalRuleForm.types.d.ts +16 -2
- package/types/hooks/useApprovalRulesList.types.d.ts +16 -2
- package/types/hooks/usePurchaseOrderStatus.types.d.ts +17 -3
- package/types/hooks/usePurchaseOrders.types.d.ts +16 -2
- package/i18n/en_US.json.d.ts +0 -310
|
@@ -0,0 +1,179 @@
|
|
|
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 mockCompanyPurchaseOrdersData: {
|
|
18
|
+
data: {
|
|
19
|
+
customer: {
|
|
20
|
+
purchase_orders: {
|
|
21
|
+
total_count: number;
|
|
22
|
+
page_info: {
|
|
23
|
+
current_page: number;
|
|
24
|
+
page_size: number;
|
|
25
|
+
total_pages: number;
|
|
26
|
+
};
|
|
27
|
+
items: ({
|
|
28
|
+
uid: string;
|
|
29
|
+
number: string;
|
|
30
|
+
status: string;
|
|
31
|
+
created_at: string;
|
|
32
|
+
updated_at: string;
|
|
33
|
+
available_actions: string[];
|
|
34
|
+
created_by: {
|
|
35
|
+
firstname: string;
|
|
36
|
+
lastname: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
order: null;
|
|
40
|
+
quote: {
|
|
41
|
+
prices: {
|
|
42
|
+
grand_total: {
|
|
43
|
+
value: number;
|
|
44
|
+
currency: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
uid: string;
|
|
50
|
+
number: string;
|
|
51
|
+
status: string;
|
|
52
|
+
created_at: string;
|
|
53
|
+
updated_at: string;
|
|
54
|
+
available_actions: string[];
|
|
55
|
+
created_by: {
|
|
56
|
+
firstname: string;
|
|
57
|
+
lastname: string;
|
|
58
|
+
email: string;
|
|
59
|
+
};
|
|
60
|
+
order: {
|
|
61
|
+
id: string;
|
|
62
|
+
number: string;
|
|
63
|
+
total: {
|
|
64
|
+
grand_total: {
|
|
65
|
+
value: number;
|
|
66
|
+
currency: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
quote: null;
|
|
71
|
+
})[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const mockPurchaseOrdersData: {
|
|
77
|
+
data: {
|
|
78
|
+
customer: {
|
|
79
|
+
purchase_orders: {
|
|
80
|
+
total_count: number;
|
|
81
|
+
page_info: {
|
|
82
|
+
current_page: number;
|
|
83
|
+
page_size: number;
|
|
84
|
+
total_pages: number;
|
|
85
|
+
};
|
|
86
|
+
items: ({
|
|
87
|
+
uid: string;
|
|
88
|
+
number: string;
|
|
89
|
+
status: string;
|
|
90
|
+
created_at: string;
|
|
91
|
+
updated_at: string;
|
|
92
|
+
available_actions: string[];
|
|
93
|
+
created_by: {
|
|
94
|
+
firstname: string;
|
|
95
|
+
lastname: string;
|
|
96
|
+
email: string;
|
|
97
|
+
};
|
|
98
|
+
order: {
|
|
99
|
+
id: string;
|
|
100
|
+
number: string;
|
|
101
|
+
total: {
|
|
102
|
+
grand_total: {
|
|
103
|
+
value: number;
|
|
104
|
+
currency: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
quote: null;
|
|
109
|
+
} | {
|
|
110
|
+
uid: string;
|
|
111
|
+
number: string;
|
|
112
|
+
status: string;
|
|
113
|
+
created_at: string;
|
|
114
|
+
updated_at: string;
|
|
115
|
+
available_actions: string[];
|
|
116
|
+
created_by: {
|
|
117
|
+
firstname: string;
|
|
118
|
+
lastname: string;
|
|
119
|
+
email: string;
|
|
120
|
+
};
|
|
121
|
+
order: null;
|
|
122
|
+
quote: {
|
|
123
|
+
prices: {
|
|
124
|
+
grand_total: {
|
|
125
|
+
value: number;
|
|
126
|
+
currency: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
})[];
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export declare const mockPurchaseOrdersEmpty: {
|
|
136
|
+
data: {
|
|
137
|
+
customer: {
|
|
138
|
+
purchase_orders: {
|
|
139
|
+
total_count: number;
|
|
140
|
+
page_info: {
|
|
141
|
+
current_page: number;
|
|
142
|
+
page_size: number;
|
|
143
|
+
total_pages: number;
|
|
144
|
+
};
|
|
145
|
+
items: never[];
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export declare const mockPurchaseOrdersLoading: {
|
|
151
|
+
data: {
|
|
152
|
+
customer: {
|
|
153
|
+
purchase_orders: {
|
|
154
|
+
total_count: number;
|
|
155
|
+
page_info: {
|
|
156
|
+
current_page: number;
|
|
157
|
+
page_size: number;
|
|
158
|
+
total_pages: number;
|
|
159
|
+
};
|
|
160
|
+
items: never[];
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export declare const mockPurchaseOrdersError: {
|
|
166
|
+
errors: {
|
|
167
|
+
message: string;
|
|
168
|
+
extensions: {
|
|
169
|
+
category: string;
|
|
170
|
+
};
|
|
171
|
+
}[];
|
|
172
|
+
};
|
|
173
|
+
export declare const purchaseOrderHandlers: import("msw").GraphQLHandler[];
|
|
174
|
+
export declare const purchaseOrderLoadingHandlers: import("msw").GraphQLHandler[];
|
|
175
|
+
export declare const purchaseOrderEmptyHandlers: import("msw").GraphQLHandler[];
|
|
176
|
+
export declare const purchaseOrderErrorHandlers: import("msw").GraphQLHandler[];
|
|
177
|
+
export declare const purchaseOrderPaginationHandlers: import("msw").GraphQLHandler[];
|
|
178
|
+
export declare const companyPurchaseOrderPaginationHandlers: import("msw").GraphQLHandler[];
|
|
179
|
+
export declare const storybookHandlers: import("msw").GraphQLHandler[];
|
package/package.json
CHANGED
package/render/Provider.d.ts
CHANGED
|
@@ -1,8 +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 { FunctionComponent } from 'preact';
|
|
2
|
-
|
|
3
18
|
interface CartProviderProps {
|
|
4
19
|
children?: any;
|
|
5
20
|
}
|
|
6
21
|
export declare const Provider: FunctionComponent<CartProviderProps>;
|
|
7
22
|
export {};
|
|
8
|
-
//# sourceMappingURL=Provider.d.ts.map
|
package/render/index.d.ts
CHANGED
package/render/render.d.ts
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
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 { Render } from '@dropins/tools/lib';
|
|
3
18
|
export declare const render: Render;
|
|
4
|
-
//# sourceMappingURL=render.d.ts.map
|
package/render.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './render/index'
|
|
1
|
+
export * from './render/index';
|
package/types/api/index.d.ts
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
1
17
|
import { VNode } from 'preact';
|
|
2
|
-
|
|
3
18
|
export interface ApprovalRuleDetailsContentProps {
|
|
4
19
|
formValues: {
|
|
5
20
|
label: string | VNode;
|
|
6
21
|
value: string | VNode;
|
|
7
22
|
}[];
|
|
8
23
|
}
|
|
9
|
-
//# sourceMappingURL=approvalRuleDetailsContentProps.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 { FormValuesParams } from '../hooks';
|
|
2
|
-
|
|
3
18
|
export interface ApprovalRuleFormProps {
|
|
4
19
|
className?: string;
|
|
5
20
|
withHeader?: boolean;
|
|
@@ -9,4 +24,3 @@ export interface ApprovalRuleFormProps {
|
|
|
9
24
|
onSubmit?: (formValues: FormValuesParams) => Promise<void>;
|
|
10
25
|
onChange?: (formValues: FormValuesParams) => void;
|
|
11
26
|
}
|
|
12
|
-
//# sourceMappingURL=approvalRuleForm.types.d.ts.map
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PurchaseOrderModel } from '../../data/models';
|
|
2
|
-
|
|
3
2
|
export interface PurchaseOrderCommentsListContentProps {
|
|
4
3
|
commentsList: PurchaseOrderModel['comments'] | [];
|
|
5
4
|
visibleRecordsLimit: number;
|
|
6
5
|
}
|
|
7
|
-
//# sourceMappingURL=purchaseOrderCommentsListContent.types.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 { HTMLAttributes } from 'preact/compat';
|
|
2
|
-
|
|
3
18
|
export interface PurchaseOrderConfirmationContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
19
|
purchaseOrderNumber: string | number;
|
|
5
20
|
routePurchaseOrderDetails: () => string;
|
|
6
21
|
}
|
|
7
|
-
//# sourceMappingURL=purchaseOrderConfirmationContent.types.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 interface PurchaseOrderHistoryLogContentProps {
|
|
4
19
|
historyLogRecords: PurchaseOrderModel['historyLog'];
|
|
5
20
|
visibleRecordsLimit: number;
|
|
6
21
|
}
|
|
7
|
-
//# sourceMappingURL=purchaseOrderHistoryLogContent.types.d.ts.map
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
|
|
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 { PurchaseOrderStatusSlotContext } from '../containers';
|
|
3
19
|
import { PURCHASE_ORDER_ACTION } from '../hooks';
|
|
4
|
-
|
|
5
20
|
export interface PurchaseOrderStatusContentProps {
|
|
6
21
|
t: Record<string, string>;
|
|
7
22
|
loading: boolean;
|
|
@@ -14,4 +29,3 @@ export interface PurchaseOrderStatusContentProps {
|
|
|
14
29
|
PurchaseOrderActions: SlotProps<PurchaseOrderStatusSlotContext>;
|
|
15
30
|
};
|
|
16
31
|
}
|
|
17
|
-
//# sourceMappingURL=purchaseOrderStatusContent.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 { VNode } from 'preact';
|
|
2
18
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
19
|
import { PageSizeListProps, PaginationState } from '.';
|
|
4
20
|
import { AlertMessageConfigType } from '../hooks';
|
|
5
|
-
|
|
6
21
|
export type Column = {
|
|
7
22
|
label: string | VNode<HTMLAttributes<HTMLElement>>;
|
|
8
23
|
key: string;
|
|
@@ -41,4 +56,3 @@ export interface PurchaseOrdersTableProps {
|
|
|
41
56
|
alertMessageConfig?: AlertMessageConfigType;
|
|
42
57
|
withWrapper?: boolean;
|
|
43
58
|
}
|
|
44
|
-
//# sourceMappingURL=purchaseOrdersTable.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 { FormValuesParams } from '../hooks';
|
|
2
|
-
|
|
3
18
|
export interface ApprovalRuleFormProps {
|
|
4
19
|
withHeader?: boolean;
|
|
5
20
|
withWrapper?: boolean;
|
|
@@ -9,4 +24,3 @@ export interface ApprovalRuleFormProps {
|
|
|
9
24
|
onSubmit?: (formValues: FormValuesParams) => Promise<void>;
|
|
10
25
|
onChange?: (formValues: FormValuesParams) => void;
|
|
11
26
|
}
|
|
12
|
-
//# sourceMappingURL=approvalRuleForm.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 ApprovalRulesListProps {
|
|
4
19
|
initialPageSize?: PageSizeListProps[];
|
|
5
20
|
routeCreateApprovalRule?: (id: string) => string;
|
|
@@ -12,4 +27,3 @@ export interface ApprovalRulesListProps {
|
|
|
12
27
|
withWrapper?: boolean;
|
|
13
28
|
skeletonRowCount?: number;
|
|
14
29
|
}
|
|
15
|
-
//# sourceMappingURL=approvalRulesList.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 CompanyPurchaseOrdersProps {
|
|
4
19
|
initialPageSize: PageSizeListProps[];
|
|
5
20
|
routePurchaseOrderDetails?: (poId: string) => string;
|
|
@@ -10,4 +25,3 @@ export interface CompanyPurchaseOrdersProps {
|
|
|
10
25
|
withWrapper?: boolean;
|
|
11
26
|
skeletonRowCount?: number;
|
|
12
27
|
}
|
|
13
|
-
//# sourceMappingURL=companyPurchaseOrders.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 CustomerPurchaseOrdersProps {
|
|
4
19
|
initialPageSize: PageSizeListProps[];
|
|
5
20
|
routePurchaseOrderDetails?: (poId: string) => string;
|
|
@@ -10,4 +25,3 @@ export interface CustomerPurchaseOrdersProps {
|
|
|
10
25
|
withWrapper?: boolean;
|
|
11
26
|
skeletonRowCount?: number;
|
|
12
27
|
}
|
|
13
|
-
//# sourceMappingURL=customerPurchaseOrders.types.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 { HTMLAttributes } from 'preact/compat';
|
|
2
|
-
|
|
3
18
|
export interface PurchaseOrderConfirmationProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
19
|
purchaseOrderNumber: string | number;
|
|
5
20
|
routePurchaseOrderDetails: () => string;
|
|
6
21
|
}
|
|
7
|
-
//# sourceMappingURL=purchaseOrderConfirmationProps.types.d.ts.map
|