feat(exc): complete monitoring details
This commit is contained in:
+38
-20
@@ -50,7 +50,7 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example active
|
* @example all
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
state?: "active" | "archived" | "trashed" | "all" | null;
|
state?: "active" | "archived" | "trashed" | "all" | null;
|
||||||
@@ -346,7 +346,7 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example public
|
* @example group_only
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
visibility?: "public" | "group_only" | null;
|
visibility?: "public" | "group_only" | null;
|
||||||
@@ -539,7 +539,7 @@ export interface paths {
|
|||||||
*/
|
*/
|
||||||
language_code?: string;
|
language_code?: string;
|
||||||
/**
|
/**
|
||||||
* @example draft
|
* @example published
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
*/
|
*/
|
||||||
status?: "draft" | "awaiting_publish" | "published";
|
status?: "draft" | "awaiting_publish" | "published";
|
||||||
@@ -4371,11 +4371,11 @@ export interface paths {
|
|||||||
/** @example architecto */
|
/** @example architecto */
|
||||||
status?: string | null;
|
status?: string | null;
|
||||||
/**
|
/**
|
||||||
* @example instant_accept
|
* @example quote
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
dispatch_mode?: "instant_accept" | "quote" | "scheduled_booking" | "manual_selection" | null;
|
dispatch_mode?: "instant_accept" | "quote" | "scheduled_booking" | "manual_selection" | null;
|
||||||
/** @example architecto */
|
/** @example null */
|
||||||
user_uid?: string | null;
|
user_uid?: string | null;
|
||||||
/**
|
/**
|
||||||
* @description Must not be greater than 100 characters.
|
* @description Must not be greater than 100 characters.
|
||||||
@@ -4567,6 +4567,12 @@ export interface paths {
|
|||||||
/** @example 广州 */
|
/** @example 广州 */
|
||||||
city?: string;
|
city?: string;
|
||||||
};
|
};
|
||||||
|
/** @example 23.1291 */
|
||||||
|
lat?: number;
|
||||||
|
/** @example 113.2644 */
|
||||||
|
lng?: number;
|
||||||
|
/** @example 90 */
|
||||||
|
duration?: number;
|
||||||
/** @example null */
|
/** @example null */
|
||||||
quote_deadline?: string;
|
quote_deadline?: string;
|
||||||
/** @example [] */
|
/** @example [] */
|
||||||
@@ -4685,13 +4691,13 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example ignored
|
* @example rejected
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
status?: "sent" | "delivered" | "viewed" | "accepted" | "rejected" | "ignored" | "expired" | "taken_by_other" | null;
|
status?: "sent" | "delivered" | "viewed" | "accepted" | "rejected" | "ignored" | "expired" | "taken_by_other" | null;
|
||||||
/** @example 16 */
|
/** @example 16 */
|
||||||
demand_id?: number | null;
|
demand_id?: number | null;
|
||||||
/** @example architecto */
|
/** @example null */
|
||||||
provider_uid?: string | null;
|
provider_uid?: string | null;
|
||||||
/**
|
/**
|
||||||
* @description Must be at least 0.
|
* @description Must be at least 0.
|
||||||
@@ -4879,7 +4885,7 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example created
|
* @example fulfilled
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
status?: "created" | "confirmed" | "started" | "consumed" | "paid" | "fulfilled" | "canceled" | null;
|
status?: "created" | "confirmed" | "started" | "consumed" | "paid" | "fulfilled" | "canceled" | null;
|
||||||
@@ -4888,18 +4894,18 @@ export interface paths {
|
|||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
payment_status?: "UNPAID" | "PAID" | null;
|
payment_status?: "UNPAID" | "PAID" | null;
|
||||||
/** @example architecto */
|
/** @example null */
|
||||||
buyer_uid?: string | null;
|
buyer_uid?: string | null;
|
||||||
/** @example architecto */
|
/** @example null */
|
||||||
provider_uid?: string | null;
|
provider_uid?: string | null;
|
||||||
/**
|
/**
|
||||||
* @description Must be at least 1.
|
* @description Must be at least 1.
|
||||||
* @example 22
|
* @example 16
|
||||||
*/
|
*/
|
||||||
page?: number | null;
|
page?: number | null;
|
||||||
/**
|
/**
|
||||||
* @description Must be at least 1. Must not be greater than 100.
|
* @description Must be at least 1. Must not be greater than 100.
|
||||||
* @example 7
|
* @example 22
|
||||||
*/
|
*/
|
||||||
page_size?: number | null;
|
page_size?: number | null;
|
||||||
};
|
};
|
||||||
@@ -5085,6 +5091,12 @@ export interface paths {
|
|||||||
id?: number;
|
id?: number;
|
||||||
/** @example paid */
|
/** @example paid */
|
||||||
status?: string;
|
status?: string;
|
||||||
|
/** @example PAY202607110001 */
|
||||||
|
pay_order_no?: string;
|
||||||
|
/** @example STRIPE */
|
||||||
|
paid_channel?: string;
|
||||||
|
/** @example null */
|
||||||
|
cancellation_fee_due_date?: string;
|
||||||
/** @example [] */
|
/** @example [] */
|
||||||
items?: unknown[];
|
items?: unknown[];
|
||||||
/** @example [] */
|
/** @example [] */
|
||||||
@@ -5167,9 +5179,9 @@ export interface paths {
|
|||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
status?: "offline" | "online" | "inactive" | "busy" | null;
|
status?: "offline" | "online" | "inactive" | "busy" | null;
|
||||||
/** @example false */
|
/** @example true */
|
||||||
is_disabled?: boolean | null;
|
is_disabled?: boolean | null;
|
||||||
/** @example false */
|
/** @example true */
|
||||||
is_verified?: boolean | null;
|
is_verified?: boolean | null;
|
||||||
/**
|
/**
|
||||||
* @description Must be at least 1.
|
* @description Must be at least 1.
|
||||||
@@ -5337,6 +5349,12 @@ export interface paths {
|
|||||||
};
|
};
|
||||||
/** @example online */
|
/** @example online */
|
||||||
status?: string;
|
status?: string;
|
||||||
|
/** @example 23.1291 */
|
||||||
|
last_lat?: number;
|
||||||
|
/** @example 113.2644 */
|
||||||
|
last_lng?: number;
|
||||||
|
/** @example 12.5 */
|
||||||
|
location_accuracy_m?: number;
|
||||||
dispatch_setting?: {
|
dispatch_setting?: {
|
||||||
/** @example true */
|
/** @example true */
|
||||||
auto_grab_enabled?: boolean;
|
auto_grab_enabled?: boolean;
|
||||||
@@ -5453,7 +5471,7 @@ export interface paths {
|
|||||||
*/
|
*/
|
||||||
visibility?: "public" | "friends" | "private" | null;
|
visibility?: "public" | "friends" | "private" | null;
|
||||||
/**
|
/**
|
||||||
* @example all
|
* @example visible
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
status?: "blocked" | "visible" | "all" | null;
|
status?: "blocked" | "visible" | "all" | null;
|
||||||
@@ -5779,7 +5797,7 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example blocked
|
* @example all
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
status?: "pending" | "blocked" | "all" | null;
|
status?: "pending" | "blocked" | "all" | null;
|
||||||
@@ -7666,7 +7684,7 @@ export interface paths {
|
|||||||
q?: string | null;
|
q?: string | null;
|
||||||
/** @example true */
|
/** @example true */
|
||||||
status?: boolean | null;
|
status?: boolean | null;
|
||||||
/** @example true */
|
/** @example false */
|
||||||
is_robot?: boolean | null;
|
is_robot?: boolean | null;
|
||||||
/**
|
/**
|
||||||
* @description Must not be greater than 100 characters.
|
* @description Must not be greater than 100 characters.
|
||||||
@@ -9744,7 +9762,7 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example blocked
|
* @example pending
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
status?: "pending" | "blocked" | "all" | null;
|
status?: "pending" | "blocked" | "all" | null;
|
||||||
@@ -10107,11 +10125,11 @@ export interface paths {
|
|||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
/**
|
/**
|
||||||
* @example web
|
* @example android
|
||||||
* @enum {string|null}
|
* @enum {string|null}
|
||||||
*/
|
*/
|
||||||
platform?: "ios" | "android" | "web" | "desktop" | null;
|
platform?: "ios" | "android" | "web" | "desktop" | null;
|
||||||
/** @example false */
|
/** @example true */
|
||||||
is_online?: boolean | null;
|
is_online?: boolean | null;
|
||||||
/**
|
/**
|
||||||
* @description Must be at least 1.
|
* @description Must be at least 1.
|
||||||
|
|||||||
@@ -598,6 +598,9 @@ export interface ExcDemand {
|
|||||||
summary?: string | null
|
summary?: string | null
|
||||||
content?: string | null
|
content?: string | null
|
||||||
address?: unknown
|
address?: unknown
|
||||||
|
lat?: number | null
|
||||||
|
lng?: number | null
|
||||||
|
duration?: number | null
|
||||||
quote_deadline?: string | null
|
quote_deadline?: string | null
|
||||||
related_services?: Array<{ id: number; title?: string | null; category_name?: string | null }>
|
related_services?: Array<{ id: number; title?: string | null; category_name?: string | null }>
|
||||||
quotes?: Array<{
|
quotes?: Array<{
|
||||||
@@ -685,6 +688,7 @@ export interface ExcOrder {
|
|||||||
buyer_remarks?: string | null
|
buyer_remarks?: string | null
|
||||||
pay_order_no?: string | null
|
pay_order_no?: string | null
|
||||||
paid_channel?: string | null
|
paid_channel?: string | null
|
||||||
|
cancellation_fee_due_date?: string | null
|
||||||
items?: Array<{
|
items?: Array<{
|
||||||
id: number
|
id: number
|
||||||
name?: string | null
|
name?: string | null
|
||||||
@@ -722,6 +726,9 @@ export interface ExcProvider {
|
|||||||
current_service_order_id?: number | null
|
current_service_order_id?: number | null
|
||||||
created_at?: string
|
created_at?: string
|
||||||
// detail-only
|
// detail-only
|
||||||
|
last_lat?: number | null
|
||||||
|
last_lng?: number | null
|
||||||
|
location_accuracy_m?: number | null
|
||||||
dispatch_setting?: {
|
dispatch_setting?: {
|
||||||
auto_grab_enabled?: boolean
|
auto_grab_enabled?: boolean
|
||||||
service_whitelist?: string[]
|
service_whitelist?: string[]
|
||||||
|
|||||||
@@ -157,6 +157,9 @@ function ExcDemandsPage() {
|
|||||||
{ label: '报价截止', value: formatTime(demand?.quote_deadline) },
|
{ label: '报价截止', value: formatTime(demand?.quote_deadline) },
|
||||||
{ label: '需求时间', value: formatTime(demand?.required_at) },
|
{ label: '需求时间', value: formatTime(demand?.required_at) },
|
||||||
{ label: '匹配时间', value: formatTime(demand?.matched_at) },
|
{ label: '匹配时间', value: formatTime(demand?.matched_at) },
|
||||||
|
{ label: '纬度', value: demand?.lat ?? '—' },
|
||||||
|
{ label: '经度', value: demand?.lng ?? '—' },
|
||||||
|
{ label: '时长(分钟)', value: demand?.duration ?? '—' },
|
||||||
]}
|
]}
|
||||||
jsonBlocks={[
|
jsonBlocks={[
|
||||||
{ label: '关联服务', value: demand?.related_services?.length ? demand.related_services : null },
|
{ label: '关联服务', value: demand?.related_services?.length ? demand.related_services : null },
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ function ExcOrdersPage() {
|
|||||||
{ label: '支付时间', value: formatTime(order?.paid_at) },
|
{ label: '支付时间', value: formatTime(order?.paid_at) },
|
||||||
{ label: '结算时间', value: formatTime(order?.settled_at) },
|
{ label: '结算时间', value: formatTime(order?.settled_at) },
|
||||||
{ label: '放款时间', value: formatTime(order?.escrow_released_at) },
|
{ label: '放款时间', value: formatTime(order?.escrow_released_at) },
|
||||||
|
{ label: '取消费截止', value: formatTime(order?.cancellation_fee_due_date) },
|
||||||
{ label: '买家备注', value: order?.buyer_remarks ?? '—' },
|
{ label: '买家备注', value: order?.buyer_remarks ?? '—' },
|
||||||
]}
|
]}
|
||||||
jsonBlocks={[
|
jsonBlocks={[
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ function ExcProvidersPage() {
|
|||||||
{ label: '上线时间', value: formatTime(provider?.online_at) },
|
{ label: '上线时间', value: formatTime(provider?.online_at) },
|
||||||
{ label: '离线时间', value: formatTime(provider?.offline_at) },
|
{ label: '离线时间', value: formatTime(provider?.offline_at) },
|
||||||
{ label: '最近定位', value: formatTime(provider?.last_location_at) },
|
{ label: '最近定位', value: formatTime(provider?.last_location_at) },
|
||||||
|
{ label: '纬度', value: provider?.last_lat ?? '—' },
|
||||||
|
{ label: '经度', value: provider?.last_lng ?? '—' },
|
||||||
|
{ label: '定位精度(米)', value: provider?.location_accuracy_m ?? '—' },
|
||||||
]}
|
]}
|
||||||
jsonBlocks={[
|
jsonBlocks={[
|
||||||
{ label: '派单设置', value: provider?.dispatch_setting ?? null },
|
{ label: '派单设置', value: provider?.dispatch_setting ?? null },
|
||||||
|
|||||||
Reference in New Issue
Block a user