@pisell/pisellos 2.3.231 → 2.3.232

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.
@@ -644,7 +644,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
644
644
  generateIdempotencyToken(): string;
645
645
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
646
646
  createOrder(params: CommitOrderParams['query']): {
647
- type: "virtual" | "appointment_booking";
647
+ type: "appointment_booking" | "virtual";
648
648
  platform: string;
649
649
  sales_channel: string;
650
650
  order_sales_channel: string;
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "normal" | "duration" | "session";
52
+ getProductType(): "duration" | "normal" | "session";
53
53
  }
@@ -342,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
342
342
  date: string;
343
343
  status: string;
344
344
  week: string;
345
- weekNum: 0 | 1 | 2 | 6 | 4 | 5 | 3;
345
+ weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
346
346
  }[]>;
347
347
  submitTimeSlot(timeSlots: TimeSliceItem): void;
348
348
  private getScheduleDataByIds;
@@ -389,7 +389,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
389
389
  };
390
390
  setOtherData(key: string, value: any): void;
391
391
  getOtherData(key: string): any;
392
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
392
+ getProductTypeById(id: number): Promise<"duration" | "normal" | "session">;
393
393
  /**
394
394
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
395
395
  *
@@ -25,31 +25,28 @@ export declare function buildArrivalCheckoutQuery(order: OrderTempOrder, summary
25
25
  notes?: import("../../../modules/Order/types").SalesNote[] | undefined;
26
26
  summary?: import("../../../modules/Order/types").OrderSummary | undefined;
27
27
  small_ticket_data_flag?: number | undefined;
28
- type: string;
28
+ status: string;
29
29
  metadata: Record<string, any>;
30
+ business_code?: string | undefined;
31
+ customer_id: number | null;
32
+ type: string;
30
33
  holder: Record<string, any> | null;
34
+ email: string;
35
+ phone: string;
31
36
  note: string;
32
- status: string;
33
- bookings: any[];
34
- payments: any[];
35
- contacts_info: Record<string, any> | null;
36
- order_meta_list?: import("../../../modules/Order/types").OrderMetaList | undefined;
37
- refunds?: any[] | undefined;
37
+ relation_forms: any[];
38
38
  holder_relations?: import("../../../modules/Order/types").OrderHolderRelation[] | undefined;
39
+ country_calling_code: string;
40
+ contacts_info: Record<string, any> | null;
39
41
  order_id: number | null;
40
42
  external_sale_number: string;
41
43
  order_number: string | null;
42
44
  shop_order_number: string | null;
43
45
  shop_full_order_number: string | null;
44
- business_code?: string | undefined;
45
46
  sales_channel: string;
46
47
  order_sales_channel: string;
47
48
  shipping_status: string;
48
- customer_id: number | null;
49
49
  customer_name: string;
50
- country_calling_code: string;
51
- phone: string;
52
- email: string;
53
50
  is_price_include_tax: number;
54
51
  tax_title: string;
55
52
  tax_country_code: string;
@@ -64,8 +61,11 @@ export declare function buildArrivalCheckoutQuery(order: OrderTempOrder, summary
64
61
  delivery_type?: string | undefined;
65
62
  table_number?: Record<string, any> | undefined;
66
63
  schedule_date: string;
64
+ bookings: any[];
65
+ payments: any[];
66
+ order_meta_list?: import("../../../modules/Order/types").OrderMetaList | undefined;
67
+ refunds?: any[] | undefined;
67
68
  surcharges: any[];
68
- relation_forms: any[];
69
69
  contacts: any[];
70
70
  };
71
71
  export declare function describeChangedBookings(before: OrderTempOrder['bookings'], after: OrderTempOrder['bookings']): {
@@ -644,7 +644,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
644
644
  generateIdempotencyToken(): string;
645
645
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
646
646
  createOrder(params: CommitOrderParams['query']): {
647
- type: "virtual" | "appointment_booking";
647
+ type: "appointment_booking" | "virtual";
648
648
  platform: string;
649
649
  sales_channel: string;
650
650
  order_sales_channel: string;
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "normal" | "duration" | "session";
52
+ getProductType(): "duration" | "normal" | "session";
53
53
  }
@@ -342,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
342
342
  date: string;
343
343
  status: string;
344
344
  week: string;
345
- weekNum: 0 | 1 | 2 | 6 | 4 | 5 | 3;
345
+ weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
346
346
  }[]>;
347
347
  submitTimeSlot(timeSlots: TimeSliceItem): void;
348
348
  private getScheduleDataByIds;
@@ -389,7 +389,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
389
389
  };
390
390
  setOtherData(key: string, value: any): void;
391
391
  getOtherData(key: string): any;
392
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
392
+ getProductTypeById(id: number): Promise<"duration" | "normal" | "session">;
393
393
  /**
394
394
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
395
395
  *
@@ -25,31 +25,28 @@ export declare function buildArrivalCheckoutQuery(order: OrderTempOrder, summary
25
25
  notes?: import("../../../modules/Order/types").SalesNote[] | undefined;
26
26
  summary?: import("../../../modules/Order/types").OrderSummary | undefined;
27
27
  small_ticket_data_flag?: number | undefined;
28
- type: string;
28
+ status: string;
29
29
  metadata: Record<string, any>;
30
+ business_code?: string | undefined;
31
+ customer_id: number | null;
32
+ type: string;
30
33
  holder: Record<string, any> | null;
34
+ email: string;
35
+ phone: string;
31
36
  note: string;
32
- status: string;
33
- bookings: any[];
34
- payments: any[];
35
- contacts_info: Record<string, any> | null;
36
- order_meta_list?: import("../../../modules/Order/types").OrderMetaList | undefined;
37
- refunds?: any[] | undefined;
37
+ relation_forms: any[];
38
38
  holder_relations?: import("../../../modules/Order/types").OrderHolderRelation[] | undefined;
39
+ country_calling_code: string;
40
+ contacts_info: Record<string, any> | null;
39
41
  order_id: number | null;
40
42
  external_sale_number: string;
41
43
  order_number: string | null;
42
44
  shop_order_number: string | null;
43
45
  shop_full_order_number: string | null;
44
- business_code?: string | undefined;
45
46
  sales_channel: string;
46
47
  order_sales_channel: string;
47
48
  shipping_status: string;
48
- customer_id: number | null;
49
49
  customer_name: string;
50
- country_calling_code: string;
51
- phone: string;
52
- email: string;
53
50
  is_price_include_tax: number;
54
51
  tax_title: string;
55
52
  tax_country_code: string;
@@ -64,8 +61,11 @@ export declare function buildArrivalCheckoutQuery(order: OrderTempOrder, summary
64
61
  delivery_type?: string | undefined;
65
62
  table_number?: Record<string, any> | undefined;
66
63
  schedule_date: string;
64
+ bookings: any[];
65
+ payments: any[];
66
+ order_meta_list?: import("../../../modules/Order/types").OrderMetaList | undefined;
67
+ refunds?: any[] | undefined;
67
68
  surcharges: any[];
68
- relation_forms: any[];
69
69
  contacts: any[];
70
70
  };
71
71
  export declare function describeChangedBookings(before: OrderTempOrder['bookings'], after: OrderTempOrder['bookings']): {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.3.231",
4
+ "version": "2.3.232",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",