unitysvc-services 0.1.6__py3-none-any.whl → 0.1.7__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.
@@ -38,12 +38,13 @@ class DocumentContextEnum(StrEnum):
38
38
  class DocumentCategoryEnum(StrEnum):
39
39
  getting_started = "getting_started"
40
40
  api_reference = "api_reference"
41
- tutorials = "tutorials"
42
- code_examples = "code_examples"
43
- use_cases = "use_cases"
41
+ tutorial = "tutorial"
42
+ code_example = "code_example"
43
+ code_example_output = "code_example_output"
44
+ use_case = "use_case"
44
45
  troubleshooting = "troubleshooting"
45
46
  changelog = "changelog"
46
- best_practices = "best_practices"
47
+ best_practice = "best_practice"
47
48
  specification = "specification"
48
49
  service_level_agreement = "service_level_agreement"
49
50
  terms_of_service = "terms_of_service"
unitysvc_services/test.py CHANGED
@@ -70,9 +70,9 @@ def extract_code_examples_from_listing(listing_data: dict[str, Any], listing_fil
70
70
  documents = interface.get("documents", [])
71
71
 
72
72
  for doc in documents:
73
- # Match both "code_example" and "code_examples"
73
+ # Check if this is a code example document
74
74
  category = doc.get("category", "")
75
- if category == DocumentCategoryEnum.code_examples:
75
+ if category == DocumentCategoryEnum.code_example:
76
76
  # Resolve file path relative to listing file
77
77
  file_path = doc.get("file_path")
78
78
  if file_path:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-services
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: SDK for digital service providers on UnitySVC
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -8,19 +8,19 @@ unitysvc_services/publisher.py,sha256=_r6wqJJkC-9RtyKcxiegPoSRDi2-nRL16M8OJ-vi7e
8
8
  unitysvc_services/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  unitysvc_services/query.py,sha256=q0_g5YAl9cPlHpW7k7Y6A-t4fQSdI-_4Jl6g2KgkEm0,24049
10
10
  unitysvc_services/scaffold.py,sha256=Y73IX8vskImxSvxDgR0mvEFuAMYnBKfttn3bjcz3jmQ,40331
11
- unitysvc_services/test.py,sha256=pkFbWTHt4UC6ZNm-yk7eFIEdYib2S6xxkAqQV03_Eiw,29740
11
+ unitysvc_services/test.py,sha256=nZp6O_j2Y-gNPNWJ55QG4kI50BsbS_faUFGupWK1VMI,29734
12
12
  unitysvc_services/update.py,sha256=K9swocTUnqqiSgARo6GmuzTzUySSpyqqPPW4xF7ZU-g,9659
13
13
  unitysvc_services/utils.py,sha256=4tEBdO90XpkS6j73ZXnz5dNLVXJaPUILWMwzk5_fUQ4,15276
14
14
  unitysvc_services/validator.py,sha256=sasMpdDhoWZJZ-unrnDhaJfyxHSm3IgQjEdmPvXrFEE,29525
15
15
  unitysvc_services/models/__init__.py,sha256=hJCc2KSZmIHlKWKE6GpLGdeVB6LIpyVUKiOKnwmKvCs,200
16
- unitysvc_services/models/base.py,sha256=3FdlR-_tBOFC2JbVNFNQA4-D1Lhlo5UZQh1QDgKnS_I,18293
16
+ unitysvc_services/models/base.py,sha256=ofdxWkzSxCB3JqMCnNHL83KfWlXZ9A4HbNRtKG6jcMQ,18333
17
17
  unitysvc_services/models/listing_v1.py,sha256=PPb9hIdWQp80AWKLxFXYBDcWXzNcDrO4v6rqt5_i2qo,3083
18
18
  unitysvc_services/models/provider_v1.py,sha256=76EK1i0hVtdx_awb00-ZMtSj4Oc9Zp4xZ-DeXmG3iTY,2701
19
19
  unitysvc_services/models/seller_v1.py,sha256=oll2ZZBPBDX8wslHrbsCKf_jIqHNte2VEj5RJ9bawR4,3520
20
20
  unitysvc_services/models/service_v1.py,sha256=Xpk-K-95M1LRqYM8nNJcll8t-lsW9Xdi2_bVbYNs8-M,3019
21
- unitysvc_services-0.1.6.dist-info/licenses/LICENSE,sha256=_p8V6A8OMPu2HIztn3O01v0-urZFwk0Dd3Yk_PTIlL8,1065
22
- unitysvc_services-0.1.6.dist-info/METADATA,sha256=8soNQ2OBZIKHtntMjdZ9NkK2VYkJ4z1Uco7beFGzqA8,7234
23
- unitysvc_services-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- unitysvc_services-0.1.6.dist-info/entry_points.txt,sha256=RBhVHKky3rsOly4jVa29c7UAw5ZwNNWnttmtzozr5O0,97
25
- unitysvc_services-0.1.6.dist-info/top_level.txt,sha256=GIotQj-Ro2ruR7eupM1r58PWqIHTAq647ORL7E2kneo,18
26
- unitysvc_services-0.1.6.dist-info/RECORD,,
21
+ unitysvc_services-0.1.7.dist-info/licenses/LICENSE,sha256=_p8V6A8OMPu2HIztn3O01v0-urZFwk0Dd3Yk_PTIlL8,1065
22
+ unitysvc_services-0.1.7.dist-info/METADATA,sha256=WrTTofhHZReTM3ArgJ8E76Cb-tgJpJikNfL8bBg58Go,7234
23
+ unitysvc_services-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ unitysvc_services-0.1.7.dist-info/entry_points.txt,sha256=RBhVHKky3rsOly4jVa29c7UAw5ZwNNWnttmtzozr5O0,97
25
+ unitysvc_services-0.1.7.dist-info/top_level.txt,sha256=GIotQj-Ro2ruR7eupM1r58PWqIHTAq647ORL7E2kneo,18
26
+ unitysvc_services-0.1.7.dist-info/RECORD,,