fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.74k stars 5.72k forks source link

Spaceship::Tunes.client.user_details_data does not return contentProvider data anymore #26994

Closed ismailakbudak closed 1 month ago

ismailakbudak commented 1 month ago

New Issue Checklist

Issue Description

When we try to fetch user_details_data Spaceship::Tunes.client.user_details_data it does not return data structure that is described here. There should be a roles in each availableProvider but it is missing now.

{
  "user" => {
    "fullName" => "xx",
    "firstName" => "xx",
    "lastName" => "xx",
    "emailAddress" => "xx@xx.com",
    "prsId" => "xxx"
  },
  "provider" => {
    "providerId" => 1000,
    "publicProviderId" => "xx",
    "name" => "xx",
    "contentTypes" => ["SOFTWARE"],
    "subType" => "COMPANY",
    "pla" => []
  },
  "theme" => "APPSTORE_CONNECT",
  "availableProviders" => [
    { "providerId" => 1000, "publicProviderId" => "xxx", "name" => "xx1", "contentTypes" => ["SOFTWARE"], "subType" => "COMPANY" },
    { "providerId" => 10001, "publicProviderId" => "xxy", "name" => "xx2", "contentTypes" => ["SOFTWARE"], "subType" => "COMPANY" },
  ],
  "backingType" => "ITC",
  "backingTypes" => ["ITC"],
  "roles" => ["SALES", "APP_MANAGER", "CUSTOMER_SUPPORT", "CIPS"],
  "unverifiedRoles" => [],
  "featureFlags" => ["showWwdrUserRoles", "adpRad", "apiKeys"],
  "agreeToTerms" => true,
  "termsSignatures" => ["ASC", "RAD"],
  "modules" => [
    { "key" => "AppAnalytics", "name" => "ITC.HomePage.AppAnalytics.IconText", "localizedName" => "App Analytics", "url" => "https://appstoreconnect.apple.com/analytics", "iconUrl" => "https://appstoreconnect.apple.com/static/img/ico_homepage/themed/apps/AppAnalytics@2x.1706919251275.png", "down" => false, "visible" => true, "hasNotifications" => false },
    { "key" => "Account", "name" => "ITC.HomePage.Account.IconText", "localizedName" => "Users and Access", "url" => "https://appstoreconnect.apple.com/access/users", "iconUrl" => "https://appstoreconnect.apple.com/static/img/ico_homepage/themed/apps/ManageUsers@2x.81511f3933fb2fb4b20d.png", "down" => false, "visible" => true, "hasNotifications" => false }
  ],
  "helpLinks" => [
    { "key" => "AllAsc", "url" => "https://developer.apple.com/help/app-store-connect", "localizedText" => "App Store Connect Resources" },
    { "key" => "Xcode", "url" => "https://developer.apple.com/documentation/xcode", "localizedText" => "Xcode Help" },
    { "key" => "DeveloperAccount", "url" => "https://developer.apple.com/help/account/", "localizedText" => "Developer Account Help" },
    { "key" => "SupportContact", "url" => "https://developer.apple.com/support/", "localizedText" => "Support and Contact" }
  ],
  "userProfile" => [
    { "key" => "signIn", "url" => "https://appstoreconnect.apple.com/login", "localizedText" => "Sign In" },
    { "key" => "personalDetails", "url" => "https://appstoreconnect.apple.com/access/users/null/settings", "localizedText" => "Edit Profile" },
    { "key" => "signOut", "url" => "https://appstoreconnect.apple.com/logout", "localizedText" => "Sign Out" }
  ],
  "publicUserId" => "xx",
  "ofacState" => "CLEARED",
  "creationDate" => 1596044810000
}
Command executed
ENV['FASTLANE_USER'] = 'xx@xx.com'
ENV['FASTLANE_SESSION'] = 'session_data'

Spaceship::Portal.login
Spaceship::Tunes.login

Spaceship::Tunes.client.user_details_data
Complete output when running fastlane, including the stack trace and command used
 [REPLACE THIS WITH YOUR INFORMATION] 

Environment

 [REPLACE THIS WITH YOUR INFORMATION] 
ismailakbudak commented 1 month ago

We are using Spaceship::Portal.client.teams fyi