Skip to content

Commit 3e3e971

Browse files
authored
Merge branch 'main' into diego/acs-2131-add-documentation-of-android-seam-components-to-docsseamco
2 parents f4ced28 + a89a356 commit 3e3e971

File tree

290 files changed

+4691
-1517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+4691
-1517
lines changed

codegen/layouts/api-endpoint.hbs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
- [Examples](#examples)
1010
{{/if}}
1111

12+
{{#if this.isDeprecated}}
13+
{{> deprecated-warning}}
14+
15+
{{/if}}
1216
{{{description}}}
1317

1418
{{#with primaryCodeSample}}
@@ -73,7 +77,11 @@ None
7377
7478
## Response
7579
76-
{{#if response.resourceType}}{{#if (eq response.responseType "resource_list")}}Array of [{{response.escapedResourceType}}s]({{#if response.responsePath}}{{response.responsePath}}{{else}}./{{/if}}){{else}}[{{response.escapedResourceType}}]({{#if response.responsePath}}{{response.responsePath}}{{else}}./{{/if}}){{/if}}{{else}}void{{/if}}
80+
{% hint style="success" %}
81+
Returns:
82+
**{{#if response.resourceType}}{{#if (eq response.responseType "resource_list")}}Array of [{{response.escapedResourceType}}s]({{#if response.responsePath}}{{response.responsePath}}{{else}}./{{/if}}){{else}}[{{response.escapedResourceType}}]({{#if response.responsePath}}{{response.responsePath}}{{else}}./{{/if}}){{/if}}{{else}}void{{/if}}**
83+
84+
{% endhint %}
7785
7886
{{#if resourceSamples.length}}
7987

codegen/lib/layout/api-endpoint.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export interface ApiEndpointLayoutContext {
4040
workspaceScope: SeamWorkspaceScope
4141
isAlpha: boolean
4242
alphaMessage: string | undefined
43+
isDeprecated: boolean
44+
deprecationMessage: string
4345
request: {
4446
preferredMethod: string
4547
parameters: ApiEndpointParameter[]
@@ -124,6 +126,8 @@ export function setEndpointLayoutContext(
124126
file.workspaceScope = endpoint.workspaceScope
125127
file.isAlpha = (metadata.alpha ?? '').length > 0
126128
file.alphaMessage = metadata.alpha
129+
file.isDeprecated = endpoint.isDeprecated
130+
file.deprecationMessage = endpoint.deprecationMessage
127131

128132
file.authMethods = endpoint.authMethods
129133
.filter(
-60.6 KB
Binary file not shown.
Binary file not shown.
336 KB
Loading
162 KB
Loading
535 KB
Loading
274 KB
Loading
403 KB
Loading
402 KB
Loading

0 commit comments

Comments
 (0)