Skip to content

Commit 25614ce

Browse files
authored
Merge pull request #91 from oneblink/ON-6263
ON-6263 # Added slug property to organisation and forms app
2 parents 7afeb1c + bca9a88 commit 25614ce

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
### Added
66

77
- Summary Element to Element types
8+
- `slug` property to Forms Apps
9+
- `slug` property to Organisations
810

911
# 0.5.0 (2020-05-14)
1012

docs/forms-apps.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Create a Forms App
4040
```javascript
4141
const formsApp = {
4242
name: 'My Application',
43-
hostname: 'customer-my.app.oneblink.io',
43+
slug: 'my',
4444
pwaSettings: {
4545
homeScreenName: 'App',
4646
splashScreenName: 'Application',
@@ -60,7 +60,7 @@ formsAppsSDK.createFormsApp(formsApp).then((savedFormsApp) => {
6060
| ---------------------------------------- | -------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
6161
| `formsApp` | Yes | `Object` | Forms App properties |
6262
| `formsApp.name` | Yes | `string` | Name of the forms app |
63-
| `formsApp.hostname` | Yes | `string` | Hostname (domain) for the forms app |
63+
| `formsApp.slug` | Yes | `string` | Unique domain safe text to identify the app |
6464
| `formsApp.organisationId` | Yes | `string` | The exact organisation identifier the forms app is associated with |
6565
| `formsApp.formsAppEnvironmentId` | Yes | `number` | The exact forms app environment identifier the forms app is associated with |
6666
| `formsApp.formIds` | Yes | `number[]` | The identifiers of the forms that are in the forms app. The order of the forms is respected when rendering the list of forms |
@@ -79,6 +79,7 @@ formsAppsSDK.createFormsApp(formsApp).then((savedFormsApp) => {
7979
"id": 1,
8080
"name": "My Application",
8181
"hostname": "customer-my.app.oneblink.io",
82+
"slug": "my",
8283
"oAuthClientId": "123456789012abcdefghijkl",
8384
"styles": {},
8485
"pwaSettings": {

docs/organisations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ organisations.getOrganisations(organisationId).then((organisation) => {
4949
"awsAccounts": ["ABCDEFG55678901HIJKL1234"]
5050
},
5151
"tags": ["Organisation Tag"],
52-
"formsHostname": "example.forms.oneblink.io",
52+
"assetsS3Bucket": "example.forms.oneblink.io",
53+
"slug": "example",
5354
"beeFormsCustomer": false
5455
}
5556
```

flow-typed/types.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ declare type Key = {
7676
declare type Organisation = {
7777
id: string,
7878
name: string,
79-
formsHostname: string,
79+
assetsS3Bucket: string,
80+
slug: string,
8081
formsCloudFrontDistributionOrigin?: string,
8182
beeFormsCustomer: boolean,
8283
createdAt: string,
@@ -117,6 +118,7 @@ declare type FormsAppStyles = {
117118
declare type FormsApp = {
118119
id: number,
119120
name: string,
121+
slug: string,
120122
hostname: string,
121123
oAuthClientId: ?string,
122124
createdAt: string,

tests/lib/forms.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe('Forms SDK Class', () => {
2929
id: 1,
3030
name: 'appname',
3131
hostname: 'orgname-appname.apps.oneblink.io',
32+
slug: 'appname',
3233
})
3334
}
3435
}

0 commit comments

Comments
 (0)