clockster 0.2.0__tar.gz → 0.4.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.
- clockster-0.4.0/CHANGELOG.md +61 -0
- {clockster-0.2.0 → clockster-0.4.0}/PKG-INFO +2 -1
- {clockster-0.2.0 → clockster-0.4.0}/README.md +1 -0
- {clockster-0.2.0 → clockster-0.4.0}/openapi/company-v3.json +756 -5
- {clockster-0.2.0 → clockster-0.4.0}/pyproject.toml +1 -1
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/_generated/api.py +136 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/_generated/models.py +67 -1
- clockster-0.2.0/CHANGELOG.md +0 -25
- {clockster-0.2.0 → clockster-0.4.0}/.github/workflows/ci.yml +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/.github/workflows/release.yml +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/.github/workflows/spec-drift.yml +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/.gitignore +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/LICENSE +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/Makefile +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/examples/README.md +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/examples/roster_sync.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/examples/timesheet_export.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/scripts/check_operations.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/scripts/generate.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/scripts/sync_spec.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/__init__.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/_client.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/_generated/__init__.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/_transport.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/_version.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/errors.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/models.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/pagination.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/py.typed +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/src/clockster/webhooks.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/tests/conftest.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/tests/test_client.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/tests/test_examples.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/tests/test_pagination.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/tests/test_sets.py +0 -0
- {clockster-0.2.0 → clockster-0.4.0}/tests/test_webhooks.py +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### May break your build (types only)
|
|
6
|
+
|
|
7
|
+
Nothing. Three operations and one set are new.
|
|
8
|
+
|
|
9
|
+
### Changed in the API
|
|
10
|
+
|
|
11
|
+
Reaches you whether or not you update this package.
|
|
12
|
+
|
|
13
|
+
- `GET /payroll/payslips` answers the `external_id` of a dismissed employee. It was `None` on their
|
|
14
|
+
payslips.
|
|
15
|
+
|
|
16
|
+
### New
|
|
17
|
+
|
|
18
|
+
- `clockster.payroll.single_adjustments`: `list`, `create` and `delete`, blocking and awaited, over
|
|
19
|
+
`/payroll/single-adjustments` — one-off additions and deductions that the next calculation of a
|
|
20
|
+
payslip takes in. `create` files up to 100 at a time, all or nothing; pass `idempotency_key=` so a
|
|
21
|
+
retry does not file them twice.
|
|
22
|
+
- `PayrollSingleAdjustmentsType` in `clockster.models`, a `Literal` of the six types, for `type` on
|
|
23
|
+
`create` and the `types` filter.
|
|
24
|
+
|
|
25
|
+
## 0.3.0
|
|
26
|
+
|
|
27
|
+
### May break your build (types only)
|
|
28
|
+
|
|
29
|
+
Nothing. The five values are additive.
|
|
30
|
+
|
|
31
|
+
### Changed in the API
|
|
32
|
+
|
|
33
|
+
Reaches you whether or not you update this package.
|
|
34
|
+
|
|
35
|
+
- A document's `type` also takes `driver_license`, `birth_certificate`, `marriage_certificate`,
|
|
36
|
+
`divorce_certificate` and `change_fio_certificate` — in the `types` filter and in
|
|
37
|
+
`POST /documents/upsert`.
|
|
38
|
+
|
|
39
|
+
## 0.2.0
|
|
40
|
+
|
|
41
|
+
### May break your build (types only)
|
|
42
|
+
|
|
43
|
+
Nothing changes on the wire. Defer with `# type: ignore` if you need to.
|
|
44
|
+
|
|
45
|
+
- `radius` no longer accepts `None`.
|
|
46
|
+
- `priority` is now `Literal[0, 1]` rather than `int`.
|
|
47
|
+
|
|
48
|
+
### Changed in the API
|
|
49
|
+
|
|
50
|
+
Reaches you whether or not you update this package.
|
|
51
|
+
|
|
52
|
+
- A location's `radius` must be between 50 and 700. A value outside that is refused.
|
|
53
|
+
- `radius` cannot be cleared. Leave the key out to keep what is stored.
|
|
54
|
+
- `?employment=` takes only the ten terms of the set. An unknown one is refused rather than
|
|
55
|
+
answering an empty page.
|
|
56
|
+
|
|
57
|
+
### New
|
|
58
|
+
|
|
59
|
+
- Every set of values is a named `Literal` in `clockster.models` — `UsersRole` rather than the
|
|
60
|
+
values spelled out at each use. `typing.get_args()` answers with them.
|
|
61
|
+
- Every request body field carries its description as a comment above it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: clockster
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Official Python SDK for the Clockster Company API
|
|
5
5
|
Project-URL: Homepage, https://github.com/clockster/sdk-python#readme
|
|
6
6
|
Project-URL: Source, https://github.com/clockster/sdk-python
|
|
@@ -126,6 +126,7 @@ everything.
|
|
|
126
126
|
| `documents` | `list` `get` `upsert` `delete` |
|
|
127
127
|
| `files` | `upload` |
|
|
128
128
|
| `payroll.payslips` | `list` |
|
|
129
|
+
| `payroll.single_adjustments` | `list` `create` `delete` |
|
|
129
130
|
| `user_requests` | `list` `get` |
|
|
130
131
|
| `webhooks` | `list` `get` `create` `update` `delete` `rotate_secret` |
|
|
131
132
|
| `webhooks.deliveries` | `list` `get` `redeliver` |
|
|
@@ -97,6 +97,7 @@ everything.
|
|
|
97
97
|
| `documents` | `list` `get` `upsert` `delete` |
|
|
98
98
|
| `files` | `upload` |
|
|
99
99
|
| `payroll.payslips` | `list` |
|
|
100
|
+
| `payroll.single_adjustments` | `list` `create` `delete` |
|
|
100
101
|
| `user_requests` | `list` `get` |
|
|
101
102
|
| `webhooks` | `list` `get` `create` `update` `delete` `rotate_secret` |
|
|
102
103
|
| `webhooks.deliveries` | `list` `get` `redeliver` |
|