crisphive 0.1.0__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.
- crisphive-0.1.0/PKG-INFO +257 -0
- crisphive-0.1.0/README.md +233 -0
- crisphive-0.1.0/crisphive/__init__.py +127 -0
- crisphive-0.1.0/crisphive/api/__init__.py +11 -0
- crisphive-0.1.0/crisphive/api/business_skill_api.py +880 -0
- crisphive-0.1.0/crisphive/api/customer_api.py +1554 -0
- crisphive-0.1.0/crisphive/api/job_request_business_api.py +1937 -0
- crisphive-0.1.0/crisphive/api/job_types_api.py +567 -0
- crisphive-0.1.0/crisphive/api/service_area_api.py +590 -0
- crisphive-0.1.0/crisphive/api/technician_api.py +678 -0
- crisphive-0.1.0/crisphive/api/vehicle_api.py +641 -0
- crisphive-0.1.0/crisphive/api_client.py +797 -0
- crisphive-0.1.0/crisphive/api_response.py +21 -0
- crisphive-0.1.0/crisphive/configuration.py +575 -0
- crisphive-0.1.0/crisphive/exceptions.py +216 -0
- crisphive-0.1.0/crisphive/models/__init__.py +104 -0
- crisphive-0.1.0/crisphive/models/create_customer200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/create_job_request200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/customer.py +103 -0
- crisphive-0.1.0/crisphive/models/customer_address.py +103 -0
- crisphive-0.1.0/crisphive/models/customer_address_request.py +104 -0
- crisphive-0.1.0/crisphive/models/customer_contact.py +107 -0
- crisphive-0.1.0/crisphive/models/customer_create_request.py +116 -0
- crisphive-0.1.0/crisphive/models/customer_create_response.py +87 -0
- crisphive-0.1.0/crisphive/models/customer_list.py +105 -0
- crisphive-0.1.0/crisphive/models/customer_list_item.py +124 -0
- crisphive-0.1.0/crisphive/models/customer_profile.py +120 -0
- crisphive-0.1.0/crisphive/models/customer_spending.py +111 -0
- crisphive-0.1.0/crisphive/models/customer_tier_progress.py +91 -0
- crisphive-0.1.0/crisphive/models/customer_update_request.py +130 -0
- crisphive-0.1.0/crisphive/models/get_customer200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/get_job_request200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/get_job_request_timeline200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/get_job_type200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/get_service_area200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/get_technician200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/get_vehicle200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/job_date.py +98 -0
- crisphive-0.1.0/crisphive/models/job_date_business_range.py +95 -0
- crisphive-0.1.0/crisphive/models/job_date_period.py +38 -0
- crisphive-0.1.0/crisphive/models/job_date_period_entry.py +98 -0
- crisphive-0.1.0/crisphive/models/job_request.py +227 -0
- crisphive-0.1.0/crisphive/models/job_request_action_audit_by.py +99 -0
- crisphive-0.1.0/crisphive/models/job_request_action_audit_entry.py +95 -0
- crisphive-0.1.0/crisphive/models/job_request_action_summary.py +103 -0
- crisphive-0.1.0/crisphive/models/job_request_address_summary.py +103 -0
- crisphive-0.1.0/crisphive/models/job_request_archive_summary.py +94 -0
- crisphive-0.1.0/crisphive/models/job_request_arrival_window.py +91 -0
- crisphive-0.1.0/crisphive/models/job_request_assigned_vehicle.py +89 -0
- crisphive-0.1.0/crisphive/models/job_request_assignment_summary.py +100 -0
- crisphive-0.1.0/crisphive/models/job_request_booking_windows.py +101 -0
- crisphive-0.1.0/crisphive/models/job_request_business_time_range.py +104 -0
- crisphive-0.1.0/crisphive/models/job_request_changes.py +100 -0
- crisphive-0.1.0/crisphive/models/job_request_create_request.py +104 -0
- crisphive-0.1.0/crisphive/models/job_request_create_response.py +93 -0
- crisphive-0.1.0/crisphive/models/job_request_crew_member.py +134 -0
- crisphive-0.1.0/crisphive/models/job_request_customer_summary.py +93 -0
- crisphive-0.1.0/crisphive/models/job_request_day_windows.py +98 -0
- crisphive-0.1.0/crisphive/models/job_request_job_date_business_range_request.py +104 -0
- crisphive-0.1.0/crisphive/models/job_request_job_date_period_request.py +104 -0
- crisphive-0.1.0/crisphive/models/job_request_job_date_request.py +99 -0
- crisphive-0.1.0/crisphive/models/job_request_list.py +101 -0
- crisphive-0.1.0/crisphive/models/job_request_period.py +107 -0
- crisphive-0.1.0/crisphive/models/job_request_quote_summary.py +94 -0
- crisphive-0.1.0/crisphive/models/job_request_rating_summary.py +94 -0
- crisphive-0.1.0/crisphive/models/job_request_schedule.py +122 -0
- crisphive-0.1.0/crisphive/models/job_request_session.py +100 -0
- crisphive-0.1.0/crisphive/models/job_request_skill_summary.py +95 -0
- crisphive-0.1.0/crisphive/models/job_request_status_summary.py +89 -0
- crisphive-0.1.0/crisphive/models/job_request_technician_info.py +97 -0
- crisphive-0.1.0/crisphive/models/job_request_timeline.py +103 -0
- crisphive-0.1.0/crisphive/models/job_request_timeline_action.py +118 -0
- crisphive-0.1.0/crisphive/models/job_request_timeline_event.py +114 -0
- crisphive-0.1.0/crisphive/models/job_type.py +110 -0
- crisphive-0.1.0/crisphive/models/list_customers200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_job_request_booking_windows200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_job_request_changes200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_job_requests200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_job_types200_response.py +111 -0
- crisphive-0.1.0/crisphive/models/list_service_areas200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_skill_categories200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_skills200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_skills_by_category200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_technicians200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/list_vehicles200_response.py +107 -0
- crisphive-0.1.0/crisphive/models/pagination.py +95 -0
- crisphive-0.1.0/crisphive/models/response_envelope.py +108 -0
- crisphive-0.1.0/crisphive/models/service_area.py +108 -0
- crisphive-0.1.0/crisphive/models/service_area_list.py +101 -0
- crisphive-0.1.0/crisphive/models/skill.py +102 -0
- crisphive-0.1.0/crisphive/models/skill_by_category_list.py +101 -0
- crisphive-0.1.0/crisphive/models/skill_category.py +96 -0
- crisphive-0.1.0/crisphive/models/skill_category_list.py +101 -0
- crisphive-0.1.0/crisphive/models/skill_list.py +95 -0
- crisphive-0.1.0/crisphive/models/skill_summary.py +95 -0
- crisphive-0.1.0/crisphive/models/technician.py +175 -0
- crisphive-0.1.0/crisphive/models/technician_address.py +99 -0
- crisphive-0.1.0/crisphive/models/technician_lead_ref.py +89 -0
- crisphive-0.1.0/crisphive/models/technician_list.py +105 -0
- crisphive-0.1.0/crisphive/models/technician_service_area_ref.py +89 -0
- crisphive-0.1.0/crisphive/models/technician_status.py +38 -0
- crisphive-0.1.0/crisphive/models/vehicle.py +142 -0
- crisphive-0.1.0/crisphive/models/vehicle_list.py +106 -0
- crisphive-0.1.0/crisphive/models/vehicle_owner.py +89 -0
- crisphive-0.1.0/crisphive/py.typed +0 -0
- crisphive-0.1.0/crisphive/rest.py +257 -0
- crisphive-0.1.0/crisphive.egg-info/PKG-INFO +257 -0
- crisphive-0.1.0/crisphive.egg-info/SOURCES.txt +113 -0
- crisphive-0.1.0/crisphive.egg-info/dependency_links.txt +1 -0
- crisphive-0.1.0/crisphive.egg-info/requires.txt +4 -0
- crisphive-0.1.0/crisphive.egg-info/top_level.txt +1 -0
- crisphive-0.1.0/pyproject.toml +89 -0
- crisphive-0.1.0/setup.cfg +7 -0
- crisphive-0.1.0/setup.py +48 -0
crisphive-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: crisphive
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python SDK for the CrispHive API.
|
|
5
|
+
Home-page: https://github.com/crisphive/crisphive-python
|
|
6
|
+
Author: CrispHive
|
|
7
|
+
Author-email: developer@crisphive.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: crisphive,api,sdk
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: urllib3<3.0.0,>=1.25.3
|
|
12
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
13
|
+
Requires-Dist: pydantic>=2
|
|
14
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: author-email
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: keywords
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: summary
|
|
24
|
+
|
|
25
|
+
# crisphive
|
|
26
|
+
Public REST API for integrating CrispHive from your own backend. Authenticate every request with a secret API key as a Bearer token (`Authorization: Bearer chsk_live_…`). The key prefix selects the data environment: `chsk_live_…` → production (live), `chsk_test_…` → sandbox (isolated test).
|
|
27
|
+
|
|
28
|
+
**Key scopes (restricted keys).** A key is either *full-access* (can call every endpoint below) or *restricted* to a set of permission codes chosen at creation — the same codes as the dashboard permission grid (e.g. `customers_view`, `job_create`, `team_manage`). A restricted key calling an endpoint outside its scope gets `403`. The full code list is the permission catalog (`GET /permission/modules` on the dashboard API). Create, scope, and revoke keys from the business dashboard.
|
|
29
|
+
|
|
30
|
+
Every response is wrapped in the envelope `{ \"error_code\": 0, \"message\": \"Success\", \"data\": <payload> }`.
|
|
31
|
+
|
|
32
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
33
|
+
|
|
34
|
+
- API version: 1.0
|
|
35
|
+
- Package version: 0.1.0
|
|
36
|
+
- Generator version: 7.11.0
|
|
37
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
38
|
+
|
|
39
|
+
## Requirements.
|
|
40
|
+
|
|
41
|
+
Python 3.8+
|
|
42
|
+
|
|
43
|
+
## Installation & Usage
|
|
44
|
+
### pip install
|
|
45
|
+
|
|
46
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pip install git+https://github.com/crisphive/crisphive-python.git
|
|
50
|
+
```
|
|
51
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/crisphive/crisphive-python.git`)
|
|
52
|
+
|
|
53
|
+
Then import the package:
|
|
54
|
+
```python
|
|
55
|
+
import crisphive
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Setuptools
|
|
59
|
+
|
|
60
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
python setup.py install --user
|
|
64
|
+
```
|
|
65
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
66
|
+
|
|
67
|
+
Then import the package:
|
|
68
|
+
```python
|
|
69
|
+
import crisphive
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Tests
|
|
73
|
+
|
|
74
|
+
Execute `pytest` to run the tests.
|
|
75
|
+
|
|
76
|
+
## Getting Started
|
|
77
|
+
|
|
78
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
|
|
82
|
+
import crisphive
|
|
83
|
+
from crisphive.rest import ApiException
|
|
84
|
+
from pprint import pprint
|
|
85
|
+
|
|
86
|
+
# Defining the host is optional and defaults to https://api.crisphive.com/v1
|
|
87
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
88
|
+
configuration = crisphive.Configuration(
|
|
89
|
+
host = "https://api.crisphive.com/v1"
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
# The client must configure the authentication and authorization parameters
|
|
93
|
+
# in accordance with the API server security policy.
|
|
94
|
+
# Examples for each auth method are provided below, use the example that
|
|
95
|
+
# satisfies your auth use case.
|
|
96
|
+
|
|
97
|
+
# Configure Bearer authorization (CrispHive secret key): ApiKeyAuth
|
|
98
|
+
configuration = crisphive.Configuration(
|
|
99
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# Enter a context with an instance of the API client
|
|
104
|
+
with crisphive.ApiClient(configuration) as api_client:
|
|
105
|
+
# Create an instance of the API class
|
|
106
|
+
api_instance = crisphive.BusinessSkillApi(api_client)
|
|
107
|
+
page = 56 # int | Page number (default: 1) (optional)
|
|
108
|
+
limit = 56 # int | Page size (default: 15, max: 1000) (optional)
|
|
109
|
+
|
|
110
|
+
try:
|
|
111
|
+
# List skill categories
|
|
112
|
+
api_response = api_instance.list_skill_categories(page=page, limit=limit)
|
|
113
|
+
print("The response of BusinessSkillApi->list_skill_categories:\n")
|
|
114
|
+
pprint(api_response)
|
|
115
|
+
except ApiException as e:
|
|
116
|
+
print("Exception when calling BusinessSkillApi->list_skill_categories: %s\n" % e)
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Documentation for API Endpoints
|
|
121
|
+
|
|
122
|
+
All URIs are relative to *https://api.crisphive.com/v1*
|
|
123
|
+
|
|
124
|
+
Class | Method | HTTP request | Description
|
|
125
|
+
------------ | ------------- | ------------- | -------------
|
|
126
|
+
*BusinessSkillApi* | [**list_skill_categories**](docs/BusinessSkillApi.md#list_skill_categories) | **GET** /skill-categories | List skill categories
|
|
127
|
+
*BusinessSkillApi* | [**list_skills**](docs/BusinessSkillApi.md#list_skills) | **GET** /skills | List all skills
|
|
128
|
+
*BusinessSkillApi* | [**list_skills_by_category**](docs/BusinessSkillApi.md#list_skills_by_category) | **GET** /skill-categories/{id}/skills | List skills in a category
|
|
129
|
+
*CustomerApi* | [**create_customer**](docs/CustomerApi.md#create_customer) | **POST** /customers | Create a customer
|
|
130
|
+
*CustomerApi* | [**delete_customer**](docs/CustomerApi.md#delete_customer) | **DELETE** /customers/{id} | Delete a customer
|
|
131
|
+
*CustomerApi* | [**get_customer**](docs/CustomerApi.md#get_customer) | **GET** /customers/{id} | Get a customer
|
|
132
|
+
*CustomerApi* | [**list_customers**](docs/CustomerApi.md#list_customers) | **GET** /customers | List customers
|
|
133
|
+
*CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | **PUT** /customers/{id} | Update a customer
|
|
134
|
+
*JobRequestBusinessApi* | [**create_job_request**](docs/JobRequestBusinessApi.md#create_job_request) | **POST** /job-requests | Create a job request (business actor)
|
|
135
|
+
*JobRequestBusinessApi* | [**get_job_request**](docs/JobRequestBusinessApi.md#get_job_request) | **GET** /job-requests/{id} | Get a job request
|
|
136
|
+
*JobRequestBusinessApi* | [**get_job_request_timeline**](docs/JobRequestBusinessApi.md#get_job_request_timeline) | **GET** /job-requests/{id}/timeline | Job timeline (business surface — also serves tech via BusinessAuth)
|
|
137
|
+
*JobRequestBusinessApi* | [**list_job_request_booking_windows**](docs/JobRequestBusinessApi.md#list_job_request_booking_windows) | **GET** /job-requests/booking-windows | Booking availability (business actor)
|
|
138
|
+
*JobRequestBusinessApi* | [**list_job_request_changes**](docs/JobRequestBusinessApi.md#list_job_request_changes) | **GET** /job-requests/changes | Poll for new & changed job requests (sync feed)
|
|
139
|
+
*JobRequestBusinessApi* | [**list_job_requests**](docs/JobRequestBusinessApi.md#list_job_requests) | **GET** /job-requests | List job requests
|
|
140
|
+
*JobTypesApi* | [**get_job_type**](docs/JobTypesApi.md#get_job_type) | **GET** /job-types/{id} | Get a job type
|
|
141
|
+
*JobTypesApi* | [**list_job_types**](docs/JobTypesApi.md#list_job_types) | **GET** /job-types | List job types
|
|
142
|
+
*ServiceAreaApi* | [**get_service_area**](docs/ServiceAreaApi.md#get_service_area) | **GET** /service-areas/{id} | Get a service area
|
|
143
|
+
*ServiceAreaApi* | [**list_service_areas**](docs/ServiceAreaApi.md#list_service_areas) | **GET** /service-areas | List service areas
|
|
144
|
+
*TechnicianApi* | [**get_technician**](docs/TechnicianApi.md#get_technician) | **GET** /technicians/{id} | Get a technician
|
|
145
|
+
*TechnicianApi* | [**list_technicians**](docs/TechnicianApi.md#list_technicians) | **GET** /technicians | List technicians
|
|
146
|
+
*VehicleApi* | [**get_vehicle**](docs/VehicleApi.md#get_vehicle) | **GET** /vehicles/{id} | Get a vehicle
|
|
147
|
+
*VehicleApi* | [**list_vehicles**](docs/VehicleApi.md#list_vehicles) | **GET** /vehicles | List vehicles
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## Documentation For Models
|
|
151
|
+
|
|
152
|
+
- [CreateCustomer200Response](docs/CreateCustomer200Response.md)
|
|
153
|
+
- [CreateJobRequest200Response](docs/CreateJobRequest200Response.md)
|
|
154
|
+
- [Customer](docs/Customer.md)
|
|
155
|
+
- [CustomerAddress](docs/CustomerAddress.md)
|
|
156
|
+
- [CustomerAddressRequest](docs/CustomerAddressRequest.md)
|
|
157
|
+
- [CustomerContact](docs/CustomerContact.md)
|
|
158
|
+
- [CustomerCreateRequest](docs/CustomerCreateRequest.md)
|
|
159
|
+
- [CustomerCreateResponse](docs/CustomerCreateResponse.md)
|
|
160
|
+
- [CustomerList](docs/CustomerList.md)
|
|
161
|
+
- [CustomerListItem](docs/CustomerListItem.md)
|
|
162
|
+
- [CustomerProfile](docs/CustomerProfile.md)
|
|
163
|
+
- [CustomerSpending](docs/CustomerSpending.md)
|
|
164
|
+
- [CustomerTierProgress](docs/CustomerTierProgress.md)
|
|
165
|
+
- [CustomerUpdateRequest](docs/CustomerUpdateRequest.md)
|
|
166
|
+
- [GetCustomer200Response](docs/GetCustomer200Response.md)
|
|
167
|
+
- [GetJobRequest200Response](docs/GetJobRequest200Response.md)
|
|
168
|
+
- [GetJobRequestTimeline200Response](docs/GetJobRequestTimeline200Response.md)
|
|
169
|
+
- [GetJobType200Response](docs/GetJobType200Response.md)
|
|
170
|
+
- [GetServiceArea200Response](docs/GetServiceArea200Response.md)
|
|
171
|
+
- [GetTechnician200Response](docs/GetTechnician200Response.md)
|
|
172
|
+
- [GetVehicle200Response](docs/GetVehicle200Response.md)
|
|
173
|
+
- [JobDate](docs/JobDate.md)
|
|
174
|
+
- [JobDateBusinessRange](docs/JobDateBusinessRange.md)
|
|
175
|
+
- [JobDatePeriod](docs/JobDatePeriod.md)
|
|
176
|
+
- [JobDatePeriodEntry](docs/JobDatePeriodEntry.md)
|
|
177
|
+
- [JobRequest](docs/JobRequest.md)
|
|
178
|
+
- [JobRequestActionAuditBy](docs/JobRequestActionAuditBy.md)
|
|
179
|
+
- [JobRequestActionAuditEntry](docs/JobRequestActionAuditEntry.md)
|
|
180
|
+
- [JobRequestActionSummary](docs/JobRequestActionSummary.md)
|
|
181
|
+
- [JobRequestAddressSummary](docs/JobRequestAddressSummary.md)
|
|
182
|
+
- [JobRequestArchiveSummary](docs/JobRequestArchiveSummary.md)
|
|
183
|
+
- [JobRequestArrivalWindow](docs/JobRequestArrivalWindow.md)
|
|
184
|
+
- [JobRequestAssignedVehicle](docs/JobRequestAssignedVehicle.md)
|
|
185
|
+
- [JobRequestAssignmentSummary](docs/JobRequestAssignmentSummary.md)
|
|
186
|
+
- [JobRequestBookingWindows](docs/JobRequestBookingWindows.md)
|
|
187
|
+
- [JobRequestBusinessTimeRange](docs/JobRequestBusinessTimeRange.md)
|
|
188
|
+
- [JobRequestChanges](docs/JobRequestChanges.md)
|
|
189
|
+
- [JobRequestCreateRequest](docs/JobRequestCreateRequest.md)
|
|
190
|
+
- [JobRequestCreateResponse](docs/JobRequestCreateResponse.md)
|
|
191
|
+
- [JobRequestCrewMember](docs/JobRequestCrewMember.md)
|
|
192
|
+
- [JobRequestCustomerSummary](docs/JobRequestCustomerSummary.md)
|
|
193
|
+
- [JobRequestDayWindows](docs/JobRequestDayWindows.md)
|
|
194
|
+
- [JobRequestJobDateBusinessRangeRequest](docs/JobRequestJobDateBusinessRangeRequest.md)
|
|
195
|
+
- [JobRequestJobDatePeriodRequest](docs/JobRequestJobDatePeriodRequest.md)
|
|
196
|
+
- [JobRequestJobDateRequest](docs/JobRequestJobDateRequest.md)
|
|
197
|
+
- [JobRequestList](docs/JobRequestList.md)
|
|
198
|
+
- [JobRequestPeriod](docs/JobRequestPeriod.md)
|
|
199
|
+
- [JobRequestQuoteSummary](docs/JobRequestQuoteSummary.md)
|
|
200
|
+
- [JobRequestRatingSummary](docs/JobRequestRatingSummary.md)
|
|
201
|
+
- [JobRequestSchedule](docs/JobRequestSchedule.md)
|
|
202
|
+
- [JobRequestSession](docs/JobRequestSession.md)
|
|
203
|
+
- [JobRequestSkillSummary](docs/JobRequestSkillSummary.md)
|
|
204
|
+
- [JobRequestStatusSummary](docs/JobRequestStatusSummary.md)
|
|
205
|
+
- [JobRequestTechnicianInfo](docs/JobRequestTechnicianInfo.md)
|
|
206
|
+
- [JobRequestTimeline](docs/JobRequestTimeline.md)
|
|
207
|
+
- [JobRequestTimelineAction](docs/JobRequestTimelineAction.md)
|
|
208
|
+
- [JobRequestTimelineEvent](docs/JobRequestTimelineEvent.md)
|
|
209
|
+
- [JobType](docs/JobType.md)
|
|
210
|
+
- [ListCustomers200Response](docs/ListCustomers200Response.md)
|
|
211
|
+
- [ListJobRequestBookingWindows200Response](docs/ListJobRequestBookingWindows200Response.md)
|
|
212
|
+
- [ListJobRequestChanges200Response](docs/ListJobRequestChanges200Response.md)
|
|
213
|
+
- [ListJobRequests200Response](docs/ListJobRequests200Response.md)
|
|
214
|
+
- [ListJobTypes200Response](docs/ListJobTypes200Response.md)
|
|
215
|
+
- [ListServiceAreas200Response](docs/ListServiceAreas200Response.md)
|
|
216
|
+
- [ListSkillCategories200Response](docs/ListSkillCategories200Response.md)
|
|
217
|
+
- [ListSkills200Response](docs/ListSkills200Response.md)
|
|
218
|
+
- [ListSkillsByCategory200Response](docs/ListSkillsByCategory200Response.md)
|
|
219
|
+
- [ListTechnicians200Response](docs/ListTechnicians200Response.md)
|
|
220
|
+
- [ListVehicles200Response](docs/ListVehicles200Response.md)
|
|
221
|
+
- [Pagination](docs/Pagination.md)
|
|
222
|
+
- [ResponseEnvelope](docs/ResponseEnvelope.md)
|
|
223
|
+
- [ServiceArea](docs/ServiceArea.md)
|
|
224
|
+
- [ServiceAreaList](docs/ServiceAreaList.md)
|
|
225
|
+
- [Skill](docs/Skill.md)
|
|
226
|
+
- [SkillByCategoryList](docs/SkillByCategoryList.md)
|
|
227
|
+
- [SkillCategory](docs/SkillCategory.md)
|
|
228
|
+
- [SkillCategoryList](docs/SkillCategoryList.md)
|
|
229
|
+
- [SkillList](docs/SkillList.md)
|
|
230
|
+
- [SkillSummary](docs/SkillSummary.md)
|
|
231
|
+
- [Technician](docs/Technician.md)
|
|
232
|
+
- [TechnicianAddress](docs/TechnicianAddress.md)
|
|
233
|
+
- [TechnicianLeadRef](docs/TechnicianLeadRef.md)
|
|
234
|
+
- [TechnicianList](docs/TechnicianList.md)
|
|
235
|
+
- [TechnicianServiceAreaRef](docs/TechnicianServiceAreaRef.md)
|
|
236
|
+
- [TechnicianStatus](docs/TechnicianStatus.md)
|
|
237
|
+
- [Vehicle](docs/Vehicle.md)
|
|
238
|
+
- [VehicleList](docs/VehicleList.md)
|
|
239
|
+
- [VehicleOwner](docs/VehicleOwner.md)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
<a id="documentation-for-authorization"></a>
|
|
243
|
+
## Documentation For Authorization
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
Authentication schemes defined for the API:
|
|
247
|
+
<a id="ApiKeyAuth"></a>
|
|
248
|
+
### ApiKeyAuth
|
|
249
|
+
|
|
250
|
+
- **Type**: Bearer authentication (CrispHive secret key)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
## Author
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# crisphive
|
|
2
|
+
Public REST API for integrating CrispHive from your own backend. Authenticate every request with a secret API key as a Bearer token (`Authorization: Bearer chsk_live_…`). The key prefix selects the data environment: `chsk_live_…` → production (live), `chsk_test_…` → sandbox (isolated test).
|
|
3
|
+
|
|
4
|
+
**Key scopes (restricted keys).** A key is either *full-access* (can call every endpoint below) or *restricted* to a set of permission codes chosen at creation — the same codes as the dashboard permission grid (e.g. `customers_view`, `job_create`, `team_manage`). A restricted key calling an endpoint outside its scope gets `403`. The full code list is the permission catalog (`GET /permission/modules` on the dashboard API). Create, scope, and revoke keys from the business dashboard.
|
|
5
|
+
|
|
6
|
+
Every response is wrapped in the envelope `{ \"error_code\": 0, \"message\": \"Success\", \"data\": <payload> }`.
|
|
7
|
+
|
|
8
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
9
|
+
|
|
10
|
+
- API version: 1.0
|
|
11
|
+
- Package version: 0.1.0
|
|
12
|
+
- Generator version: 7.11.0
|
|
13
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
14
|
+
|
|
15
|
+
## Requirements.
|
|
16
|
+
|
|
17
|
+
Python 3.8+
|
|
18
|
+
|
|
19
|
+
## Installation & Usage
|
|
20
|
+
### pip install
|
|
21
|
+
|
|
22
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
pip install git+https://github.com/crisphive/crisphive-python.git
|
|
26
|
+
```
|
|
27
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/crisphive/crisphive-python.git`)
|
|
28
|
+
|
|
29
|
+
Then import the package:
|
|
30
|
+
```python
|
|
31
|
+
import crisphive
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Setuptools
|
|
35
|
+
|
|
36
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
python setup.py install --user
|
|
40
|
+
```
|
|
41
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
42
|
+
|
|
43
|
+
Then import the package:
|
|
44
|
+
```python
|
|
45
|
+
import crisphive
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Tests
|
|
49
|
+
|
|
50
|
+
Execute `pytest` to run the tests.
|
|
51
|
+
|
|
52
|
+
## Getting Started
|
|
53
|
+
|
|
54
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
|
|
58
|
+
import crisphive
|
|
59
|
+
from crisphive.rest import ApiException
|
|
60
|
+
from pprint import pprint
|
|
61
|
+
|
|
62
|
+
# Defining the host is optional and defaults to https://api.crisphive.com/v1
|
|
63
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
64
|
+
configuration = crisphive.Configuration(
|
|
65
|
+
host = "https://api.crisphive.com/v1"
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
# The client must configure the authentication and authorization parameters
|
|
69
|
+
# in accordance with the API server security policy.
|
|
70
|
+
# Examples for each auth method are provided below, use the example that
|
|
71
|
+
# satisfies your auth use case.
|
|
72
|
+
|
|
73
|
+
# Configure Bearer authorization (CrispHive secret key): ApiKeyAuth
|
|
74
|
+
configuration = crisphive.Configuration(
|
|
75
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# Enter a context with an instance of the API client
|
|
80
|
+
with crisphive.ApiClient(configuration) as api_client:
|
|
81
|
+
# Create an instance of the API class
|
|
82
|
+
api_instance = crisphive.BusinessSkillApi(api_client)
|
|
83
|
+
page = 56 # int | Page number (default: 1) (optional)
|
|
84
|
+
limit = 56 # int | Page size (default: 15, max: 1000) (optional)
|
|
85
|
+
|
|
86
|
+
try:
|
|
87
|
+
# List skill categories
|
|
88
|
+
api_response = api_instance.list_skill_categories(page=page, limit=limit)
|
|
89
|
+
print("The response of BusinessSkillApi->list_skill_categories:\n")
|
|
90
|
+
pprint(api_response)
|
|
91
|
+
except ApiException as e:
|
|
92
|
+
print("Exception when calling BusinessSkillApi->list_skill_categories: %s\n" % e)
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Documentation for API Endpoints
|
|
97
|
+
|
|
98
|
+
All URIs are relative to *https://api.crisphive.com/v1*
|
|
99
|
+
|
|
100
|
+
Class | Method | HTTP request | Description
|
|
101
|
+
------------ | ------------- | ------------- | -------------
|
|
102
|
+
*BusinessSkillApi* | [**list_skill_categories**](docs/BusinessSkillApi.md#list_skill_categories) | **GET** /skill-categories | List skill categories
|
|
103
|
+
*BusinessSkillApi* | [**list_skills**](docs/BusinessSkillApi.md#list_skills) | **GET** /skills | List all skills
|
|
104
|
+
*BusinessSkillApi* | [**list_skills_by_category**](docs/BusinessSkillApi.md#list_skills_by_category) | **GET** /skill-categories/{id}/skills | List skills in a category
|
|
105
|
+
*CustomerApi* | [**create_customer**](docs/CustomerApi.md#create_customer) | **POST** /customers | Create a customer
|
|
106
|
+
*CustomerApi* | [**delete_customer**](docs/CustomerApi.md#delete_customer) | **DELETE** /customers/{id} | Delete a customer
|
|
107
|
+
*CustomerApi* | [**get_customer**](docs/CustomerApi.md#get_customer) | **GET** /customers/{id} | Get a customer
|
|
108
|
+
*CustomerApi* | [**list_customers**](docs/CustomerApi.md#list_customers) | **GET** /customers | List customers
|
|
109
|
+
*CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | **PUT** /customers/{id} | Update a customer
|
|
110
|
+
*JobRequestBusinessApi* | [**create_job_request**](docs/JobRequestBusinessApi.md#create_job_request) | **POST** /job-requests | Create a job request (business actor)
|
|
111
|
+
*JobRequestBusinessApi* | [**get_job_request**](docs/JobRequestBusinessApi.md#get_job_request) | **GET** /job-requests/{id} | Get a job request
|
|
112
|
+
*JobRequestBusinessApi* | [**get_job_request_timeline**](docs/JobRequestBusinessApi.md#get_job_request_timeline) | **GET** /job-requests/{id}/timeline | Job timeline (business surface — also serves tech via BusinessAuth)
|
|
113
|
+
*JobRequestBusinessApi* | [**list_job_request_booking_windows**](docs/JobRequestBusinessApi.md#list_job_request_booking_windows) | **GET** /job-requests/booking-windows | Booking availability (business actor)
|
|
114
|
+
*JobRequestBusinessApi* | [**list_job_request_changes**](docs/JobRequestBusinessApi.md#list_job_request_changes) | **GET** /job-requests/changes | Poll for new & changed job requests (sync feed)
|
|
115
|
+
*JobRequestBusinessApi* | [**list_job_requests**](docs/JobRequestBusinessApi.md#list_job_requests) | **GET** /job-requests | List job requests
|
|
116
|
+
*JobTypesApi* | [**get_job_type**](docs/JobTypesApi.md#get_job_type) | **GET** /job-types/{id} | Get a job type
|
|
117
|
+
*JobTypesApi* | [**list_job_types**](docs/JobTypesApi.md#list_job_types) | **GET** /job-types | List job types
|
|
118
|
+
*ServiceAreaApi* | [**get_service_area**](docs/ServiceAreaApi.md#get_service_area) | **GET** /service-areas/{id} | Get a service area
|
|
119
|
+
*ServiceAreaApi* | [**list_service_areas**](docs/ServiceAreaApi.md#list_service_areas) | **GET** /service-areas | List service areas
|
|
120
|
+
*TechnicianApi* | [**get_technician**](docs/TechnicianApi.md#get_technician) | **GET** /technicians/{id} | Get a technician
|
|
121
|
+
*TechnicianApi* | [**list_technicians**](docs/TechnicianApi.md#list_technicians) | **GET** /technicians | List technicians
|
|
122
|
+
*VehicleApi* | [**get_vehicle**](docs/VehicleApi.md#get_vehicle) | **GET** /vehicles/{id} | Get a vehicle
|
|
123
|
+
*VehicleApi* | [**list_vehicles**](docs/VehicleApi.md#list_vehicles) | **GET** /vehicles | List vehicles
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## Documentation For Models
|
|
127
|
+
|
|
128
|
+
- [CreateCustomer200Response](docs/CreateCustomer200Response.md)
|
|
129
|
+
- [CreateJobRequest200Response](docs/CreateJobRequest200Response.md)
|
|
130
|
+
- [Customer](docs/Customer.md)
|
|
131
|
+
- [CustomerAddress](docs/CustomerAddress.md)
|
|
132
|
+
- [CustomerAddressRequest](docs/CustomerAddressRequest.md)
|
|
133
|
+
- [CustomerContact](docs/CustomerContact.md)
|
|
134
|
+
- [CustomerCreateRequest](docs/CustomerCreateRequest.md)
|
|
135
|
+
- [CustomerCreateResponse](docs/CustomerCreateResponse.md)
|
|
136
|
+
- [CustomerList](docs/CustomerList.md)
|
|
137
|
+
- [CustomerListItem](docs/CustomerListItem.md)
|
|
138
|
+
- [CustomerProfile](docs/CustomerProfile.md)
|
|
139
|
+
- [CustomerSpending](docs/CustomerSpending.md)
|
|
140
|
+
- [CustomerTierProgress](docs/CustomerTierProgress.md)
|
|
141
|
+
- [CustomerUpdateRequest](docs/CustomerUpdateRequest.md)
|
|
142
|
+
- [GetCustomer200Response](docs/GetCustomer200Response.md)
|
|
143
|
+
- [GetJobRequest200Response](docs/GetJobRequest200Response.md)
|
|
144
|
+
- [GetJobRequestTimeline200Response](docs/GetJobRequestTimeline200Response.md)
|
|
145
|
+
- [GetJobType200Response](docs/GetJobType200Response.md)
|
|
146
|
+
- [GetServiceArea200Response](docs/GetServiceArea200Response.md)
|
|
147
|
+
- [GetTechnician200Response](docs/GetTechnician200Response.md)
|
|
148
|
+
- [GetVehicle200Response](docs/GetVehicle200Response.md)
|
|
149
|
+
- [JobDate](docs/JobDate.md)
|
|
150
|
+
- [JobDateBusinessRange](docs/JobDateBusinessRange.md)
|
|
151
|
+
- [JobDatePeriod](docs/JobDatePeriod.md)
|
|
152
|
+
- [JobDatePeriodEntry](docs/JobDatePeriodEntry.md)
|
|
153
|
+
- [JobRequest](docs/JobRequest.md)
|
|
154
|
+
- [JobRequestActionAuditBy](docs/JobRequestActionAuditBy.md)
|
|
155
|
+
- [JobRequestActionAuditEntry](docs/JobRequestActionAuditEntry.md)
|
|
156
|
+
- [JobRequestActionSummary](docs/JobRequestActionSummary.md)
|
|
157
|
+
- [JobRequestAddressSummary](docs/JobRequestAddressSummary.md)
|
|
158
|
+
- [JobRequestArchiveSummary](docs/JobRequestArchiveSummary.md)
|
|
159
|
+
- [JobRequestArrivalWindow](docs/JobRequestArrivalWindow.md)
|
|
160
|
+
- [JobRequestAssignedVehicle](docs/JobRequestAssignedVehicle.md)
|
|
161
|
+
- [JobRequestAssignmentSummary](docs/JobRequestAssignmentSummary.md)
|
|
162
|
+
- [JobRequestBookingWindows](docs/JobRequestBookingWindows.md)
|
|
163
|
+
- [JobRequestBusinessTimeRange](docs/JobRequestBusinessTimeRange.md)
|
|
164
|
+
- [JobRequestChanges](docs/JobRequestChanges.md)
|
|
165
|
+
- [JobRequestCreateRequest](docs/JobRequestCreateRequest.md)
|
|
166
|
+
- [JobRequestCreateResponse](docs/JobRequestCreateResponse.md)
|
|
167
|
+
- [JobRequestCrewMember](docs/JobRequestCrewMember.md)
|
|
168
|
+
- [JobRequestCustomerSummary](docs/JobRequestCustomerSummary.md)
|
|
169
|
+
- [JobRequestDayWindows](docs/JobRequestDayWindows.md)
|
|
170
|
+
- [JobRequestJobDateBusinessRangeRequest](docs/JobRequestJobDateBusinessRangeRequest.md)
|
|
171
|
+
- [JobRequestJobDatePeriodRequest](docs/JobRequestJobDatePeriodRequest.md)
|
|
172
|
+
- [JobRequestJobDateRequest](docs/JobRequestJobDateRequest.md)
|
|
173
|
+
- [JobRequestList](docs/JobRequestList.md)
|
|
174
|
+
- [JobRequestPeriod](docs/JobRequestPeriod.md)
|
|
175
|
+
- [JobRequestQuoteSummary](docs/JobRequestQuoteSummary.md)
|
|
176
|
+
- [JobRequestRatingSummary](docs/JobRequestRatingSummary.md)
|
|
177
|
+
- [JobRequestSchedule](docs/JobRequestSchedule.md)
|
|
178
|
+
- [JobRequestSession](docs/JobRequestSession.md)
|
|
179
|
+
- [JobRequestSkillSummary](docs/JobRequestSkillSummary.md)
|
|
180
|
+
- [JobRequestStatusSummary](docs/JobRequestStatusSummary.md)
|
|
181
|
+
- [JobRequestTechnicianInfo](docs/JobRequestTechnicianInfo.md)
|
|
182
|
+
- [JobRequestTimeline](docs/JobRequestTimeline.md)
|
|
183
|
+
- [JobRequestTimelineAction](docs/JobRequestTimelineAction.md)
|
|
184
|
+
- [JobRequestTimelineEvent](docs/JobRequestTimelineEvent.md)
|
|
185
|
+
- [JobType](docs/JobType.md)
|
|
186
|
+
- [ListCustomers200Response](docs/ListCustomers200Response.md)
|
|
187
|
+
- [ListJobRequestBookingWindows200Response](docs/ListJobRequestBookingWindows200Response.md)
|
|
188
|
+
- [ListJobRequestChanges200Response](docs/ListJobRequestChanges200Response.md)
|
|
189
|
+
- [ListJobRequests200Response](docs/ListJobRequests200Response.md)
|
|
190
|
+
- [ListJobTypes200Response](docs/ListJobTypes200Response.md)
|
|
191
|
+
- [ListServiceAreas200Response](docs/ListServiceAreas200Response.md)
|
|
192
|
+
- [ListSkillCategories200Response](docs/ListSkillCategories200Response.md)
|
|
193
|
+
- [ListSkills200Response](docs/ListSkills200Response.md)
|
|
194
|
+
- [ListSkillsByCategory200Response](docs/ListSkillsByCategory200Response.md)
|
|
195
|
+
- [ListTechnicians200Response](docs/ListTechnicians200Response.md)
|
|
196
|
+
- [ListVehicles200Response](docs/ListVehicles200Response.md)
|
|
197
|
+
- [Pagination](docs/Pagination.md)
|
|
198
|
+
- [ResponseEnvelope](docs/ResponseEnvelope.md)
|
|
199
|
+
- [ServiceArea](docs/ServiceArea.md)
|
|
200
|
+
- [ServiceAreaList](docs/ServiceAreaList.md)
|
|
201
|
+
- [Skill](docs/Skill.md)
|
|
202
|
+
- [SkillByCategoryList](docs/SkillByCategoryList.md)
|
|
203
|
+
- [SkillCategory](docs/SkillCategory.md)
|
|
204
|
+
- [SkillCategoryList](docs/SkillCategoryList.md)
|
|
205
|
+
- [SkillList](docs/SkillList.md)
|
|
206
|
+
- [SkillSummary](docs/SkillSummary.md)
|
|
207
|
+
- [Technician](docs/Technician.md)
|
|
208
|
+
- [TechnicianAddress](docs/TechnicianAddress.md)
|
|
209
|
+
- [TechnicianLeadRef](docs/TechnicianLeadRef.md)
|
|
210
|
+
- [TechnicianList](docs/TechnicianList.md)
|
|
211
|
+
- [TechnicianServiceAreaRef](docs/TechnicianServiceAreaRef.md)
|
|
212
|
+
- [TechnicianStatus](docs/TechnicianStatus.md)
|
|
213
|
+
- [Vehicle](docs/Vehicle.md)
|
|
214
|
+
- [VehicleList](docs/VehicleList.md)
|
|
215
|
+
- [VehicleOwner](docs/VehicleOwner.md)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
<a id="documentation-for-authorization"></a>
|
|
219
|
+
## Documentation For Authorization
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
Authentication schemes defined for the API:
|
|
223
|
+
<a id="ApiKeyAuth"></a>
|
|
224
|
+
### ApiKeyAuth
|
|
225
|
+
|
|
226
|
+
- **Type**: Bearer authentication (CrispHive secret key)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## Author
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
CrispHive Developer API
|
|
7
|
+
|
|
8
|
+
Public REST API for integrating CrispHive from your own backend. Authenticate every request with a secret API key as a Bearer token (`Authorization: Bearer chsk_live_…`). The key prefix selects the data environment: `chsk_live_…` → production (live), `chsk_test_…` → sandbox (isolated test). **Key scopes (restricted keys).** A key is either *full-access* (can call every endpoint below) or *restricted* to a set of permission codes chosen at creation — the same codes as the dashboard permission grid (e.g. `customers_view`, `job_create`, `team_manage`). A restricted key calling an endpoint outside its scope gets `403`. The full code list is the permission catalog (`GET /permission/modules` on the dashboard API). Create, scope, and revoke keys from the business dashboard. Every response is wrapped in the envelope `{ \"error_code\": 0, \"message\": \"Success\", \"data\": <payload> }`.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "0.1.0"
|
|
18
|
+
|
|
19
|
+
# import apis into sdk package
|
|
20
|
+
from crisphive.api.business_skill_api import BusinessSkillApi
|
|
21
|
+
from crisphive.api.customer_api import CustomerApi
|
|
22
|
+
from crisphive.api.job_request_business_api import JobRequestBusinessApi
|
|
23
|
+
from crisphive.api.job_types_api import JobTypesApi
|
|
24
|
+
from crisphive.api.service_area_api import ServiceAreaApi
|
|
25
|
+
from crisphive.api.technician_api import TechnicianApi
|
|
26
|
+
from crisphive.api.vehicle_api import VehicleApi
|
|
27
|
+
|
|
28
|
+
# import ApiClient
|
|
29
|
+
from crisphive.api_response import ApiResponse
|
|
30
|
+
from crisphive.api_client import ApiClient
|
|
31
|
+
from crisphive.configuration import Configuration
|
|
32
|
+
from crisphive.exceptions import OpenApiException
|
|
33
|
+
from crisphive.exceptions import ApiTypeError
|
|
34
|
+
from crisphive.exceptions import ApiValueError
|
|
35
|
+
from crisphive.exceptions import ApiKeyError
|
|
36
|
+
from crisphive.exceptions import ApiAttributeError
|
|
37
|
+
from crisphive.exceptions import ApiException
|
|
38
|
+
|
|
39
|
+
# import models into sdk package
|
|
40
|
+
from crisphive.models.create_customer200_response import CreateCustomer200Response
|
|
41
|
+
from crisphive.models.create_job_request200_response import CreateJobRequest200Response
|
|
42
|
+
from crisphive.models.customer import Customer
|
|
43
|
+
from crisphive.models.customer_address import CustomerAddress
|
|
44
|
+
from crisphive.models.customer_address_request import CustomerAddressRequest
|
|
45
|
+
from crisphive.models.customer_contact import CustomerContact
|
|
46
|
+
from crisphive.models.customer_create_request import CustomerCreateRequest
|
|
47
|
+
from crisphive.models.customer_create_response import CustomerCreateResponse
|
|
48
|
+
from crisphive.models.customer_list import CustomerList
|
|
49
|
+
from crisphive.models.customer_list_item import CustomerListItem
|
|
50
|
+
from crisphive.models.customer_profile import CustomerProfile
|
|
51
|
+
from crisphive.models.customer_spending import CustomerSpending
|
|
52
|
+
from crisphive.models.customer_tier_progress import CustomerTierProgress
|
|
53
|
+
from crisphive.models.customer_update_request import CustomerUpdateRequest
|
|
54
|
+
from crisphive.models.get_customer200_response import GetCustomer200Response
|
|
55
|
+
from crisphive.models.get_job_request200_response import GetJobRequest200Response
|
|
56
|
+
from crisphive.models.get_job_request_timeline200_response import GetJobRequestTimeline200Response
|
|
57
|
+
from crisphive.models.get_job_type200_response import GetJobType200Response
|
|
58
|
+
from crisphive.models.get_service_area200_response import GetServiceArea200Response
|
|
59
|
+
from crisphive.models.get_technician200_response import GetTechnician200Response
|
|
60
|
+
from crisphive.models.get_vehicle200_response import GetVehicle200Response
|
|
61
|
+
from crisphive.models.job_date import JobDate
|
|
62
|
+
from crisphive.models.job_date_business_range import JobDateBusinessRange
|
|
63
|
+
from crisphive.models.job_date_period import JobDatePeriod
|
|
64
|
+
from crisphive.models.job_date_period_entry import JobDatePeriodEntry
|
|
65
|
+
from crisphive.models.job_request import JobRequest
|
|
66
|
+
from crisphive.models.job_request_action_audit_by import JobRequestActionAuditBy
|
|
67
|
+
from crisphive.models.job_request_action_audit_entry import JobRequestActionAuditEntry
|
|
68
|
+
from crisphive.models.job_request_action_summary import JobRequestActionSummary
|
|
69
|
+
from crisphive.models.job_request_address_summary import JobRequestAddressSummary
|
|
70
|
+
from crisphive.models.job_request_archive_summary import JobRequestArchiveSummary
|
|
71
|
+
from crisphive.models.job_request_arrival_window import JobRequestArrivalWindow
|
|
72
|
+
from crisphive.models.job_request_assigned_vehicle import JobRequestAssignedVehicle
|
|
73
|
+
from crisphive.models.job_request_assignment_summary import JobRequestAssignmentSummary
|
|
74
|
+
from crisphive.models.job_request_booking_windows import JobRequestBookingWindows
|
|
75
|
+
from crisphive.models.job_request_business_time_range import JobRequestBusinessTimeRange
|
|
76
|
+
from crisphive.models.job_request_changes import JobRequestChanges
|
|
77
|
+
from crisphive.models.job_request_create_request import JobRequestCreateRequest
|
|
78
|
+
from crisphive.models.job_request_create_response import JobRequestCreateResponse
|
|
79
|
+
from crisphive.models.job_request_crew_member import JobRequestCrewMember
|
|
80
|
+
from crisphive.models.job_request_customer_summary import JobRequestCustomerSummary
|
|
81
|
+
from crisphive.models.job_request_day_windows import JobRequestDayWindows
|
|
82
|
+
from crisphive.models.job_request_job_date_business_range_request import JobRequestJobDateBusinessRangeRequest
|
|
83
|
+
from crisphive.models.job_request_job_date_period_request import JobRequestJobDatePeriodRequest
|
|
84
|
+
from crisphive.models.job_request_job_date_request import JobRequestJobDateRequest
|
|
85
|
+
from crisphive.models.job_request_list import JobRequestList
|
|
86
|
+
from crisphive.models.job_request_period import JobRequestPeriod
|
|
87
|
+
from crisphive.models.job_request_quote_summary import JobRequestQuoteSummary
|
|
88
|
+
from crisphive.models.job_request_rating_summary import JobRequestRatingSummary
|
|
89
|
+
from crisphive.models.job_request_schedule import JobRequestSchedule
|
|
90
|
+
from crisphive.models.job_request_session import JobRequestSession
|
|
91
|
+
from crisphive.models.job_request_skill_summary import JobRequestSkillSummary
|
|
92
|
+
from crisphive.models.job_request_status_summary import JobRequestStatusSummary
|
|
93
|
+
from crisphive.models.job_request_technician_info import JobRequestTechnicianInfo
|
|
94
|
+
from crisphive.models.job_request_timeline import JobRequestTimeline
|
|
95
|
+
from crisphive.models.job_request_timeline_action import JobRequestTimelineAction
|
|
96
|
+
from crisphive.models.job_request_timeline_event import JobRequestTimelineEvent
|
|
97
|
+
from crisphive.models.job_type import JobType
|
|
98
|
+
from crisphive.models.list_customers200_response import ListCustomers200Response
|
|
99
|
+
from crisphive.models.list_job_request_booking_windows200_response import ListJobRequestBookingWindows200Response
|
|
100
|
+
from crisphive.models.list_job_request_changes200_response import ListJobRequestChanges200Response
|
|
101
|
+
from crisphive.models.list_job_requests200_response import ListJobRequests200Response
|
|
102
|
+
from crisphive.models.list_job_types200_response import ListJobTypes200Response
|
|
103
|
+
from crisphive.models.list_service_areas200_response import ListServiceAreas200Response
|
|
104
|
+
from crisphive.models.list_skill_categories200_response import ListSkillCategories200Response
|
|
105
|
+
from crisphive.models.list_skills200_response import ListSkills200Response
|
|
106
|
+
from crisphive.models.list_skills_by_category200_response import ListSkillsByCategory200Response
|
|
107
|
+
from crisphive.models.list_technicians200_response import ListTechnicians200Response
|
|
108
|
+
from crisphive.models.list_vehicles200_response import ListVehicles200Response
|
|
109
|
+
from crisphive.models.pagination import Pagination
|
|
110
|
+
from crisphive.models.response_envelope import ResponseEnvelope
|
|
111
|
+
from crisphive.models.service_area import ServiceArea
|
|
112
|
+
from crisphive.models.service_area_list import ServiceAreaList
|
|
113
|
+
from crisphive.models.skill import Skill
|
|
114
|
+
from crisphive.models.skill_by_category_list import SkillByCategoryList
|
|
115
|
+
from crisphive.models.skill_category import SkillCategory
|
|
116
|
+
from crisphive.models.skill_category_list import SkillCategoryList
|
|
117
|
+
from crisphive.models.skill_list import SkillList
|
|
118
|
+
from crisphive.models.skill_summary import SkillSummary
|
|
119
|
+
from crisphive.models.technician import Technician
|
|
120
|
+
from crisphive.models.technician_address import TechnicianAddress
|
|
121
|
+
from crisphive.models.technician_lead_ref import TechnicianLeadRef
|
|
122
|
+
from crisphive.models.technician_list import TechnicianList
|
|
123
|
+
from crisphive.models.technician_service_area_ref import TechnicianServiceAreaRef
|
|
124
|
+
from crisphive.models.technician_status import TechnicianStatus
|
|
125
|
+
from crisphive.models.vehicle import Vehicle
|
|
126
|
+
from crisphive.models.vehicle_list import VehicleList
|
|
127
|
+
from crisphive.models.vehicle_owner import VehicleOwner
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from crisphive.api.business_skill_api import BusinessSkillApi
|
|
5
|
+
from crisphive.api.customer_api import CustomerApi
|
|
6
|
+
from crisphive.api.job_request_business_api import JobRequestBusinessApi
|
|
7
|
+
from crisphive.api.job_types_api import JobTypesApi
|
|
8
|
+
from crisphive.api.service_area_api import ServiceAreaApi
|
|
9
|
+
from crisphive.api.technician_api import TechnicianApi
|
|
10
|
+
from crisphive.api.vehicle_api import VehicleApi
|
|
11
|
+
|