-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
305 additions
and
116 deletions.
There are no files selected for viewing
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
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
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
2 changes: 2 additions & 0 deletions
2
languages/javascript/templates/imports/event-based-provider.mjs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import ProvideManager from '../ProvideManager/index.mjs' | ||
import { registerProviderInterface } from '../ProvideManager/index.mjs' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
import ProvideManager from '../ProvideManager/index.mjs' | ||
import { registerProviderInterface } from '../ProvideManager/index.mjs' | ||
import { registerProviderInterface } from '../Gateway/Server.mjs' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
registerProviderInterface('${capability}', '${info.title}', ${interface}) | ||
registerProviderInterface('${capability}', '${interface}', '${method.name}', ${method.params.array}, ${method.response}, ${method.focusable}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
${method.name}(${method.signature.params}, session: ProviderSession): Promise<${method.result.type}> | ||
${method.name}(${method.signature.params}): Promise<${method.result.type}> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
${method.name}(${method.signature.params}, session: FocusableProviderSession): Promise<${method.result.type}> | ||
${method.name}(${method.signature.params}): Promise<${method.result.type}> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function provide(capability, provider) { | ||
return ProvideManager.provide(capability, provider) | ||
} | ||
// function provide(capability, provider) { | ||
// return ProvideManager.provide(capability, provider) | ||
// } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
function ${method.name}(provider) { | ||
return Gateway.provide('${info.title}', provider) | ||
} |
8 changes: 0 additions & 8 deletions
8
languages/javascript/templates/sections/provider-interfaces.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
// Provider Interfaces | ||
|
||
interface ProviderSession { | ||
correlationId(): string // Returns the correlation id of the current provider session | ||
} | ||
|
||
interface FocusableProviderSession extends ProviderSession { | ||
focus(): Promise<void> // Requests that the provider app be moved into focus to prevent a user experience | ||
} | ||
|
||
${providers.list} |
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
Oops, something went wrong.