Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curvy-plants-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smartthings/core-sdk": major
---

Replace the /apps endpoints with the new /smartapps endpoints.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ dist

.DS_Store
.*.swp

scratch.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ and retry the original request.

### Endpoints

* apps -- A SmartApp can be an AWS lambda function or WebHook endpoint. Like to code interface [here](src/endpoint/apps.ts#L267), link to wiki page description [here](https://github.com/SmartThingsCommunity/smartthings-core-sdk/wiki/Apps)

* capabilities - Operations to read standard Capability definitions as well as create and modify custom Capabilities. Link to code interface [here](src/endpoint/capabilities.ts#L763), link to wiki page [here](https://github.com/SmartThingsCommunity/smartthings-core-sdk/wiki/Capabilities).

* deviceProfiles - A Device Profile contains the Components, Capabilities, and metadata (ID, name, ownership, etc.) that define a SmartThings Device. Link to code interface [here](src/endpoint/deviceprofiles.ts#L93), link to wiki page [here](https://github.com/SmartThingsCommunity/smartthings-core-sdk/wiki/Device-Profiles)
Expand Down Expand Up @@ -149,4 +147,6 @@ and retry the original request.

* services - Operations to query for and subscribe to location service data, currently consisting of current weather conditions, weather forecast, and air quality data. Link to code interface [here](src/endpoint/services.ts#L499), link to wiki page description [here](https://github.com/SmartThingsCommunity/smartthings-core-sdk/wiki/Services)

* smartapps -- A SmartApp can be an AWS lambda function or WebHook endpoint. Like to code interface [here](src/endpoint/smartapps.ts#L267), link to wiki page description [here](https://github.com/SmartThingsCommunity/smartthings-core-sdk/wiki/SmartApps)

* subscriptions - Operations for subscribing to events, for use in SmartApps and API Access apps. Link to code interface [here](src/endpoint/subscriptions.ts#L213), link to wiki page description [here](https://github.com/SmartThingsCommunity/smartthings-core-sdk/wiki/Subscriptions)
4 changes: 2 additions & 2 deletions src/endpoint/installedapps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Endpoint } from '../endpoint'
import { EndpointClient, EndpointClientConfig, HttpClientParams } from '../endpoint-client'
import { Count, Owner, PrincipalType, Status, SuccessStatusValue } from '../types'
import { Count, Owner, Status, SuccessStatusValue, ViewPrincipalType } from '../types'


export interface StringConfig {
Expand Down Expand Up @@ -183,7 +183,7 @@ export interface InstalledApp {
/**
* Denotes the principal type to be used with the app. Default is LOCATION.
*/
principalType: PrincipalType
principalType: ViewPrincipalType
/**
* Inform the installation systems that the associated app can only be
* installed once within a user's account.
Expand Down
Loading
Loading