amsdal_crm 0.2.1__py3-none-any.whl → 0.2.2__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.
amsdal_crm/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.2.1'
1
+ __version__ = '0.2.2'
@@ -107,6 +107,7 @@ class Migration(migrations.Migration):
107
107
  "postal_code": {"type": "string", "title": "Postal Code"},
108
108
  "country": {"type": "string", "title": "Country"},
109
109
  "is_primary": {"type": "boolean", "default": False, "title": "Is Primary"},
110
+ "custom_fields": {"type": "anything", "title": "Custom Fields"},
110
111
  },
111
112
  "custom_code": 'async def apre_create(self) -> None:\n """Async hook called before creating account."""\n if self.custom_fields:\n from amsdal_crm.services.custom_field_service import CustomFieldService\n self.custom_fields = await CustomFieldService.avalidate_custom_fields(\'EntityAddress\', self.custom_fields)\n await super().apre_create()\n\nasync def apre_update(self) -> None:\n """Async hook called before updating account."""\n if self.custom_fields:\n from amsdal_crm.services.custom_field_service import CustomFieldService\n self.custom_fields = await CustomFieldService.avalidate_custom_fields(\'EntityAddress\', self.custom_fields)\n await super().apre_update()\n\ndef pre_create(self) -> None:\n """Hook called before creating account."""\n if self.custom_fields:\n from amsdal_crm.services.custom_field_service import CustomFieldService\n self.custom_fields = CustomFieldService.validate_custom_fields(\'EntityAddress\', self.custom_fields)\n super().pre_create()\n\ndef pre_update(self) -> None:\n """Hook called before updating account."""\n if self.custom_fields:\n from amsdal_crm.services.custom_field_service import CustomFieldService\n self.custom_fields = CustomFieldService.validate_custom_fields(\'EntityAddress\', self.custom_fields)\n super().pre_update()',
