@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.
@@ -1,4 +1,4 @@
1
- import { NavigateParamsParam, Payload, PushParamsParam } from './component-props';
1
+ import { Input, NavigateParamsParam, PushParamsParam } from './component-props';
2
2
  export interface CopyToClipboardParams {
3
3
  text: string;
4
4
  }
@@ -23,12 +23,10 @@ export interface SetStateParams {
23
23
  statePath: string;
24
24
  value: unknown;
25
25
  }
26
- export interface TriggerApiParams {
27
- errorPath?: string;
28
- method?: 'GET' | 'POST';
26
+ export interface TriggerFunctionParams {
27
+ functionApiName: string;
28
+ inputs: Input;
29
29
  onError?: unknown;
30
30
  onSuccess?: unknown;
31
- payload?: Payload;
32
31
  responsePath?: string;
33
- url: string;
34
32
  }
@@ -1,6 +1,6 @@
1
1
  import { ActionBinding, ActionOptions } from '../../core/action-utils';
2
2
  import { WrapWithActionParamValue } from '../../core/expressions';
3
- import { CopyToClipboardParams, GoBackParams, Linking_openURLParams, NavigateParams, OpenChatAssistantWithMessageParams, PushParams, SetStateParams, TriggerApiParams } from './action-params';
3
+ import { CopyToClipboardParams, GoBackParams, Linking_openURLParams, NavigateParams, OpenChatAssistantWithMessageParams, PushParams, SetStateParams, TriggerFunctionParams } from './action-params';
4
4
  export declare const copyToClipboard: (params: WrapWithActionParamValue<CopyToClipboardParams>, options?: ActionOptions) => ActionBinding;
5
5
  export declare const goBack: (params: WrapWithActionParamValue<GoBackParams>, options?: ActionOptions) => ActionBinding;
6
6
  export declare const linking_openURL: (params: WrapWithActionParamValue<Linking_openURLParams>, options?: ActionOptions) => ActionBinding;
@@ -8,4 +8,4 @@ export declare const navigate: (params: WrapWithActionParamValue<NavigateParams>
8
8
  export declare const openChatAssistantWithMessage: (params: WrapWithActionParamValue<OpenChatAssistantWithMessageParams>, options?: ActionOptions) => ActionBinding;
9
9
  export declare const push: (params: WrapWithActionParamValue<PushParams>, options?: ActionOptions) => ActionBinding;
10
10
  export declare const setState: (params: WrapWithActionParamValue<SetStateParams>, options?: ActionOptions) => ActionBinding;
11
- export declare const triggerApi: (params: WrapWithActionParamValue<TriggerApiParams>, options?: ActionOptions) => ActionBinding;
11
+ export declare const triggerFunction: (params: WrapWithActionParamValue<TriggerFunctionParams>, options?: ActionOptions) => ActionBinding;
@@ -7,7 +7,7 @@
7
7
  * action definitions, directive definitions, and spec validation.
8
8
  */
9
9
  export declare const CATALOG_NAME = "custom-apps";
10
- export declare const CATALOG_VERSION = "1.12.0";
10
+ export declare const CATALOG_VERSION = "2.0.0";
11
11
  /** Return component descriptions keyed by component name. */
12
12
  export declare function getComponents(): Record<string, string>;
13
13
  /** Return action descriptions keyed by action name. */
@@ -532,6 +532,11 @@ export interface ImageStyle {
532
532
  width?: SizeValue | string;
533
533
  zIndex?: number;
534
534
  }
535
+ /** Function inputs. Must include an action string. */
536
+ export interface Input {
537
+ action: string;
538
+ [key: string]: unknown | string;
539
+ }
535
540
  export interface InputTextArg {
536
541
  [key: string]: unknown;
537
542
  }
@@ -667,10 +672,6 @@ export interface PasswordCheck {
667
672
  message: string;
668
673
  type: string;
669
674
  }
670
- /** POST body or GET query parameters. Defaults to an empty object for POST. */
671
- export interface Payload {
672
- [key: string]: unknown;
673
- }
674
675
  export interface PercentageArg {
675
676
  [key: string]: unknown;
676
677
  }