@wix/ecom_app-extensions 1.0.104 → 1.0.105
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/build/cjs/dashboard.d.ts +89 -89
- package/build/cjs/dashboard.js +25 -25
- package/build/cjs/dashboard.js.map +1 -1
- package/build/cjs/index.js +25 -25
- package/build/cjs/index.js.map +1 -1
- package/build/es/dashboard.d.mts +89 -89
- package/build/es/dashboard.mjs +25 -25
- package/build/es/dashboard.mjs.map +1 -1
- package/build/es/index.mjs +25 -25
- package/build/es/index.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/dashboard.d.ts
CHANGED
|
@@ -1,92 +1,3 @@
|
|
|
1
|
-
interface editOrderOptions {
|
|
2
|
-
/** ID of the order to edit. */
|
|
3
|
-
orderId: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.
|
|
7
|
-
* @dashobardPageBuilder
|
|
8
|
-
*/
|
|
9
|
-
declare function editOrder(options: editOrderOptions): PageBuilderResult;
|
|
10
|
-
/**
|
|
11
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.
|
|
12
|
-
* @dashobardPageBuilder
|
|
13
|
-
*/
|
|
14
|
-
declare function taxSettings(): PageBuilderResult;
|
|
15
|
-
interface orderRefundOptions {
|
|
16
|
-
/** ID of the order to refund. */
|
|
17
|
-
orderId: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.
|
|
21
|
-
* @dashobardPageBuilder
|
|
22
|
-
*/
|
|
23
|
-
declare function orderRefund(options: orderRefundOptions): PageBuilderResult;
|
|
24
|
-
/**
|
|
25
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.
|
|
26
|
-
* @dashobardPageBuilder
|
|
27
|
-
*/
|
|
28
|
-
declare function deliveryProfiles(): PageBuilderResult;
|
|
29
|
-
interface deliveryProfileOptions {
|
|
30
|
-
/** Delivery profile to manage */
|
|
31
|
-
deliveryProfileId: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.
|
|
35
|
-
* @dashobardPageBuilder
|
|
36
|
-
*/
|
|
37
|
-
declare function deliveryProfile(options: deliveryProfileOptions): PageBuilderResult;
|
|
38
|
-
/**
|
|
39
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.
|
|
40
|
-
* @dashobardPageBuilder
|
|
41
|
-
*/
|
|
42
|
-
declare function orderList(): PageBuilderResult;
|
|
43
|
-
/**
|
|
44
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.
|
|
45
|
-
* @dashobardPageBuilder
|
|
46
|
-
*/
|
|
47
|
-
declare function newOrder(): PageBuilderResult;
|
|
48
|
-
interface editDraftOrderOptions {
|
|
49
|
-
/** Draft order id */
|
|
50
|
-
draftOrderId: string;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.
|
|
54
|
-
* @dashobardPageBuilder
|
|
55
|
-
*/
|
|
56
|
-
declare function editDraftOrder(options: editDraftOrderOptions): PageBuilderResult;
|
|
57
|
-
interface orderDetailsOptions {
|
|
58
|
-
/** The order Id to display */
|
|
59
|
-
id: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.
|
|
63
|
-
* @dashobardPageBuilder
|
|
64
|
-
*/
|
|
65
|
-
declare function orderDetails(options: orderDetailsOptions): PageBuilderResult;
|
|
66
|
-
interface PageBuilderResult {
|
|
67
|
-
pageId: string;
|
|
68
|
-
relativeUrl?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
type dashboardPageBuilders_PageBuilderResult = PageBuilderResult;
|
|
72
|
-
declare const dashboardPageBuilders_deliveryProfile: typeof deliveryProfile;
|
|
73
|
-
type dashboardPageBuilders_deliveryProfileOptions = deliveryProfileOptions;
|
|
74
|
-
declare const dashboardPageBuilders_deliveryProfiles: typeof deliveryProfiles;
|
|
75
|
-
declare const dashboardPageBuilders_editDraftOrder: typeof editDraftOrder;
|
|
76
|
-
type dashboardPageBuilders_editDraftOrderOptions = editDraftOrderOptions;
|
|
77
|
-
declare const dashboardPageBuilders_editOrder: typeof editOrder;
|
|
78
|
-
type dashboardPageBuilders_editOrderOptions = editOrderOptions;
|
|
79
|
-
declare const dashboardPageBuilders_newOrder: typeof newOrder;
|
|
80
|
-
declare const dashboardPageBuilders_orderDetails: typeof orderDetails;
|
|
81
|
-
type dashboardPageBuilders_orderDetailsOptions = orderDetailsOptions;
|
|
82
|
-
declare const dashboardPageBuilders_orderList: typeof orderList;
|
|
83
|
-
declare const dashboardPageBuilders_orderRefund: typeof orderRefund;
|
|
84
|
-
type dashboardPageBuilders_orderRefundOptions = orderRefundOptions;
|
|
85
|
-
declare const dashboardPageBuilders_taxSettings: typeof taxSettings;
|
|
86
|
-
declare namespace dashboardPageBuilders {
|
|
87
|
-
export { type dashboardPageBuilders_PageBuilderResult as PageBuilderResult, dashboardPageBuilders_deliveryProfile as deliveryProfile, type dashboardPageBuilders_deliveryProfileOptions as deliveryProfileOptions, dashboardPageBuilders_deliveryProfiles as deliveryProfiles, dashboardPageBuilders_editDraftOrder as editDraftOrder, type dashboardPageBuilders_editDraftOrderOptions as editDraftOrderOptions, dashboardPageBuilders_editOrder as editOrder, type dashboardPageBuilders_editOrderOptions as editOrderOptions, dashboardPageBuilders_newOrder as newOrder, dashboardPageBuilders_orderDetails as orderDetails, type dashboardPageBuilders_orderDetailsOptions as orderDetailsOptions, dashboardPageBuilders_orderList as orderList, dashboardPageBuilders_orderRefund as orderRefund, type dashboardPageBuilders_orderRefundOptions as orderRefundOptions, dashboardPageBuilders_taxSettings as taxSettings };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
1
|
/**
|
|
91
2
|
* @pageName EditOrder
|
|
92
3
|
* @slotType dashboard menu plugin
|
|
@@ -199,6 +110,95 @@ declare namespace dashboardPagesPluginProps {
|
|
|
199
110
|
export { e5128b65Cb234ea4B63a434a4e6b6e9e as CollectPayment, _8454e8a0568443319d4aE4873467553a as DraftOrderPage, f2526550194f4c1392989a6b8abda62f as EditOrder, _3b96985eA459497294c363f038a73af2 as OrderDetails, _8107f05fD6464c81Be90Adf28d321398 as Orders };
|
|
200
111
|
}
|
|
201
112
|
|
|
113
|
+
interface editOrderOptions {
|
|
114
|
+
/** ID of the order to edit. */
|
|
115
|
+
orderId: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.
|
|
119
|
+
* @dashobardPageBuilder
|
|
120
|
+
*/
|
|
121
|
+
declare function editOrder(options: editOrderOptions): PageBuilderResult;
|
|
122
|
+
/**
|
|
123
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.
|
|
124
|
+
* @dashobardPageBuilder
|
|
125
|
+
*/
|
|
126
|
+
declare function taxSettings(): PageBuilderResult;
|
|
127
|
+
interface orderRefundOptions {
|
|
128
|
+
/** ID of the order to refund. */
|
|
129
|
+
orderId: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.
|
|
133
|
+
* @dashobardPageBuilder
|
|
134
|
+
*/
|
|
135
|
+
declare function orderRefund(options: orderRefundOptions): PageBuilderResult;
|
|
136
|
+
/**
|
|
137
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.
|
|
138
|
+
* @dashobardPageBuilder
|
|
139
|
+
*/
|
|
140
|
+
declare function deliveryProfiles(): PageBuilderResult;
|
|
141
|
+
interface deliveryProfileOptions {
|
|
142
|
+
/** Delivery profile to manage */
|
|
143
|
+
deliveryProfileId: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.
|
|
147
|
+
* @dashobardPageBuilder
|
|
148
|
+
*/
|
|
149
|
+
declare function deliveryProfile(options: deliveryProfileOptions): PageBuilderResult;
|
|
150
|
+
/**
|
|
151
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.
|
|
152
|
+
* @dashobardPageBuilder
|
|
153
|
+
*/
|
|
154
|
+
declare function orderList(): PageBuilderResult;
|
|
155
|
+
/**
|
|
156
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.
|
|
157
|
+
* @dashobardPageBuilder
|
|
158
|
+
*/
|
|
159
|
+
declare function newOrder(): PageBuilderResult;
|
|
160
|
+
interface editDraftOrderOptions {
|
|
161
|
+
/** Draft order id */
|
|
162
|
+
draftOrderId: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.
|
|
166
|
+
* @dashobardPageBuilder
|
|
167
|
+
*/
|
|
168
|
+
declare function editDraftOrder(options: editDraftOrderOptions): PageBuilderResult;
|
|
169
|
+
interface orderDetailsOptions {
|
|
170
|
+
/** The order Id to display */
|
|
171
|
+
id: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.
|
|
175
|
+
* @dashobardPageBuilder
|
|
176
|
+
*/
|
|
177
|
+
declare function orderDetails(options: orderDetailsOptions): PageBuilderResult;
|
|
178
|
+
interface PageBuilderResult {
|
|
179
|
+
pageId: string;
|
|
180
|
+
relativeUrl?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
type dashboardPageBuilders_PageBuilderResult = PageBuilderResult;
|
|
184
|
+
declare const dashboardPageBuilders_deliveryProfile: typeof deliveryProfile;
|
|
185
|
+
type dashboardPageBuilders_deliveryProfileOptions = deliveryProfileOptions;
|
|
186
|
+
declare const dashboardPageBuilders_deliveryProfiles: typeof deliveryProfiles;
|
|
187
|
+
declare const dashboardPageBuilders_editDraftOrder: typeof editDraftOrder;
|
|
188
|
+
type dashboardPageBuilders_editDraftOrderOptions = editDraftOrderOptions;
|
|
189
|
+
declare const dashboardPageBuilders_editOrder: typeof editOrder;
|
|
190
|
+
type dashboardPageBuilders_editOrderOptions = editOrderOptions;
|
|
191
|
+
declare const dashboardPageBuilders_newOrder: typeof newOrder;
|
|
192
|
+
declare const dashboardPageBuilders_orderDetails: typeof orderDetails;
|
|
193
|
+
type dashboardPageBuilders_orderDetailsOptions = orderDetailsOptions;
|
|
194
|
+
declare const dashboardPageBuilders_orderList: typeof orderList;
|
|
195
|
+
declare const dashboardPageBuilders_orderRefund: typeof orderRefund;
|
|
196
|
+
type dashboardPageBuilders_orderRefundOptions = orderRefundOptions;
|
|
197
|
+
declare const dashboardPageBuilders_taxSettings: typeof taxSettings;
|
|
198
|
+
declare namespace dashboardPageBuilders {
|
|
199
|
+
export { type dashboardPageBuilders_PageBuilderResult as PageBuilderResult, dashboardPageBuilders_deliveryProfile as deliveryProfile, type dashboardPageBuilders_deliveryProfileOptions as deliveryProfileOptions, dashboardPageBuilders_deliveryProfiles as deliveryProfiles, dashboardPageBuilders_editDraftOrder as editDraftOrder, type dashboardPageBuilders_editDraftOrderOptions as editDraftOrderOptions, dashboardPageBuilders_editOrder as editOrder, type dashboardPageBuilders_editOrderOptions as editOrderOptions, dashboardPageBuilders_newOrder as newOrder, dashboardPageBuilders_orderDetails as orderDetails, type dashboardPageBuilders_orderDetailsOptions as orderDetailsOptions, dashboardPageBuilders_orderList as orderList, dashboardPageBuilders_orderRefund as orderRefund, type dashboardPageBuilders_orderRefundOptions as orderRefundOptions, dashboardPageBuilders_taxSettings as taxSettings };
|
|
200
|
+
}
|
|
201
|
+
|
|
202
202
|
declare namespace dashboard {
|
|
203
203
|
export { dashboardPageBuilders as pages, dashboardPagesPluginProps as plugins };
|
|
204
204
|
}
|
package/build/cjs/dashboard.js
CHANGED
|
@@ -25,6 +25,31 @@ __export(dashboard_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(dashboard_exports);
|
|
27
27
|
|
|
28
|
+
// src/extensions/dashboard-pages-plugin-props.ts
|
|
29
|
+
var dashboard_pages_plugin_props_exports = {};
|
|
30
|
+
__export(dashboard_pages_plugin_props_exports, {
|
|
31
|
+
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
32
|
+
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
33
|
+
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
34
|
+
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
35
|
+
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
39
|
+
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
40
|
+
|
|
41
|
+
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
42
|
+
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
43
|
+
|
|
44
|
+
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
45
|
+
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
46
|
+
|
|
47
|
+
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
48
|
+
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
49
|
+
|
|
50
|
+
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
51
|
+
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
52
|
+
|
|
28
53
|
// src/extensions/dashboard-page-builders.ts
|
|
29
54
|
var dashboard_page_builders_exports = {};
|
|
30
55
|
__export(dashboard_page_builders_exports, {
|
|
@@ -85,31 +110,6 @@ function orderDetails(options) {
|
|
|
85
110
|
relativeUrl: `${id}`
|
|
86
111
|
};
|
|
87
112
|
}
|
|
88
|
-
|
|
89
|
-
// src/extensions/dashboard-pages-plugin-props.ts
|
|
90
|
-
var dashboard_pages_plugin_props_exports = {};
|
|
91
|
-
__export(dashboard_pages_plugin_props_exports, {
|
|
92
|
-
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
93
|
-
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
94
|
-
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
95
|
-
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
96
|
-
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
100
|
-
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
101
|
-
|
|
102
|
-
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
103
|
-
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
104
|
-
|
|
105
|
-
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
106
|
-
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
107
|
-
|
|
108
|
-
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
109
|
-
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
110
|
-
|
|
111
|
-
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
112
|
-
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
113
113
|
// Annotate the CommonJS export names for ESM import in node:
|
|
114
114
|
0 && (module.exports = {
|
|
115
115
|
pages,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../dashboard.ts","../../src/extensions/dashboard-
|
|
1
|
+
{"version":3,"sources":["../../dashboard.ts","../../src/extensions/dashboard-pages-plugin-props.ts","../../src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts","../../src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts","../../src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts","../../src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts","../../src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts","../../src/extensions/dashboard-page-builders.ts"],"sourcesContent":["export * as plugins from './src/extensions/dashboard-pages-plugin-props.js';\nexport * as pages from './src/extensions/dashboard-page-builders.js';\n","export * as EditOrder from './dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js';\nexport * as Orders from './dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js';\nexport * as DraftOrderPage from './dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js';\nexport * as CollectPayment from './dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.js';\nexport * as OrderDetails from './dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js';\n","/**\n * @pageName EditOrder\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName Orders\n * @slotType dashboard menu plugin\n */\nexport type OrderItemsBulkMoreActionsMenuParams =\n OrdersListBulkActionExtensionProps;\n/** @internal */\nexport type OrdersListBulkActionExtensionProps = {\n // An array of IDs representing the orders that have been selected.\n selectedIds: string[];\n // An array of IDs representing the orders that have been unchecked. Applicable only when the \"Select All\" option was selected.\n uncheckedIds: string[];\n // A boolean value indicating whether the \"Select All\" option was selected.\n isSelectAll: boolean;\n // The total number of orders that were selected.\n total: number;\n // Callback that notifies the host after successful handling of the flow associated with the new menu item.\n onSuccess(): Promise<void>;\n};\n","/**\n * @pageName DraftOrderPage\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName CollectPayment\n * @slotType dashboard menu plugin\n */\nexport type CollectPaymentMenuParams = CollectPaymentMenuOptionParams;\n\n/** @internal */\nexport type CollectPaymentMenuOptionParams = {\n orderId: string;\n /** @deprecated Use onSuccess() instead */\n onSuccessCallback(): Promise<void>;\n onSuccess(): Promise<void>;\n};\n\n/**\n * @pageName CollectPayment\n * @slotType dashboard plugin\n */\nexport type CollectPaymentModalParams =\n CollectPaymentMenuOnBeforePayModalSlotProps;\n\n/** @internal */\nexport type CollectPaymentMenuOnBeforePayModalSlotProps = {\n orderId: string;\n onSuccess(): Promise<void>;\n onCancel(): void;\n menuOption:\n | {\n key:\n | 'CHARGE_WITH_CREDIT_CARD'\n | 'RECORD_ORDER_MANUAL_PAYMENT'\n | 'CHARGE_WITH_INVOICE'\n | 'CAPTURE_AUTHORIZED_PAYMENT'\n | 'CREATE_AUTHORIZED_PAYMENT';\n componentId?: undefined;\n }\n | {\n key: 'EXTENSION';\n componentId: string;\n };\n};\n","/**\n * @pageName OrderDetails\n * @slotType dashboard plugin\n */\nexport type OrderRightPanelParams = OrderDetailsSecondaryCardProps;\n\n/** @internal */\nexport type OrderDetailsSecondaryCardProps = {\n // Order ID.\n orderId: string;\n // Callback that notifies the host page about an order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onOrderUpdate(): Promise<void>;\n};\n","export interface editOrderOptions {\n /** ID of the order to edit. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editOrder(options: editOrderOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'f2526550-194f-4c13-9298-9a6b8abda62f',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function taxSettings(): PageBuilderResult {\n return { pageId: '7f43cf15-e14a-48f7-a7fa-9d0d1b1a6f02' };\n}\n\nexport interface orderRefundOptions {\n /** ID of the order to refund. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderRefund(options: orderRefundOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'c4898867-69a5-4e05-92b7-c276f9424641',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfiles(): PageBuilderResult {\n return { pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8' };\n}\n\nexport interface deliveryProfileOptions {\n /** Delivery profile to manage */\n deliveryProfileId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfile(\n options: deliveryProfileOptions\n): PageBuilderResult {\n const { deliveryProfileId } = options;\n\n return {\n pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8',\n relativeUrl: `${deliveryProfileId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderList(): PageBuilderResult {\n return { pageId: '8107f05f-d646-4c81-be90-adf28d321398' };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function newOrder(): PageBuilderResult {\n return { pageId: '8454e8a0-5684-4331-9d4a-e4873467553a' };\n}\n\nexport interface editDraftOrderOptions {\n /** Draft order id */\n draftOrderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editDraftOrder(\n options: editDraftOrderOptions\n): PageBuilderResult {\n const { draftOrderId } = options;\n\n return {\n pageId: '8454e8a0-5684-4331-9d4a-e4873467553a',\n relativeUrl: `${draftOrderId}`,\n };\n}\n\nexport interface orderDetailsOptions {\n /** The order Id to display */\n id: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderDetails(options: orderDetailsOptions): PageBuilderResult {\n const { id } = options;\n\n return {\n pageId: '3b96985e-a459-4972-94c3-63f038a73af2',\n relativeUrl: `${id}`,\n };\n}\n\nexport interface PageBuilderResult {\n pageId: string;\n relativeUrl?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,UAAU,SAA8C;AACtE,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,cAAiC;AAC/C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,YAAY,SAAgD;AAC1E,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,mBAAsC;AACpD,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,gBACd,SACmB;AACnB,QAAM,EAAE,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,iBAAiB;AAAA,EACnC;AACF;AAMO,SAAS,YAA+B;AAC7C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAMO,SAAS,WAA8B;AAC5C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,eACd,SACmB;AACnB,QAAM,EAAE,aAAa,IAAI;AAEzB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,YAAY;AAAA,EAC9B;AACF;AAWO,SAAS,aAAa,SAAiD;AAC5E,QAAM,EAAE,GAAG,IAAI;AAEf,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,EAAE;AAAA,EACpB;AACF;","names":[]}
|
package/build/cjs/index.js
CHANGED
|
@@ -31,6 +31,31 @@ __export(dashboard_exports, {
|
|
|
31
31
|
plugins: () => dashboard_pages_plugin_props_exports
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
+
// src/extensions/dashboard-pages-plugin-props.ts
|
|
35
|
+
var dashboard_pages_plugin_props_exports = {};
|
|
36
|
+
__export(dashboard_pages_plugin_props_exports, {
|
|
37
|
+
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
38
|
+
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
39
|
+
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
40
|
+
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
41
|
+
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
45
|
+
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
46
|
+
|
|
47
|
+
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
48
|
+
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
49
|
+
|
|
50
|
+
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
51
|
+
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
52
|
+
|
|
53
|
+
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
54
|
+
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
55
|
+
|
|
56
|
+
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
57
|
+
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
58
|
+
|
|
34
59
|
// src/extensions/dashboard-page-builders.ts
|
|
35
60
|
var dashboard_page_builders_exports = {};
|
|
36
61
|
__export(dashboard_page_builders_exports, {
|
|
@@ -91,31 +116,6 @@ function orderDetails(options) {
|
|
|
91
116
|
relativeUrl: `${id}`
|
|
92
117
|
};
|
|
93
118
|
}
|
|
94
|
-
|
|
95
|
-
// src/extensions/dashboard-pages-plugin-props.ts
|
|
96
|
-
var dashboard_pages_plugin_props_exports = {};
|
|
97
|
-
__export(dashboard_pages_plugin_props_exports, {
|
|
98
|
-
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
99
|
-
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
100
|
-
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
101
|
-
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
102
|
-
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
106
|
-
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
107
|
-
|
|
108
|
-
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
109
|
-
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
110
|
-
|
|
111
|
-
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
112
|
-
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
113
|
-
|
|
114
|
-
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
115
|
-
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
116
|
-
|
|
117
|
-
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
118
|
-
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
119
119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
120
120
|
0 && (module.exports = {
|
|
121
121
|
dashboard
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../dashboard.ts","../../src/extensions/dashboard-page-builders.ts","../../src/extensions/dashboard-pages-plugin-props.ts","../../src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts","../../src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts","../../src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts","../../src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts","../../src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts"],"sourcesContent":["export * as dashboard from './dashboard.js';\n","export * as pages from './src/extensions/dashboard-page-builders.js';\nexport * as plugins from './src/extensions/dashboard-pages-plugin-props.js';\n","export interface editOrderOptions {\n /** ID of the order to edit. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editOrder(options: editOrderOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'f2526550-194f-4c13-9298-9a6b8abda62f',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function taxSettings(): PageBuilderResult {\n return { pageId: '7f43cf15-e14a-48f7-a7fa-9d0d1b1a6f02' };\n}\n\nexport interface orderRefundOptions {\n /** ID of the order to refund. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderRefund(options: orderRefundOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'c4898867-69a5-4e05-92b7-c276f9424641',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfiles(): PageBuilderResult {\n return { pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8' };\n}\n\nexport interface deliveryProfileOptions {\n /** Delivery profile to manage */\n deliveryProfileId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfile(\n options: deliveryProfileOptions\n): PageBuilderResult {\n const { deliveryProfileId } = options;\n\n return {\n pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8',\n relativeUrl: `${deliveryProfileId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderList(): PageBuilderResult {\n return { pageId: '8107f05f-d646-4c81-be90-adf28d321398' };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function newOrder(): PageBuilderResult {\n return { pageId: '8454e8a0-5684-4331-9d4a-e4873467553a' };\n}\n\nexport interface editDraftOrderOptions {\n /** Draft order id */\n draftOrderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editDraftOrder(\n options: editDraftOrderOptions\n): PageBuilderResult {\n const { draftOrderId } = options;\n\n return {\n pageId: '8454e8a0-5684-4331-9d4a-e4873467553a',\n relativeUrl: `${draftOrderId}`,\n };\n}\n\nexport interface orderDetailsOptions {\n /** The order Id to display */\n id: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderDetails(options: orderDetailsOptions): PageBuilderResult {\n const { id } = options;\n\n return {\n pageId: '3b96985e-a459-4972-94c3-63f038a73af2',\n relativeUrl: `${id}`,\n };\n}\n\nexport interface PageBuilderResult {\n pageId: string;\n relativeUrl?: string;\n}\n","export * as EditOrder from './dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js';\nexport * as Orders from './dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js';\nexport * as DraftOrderPage from './dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js';\nexport * as CollectPayment from './dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.js';\nexport * as OrderDetails from './dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js';\n","/**\n * @pageName EditOrder\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName Orders\n * @slotType dashboard menu plugin\n */\nexport type OrderItemsBulkMoreActionsMenuParams =\n OrdersListBulkActionExtensionProps;\n/** @internal */\nexport type OrdersListBulkActionExtensionProps = {\n // An array of IDs representing the orders that have been selected.\n selectedIds: string[];\n // An array of IDs representing the orders that have been unchecked. Applicable only when the \"Select All\" option was selected.\n uncheckedIds: string[];\n // A boolean value indicating whether the \"Select All\" option was selected.\n isSelectAll: boolean;\n // The total number of orders that were selected.\n total: number;\n // Callback that notifies the host after successful handling of the flow associated with the new menu item.\n onSuccess(): Promise<void>;\n};\n","/**\n * @pageName DraftOrderPage\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName CollectPayment\n * @slotType dashboard menu plugin\n */\nexport type CollectPaymentMenuParams = CollectPaymentMenuOptionParams;\n\n/** @internal */\nexport type CollectPaymentMenuOptionParams = {\n orderId: string;\n /** @deprecated Use onSuccess() instead */\n onSuccessCallback(): Promise<void>;\n onSuccess(): Promise<void>;\n};\n\n/**\n * @pageName CollectPayment\n * @slotType dashboard plugin\n */\nexport type CollectPaymentModalParams =\n CollectPaymentMenuOnBeforePayModalSlotProps;\n\n/** @internal */\nexport type CollectPaymentMenuOnBeforePayModalSlotProps = {\n orderId: string;\n onSuccess(): Promise<void>;\n onCancel(): void;\n menuOption:\n | {\n key:\n | 'CHARGE_WITH_CREDIT_CARD'\n | 'RECORD_ORDER_MANUAL_PAYMENT'\n | 'CHARGE_WITH_INVOICE'\n | 'CAPTURE_AUTHORIZED_PAYMENT'\n | 'CREATE_AUTHORIZED_PAYMENT';\n componentId?: undefined;\n }\n | {\n key: 'EXTENSION';\n componentId: string;\n };\n};\n","/**\n * @pageName OrderDetails\n * @slotType dashboard plugin\n */\nexport type OrderRightPanelParams = OrderDetailsSecondaryCardProps;\n\n/** @internal */\nexport type OrderDetailsSecondaryCardProps = {\n // Order ID.\n orderId: string;\n // Callback that notifies the host page about an order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onOrderUpdate(): Promise<void>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,UAAU,SAA8C;AACtE,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,cAAiC;AAC/C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,YAAY,SAAgD;AAC1E,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,mBAAsC;AACpD,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,gBACd,SACmB;AACnB,QAAM,EAAE,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,iBAAiB;AAAA,EACnC;AACF;AAMO,SAAS,YAA+B;AAC7C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAMO,SAAS,WAA8B;AAC5C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,eACd,SACmB;AACnB,QAAM,EAAE,aAAa,IAAI;AAEzB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,YAAY;AAAA,EAC9B;AACF;AAWO,SAAS,aAAa,SAAiD;AAC5E,QAAM,EAAE,GAAG,IAAI;AAEf,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,EAAE;AAAA,EACpB;AACF;;;AC5HA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../dashboard.ts","../../src/extensions/dashboard-pages-plugin-props.ts","../../src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts","../../src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts","../../src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts","../../src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts","../../src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts","../../src/extensions/dashboard-page-builders.ts"],"sourcesContent":["export * as dashboard from './dashboard.js';\n","export * as plugins from './src/extensions/dashboard-pages-plugin-props.js';\nexport * as pages from './src/extensions/dashboard-page-builders.js';\n","export * as EditOrder from './dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js';\nexport * as Orders from './dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js';\nexport * as DraftOrderPage from './dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js';\nexport * as CollectPayment from './dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.js';\nexport * as OrderDetails from './dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js';\n","/**\n * @pageName EditOrder\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName Orders\n * @slotType dashboard menu plugin\n */\nexport type OrderItemsBulkMoreActionsMenuParams =\n OrdersListBulkActionExtensionProps;\n/** @internal */\nexport type OrdersListBulkActionExtensionProps = {\n // An array of IDs representing the orders that have been selected.\n selectedIds: string[];\n // An array of IDs representing the orders that have been unchecked. Applicable only when the \"Select All\" option was selected.\n uncheckedIds: string[];\n // A boolean value indicating whether the \"Select All\" option was selected.\n isSelectAll: boolean;\n // The total number of orders that were selected.\n total: number;\n // Callback that notifies the host after successful handling of the flow associated with the new menu item.\n onSuccess(): Promise<void>;\n};\n","/**\n * @pageName DraftOrderPage\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName CollectPayment\n * @slotType dashboard menu plugin\n */\nexport type CollectPaymentMenuParams = CollectPaymentMenuOptionParams;\n\n/** @internal */\nexport type CollectPaymentMenuOptionParams = {\n orderId: string;\n /** @deprecated Use onSuccess() instead */\n onSuccessCallback(): Promise<void>;\n onSuccess(): Promise<void>;\n};\n\n/**\n * @pageName CollectPayment\n * @slotType dashboard plugin\n */\nexport type CollectPaymentModalParams =\n CollectPaymentMenuOnBeforePayModalSlotProps;\n\n/** @internal */\nexport type CollectPaymentMenuOnBeforePayModalSlotProps = {\n orderId: string;\n onSuccess(): Promise<void>;\n onCancel(): void;\n menuOption:\n | {\n key:\n | 'CHARGE_WITH_CREDIT_CARD'\n | 'RECORD_ORDER_MANUAL_PAYMENT'\n | 'CHARGE_WITH_INVOICE'\n | 'CAPTURE_AUTHORIZED_PAYMENT'\n | 'CREATE_AUTHORIZED_PAYMENT';\n componentId?: undefined;\n }\n | {\n key: 'EXTENSION';\n componentId: string;\n };\n};\n","/**\n * @pageName OrderDetails\n * @slotType dashboard plugin\n */\nexport type OrderRightPanelParams = OrderDetailsSecondaryCardProps;\n\n/** @internal */\nexport type OrderDetailsSecondaryCardProps = {\n // Order ID.\n orderId: string;\n // Callback that notifies the host page about an order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onOrderUpdate(): Promise<void>;\n};\n","export interface editOrderOptions {\n /** ID of the order to edit. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editOrder(options: editOrderOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'f2526550-194f-4c13-9298-9a6b8abda62f',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function taxSettings(): PageBuilderResult {\n return { pageId: '7f43cf15-e14a-48f7-a7fa-9d0d1b1a6f02' };\n}\n\nexport interface orderRefundOptions {\n /** ID of the order to refund. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderRefund(options: orderRefundOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'c4898867-69a5-4e05-92b7-c276f9424641',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfiles(): PageBuilderResult {\n return { pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8' };\n}\n\nexport interface deliveryProfileOptions {\n /** Delivery profile to manage */\n deliveryProfileId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfile(\n options: deliveryProfileOptions\n): PageBuilderResult {\n const { deliveryProfileId } = options;\n\n return {\n pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8',\n relativeUrl: `${deliveryProfileId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderList(): PageBuilderResult {\n return { pageId: '8107f05f-d646-4c81-be90-adf28d321398' };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function newOrder(): PageBuilderResult {\n return { pageId: '8454e8a0-5684-4331-9d4a-e4873467553a' };\n}\n\nexport interface editDraftOrderOptions {\n /** Draft order id */\n draftOrderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editDraftOrder(\n options: editDraftOrderOptions\n): PageBuilderResult {\n const { draftOrderId } = options;\n\n return {\n pageId: '8454e8a0-5684-4331-9d4a-e4873467553a',\n relativeUrl: `${draftOrderId}`,\n };\n}\n\nexport interface orderDetailsOptions {\n /** The order Id to display */\n id: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderDetails(options: orderDetailsOptions): PageBuilderResult {\n const { id } = options;\n\n return {\n pageId: '3b96985e-a459-4972-94c3-63f038a73af2',\n relativeUrl: `${id}`,\n };\n}\n\nexport interface PageBuilderResult {\n pageId: string;\n relativeUrl?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,UAAU,SAA8C;AACtE,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,cAAiC;AAC/C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,YAAY,SAAgD;AAC1E,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,mBAAsC;AACpD,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,gBACd,SACmB;AACnB,QAAM,EAAE,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,iBAAiB;AAAA,EACnC;AACF;AAMO,SAAS,YAA+B;AAC7C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAMO,SAAS,WAA8B;AAC5C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,eACd,SACmB;AACnB,QAAM,EAAE,aAAa,IAAI;AAEzB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,YAAY;AAAA,EAC9B;AACF;AAWO,SAAS,aAAa,SAAiD;AAC5E,QAAM,EAAE,GAAG,IAAI;AAEf,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,EAAE;AAAA,EACpB;AACF;","names":[]}
|
package/build/es/dashboard.d.mts
CHANGED
|
@@ -1,92 +1,3 @@
|
|
|
1
|
-
interface editOrderOptions {
|
|
2
|
-
/** ID of the order to edit. */
|
|
3
|
-
orderId: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.
|
|
7
|
-
* @dashobardPageBuilder
|
|
8
|
-
*/
|
|
9
|
-
declare function editOrder(options: editOrderOptions): PageBuilderResult;
|
|
10
|
-
/**
|
|
11
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.
|
|
12
|
-
* @dashobardPageBuilder
|
|
13
|
-
*/
|
|
14
|
-
declare function taxSettings(): PageBuilderResult;
|
|
15
|
-
interface orderRefundOptions {
|
|
16
|
-
/** ID of the order to refund. */
|
|
17
|
-
orderId: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.
|
|
21
|
-
* @dashobardPageBuilder
|
|
22
|
-
*/
|
|
23
|
-
declare function orderRefund(options: orderRefundOptions): PageBuilderResult;
|
|
24
|
-
/**
|
|
25
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.
|
|
26
|
-
* @dashobardPageBuilder
|
|
27
|
-
*/
|
|
28
|
-
declare function deliveryProfiles(): PageBuilderResult;
|
|
29
|
-
interface deliveryProfileOptions {
|
|
30
|
-
/** Delivery profile to manage */
|
|
31
|
-
deliveryProfileId: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.
|
|
35
|
-
* @dashobardPageBuilder
|
|
36
|
-
*/
|
|
37
|
-
declare function deliveryProfile(options: deliveryProfileOptions): PageBuilderResult;
|
|
38
|
-
/**
|
|
39
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.
|
|
40
|
-
* @dashobardPageBuilder
|
|
41
|
-
*/
|
|
42
|
-
declare function orderList(): PageBuilderResult;
|
|
43
|
-
/**
|
|
44
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.
|
|
45
|
-
* @dashobardPageBuilder
|
|
46
|
-
*/
|
|
47
|
-
declare function newOrder(): PageBuilderResult;
|
|
48
|
-
interface editDraftOrderOptions {
|
|
49
|
-
/** Draft order id */
|
|
50
|
-
draftOrderId: string;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.
|
|
54
|
-
* @dashobardPageBuilder
|
|
55
|
-
*/
|
|
56
|
-
declare function editDraftOrder(options: editDraftOrderOptions): PageBuilderResult;
|
|
57
|
-
interface orderDetailsOptions {
|
|
58
|
-
/** The order Id to display */
|
|
59
|
-
id: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.
|
|
63
|
-
* @dashobardPageBuilder
|
|
64
|
-
*/
|
|
65
|
-
declare function orderDetails(options: orderDetailsOptions): PageBuilderResult;
|
|
66
|
-
interface PageBuilderResult {
|
|
67
|
-
pageId: string;
|
|
68
|
-
relativeUrl?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
type dashboardPageBuilders_PageBuilderResult = PageBuilderResult;
|
|
72
|
-
declare const dashboardPageBuilders_deliveryProfile: typeof deliveryProfile;
|
|
73
|
-
type dashboardPageBuilders_deliveryProfileOptions = deliveryProfileOptions;
|
|
74
|
-
declare const dashboardPageBuilders_deliveryProfiles: typeof deliveryProfiles;
|
|
75
|
-
declare const dashboardPageBuilders_editDraftOrder: typeof editDraftOrder;
|
|
76
|
-
type dashboardPageBuilders_editDraftOrderOptions = editDraftOrderOptions;
|
|
77
|
-
declare const dashboardPageBuilders_editOrder: typeof editOrder;
|
|
78
|
-
type dashboardPageBuilders_editOrderOptions = editOrderOptions;
|
|
79
|
-
declare const dashboardPageBuilders_newOrder: typeof newOrder;
|
|
80
|
-
declare const dashboardPageBuilders_orderDetails: typeof orderDetails;
|
|
81
|
-
type dashboardPageBuilders_orderDetailsOptions = orderDetailsOptions;
|
|
82
|
-
declare const dashboardPageBuilders_orderList: typeof orderList;
|
|
83
|
-
declare const dashboardPageBuilders_orderRefund: typeof orderRefund;
|
|
84
|
-
type dashboardPageBuilders_orderRefundOptions = orderRefundOptions;
|
|
85
|
-
declare const dashboardPageBuilders_taxSettings: typeof taxSettings;
|
|
86
|
-
declare namespace dashboardPageBuilders {
|
|
87
|
-
export { type dashboardPageBuilders_PageBuilderResult as PageBuilderResult, dashboardPageBuilders_deliveryProfile as deliveryProfile, type dashboardPageBuilders_deliveryProfileOptions as deliveryProfileOptions, dashboardPageBuilders_deliveryProfiles as deliveryProfiles, dashboardPageBuilders_editDraftOrder as editDraftOrder, type dashboardPageBuilders_editDraftOrderOptions as editDraftOrderOptions, dashboardPageBuilders_editOrder as editOrder, type dashboardPageBuilders_editOrderOptions as editOrderOptions, dashboardPageBuilders_newOrder as newOrder, dashboardPageBuilders_orderDetails as orderDetails, type dashboardPageBuilders_orderDetailsOptions as orderDetailsOptions, dashboardPageBuilders_orderList as orderList, dashboardPageBuilders_orderRefund as orderRefund, type dashboardPageBuilders_orderRefundOptions as orderRefundOptions, dashboardPageBuilders_taxSettings as taxSettings };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
1
|
/**
|
|
91
2
|
* @pageName EditOrder
|
|
92
3
|
* @slotType dashboard menu plugin
|
|
@@ -199,6 +110,95 @@ declare namespace dashboardPagesPluginProps {
|
|
|
199
110
|
export { e5128b65Cb234ea4B63a434a4e6b6e9e as CollectPayment, _8454e8a0568443319d4aE4873467553a as DraftOrderPage, f2526550194f4c1392989a6b8abda62f as EditOrder, _3b96985eA459497294c363f038a73af2 as OrderDetails, _8107f05fD6464c81Be90Adf28d321398 as Orders };
|
|
200
111
|
}
|
|
201
112
|
|
|
113
|
+
interface editOrderOptions {
|
|
114
|
+
/** ID of the order to edit. */
|
|
115
|
+
orderId: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.
|
|
119
|
+
* @dashobardPageBuilder
|
|
120
|
+
*/
|
|
121
|
+
declare function editOrder(options: editOrderOptions): PageBuilderResult;
|
|
122
|
+
/**
|
|
123
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.
|
|
124
|
+
* @dashobardPageBuilder
|
|
125
|
+
*/
|
|
126
|
+
declare function taxSettings(): PageBuilderResult;
|
|
127
|
+
interface orderRefundOptions {
|
|
128
|
+
/** ID of the order to refund. */
|
|
129
|
+
orderId: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.
|
|
133
|
+
* @dashobardPageBuilder
|
|
134
|
+
*/
|
|
135
|
+
declare function orderRefund(options: orderRefundOptions): PageBuilderResult;
|
|
136
|
+
/**
|
|
137
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.
|
|
138
|
+
* @dashobardPageBuilder
|
|
139
|
+
*/
|
|
140
|
+
declare function deliveryProfiles(): PageBuilderResult;
|
|
141
|
+
interface deliveryProfileOptions {
|
|
142
|
+
/** Delivery profile to manage */
|
|
143
|
+
deliveryProfileId: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.
|
|
147
|
+
* @dashobardPageBuilder
|
|
148
|
+
*/
|
|
149
|
+
declare function deliveryProfile(options: deliveryProfileOptions): PageBuilderResult;
|
|
150
|
+
/**
|
|
151
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.
|
|
152
|
+
* @dashobardPageBuilder
|
|
153
|
+
*/
|
|
154
|
+
declare function orderList(): PageBuilderResult;
|
|
155
|
+
/**
|
|
156
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.
|
|
157
|
+
* @dashobardPageBuilder
|
|
158
|
+
*/
|
|
159
|
+
declare function newOrder(): PageBuilderResult;
|
|
160
|
+
interface editDraftOrderOptions {
|
|
161
|
+
/** Draft order id */
|
|
162
|
+
draftOrderId: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.
|
|
166
|
+
* @dashobardPageBuilder
|
|
167
|
+
*/
|
|
168
|
+
declare function editDraftOrder(options: editDraftOrderOptions): PageBuilderResult;
|
|
169
|
+
interface orderDetailsOptions {
|
|
170
|
+
/** The order Id to display */
|
|
171
|
+
id: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.
|
|
175
|
+
* @dashobardPageBuilder
|
|
176
|
+
*/
|
|
177
|
+
declare function orderDetails(options: orderDetailsOptions): PageBuilderResult;
|
|
178
|
+
interface PageBuilderResult {
|
|
179
|
+
pageId: string;
|
|
180
|
+
relativeUrl?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
type dashboardPageBuilders_PageBuilderResult = PageBuilderResult;
|
|
184
|
+
declare const dashboardPageBuilders_deliveryProfile: typeof deliveryProfile;
|
|
185
|
+
type dashboardPageBuilders_deliveryProfileOptions = deliveryProfileOptions;
|
|
186
|
+
declare const dashboardPageBuilders_deliveryProfiles: typeof deliveryProfiles;
|
|
187
|
+
declare const dashboardPageBuilders_editDraftOrder: typeof editDraftOrder;
|
|
188
|
+
type dashboardPageBuilders_editDraftOrderOptions = editDraftOrderOptions;
|
|
189
|
+
declare const dashboardPageBuilders_editOrder: typeof editOrder;
|
|
190
|
+
type dashboardPageBuilders_editOrderOptions = editOrderOptions;
|
|
191
|
+
declare const dashboardPageBuilders_newOrder: typeof newOrder;
|
|
192
|
+
declare const dashboardPageBuilders_orderDetails: typeof orderDetails;
|
|
193
|
+
type dashboardPageBuilders_orderDetailsOptions = orderDetailsOptions;
|
|
194
|
+
declare const dashboardPageBuilders_orderList: typeof orderList;
|
|
195
|
+
declare const dashboardPageBuilders_orderRefund: typeof orderRefund;
|
|
196
|
+
type dashboardPageBuilders_orderRefundOptions = orderRefundOptions;
|
|
197
|
+
declare const dashboardPageBuilders_taxSettings: typeof taxSettings;
|
|
198
|
+
declare namespace dashboardPageBuilders {
|
|
199
|
+
export { type dashboardPageBuilders_PageBuilderResult as PageBuilderResult, dashboardPageBuilders_deliveryProfile as deliveryProfile, type dashboardPageBuilders_deliveryProfileOptions as deliveryProfileOptions, dashboardPageBuilders_deliveryProfiles as deliveryProfiles, dashboardPageBuilders_editDraftOrder as editDraftOrder, type dashboardPageBuilders_editDraftOrderOptions as editDraftOrderOptions, dashboardPageBuilders_editOrder as editOrder, type dashboardPageBuilders_editOrderOptions as editOrderOptions, dashboardPageBuilders_newOrder as newOrder, dashboardPageBuilders_orderDetails as orderDetails, type dashboardPageBuilders_orderDetailsOptions as orderDetailsOptions, dashboardPageBuilders_orderList as orderList, dashboardPageBuilders_orderRefund as orderRefund, type dashboardPageBuilders_orderRefundOptions as orderRefundOptions, dashboardPageBuilders_taxSettings as taxSettings };
|
|
200
|
+
}
|
|
201
|
+
|
|
202
202
|
declare namespace dashboard {
|
|
203
203
|
export { dashboardPageBuilders as pages, dashboardPagesPluginProps as plugins };
|
|
204
204
|
}
|
package/build/es/dashboard.mjs
CHANGED
|
@@ -4,6 +4,31 @@ var __export = (target, all) => {
|
|
|
4
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
// src/extensions/dashboard-pages-plugin-props.ts
|
|
8
|
+
var dashboard_pages_plugin_props_exports = {};
|
|
9
|
+
__export(dashboard_pages_plugin_props_exports, {
|
|
10
|
+
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
11
|
+
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
12
|
+
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
13
|
+
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
14
|
+
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
18
|
+
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
19
|
+
|
|
20
|
+
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
21
|
+
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
22
|
+
|
|
23
|
+
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
24
|
+
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
25
|
+
|
|
26
|
+
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
27
|
+
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
28
|
+
|
|
29
|
+
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
30
|
+
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
31
|
+
|
|
7
32
|
// src/extensions/dashboard-page-builders.ts
|
|
8
33
|
var dashboard_page_builders_exports = {};
|
|
9
34
|
__export(dashboard_page_builders_exports, {
|
|
@@ -64,31 +89,6 @@ function orderDetails(options) {
|
|
|
64
89
|
relativeUrl: `${id}`
|
|
65
90
|
};
|
|
66
91
|
}
|
|
67
|
-
|
|
68
|
-
// src/extensions/dashboard-pages-plugin-props.ts
|
|
69
|
-
var dashboard_pages_plugin_props_exports = {};
|
|
70
|
-
__export(dashboard_pages_plugin_props_exports, {
|
|
71
|
-
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
72
|
-
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
73
|
-
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
74
|
-
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
75
|
-
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
79
|
-
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
80
|
-
|
|
81
|
-
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
82
|
-
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
83
|
-
|
|
84
|
-
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
85
|
-
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
86
|
-
|
|
87
|
-
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
88
|
-
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
89
|
-
|
|
90
|
-
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
91
|
-
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
92
92
|
export {
|
|
93
93
|
dashboard_page_builders_exports as pages,
|
|
94
94
|
dashboard_pages_plugin_props_exports as plugins
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/extensions/dashboard-
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/dashboard-pages-plugin-props.ts","../../src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts","../../src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts","../../src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts","../../src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts","../../src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts","../../src/extensions/dashboard-page-builders.ts"],"sourcesContent":["export * as EditOrder from './dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js';\nexport * as Orders from './dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js';\nexport * as DraftOrderPage from './dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js';\nexport * as CollectPayment from './dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.js';\nexport * as OrderDetails from './dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js';\n","/**\n * @pageName EditOrder\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName Orders\n * @slotType dashboard menu plugin\n */\nexport type OrderItemsBulkMoreActionsMenuParams =\n OrdersListBulkActionExtensionProps;\n/** @internal */\nexport type OrdersListBulkActionExtensionProps = {\n // An array of IDs representing the orders that have been selected.\n selectedIds: string[];\n // An array of IDs representing the orders that have been unchecked. Applicable only when the \"Select All\" option was selected.\n uncheckedIds: string[];\n // A boolean value indicating whether the \"Select All\" option was selected.\n isSelectAll: boolean;\n // The total number of orders that were selected.\n total: number;\n // Callback that notifies the host after successful handling of the flow associated with the new menu item.\n onSuccess(): Promise<void>;\n};\n","/**\n * @pageName DraftOrderPage\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName CollectPayment\n * @slotType dashboard menu plugin\n */\nexport type CollectPaymentMenuParams = CollectPaymentMenuOptionParams;\n\n/** @internal */\nexport type CollectPaymentMenuOptionParams = {\n orderId: string;\n /** @deprecated Use onSuccess() instead */\n onSuccessCallback(): Promise<void>;\n onSuccess(): Promise<void>;\n};\n\n/**\n * @pageName CollectPayment\n * @slotType dashboard plugin\n */\nexport type CollectPaymentModalParams =\n CollectPaymentMenuOnBeforePayModalSlotProps;\n\n/** @internal */\nexport type CollectPaymentMenuOnBeforePayModalSlotProps = {\n orderId: string;\n onSuccess(): Promise<void>;\n onCancel(): void;\n menuOption:\n | {\n key:\n | 'CHARGE_WITH_CREDIT_CARD'\n | 'RECORD_ORDER_MANUAL_PAYMENT'\n | 'CHARGE_WITH_INVOICE'\n | 'CAPTURE_AUTHORIZED_PAYMENT'\n | 'CREATE_AUTHORIZED_PAYMENT';\n componentId?: undefined;\n }\n | {\n key: 'EXTENSION';\n componentId: string;\n };\n};\n","/**\n * @pageName OrderDetails\n * @slotType dashboard plugin\n */\nexport type OrderRightPanelParams = OrderDetailsSecondaryCardProps;\n\n/** @internal */\nexport type OrderDetailsSecondaryCardProps = {\n // Order ID.\n orderId: string;\n // Callback that notifies the host page about an order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onOrderUpdate(): Promise<void>;\n};\n","export interface editOrderOptions {\n /** ID of the order to edit. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editOrder(options: editOrderOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'f2526550-194f-4c13-9298-9a6b8abda62f',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function taxSettings(): PageBuilderResult {\n return { pageId: '7f43cf15-e14a-48f7-a7fa-9d0d1b1a6f02' };\n}\n\nexport interface orderRefundOptions {\n /** ID of the order to refund. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderRefund(options: orderRefundOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'c4898867-69a5-4e05-92b7-c276f9424641',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfiles(): PageBuilderResult {\n return { pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8' };\n}\n\nexport interface deliveryProfileOptions {\n /** Delivery profile to manage */\n deliveryProfileId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfile(\n options: deliveryProfileOptions\n): PageBuilderResult {\n const { deliveryProfileId } = options;\n\n return {\n pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8',\n relativeUrl: `${deliveryProfileId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderList(): PageBuilderResult {\n return { pageId: '8107f05f-d646-4c81-be90-adf28d321398' };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function newOrder(): PageBuilderResult {\n return { pageId: '8454e8a0-5684-4331-9d4a-e4873467553a' };\n}\n\nexport interface editDraftOrderOptions {\n /** Draft order id */\n draftOrderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editDraftOrder(\n options: editDraftOrderOptions\n): PageBuilderResult {\n const { draftOrderId } = options;\n\n return {\n pageId: '8454e8a0-5684-4331-9d4a-e4873467553a',\n relativeUrl: `${draftOrderId}`,\n };\n}\n\nexport interface orderDetailsOptions {\n /** The order Id to display */\n id: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderDetails(options: orderDetailsOptions): PageBuilderResult {\n const { id } = options;\n\n return {\n pageId: '3b96985e-a459-4972-94c3-63f038a73af2',\n relativeUrl: `${id}`,\n };\n}\n\nexport interface PageBuilderResult {\n pageId: string;\n relativeUrl?: string;\n}\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,UAAU,SAA8C;AACtE,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,cAAiC;AAC/C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,YAAY,SAAgD;AAC1E,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,mBAAsC;AACpD,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,gBACd,SACmB;AACnB,QAAM,EAAE,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,iBAAiB;AAAA,EACnC;AACF;AAMO,SAAS,YAA+B;AAC7C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAMO,SAAS,WAA8B;AAC5C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,eACd,SACmB;AACnB,QAAM,EAAE,aAAa,IAAI;AAEzB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,YAAY;AAAA,EAC9B;AACF;AAWO,SAAS,aAAa,SAAiD;AAC5E,QAAM,EAAE,GAAG,IAAI;AAEf,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,EAAE;AAAA,EACpB;AACF;","names":[]}
|
package/build/es/index.mjs
CHANGED
|
@@ -11,6 +11,31 @@ __export(dashboard_exports, {
|
|
|
11
11
|
plugins: () => dashboard_pages_plugin_props_exports
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
+
// src/extensions/dashboard-pages-plugin-props.ts
|
|
15
|
+
var dashboard_pages_plugin_props_exports = {};
|
|
16
|
+
__export(dashboard_pages_plugin_props_exports, {
|
|
17
|
+
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
18
|
+
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
19
|
+
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
20
|
+
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
21
|
+
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
25
|
+
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
26
|
+
|
|
27
|
+
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
28
|
+
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
29
|
+
|
|
30
|
+
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
31
|
+
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
32
|
+
|
|
33
|
+
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
34
|
+
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
35
|
+
|
|
36
|
+
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
37
|
+
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
38
|
+
|
|
14
39
|
// src/extensions/dashboard-page-builders.ts
|
|
15
40
|
var dashboard_page_builders_exports = {};
|
|
16
41
|
__export(dashboard_page_builders_exports, {
|
|
@@ -71,31 +96,6 @@ function orderDetails(options) {
|
|
|
71
96
|
relativeUrl: `${id}`
|
|
72
97
|
};
|
|
73
98
|
}
|
|
74
|
-
|
|
75
|
-
// src/extensions/dashboard-pages-plugin-props.ts
|
|
76
|
-
var dashboard_pages_plugin_props_exports = {};
|
|
77
|
-
__export(dashboard_pages_plugin_props_exports, {
|
|
78
|
-
CollectPayment: () => e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports,
|
|
79
|
-
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
80
|
-
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
81
|
-
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
82
|
-
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
86
|
-
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
87
|
-
|
|
88
|
-
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
89
|
-
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
90
|
-
|
|
91
|
-
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
92
|
-
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
93
|
-
|
|
94
|
-
// src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts
|
|
95
|
-
var e5128b65_cb23_4ea4_b63a_434a4e6b6e9e_exports = {};
|
|
96
|
-
|
|
97
|
-
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
98
|
-
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
99
99
|
export {
|
|
100
100
|
dashboard_exports as dashboard
|
|
101
101
|
};
|
package/build/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../dashboard.ts","../../src/extensions/dashboard-
|
|
1
|
+
{"version":3,"sources":["../../dashboard.ts","../../src/extensions/dashboard-pages-plugin-props.ts","../../src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts","../../src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts","../../src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts","../../src/extensions/dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.ts","../../src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts","../../src/extensions/dashboard-page-builders.ts"],"sourcesContent":["export * as plugins from './src/extensions/dashboard-pages-plugin-props.js';\nexport * as pages from './src/extensions/dashboard-page-builders.js';\n","export * as EditOrder from './dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js';\nexport * as Orders from './dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js';\nexport * as DraftOrderPage from './dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js';\nexport * as CollectPayment from './dashboard-page-plugins/e5128b65-cb23-4ea4-b63a-434a4e6b6e9e.js';\nexport * as OrderDetails from './dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js';\n","/**\n * @pageName EditOrder\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName Orders\n * @slotType dashboard menu plugin\n */\nexport type OrderItemsBulkMoreActionsMenuParams =\n OrdersListBulkActionExtensionProps;\n/** @internal */\nexport type OrdersListBulkActionExtensionProps = {\n // An array of IDs representing the orders that have been selected.\n selectedIds: string[];\n // An array of IDs representing the orders that have been unchecked. Applicable only when the \"Select All\" option was selected.\n uncheckedIds: string[];\n // A boolean value indicating whether the \"Select All\" option was selected.\n isSelectAll: boolean;\n // The total number of orders that were selected.\n total: number;\n // Callback that notifies the host after successful handling of the flow associated with the new menu item.\n onSuccess(): Promise<void>;\n};\n","/**\n * @pageName DraftOrderPage\n * @slotType dashboard menu plugin\n */\nexport type OrderSummaryParams = DraftOrderManageFeesActionParams;\n/** @internal */\nexport type DraftOrderManageFeesActionParams = {\n // ID of the order that is being edited.\n draftOrderId: string;\n // Callback that notifies the host page about a draft order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onDraftOrderUpdate(): Promise<void>;\n};\n","/**\n * @pageName CollectPayment\n * @slotType dashboard menu plugin\n */\nexport type CollectPaymentMenuParams = CollectPaymentMenuOptionParams;\n\n/** @internal */\nexport type CollectPaymentMenuOptionParams = {\n orderId: string;\n /** @deprecated Use onSuccess() instead */\n onSuccessCallback(): Promise<void>;\n onSuccess(): Promise<void>;\n};\n\n/**\n * @pageName CollectPayment\n * @slotType dashboard plugin\n */\nexport type CollectPaymentModalParams =\n CollectPaymentMenuOnBeforePayModalSlotProps;\n\n/** @internal */\nexport type CollectPaymentMenuOnBeforePayModalSlotProps = {\n orderId: string;\n onSuccess(): Promise<void>;\n onCancel(): void;\n menuOption:\n | {\n key:\n | 'CHARGE_WITH_CREDIT_CARD'\n | 'RECORD_ORDER_MANUAL_PAYMENT'\n | 'CHARGE_WITH_INVOICE'\n | 'CAPTURE_AUTHORIZED_PAYMENT'\n | 'CREATE_AUTHORIZED_PAYMENT';\n componentId?: undefined;\n }\n | {\n key: 'EXTENSION';\n componentId: string;\n };\n};\n","/**\n * @pageName OrderDetails\n * @slotType dashboard plugin\n */\nexport type OrderRightPanelParams = OrderDetailsSecondaryCardProps;\n\n/** @internal */\nexport type OrderDetailsSecondaryCardProps = {\n // Order ID.\n orderId: string;\n // Callback that notifies the host page about an order update, prompting a UI refresh. It returns a promise indicating when the UI update on the host page is complete.\n onOrderUpdate(): Promise<void>;\n};\n","export interface editOrderOptions {\n /** ID of the order to edit. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editOrder(options: editOrderOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'f2526550-194f-4c13-9298-9a6b8abda62f',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Tax Settings page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function taxSettings(): PageBuilderResult {\n return { pageId: '7f43cf15-e14a-48f7-a7fa-9d0d1b1a6f02' };\n}\n\nexport interface orderRefundOptions {\n /** ID of the order to refund. */\n orderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Refund page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderRefund(options: orderRefundOptions): PageBuilderResult {\n const { orderId } = options;\n\n return {\n pageId: 'c4898867-69a5-4e05-92b7-c276f9424641',\n relativeUrl: `${orderId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profiles page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfiles(): PageBuilderResult {\n return { pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8' };\n}\n\nexport interface deliveryProfileOptions {\n /** Delivery profile to manage */\n deliveryProfileId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Delivery Profile page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function deliveryProfile(\n options: deliveryProfileOptions\n): PageBuilderResult {\n const { deliveryProfileId } = options;\n\n return {\n pageId: '841919b4-9e96-43f4-87ea-fa382bc9d0e8',\n relativeUrl: `${deliveryProfileId}`,\n };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order List page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderList(): PageBuilderResult {\n return { pageId: '8107f05f-d646-4c81-be90-adf28d321398' };\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the New Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function newOrder(): PageBuilderResult {\n return { pageId: '8454e8a0-5684-4331-9d4a-e4873467553a' };\n}\n\nexport interface editDraftOrderOptions {\n /** Draft order id */\n draftOrderId: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Edit Draft Order page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function editDraftOrder(\n options: editDraftOrderOptions\n): PageBuilderResult {\n const { draftOrderId } = options;\n\n return {\n pageId: '8454e8a0-5684-4331-9d4a-e4873467553a',\n relativeUrl: `${draftOrderId}`,\n };\n}\n\nexport interface orderDetailsOptions {\n /** The order Id to display */\n id: string;\n}\n\n/**\n * A builder method that returns the <a href='https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate#destination-object'>destination object</a> for navigating to the Order Details page in the dashboard.\n * @dashobardPageBuilder\n */\nexport function orderDetails(options: orderDetailsOptions): PageBuilderResult {\n const { id } = options;\n\n return {\n pageId: '3b96985e-a459-4972-94c3-63f038a73af2',\n relativeUrl: `${id}`,\n };\n}\n\nexport interface PageBuilderResult {\n pageId: string;\n relativeUrl?: string;\n}\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,UAAU,SAA8C;AACtE,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,cAAiC;AAC/C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,YAAY,SAAgD;AAC1E,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;AAMO,SAAS,mBAAsC;AACpD,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,gBACd,SACmB;AACnB,QAAM,EAAE,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,iBAAiB;AAAA,EACnC;AACF;AAMO,SAAS,YAA+B;AAC7C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAMO,SAAS,WAA8B;AAC5C,SAAO,EAAE,QAAQ,uCAAuC;AAC1D;AAWO,SAAS,eACd,SACmB;AACnB,QAAM,EAAE,aAAa,IAAI;AAEzB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,YAAY;AAAA,EAC9B;AACF;AAWO,SAAS,aAAa,SAAiD;AAC5E,QAAM,EAAE,GAAG,IAAI;AAEf,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,EAAE;AAAA,EACpB;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ecom_app-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"groupId": "com.wixpress.sdk-app-extensions-autogen"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "a9d245af876536711e47c7f96de39284a5a47331754bcb0806eeaf54"
|
|
50
50
|
}
|