mosir-sdk-python 0.1.2__tar.gz → 0.1.3__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.
- {mosir_sdk_python-0.1.2/src/mosir_sdk_python.egg-info → mosir_sdk_python-0.1.3}/PKG-INFO +1 -1
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/public.graphqls +17 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/public.operations.graphql +24 -2
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/pyproject.toml +1 -1
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk/_operations.py +8 -2
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3/src/mosir_sdk_python.egg-info}/PKG-INFO +1 -1
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/LICENSE +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/MANIFEST.in +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/README.md +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/setup.cfg +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk/__init__.py +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk/client.py +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk/exceptions.py +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk/py.typed +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/SOURCES.txt +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/dependency_links.txt +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/requires.txt +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/top_level.txt +0 -0
- {mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/tests/test_client.py +0 -0
|
@@ -242,6 +242,20 @@ enum PostCollectionPostOrder {
|
|
|
242
242
|
LATEST
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
input PostCollectionSearchFilterInput {
|
|
246
|
+
authorID: ID
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
type PostCollectionSearchPage {
|
|
250
|
+
pageInfo: PageInfo!
|
|
251
|
+
postCollections: [PostCollectionSearchResult!]!
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
type PostCollectionSearchResult {
|
|
255
|
+
postCollection: PostCollection!
|
|
256
|
+
relevanceScore: Float
|
|
257
|
+
}
|
|
258
|
+
|
|
245
259
|
enum PostCommentPolicy {
|
|
246
260
|
ALLOW_ALL
|
|
247
261
|
ALLOW_FOLLOWERS
|
|
@@ -522,6 +536,9 @@ type Query {
|
|
|
522
536
|
|
|
523
537
|
"""List profile tags created by the current user."""
|
|
524
538
|
listProfileTags(cursor: String, limit: Int): ProfileTagConnection!
|
|
539
|
+
|
|
540
|
+
"""Search post collections by name."""
|
|
541
|
+
searchPostCollections(cursor: String, filter: PostCollectionSearchFilterInput, limit: Int, query: String!): PostCollectionSearchPage!
|
|
525
542
|
}
|
|
526
543
|
|
|
527
544
|
type ReactionDetailRecord {
|
|
@@ -228,6 +228,22 @@ fragment PostCollectionFields on PostCollection {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
fragment PostCollectionSearchResultFields on PostCollectionSearchResult {
|
|
232
|
+
postCollection {
|
|
233
|
+
...PostCollectionFields
|
|
234
|
+
}
|
|
235
|
+
relevanceScore
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
fragment PostCollectionSearchPageFields on PostCollectionSearchPage {
|
|
239
|
+
postCollections {
|
|
240
|
+
...PostCollectionSearchResultFields
|
|
241
|
+
}
|
|
242
|
+
pageInfo {
|
|
243
|
+
...PageInfoFields
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
231
247
|
fragment MonoPostDraftFields on MonoPostDraft {
|
|
232
248
|
content
|
|
233
249
|
attachmentIds {
|
|
@@ -528,6 +544,12 @@ query GetPostCollection($id: ID!) {
|
|
|
528
544
|
}
|
|
529
545
|
}
|
|
530
546
|
|
|
547
|
+
query SearchPostCollections($cursor: String, $filter: PostCollectionSearchFilterInput, $limit: Int = 20, $query: String!) {
|
|
548
|
+
searchPostCollections(cursor: $cursor, filter: $filter, limit: $limit, query: $query) {
|
|
549
|
+
...PostCollectionSearchPageFields
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
531
553
|
query GetPostCollectionsByAuthor($authorID: ID!, $cursor: String, $limit: Int) {
|
|
532
554
|
getPostCollectionsByAuthor(authorID: $authorID, cursor: $cursor, limit: $limit) {
|
|
533
555
|
...PostCollectionConnectionFields
|
|
@@ -550,8 +572,8 @@ query GetPostDraftsCount($filter: PostDraftFilterInput) {
|
|
|
550
572
|
getPostDraftsCount(filter: $filter)
|
|
551
573
|
}
|
|
552
574
|
|
|
553
|
-
query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $
|
|
554
|
-
getPostReactionDetails(cursor: $cursor, limit: $limit, postId: $postId, type: $
|
|
575
|
+
query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $reactionType: ReactionTypeInput) {
|
|
576
|
+
getPostReactionDetails(cursor: $cursor, limit: $limit, postId: $postId, type: $reactionType) {
|
|
555
577
|
...PostReactionDetailRecordConnectionFields
|
|
556
578
|
}
|
|
557
579
|
}
|
|
@@ -121,6 +121,12 @@ OPERATION_REGISTRY: dict[str, OperationSpec] = {
|
|
|
121
121
|
document='query GetPostCollection($id: ID!) {\n getPostCollection(id: $id) {\n ...PostCollectionFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostCollectionFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n author {\n ...ProfileReferenceFields\n }\n coverMedia {\n ...MediaMetadataFields\n }\n}',
|
|
122
122
|
variable_map={'id': 'id'},
|
|
123
123
|
),
|
|
124
|
+
'search_post_collections': OperationSpec(
|
|
125
|
+
operation_name='SearchPostCollections',
|
|
126
|
+
operation_type='query',
|
|
127
|
+
document='query SearchPostCollections($cursor: String, $filter: PostCollectionSearchFilterInput, $limit: Int = 20, $query: String!) {\n searchPostCollections(\n cursor: $cursor\n filter: $filter\n limit: $limit\n query: $query\n ) {\n ...PostCollectionSearchPageFields\n }\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment AspectRatioFields on AspectRatio {\n numerator\n denominator\n}\n\nfragment MediaFileMetadataFields on MediaFileMetadata {\n id\n mediaId\n profile\n contentType\n url\n}\n\nfragment MediaMetadataFields on MediaMetadata {\n id\n accountID\n aspectRatio {\n ...AspectRatioFields\n }\n blurHash\n durationMs\n files {\n ...MediaFileMetadataFields\n }\n status\n type\n}\n\nfragment PostCollectionFields on PostCollection {\n id\n authorID\n coverMediaID\n createdAt\n description\n followLevel\n postCount\n title\n updatedAt\n author {\n ...ProfileReferenceFields\n }\n coverMedia {\n ...MediaMetadataFields\n }\n}\n\nfragment PostCollectionSearchResultFields on PostCollectionSearchResult {\n postCollection {\n ...PostCollectionFields\n }\n relevanceScore\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment PostCollectionSearchPageFields on PostCollectionSearchPage {\n postCollections {\n ...PostCollectionSearchResultFields\n }\n pageInfo {\n ...PageInfoFields\n }\n}',
|
|
128
|
+
variable_map={'cursor': 'cursor', 'filter': 'filter', 'limit': 'limit', 'query': 'query'},
|
|
129
|
+
),
|
|
124
130
|
'get_post_collections_by_author': OperationSpec(
|
|
125
131
|
operation_name='GetPostCollectionsByAuthor',
|
|
126
132
|
operation_type='query',
|
|
@@ -148,8 +154,8 @@ OPERATION_REGISTRY: dict[str, OperationSpec] = {
|
|
|
148
154
|
'get_post_reaction_details': OperationSpec(
|
|
149
155
|
operation_name='GetPostReactionDetails',
|
|
150
156
|
operation_type='query',
|
|
151
|
-
document='query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $
|
|
152
|
-
variable_map={'cursor': 'cursor', 'limit': 'limit', 'postId': 'postId', 'post_id': 'postId', '
|
|
157
|
+
document='query GetPostReactionDetails($cursor: String, $limit: Int = 20, $postId: ID!, $reactionType: ReactionTypeInput) {\n getPostReactionDetails(\n cursor: $cursor\n limit: $limit\n postId: $postId\n type: $reactionType\n ) {\n ...PostReactionDetailRecordConnectionFields\n }\n}\n\nfragment PageInfoFields on PageInfo {\n endCursor\n hasNextPage\n totalCount\n}\n\nfragment ProfileReferenceFields on Profile {\n id\n username\n displayName\n profileEmoji\n profileMediaId\n}\n\nfragment ReactionTypeFields on ReactionType {\n emojiValue\n nativeValue\n}\n\nfragment ReactionDetailRecordFields on ReactionDetailRecord {\n accountId\n createdAt\n profile {\n ...ProfileReferenceFields\n }\n type {\n ...ReactionTypeFields\n }\n}\n\nfragment PostReactionDetailRecordConnectionFields on PostReactionDetailRecordConnection {\n pageInfo {\n ...PageInfoFields\n }\n reactionRecords {\n ...ReactionDetailRecordFields\n }\n}',
|
|
158
|
+
variable_map={'cursor': 'cursor', 'limit': 'limit', 'postId': 'postId', 'post_id': 'postId', 'reactionType': 'reactionType', 'reaction_type': 'reactionType'},
|
|
153
159
|
),
|
|
154
160
|
'get_post_reactions': OperationSpec(
|
|
155
161
|
operation_name='GetPostReactions',
|
|
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
|
{mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/requires.txt
RENAMED
|
File without changes
|
{mosir_sdk_python-0.1.2 → mosir_sdk_python-0.1.3}/src/mosir_sdk_python.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|