Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 10, 2024
1 parent ff7121d commit 0097fc0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6246,7 +6246,7 @@ Methods:
Types:

- <code><a href="./src/resources/cloudforce-one/requests/requests.ts">Item</a></code>
- <code><a href="./src/resources/cloudforce-one/requests/requests.ts">List</a></code>
- <code><a href="./src/resources/cloudforce-one/requests/requests.ts">ListItem</a></code>
- <code><a href="./src/resources/cloudforce-one/requests/requests.ts">Quota</a></code>
- <code><a href="./src/resources/cloudforce-one/requests/requests.ts">RequestConstants</a></code>
- <code><a href="./src/resources/cloudforce-one/requests/requests.ts">RequestTypes</a></code>
Expand All @@ -6256,7 +6256,7 @@ Methods:

- <code title="post /accounts/{account_identifier}/cloudforce-one/requests/new">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">create</a>(accountIdentifier, { ...params }) -> Item</code>
- <code title="put /accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">update</a>(accountIdentifier, requestIdentifier, { ...params }) -> Item</code>
- <code title="post /accounts/{account_identifier}/cloudforce-one/requests">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">list</a>(accountIdentifier, { ...params }) -> ListsV4PagePaginationArray</code>
- <code title="post /accounts/{account_identifier}/cloudforce-one/requests">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">list</a>(accountIdentifier, { ...params }) -> ListItemsV4PagePaginationArray</code>
- <code title="delete /accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">delete</a>(accountIdentifier, requestIdentifier) -> RequestDeleteResponse</code>
- <code title="get /accounts/{account_identifier}/cloudforce-one/requests/constants">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">constants</a>(accountIdentifier) -> RequestConstants</code>
- <code title="get /accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}">client.cloudforceOne.requests.<a href="./src/resources/cloudforce-one/requests/requests.ts">get</a>(accountIdentifier, requestIdentifier) -> Item</code>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/cloudforce-one/cloudforce-one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export class CloudforceOne extends APIResource {
export namespace CloudforceOne {
export import Requests = RequestsAPI.Requests;
export import Item = RequestsAPI.Item;
export import List = RequestsAPI.List;
export import ListItem = RequestsAPI.ListItem;
export import Quota = RequestsAPI.Quota;
export import RequestConstants = RequestsAPI.RequestConstants;
export import RequestTypes = RequestsAPI.RequestTypes;
export import RequestDeleteResponse = RequestsAPI.RequestDeleteResponse;
export import ListsV4PagePaginationArray = RequestsAPI.ListsV4PagePaginationArray;
export import ListItemsV4PagePaginationArray = RequestsAPI.ListItemsV4PagePaginationArray;
export import RequestCreateParams = RequestsAPI.RequestCreateParams;
export import RequestUpdateParams = RequestsAPI.RequestUpdateParams;
export import RequestListParams = RequestsAPI.RequestListParams;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/cloudforce-one/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
export { CloudforceOne } from './cloudforce-one';
export {
Item,
List,
ListItem,
Quota,
RequestConstants,
RequestTypes,
RequestDeleteResponse,
RequestCreateParams,
RequestUpdateParams,
RequestListParams,
ListsV4PagePaginationArray,
ListItemsV4PagePaginationArray,
Requests,
} from './requests/index';
4 changes: 2 additions & 2 deletions src/resources/cloudforce-one/requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

export {
Item,
List,
ListItem,
Quota,
RequestConstants,
RequestTypes,
RequestDeleteResponse,
RequestCreateParams,
RequestUpdateParams,
RequestListParams,
ListsV4PagePaginationArray,
ListItemsV4PagePaginationArray,
Requests,
} from './requests';
export {
Expand Down
12 changes: 6 additions & 6 deletions src/resources/cloudforce-one/requests/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export class Requests extends APIResource {
accountIdentifier: string,
body: RequestListParams,
options?: Core.RequestOptions,
): Core.PagePromise<ListsV4PagePaginationArray, List> {
): Core.PagePromise<ListItemsV4PagePaginationArray, ListItem> {
return this._client.getAPIList(
`/accounts/${accountIdentifier}/cloudforce-one/requests`,
ListsV4PagePaginationArray,
ListItemsV4PagePaginationArray,
{ body, method: 'post', ...options },
);
}
Expand Down Expand Up @@ -132,7 +132,7 @@ export class Requests extends APIResource {
}
}

export class ListsV4PagePaginationArray extends V4PagePaginationArray<List> {}
export class ListItemsV4PagePaginationArray extends V4PagePaginationArray<ListItem> {}

export interface Item {
/**
Expand Down Expand Up @@ -189,7 +189,7 @@ export interface Item {
tokens?: number;
}

export interface List {
export interface ListItem {
/**
* UUID
*/
Expand Down Expand Up @@ -380,12 +380,12 @@ export interface RequestListParams extends V4PagePaginationArrayParams {

export namespace Requests {
export import Item = RequestsAPI.Item;
export import List = RequestsAPI.List;
export import ListItem = RequestsAPI.ListItem;
export import Quota = RequestsAPI.Quota;
export import RequestConstants = RequestsAPI.RequestConstants;
export import RequestTypes = RequestsAPI.RequestTypes;
export import RequestDeleteResponse = RequestsAPI.RequestDeleteResponse;
export import ListsV4PagePaginationArray = RequestsAPI.ListsV4PagePaginationArray;
export import ListItemsV4PagePaginationArray = RequestsAPI.ListItemsV4PagePaginationArray;
export import RequestCreateParams = RequestsAPI.RequestCreateParams;
export import RequestUpdateParams = RequestsAPI.RequestUpdateParams;
export import RequestListParams = RequestsAPI.RequestListParams;
Expand Down

0 comments on commit 0097fc0

Please sign in to comment.