@pisell/pisellos 0.0.34 → 0.0.36
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/dist/modules/Cart/types.d.ts +4 -0
- package/dist/modules/Cart/utils.js +3 -1
- package/dist/modules/Discount/types.d.ts +1 -0
- package/dist/modules/Product/index.d.ts +10 -0
- package/dist/modules/Product/index.js +13 -0
- package/dist/modules/Product/types.d.ts +4 -0
- package/dist/modules/Resource/types.d.ts +1 -0
- package/dist/modules/Schedule/index.d.ts +10 -0
- package/dist/modules/Schedule/index.js +56 -0
- package/dist/modules/Schedule/type.d.ts +157 -0
- package/dist/modules/Schedule/type.js +1 -0
- package/dist/modules/Schedule/types.d.ts +177 -0
- package/dist/modules/Schedule/types.js +1 -0
- package/dist/modules/Schedule/utils.d.ts +61 -0
- package/dist/modules/Schedule/utils.js +700 -0
- package/dist/modules/index.d.ts +9 -0
- package/dist/modules/index.js +10 -1
- package/dist/solution/BookingByStep/index.d.ts +14 -5
- package/dist/solution/BookingByStep/index.js +284 -163
- package/dist/solution/BookingByStep/types.d.ts +2 -10
- package/dist/solution/BookingByStep/types.js +1 -7
- package/dist/solution/BookingByStep/utils/resources.d.ts +45 -4
- package/dist/solution/BookingByStep/utils/resources.js +153 -32
- package/dist/solution/ShopDiscount/index.js +31 -22
- package/lib/modules/Cart/types.d.ts +4 -0
- package/lib/modules/Cart/utils.js +4 -1
- package/lib/modules/Discount/types.d.ts +1 -0
- package/lib/modules/Product/index.d.ts +10 -0
- package/lib/modules/Product/index.js +3 -0
- package/lib/modules/Product/types.d.ts +4 -0
- package/lib/modules/Resource/types.d.ts +1 -0
- package/lib/modules/Schedule/index.d.ts +10 -0
- package/lib/modules/Schedule/index.js +41 -0
- package/lib/modules/Schedule/type.d.ts +157 -0
- package/lib/modules/Schedule/type.js +17 -0
- package/lib/modules/Schedule/types.d.ts +177 -0
- package/lib/modules/Schedule/types.js +17 -0
- package/lib/modules/Schedule/utils.d.ts +61 -0
- package/lib/modules/Schedule/utils.js +572 -0
- package/lib/modules/index.d.ts +9 -0
- package/lib/modules/index.js +19 -1
- package/lib/solution/BookingByStep/index.d.ts +14 -5
- package/lib/solution/BookingByStep/index.js +84 -35
- package/lib/solution/BookingByStep/types.d.ts +2 -10
- package/lib/solution/BookingByStep/types.js +6 -12
- package/lib/solution/BookingByStep/utils/resources.d.ts +45 -4
- package/lib/solution/BookingByStep/utils/resources.js +101 -24
- package/lib/solution/ShopDiscount/index.js +13 -5
- package/package.json +1 -1
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
export * from './Product';
|
|
2
2
|
export * from './ProductList';
|
|
3
3
|
export * from './Cart';
|
|
4
|
+
export * from './Account';
|
|
5
|
+
export * from './AccountList';
|
|
6
|
+
export * from './Date';
|
|
7
|
+
export * from './Guests';
|
|
8
|
+
export * from './Order';
|
|
9
|
+
export * from './Payment';
|
|
10
|
+
export * from './Resource';
|
|
11
|
+
export * from './Step';
|
|
12
|
+
export * from './Summary';
|
package/dist/modules/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
export * from "./Product";
|
|
2
2
|
export * from "./ProductList";
|
|
3
|
-
export * from "./Cart";
|
|
3
|
+
export * from "./Cart";
|
|
4
|
+
export * from "./Account";
|
|
5
|
+
export * from "./AccountList";
|
|
6
|
+
export * from "./Date";
|
|
7
|
+
export * from "./Guests";
|
|
8
|
+
export * from "./Order";
|
|
9
|
+
export * from "./Payment";
|
|
10
|
+
export * from "./Resource";
|
|
11
|
+
export * from "./Step";
|
|
12
|
+
export * from "./Summary";
|
|
@@ -5,7 +5,7 @@ import { BookingByStepState } from "./types";
|
|
|
5
5
|
import { CartItem, IUpdateItemParams, ProductData } from "../../modules";
|
|
6
6
|
import { Account } from "../../modules/Account/types";
|
|
7
7
|
import { IStep } from "../../modules/Step/tyeps";
|
|
8
|
-
import { TimeSliceItem } from "./utils/resources";
|
|
8
|
+
import { TimeSliceItem, ResourceItem } from "./utils/resources";
|
|
9
9
|
import { ITime } from "../../modules/Date/types";
|
|
10
10
|
export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
11
11
|
protected defaultName: string;
|
|
@@ -27,10 +27,17 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
27
27
|
back(): void;
|
|
28
28
|
gotoStep(index: number): void;
|
|
29
29
|
getStepList(): IStep[];
|
|
30
|
-
loadProducts({ category_ids, product_ids, collection, }: {
|
|
30
|
+
loadProducts({ category_ids, product_ids, collection, schedule_ids }: {
|
|
31
31
|
category_ids?: number[];
|
|
32
32
|
product_ids?: number[];
|
|
33
33
|
collection?: number | string[];
|
|
34
|
+
schedule_ids?: number[];
|
|
35
|
+
}): Promise<any>;
|
|
36
|
+
loadAllSchedule(): Promise<void>;
|
|
37
|
+
loadAvailableDate({ startDate, endDate, custom_page_id }: {
|
|
38
|
+
startDate: string;
|
|
39
|
+
endDate: string;
|
|
40
|
+
custom_page_id?: number;
|
|
34
41
|
}): Promise<any>;
|
|
35
42
|
storeProduct(productData: ProductData): Promise<void>;
|
|
36
43
|
addAccount(accounts: Account[]): Promise<void>;
|
|
@@ -87,8 +94,8 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
87
94
|
id: number | undefined;
|
|
88
95
|
_id: string;
|
|
89
96
|
product: ProductData | undefined;
|
|
90
|
-
resources:
|
|
91
|
-
holder_id: string | number
|
|
97
|
+
resources: ResourceItem[];
|
|
98
|
+
holder_id: string | number;
|
|
92
99
|
holder_name: string | undefined;
|
|
93
100
|
} | undefined;
|
|
94
101
|
getResourceTimeSlot({ product, resources, currentResourceId, }: {
|
|
@@ -107,11 +114,12 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
107
114
|
timeSlots: any[];
|
|
108
115
|
selectedResource: any;
|
|
109
116
|
} | undefined;
|
|
110
|
-
autoSelectAccountResources({ holder_id, resources_code, timeSlots, countMap, }: {
|
|
117
|
+
autoSelectAccountResources({ holder_id, resources_code, timeSlots, countMap, capacity }: {
|
|
111
118
|
holder_id: string;
|
|
112
119
|
resources_code: string | number;
|
|
113
120
|
timeSlots?: TimeSliceItem;
|
|
114
121
|
countMap: Record<number, number>;
|
|
122
|
+
capacity?: number;
|
|
115
123
|
}): {
|
|
116
124
|
selectedResource: any;
|
|
117
125
|
timeSlots?: undefined;
|
|
@@ -126,4 +134,5 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
126
134
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
127
135
|
clearCache(): void;
|
|
128
136
|
clearCacheByModule(module: string): void;
|
|
137
|
+
openProductDetail(productId: number): Promise<void>;
|
|
129
138
|
}
|