@anker-in/ui 0.3.0 → 0.3.1
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/demo-room.js +15 -4
- package/dist/demo-room.js.map +1 -1
- package/dist/demo-room.mjs +15 -4
- package/dist/demo-room.mjs.map +1 -1
- package/dist/index.d.mts +22 -8
- package/dist/index.d.ts +22 -8
- package/dist/index.js +104 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/demo-room.mjs
CHANGED
|
@@ -1471,12 +1471,23 @@ var DemoRoomApiClient = class {
|
|
|
1471
1471
|
return response.booking;
|
|
1472
1472
|
}
|
|
1473
1473
|
/**
|
|
1474
|
-
* 查询 POD
|
|
1475
|
-
*
|
|
1474
|
+
* 查询 POD 作品信息
|
|
1475
|
+
* 模式1(优先):通过 booking_token 精确查询
|
|
1476
|
+
* 模式2:通过 demoroom_code + session_id 查询(MIR 跳回时预约尚未创建的场景)
|
|
1477
|
+
* @param params 查询参数
|
|
1476
1478
|
*/
|
|
1477
|
-
async getBookingDesign(
|
|
1479
|
+
async getBookingDesign(params) {
|
|
1478
1480
|
const searchParams = new URLSearchParams();
|
|
1479
|
-
|
|
1481
|
+
if (params.booking_token) {
|
|
1482
|
+
searchParams.append("booking_token", params.booking_token);
|
|
1483
|
+
} else {
|
|
1484
|
+
if (params.demoroom_code) {
|
|
1485
|
+
searchParams.append("demoroom_code", params.demoroom_code);
|
|
1486
|
+
}
|
|
1487
|
+
if (params.session_id) {
|
|
1488
|
+
searchParams.append("session_id", params.session_id);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1480
1491
|
return this.request(
|
|
1481
1492
|
`/api/v1/store/bookings/design?${searchParams.toString()}`
|
|
1482
1493
|
);
|