This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Send a login request to the server to retrieve a JWT token. | |
* @param credentials | |
* @returns {{type: *, isFetching: boolean, isAuthenticated: boolean, credentials: *}} | |
*/ | |
function requestLogin() { | |
return { | |
type: LOGIN_REQUEST, | |
isFetching: true, | |
isAuthenticated: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Intents | |
class IntentHandler: INExtension, ConfigurationBuggyIntentHandling { | |
func provideDynamicmeOptionsCollection(for intent: ConfigurationBuggyIntent, with completion: @escaping (INObjectCollection<DynamicType>?, Error?) -> Swift.Void) { | |
let collection = INObjectCollection(items: [ | |
DynamicType(identifier: "123", display: "first"), | |
DynamicType(identifier: "124", display: "second"), | |
DynamicType(identifier: "125", display: "third"), | |
DynamicType(identifier: "126", display: "fourth"), | |
DynamicType(identifier: "127", display: "fifth"), |