Skip to content

Commit 5deb0ea

Browse files
committed
Add hasPagination to SeamHttpRequest
1 parent 844590d commit 5deb0ea

22 files changed

Lines changed: 34 additions & 13 deletions

File tree

‎codegen/layouts/partials/route-class-endpoint.hbs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
hasRequiredParameters: {{hasRequiredParameters}},
1111
requiredParameterNames: [{{#each requiredParameterNames}}{{json .}}{{#unless @last}}, {{/unless}}{{/each}}],
1212
responseKey: {{#if returnsVoid}}undefined{{else}}'{{responseKey}}'{{/if}},
13-
options,
13+
{{#if hasPagination}}hasPagination: true,
14+
{{/if}}options,
1415
{{#if returnsActionAttempt}}
1516
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
1617
...this.defaults,

‎codegen/lib/layouts/route.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface EndpointLayoutContext {
2828
className: string
2929
method: Method
3030
responseKey: string
31+
hasPagination: boolean
3132
requestFormat: 'params' | 'body'
3233
parametersTypeName: string
3334
responseTypeName: string
@@ -141,6 +142,7 @@ export const getEndpointLayoutContext = (
141142
methodName,
142143
functionName: camelCase(prefix),
143144
method: endpoint.request.preferredMethod,
145+
hasPagination: endpoint.hasPagination,
144146
className: getClassName(route.path),
145147
requestFormat,
146148
returnsActionAttempt,

‎src/lib/routes/access-codes/access-codes.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/access-codes/unmanaged/unmanaged.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/access-grants/access-grants.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/access-grants/unmanaged/unmanaged.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/access-methods/access-methods.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/acs/credentials/credentials.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/acs/encoders/encoders.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/lib/routes/acs/entrances/entrances.ts‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)