@swishapp/sdk 0.147.1-unstable.20260914155604 → 0.148.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.
@@ -4,7 +4,7 @@ import { IntentHandler } from "../intent-handler";
4
4
  import { IntentResponse, SuccessIntentResponse } from "../types";
5
5
  export declare const CreateSubscriptionIntentDataSchema: v.ObjectSchema<{
6
6
  readonly productId: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string>]>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<undefined>]>;
7
- readonly variantId: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string>]>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<undefined>]>;
7
+ readonly variantId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string>]>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<undefined>]>, undefined>;
8
8
  }, undefined>;
9
9
  export type CreateSubscriptionIntentData = v.InferInput<typeof CreateSubscriptionIntentDataSchema>;
10
10
  export type CreateSubscriptionSuccessResponse = SuccessIntentResponse<NotifyMeSubmitData>;
@@ -1020,6 +1020,13 @@ export declare const UiSchema: v.ObjectSchema<{
1020
1020
  readonly linkToProductPage: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1021
1021
  readonly showQuickBuyButton: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1022
1022
  }, undefined>, {}>;
1023
+ readonly notifyMe: v.OptionalSchema<v.ObjectSchema<{
1024
+ readonly flush: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1025
+ readonly tall: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1026
+ }, undefined>, {
1027
+ readonly flush: false;
1028
+ readonly tall: false;
1029
+ }>;
1023
1030
  readonly toasts: v.OptionalSchema<v.ObjectSchema<{
1024
1031
  readonly autoHideDuration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.IntegerAction<number, undefined>]>, 5000>;
1025
1032
  }, undefined>, {
@@ -122,7 +122,7 @@ export interface QuickBuySubmitData {
122
122
  }
123
123
  export interface NotifyMeOptions {
124
124
  productId: number;
125
- variantId: number;
125
+ variantId?: number;
126
126
  }
127
127
  /** The subscription the modal created, as the API returned it. */
128
128
  export interface NotifyMeSubmitData {
package/dist/swish.d.ts CHANGED
@@ -61,6 +61,10 @@ declare class SwishApp {
61
61
  linkToProductPage?: boolean | undefined;
62
62
  showQuickBuyButton?: boolean | undefined;
63
63
  };
64
+ notifyMe: {
65
+ flush: boolean;
66
+ tall: boolean;
67
+ };
64
68
  toasts: {
65
69
  autoHideDuration: number;
66
70
  };