qodev-apollo-api 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/CHANGELOG.md +6 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/PKG-INFO +1 -1
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/pyproject.toml +1 -1
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/src/qodev_apollo_api/__init__.py +2 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/src/qodev_apollo_api/client.py +4 -1
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/src/qodev_apollo_api/models.py +13 -1
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/uv.lock +1 -1
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/.github/workflows/ci.yml +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/.github/workflows/publish.yml +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/.gitignore +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/.pre-commit-config.yaml +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/CLAUDE.md +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/LICENSE +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/Makefile +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/README.md +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/src/qodev_apollo_api/exceptions.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/src/qodev_apollo_api/py.typed +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/src/qodev_apollo_api/utils.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/__init__.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/integration/__init__.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/integration/validate_all_models.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/integration/validate_email_task_flow.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/test_client.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/test_exceptions.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/test_models.py +0 -0
- {qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/test_utils.py +0 -0
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.1] - 2026-07-08
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- `update_opportunity_roles(...)` now types its `roles` parameter as `list[RoleAssignment]` (a `TypedDict` with a required `contact_id` and optional `opportunity_contact_role_type_id` / `is_primary`) instead of the loose `list[dict]`, giving callers type checking and autocomplete. `RoleAssignment` is exported from the package root. Non-breaking — plain dicts still satisfy it structurally.
|
|
15
|
+
|
|
10
16
|
## [0.3.0] - 2026-07-08
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -63,6 +63,7 @@ from .models import (
|
|
|
63
63
|
PaginatedResponse,
|
|
64
64
|
PhoneEntry,
|
|
65
65
|
Pipeline,
|
|
66
|
+
RoleAssignment,
|
|
66
67
|
SortOrder,
|
|
67
68
|
Stage,
|
|
68
69
|
Task,
|
|
@@ -141,6 +142,7 @@ __all__ = [
|
|
|
141
142
|
"PhoneEntry",
|
|
142
143
|
"Pipeline",
|
|
143
144
|
"RateLimitError",
|
|
145
|
+
"RoleAssignment",
|
|
144
146
|
"SortOrder",
|
|
145
147
|
"Stage",
|
|
146
148
|
"Task",
|
|
@@ -33,6 +33,7 @@ from .models import (
|
|
|
33
33
|
OpportunityContactRoleType,
|
|
34
34
|
PaginatedResponse,
|
|
35
35
|
Pipeline,
|
|
36
|
+
RoleAssignment,
|
|
36
37
|
SortOrder,
|
|
37
38
|
Stage,
|
|
38
39
|
Task,
|
|
@@ -521,7 +522,9 @@ class ApolloClient:
|
|
|
521
522
|
page=1,
|
|
522
523
|
)
|
|
523
524
|
|
|
524
|
-
async def update_opportunity_roles(
|
|
525
|
+
async def update_opportunity_roles(
|
|
526
|
+
self, opportunity_id: str, roles: list[RoleAssignment]
|
|
527
|
+
) -> Deal:
|
|
525
528
|
"""Set the contact roles on a deal/opportunity (undocumented endpoint).
|
|
526
529
|
|
|
527
530
|
This **replaces** the full set of contact roles on the opportunity, so
|
|
@@ -9,7 +9,7 @@ from __future__ import annotations
|
|
|
9
9
|
from datetime import date, datetime
|
|
10
10
|
from decimal import Decimal
|
|
11
11
|
from enum import StrEnum
|
|
12
|
-
from typing import Annotated, Any, Generic, Literal, TypeAlias, TypeVar
|
|
12
|
+
from typing import Annotated, Any, Generic, Literal, NotRequired, TypeAlias, TypedDict, TypeVar
|
|
13
13
|
|
|
14
14
|
from pydantic import BaseModel, ConfigDict, Discriminator, Field, TypeAdapter, ValidationError
|
|
15
15
|
|
|
@@ -183,6 +183,18 @@ class OpportunityContactRole(ApolloModel):
|
|
|
183
183
|
updated_at: datetime | None = None
|
|
184
184
|
|
|
185
185
|
|
|
186
|
+
class RoleAssignment(TypedDict):
|
|
187
|
+
"""A single contact-role entry accepted by ``update_opportunity_roles``.
|
|
188
|
+
|
|
189
|
+
``contact_id`` is required; ``opportunity_contact_role_type_id`` and
|
|
190
|
+
``is_primary`` are optional.
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
contact_id: str
|
|
194
|
+
opportunity_contact_role_type_id: NotRequired[str | None]
|
|
195
|
+
is_primary: NotRequired[bool]
|
|
196
|
+
|
|
197
|
+
|
|
186
198
|
class OpportunityContactRoleType(ApolloModel):
|
|
187
199
|
"""Role type definition for opportunity contact roles (e.g., Decision Maker, Buyer)."""
|
|
188
200
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qodev_apollo_api-0.3.0 → qodev_apollo_api-0.3.1}/tests/integration/validate_email_task_flow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|