"""GraphQL Product queries.""" PRODUCT_BY_UPC = """ query productByUpc($upc: String!) { productByUpc(upc: $upc) { productId label { id { subaccountId vendorId } } project { projectId projectName labelParticipant{ name spotifyId appleMusicId } description projectCode marketingHighlights { marketingHighlight slogan territory { territoryCodeA2 } syncHighlight store { storeName storeId } } } upc deliveryLinks { store_id link store_name go_live_date } tracks { isrc lyrics ownershipRights recordingCountryId originalRightsHolderCountryId publishing { publisherNames usPublishingObligation } } deliveryHistory { dateDelivered, store { storeId } } videoProduct { associatedTrack { publishing { publisherNames usPublishingObligation } tuid isrc participations { participatedAs participant { name spotifyId appleMusicId } } } } } } """ GET_MARKETING_PROGRAM_INFO = """ query($productId: Int!, $programId: MarketingProgram!) { getProductMarketingProgramInfoByProgram( productId: $productId, programId: $programId ) { productId marketingProgramInfos { description } } } """ VENDOR_WITH_SONY_METADATA = """ query VendorWithSonyMetadata($vendorId: Int!) { vendor(vendorId: $vendorId) { vendorId name sonyFinancialMetadata { financialLabelCode financialLabelName grasImprintCode grasImprintName repertoireOwnerCode repertoireOwnerName sapProfitCenterCode sapProfitCenterName } } } """ SUBACCOUNT_WITH_SONY_METADATA = """ query SubaccountWithSonyMetadata($subaccountId: Int!) { subaccount(subaccountId: $subaccountId) { subaccountId name sonyFinancialMetadata { financialLabelCode financialLabelName grasImprintCode grasImprintName repertoireOwnerCode repertoireOwnerName sapProfitCenterCode sapProfitCenterName } } } """