""" GraphQL queries for orchardLabelSearch and accountsxPP comparison. """ ORCHARD_LABEL_SEARCH_QUERY = """ query OrchardLabelSearch($term: String, $limit: Int) { orchardLabelSearch(term: $term, labelType: VENDOR, limit: $limit) { id { vendorId subaccountId } name uuid ... on Vendor { status labelIdentifier } } } """ ACCOUNTS_XPP_QUERY = """ query AccountsxPP($limit: Int!, $scope: AccountSearchScope!, $filter: AccountSearchFilter!) { accountsxPP(limit: $limit, scope: $scope, filter: $filter) { items { item { uuid name isDeleted ... on SubaccountSearchItem { subaccountId vendorUUID } ... on VendorSearchItem { vendorId vendorStatus vendorType } } score } } } """ ORCHARD_LABELS_QUERY = """ query OrchardLabels { orchardLabels(limit: 10, labelType: VENDOR) { id { vendorId subaccountId } name uuid ... on Vendor { status labelIdentifier } } } """