diff --git a/src/Client/Api/EventDeliveriesApi.php b/src/Client/Api/EventDeliveriesApi.php index 960b1c8..63a35b8 100644 --- a/src/Client/Api/EventDeliveriesApi.php +++ b/src/Client/Api/EventDeliveriesApi.php @@ -150,11 +150,14 @@ public function getConfig() * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -164,9 +167,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response */ - public function batchRetryEventDelivery($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) + public function batchRetryEventDelivery($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) { - list($response) = $this->batchRetryEventDeliveryWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType); + list($response) = $this->batchRetryEventDeliveryWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType); return $response; } @@ -182,11 +185,14 @@ public function batchRetryEventDelivery($project_id, $direction = null, $end_dat * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -196,9 +202,9 @@ public function batchRetryEventDelivery($project_id, $direction = null, $end_dat * @throws \InvalidArgumentException * @return array of \Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response, HTTP status code, HTTP response headers (array of strings) */ - public function batchRetryEventDeliveryWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) + public function batchRetryEventDeliveryWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) { - $request = $this->batchRetryEventDeliveryRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType); + $request = $this->batchRetryEventDeliveryRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -323,11 +329,14 @@ public function batchRetryEventDeliveryWithHttpInfo($project_id, $direction = nu * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -336,9 +345,9 @@ public function batchRetryEventDeliveryWithHttpInfo($project_id, $direction = nu * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function batchRetryEventDeliveryAsync($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) + public function batchRetryEventDeliveryAsync($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) { - return $this->batchRetryEventDeliveryAsyncWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType) + return $this->batchRetryEventDeliveryAsyncWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType) ->then( function ($response) { return $response[0]; @@ -358,11 +367,14 @@ function ($response) { * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -371,10 +383,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function batchRetryEventDeliveryAsyncWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) + public function batchRetryEventDeliveryAsyncWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) { $returnType = '\Convoy\Client\Model\GetProjects400Response'; - $request = $this->batchRetryEventDeliveryRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType); + $request = $this->batchRetryEventDeliveryRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -422,11 +434,14 @@ function ($exception) { * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -435,7 +450,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function batchRetryEventDeliveryRequest($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) + public function batchRetryEventDeliveryRequest($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['batchRetryEventDelivery'][0]) { // verify the required parameter 'project_id' is set @@ -460,6 +475,9 @@ public function batchRetryEventDeliveryRequest($project_id, $direction = null, $ + + + $resourcePath = '/v1/projects/{projectID}/eventdeliveries/batchretry'; $formParams = []; $queryParams = []; @@ -506,7 +524,7 @@ public function batchRetryEventDeliveryRequest($project_id, $direction = null, $ // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $event_type, - 'event_type', // param base name + 'eventType', // param base name 'string', // openApiType 'form', // style true, // explode @@ -522,6 +540,24 @@ public function batchRetryEventDeliveryRequest($project_id, $direction = null, $ false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $idempotency_value, + 'idempotencyValue', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $min_trials, + 'minTrials', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $next_page_cursor, 'next_page_cursor', // param base name @@ -567,6 +603,15 @@ public function batchRetryEventDeliveryRequest($project_id, $direction = null, $ false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $source_id, + 'sourceId', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $start_date, 'startDate', // param base name @@ -1007,11 +1052,14 @@ public function forceResendEventDeliveriesRequest($project_id, $models_ids, stri * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -1021,9 +1069,9 @@ public function forceResendEventDeliveriesRequest($project_id, $models_ids, stri * @throws \InvalidArgumentException * @return \Convoy\Client\Model\GetEventDeliveriesPaged200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response */ - public function getEventDeliveriesPaged($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) + public function getEventDeliveriesPaged($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) { - list($response) = $this->getEventDeliveriesPagedWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType); + list($response) = $this->getEventDeliveriesPagedWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType); return $response; } @@ -1039,11 +1087,14 @@ public function getEventDeliveriesPaged($project_id, $direction = null, $end_dat * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -1053,9 +1104,9 @@ public function getEventDeliveriesPaged($project_id, $direction = null, $end_dat * @throws \InvalidArgumentException * @return array of \Convoy\Client\Model\GetEventDeliveriesPaged200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response, HTTP status code, HTTP response headers (array of strings) */ - public function getEventDeliveriesPagedWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) + public function getEventDeliveriesPagedWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) { - $request = $this->getEventDeliveriesPagedRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType); + $request = $this->getEventDeliveriesPagedRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1194,11 +1245,14 @@ public function getEventDeliveriesPagedWithHttpInfo($project_id, $direction = nu * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -1207,9 +1261,9 @@ public function getEventDeliveriesPagedWithHttpInfo($project_id, $direction = nu * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventDeliveriesPagedAsync($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) + public function getEventDeliveriesPagedAsync($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) { - return $this->getEventDeliveriesPagedAsyncWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType) + return $this->getEventDeliveriesPagedAsyncWithHttpInfo($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType) ->then( function ($response) { return $response[0]; @@ -1229,11 +1283,14 @@ function ($response) { * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -1242,10 +1299,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventDeliveriesPagedAsyncWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) + public function getEventDeliveriesPagedAsyncWithHttpInfo($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) { $returnType = '\Convoy\Client\Model\GetEventDeliveriesPaged200Response'; - $request = $this->getEventDeliveriesPagedRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $start_date, $status, $subscription_id, $contentType); + $request = $this->getEventDeliveriesPagedRequest($project_id, $direction, $end_date, $endpoint_id, $event_id, $event_type, $idempotency_key, $idempotency_value, $min_trials, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $status, $subscription_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1293,11 +1350,14 @@ function ($exception) { * @param string|null $event_id Event ID to filter by (optional) * @param string|null $event_type EventType to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey. (optional) + * @param int|null $min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) * @param string|null $query Matches delivery id, event id, event type prefix, and endpoint name. (optional) * @param string|null $sort Sort order, values are `ASC` or `DESC`, defaults to `DESC` (optional) + * @param string[]|null $source_id Limits idempotencyValue matching to these source IDs. (optional) * @param string|null $start_date The start date (optional) * @param string[]|null $status A list of event delivery statuses to filter by (optional) * @param string|null $subscription_id SubscriptionID to filter by (optional) @@ -1306,7 +1366,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getEventDeliveriesPagedRequest($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) + public function getEventDeliveriesPagedRequest($project_id, $direction = null, $end_date = null, $endpoint_id = null, $event_id = null, $event_type = null, $idempotency_key = null, $idempotency_value = null, $min_trials = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, $status = null, $subscription_id = null, string $contentType = self::contentTypes['getEventDeliveriesPaged'][0]) { // verify the required parameter 'project_id' is set @@ -1331,6 +1391,9 @@ public function getEventDeliveriesPagedRequest($project_id, $direction = null, $ + + + $resourcePath = '/v1/projects/{projectID}/eventdeliveries'; $formParams = []; $queryParams = []; @@ -1377,7 +1440,7 @@ public function getEventDeliveriesPagedRequest($project_id, $direction = null, $ // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $event_type, - 'event_type', // param base name + 'eventType', // param base name 'string', // openApiType 'form', // style true, // explode @@ -1393,6 +1456,24 @@ public function getEventDeliveriesPagedRequest($project_id, $direction = null, $ false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $idempotency_value, + 'idempotencyValue', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $min_trials, + 'minTrials', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $next_page_cursor, 'next_page_cursor', // param base name @@ -1438,6 +1519,15 @@ public function getEventDeliveriesPagedRequest($project_id, $direction = null, $ false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $source_id, + 'sourceId', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $start_date, 'startDate', // param base name diff --git a/src/Client/Api/EventsApi.php b/src/Client/Api/EventsApi.php index 00883c1..2918674 100644 --- a/src/Client/Api/EventsApi.php +++ b/src/Client/Api/EventsApi.php @@ -161,6 +161,7 @@ public function getConfig() * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -174,9 +175,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Convoy\Client\Model\BatchReplayEvents200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response */ - public function batchReplayEvents($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) + public function batchReplayEvents($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) { - list($response) = $this->batchReplayEventsWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + list($response) = $this->batchReplayEventsWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); return $response; } @@ -191,6 +192,7 @@ public function batchReplayEvents($project_id, $body = null, $direction = null, * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -204,9 +206,9 @@ public function batchReplayEvents($project_id, $body = null, $direction = null, * @throws \InvalidArgumentException * @return array of \Convoy\Client\Model\BatchReplayEvents200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response, HTTP status code, HTTP response headers (array of strings) */ - public function batchReplayEventsWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) + public function batchReplayEventsWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) { - $request = $this->batchReplayEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + $request = $this->batchReplayEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -330,6 +332,7 @@ public function batchReplayEventsWithHttpInfo($project_id, $body = null, $direct * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -342,9 +345,9 @@ public function batchReplayEventsWithHttpInfo($project_id, $body = null, $direct * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function batchReplayEventsAsync($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) + public function batchReplayEventsAsync($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) { - return $this->batchReplayEventsAsyncWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType) + return $this->batchReplayEventsAsyncWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType) ->then( function ($response) { return $response[0]; @@ -363,6 +366,7 @@ function ($response) { * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -375,10 +379,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function batchReplayEventsAsyncWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) + public function batchReplayEventsAsyncWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) { $returnType = '\Convoy\Client\Model\BatchReplayEvents200Response'; - $request = $this->batchReplayEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + $request = $this->batchReplayEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -425,6 +429,7 @@ function ($exception) { * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -437,7 +442,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function batchReplayEventsRequest($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) + public function batchReplayEventsRequest($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['batchReplayEvents'][0]) { // verify the required parameter 'project_id' is set @@ -460,6 +465,7 @@ public function batchReplayEventsRequest($project_id, $body = null, $direction = + $resourcePath = '/v1/projects/{projectID}/events/batchreplay'; $formParams = []; $queryParams = []; @@ -513,6 +519,15 @@ public function batchReplayEventsRequest($project_id, $body = null, $direction = false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $idempotency_value, + 'idempotencyValue', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $next_page_cursor, 'next_page_cursor', // param base name @@ -655,6 +670,7 @@ public function batchReplayEventsRequest($project_id, $body = null, $direction = * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -668,9 +684,9 @@ public function batchReplayEventsRequest($project_id, $body = null, $direction = * @throws \InvalidArgumentException * @return \Convoy\Client\Model\CountAffectedEvents200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response */ - public function countAffectedEvents($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) + public function countAffectedEvents($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) { - list($response) = $this->countAffectedEventsWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + list($response) = $this->countAffectedEventsWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); return $response; } @@ -685,6 +701,7 @@ public function countAffectedEvents($project_id, $body = null, $direction = null * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -698,9 +715,9 @@ public function countAffectedEvents($project_id, $body = null, $direction = null * @throws \InvalidArgumentException * @return array of \Convoy\Client\Model\CountAffectedEvents200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response, HTTP status code, HTTP response headers (array of strings) */ - public function countAffectedEventsWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) + public function countAffectedEventsWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) { - $request = $this->countAffectedEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + $request = $this->countAffectedEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -824,6 +841,7 @@ public function countAffectedEventsWithHttpInfo($project_id, $body = null, $dire * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -836,9 +854,9 @@ public function countAffectedEventsWithHttpInfo($project_id, $body = null, $dire * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function countAffectedEventsAsync($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) + public function countAffectedEventsAsync($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) { - return $this->countAffectedEventsAsyncWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType) + return $this->countAffectedEventsAsyncWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType) ->then( function ($response) { return $response[0]; @@ -857,6 +875,7 @@ function ($response) { * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -869,10 +888,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function countAffectedEventsAsyncWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) + public function countAffectedEventsAsyncWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) { $returnType = '\Convoy\Client\Model\CountAffectedEvents200Response'; - $request = $this->countAffectedEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + $request = $this->countAffectedEventsRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -919,6 +938,7 @@ function ($exception) { * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -931,7 +951,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function countAffectedEventsRequest($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) + public function countAffectedEventsRequest($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['countAffectedEvents'][0]) { // verify the required parameter 'project_id' is set @@ -954,6 +974,7 @@ public function countAffectedEventsRequest($project_id, $body = null, $direction + $resourcePath = '/v1/projects/{projectID}/events/countbatchreplayevents'; $formParams = []; $queryParams = []; @@ -1007,6 +1028,15 @@ public function countAffectedEventsRequest($project_id, $body = null, $direction false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $idempotency_value, + 'idempotencyValue', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $next_page_cursor, 'next_page_cursor', // param base name @@ -2815,6 +2845,7 @@ public function getEndpointEventRequest($project_id, $event_id, string $contentT * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -2828,9 +2859,9 @@ public function getEndpointEventRequest($project_id, $event_id, string $contentT * @throws \InvalidArgumentException * @return \Convoy\Client\Model\GetEventsPaged200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response */ - public function getEventsPaged($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) + public function getEventsPaged($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) { - list($response) = $this->getEventsPagedWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + list($response) = $this->getEventsPagedWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); return $response; } @@ -2845,6 +2876,7 @@ public function getEventsPaged($project_id, $body = null, $direction = null, $en * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -2858,9 +2890,9 @@ public function getEventsPaged($project_id, $body = null, $direction = null, $en * @throws \InvalidArgumentException * @return array of \Convoy\Client\Model\GetEventsPaged200Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response|\Convoy\Client\Model\GetProjects400Response, HTTP status code, HTTP response headers (array of strings) */ - public function getEventsPagedWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) + public function getEventsPagedWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) { - $request = $this->getEventsPagedRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + $request = $this->getEventsPagedRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -3012,6 +3044,7 @@ public function getEventsPagedWithHttpInfo($project_id, $body = null, $direction * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -3024,9 +3057,9 @@ public function getEventsPagedWithHttpInfo($project_id, $body = null, $direction * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventsPagedAsync($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) + public function getEventsPagedAsync($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) { - return $this->getEventsPagedAsyncWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType) + return $this->getEventsPagedAsyncWithHttpInfo($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType) ->then( function ($response) { return $response[0]; @@ -3045,6 +3078,7 @@ function ($response) { * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -3057,10 +3091,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventsPagedAsyncWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) + public function getEventsPagedAsyncWithHttpInfo($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) { $returnType = '\Convoy\Client\Model\GetEventsPaged200Response'; - $request = $this->getEventsPagedRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); + $request = $this->getEventsPagedRequest($project_id, $body, $direction, $end_date, $endpoint_id, $idempotency_key, $idempotency_value, $next_page_cursor, $per_page, $prev_page_cursor, $query, $sort, $source_id, $start_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3107,6 +3141,7 @@ function ($exception) { * @param string|null $end_date The end date (optional) * @param string[]|null $endpoint_id A list of endpoint ids to filter by (optional) * @param string|null $idempotency_key IdempotencyKey to filter by (optional) + * @param string|null $idempotency_value Raw value of a source's single idempotency key location, e.g. a provider delivery ID. List only; pass sourceId if several sources qualify. Not combinable with idempotencyKey. (optional) * @param string|null $next_page_cursor A pagination cursor to fetch the next page of a list (optional) * @param int|null $per_page The number of items to return per page (optional) * @param string|null $prev_page_cursor A pagination cursor to fetch the previous page of a list (optional) @@ -3119,7 +3154,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getEventsPagedRequest($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) + public function getEventsPagedRequest($project_id, $body = null, $direction = null, $end_date = null, $endpoint_id = null, $idempotency_key = null, $idempotency_value = null, $next_page_cursor = null, $per_page = null, $prev_page_cursor = null, $query = null, $sort = null, $source_id = null, $start_date = null, string $contentType = self::contentTypes['getEventsPaged'][0]) { // verify the required parameter 'project_id' is set @@ -3142,6 +3177,7 @@ public function getEventsPagedRequest($project_id, $body = null, $direction = nu + $resourcePath = '/v1/projects/{projectID}/events'; $formParams = []; $queryParams = []; @@ -3195,6 +3231,15 @@ public function getEventsPagedRequest($project_id, $body = null, $direction = nu false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $idempotency_value, + 'idempotencyValue', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $next_page_cursor, 'next_page_cursor', // param base name