-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from apideck-libraries/speakeasy-sdk-regen-173…
…7099259 chore: 🐝 Update SDK - Generate 0.4.0
- Loading branch information
Showing
149 changed files
with
6,884 additions
and
2,142 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ with Apideck( | |
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", | ||
) as apideck: | ||
|
||
res = apideck.crm.activities.list(service_id="salesforce", filter_={ | ||
res = apideck.crm.activities.list(raw=False, service_id="salesforce", limit=20, filter_={ | ||
"updated_since": dateutil.parser.isoparse("2020-09-30T07:43:32.000Z"), | ||
}, sort={ | ||
"by": apideck_unify.ActivitiesSortBy.CREATED_AT, | ||
|
@@ -91,7 +91,7 @@ with Apideck( | |
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", | ||
) as apideck: | ||
|
||
res = apideck.crm.activities.create(type_=apideck_unify.ActivityType.MEETING, service_id="salesforce", activity_datetime="2021-05-01T12:00:00.000Z", duration_seconds=1800, user_id="12345", account_id="12345", contact_id="12345", company_id="12345", opportunity_id="12345", lead_id="12345", owner_id="12345", campaign_id="12345", case_id="12345", asset_id="12345", contract_id="12345", product_id="12345", solution_id="12345", custom_object_id="12345", title="Meeting", description="More info about the meeting", note="An internal note about the meeting", location="Space", location_address={ | ||
res = apideck.crm.activities.create(type_=apideck_unify.ActivityType.MEETING, raw=False, service_id="salesforce", activity_datetime="2021-05-01T12:00:00.000Z", duration_seconds=1800, user_id="12345", account_id="12345", contact_id="12345", company_id="12345", opportunity_id="12345", lead_id="12345", owner_id="12345", campaign_id="12345", case_id="12345", asset_id="12345", contract_id="12345", product_id="12345", solution_id="12345", custom_object_id="12345", title="Meeting", description="More info about the meeting", note="An internal note about the meeting", location="Space", location_address={ | ||
"id": "123", | ||
"type": apideck_unify.Type.PRIMARY, | ||
"string": "25 Spring Street, Blackburn, VIC 3130", | ||
|
@@ -121,6 +121,13 @@ with Apideck( | |
"id": "2389328923893298", | ||
"name": "employee_level", | ||
"description": "Employee Level", | ||
"value": {}, | ||
}, | ||
{ | ||
"id": "2389328923893298", | ||
"name": "employee_level", | ||
"description": "Employee Level", | ||
"value": True, | ||
}, | ||
], attendees=[ | ||
{ | ||
|
@@ -135,7 +142,35 @@ with Apideck( | |
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED, | ||
}, | ||
], pass_through=[ | ||
|
||
{ | ||
"service_id": "<id>", | ||
"extend_paths": [ | ||
{ | ||
"path": "$.nested.property", | ||
"value": { | ||
"TaxClassificationRef": { | ||
"value": "EUC-99990201-V1-00020000", | ||
}, | ||
}, | ||
}, | ||
{ | ||
"path": "$.nested.property", | ||
"value": { | ||
"TaxClassificationRef": { | ||
"value": "EUC-99990201-V1-00020000", | ||
}, | ||
}, | ||
}, | ||
{ | ||
"path": "$.nested.property", | ||
"value": { | ||
"TaxClassificationRef": { | ||
"value": "EUC-99990201-V1-00020000", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
]) | ||
|
||
assert res.create_activity_response is not None | ||
|
@@ -228,7 +263,7 @@ with Apideck( | |
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", | ||
) as apideck: | ||
|
||
res = apideck.crm.activities.get(id="<id>", service_id="salesforce", fields="id,updated_at") | ||
res = apideck.crm.activities.get(id="<id>", service_id="salesforce", raw=False, fields="id,updated_at") | ||
|
||
assert res.get_activity_response is not None | ||
|
||
|
@@ -279,7 +314,7 @@ with Apideck( | |
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", | ||
) as apideck: | ||
|
||
res = apideck.crm.activities.update(id="<id>", type_=apideck_unify.ActivityType.MEETING, service_id="salesforce", activity_datetime="2021-05-01T12:00:00.000Z", duration_seconds=1800, user_id="12345", account_id="12345", contact_id="12345", company_id="12345", opportunity_id="12345", lead_id="12345", owner_id="12345", campaign_id="12345", case_id="12345", asset_id="12345", contract_id="12345", product_id="12345", solution_id="12345", custom_object_id="12345", title="Meeting", description="More info about the meeting", note="An internal note about the meeting", location="Space", location_address={ | ||
res = apideck.crm.activities.update(id="<id>", type_=apideck_unify.ActivityType.MEETING, service_id="salesforce", raw=False, activity_datetime="2021-05-01T12:00:00.000Z", duration_seconds=1800, user_id="12345", account_id="12345", contact_id="12345", company_id="12345", opportunity_id="12345", lead_id="12345", owner_id="12345", campaign_id="12345", case_id="12345", asset_id="12345", contract_id="12345", product_id="12345", solution_id="12345", custom_object_id="12345", title="Meeting", description="More info about the meeting", note="An internal note about the meeting", location="Space", location_address={ | ||
"id": "123", | ||
"type": apideck_unify.Type.PRIMARY, | ||
"string": "25 Spring Street, Blackburn, VIC 3130", | ||
|
@@ -309,6 +344,7 @@ with Apideck( | |
"id": "2389328923893298", | ||
"name": "employee_level", | ||
"description": "Employee Level", | ||
"value": {}, | ||
}, | ||
{ | ||
"id": "2389328923893298", | ||
|
@@ -320,6 +356,10 @@ with Apideck( | |
"id": "2389328923893298", | ||
"name": "employee_level", | ||
"description": "Employee Level", | ||
"value": [ | ||
{}, | ||
{}, | ||
], | ||
}, | ||
], attendees=[ | ||
{ | ||
|
@@ -333,11 +373,29 @@ with Apideck( | |
"is_organizer": True, | ||
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED, | ||
}, | ||
{ | ||
"name": "Elon Musk", | ||
"first_name": "Elon", | ||
"middle_name": "D.", | ||
"last_name": "Musk", | ||
"prefix": "Mr.", | ||
"suffix": "PhD", | ||
"email_address": "[email protected]", | ||
"is_organizer": True, | ||
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED, | ||
}, | ||
], pass_through=[ | ||
{ | ||
"service_id": "<id>", | ||
"extend_paths": [ | ||
|
||
{ | ||
"path": "$.nested.property", | ||
"value": { | ||
"TaxClassificationRef": { | ||
"value": "EUC-99990201-V1-00020000", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
|
@@ -380,6 +438,14 @@ with Apideck( | |
}, | ||
}, | ||
}, | ||
{ | ||
"path": "$.nested.property", | ||
"value": { | ||
"TaxClassificationRef": { | ||
"value": "EUC-99990201-V1-00020000", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
]) | ||
|
@@ -475,7 +541,7 @@ with Apideck( | |
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", | ||
) as apideck: | ||
|
||
res = apideck.crm.activities.delete(id="<id>", service_id="salesforce") | ||
res = apideck.crm.activities.delete(id="<id>", service_id="salesforce", raw=False) | ||
|
||
assert res.delete_activity_response is not None | ||
|
||
|
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.