-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build(codegen): updating SDK * build(codegen): updating SDK * build(codegen): updating SDK --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
- Loading branch information
1 parent
851ee40
commit 345b09d
Showing
16 changed files
with
577 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...client/indexing-status/by-project-key-customers-search-indexing-status-request-builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT. | ||
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it. | ||
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/. | ||
*/ | ||
import { CustomerSearchIndexingStatusResponse } from '../../models/customer-search' | ||
import { executeRequest } from '../../shared/utils/common-types' | ||
import { ApiRequest } from '../../shared/utils/requests-utils' | ||
/** | ||
**/ | ||
export class ByProjectKeyCustomersSearchIndexingStatusRequestBuilder { | ||
constructor( | ||
protected readonly args: { | ||
pathArgs: { | ||
projectKey: string | ||
} | ||
executeRequest: executeRequest | ||
baseUri?: string | ||
} | ||
) {} | ||
public get(methodArgs?: { | ||
headers?: { | ||
[key: string]: string | string[] | ||
} | ||
}): ApiRequest<CustomerSearchIndexingStatusResponse> { | ||
return new ApiRequest<CustomerSearchIndexingStatusResponse>( | ||
{ | ||
baseUri: this.args.baseUri, | ||
method: 'GET', | ||
uriTemplate: '/{projectKey}/customers/search/indexing-status', | ||
pathVariables: this.args.pathArgs, | ||
headers: { | ||
...methodArgs?.headers, | ||
}, | ||
}, | ||
this.args.executeRequest | ||
) | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...atform-sdk/src/generated/client/search/by-project-key-customers-search-request-builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/** | ||
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT. | ||
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it. | ||
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/. | ||
*/ | ||
import { | ||
CustomerPagedSearchResponse, | ||
CustomerSearchRequest, | ||
} from '../../models/customer-search' | ||
import { executeRequest } from '../../shared/utils/common-types' | ||
import { ApiRequest } from '../../shared/utils/requests-utils' | ||
/** | ||
**/ | ||
export class ByProjectKeyCustomersSearchRequestBuilder { | ||
constructor( | ||
protected readonly args: { | ||
pathArgs: { | ||
projectKey: string | ||
} | ||
executeRequest: executeRequest | ||
baseUri?: string | ||
} | ||
) {} | ||
public post(methodArgs: { | ||
body: CustomerSearchRequest | ||
headers?: { | ||
[key: string]: string | string[] | ||
} | ||
}): ApiRequest<CustomerPagedSearchResponse> { | ||
return new ApiRequest<CustomerPagedSearchResponse>( | ||
{ | ||
baseUri: this.args.baseUri, | ||
method: 'POST', | ||
uriTemplate: '/{projectKey}/customers/search', | ||
pathVariables: this.args.pathArgs, | ||
headers: { | ||
'Content-Type': 'application/json', | ||
...methodArgs?.headers, | ||
}, | ||
body: methodArgs?.body, | ||
}, | ||
this.args.executeRequest | ||
) | ||
} | ||
/** | ||
* Checks whether a search index for the Project's Customers exists. | ||
* Returns a `200 OK` status if the index exists or `404 Not Found` otherwise. | ||
* | ||
*/ | ||
public head(methodArgs?: { | ||
headers?: { | ||
[key: string]: string | string[] | ||
} | ||
}): ApiRequest<void> { | ||
return new ApiRequest<void>( | ||
{ | ||
baseUri: this.args.baseUri, | ||
method: 'HEAD', | ||
uriTemplate: '/{projectKey}/customers/search', | ||
pathVariables: this.args.pathArgs, | ||
headers: { | ||
...methodArgs?.headers, | ||
}, | ||
}, | ||
this.args.executeRequest | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.