@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.
@@ -193,32 +193,28 @@ on: {
193
193
  }
194
194
  ```
195
195
 
196
- ## triggerApi
196
+ ## triggerFunction
197
197
 
198
- Call a Rippling internal API endpoint and optionally store its response in SDUI state.
198
+ Invoke a Rippling Function by API name.
199
199
 
200
- `url` (required): relative Rippling path beginning with a single "/". Absolute and protocol-relative URLs are rejected.
201
- `method` (optional): "GET" or "POST"; defaults to "POST".
202
- `payload` (optional): query parameters for GET or the JSON body for POST.
203
- `responsePath` (optional): state path where the response body is stored.
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: `triggerApi`
208
- Creator: `triggerApi`
209
- Params type: `TriggerApiParams`
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
- | `errorPath` | no | string | State path where a structured { status, message } error is stored. |
216
- | `method` | no | [triggerApiMethod](./definitions.md#triggerapimethod) | HTTP method. Defaults to POST. |
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
- | `payload` | no | [Payload](./types.md#payload) | POST body or GET query parameters. Defaults to an empty object for POST. |
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: triggerApi({ ... })
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: `1.12.0`
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rippling/pebble-sdui-mobile",
3
- "version": "0.19.0",
3
+ "version": "1.0.0",
4
4
  "description": "Type-safe TypeScript mobile SDK for authoring json-render specs",
5
5
  "repository": {
6
6
  "type": "git",