112
113
  "storage_metadata": {
@@ -375,6 +376,7 @@ class Migration(migrations.Migration):
375
376
  "value": {"type": "string", "title": "Contact Point Value"},
376
377
  "is_primary": {"type": "boolean", "default": False, "title": "Is Primary"},
377
378
  "can_contact": {"type": "boolean", "default": True, "title": "Can Contact"},
379
+ "custom_fields": {"type": "anything", "title": "Custom Fields"},
378
380
  "entity": {
379
381
  "type": "Entity",
380
382
  "title": "Entity",
@@ -402,6 +404,7 @@ class Migration(migrations.Migration):
402
404
  "value": {"type": "string", "title": "Identifier Value"},
403
405
  "country": {"type": "string", "title": "Country"},
404
406
  "is_primary": {"type": "boolean", "default": False, "title": "Is Primary"},
407
+ "custom_fields": {"type": "anything", "title": "Custom Fields"},
405
408
  "entity": {
406
409
  "type": "Entity",
407
410
  "title": "Entity",
@@ -429,6 +432,7 @@ class Migration(migrations.Migration):
429
432
  "start_date": {"type": "string", "title": "Start Date"},
430
433
  "end_date": {"type": "string", "title": "End Date"},
431
434
  "relationship_group_name": {"type": "string", "title": "Relationship Group Name"},
435
+ "custom_fields": {"type": "anything", "title": "Custom Fields"},
432
436
  "from_entity": {
433
437
  "type": "Entity",
434
438
  "title": "From Entity",
@@ -125,6 +125,9 @@ class EntityRelationship(TimestampMixin, Model):
125
125
  end_date: str | None = Field(default=None, title='End Date')
126
126
  relationship_group_name: str | None = Field(default=None, title='Relationship Group Name')
127
127
 
128
+ # Custom fields (JSON)
129
+ custom_fields: dict[str, Any] | None = Field(default=None, title='Custom Fields')
130
+
128
131
  def pre_create(self) -> None:
129
132
  """Hook called before creating account."""
130
133
  if self.custom_fields:
@@ -178,6 +181,9 @@ class EntityIdentifier(TimestampMixin, Model):
178
181
  # TODO: validate one per entity
179
182
  is_primary: bool = Field(default=False, title='Is Primary')
180
183
 
184
+ # Custom fields (JSON)
185
+ custom_fields: dict[str, Any] | None = Field(default=None, title='Custom Fields')
186
+
181
187
  def pre_create(self) -> None:
182
188
  """Hook called before creating account."""
183
189
  if self.custom_fields:
@@ -231,6 +237,9 @@ class EntityContactPoint(TimestampMixin, Model):
231
237
  is_primary: bool = Field(default=False, title='Is Primary')
232
238
  can_contact: bool = Field(default=True, title='Can Contact')
233
239
 
240
+ # Custom fields (JSON)
241
+ custom_fields: dict[str, Any] | None = Field(default=None, title='Custom Fields')
242
+
234
243
  def pre_create(self) -> None:
235
244
  """Hook called before creating account."""
236
245
  if self.custom_fields:
@@ -287,6 +296,9 @@ class EntityAddress(TimestampMixin, Model):
287
296
  # TODO: validate one per entity
288
297
  is_primary: bool = Field(default=False, title='Is Primary')
289
298
 
299
+ # Custom fields (JSON)
300
+ custom_fields: dict[str, Any] | None = Field(default=None, title='Custom Fields')
301
+
290
302
  def pre_create(self) -> None:
291
303
  """Hook called before creating account."""
292
304
  if self.custom_fields:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amsdal_crm
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: amsdal-crm plugin for AMSDAL Framework
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: aiohttp==3.12.15
@@ -1,5 +1,5 @@
1
1
  amsdal_crm/Third-Party Materials - AMSDAL Dependencies - License Notices.md,sha256=ML7PqsHrTMNNZn8E_rA-LzDCAafMSxMcrmSg8YOi-wo,113896
2
- amsdal_crm/__about__.py,sha256=PmcQ2PI2oP8irnLtJLJby2YfW6sBvLAmL-VpABzTqwc,22
2
+ amsdal_crm/__about__.py,sha256=QQ0yjZQnvXM7JeLLZEZWX6NmVUPu1lSROWOXF49_gug,22
3
3
  amsdal_crm/__init__.py,sha256=b4wxJYesA5Ctk1IrAvlw64i_0EU3SiK1Tw6sUYakd18,303
4
4
  amsdal_crm/app.py,sha256=JLvueh_2KURQLDWMQlq4Z6gAFsqBDTRf6pK095ehp14,1373
5
5
  amsdal_crm/constants.py,sha256=5Ga7q9zEKcQZnAoKv_SE_7w8WxvhPFkM9gY9NruOEaA,347
@@ -10,13 +10,13 @@ amsdal_crm/fixtures/permissions.py,sha256=TQEY_zX60GSudSZqmonaYqWCaod6oBsQw1NQPu
10
10
  amsdal_crm/fixtures/pipelines.py,sha256=ZCLmgrA700Sl7Oy7l4IQ8FbIbC1378OkcJTrZe5701o,2064
11
11
  amsdal_crm/lifecycle/__init__.py,sha256=B8nw19lEIr7U15Lnu6jh7yzZwF9LWWh4-p3X63sAicQ,31
12
12
  amsdal_crm/lifecycle/consumer.py,sha256=owS9kXKPs3Lzy7RiN_jI6hHEO6c90Tf-DT6aNqQ3uj4,8893
13
- amsdal_crm/migrations/0000_initial.py,sha256=nWiMoc1S_--qXIW0WXwbFjKS3S6klfHgS4MYseVsuGE,63474
13
+ amsdal_crm/migrations/0000_initial.py,sha256=uo0C4qXYVFkkM5iMAXTmsJCjducalpx9Y9Fyuuz9T1c,63814
14
14
  amsdal_crm/models/__init__.py,sha256=3c-gqBkw2PXg4rp_wH2EN6viRu7Ff926Etn_BkQa5RU,18
15
15
  amsdal_crm/models/activity.py,sha256=Hwy_Z_zhk96yopTcm4vU4-SZbPg152r7N9er96Jkdho,4732
16
16
  amsdal_crm/models/attachment.py,sha256=B-6IuPrF6-VDnsFz_Q4UCh09YcFMs4o4zyT4VpvLe3U,1513
17
17
  amsdal_crm/models/custom_field_definition.py,sha256=0IIWcetZ0vXT8lPRGahyt7phoNKuCq2MQO6C8wEGk4Q,1749
18
18
  amsdal_crm/models/deal.py,sha256=xmJOCE_fvY6asnOp2_eeWLW3clSiS-MoV9Bm-1gtEF0,6583
19
- amsdal_crm/models/entity.py,sha256=VTE7inPvViGZbJi6vTKB9O-O19TCyK7ub0zF_wpSdyg,12824
19
+ amsdal_crm/models/entity.py,sha256=r5_t8SSf4fneukhtFS59iLJt_yC1DIv0gyQW29Qhons,13280
20
20
  amsdal_crm/models/pipeline.py,sha256=DXJh5MbCCRctEHhDfxef5RxFWSKN0D4v6UK75q5ssL8,925
21
21
  amsdal_crm/models/stage.py,sha256=57rhfA4Oib8DKjDifWQe3EFxh-Auww3_PgOPfj4-L0E,1666
22
22
  amsdal_crm/models/workflow_rule.py,sha256=g-vAdJHKyA1PsiB3vPhd474Uvq94USHz35W1c5XyrAQ,1535
@@ -26,6 +26,6 @@ amsdal_crm/services/custom_field_service.py,sha256=r2dr2gijTbi9r56XV64bSArx0jTGw
26
26
  amsdal_crm/services/deal_service.py,sha256=PTxCQy6YqMyrtL4sRhyCU09V6OemrmZ405sQk-eBUlA,4803
27
27
  amsdal_crm/services/email_service.py,sha256=L9o-WaOET0tjo9g-zzC8GGCtfDZVheziHM_ob10jO2M,3518
28
28
  amsdal_crm/services/workflow_service.py,sha256=7m_vbk9FL_FCy9KS9LM4ueztO9ZsLwbvubdo9NA345g,7020
29
- amsdal_crm-0.2.1.dist-info/METADATA,sha256=VULaunY-6kM7g_jGLMyUWJK3iy36pjkpk-BLYo6vcN4,1596
30
- amsdal_crm-0.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
31
- amsdal_crm-0.2.1.dist-info/RECORD,,
29
+ amsdal_crm-0.2.2.dist-info/METADATA,sha256=XAgx-kT5AOq9ECz512STMaPZN0e_Jx1SOvo1AgBT9Js,1596
30
+ amsdal_crm-0.2.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
31
+ amsdal_crm-0.2.2.dist-info/RECORD,,