@raytio/types 8.0.0 → 8.2.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.
@@ -61,6 +61,7 @@ export type Subscription = CommonFields<SId> & {
61
61
  billing_cycle_hour: number | null;
62
62
  billing_cycle_minute: number | null;
63
63
  billing_cycle_second: number | null;
64
+ subscription_timezone_offset_minutes: number | null;
64
65
  subscription_name: string;
65
66
  subscription_name_i18n: string | null;
66
67
  current_billing_period_start: string;
package/src/tenant.ts ADDED
@@ -0,0 +1,7 @@
1
+ import type { CommonFields, TNTId } from "./raytio";
2
+
3
+ export type Tenant = CommonFields<TNTId> & {
4
+ tenant_name: string;
5
+ tenant_description: string | null;
6
+ tenant_domain_prefix: string | null;
7
+ };
package/src/theme.ts CHANGED
@@ -22,6 +22,10 @@ export type Colors = {
22
22
  feelingHugged: string;
23
23
  silverShell: string;
24
24
  blank: string;
25
+ altColoursBgLight: string;
26
+ altColoursBgMedium: string;
27
+ elevatedSurface: string;
28
+ fillNeutral: string;
25
29
  };
26
30
 
27
31
  export type CustomFonts = { header?: string; body?: string };
@@ -2,6 +2,7 @@ import type {
2
2
  CommonFields,
3
3
  GPMId,
4
4
  Json,
5
+ MId,
5
6
  NId,
6
7
  ProfileObject,
7
8
  SchemaName,
@@ -51,13 +52,14 @@ export type VerificationPayload<WithValue extends boolean> = {
51
52
  source_n_id?: NId;
52
53
  /** like `source_n_id` */
53
54
  source_hashed_n_id?: NId;
55
+ hashed_source_n_id?: NId;
54
56
  type?: null;
55
57
  v_id: string;
56
58
  verification_type_id: GPMId;
57
59
  verification_date: string;
58
- verifier_id?: NId;
59
- verifier_source_id?: NId;
60
- verifier_service_id?: NId;
60
+ verifier_id?: MId;
61
+ verifier_source_id?: MId;
62
+ verifier_service_id?: MId;
61
63
  verifier_div: string;
62
64
  // we are disabling the eslint rule because even tho `{}` acts illogically in typescript,
63
65
  // in this case it's working as expected in the intersection type, see
@@ -122,11 +124,11 @@ export enum POVerification {
122
124
  Loading,
123
125
  }
124
126
 
125
- /** These `n_id`s point to service provider profile objects */
127
+ /** These IDs point to merchants (formerly service provider profile objects) */
126
128
  export type VerificationProvider = {
127
- verifierNId?: NId;
128
- dataSourceNId?: NId;
129
- serviceProviderNId?: NId;
129
+ verifierNId?: MId;
130
+ dataSourceNId?: MId;
131
+ serviceProviderNId?: MId;
130
132
  verificationTypeId?: GPMId;
131
133
  /** the date which the verification was verified on, or last re-verified on */
132
134
  date?: Date;
package/src/wizard.ts CHANGED
@@ -11,20 +11,55 @@ export type WizardPage = {
11
11
  filter: "oneOf" | "anyOf";
12
12
  schemas: SchemaName[];
13
13
 
14
+ /**
15
+ * Page type: 'form' for data collection, 'message' for info/error display
16
+ * @default "form"
17
+ */
18
+ page_type?: "form" | "message";
19
+
20
+ /**
21
+ * Content to display on message pages. Supports markdown if page_content_decorator is "md"
22
+ */
23
+ page_content?: string;
24
+
25
+ /**
26
+ * Set to "md" to render page_content as markdown
27
+ */
28
+ page_content_decorator?: "md";
29
+
30
+ /**
31
+ * If true, user cannot proceed past this page (error/blocking behavior)
32
+ * If false, user can continue to next page (informational)
33
+ * @default false
34
+ */
35
+ is_terminal?: boolean;
36
+
37
+ /**
38
+ * Label for the exit button on terminal pages
39
+ * @default "Home"
40
+ */
41
+ terminal_button_label?: string;
42
+
43
+ /**
44
+ * URL to redirect to when exit button is clicked on terminal pages
45
+ * @default "/" or return_to from WizardConfig
46
+ */
47
+ terminal_button_url?: string;
48
+
14
49
  /** the fallback description, if there isn't one for the specific situation */
15
50
  description?: string;
16
51
  description_select?: string;
17
52
  description_create?: string;
18
53
  description_update?: string;
19
54
 
20
- /** if explictly == false, then it's an AO (not a PO), in which case there can only be one schema */
55
+ /** @deprecated - AO/PO classification is now done per-object using schema tags (type:application_object) instead of page-level profile property */
21
56
  profile?: boolean;
22
57
  /** if true this page can be skipped. The PageResult wil be undefined */
23
58
  optional?: boolean;
24
59
  /** if true mulitple POs can be shared */
25
60
  multiple?: boolean;
26
61
  /** see #463 */
27
- service_provider_link?: boolean;
62
+ merchant_link?: boolean;
28
63
  /** custom text to display on the Create New button */
29
64
  create_new_text?: string;
30
65
  /** a URL to a preset for configuing NestedSchemaSelect. {@link DeepConfig} */
@@ -138,6 +173,13 @@ export type WizardConfig = {
138
173
  */
139
174
  quick_onboard?: boolean;
140
175
 
176
+ /**
177
+ * If true, users must explicitly accept privacy terms during quick onboard.
178
+ * If false, the form auto-submits without user intervention.
179
+ * @default true
180
+ */
181
+ quick_onboard_require_consent?: boolean;
182
+
141
183
  /** the loading message to show next to the spinner after the review screen */
142
184
  sharing_data_message?: string;
143
185