internal 1.0.83__tar.gz → 1.0.85__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.
Potentially problematic release.
This version of internal might be problematic. Click here for more details.
- {internal-1.0.83 → internal-1.0.85}/PKG-INFO +1 -1
- {internal-1.0.83 → internal-1.0.85}/pyproject.toml +1 -1
- internal-1.0.85/src/internal/common_enum/event_code.py +29 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/model/base_model.py +2 -2
- {internal-1.0.83 → internal-1.0.85}/README.md +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/base_config.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/base_factory.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/cache_redis.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/contact_type.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/description_type.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/event_trigger_type.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/feature.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/lpnr_direction.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/notify_type.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/operator_type.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/common_enum/order_type.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/const.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/database.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/exception/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/exception/app_exception.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/exception/base_exception.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/exception/internal_exception.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/ext/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/ext/amazon/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/ext/amazon/aws/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/ext/amazon/aws/const.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/http/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/http/requests.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/http/responses.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/interface/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/interface/base_interface.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/middleware/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/middleware/log_request.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/model/__init__.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/model/operate.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/utils.py +0 -0
- {internal-1.0.83 → internal-1.0.85}/src/internal/validator_utils.py +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EventCodeEnum(str, Enum):
|
|
5
|
+
MANUAL_CANCEL_SERVICE_TICKET = "manual_cancel_service_ticket"
|
|
6
|
+
MANUAL_TRACING_START_SERVICE_TICKET = "manual_tracking_start_service_ticket"
|
|
7
|
+
MANUAL_TRACING_STOP_SERVICE_TICKET = "manual_tracking_stop_service_ticket"
|
|
8
|
+
MANUAL_CREATE_SERVICE_TICKET = "manual_create_service_ticket"
|
|
9
|
+
MANUAL_IMPORT_RESERVATION_SMWS = "manual_import_reservation_smws"
|
|
10
|
+
MANUAL_MODIFY_USER_SERVICE_TICKET = "manual_modify_user_service_ticket"
|
|
11
|
+
MANUAL_MODIFY_ESTIMATED_ARRIVAL_TIME_SERVICE_TICKET = "manual_modify_estimated_arrival_time_service_ticket"
|
|
12
|
+
MANUAL_MODIFY_ESTIMATED_DELIVERY_TIME_SERVICE_TICKET = "manual_modify_estimated_delivery_time_service_ticket"
|
|
13
|
+
MANUAL_DELETE_ESTIMATED_DELIVERY_TIME_SERVICE_TICKET = "manual_delete_estimated_delivery_time_service_ticket"
|
|
14
|
+
MANUAL_BOOKING_MESSAGE_SERVICE_TICKET = "manual_booking_message_service_ticket"
|
|
15
|
+
MANUAL_DELIVERY_MESSAGE_SERVICE_TICKET = "manual_delivery_message_service_ticket"
|
|
16
|
+
|
|
17
|
+
NOSHOW_SERVICE_TICKET_AUTO_CANCEL = "noshow_service_ticket_auto_cancel"
|
|
18
|
+
IMPORT_RESERVATION_CONFLICT_AUTO_CANCEL = "import_reservation_conflict_auto_cancel"
|
|
19
|
+
BOOKING_REMINDING_SERVICE_TICKET = "booking_reminding_service_ticket"
|
|
20
|
+
TODAY_REPAIR_WORKING_SERVICE_TICKET_AUTO_CLOSED = "today_repair_working_service_ticket_auto_closed"
|
|
21
|
+
|
|
22
|
+
LPNR_IN_ESTABLISHED = "lpnr_in_established"
|
|
23
|
+
LPNR_IN_RECEPTION = "lpnr_in_reception"
|
|
24
|
+
LPNR_IN_WORKING = "lpnr_in_working"
|
|
25
|
+
LPNR_OUT = "lpnr_out"
|
|
26
|
+
LPNR_OUT_GENERAL = "lpnr_out_general"
|
|
27
|
+
LPNR_OUT_NO_SERVE = "lpnr_out_no_serve"
|
|
28
|
+
LPNR_IN_POSITION = "lpnr_in_position"
|
|
29
|
+
LPNR_OUT_POSITION = "lpnr_out_position"
|
|
@@ -60,13 +60,13 @@ class InternalBaseDocument(Document):
|
|
|
60
60
|
original_model = self.model_copy(deep=True)
|
|
61
61
|
delta_dict = schema
|
|
62
62
|
if issubclass(type(schema), BaseModel):
|
|
63
|
-
delta_dict = schema.model_dump(exclude_unset=True)
|
|
63
|
+
delta_dict = schema.model_dump(exclude_unset=True, mode="json")
|
|
64
64
|
|
|
65
65
|
for key, value in delta_dict.items():
|
|
66
66
|
if hasattr(self, key):
|
|
67
67
|
setattr(self, key, value)
|
|
68
68
|
|
|
69
|
-
operate = await Operate.generate_operate(original_model.model_dump(), self.model_dump())
|
|
69
|
+
operate = await Operate.generate_operate(original_model.model_dump(mode="json"), self.model_dump(mode="json"))
|
|
70
70
|
if not operate.add and not operate.remove and not operate.change:
|
|
71
71
|
raise NoChangeException()
|
|
72
72
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|