@rippling/pebble-sdui-mobile 0.19.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalogs/custom-apps/action-params.d.ts +4 -6
- package/dist/catalogs/custom-apps/actions.d.ts +2 -2
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-props.d.ts +5 -4
- package/dist/catalogs/custom-apps/index.cjs +7 -7
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +3 -3
- package/dist/catalogs/custom-apps/index.js +2849 -2836
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +13 -17
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +0 -21
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +12 -10
- package/package.json +1 -1
|
@@ -193,32 +193,28 @@ on: {
|
|
|
193
193
|
}
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
##
|
|
196
|
+
## triggerFunction
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
Invoke a Rippling Function by API name.
|
|
199
199
|
|
|
200
|
-
`
|
|
201
|
-
`
|
|
202
|
-
`
|
|
203
|
-
`
|
|
204
|
-
`errorPath` (optional): on failure, stores `{ status, message }`; a later success clears it to `null`.
|
|
205
|
-
`onSuccess` / `onError` (optional): action lifecycle configuration matching the web SDUI helper.
|
|
200
|
+
`functionApiName` (required): API name of the Function to invoke.
|
|
201
|
+
`inputs` (required): function inputs. Must include an `action` string; additional keys are sent to the Function.
|
|
202
|
+
`responsePath` (optional): state path where the Function response body is stored.
|
|
203
|
+
`onSuccess` / `onError` (optional): action lifecycle configuration.
|
|
206
204
|
|
|
207
|
-
Catalog key: `
|
|
208
|
-
Creator: `
|
|
209
|
-
Params type: `
|
|
205
|
+
Catalog key: `triggerFunction`
|
|
206
|
+
Creator: `triggerFunction`
|
|
207
|
+
Params type: `TriggerFunctionParams`
|
|
210
208
|
|
|
211
209
|
### Params
|
|
212
210
|
|
|
213
211
|
| Name | Required | Type | Description |
|
|
214
212
|
|---|---:|---|---|
|
|
215
|
-
| `
|
|
216
|
-
| `
|
|
213
|
+
| `functionApiName` | yes | string | API name of the Rippling Function to invoke. |
|
|
214
|
+
| `inputs` | yes | [Input](./types.md#input) | Function inputs. Must include an action string. |
|
|
217
215
|
| `onError` | no | unknown | Action lifecycle configuration run after a failed call. |
|
|
218
216
|
| `onSuccess` | no | unknown | Action lifecycle configuration run after a successful call. |
|
|
219
|
-
| `
|
|
220
|
-
| `responsePath` | no | string | State path where the successful response body is stored. |
|
|
221
|
-
| `url` | yes | string | Relative Rippling API path. Absolute and protocol-relative URLs are not allowed. |
|
|
217
|
+
| `responsePath` | no | string | State path where the function response body is stored. |
|
|
222
218
|
|
|
223
219
|
No additional properties.
|
|
224
220
|
|
|
@@ -226,6 +222,6 @@ No additional properties.
|
|
|
226
222
|
|
|
227
223
|
```ts
|
|
228
224
|
on: {
|
|
229
|
-
press:
|
|
225
|
+
press: triggerFunction({ ... })
|
|
230
226
|
}
|
|
231
227
|
```
|
|
@@ -3805,27 +3805,6 @@ Referenced by:
|
|
|
3805
3805
|
|---|---|---|
|
|
3806
3806
|
| component | `Time` | `format` |
|
|
3807
3807
|
|
|
3808
|
-
## triggerApiMethod
|
|
3809
|
-
|
|
3810
|
-
TypeScript type:
|
|
3811
|
-
|
|
3812
|
-
```ts
|
|
3813
|
-
"GET" | "POST"
|
|
3814
|
-
```
|
|
3815
|
-
|
|
3816
|
-
Allowed values:
|
|
3817
|
-
|
|
3818
|
-
| Value |
|
|
3819
|
-
|---|
|
|
3820
|
-
| `GET` |
|
|
3821
|
-
| `POST` |
|
|
3822
|
-
|
|
3823
|
-
Referenced by:
|
|
3824
|
-
|
|
3825
|
-
| Kind | Entity | Field |
|
|
3826
|
-
|---|---|---|
|
|
3827
|
-
| action | `triggerApi` | `method` |
|
|
3828
|
-
|
|
3829
3808
|
## WidgetContentShimmerTemplate
|
|
3830
3809
|
|
|
3831
3810
|
TypeScript type:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# custom-apps Catalog
|
|
3
3
|
|
|
4
4
|
Catalog: `custom-apps`
|
|
5
|
-
Version: `
|
|
5
|
+
Version: `2.0.0`
|
|
6
6
|
SDK language: `typescript`
|
|
7
7
|
|
|
8
8
|
Use this catalog index after you have chosen this catalog for the spec. Do not mix components, actions, computed functions, or render helpers from another catalog unless that catalog explicitly documents compatibility.
|
|
@@ -782,6 +782,18 @@ Image style overrides — token keys only, e.g. { width: "size400", height: "siz
|
|
|
782
782
|
|
|
783
783
|
No additional properties.
|
|
784
784
|
|
|
785
|
+
## Input
|
|
786
|
+
|
|
787
|
+
Function inputs. Must include an action string.
|
|
788
|
+
|
|
789
|
+
### Fields
|
|
790
|
+
|
|
791
|
+
| Name | Required | Type | Description |
|
|
792
|
+
|---|---:|---|---|
|
|
793
|
+
| `action` | yes | string | |
|
|
794
|
+
|
|
795
|
+
Additional properties: unknown.
|
|
796
|
+
|
|
785
797
|
## InputTextArg
|
|
786
798
|
|
|
787
799
|
### Fields
|
|
@@ -1118,16 +1130,6 @@ Additional properties: unknown.
|
|
|
1118
1130
|
|
|
1119
1131
|
No additional properties.
|
|
1120
1132
|
|
|
1121
|
-
## Payload
|
|
1122
|
-
|
|
1123
|
-
POST body or GET query parameters. Defaults to an empty object for POST.
|
|
1124
|
-
|
|
1125
|
-
### Fields
|
|
1126
|
-
|
|
1127
|
-
_No fields._
|
|
1128
|
-
|
|
1129
|
-
Additional properties: unknown.
|
|
1130
|
-
|
|
1131
1133
|
## PercentageArg
|
|
1132
1134
|
|
|
1133
1135
|
### Fields
|