Giao diện
API · sale-view
Trang sinh tự động
Parse từ schema.graphql (SDL backend export) bằng parser graphql. Mô tả và quyền lấy nguyên văn từ description trong SDL.
6 query · 0 mutation.
Query
saleCustomers
The Sale's own attributed customers (masked). attribution.read (own).
query · SDL không ghi quyền
| Tham số | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
period | SalePeriodInput | ||
campaignId | ID | ||
state | String | ||
page | Int | ||
pageSize | Int |
Trả về SaleCustomerPage!
| Field | Kiểu | Mô tả |
|---|---|---|
items | [SaleCustomer!]! | |
page | Int! | |
pageSize | Int! | |
total | Int! | |
scope | SaleViewScope! | |
teamBasis | SaleTeamBasis | Null for OWN. |
period | SalePeriod |
saleOrders
The Sale's own attributed orders (buyer masked). attribution.read (own).
query · SDL không ghi quyền
| Tham số | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
period | SalePeriodInput | ||
campaignId | ID | ||
state | String | ||
campaignType | CampaignType | ||
page | Int | ||
pageSize | Int |
Trả về SaleOrderPage!
| Field | Kiểu | Mô tả |
|---|---|---|
items | [SaleOrder!]! | |
page | Int! | |
pageSize | Int! | |
total | Int! | |
scope | SaleViewScope! | |
teamBasis | SaleTeamBasis | |
period | SalePeriod |
salePerformance
The Sale's own period performance. attribution.read (own).
query · SDL không ghi quyền
| Tham số | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
period | SalePeriodInput! |
Trả về SalePerformance!
| Field | Kiểu | Mô tả |
|---|---|---|
scope | SaleViewScope! | |
teamBasis | SaleTeamBasis | HISTORICAL_SNAPSHOT for TEAM; null for OWN. |
period | SalePeriod! | |
valueBasis | SaleValueBasis! | |
baseBasis | String! | What qualifiedBaseVnd measures: the P4-13 base (V0 or one cycle). The headline value is grossValueVnd. |
sourceStatus | SaleSourceStatus! | |
incompleteReasons | [SaleIncompleteReason!]! | |
policyUndecided | [SaleUndecidedPolicy!]! | |
rows | [SalePerformanceRow!]! | |
grossTotalOrders | Int! | The period's gross total over the whole scope: the number of attributed orders created in the period (the count behind grossTotalValueVnd; the same cutoff as rows). |
grossTotalValueVnd | VndAmount! | The period's gross total over the whole scope: sum of grossValueVnd of every row (a quiet window is a true 0 only when sourceStatus is COMPLETE). |
updatedAt | DateTime! | Same cutoff for totals and lists. |
teamCustomers
Customers of the manager's teams. customer.read (TEAM; HISTORICAL_SNAPSHOT also report.read).
query · SDL không ghi quyền
| Tham số | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
teamId | ID | ||
basis | SaleTeamBasis | ||
period | SalePeriodInput | ||
campaignId | ID | ||
state | String | ||
page | Int | ||
pageSize | Int |
Trả về SaleCustomerPage!
| Field | Kiểu | Mô tả |
|---|---|---|
items | [SaleCustomer!]! | |
page | Int! | |
pageSize | Int! | |
total | Int! | |
scope | SaleViewScope! | |
teamBasis | SaleTeamBasis | Null for OWN. |
period | SalePeriod |
teamOrders
Orders of the manager's teams. order.read (TEAM; HISTORICAL_SNAPSHOT also report.read).
query · SDL không ghi quyền
| Tham số | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
teamId | ID | ||
basis | SaleTeamBasis | ||
period | SalePeriodInput | ||
campaignId | ID | ||
state | String | ||
page | Int | ||
pageSize | Int |
Trả về SaleOrderPage!
| Field | Kiểu | Mô tả |
|---|---|---|
items | [SaleOrder!]! | |
page | Int! | |
pageSize | Int! | |
total | Int! | |
scope | SaleViewScope! | |
teamBasis | SaleTeamBasis | |
period | SalePeriod |
teamPerformance
Period performance per team on the attribution-time team. report.read (TEAM, historical).
query · SDL không ghi quyền
| Tham số | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
teamId | ID | ||
period | SalePeriodInput! |
Trả về SalePerformance!
| Field | Kiểu | Mô tả |
|---|---|---|
scope | SaleViewScope! | |
teamBasis | SaleTeamBasis | HISTORICAL_SNAPSHOT for TEAM; null for OWN. |
period | SalePeriod! | |
valueBasis | SaleValueBasis! | |
baseBasis | String! | What qualifiedBaseVnd measures: the P4-13 base (V0 or one cycle). The headline value is grossValueVnd. |
sourceStatus | SaleSourceStatus! | |
incompleteReasons | [SaleIncompleteReason!]! | |
policyUndecided | [SaleUndecidedPolicy!]! | |
rows | [SalePerformanceRow!]! | |
grossTotalOrders | Int! | The period's gross total over the whole scope: the number of attributed orders created in the period (the count behind grossTotalValueVnd; the same cutoff as rows). |
grossTotalValueVnd | VndAmount! | The period's gross total over the whole scope: sum of grossValueVnd of every row (a quiet window is a true 0 only when sourceStatus is COMPLETE). |
updatedAt | DateTime! | Same cutoff for totals and lists. |