Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zielinski committed Nov 29, 2023
1 parent 5fca0b5 commit 0513b1e
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 207 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ scripts/output/*.md
.idea/*
/reference/.stoplight/
/tmp/
openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ order: 1
|:-----|:--------|
| id</br>`string` | <p>Unique metadata schema ID.</p> **Example:** <p>ms_OF36L2rk4EqhdxvZs56IW9iE</p> |
| related_object</br>`string` | <p>The resource type. There is an infinite number of possibilities for the resource type because you can define custom metadata schemas. Some examples are included here to show you the standard metadata schema resource types.</p> Available values: `campaign`, `customer`, `earning_rule`, `loyalty_tier`, `order`, `order_item`, `product`, `promotion_tier`, `publication`, `redemption`, `reward`, `voucher` |
| properties</br>`object` | <p>Contains the metadata definitions. There can be many properties within this object.</p> One of: <table><thead><tr><th style="text-align:left">Attributes</th><th style="text-align:left">Description</th></tr></thead><tbody><tr><td style="text-align:left">custom_property_name</br><code>object</code></td><td style="text-align:left"><p>Custom property name. This is defined in <strong>Project Settings</strong> &gt; <strong>Metadata Schema</strong> in the Dashboard.</p> <table><thead><tr><th style="text-align:left">Attributes</th><th style="text-align:left">Description</th></tr></thead><tbody><tr><td style="text-align:left">type</br><code>string</code></td><td style="text-align:left">Available values: <code>string</code>, <code>number</code>, <code>object</code>, <code>date</code>, <code>datetime</code>, <code>geopoint</code>, <code>boolean</code>, <code>image_url</code></td></tr><tr><td style="text-align:left">array</br><code>boolean</code></td><td style="text-align:left"><p>Indicates whether the definition is an array.</p></td></tr><tr><td style="text-align:left">optional</br><code>boolean</code></td><td style="text-align:left"><p>Indicates whether this definition is optional or not optional for the resource.</p></td></tr><tr><td style="text-align:left">objectType</br><code>string,null</code></td><td style="text-align:left"><p>Returns the name of the custom resource if the resource was previously defined in the Dashboard as a custom (non-standard) Nested object.</p></td></tr><tr><td style="text-align:left">eq</br><code>array</code></td><td style="text-align:left"><p>Array of possible values when the setting for <code>is equal to any of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">ne</br><code>array</code></td><td style="text-align:left"><p>Array of values that are not allowed when the setting for <code>is not equal to any of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">lt</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must have <code>less than</code> this value.</p></td></tr><tr><td style="text-align:left">lte</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must be <code>less than or equal</code> to this value.</p></td></tr><tr><td style="text-align:left">gt</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must be <code>greater than</code> this value.</p></td></tr><tr><td style="text-align:left">gte</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must be <code>greater than or equal</code> to this value.</p></td></tr><tr><td style="text-align:left">deleted</br><code>boolean</code></td><td style="text-align:left"><p>Indicates whether the definition was deleted from the schema.</p></td></tr><tr><td style="text-align:left">maxLength</br><code>integer</code></td><td style="text-align:left"><p>Value for maximum length when the setting for <code>has maximum length of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">minLength</br><code>integer</code></td><td style="text-align:left"><p>Value indicating minimum length when the setting for <code>has minimum length of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">exactLength</br><code>integer</code></td><td style="text-align:left"><p>Value indicating exact length when the setting for <code>has exact length of</code> in the Dashboard is defined explicitly.</p></td></tr></tbody></table></td></tr></tbody></table> |
| properties</br>`object` | <p>Contains the metadata definitions. There can be many properties within this object.</p> <table><thead><tr><th style="text-align:left">Attributes</th><th style="text-align:left">Description</th></tr></thead><tbody><tr><td style="text-align:left">custom_property_name</br><code>object</code></td><td style="text-align:left"><p>Custom property name. This is defined in <strong>Project Settings</strong> &gt; <strong>Metadata Schema</strong> in the Dashboard.</p> <table><thead><tr><th style="text-align:left">Attributes</th><th style="text-align:left">Description</th></tr></thead><tbody><tr><td style="text-align:left">type</br><code>string</code></td><td style="text-align:left">Available values: <code>string</code>, <code>number</code>, <code>object</code>, <code>date</code>, <code>datetime</code>, <code>geopoint</code>, <code>boolean</code>, <code>image_url</code></td></tr><tr><td style="text-align:left">array</br><code>boolean</code></td><td style="text-align:left"><p>Indicates whether the definition is an array.</p></td></tr><tr><td style="text-align:left">optional</br><code>boolean</code></td><td style="text-align:left"><p>Indicates whether this definition is optional or not optional for the resource.</p></td></tr><tr><td style="text-align:left">objectType</br><code>string,null</code></td><td style="text-align:left"><p>Returns the name of the custom resource if the resource was previously defined in the Dashboard as a custom (non-standard) Nested object.</p></td></tr><tr><td style="text-align:left">eq</br><code>array</code></td><td style="text-align:left"><p>Array of possible values when the setting for <code>is equal to any of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">ne</br><code>array</code></td><td style="text-align:left"><p>Array of values that are not allowed when the setting for <code>is not equal to any of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">lt</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must have <code>less than</code> this value.</p></td></tr><tr><td style="text-align:left">lte</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must be <code>less than or equal</code> to this value.</p></td></tr><tr><td style="text-align:left">gt</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must be <code>greater than</code> this value.</p></td></tr><tr><td style="text-align:left">gte</br><code>integer</code></td><td style="text-align:left"><p>A property of <code>number</code> type must be <code>greater than or equal</code> to this value.</p></td></tr><tr><td style="text-align:left">deleted</br><code>boolean</code></td><td style="text-align:left"><p>Indicates whether the definition was deleted from the schema.</p></td></tr><tr><td style="text-align:left">maxLength</br><code>integer</code></td><td style="text-align:left"><p>Value for maximum length when the setting for <code>has maximum length of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">minLength</br><code>integer</code></td><td style="text-align:left"><p>Value indicating minimum length when the setting for <code>has minimum length of</code> in the Dashboard is defined explicitly.</p></td></tr><tr><td style="text-align:left">exactLength</br><code>integer</code></td><td style="text-align:left"><p>Value indicating exact length when the setting for <code>has exact length of</code> in the Dashboard is defined explicitly.</p></td></tr></tbody></table></td></tr></tbody></table> |
| allow_defined_only</br>`boolean` | <p>Restricts the creation of metadata fields when set to <code>true</code>. In other words, it indicates whether or not you are allowed to create new metadata definitions; for example, in the campaign manager or publication manager. If it is set to true, then only the defined fields will be available for assigning values.</p> |
| created_at</br>`string` | <p>Timestamp representing the date and time when the metadata schema was created in ISO 8601 format.</p> **Example:** <p>2021-12-03T13:33:44.556Z</p> |
| updated_at</br>`string` | <p>Timestamp representing the date and time when the metadata schema was updated in ISO 8601 format.</p> **Example:** <p>2022-08-11T08:05:30.695Z</p> |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build-md-tables-from-openapi": "ts-node ./scripts/build-md-tables-from-openapi.ts",
"readme-fix-reference-docs": "ts-node ./scripts/readme-fix-reference-docs.ts",
"remove-stoplight-tags-from-openapi": "ts-node ./scripts/remove-stoplight-tags-from-openapi.ts",
"remove-deprecated-from-openapi": "ts-node ./scripts/remove-deprecated-from-openapi.ts",
"remove-deprecated-from-openapi-remove-additional-properties": "ts-node ./scripts/remove-deprecated-from-openapi-remove-additional-properties.ts",
"generate-open-api-with-specific-endpoints": "ts-node ./scripts/generate-open-api-with-specific-endpoints.ts",
"generate-open-api-with-specific-endpoints-remove-additionalProperties-if": "ts-node ./scripts/generate-open-api-with-specific-endpoints-remove-additionalProperties-if.ts",
"manage-project": "ts-node ./scripts/build-md-tables-from-openapi.ts && ts-node ./scripts/manage-project.ts",
Expand Down
Loading

0 comments on commit 0513b1e

Please sign in to comment.