@wix/ecom_app-extensions 1.0.81 → 1.0.83
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 +161 -2
- package/build/cjs/dashboard.js +107 -26
- package/build/cjs/dashboard.js.map +1 -1
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +112 -25
- package/build/cjs/index.js.map +1 -1
- package/build/es/dashboard.d.mts +161 -0
- package/build/es/dashboard.mjs +88 -0
- package/build/es/dashboard.mjs.map +1 -0
- package/build/es/index.d.mts +1 -0
- package/build/es/index.mjs +94 -0
- package/build/es/index.mjs.map +1 -0
- package/package.json +12 -10
- package/build/cjs/src/extensions/dashboard-page-builders.d.ts +0 -64
- package/build/cjs/src/extensions/dashboard-page-builders.js +0 -88
- package/build/cjs/src/extensions/dashboard-page-builders.js.map +0 -1
- package/build/cjs/src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.d.ts +0 -10
- package/build/cjs/src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js +0 -3
- package/build/cjs/src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js.map +0 -1
- package/build/cjs/src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.d.ts +0 -13
- package/build/cjs/src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js +0 -3
- package/build/cjs/src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js.map +0 -1
- package/build/cjs/src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.d.ts +0 -10
- package/build/cjs/src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js +0 -3
- package/build/cjs/src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js.map +0 -1
- package/build/cjs/src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.d.ts +0 -10
- package/build/cjs/src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js +0 -3
- package/build/cjs/src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js.map +0 -1
- package/build/cjs/src/extensions/dashboard-pages-plugin-props.d.ts +0 -4
- package/build/cjs/src/extensions/dashboard-pages-plugin-props.js +0 -31
- package/build/cjs/src/extensions/dashboard-pages-plugin-props.js.map +0 -1
- package/build/es/dashboard.d.ts +0 -2
- package/build/es/dashboard.js +0 -3
- package/build/es/dashboard.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/src/extensions/dashboard-page-builders.d.ts +0 -64
- package/build/es/src/extensions/dashboard-page-builders.js +0 -77
- package/build/es/src/extensions/dashboard-page-builders.js.map +0 -1
- package/build/es/src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.d.ts +0 -10
- package/build/es/src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js +0 -2
- package/build/es/src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.js.map +0 -1
- package/build/es/src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.d.ts +0 -13
- package/build/es/src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js +0 -2
- package/build/es/src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.js.map +0 -1
- package/build/es/src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.d.ts +0 -10
- package/build/es/src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js +0 -2
- package/build/es/src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.js.map +0 -1
- package/build/es/src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.d.ts +0 -10
- package/build/es/src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js +0 -2
- package/build/es/src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.js.map +0 -1
- package/build/es/src/extensions/dashboard-pages-plugin-props.d.ts +0 -4
- package/build/es/src/extensions/dashboard-pages-plugin-props.js +0 -5
- package/build/es/src/extensions/dashboard-pages-plugin-props.js.map +0 -1
package/build/cjs/dashboard.d.ts
CHANGED
|
@@ -1,2 +1,161 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
interface orderRefundOptions {
|
|
11
|
+
/** ID of the order to refund. */
|
|
12
|
+
orderId: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 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.
|
|
16
|
+
* @dashobardPageBuilder
|
|
17
|
+
*/
|
|
18
|
+
declare function orderRefund(options: orderRefundOptions): PageBuilderResult;
|
|
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 Delivery Profiles page in the dashboard.
|
|
21
|
+
* @dashobardPageBuilder
|
|
22
|
+
*/
|
|
23
|
+
declare function deliveryProfiles(): PageBuilderResult;
|
|
24
|
+
interface deliveryProfileOptions {
|
|
25
|
+
/** Delivery profile to manage */
|
|
26
|
+
deliveryProfileId: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 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.
|
|
30
|
+
* @dashobardPageBuilder
|
|
31
|
+
*/
|
|
32
|
+
declare function deliveryProfile(options: deliveryProfileOptions): PageBuilderResult;
|
|
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 Order List page in the dashboard.
|
|
35
|
+
* @dashobardPageBuilder
|
|
36
|
+
*/
|
|
37
|
+
declare function orderList(): 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 New Order page in the dashboard.
|
|
40
|
+
* @dashobardPageBuilder
|
|
41
|
+
*/
|
|
42
|
+
declare function newOrder(): PageBuilderResult;
|
|
43
|
+
interface editDraftOrderOptions {
|
|
44
|
+
/** Draft order id */
|
|
45
|
+
draftOrderId: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
* @dashobardPageBuilder
|
|
50
|
+
*/
|
|
51
|
+
declare function editDraftOrder(options: editDraftOrderOptions): PageBuilderResult;
|
|
52
|
+
interface orderDetailsOptions {
|
|
53
|
+
/** The order Id to display */
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 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.
|
|
58
|
+
* @dashobardPageBuilder
|
|
59
|
+
*/
|
|
60
|
+
declare function orderDetails(options: orderDetailsOptions): PageBuilderResult;
|
|
61
|
+
interface PageBuilderResult {
|
|
62
|
+
pageId: string;
|
|
63
|
+
relativeUrl?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type dashboardPageBuilders_PageBuilderResult = PageBuilderResult;
|
|
67
|
+
declare const dashboardPageBuilders_deliveryProfile: typeof deliveryProfile;
|
|
68
|
+
type dashboardPageBuilders_deliveryProfileOptions = deliveryProfileOptions;
|
|
69
|
+
declare const dashboardPageBuilders_deliveryProfiles: typeof deliveryProfiles;
|
|
70
|
+
declare const dashboardPageBuilders_editDraftOrder: typeof editDraftOrder;
|
|
71
|
+
type dashboardPageBuilders_editDraftOrderOptions = editDraftOrderOptions;
|
|
72
|
+
declare const dashboardPageBuilders_editOrder: typeof editOrder;
|
|
73
|
+
type dashboardPageBuilders_editOrderOptions = editOrderOptions;
|
|
74
|
+
declare const dashboardPageBuilders_newOrder: typeof newOrder;
|
|
75
|
+
declare const dashboardPageBuilders_orderDetails: typeof orderDetails;
|
|
76
|
+
type dashboardPageBuilders_orderDetailsOptions = orderDetailsOptions;
|
|
77
|
+
declare const dashboardPageBuilders_orderList: typeof orderList;
|
|
78
|
+
declare const dashboardPageBuilders_orderRefund: typeof orderRefund;
|
|
79
|
+
type dashboardPageBuilders_orderRefundOptions = orderRefundOptions;
|
|
80
|
+
declare namespace dashboardPageBuilders {
|
|
81
|
+
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 };
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @pageName EditOrder
|
|
86
|
+
* @slotType dashboard menu plugin
|
|
87
|
+
*/
|
|
88
|
+
type OrderSummaryParams$1 = DraftOrderManageFeesActionParams$1;
|
|
89
|
+
/** @internal */
|
|
90
|
+
type DraftOrderManageFeesActionParams$1 = {
|
|
91
|
+
draftOrderId: string;
|
|
92
|
+
onDraftOrderUpdate(): Promise<void>;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare namespace f2526550194f4c1392989a6b8abda62f {
|
|
96
|
+
export type { DraftOrderManageFeesActionParams$1 as DraftOrderManageFeesActionParams, OrderSummaryParams$1 as OrderSummaryParams };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @pageName Orders
|
|
101
|
+
* @slotType dashboard menu plugin
|
|
102
|
+
*/
|
|
103
|
+
type OrderItemsBulkMoreActionsMenuParams = OrdersListBulkActionExtensionProps;
|
|
104
|
+
/** @internal */
|
|
105
|
+
type OrdersListBulkActionExtensionProps = {
|
|
106
|
+
selectedIds: string[];
|
|
107
|
+
uncheckedIds: string[];
|
|
108
|
+
isSelectAll: boolean;
|
|
109
|
+
total: number;
|
|
110
|
+
onSuccess(): Promise<void>;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
type _8107f05fD6464c81Be90Adf28d321398_OrderItemsBulkMoreActionsMenuParams = OrderItemsBulkMoreActionsMenuParams;
|
|
114
|
+
type _8107f05fD6464c81Be90Adf28d321398_OrdersListBulkActionExtensionProps = OrdersListBulkActionExtensionProps;
|
|
115
|
+
declare namespace _8107f05fD6464c81Be90Adf28d321398 {
|
|
116
|
+
export type { _8107f05fD6464c81Be90Adf28d321398_OrderItemsBulkMoreActionsMenuParams as OrderItemsBulkMoreActionsMenuParams, _8107f05fD6464c81Be90Adf28d321398_OrdersListBulkActionExtensionProps as OrdersListBulkActionExtensionProps };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @pageName DraftOrderPage
|
|
121
|
+
* @slotType dashboard menu plugin
|
|
122
|
+
*/
|
|
123
|
+
type OrderSummaryParams = DraftOrderManageFeesActionParams;
|
|
124
|
+
/** @internal */
|
|
125
|
+
type DraftOrderManageFeesActionParams = {
|
|
126
|
+
draftOrderId: string;
|
|
127
|
+
onDraftOrderUpdate(): Promise<void>;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
type _8454e8a0568443319d4aE4873467553a_DraftOrderManageFeesActionParams = DraftOrderManageFeesActionParams;
|
|
131
|
+
type _8454e8a0568443319d4aE4873467553a_OrderSummaryParams = OrderSummaryParams;
|
|
132
|
+
declare namespace _8454e8a0568443319d4aE4873467553a {
|
|
133
|
+
export type { _8454e8a0568443319d4aE4873467553a_DraftOrderManageFeesActionParams as DraftOrderManageFeesActionParams, _8454e8a0568443319d4aE4873467553a_OrderSummaryParams as OrderSummaryParams };
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @pageName OrderDetails
|
|
138
|
+
* @slotType dashboard plugin
|
|
139
|
+
*/
|
|
140
|
+
type OrderRightPanelParams = OrderDetailsSecondaryCardProps;
|
|
141
|
+
/** @internal */
|
|
142
|
+
type OrderDetailsSecondaryCardProps = {
|
|
143
|
+
orderId: string;
|
|
144
|
+
onOrderUpdate(): Promise<void>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
type _3b96985eA459497294c363f038a73af2_OrderDetailsSecondaryCardProps = OrderDetailsSecondaryCardProps;
|
|
148
|
+
type _3b96985eA459497294c363f038a73af2_OrderRightPanelParams = OrderRightPanelParams;
|
|
149
|
+
declare namespace _3b96985eA459497294c363f038a73af2 {
|
|
150
|
+
export type { _3b96985eA459497294c363f038a73af2_OrderDetailsSecondaryCardProps as OrderDetailsSecondaryCardProps, _3b96985eA459497294c363f038a73af2_OrderRightPanelParams as OrderRightPanelParams };
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare namespace dashboardPagesPluginProps {
|
|
154
|
+
export { _8454e8a0568443319d4aE4873467553a as DraftOrderPage, f2526550194f4c1392989a6b8abda62f as EditOrder, _3b96985eA459497294c363f038a73af2 as OrderDetails, _8107f05fD6464c81Be90Adf28d321398 as Orders };
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare namespace dashboard {
|
|
158
|
+
export { dashboardPageBuilders as pages, dashboardPagesPluginProps as plugins };
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export { dashboard as d, dashboardPageBuilders as pages, dashboardPagesPluginProps as plugins };
|
package/build/cjs/dashboard.js
CHANGED
|
@@ -1,29 +1,110 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
24
17
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// dashboard.ts
|
|
21
|
+
var dashboard_exports = {};
|
|
22
|
+
__export(dashboard_exports, {
|
|
23
|
+
pages: () => dashboard_page_builders_exports,
|
|
24
|
+
plugins: () => dashboard_pages_plugin_props_exports
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(dashboard_exports);
|
|
27
|
+
|
|
28
|
+
// src/extensions/dashboard-page-builders.ts
|
|
29
|
+
var dashboard_page_builders_exports = {};
|
|
30
|
+
__export(dashboard_page_builders_exports, {
|
|
31
|
+
deliveryProfile: () => deliveryProfile,
|
|
32
|
+
deliveryProfiles: () => deliveryProfiles,
|
|
33
|
+
editDraftOrder: () => editDraftOrder,
|
|
34
|
+
editOrder: () => editOrder,
|
|
35
|
+
newOrder: () => newOrder,
|
|
36
|
+
orderDetails: () => orderDetails,
|
|
37
|
+
orderList: () => orderList,
|
|
38
|
+
orderRefund: () => orderRefund
|
|
39
|
+
});
|
|
40
|
+
function editOrder(options) {
|
|
41
|
+
const { orderId } = options;
|
|
42
|
+
return {
|
|
43
|
+
pageId: "f2526550-194f-4c13-9298-9a6b8abda62f",
|
|
44
|
+
relativeUrl: `${orderId}`
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function orderRefund(options) {
|
|
48
|
+
const { orderId } = options;
|
|
49
|
+
return {
|
|
50
|
+
pageId: "c4898867-69a5-4e05-92b7-c276f9424641",
|
|
51
|
+
relativeUrl: `${orderId}`
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function deliveryProfiles() {
|
|
55
|
+
return { pageId: "841919b4-9e96-43f4-87ea-fa382bc9d0e8" };
|
|
56
|
+
}
|
|
57
|
+
function deliveryProfile(options) {
|
|
58
|
+
const { deliveryProfileId } = options;
|
|
59
|
+
return {
|
|
60
|
+
pageId: "841919b4-9e96-43f4-87ea-fa382bc9d0e8",
|
|
61
|
+
relativeUrl: `${deliveryProfileId}`
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function orderList() {
|
|
65
|
+
return { pageId: "8107f05f-d646-4c81-be90-adf28d321398" };
|
|
66
|
+
}
|
|
67
|
+
function newOrder() {
|
|
68
|
+
return { pageId: "8454e8a0-5684-4331-9d4a-e4873467553a" };
|
|
69
|
+
}
|
|
70
|
+
function editDraftOrder(options) {
|
|
71
|
+
const { draftOrderId } = options;
|
|
72
|
+
return {
|
|
73
|
+
pageId: "8454e8a0-5684-4331-9d4a-e4873467553a",
|
|
74
|
+
relativeUrl: `${draftOrderId}`
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function orderDetails(options) {
|
|
78
|
+
const { id } = options;
|
|
79
|
+
return {
|
|
80
|
+
pageId: "3b96985e-a459-4972-94c3-63f038a73af2",
|
|
81
|
+
relativeUrl: `${id}`
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// src/extensions/dashboard-pages-plugin-props.ts
|
|
86
|
+
var dashboard_pages_plugin_props_exports = {};
|
|
87
|
+
__export(dashboard_pages_plugin_props_exports, {
|
|
88
|
+
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
89
|
+
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
90
|
+
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
91
|
+
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
95
|
+
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
96
|
+
|
|
97
|
+
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
98
|
+
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
99
|
+
|
|
100
|
+
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
101
|
+
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
102
|
+
|
|
103
|
+
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
104
|
+
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
105
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
106
|
+
0 && (module.exports = {
|
|
107
|
+
pages,
|
|
108
|
+
plugins
|
|
109
|
+
});
|
|
29
110
|
//# sourceMappingURL=dashboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../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/3b96985e-a459-4972-94c3-63f038a73af2.ts"],"sourcesContent":["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\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 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 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;AAAA;;;ACAA;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;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;;;ACpHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;","names":[]}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { d as dashboard } from './dashboard.js';
|
package/build/cjs/index.js
CHANGED
|
@@ -1,28 +1,115 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
24
17
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
dashboard: () => dashboard_exports
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
|
|
27
|
+
// dashboard.ts
|
|
28
|
+
var dashboard_exports = {};
|
|
29
|
+
__export(dashboard_exports, {
|
|
30
|
+
pages: () => dashboard_page_builders_exports,
|
|
31
|
+
plugins: () => dashboard_pages_plugin_props_exports
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// src/extensions/dashboard-page-builders.ts
|
|
35
|
+
var dashboard_page_builders_exports = {};
|
|
36
|
+
__export(dashboard_page_builders_exports, {
|
|
37
|
+
deliveryProfile: () => deliveryProfile,
|
|
38
|
+
deliveryProfiles: () => deliveryProfiles,
|
|
39
|
+
editDraftOrder: () => editDraftOrder,
|
|
40
|
+
editOrder: () => editOrder,
|
|
41
|
+
newOrder: () => newOrder,
|
|
42
|
+
orderDetails: () => orderDetails,
|
|
43
|
+
orderList: () => orderList,
|
|
44
|
+
orderRefund: () => orderRefund
|
|
45
|
+
});
|
|
46
|
+
function editOrder(options) {
|
|
47
|
+
const { orderId } = options;
|
|
48
|
+
return {
|
|
49
|
+
pageId: "f2526550-194f-4c13-9298-9a6b8abda62f",
|
|
50
|
+
relativeUrl: `${orderId}`
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function orderRefund(options) {
|
|
54
|
+
const { orderId } = options;
|
|
55
|
+
return {
|
|
56
|
+
pageId: "c4898867-69a5-4e05-92b7-c276f9424641",
|
|
57
|
+
relativeUrl: `${orderId}`
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function deliveryProfiles() {
|
|
61
|
+
return { pageId: "841919b4-9e96-43f4-87ea-fa382bc9d0e8" };
|
|
62
|
+
}
|
|
63
|
+
function deliveryProfile(options) {
|
|
64
|
+
const { deliveryProfileId } = options;
|
|
65
|
+
return {
|
|
66
|
+
pageId: "841919b4-9e96-43f4-87ea-fa382bc9d0e8",
|
|
67
|
+
relativeUrl: `${deliveryProfileId}`
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function orderList() {
|
|
71
|
+
return { pageId: "8107f05f-d646-4c81-be90-adf28d321398" };
|
|
72
|
+
}
|
|
73
|
+
function newOrder() {
|
|
74
|
+
return { pageId: "8454e8a0-5684-4331-9d4a-e4873467553a" };
|
|
75
|
+
}
|
|
76
|
+
function editDraftOrder(options) {
|
|
77
|
+
const { draftOrderId } = options;
|
|
78
|
+
return {
|
|
79
|
+
pageId: "8454e8a0-5684-4331-9d4a-e4873467553a",
|
|
80
|
+
relativeUrl: `${draftOrderId}`
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function orderDetails(options) {
|
|
84
|
+
const { id } = options;
|
|
85
|
+
return {
|
|
86
|
+
pageId: "3b96985e-a459-4972-94c3-63f038a73af2",
|
|
87
|
+
relativeUrl: `${id}`
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// src/extensions/dashboard-pages-plugin-props.ts
|
|
92
|
+
var dashboard_pages_plugin_props_exports = {};
|
|
93
|
+
__export(dashboard_pages_plugin_props_exports, {
|
|
94
|
+
DraftOrderPage: () => e8a0_5684_4331_9d4a_e4873467553a_exports,
|
|
95
|
+
EditOrder: () => f2526550_194f_4c13_9298_9a6b8abda62f_exports,
|
|
96
|
+
OrderDetails: () => b96985e_a459_4972_94c3_63f038a73af2_exports,
|
|
97
|
+
Orders: () => f05f_d646_4c81_be90_adf28d321398_exports
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// src/extensions/dashboard-page-plugins/f2526550-194f-4c13-9298-9a6b8abda62f.ts
|
|
101
|
+
var f2526550_194f_4c13_9298_9a6b8abda62f_exports = {};
|
|
102
|
+
|
|
103
|
+
// src/extensions/dashboard-page-plugins/8107f05f-d646-4c81-be90-adf28d321398.ts
|
|
104
|
+
var f05f_d646_4c81_be90_adf28d321398_exports = {};
|
|
105
|
+
|
|
106
|
+
// src/extensions/dashboard-page-plugins/8454e8a0-5684-4331-9d4a-e4873467553a.ts
|
|
107
|
+
var e8a0_5684_4331_9d4a_e4873467553a_exports = {};
|
|
108
|
+
|
|
109
|
+
// src/extensions/dashboard-page-plugins/3b96985e-a459-4972-94c3-63f038a73af2.ts
|
|
110
|
+
var b96985e_a459_4972_94c3_63f038a73af2_exports = {};
|
|
111
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
112
|
+
0 && (module.exports = {
|
|
113
|
+
dashboard
|
|
114
|
+
});
|
|
28
115
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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/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\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 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 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;AASO,SAAS,UAAU,SAA8C;AACtE,QAAM,EAAE,QAAQ,IAAI;AAEpB,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,aAAa,GAAG,OAAO;AAAA,EACzB;AACF;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;;;ACpHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;;;ACAA;;;ACAA;","names":[]}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
interface orderRefundOptions {
|
|
11
|
+
/** ID of the order to refund. */
|
|
12
|
+
orderId: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 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.
|
|
16
|
+
* @dashobardPageBuilder
|
|
17
|
+
*/
|
|
18
|
+
declare function orderRefund(options: orderRefundOptions): PageBuilderResult;
|
|
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 Delivery Profiles page in the dashboard.
|
|
21
|
+
* @dashobardPageBuilder
|
|
22
|
+
*/
|
|
23
|
+
declare function deliveryProfiles(): PageBuilderResult;
|
|
24
|
+
interface deliveryProfileOptions {
|
|
25
|
+
/** Delivery profile to manage */
|
|
26
|
+
deliveryProfileId: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 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.
|
|
30
|
+
* @dashobardPageBuilder
|
|
31
|
+
*/
|
|
32
|
+
declare function deliveryProfile(options: deliveryProfileOptions): PageBuilderResult;
|
|
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 Order List page in the dashboard.
|
|
35
|
+
* @dashobardPageBuilder
|
|
36
|
+
*/
|
|
37
|
+
declare function orderList(): 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 New Order page in the dashboard.
|
|
40
|
+
* @dashobardPageBuilder
|
|
41
|
+
*/
|
|
42
|
+
declare function newOrder(): PageBuilderResult;
|
|
43
|
+
interface editDraftOrderOptions {
|
|
44
|
+
/** Draft order id */
|
|
45
|
+
draftOrderId: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
* @dashobardPageBuilder
|
|
50
|
+
*/
|
|
51
|
+
declare function editDraftOrder(options: editDraftOrderOptions): PageBuilderResult;
|
|
52
|
+
interface orderDetailsOptions {
|
|
53
|
+
/** The order Id to display */
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 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.
|
|
58
|
+
* @dashobardPageBuilder
|
|
59
|
+
*/
|
|
60
|
+
declare function orderDetails(options: orderDetailsOptions): PageBuilderResult;
|
|
61
|
+
interface PageBuilderResult {
|
|
62
|
+
pageId: string;
|
|
63
|
+
relativeUrl?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type dashboardPageBuilders_PageBuilderResult = PageBuilderResult;
|
|
67
|
+
declare const dashboardPageBuilders_deliveryProfile: typeof deliveryProfile;
|
|
68
|
+
type dashboardPageBuilders_deliveryProfileOptions = deliveryProfileOptions;
|
|
69
|
+
declare const dashboardPageBuilders_deliveryProfiles: typeof deliveryProfiles;
|
|
70
|
+
declare const dashboardPageBuilders_editDraftOrder: typeof editDraftOrder;
|
|
71
|
+
type dashboardPageBuilders_editDraftOrderOptions = editDraftOrderOptions;
|
|
72
|
+
declare const dashboardPageBuilders_editOrder: typeof editOrder;
|
|
73
|
+
type dashboardPageBuilders_editOrderOptions = editOrderOptions;
|
|
74
|
+
declare const dashboardPageBuilders_newOrder: typeof newOrder;
|
|
75
|
+
declare const dashboardPageBuilders_orderDetails: typeof orderDetails;
|
|
76
|
+
type dashboardPageBuilders_orderDetailsOptions = orderDetailsOptions;
|
|
77
|
+
declare const dashboardPageBuilders_orderList: typeof orderList;
|
|
78
|
+
declare const dashboardPageBuilders_orderRefund: typeof orderRefund;
|
|
79
|
+
type dashboardPageBuilders_orderRefundOptions = orderRefundOptions;
|
|
80
|
+
declare namespace dashboardPageBuilders {
|
|
81
|
+
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 };
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @pageName EditOrder
|
|
86
|
+
* @slotType dashboard menu plugin
|
|
87
|
+
*/
|
|
88
|
+
type OrderSummaryParams$1 = DraftOrderManageFeesActionParams$1;
|
|
89
|
+
/** @internal */
|
|
90
|
+
type DraftOrderManageFeesActionParams$1 = {
|
|
91
|
+
draftOrderId: string;
|
|
92
|
+
onDraftOrderUpdate(): Promise<void>;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare namespace f2526550194f4c1392989a6b8abda62f {
|
|
96
|
+
export type { DraftOrderManageFeesActionParams$1 as DraftOrderManageFeesActionParams, OrderSummaryParams$1 as OrderSummaryParams };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @pageName Orders
|
|
101
|
+
* @slotType dashboard menu plugin
|
|
102
|
+
*/
|
|
103
|
+
type OrderItemsBulkMoreActionsMenuParams = OrdersListBulkActionExtensionProps;
|
|
104
|
+
/** @internal */
|
|
105
|
+
type OrdersListBulkActionExtensionProps = {
|
|
106
|
+
selectedIds: string[];
|
|
107
|
+
uncheckedIds: string[];
|
|
108
|
+
isSelectAll: boolean;
|
|
109
|
+
total: number;
|
|
110
|
+
onSuccess(): Promise<void>;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
type _8107f05fD6464c81Be90Adf28d321398_OrderItemsBulkMoreActionsMenuParams = OrderItemsBulkMoreActionsMenuParams;
|
|
114
|
+
type _8107f05fD6464c81Be90Adf28d321398_OrdersListBulkActionExtensionProps = OrdersListBulkActionExtensionProps;
|
|
115
|
+
declare namespace _8107f05fD6464c81Be90Adf28d321398 {
|
|
116
|
+
export type { _8107f05fD6464c81Be90Adf28d321398_OrderItemsBulkMoreActionsMenuParams as OrderItemsBulkMoreActionsMenuParams, _8107f05fD6464c81Be90Adf28d321398_OrdersListBulkActionExtensionProps as OrdersListBulkActionExtensionProps };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @pageName DraftOrderPage
|
|
121
|
+
* @slotType dashboard menu plugin
|
|
122
|
+
*/
|
|
123
|
+
type OrderSummaryParams = DraftOrderManageFeesActionParams;
|
|
124
|
+
/** @internal */
|
|
125
|
+
type DraftOrderManageFeesActionParams = {
|
|
126
|
+
draftOrderId: string;
|
|
127
|
+
onDraftOrderUpdate(): Promise<void>;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
type _8454e8a0568443319d4aE4873467553a_DraftOrderManageFeesActionParams = DraftOrderManageFeesActionParams;
|
|
131
|
+
type _8454e8a0568443319d4aE4873467553a_OrderSummaryParams = OrderSummaryParams;
|
|
132
|
+
declare namespace _8454e8a0568443319d4aE4873467553a {
|
|
133
|
+
export type { _8454e8a0568443319d4aE4873467553a_DraftOrderManageFeesActionParams as DraftOrderManageFeesActionParams, _8454e8a0568443319d4aE4873467553a_OrderSummaryParams as OrderSummaryParams };
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @pageName OrderDetails
|
|
138
|
+
* @slotType dashboard plugin
|
|
139
|
+
*/
|
|
140
|
+
type OrderRightPanelParams = OrderDetailsSecondaryCardProps;
|
|
141
|
+
/** @internal */
|
|
142
|
+
type OrderDetailsSecondaryCardProps = {
|
|
143
|
+
orderId: string;
|
|
144
|
+
onOrderUpdate(): Promise<void>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
type _3b96985eA459497294c363f038a73af2_OrderDetailsSecondaryCardProps = OrderDetailsSecondaryCardProps;
|
|
148
|
+
type _3b96985eA459497294c363f038a73af2_OrderRightPanelParams = OrderRightPanelParams;
|
|
149
|
+
declare namespace _3b96985eA459497294c363f038a73af2 {
|
|
150
|
+
export type { _3b96985eA459497294c363f038a73af2_OrderDetailsSecondaryCardProps as OrderDetailsSecondaryCardProps, _3b96985eA459497294c363f038a73af2_OrderRightPanelParams as OrderRightPanelParams };
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare namespace dashboardPagesPluginProps {
|
|
154
|
+
export { _8454e8a0568443319d4aE4873467553a as DraftOrderPage, f2526550194f4c1392989a6b8abda62f as EditOrder, _3b96985eA459497294c363f038a73af2 as OrderDetails, _8107f05fD6464c81Be90Adf28d321398 as Orders };
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare namespace dashboard {
|
|
158
|
+
export { dashboardPageBuilders as pages, dashboardPagesPluginProps as plugins };
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export { dashboard as d, dashboardPageBuilders as pages, dashboardPagesPluginProps as plugins };
|