Skip to content

v1\UserApi::getUsers fails because of Nova #302

Description

@iamntz

Recent changes on your end started to throw this error:

Invalid value 'nova' for 'app', must be one of 'global', 'sales', 'campaigns', 'projects', 'account_settings', 'partnership'

This is due to v1\UserAccess missing nova:

    const APP_PARTNERSHIP = 'partnership';
+   const APP_NOVA = 'nova';

    /**
     * Gets allowable values of the enum
     *
     * @phpstan-return  array<string|int>
     * @phpsalm-return  array<string|int>
     * @return (string|int)[]
     */
    public function getAppAllowableValues(): array
    {
        return [
            self::APP__GLOBAL,
            self::APP_SALES,
            self::APP_CAMPAIGNS,
            self::APP_PROJECTS,
            self::APP_ACCOUNT_SETTINGS,
            self::APP_PARTNERSHIP,
+           self::APP_NOVA,
        ];
    }

Also: v2\UserApi doesn't have any built in method to retrieve all users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions