@raytio/types 8.3.1 → 8.3.2

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/README.md CHANGED
@@ -70,6 +70,7 @@ Hovering over the type in VSCode will display documentation and available proper
70
70
  - [InstanceNodeKey](#instancenodekey)
71
71
  - [InstanceWithoutData](#instancewithoutdata)
72
72
  - [KId](#kid)
73
+ - [KanbanBoard](#kanbanboard)
73
74
  - [LId](#lid)
74
75
  - [LOCId](#locid)
75
76
  - [Link](#link)
@@ -346,7 +347,7 @@ not exported. Attributes that are identical in both client schema & server schem
346
347
  | :------ | :------ | :------ |
347
348
  | `description` | `string` | - |
348
349
  | `description_decorator?` | ``"md"`` | **`Deprecated`** Markdown is now rendered by default for all descriptions. This property is no longer needed. |
349
- | `display?` | { `compact_table?`: `boolean` ; `expand?`: { `fields`: `string`[] ; `label`: `string` }[] ; `filters?`: { `name`: `string` ; `operation`: ``"and"`` \| ``"or"`` ; `tokens`: { `operator`: `string` ; `propertyKey`: `string` ; `value`: `string` }[] }[] ; `head_main?`: { `fields`: `string`[] ; `format?`: `string` } ; `head_sub?`: { `fields`: `string`[] ; `format?`: `string` } ; `kanban?`: { `card_fields?`: `string`[] ; `column_field?`: `string` ; `title_field?`: `string` } ; `tabular?`: { `fields`: `string`[] } ; `views?`: { `columnPrefs?`: { `id`: `string` ; `visible`: `boolean` }[] ; `contentDensity?`: ``"comfortable"`` \| ``"compact"`` ; `filter?`: { `operation`: ``"and"`` \| ``"or"`` ; `tokens`: { `operator`: `string` ; `propertyKey`: `string` ; `value`: `string` }[] } ; `name`: `string` ; `pageSize?`: `number` ; `sorting?`: { `isDescending`: `boolean` ; `sortingColumn`: `string` } \| ``null`` ; `stickyColumns?`: { `first`: `number` ; `last`: `number` } ; `stripedRows?`: `boolean` ; `wrapLines?`: `boolean` }[] } | - |
350
+ | `display?` | { `compact_table?`: `boolean` ; `expand?`: { `fields`: `string`[] ; `label`: `string` }[] ; `filters?`: { `name`: `string` ; `operation`: ``"and"`` \| ``"or"`` ; `tokens`: { `operator`: `string` ; `propertyKey`: `string` ; `value`: `string` }[] }[] ; `head_main?`: { `fields`: `string`[] ; `format?`: `string` } ; `head_sub?`: { `fields`: `string`[] ; `format?`: `string` } ; `kanban?`: [`KanbanBoard`](#kanbanboard) \| [`KanbanBoard`](#kanbanboard)[] ; `tabular?`: { `fields`: `string`[] } ; `views?`: { `columnPrefs?`: { `id`: `string` ; `visible`: `boolean` }[] ; `contentDensity?`: ``"comfortable"`` \| ``"compact"`` ; `filter?`: { `operation`: ``"and"`` \| ``"or"`` ; `tokens`: { `operator`: `string` ; `propertyKey`: `string` ; `value`: `string` }[] } ; `name`: `string` ; `pageSize?`: `number` ; `sorting?`: { `isDescending`: `boolean` ; `sortingColumn`: `string` } \| ``null`` ; `stickyColumns?`: { `first`: `number` ; `last`: `number` } ; `stripedRows?`: `boolean` ; `wrapLines?`: `boolean` }[] } | - |
350
351
  | `display.compact_table?` | `boolean` | determines if profile pages should display using compacted 'MiniPO' view or deafult view |
351
352
  | `display.expand?` | { `fields`: `string`[] ; `label`: `string` }[] | list of fields that should not be shown by default, unless you expand a collpase section which has a name from the label property. Array because there could be multiple expand groups |
352
353
  | `display.filters?` | { `name`: `string` ; `operation`: ``"and"`` \| ``"or"`` ; `tokens`: { `operator`: `string` ; `propertyKey`: `string` ; `value`: `string` }[] }[] | Pre-defined filter presets provided by the schema author. These appear as "Default filters" in the admin table UI and cannot be deleted by users (unlike user-saved filters). Each token's `propertyKey` must match a key in `properties`. Valid operators: `=`, `!=`, `:`, `!:`, `>`, `<`, `>=`, `<=` |
@@ -356,10 +357,7 @@ not exported. Attributes that are identical in both client schema & server schem
356
357
  | `display.head_sub?` | { `fields`: `string`[] ; `format?`: `string` } | list of fields to be considered the subheader of the PO fields joined with a space unless `format` format string is supplied |
357
358
  | `display.head_sub.fields` | `string`[] | - |
358
359
  | `display.head_sub.format?` | `string` | - |
359
- | `display.kanban?` | { `card_fields?`: `string`[] ; `column_field?`: `string` ; `title_field?`: `string` } | Kanban board configuration for admin dashboard |
360
- | `display.kanban.card_fields?` | `string`[] | Additional fields displayed on each card |
361
- | `display.kanban.column_field?` | `string` | Field that determines which column a card belongs to |
362
- | `display.kanban.title_field?` | `string` | Field displayed as the card title |
360
+ | `display.kanban?` | [`KanbanBoard`](#kanbanboard) \| [`KanbanBoard`](#kanbanboard)[] | Kanban board configuration for the admin dashboard. Either a single board (legacy form) or an array of named boards. See packages/client/docs/layout-hierarchy-guide.md § Kanban Board Layout. |
363
361
  | `display.tabular?` | { `fields`: `string`[] } | By default, the admin dashboard shows columns for all fields in listed in `head_main`. In rare cases you can use this property to specify a different set of fields to show to admins by default. |
364
362
  | `display.tabular.fields` | `string`[] | - |
365
363
  | `display.views?` | { `columnPrefs?`: { `id`: `string` ; `visible`: `boolean` }[] ; `contentDensity?`: ``"comfortable"`` \| ``"compact"`` ; `filter?`: { `operation`: ``"and"`` \| ``"or"`` ; `tokens`: { `operator`: `string` ; `propertyKey`: `string` ; `value`: `string` }[] } ; `name`: `string` ; `pageSize?`: `number` ; `sorting?`: { `isDescending`: `boolean` ; `sortingColumn`: `string` } \| ``null`` ; `stickyColumns?`: { `first`: `number` ; `last`: `number` } ; `stripedRows?`: `boolean` ; `wrapLines?`: `boolean` }[] | Pre-defined view presets provided by the schema author. A view bundles filter, sorting, column visibility/order, and display settings (page size, density, etc.) into a named configuration. These appear as "Default views" in the admin table UI and cannot be deleted by users (unlike user-saved views). Every field except `name` is optional. When applied, fields the view does not specify leave the user's current preference untouched. This lets a schema author define partial views (e.g. just sorting + columns). |
@@ -578,6 +576,25 @@ A `k_id` (also called a `aack_id` or a `publicKeyId`) is the ID of an AA's publi
578
576
 
579
577
  ___
580
578
 
579
+ ### KanbanBoard
580
+
581
+ Ƭ **KanbanBoard**: `Object`
582
+
583
+ Configuration for a single named kanban board.
584
+
585
+ #### Type declaration
586
+
587
+ | Name | Type | Description |
588
+ | :------ | :------ | :------ |
589
+ | `card_fields?` | `string`[] | Additional fields displayed on each card. |
590
+ | `column_field?` | `string` | Field that determines which column a card belongs to. |
591
+ | `column_field_sort?` | ``"ascending"`` \| ``"descending"`` | Default ordering of the columns themselves, by their distinct `column_field` values. |
592
+ | `kanban_name?` | `string` | Human-readable board name shown in the board selector; should be unique within the schema. |
593
+ | `title_field?` | `string` | Field displayed as the card title. |
594
+ | `y_field?` | `string` | Name of a numeric record field used to order cards vertically within a column. Optional. See packages/client/docs/layout-hierarchy-guide.md § Kanban Board Layout. |
595
+
596
+ ___
597
+
581
598
  ### LId
582
599
 
583
600
  Ƭ **LId**: `StringWithIdentity`<``"LId"``\>
@@ -637,7 +654,7 @@ ___
637
654
  | `image_src?` | `string` | Icon source in format `icon:{AntDesignIconName}` (e.g., `icon:CameraOutlined`) |
638
655
  | `key` | `string` \| `number` | - |
639
656
  | `label?` | `string` \| `number` | Used in Antd Cascader |
640
- | `lookup_group?` | `string` | Group heading for dropdown lists (e.g., "APAC", "EMEA"). NULL = ungrouped. |
657
+ | `lookup_group?` | `string` | Group heading for dropdown lists (e.g., "APAC", "EMEA"). NULL = ungrouped. Translated client-side via the `lookup_group` entries in `fnd_i18n_entries` (see `LookupGroupLabel`). |
641
658
  | `requires_2FA?` | `boolean` | used in AkahuDynamicSection only |
642
659
  | `value` | `string` \| `number` | - |
643
660
 
@@ -994,7 +1011,7 @@ ___
994
1011
 
995
1012
  ### Schema
996
1013
 
997
- Ƭ **Schema**: [`CommonFields`](#commonfields)<`never`\> & [`CommonSchemaAttributes`](#commonschemaattributes) & { `clientLocale?`: `string` ; `conditionalTags?`: [`ConditionalTags`](#conditionaltags)[] ; `database?`: { `method?`: ``"POST"`` \| ``"PATCH"`` \| ``"DELETE"`` ; `path?`: `string` ; `primary_key`: `string` ; `query_parameters?`: `string` ; `return_to?`: [`SchemaName`](#schemaname) ; `select?`: `string` ; `table?`: `string` } ; `groupNames?`: `Record`<`string`, `string`\> ; `group_title?`: `string` ; `groups?`: { `order?`: `string`[] } ; `isProfileSchema?`: `boolean` ; `isSpSchema?`: `boolean` ; `name`: [`SchemaName`](#schemaname) ; `properties`: { `[fieldName: string]`: [`SchemaField`](#schemafield); } ; `required?`: (`string` \| [`ConditionallyRequired`](#conditionallyrequired))[] ; `timing?`: `Record`<``"extract"`` \| ``"live_person"`` \| ``"verify_pending_delay"``, `number`\> ; `type?`: [`DataTypes`](#datatypes) ; `verified_fields?`: (`string` \| [`ConditionallyRequired`](#conditionallyrequired))[] ; `version`: `string` ; `wasExpandedByClient?`: `boolean` }
1014
+ Ƭ **Schema**: [`CommonFields`](#commonfields)<`never`\> & [`CommonSchemaAttributes`](#commonschemaattributes) & { `clientLocale?`: `string` ; `conditionalTags?`: [`ConditionalTags`](#conditionaltags)[] ; `database?`: { `method?`: ``"POST"`` \| ``"PATCH"`` \| ``"DELETE"`` ; `path?`: `string` ; `primary_key`: `string` ; `query_parameters?`: `string` ; `return_to?`: [`SchemaName`](#schemaname) ; `select?`: `string` ; `table?`: `string` } ; `groupNames?`: `Record`<`string`, `string`\> ; `group_title?`: `string` ; `groups?`: { `order?`: `string`[] } ; `isProfileSchema?`: `boolean` ; `isSpSchema?`: `boolean` ; `merchant_id?`: [`MId`](#mid) ; `name`: [`SchemaName`](#schemaname) ; `properties`: { `[fieldName: string]`: [`SchemaField`](#schemafield); } ; `required?`: (`string` \| [`ConditionallyRequired`](#conditionallyrequired))[] ; `timing?`: `Record`<``"extract"`` \| ``"live_person"`` \| ``"verify_pending_delay"``, `number`\> ; `type?`: [`DataTypes`](#datatypes) ; `verified_fields?`: (`string` \| [`ConditionallyRequired`](#conditionallyrequired))[] ; `version`: `string` ; `wasExpandedByClient?`: `boolean` }
998
1015
 
999
1016
  Raytio's variant of JSON Schema, as used by the client. It is a modified version
1000
1017
  of what the API returns.
@@ -1351,6 +1368,7 @@ This is what's returned by the API
1351
1368
  | `end_date` | `string` | ISO Date. If this tag exists, the schema is deprecated. |
1352
1369
  | `extends_schema_name?` | [`SchemaName`](#schemaname) \| ``null`` | Base schema to extend (same tenant). NULL = not an extension. |
1353
1370
  | `extends_schema_version?` | `string` \| ``null`` | Pin to specific base schema version. NULL = use version_current. |
1371
+ | `merchant_id?` | [`MId`](#mid) | The merchant this schema belongs to. Always present for merchant-type (`ms`) schemas; absent for all other schema types. |
1354
1372
  | `resource_group?` | `string` | CommonFields row metadata — the polymorphic entity this schema maps to. |
1355
1373
  | `resource_name?` | `string` | - |
1356
1374
  | `schema` | [`CommonSchemaAttributes`](#commonschemaattributes) & { `$id?`: `string` ; `$schema?`: `string` ; `allOf?`: { `$ref?`: `string` ; `if?`: `Partial`<[`WrappedSchema`](#wrappedschema)[``"schema"``]\> ; `then?`: `Partial`<[`WrappedSchema`](#wrappedschema)[``"schema"``]\> }[] ; `definitions?`: `Record`<`string`, { `$ref`: [`Urn`](#urn) }\> ; `properties`: { `[fieldName: string]`: [`ServerSchemaField`](#serverschemafield); } ; `required?`: `string`[] ; `verified_fields?`: `string`[] } | - |
package/dist/raytio.d.ts CHANGED
@@ -161,7 +161,11 @@ export type Lookup = {
161
161
  requires_2FA?: boolean;
162
162
  /** Sort order within a lookup set. NULL = unordered. */
163
163
  display_order?: number;
164
- /** Group heading for dropdown lists (e.g., "APAC", "EMEA"). NULL = ungrouped. */
164
+ /**
165
+ * Group heading for dropdown lists (e.g., "APAC", "EMEA"). NULL = ungrouped.
166
+ * Translated client-side via the `lookup_group` entries in
167
+ * `fnd_i18n_entries` (see `LookupGroupLabel`).
168
+ */
165
169
  lookup_group?: string;
166
170
  };
167
171
  export type AATag = "type:client_only" | "type:share_with_new_user" | "Merchant";
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { AA, CommonFields, DataTypes, Json, SchemaName, Urn } from "./raytio";
1
+ import type { AA, CommonFields, DataTypes, Json, MId, SchemaName, Urn } from "./raytio";
2
2
  import type { WizardConfig } from "./wizard";
3
3
  /** should be renamed since this applies to ConditionallyVerifiable */
4
4
  export type ConditionallyRequired = {
@@ -169,6 +169,25 @@ export type FndI18nEntry = CommonFields<never> & {
169
169
  };
170
170
  };
171
171
  };
172
+ /** Configuration for a single named kanban board. */
173
+ export type KanbanBoard = {
174
+ /** Human-readable board name shown in the board selector; should be unique within the schema. */
175
+ kanban_name?: string;
176
+ /** Field that determines which column a card belongs to. */
177
+ column_field?: string;
178
+ /** Default ordering of the columns themselves, by their distinct `column_field` values. */
179
+ column_field_sort?: "ascending" | "descending";
180
+ /** Field displayed as the card title. */
181
+ title_field?: string;
182
+ /**
183
+ * Name of a numeric record field used to order cards vertically within
184
+ * a column. Optional. See
185
+ * packages/client/docs/layout-hierarchy-guide.md § Kanban Board Layout.
186
+ */
187
+ y_field?: string;
188
+ /** Additional fields displayed on each card. */
189
+ card_fields?: string[];
190
+ };
172
191
  /** not exported. Attributes that are identical in both client schema & server schema */
173
192
  export type CommonSchemaAttributes = {
174
193
  /** these fields will always exist on schema */
@@ -371,15 +390,12 @@ export type CommonSchemaAttributes = {
371
390
  last: number;
372
391
  };
373
392
  }[];
374
- /** Kanban board configuration for admin dashboard */
375
- kanban?: {
376
- /** Field that determines which column a card belongs to */
377
- column_field?: string;
378
- /** Field displayed as the card title */
379
- title_field?: string;
380
- /** Additional fields displayed on each card */
381
- card_fields?: string[];
382
- };
393
+ /**
394
+ * Kanban board configuration for the admin dashboard. Either a single
395
+ * board (legacy form) or an array of named boards. See
396
+ * packages/client/docs/layout-hierarchy-guide.md § Kanban Board Layout.
397
+ */
398
+ kanban?: KanbanBoard | KanbanBoard[];
383
399
  };
384
400
  /** only the schema used for the onboarding wizard have this property */
385
401
  onboard_properties?: {
@@ -474,6 +490,8 @@ export type CommonSchemaAttributes = {
474
490
  export type Schema = CommonFields<never> & CommonSchemaAttributes & {
475
491
  /** added by the client, copied from {@link WrappedSchema} */
476
492
  name: SchemaName;
493
+ /** added by the client, copied from {@link WrappedSchema}. Only set for `ms` schemas. */
494
+ merchant_id?: MId;
477
495
  /** added by client */
478
496
  type?: DataTypes;
479
497
  /**
@@ -566,6 +584,11 @@ export type WrappedSchema = {
566
584
  schema_name: SchemaName;
567
585
  schema_type: SchemaType;
568
586
  schema_version: string;
587
+ /**
588
+ * The merchant this schema belongs to. Always present for merchant-type
589
+ * (`ms`) schemas; absent for all other schema types.
590
+ */
591
+ merchant_id?: MId;
569
592
  /** whether the \`version\` is the latest version */
570
593
  version_current: boolean;
571
594
  /** Country codes that this schema is available for */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raytio/types",
3
- "version": "8.3.1",
3
+ "version": "8.3.2",
4
4
  "license": "MIT",
5
5
  "main": "index",
6
6
  "types": "index",
package/src/raytio.ts CHANGED
@@ -210,7 +210,11 @@ export type Lookup = {
210
210
 
211
211
  /** Sort order within a lookup set. NULL = unordered. */
212
212
  display_order?: number;
213
- /** Group heading for dropdown lists (e.g., "APAC", "EMEA"). NULL = ungrouped. */
213
+ /**
214
+ * Group heading for dropdown lists (e.g., "APAC", "EMEA"). NULL = ungrouped.
215
+ * Translated client-side via the `lookup_group` entries in
216
+ * `fnd_i18n_entries` (see `LookupGroupLabel`).
217
+ */
214
218
  lookup_group?: string;
215
219
  };
216
220
 
package/src/schema.ts CHANGED
@@ -3,6 +3,7 @@ import type {
3
3
  CommonFields,
4
4
  DataTypes,
5
5
  Json,
6
+ MId,
6
7
  SchemaName,
7
8
  Urn,
8
9
  } from "./raytio";
@@ -268,6 +269,26 @@ export type FndI18nEntry = CommonFields<never> & {
268
269
  };
269
270
  };
270
271
 
272
+ /** Configuration for a single named kanban board. */
273
+ export type KanbanBoard = {
274
+ /** Human-readable board name shown in the board selector; should be unique within the schema. */
275
+ kanban_name?: string;
276
+ /** Field that determines which column a card belongs to. */
277
+ column_field?: string;
278
+ /** Default ordering of the columns themselves, by their distinct `column_field` values. */
279
+ column_field_sort?: "ascending" | "descending";
280
+ /** Field displayed as the card title. */
281
+ title_field?: string;
282
+ /**
283
+ * Name of a numeric record field used to order cards vertically within
284
+ * a column. Optional. See
285
+ * packages/client/docs/layout-hierarchy-guide.md § Kanban Board Layout.
286
+ */
287
+ y_field?: string;
288
+ /** Additional fields displayed on each card. */
289
+ card_fields?: string[];
290
+ };
291
+
271
292
  /** not exported. Attributes that are identical in both client schema & server schema */
272
293
  export type CommonSchemaAttributes = {
273
294
  /** these fields will always exist on schema */
@@ -451,15 +472,12 @@ export type CommonSchemaAttributes = {
451
472
  stickyColumns?: { first: number; last: number };
452
473
  }[];
453
474
 
454
- /** Kanban board configuration for admin dashboard */
455
- kanban?: {
456
- /** Field that determines which column a card belongs to */
457
- column_field?: string;
458
- /** Field displayed as the card title */
459
- title_field?: string;
460
- /** Additional fields displayed on each card */
461
- card_fields?: string[];
462
- };
475
+ /**
476
+ * Kanban board configuration for the admin dashboard. Either a single
477
+ * board (legacy form) or an array of named boards. See
478
+ * packages/client/docs/layout-hierarchy-guide.md § Kanban Board Layout.
479
+ */
480
+ kanban?: KanbanBoard | KanbanBoard[];
463
481
  };
464
482
 
465
483
  /** only the schema used for the onboarding wizard have this property */
@@ -574,6 +592,8 @@ export type Schema = CommonFields<never> &
574
592
  CommonSchemaAttributes & {
575
593
  /** added by the client, copied from {@link WrappedSchema} */
576
594
  name: SchemaName;
595
+ /** added by the client, copied from {@link WrappedSchema}. Only set for `ms` schemas. */
596
+ merchant_id?: MId;
577
597
 
578
598
  /** added by client */
579
599
  type?: DataTypes;
@@ -685,6 +705,11 @@ export type WrappedSchema = {
685
705
  schema_name: SchemaName;
686
706
  schema_type: SchemaType;
687
707
  schema_version: string;
708
+ /**
709
+ * The merchant this schema belongs to. Always present for merchant-type
710
+ * (`ms`) schemas; absent for all other schema types.
711
+ */
712
+ merchant_id?: MId;
688
713
 
689
714
  /** whether the \`version\` is the latest version */
690
715
  version_current: boolean;