convexity-api-client 0.21.0.dev331__py3-none-any.whl → 0.21.0.dev332__py3-none-any.whl
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.
- convexity_api_client/api/v1/inventory_list_templates.py +18 -61
- convexity_api_client/api/v1/purchasing_list_pos.py +18 -61
- convexity_api_client/api/v1/purchasing_list_vendors.py +18 -61
- convexity_api_client/api/v1/sales_list_invoices.py +18 -61
- convexity_api_client/api/v1/sales_list_orders.py +18 -61
- convexity_api_client/models/__init__.py +6 -12
- convexity_api_client/models/erp_configured_column_config.py +31 -0
- convexity_api_client/models/erp_configured_column_config_data_type_type_0.py +12 -0
- convexity_api_client/models/import_task_payload.py +108 -0
- convexity_api_client/models/import_task_payload_type.py +9 -0
- convexity_api_client/models/list_inventory_items_request.py +11 -62
- convexity_api_client/models/search_purchase_orders_request.py +11 -51
- convexity_api_client/models/worker_task_response.py +18 -2
- {convexity_api_client-0.21.0.dev331.dist-info → convexity_api_client-0.21.0.dev332.dist-info}/METADATA +1 -1
- {convexity_api_client-0.21.0.dev331.dist-info → convexity_api_client-0.21.0.dev332.dist-info}/RECORD +16 -19
- convexity_api_client/models/inventory_list_templates_filter_operator_type_0.py +0 -19
- convexity_api_client/models/list_inventory_items_request_filter_operator_type_0.py +0 -19
- convexity_api_client/models/purchasing_list_pos_filter_operator_type_0.py +0 -19
- convexity_api_client/models/purchasing_list_vendors_filter_operator_type_0.py +0 -19
- convexity_api_client/models/sales_list_invoices_filter_operator_type_0.py +0 -19
- convexity_api_client/models/sales_list_orders_filter_operator_type_0.py +0 -19
- {convexity_api_client-0.21.0.dev331.dist-info → convexity_api_client-0.21.0.dev332.dist-info}/WHEEL +0 -0
|
@@ -9,7 +9,6 @@ from ...client import AuthenticatedClient, Client
|
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.list_sales_invoices_response import ListSalesInvoicesResponse
|
|
11
11
|
from ...models.sales_invoice_status import SalesInvoiceStatus
|
|
12
|
-
from ...models.sales_list_invoices_filter_operator_type_0 import SalesListInvoicesFilterOperatorType0
|
|
13
12
|
from ...models.sales_list_invoices_sort_direction_type_0 import SalesListInvoicesSortDirectionType0
|
|
14
13
|
from ...types import UNSET, Response, Unset
|
|
15
14
|
|
|
@@ -23,9 +22,7 @@ def _get_kwargs(
|
|
|
23
22
|
issue_date_to: datetime.datetime | None | Unset = UNSET,
|
|
24
23
|
sort_by: None | str | Unset = UNSET,
|
|
25
24
|
sort_direction: None | SalesListInvoicesSortDirectionType0 | Unset = UNSET,
|
|
26
|
-
|
|
27
|
-
filter_operator: None | SalesListInvoicesFilterOperatorType0 | Unset = UNSET,
|
|
28
|
-
filter_value: None | str | Unset = UNSET,
|
|
25
|
+
filters: None | str | Unset = UNSET,
|
|
29
26
|
limit: int | Unset = 50,
|
|
30
27
|
offset: int | Unset = 0,
|
|
31
28
|
project_id: str,
|
|
@@ -90,28 +87,12 @@ def _get_kwargs(
|
|
|
90
87
|
json_sort_direction = sort_direction
|
|
91
88
|
params["sort_direction"] = json_sort_direction
|
|
92
89
|
|
|
93
|
-
|
|
94
|
-
if isinstance(
|
|
95
|
-
|
|
90
|
+
json_filters: None | str | Unset
|
|
91
|
+
if isinstance(filters, Unset):
|
|
92
|
+
json_filters = UNSET
|
|
96
93
|
else:
|
|
97
|
-
|
|
98
|
-
params["
|
|
99
|
-
|
|
100
|
-
json_filter_operator: None | str | Unset
|
|
101
|
-
if isinstance(filter_operator, Unset):
|
|
102
|
-
json_filter_operator = UNSET
|
|
103
|
-
elif isinstance(filter_operator, SalesListInvoicesFilterOperatorType0):
|
|
104
|
-
json_filter_operator = filter_operator.value
|
|
105
|
-
else:
|
|
106
|
-
json_filter_operator = filter_operator
|
|
107
|
-
params["filter_operator"] = json_filter_operator
|
|
108
|
-
|
|
109
|
-
json_filter_value: None | str | Unset
|
|
110
|
-
if isinstance(filter_value, Unset):
|
|
111
|
-
json_filter_value = UNSET
|
|
112
|
-
else:
|
|
113
|
-
json_filter_value = filter_value
|
|
114
|
-
params["filter_value"] = json_filter_value
|
|
94
|
+
json_filters = filters
|
|
95
|
+
params["filters"] = json_filters
|
|
115
96
|
|
|
116
97
|
params["limit"] = limit
|
|
117
98
|
|
|
@@ -170,9 +151,7 @@ def sync_detailed(
|
|
|
170
151
|
issue_date_to: datetime.datetime | None | Unset = UNSET,
|
|
171
152
|
sort_by: None | str | Unset = UNSET,
|
|
172
153
|
sort_direction: None | SalesListInvoicesSortDirectionType0 | Unset = UNSET,
|
|
173
|
-
|
|
174
|
-
filter_operator: None | SalesListInvoicesFilterOperatorType0 | Unset = UNSET,
|
|
175
|
-
filter_value: None | str | Unset = UNSET,
|
|
154
|
+
filters: None | str | Unset = UNSET,
|
|
176
155
|
limit: int | Unset = 50,
|
|
177
156
|
offset: int | Unset = 0,
|
|
178
157
|
project_id: str,
|
|
@@ -187,9 +166,7 @@ def sync_detailed(
|
|
|
187
166
|
issue_date_to (datetime.datetime | None | Unset):
|
|
188
167
|
sort_by (None | str | Unset):
|
|
189
168
|
sort_direction (None | SalesListInvoicesSortDirectionType0 | Unset):
|
|
190
|
-
|
|
191
|
-
filter_operator (None | SalesListInvoicesFilterOperatorType0 | Unset):
|
|
192
|
-
filter_value (None | str | Unset):
|
|
169
|
+
filters (None | str | Unset):
|
|
193
170
|
limit (int | Unset): Default: 50.
|
|
194
171
|
offset (int | Unset): Default: 0.
|
|
195
172
|
project_id (str):
|
|
@@ -210,9 +187,7 @@ def sync_detailed(
|
|
|
210
187
|
issue_date_to=issue_date_to,
|
|
211
188
|
sort_by=sort_by,
|
|
212
189
|
sort_direction=sort_direction,
|
|
213
|
-
|
|
214
|
-
filter_operator=filter_operator,
|
|
215
|
-
filter_value=filter_value,
|
|
190
|
+
filters=filters,
|
|
216
191
|
limit=limit,
|
|
217
192
|
offset=offset,
|
|
218
193
|
project_id=project_id,
|
|
@@ -235,9 +210,7 @@ def sync(
|
|
|
235
210
|
issue_date_to: datetime.datetime | None | Unset = UNSET,
|
|
236
211
|
sort_by: None | str | Unset = UNSET,
|
|
237
212
|
sort_direction: None | SalesListInvoicesSortDirectionType0 | Unset = UNSET,
|
|
238
|
-
|
|
239
|
-
filter_operator: None | SalesListInvoicesFilterOperatorType0 | Unset = UNSET,
|
|
240
|
-
filter_value: None | str | Unset = UNSET,
|
|
213
|
+
filters: None | str | Unset = UNSET,
|
|
241
214
|
limit: int | Unset = 50,
|
|
242
215
|
offset: int | Unset = 0,
|
|
243
216
|
project_id: str,
|
|
@@ -252,9 +225,7 @@ def sync(
|
|
|
252
225
|
issue_date_to (datetime.datetime | None | Unset):
|
|
253
226
|
sort_by (None | str | Unset):
|
|
254
227
|
sort_direction (None | SalesListInvoicesSortDirectionType0 | Unset):
|
|
255
|
-
|
|
256
|
-
filter_operator (None | SalesListInvoicesFilterOperatorType0 | Unset):
|
|
257
|
-
filter_value (None | str | Unset):
|
|
228
|
+
filters (None | str | Unset):
|
|
258
229
|
limit (int | Unset): Default: 50.
|
|
259
230
|
offset (int | Unset): Default: 0.
|
|
260
231
|
project_id (str):
|
|
@@ -276,9 +247,7 @@ def sync(
|
|
|
276
247
|
issue_date_to=issue_date_to,
|
|
277
248
|
sort_by=sort_by,
|
|
278
249
|
sort_direction=sort_direction,
|
|
279
|
-
|
|
280
|
-
filter_operator=filter_operator,
|
|
281
|
-
filter_value=filter_value,
|
|
250
|
+
filters=filters,
|
|
282
251
|
limit=limit,
|
|
283
252
|
offset=offset,
|
|
284
253
|
project_id=project_id,
|
|
@@ -295,9 +264,7 @@ async def asyncio_detailed(
|
|
|
295
264
|
issue_date_to: datetime.datetime | None | Unset = UNSET,
|
|
296
265
|
sort_by: None | str | Unset = UNSET,
|
|
297
266
|
sort_direction: None | SalesListInvoicesSortDirectionType0 | Unset = UNSET,
|
|
298
|
-
|
|
299
|
-
filter_operator: None | SalesListInvoicesFilterOperatorType0 | Unset = UNSET,
|
|
300
|
-
filter_value: None | str | Unset = UNSET,
|
|
267
|
+
filters: None | str | Unset = UNSET,
|
|
301
268
|
limit: int | Unset = 50,
|
|
302
269
|
offset: int | Unset = 0,
|
|
303
270
|
project_id: str,
|
|
@@ -312,9 +279,7 @@ async def asyncio_detailed(
|
|
|
312
279
|
issue_date_to (datetime.datetime | None | Unset):
|
|
313
280
|
sort_by (None | str | Unset):
|
|
314
281
|
sort_direction (None | SalesListInvoicesSortDirectionType0 | Unset):
|
|
315
|
-
|
|
316
|
-
filter_operator (None | SalesListInvoicesFilterOperatorType0 | Unset):
|
|
317
|
-
filter_value (None | str | Unset):
|
|
282
|
+
filters (None | str | Unset):
|
|
318
283
|
limit (int | Unset): Default: 50.
|
|
319
284
|
offset (int | Unset): Default: 0.
|
|
320
285
|
project_id (str):
|
|
@@ -335,9 +300,7 @@ async def asyncio_detailed(
|
|
|
335
300
|
issue_date_to=issue_date_to,
|
|
336
301
|
sort_by=sort_by,
|
|
337
302
|
sort_direction=sort_direction,
|
|
338
|
-
|
|
339
|
-
filter_operator=filter_operator,
|
|
340
|
-
filter_value=filter_value,
|
|
303
|
+
filters=filters,
|
|
341
304
|
limit=limit,
|
|
342
305
|
offset=offset,
|
|
343
306
|
project_id=project_id,
|
|
@@ -358,9 +321,7 @@ async def asyncio(
|
|
|
358
321
|
issue_date_to: datetime.datetime | None | Unset = UNSET,
|
|
359
322
|
sort_by: None | str | Unset = UNSET,
|
|
360
323
|
sort_direction: None | SalesListInvoicesSortDirectionType0 | Unset = UNSET,
|
|
361
|
-
|
|
362
|
-
filter_operator: None | SalesListInvoicesFilterOperatorType0 | Unset = UNSET,
|
|
363
|
-
filter_value: None | str | Unset = UNSET,
|
|
324
|
+
filters: None | str | Unset = UNSET,
|
|
364
325
|
limit: int | Unset = 50,
|
|
365
326
|
offset: int | Unset = 0,
|
|
366
327
|
project_id: str,
|
|
@@ -375,9 +336,7 @@ async def asyncio(
|
|
|
375
336
|
issue_date_to (datetime.datetime | None | Unset):
|
|
376
337
|
sort_by (None | str | Unset):
|
|
377
338
|
sort_direction (None | SalesListInvoicesSortDirectionType0 | Unset):
|
|
378
|
-
|
|
379
|
-
filter_operator (None | SalesListInvoicesFilterOperatorType0 | Unset):
|
|
380
|
-
filter_value (None | str | Unset):
|
|
339
|
+
filters (None | str | Unset):
|
|
381
340
|
limit (int | Unset): Default: 50.
|
|
382
341
|
offset (int | Unset): Default: 0.
|
|
383
342
|
project_id (str):
|
|
@@ -400,9 +359,7 @@ async def asyncio(
|
|
|
400
359
|
issue_date_to=issue_date_to,
|
|
401
360
|
sort_by=sort_by,
|
|
402
361
|
sort_direction=sort_direction,
|
|
403
|
-
|
|
404
|
-
filter_operator=filter_operator,
|
|
405
|
-
filter_value=filter_value,
|
|
362
|
+
filters=filters,
|
|
406
363
|
limit=limit,
|
|
407
364
|
offset=offset,
|
|
408
365
|
project_id=project_id,
|
|
@@ -8,7 +8,6 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.canonical_status import CanonicalStatus
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
10
|
from ...models.list_sales_orders_response import ListSalesOrdersResponse
|
|
11
|
-
from ...models.sales_list_orders_filter_operator_type_0 import SalesListOrdersFilterOperatorType0
|
|
12
11
|
from ...models.sales_list_orders_sort_direction_type_0 import SalesListOrdersSortDirectionType0
|
|
13
12
|
from ...types import UNSET, Response, Unset
|
|
14
13
|
|
|
@@ -21,9 +20,7 @@ def _get_kwargs(
|
|
|
21
20
|
channel_id: None | str | Unset = UNSET,
|
|
22
21
|
sort_by: None | str | Unset = UNSET,
|
|
23
22
|
sort_direction: None | SalesListOrdersSortDirectionType0 | Unset = UNSET,
|
|
24
|
-
|
|
25
|
-
filter_operator: None | SalesListOrdersFilterOperatorType0 | Unset = UNSET,
|
|
26
|
-
filter_value: None | str | Unset = UNSET,
|
|
23
|
+
filters: None | str | Unset = UNSET,
|
|
27
24
|
limit: int | Unset = 50,
|
|
28
25
|
offset: int | Unset = 0,
|
|
29
26
|
project_id: str,
|
|
@@ -77,28 +74,12 @@ def _get_kwargs(
|
|
|
77
74
|
json_sort_direction = sort_direction
|
|
78
75
|
params["sort_direction"] = json_sort_direction
|
|
79
76
|
|
|
80
|
-
|
|
81
|
-
if isinstance(
|
|
82
|
-
|
|
77
|
+
json_filters: None | str | Unset
|
|
78
|
+
if isinstance(filters, Unset):
|
|
79
|
+
json_filters = UNSET
|
|
83
80
|
else:
|
|
84
|
-
|
|
85
|
-
params["
|
|
86
|
-
|
|
87
|
-
json_filter_operator: None | str | Unset
|
|
88
|
-
if isinstance(filter_operator, Unset):
|
|
89
|
-
json_filter_operator = UNSET
|
|
90
|
-
elif isinstance(filter_operator, SalesListOrdersFilterOperatorType0):
|
|
91
|
-
json_filter_operator = filter_operator.value
|
|
92
|
-
else:
|
|
93
|
-
json_filter_operator = filter_operator
|
|
94
|
-
params["filter_operator"] = json_filter_operator
|
|
95
|
-
|
|
96
|
-
json_filter_value: None | str | Unset
|
|
97
|
-
if isinstance(filter_value, Unset):
|
|
98
|
-
json_filter_value = UNSET
|
|
99
|
-
else:
|
|
100
|
-
json_filter_value = filter_value
|
|
101
|
-
params["filter_value"] = json_filter_value
|
|
81
|
+
json_filters = filters
|
|
82
|
+
params["filters"] = json_filters
|
|
102
83
|
|
|
103
84
|
params["limit"] = limit
|
|
104
85
|
|
|
@@ -156,9 +137,7 @@ def sync_detailed(
|
|
|
156
137
|
channel_id: None | str | Unset = UNSET,
|
|
157
138
|
sort_by: None | str | Unset = UNSET,
|
|
158
139
|
sort_direction: None | SalesListOrdersSortDirectionType0 | Unset = UNSET,
|
|
159
|
-
|
|
160
|
-
filter_operator: None | SalesListOrdersFilterOperatorType0 | Unset = UNSET,
|
|
161
|
-
filter_value: None | str | Unset = UNSET,
|
|
140
|
+
filters: None | str | Unset = UNSET,
|
|
162
141
|
limit: int | Unset = 50,
|
|
163
142
|
offset: int | Unset = 0,
|
|
164
143
|
project_id: str,
|
|
@@ -172,9 +151,7 @@ def sync_detailed(
|
|
|
172
151
|
channel_id (None | str | Unset):
|
|
173
152
|
sort_by (None | str | Unset):
|
|
174
153
|
sort_direction (None | SalesListOrdersSortDirectionType0 | Unset):
|
|
175
|
-
|
|
176
|
-
filter_operator (None | SalesListOrdersFilterOperatorType0 | Unset):
|
|
177
|
-
filter_value (None | str | Unset):
|
|
154
|
+
filters (None | str | Unset):
|
|
178
155
|
limit (int | Unset): Default: 50.
|
|
179
156
|
offset (int | Unset): Default: 0.
|
|
180
157
|
project_id (str):
|
|
@@ -194,9 +171,7 @@ def sync_detailed(
|
|
|
194
171
|
channel_id=channel_id,
|
|
195
172
|
sort_by=sort_by,
|
|
196
173
|
sort_direction=sort_direction,
|
|
197
|
-
|
|
198
|
-
filter_operator=filter_operator,
|
|
199
|
-
filter_value=filter_value,
|
|
174
|
+
filters=filters,
|
|
200
175
|
limit=limit,
|
|
201
176
|
offset=offset,
|
|
202
177
|
project_id=project_id,
|
|
@@ -218,9 +193,7 @@ def sync(
|
|
|
218
193
|
channel_id: None | str | Unset = UNSET,
|
|
219
194
|
sort_by: None | str | Unset = UNSET,
|
|
220
195
|
sort_direction: None | SalesListOrdersSortDirectionType0 | Unset = UNSET,
|
|
221
|
-
|
|
222
|
-
filter_operator: None | SalesListOrdersFilterOperatorType0 | Unset = UNSET,
|
|
223
|
-
filter_value: None | str | Unset = UNSET,
|
|
196
|
+
filters: None | str | Unset = UNSET,
|
|
224
197
|
limit: int | Unset = 50,
|
|
225
198
|
offset: int | Unset = 0,
|
|
226
199
|
project_id: str,
|
|
@@ -234,9 +207,7 @@ def sync(
|
|
|
234
207
|
channel_id (None | str | Unset):
|
|
235
208
|
sort_by (None | str | Unset):
|
|
236
209
|
sort_direction (None | SalesListOrdersSortDirectionType0 | Unset):
|
|
237
|
-
|
|
238
|
-
filter_operator (None | SalesListOrdersFilterOperatorType0 | Unset):
|
|
239
|
-
filter_value (None | str | Unset):
|
|
210
|
+
filters (None | str | Unset):
|
|
240
211
|
limit (int | Unset): Default: 50.
|
|
241
212
|
offset (int | Unset): Default: 0.
|
|
242
213
|
project_id (str):
|
|
@@ -257,9 +228,7 @@ def sync(
|
|
|
257
228
|
channel_id=channel_id,
|
|
258
229
|
sort_by=sort_by,
|
|
259
230
|
sort_direction=sort_direction,
|
|
260
|
-
|
|
261
|
-
filter_operator=filter_operator,
|
|
262
|
-
filter_value=filter_value,
|
|
231
|
+
filters=filters,
|
|
263
232
|
limit=limit,
|
|
264
233
|
offset=offset,
|
|
265
234
|
project_id=project_id,
|
|
@@ -275,9 +244,7 @@ async def asyncio_detailed(
|
|
|
275
244
|
channel_id: None | str | Unset = UNSET,
|
|
276
245
|
sort_by: None | str | Unset = UNSET,
|
|
277
246
|
sort_direction: None | SalesListOrdersSortDirectionType0 | Unset = UNSET,
|
|
278
|
-
|
|
279
|
-
filter_operator: None | SalesListOrdersFilterOperatorType0 | Unset = UNSET,
|
|
280
|
-
filter_value: None | str | Unset = UNSET,
|
|
247
|
+
filters: None | str | Unset = UNSET,
|
|
281
248
|
limit: int | Unset = 50,
|
|
282
249
|
offset: int | Unset = 0,
|
|
283
250
|
project_id: str,
|
|
@@ -291,9 +258,7 @@ async def asyncio_detailed(
|
|
|
291
258
|
channel_id (None | str | Unset):
|
|
292
259
|
sort_by (None | str | Unset):
|
|
293
260
|
sort_direction (None | SalesListOrdersSortDirectionType0 | Unset):
|
|
294
|
-
|
|
295
|
-
filter_operator (None | SalesListOrdersFilterOperatorType0 | Unset):
|
|
296
|
-
filter_value (None | str | Unset):
|
|
261
|
+
filters (None | str | Unset):
|
|
297
262
|
limit (int | Unset): Default: 50.
|
|
298
263
|
offset (int | Unset): Default: 0.
|
|
299
264
|
project_id (str):
|
|
@@ -313,9 +278,7 @@ async def asyncio_detailed(
|
|
|
313
278
|
channel_id=channel_id,
|
|
314
279
|
sort_by=sort_by,
|
|
315
280
|
sort_direction=sort_direction,
|
|
316
|
-
|
|
317
|
-
filter_operator=filter_operator,
|
|
318
|
-
filter_value=filter_value,
|
|
281
|
+
filters=filters,
|
|
319
282
|
limit=limit,
|
|
320
283
|
offset=offset,
|
|
321
284
|
project_id=project_id,
|
|
@@ -335,9 +298,7 @@ async def asyncio(
|
|
|
335
298
|
channel_id: None | str | Unset = UNSET,
|
|
336
299
|
sort_by: None | str | Unset = UNSET,
|
|
337
300
|
sort_direction: None | SalesListOrdersSortDirectionType0 | Unset = UNSET,
|
|
338
|
-
|
|
339
|
-
filter_operator: None | SalesListOrdersFilterOperatorType0 | Unset = UNSET,
|
|
340
|
-
filter_value: None | str | Unset = UNSET,
|
|
301
|
+
filters: None | str | Unset = UNSET,
|
|
341
302
|
limit: int | Unset = 50,
|
|
342
303
|
offset: int | Unset = 0,
|
|
343
304
|
project_id: str,
|
|
@@ -351,9 +312,7 @@ async def asyncio(
|
|
|
351
312
|
channel_id (None | str | Unset):
|
|
352
313
|
sort_by (None | str | Unset):
|
|
353
314
|
sort_direction (None | SalesListOrdersSortDirectionType0 | Unset):
|
|
354
|
-
|
|
355
|
-
filter_operator (None | SalesListOrdersFilterOperatorType0 | Unset):
|
|
356
|
-
filter_value (None | str | Unset):
|
|
315
|
+
filters (None | str | Unset):
|
|
357
316
|
limit (int | Unset): Default: 50.
|
|
358
317
|
offset (int | Unset): Default: 0.
|
|
359
318
|
project_id (str):
|
|
@@ -375,9 +334,7 @@ async def asyncio(
|
|
|
375
334
|
channel_id=channel_id,
|
|
376
335
|
sort_by=sort_by,
|
|
377
336
|
sort_direction=sort_direction,
|
|
378
|
-
|
|
379
|
-
filter_operator=filter_operator,
|
|
380
|
-
filter_value=filter_value,
|
|
337
|
+
filters=filters,
|
|
381
338
|
limit=limit,
|
|
382
339
|
offset=offset,
|
|
383
340
|
project_id=project_id,
|
|
@@ -474,6 +474,7 @@ from .erp_configured_column_color_rule_config import ErpConfiguredColumnColorRul
|
|
|
474
474
|
from .erp_configured_column_color_rule_config_metadata import ErpConfiguredColumnColorRuleConfigMetadata
|
|
475
475
|
from .erp_configured_column_color_rule_config_operator import ErpConfiguredColumnColorRuleConfigOperator
|
|
476
476
|
from .erp_configured_column_config import ErpConfiguredColumnConfig
|
|
477
|
+
from .erp_configured_column_config_data_type_type_0 import ErpConfiguredColumnConfigDataTypeType0
|
|
477
478
|
from .erp_configured_column_config_metadata import ErpConfiguredColumnConfigMetadata
|
|
478
479
|
from .erp_configured_column_config_sourcetype import ErpConfiguredColumnConfigSourcetype
|
|
479
480
|
from .erp_configured_column_format_config import ErpConfiguredColumnFormatConfig
|
|
@@ -578,6 +579,8 @@ from .import_job_status import ImportJobStatus
|
|
|
578
579
|
from .import_preview_row import ImportPreviewRow
|
|
579
580
|
from .import_preview_row_cells import ImportPreviewRowCells
|
|
580
581
|
from .import_row_error import ImportRowError
|
|
582
|
+
from .import_task_payload import ImportTaskPayload
|
|
583
|
+
from .import_task_payload_type import ImportTaskPayloadType
|
|
581
584
|
from .import_warning import ImportWarning_
|
|
582
585
|
from .infor_connection import InforConnection
|
|
583
586
|
from .infor_connection_response import InforConnectionResponse
|
|
@@ -598,7 +601,6 @@ from .inventory_item_response import InventoryItemResponse
|
|
|
598
601
|
from .inventory_item_response_ext_data_type_0 import InventoryItemResponseExtDataType0
|
|
599
602
|
from .inventory_item_type import InventoryItemType
|
|
600
603
|
from .inventory_kpi_snapshot import InventoryKpiSnapshot
|
|
601
|
-
from .inventory_list_templates_filter_operator_type_0 import InventoryListTemplatesFilterOperatorType0
|
|
602
604
|
from .inventory_list_templates_sort_direction_type_0 import InventoryListTemplatesSortDirectionType0
|
|
603
605
|
from .inventory_replenishment_policy import InventoryReplenishmentPolicy
|
|
604
606
|
from .issue import Issue
|
|
@@ -695,7 +697,6 @@ from .list_goods_receipts_response import ListGoodsReceiptsResponse
|
|
|
695
697
|
from .list_import_jobs_response import ListImportJobsResponse
|
|
696
698
|
from .list_inventory_item_categories_response import ListInventoryItemCategoriesResponse
|
|
697
699
|
from .list_inventory_items_request import ListInventoryItemsRequest
|
|
698
|
-
from .list_inventory_items_request_filter_operator_type_0 import ListInventoryItemsRequestFilterOperatorType0
|
|
699
700
|
from .list_inventory_items_request_sort_direction_type_0 import ListInventoryItemsRequestSortDirectionType0
|
|
700
701
|
from .list_inventory_items_response import ListInventoryItemsResponse
|
|
701
702
|
from .list_item_attribute_values_response import ListItemAttributeValuesResponse
|
|
@@ -859,10 +860,8 @@ from .purchase_order_writeback_response_provider_response_type_0 import (
|
|
|
859
860
|
from .purchase_order_writeback_validation_issue import PurchaseOrderWritebackValidationIssue
|
|
860
861
|
from .purchase_return import PurchaseReturn
|
|
861
862
|
from .purchase_return_line import PurchaseReturnLine
|
|
862
|
-
from .purchasing_list_pos_filter_operator_type_0 import PurchasingListPosFilterOperatorType0
|
|
863
863
|
from .purchasing_list_pos_sort_direction_type_0 import PurchasingListPosSortDirectionType0
|
|
864
864
|
from .purchasing_list_pos_status_group_type_0 import PurchasingListPosStatusGroupType0
|
|
865
|
-
from .purchasing_list_vendors_filter_operator_type_0 import PurchasingListVendorsFilterOperatorType0
|
|
866
865
|
from .purchasing_list_vendors_sort_direction_type_0 import PurchasingListVendorsSortDirectionType0
|
|
867
866
|
from .quick_books_connection import QuickBooksConnection
|
|
868
867
|
from .quick_books_connection_environment import QuickBooksConnectionEnvironment
|
|
@@ -951,9 +950,7 @@ from .sales_invoice_source import SalesInvoiceSource
|
|
|
951
950
|
from .sales_invoice_status import SalesInvoiceStatus
|
|
952
951
|
from .sales_invoicing_queue_item_response import SalesInvoicingQueueItemResponse
|
|
953
952
|
from .sales_invoicing_queue_line_response import SalesInvoicingQueueLineResponse
|
|
954
|
-
from .sales_list_invoices_filter_operator_type_0 import SalesListInvoicesFilterOperatorType0
|
|
955
953
|
from .sales_list_invoices_sort_direction_type_0 import SalesListInvoicesSortDirectionType0
|
|
956
|
-
from .sales_list_orders_filter_operator_type_0 import SalesListOrdersFilterOperatorType0
|
|
957
954
|
from .sales_list_orders_sort_direction_type_0 import SalesListOrdersSortDirectionType0
|
|
958
955
|
from .sales_order import SalesOrder
|
|
959
956
|
from .sales_order_allocation import SalesOrderAllocation
|
|
@@ -1693,6 +1690,7 @@ __all__ = (
|
|
|
1693
1690
|
"ErpConfiguredColumnColorRuleConfigMetadata",
|
|
1694
1691
|
"ErpConfiguredColumnColorRuleConfigOperator",
|
|
1695
1692
|
"ErpConfiguredColumnConfig",
|
|
1693
|
+
"ErpConfiguredColumnConfigDataTypeType0",
|
|
1696
1694
|
"ErpConfiguredColumnConfigMetadata",
|
|
1697
1695
|
"ErpConfiguredColumnConfigSourcetype",
|
|
1698
1696
|
"ErpConfiguredColumnFormatConfig",
|
|
@@ -1791,6 +1789,8 @@ __all__ = (
|
|
|
1791
1789
|
"ImportPreviewRow",
|
|
1792
1790
|
"ImportPreviewRowCells",
|
|
1793
1791
|
"ImportRowError",
|
|
1792
|
+
"ImportTaskPayload",
|
|
1793
|
+
"ImportTaskPayloadType",
|
|
1794
1794
|
"ImportWarning_",
|
|
1795
1795
|
"InforConnection",
|
|
1796
1796
|
"InforConnectionResponse",
|
|
@@ -1811,7 +1811,6 @@ __all__ = (
|
|
|
1811
1811
|
"InventoryItemResponseExtDataType0",
|
|
1812
1812
|
"InventoryItemType",
|
|
1813
1813
|
"InventoryKpiSnapshot",
|
|
1814
|
-
"InventoryListTemplatesFilterOperatorType0",
|
|
1815
1814
|
"InventoryListTemplatesSortDirectionType0",
|
|
1816
1815
|
"InventoryReplenishmentPolicy",
|
|
1817
1816
|
"Issue",
|
|
@@ -1908,7 +1907,6 @@ __all__ = (
|
|
|
1908
1907
|
"ListImportJobsResponse",
|
|
1909
1908
|
"ListInventoryItemCategoriesResponse",
|
|
1910
1909
|
"ListInventoryItemsRequest",
|
|
1911
|
-
"ListInventoryItemsRequestFilterOperatorType0",
|
|
1912
1910
|
"ListInventoryItemsRequestSortDirectionType0",
|
|
1913
1911
|
"ListInventoryItemsResponse",
|
|
1914
1912
|
"ListItemAttributesResponse",
|
|
@@ -2070,10 +2068,8 @@ __all__ = (
|
|
|
2070
2068
|
"PurchaseOrderWritebackValidationIssue",
|
|
2071
2069
|
"PurchaseReturn",
|
|
2072
2070
|
"PurchaseReturnLine",
|
|
2073
|
-
"PurchasingListPosFilterOperatorType0",
|
|
2074
2071
|
"PurchasingListPosSortDirectionType0",
|
|
2075
2072
|
"PurchasingListPosStatusGroupType0",
|
|
2076
|
-
"PurchasingListVendorsFilterOperatorType0",
|
|
2077
2073
|
"PurchasingListVendorsSortDirectionType0",
|
|
2078
2074
|
"QuickBooksConnection",
|
|
2079
2075
|
"QuickBooksConnectionEnvironment",
|
|
@@ -2160,9 +2156,7 @@ __all__ = (
|
|
|
2160
2156
|
"SalesInvoiceStatus",
|
|
2161
2157
|
"SalesInvoicingQueueItemResponse",
|
|
2162
2158
|
"SalesInvoicingQueueLineResponse",
|
|
2163
|
-
"SalesListInvoicesFilterOperatorType0",
|
|
2164
2159
|
"SalesListInvoicesSortDirectionType0",
|
|
2165
|
-
"SalesListOrdersFilterOperatorType0",
|
|
2166
2160
|
"SalesListOrdersSortDirectionType0",
|
|
2167
2161
|
"SalesOrder",
|
|
2168
2162
|
"SalesOrderAllocation",
|
|
@@ -5,6 +5,7 @@ from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
|
5
5
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
7
7
|
|
|
8
|
+
from ..models.erp_configured_column_config_data_type_type_0 import ErpConfiguredColumnConfigDataTypeType0
|
|
8
9
|
from ..models.erp_configured_column_config_sourcetype import ErpConfiguredColumnConfigSourcetype
|
|
9
10
|
from ..types import UNSET, Unset
|
|
10
11
|
|
|
@@ -26,6 +27,7 @@ class ErpConfiguredColumnConfig:
|
|
|
26
27
|
label (str):
|
|
27
28
|
canonical_field (None | str | Unset):
|
|
28
29
|
ext_data_path (None | str | Unset):
|
|
30
|
+
data_type (ErpConfiguredColumnConfigDataTypeType0 | None | Unset):
|
|
29
31
|
visible (bool | Unset): Default: True.
|
|
30
32
|
order (int | Unset): Default: 0.
|
|
31
33
|
width (int | None | Unset):
|
|
@@ -41,6 +43,7 @@ class ErpConfiguredColumnConfig:
|
|
|
41
43
|
label: str
|
|
42
44
|
canonical_field: None | str | Unset = UNSET
|
|
43
45
|
ext_data_path: None | str | Unset = UNSET
|
|
46
|
+
data_type: ErpConfiguredColumnConfigDataTypeType0 | None | Unset = UNSET
|
|
44
47
|
visible: bool | Unset = True
|
|
45
48
|
order: int | Unset = 0
|
|
46
49
|
width: int | None | Unset = UNSET
|
|
@@ -69,6 +72,14 @@ class ErpConfiguredColumnConfig:
|
|
|
69
72
|
else:
|
|
70
73
|
ext_data_path = self.ext_data_path
|
|
71
74
|
|
|
75
|
+
data_type: None | str | Unset
|
|
76
|
+
if isinstance(self.data_type, Unset):
|
|
77
|
+
data_type = UNSET
|
|
78
|
+
elif isinstance(self.data_type, ErpConfiguredColumnConfigDataTypeType0):
|
|
79
|
+
data_type = self.data_type.value
|
|
80
|
+
else:
|
|
81
|
+
data_type = self.data_type
|
|
82
|
+
|
|
72
83
|
visible = self.visible
|
|
73
84
|
|
|
74
85
|
order = self.order
|
|
@@ -111,6 +122,8 @@ class ErpConfiguredColumnConfig:
|
|
|
111
122
|
field_dict["canonicalField"] = canonical_field
|
|
112
123
|
if ext_data_path is not UNSET:
|
|
113
124
|
field_dict["extDataPath"] = ext_data_path
|
|
125
|
+
if data_type is not UNSET:
|
|
126
|
+
field_dict["dataType"] = data_type
|
|
114
127
|
if visible is not UNSET:
|
|
115
128
|
field_dict["visible"] = visible
|
|
116
129
|
if order is not UNSET:
|
|
@@ -161,6 +174,23 @@ class ErpConfiguredColumnConfig:
|
|
|
161
174
|
|
|
162
175
|
ext_data_path = _parse_ext_data_path(d.pop("extDataPath", UNSET))
|
|
163
176
|
|
|
177
|
+
def _parse_data_type(data: object) -> ErpConfiguredColumnConfigDataTypeType0 | None | Unset:
|
|
178
|
+
if data is None:
|
|
179
|
+
return data
|
|
180
|
+
if isinstance(data, Unset):
|
|
181
|
+
return data
|
|
182
|
+
try:
|
|
183
|
+
if not isinstance(data, str):
|
|
184
|
+
raise TypeError()
|
|
185
|
+
data_type_type_0 = ErpConfiguredColumnConfigDataTypeType0(data)
|
|
186
|
+
|
|
187
|
+
return data_type_type_0
|
|
188
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
189
|
+
pass
|
|
190
|
+
return cast(ErpConfiguredColumnConfigDataTypeType0 | None | Unset, data)
|
|
191
|
+
|
|
192
|
+
data_type = _parse_data_type(d.pop("dataType", UNSET))
|
|
193
|
+
|
|
164
194
|
visible = d.pop("visible", UNSET)
|
|
165
195
|
|
|
166
196
|
order = d.pop("order", UNSET)
|
|
@@ -207,6 +237,7 @@ class ErpConfiguredColumnConfig:
|
|
|
207
237
|
label=label,
|
|
208
238
|
canonical_field=canonical_field,
|
|
209
239
|
ext_data_path=ext_data_path,
|
|
240
|
+
data_type=data_type,
|
|
210
241
|
visible=visible,
|
|
211
242
|
order=order,
|
|
212
243
|
width=width,
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import Any, TypeVar, cast
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
from ..models.import_task_payload_type import ImportTaskPayloadType
|
|
10
|
+
from ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="ImportTaskPayload")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class ImportTaskPayload:
|
|
17
|
+
"""Payload for IMPORT_VALIDATE / IMPORT_COMMIT worker tasks.
|
|
18
|
+
|
|
19
|
+
Carries only the import job id (+ project + initiating user). The per-entity
|
|
20
|
+
strategy is resolved from ``ImportJob.entity_type`` at execution time, so
|
|
21
|
+
this payload stays entity-agnostic.
|
|
22
|
+
|
|
23
|
+
A single model serves both import task types; ``type`` acts as the
|
|
24
|
+
discriminator so the payload can participate in ``WorkerTaskPayload``.
|
|
25
|
+
|
|
26
|
+
Attributes:
|
|
27
|
+
type_ (ImportTaskPayloadType): Which import stage this payload drives (validate or commit)
|
|
28
|
+
import_id (str):
|
|
29
|
+
project_id (str):
|
|
30
|
+
user_id (None | str | Unset):
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
type_: ImportTaskPayloadType
|
|
34
|
+
import_id: str
|
|
35
|
+
project_id: str
|
|
36
|
+
user_id: None | str | Unset = UNSET
|
|
37
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
|
+
|
|
39
|
+
def to_dict(self) -> dict[str, Any]:
|
|
40
|
+
type_ = self.type_.value
|
|
41
|
+
|
|
42
|
+
import_id = self.import_id
|
|
43
|
+
|
|
44
|
+
project_id = self.project_id
|
|
45
|
+
|
|
46
|
+
user_id: None | str | Unset
|
|
47
|
+
if isinstance(self.user_id, Unset):
|
|
48
|
+
user_id = UNSET
|
|
49
|
+
else:
|
|
50
|
+
user_id = self.user_id
|
|
51
|
+
|
|
52
|
+
field_dict: dict[str, Any] = {}
|
|
53
|
+
field_dict.update(self.additional_properties)
|
|
54
|
+
field_dict.update(
|
|
55
|
+
{
|
|
56
|
+
"type": type_,
|
|
57
|
+
"importId": import_id,
|
|
58
|
+
"projectId": project_id,
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
if user_id is not UNSET:
|
|
62
|
+
field_dict["userId"] = user_id
|
|
63
|
+
|
|
64
|
+
return field_dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
68
|
+
d = dict(src_dict)
|
|
69
|
+
type_ = ImportTaskPayloadType(d.pop("type"))
|
|
70
|
+
|
|
71
|
+
import_id = d.pop("importId")
|
|
72
|
+
|
|
73
|
+
project_id = d.pop("projectId")
|
|
74
|
+
|
|
75
|
+
def _parse_user_id(data: object) -> None | str | Unset:
|
|
76
|
+
if data is None:
|
|
77
|
+
return data
|
|
78
|
+
if isinstance(data, Unset):
|
|
79
|
+
return data
|
|
80
|
+
return cast(None | str | Unset, data)
|
|
81
|
+
|
|
82
|
+
user_id = _parse_user_id(d.pop("userId", UNSET))
|
|
83
|
+
|
|
84
|
+
import_task_payload = cls(
|
|
85
|
+
type_=type_,
|
|
86
|
+
import_id=import_id,
|
|
87
|
+
project_id=project_id,
|
|
88
|
+
user_id=user_id,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
import_task_payload.additional_properties = d
|
|
92
|
+
return import_task_payload
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def additional_keys(self) -> list[str]:
|
|
96
|
+
return list(self.additional_properties.keys())
|
|
97
|
+
|
|
98
|
+
def __getitem__(self, key: str) -> Any:
|
|
99
|
+
return self.additional_properties[key]
|
|
100
|
+
|
|
101
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
102
|
+
self.additional_properties[key] = value
|
|
103
|
+
|
|
104
|
+
def __delitem__(self, key: str) -> None:
|
|
105
|
+
del self.additional_properties[key]
|
|
106
|
+
|
|
107
|
+
def __contains__(self, key: str) -> bool:
|
|
108
|
+
return key in self.additional_properties
|