Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sistrall committed Dec 20, 2024
1 parent eb1ec37 commit 25c044a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 12 deletions.
2 changes: 2 additions & 0 deletions packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@
"sortable",
"modular_block",
"draft_mode_active",
"draft_saving_active",
"tree",
"ordering_direction",
"ordering_meta",
Expand Down Expand Up @@ -926,6 +927,7 @@
"sortable",
"modular_block",
"draft_mode_active",
"draft_saving_active",
"tree",
"ordering_direction",
"ordering_meta",
Expand Down
26 changes: 20 additions & 6 deletions packages/cma-client/src/generated/SchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4373,6 +4373,10 @@ export type ItemTypeAttributes = {
* Whether draft/published mode is active or not
*/
draft_mode_active: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -4558,6 +4562,10 @@ export type ItemTypeCreateSchema = {
* Whether draft/published mode is active or not
*/
draft_mode_active?: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active?: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -4684,6 +4692,10 @@ export type ItemTypeUpdateSchema = {
* Whether draft/published mode is active or not
*/
draft_mode_active?: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active?: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -5274,14 +5286,16 @@ export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
* <details>
* <summary><code>format</code></summary>
*
* Only accept strings having a specific format.
* Accepts only strings that match a specified format.
*
* | Parameter | Type | Required | Description |
* | -------------------- | ------------------------- | -------- | ---------------------------------- |
* | `custom_pattern` | `Regexp` | | Regular expression to be validated |
* | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
* | Parameter | Type | Required | Description |
* | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
* | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
* | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
*
* Only one of the parameters must be specified.
* **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
*
* If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
*
* </details>
*
Expand Down
30 changes: 24 additions & 6 deletions packages/cma-client/src/generated/SimpleSchemaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4836,6 +4836,10 @@ export type ItemType = {
* Whether draft/published mode is active or not
*/
draft_mode_active: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -4980,6 +4984,10 @@ export type ItemTypeAttributes = {
* Whether draft/published mode is active or not
*/
draft_mode_active: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -5063,6 +5071,10 @@ export type ItemTypeCreateSchema = {
* Whether draft/published mode is active or not
*/
draft_mode_active?: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active?: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -5146,6 +5158,10 @@ export type ItemTypeUpdateSchema = {
* Whether draft/published mode is active or not
*/
draft_mode_active?: boolean;
/**
* Whether draft records can be saved without satisfying the validations or not
*/
draft_saving_active?: boolean;
/**
* Whether editors can organize records in a tree or not
*/
Expand Down Expand Up @@ -5592,14 +5608,16 @@ export type ItemTypeUpdateSchema = {
* <details>
* <summary><code>format</code></summary>
*
* Only accept strings having a specific format.
* Accepts only strings that match a specified format.
*
* | Parameter | Type | Required | Description |
* | -------------------- | ------------------------- | -------- | ---------------------------------- |
* | `custom_pattern` | `Regexp` | | Regular expression to be validated |
* | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
* | Parameter | Type | Required | Description |
* | -------------------- | ------------------------- | -------- | ----------------------------------------------- |
* | `custom_pattern` | `Regexp` | Optional | Custom regular expression for validation |
* | `predefined_pattern` | `"email"` or `"url"` | Optional | Specifies a pre-defined format (email or URL) |
*
* Only one of the parameters must be specified.
* **Note:** Only one of `custom_pattern` or `predefined_pattern` should be specified.
*
* If `custom_pattern` is used, an additional `description` parameter can be provided to serve as a hint for the user. This hint offers a simple explanation of the expected pattern, such as `"The field must end with an 's'"`, instead of the default message like `"Field must match the pattern: /s$/"`.
*
* </details>
*
Expand Down
2 changes: 2 additions & 0 deletions packages/cma-client/src/generated/resources/ItemType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default class ItemType extends BaseResource {
'sortable',
'modular_block',
'draft_mode_active',
'draft_saving_active',
'tree',
'ordering_direction',
'ordering_meta',
Expand Down Expand Up @@ -100,6 +101,7 @@ export default class ItemType extends BaseResource {
'sortable',
'modular_block',
'draft_mode_active',
'draft_saving_active',
'tree',
'ordering_direction',
'ordering_meta',
Expand Down

0 comments on commit 25c044a

Please sign in to comment.