naijarea-ts 1.0.2 → 1.0.6
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.
- package/dist/account.d.ts +274 -4
- package/dist/account.js +2765 -198
- package/dist/index.d.ts +2 -2
- package/dist/index.js +39 -5
- package/dist/posts.d.ts +185 -12
- package/dist/posts.js +2105 -544
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ export { AdminGetStatusRequest, AdminGetStatusResponse } from './admin';
|
|
|
2
2
|
export { Any } from './google/protobuf/any';
|
|
3
3
|
export { ChatGetStatusRequest, ChatGetStatusResponse } from './chat';
|
|
4
4
|
export { CreatePermissionRequest, GetPermissionRequest, ListPermissionsRequest, UpdatePermissionRequest, Permission, CreatePermissionResponse, GetPermissionResponse, ListPermissionsResponse, UpdatePermissionResponse, CreateAccountTypeRequest, ListAccountTypesRequest, UpdateAccountTypeRequest, AccountType, CreateAccountTypeResponse, GetAccountTypeResponse, ListAccountTypesResponse, UpdateAccountTypeResponse, CreateStateRequest, ListStatesRequest, UpdateStateRequest, State, CreateStateResponse, GetStateResponse, ListStatesResponse, UpdateStateResponse, CreatePositionRequest, ListPositionsRequest, UpdatePositionRequest, Position, CreatePositionResponse, GetPositionResponse, ListPositionsResponse, UpdatePositionResponse, CreatePartyRequest, ListPartiesRequest, UpdatePartyRequest, Party, CreatePartyResponse, GetPartyResponse, ListPartiesResponse, UpdatePartyResponse, CreateLocalGovernmentRequest, ListLocalGovernmentsRequest, UpdateLocalGovernmentRequest, LocalGovernment, CreateLocalGovernmentResponse, GetLocalGovernmentResponse, ListLocalGovernmentsResponse, UpdateLocalGovernmentResponse, CreateConstituencyRequest, ListConstituenciesRequest, UpdateConstituencyRequest, Constituency, CreateConstituencyResponse, GetConstituencyResponse, ListConstituenciesResponse, UpdateConstituencyResponse, CreateDistrictRequest, ListDistrictsRequest, UpdateDistrictRequest, District, CreateDistrictResponse, GetDistrictResponse, ListDistrictsResponse, UpdateDistrictResponse } from './lookup';
|
|
5
|
-
export { CreatePostRequest, CreatePostResponse, GetPostResponse, ListPostsRequest, ListPostsResponse, UpdatePostRequest, UpdatePostResponse, LikePostRequest, LikePostResponse, UnlikePostRequest, BookmarkPostRequest, BookmarkPostResponse, UnbookmarkPostRequest, RepostRequest, RepostResponse, UnrepostRequest, SearchPostsRequest, SignPetitionRequest, SignPetitionResponse, UnsignPetitionRequest, ApproveEyewitnessReportRequest, ApproveEyewitnessReportResponse, UnapproveEyewitnessReportRequest, Post,
|
|
5
|
+
export { CreatePostRequest, CreatePostResponse, GetPostResponse, ListPostsRequest, ListPostsResponse, UpdatePostRequest, UpdatePostResponse, LikePostRequest, LikePostResponse, UnlikePostRequest, BookmarkPostRequest, BookmarkPostResponse, UnbookmarkPostRequest, RepostRequest, RepostResponse, SharePostRequest, SharePostResponse, GetUserPostsRequest, GetUserRepliesRequest, GetUserMediaRequest, GetUserLikesRequest, GetUserRepostsRequest, UnrepostRequest, SearchPostsRequest, SignPetitionRequest, SignPetitionResponse, UnsignPetitionRequest, ApproveEyewitnessReportRequest, ApproveEyewitnessReportResponse, UnapproveEyewitnessReportRequest, Post, PostAuthor, PostEngagementMetrics, PostUserStatus, VideoSource, ReplyTo, ImageDimensions, ImageToCrop } from './posts';
|
|
6
6
|
export { FileDescriptorSet, FileDescriptorProto, DescriptorProto, DescriptorProto_ExtensionRange, DescriptorProto_ReservedRange, ExtensionRangeOptions, ExtensionRangeOptions_Declaration, FieldDescriptorProto, OneofDescriptorProto, EnumDescriptorProto, EnumDescriptorProto_EnumReservedRange, EnumValueDescriptorProto, ServiceDescriptorProto, MethodDescriptorProto, FileOptions, MessageOptions, FieldOptions, FieldOptions_EditionDefault, FieldOptions_FeatureSupport, OneofOptions, EnumOptions, EnumValueOptions, ServiceOptions, MethodOptions, UninterpretedOption, UninterpretedOption_NamePart, FeatureSet, FeatureSet_VisibilityFeature, FeatureSetDefaults, FeatureSetDefaults_FeatureSetEditionDefault, SourceCodeInfo, SourceCodeInfo_Location, GeneratedCodeInfo, GeneratedCodeInfo_Annotation } from './google/protobuf/descriptor';
|
|
7
|
-
export { GetProfileRequest, GetProfileResponse, UpdateProfileRequest, UpdateProfileResponse, UpdatePasswordRequest, UploadPhotoRequest, UploadPhotoResponse, OnboardRequest, OnboardResponse, ApplyForRepresentativeRequest, ApplyForRepresentativeResponse, Account, AccountStatus, OnboardingProgress, Representative } from './account';
|
|
7
|
+
export { GetProfileRequest, GetProfileResponse, UpdateProfileRequest, UpdateProfileResponse, UpdatePasswordRequest, UploadPhotoRequest, UploadPhotoResponse, OnboardRequest, OnboardResponse, ApplyForRepresentativeRequest, ApplyForRepresentativeResponse, ProfileStats, Account, Profile, AccountStatus, OnboardingProgress, Representative, FollowUserRequest, FollowUserResponse, UnfollowUserRequest, UnfollowUserResponse, GetFollowersRequest, GetFollowersResponse, GetFollowingRequest, GetFollowingResponse, GetAccountPostsRequest, GetAccountPostsResponse, GetAccountRepliesRequest, GetAccountRepliesResponse, GetAccountMediaRequest, GetAccountMediaResponse, GetAccountLikesRequest, GetAccountLikesResponse, GetAccountRepostsRequest, GetAccountRepostsResponse, GetStatusRequest, GetStatusResponse } from './account';
|
|
8
8
|
export { Http, HttpRule, CustomHttpPattern } from './google/api/http';
|
|
9
9
|
export { HttpBody } from './google/api/httpbody';
|
|
10
10
|
export { Metadata, Error, Error_DetailsEntry, Empty, DeleteResponse, BaseListRequest, GetIDRequest } from './common';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LocalGovernment = exports.UpdateLocalGovernmentRequest = exports.ListLocalGovernmentsRequest = exports.CreateLocalGovernmentRequest = exports.UpdatePartyResponse = exports.ListPartiesResponse = exports.GetPartyResponse = exports.CreatePartyResponse = exports.Party = exports.UpdatePartyRequest = exports.ListPartiesRequest = exports.CreatePartyRequest = exports.UpdatePositionResponse = exports.ListPositionsResponse = exports.GetPositionResponse = exports.CreatePositionResponse = exports.Position = exports.UpdatePositionRequest = exports.ListPositionsRequest = exports.CreatePositionRequest = exports.UpdateStateResponse = exports.ListStatesResponse = exports.GetStateResponse = exports.CreateStateResponse = exports.State = exports.UpdateStateRequest = exports.ListStatesRequest = exports.CreateStateRequest = exports.UpdateAccountTypeResponse = exports.ListAccountTypesResponse = exports.GetAccountTypeResponse = exports.CreateAccountTypeResponse = exports.AccountType = exports.UpdateAccountTypeRequest = exports.ListAccountTypesRequest = exports.CreateAccountTypeRequest = exports.UpdatePermissionResponse = exports.ListPermissionsResponse = exports.GetPermissionResponse = exports.CreatePermissionResponse = exports.Permission = exports.UpdatePermissionRequest = exports.ListPermissionsRequest = exports.GetPermissionRequest = exports.CreatePermissionRequest = exports.ChatGetStatusResponse = exports.ChatGetStatusRequest = exports.Any = exports.AdminGetStatusResponse = exports.AdminGetStatusRequest = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
4
|
+
exports.UnapproveEyewitnessReportRequest = exports.ApproveEyewitnessReportResponse = exports.ApproveEyewitnessReportRequest = exports.UnsignPetitionRequest = exports.SignPetitionResponse = exports.SignPetitionRequest = exports.SearchPostsRequest = exports.UnrepostRequest = exports.GetUserRepostsRequest = exports.GetUserLikesRequest = exports.GetUserMediaRequest = exports.GetUserRepliesRequest = exports.GetUserPostsRequest = exports.SharePostResponse = exports.SharePostRequest = exports.RepostResponse = exports.RepostRequest = exports.UnbookmarkPostRequest = exports.BookmarkPostResponse = exports.BookmarkPostRequest = exports.UnlikePostRequest = exports.LikePostResponse = exports.LikePostRequest = exports.UpdatePostResponse = exports.UpdatePostRequest = exports.ListPostsResponse = exports.ListPostsRequest = exports.GetPostResponse = exports.CreatePostResponse = exports.CreatePostRequest = exports.UpdateDistrictResponse = exports.ListDistrictsResponse = exports.GetDistrictResponse = exports.CreateDistrictResponse = exports.District = exports.UpdateDistrictRequest = exports.ListDistrictsRequest = exports.CreateDistrictRequest = exports.UpdateConstituencyResponse = exports.ListConstituenciesResponse = exports.GetConstituencyResponse = exports.CreateConstituencyResponse = exports.Constituency = exports.UpdateConstituencyRequest = exports.ListConstituenciesRequest = exports.CreateConstituencyRequest = exports.UpdateLocalGovernmentResponse = exports.ListLocalGovernmentsResponse = exports.GetLocalGovernmentResponse = exports.CreateLocalGovernmentResponse = void 0;
|
|
5
|
+
exports.OnboardRequest = exports.UploadPhotoResponse = exports.UploadPhotoRequest = exports.UpdatePasswordRequest = exports.UpdateProfileResponse = exports.UpdateProfileRequest = exports.GetProfileResponse = exports.GetProfileRequest = exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.FeatureSet_VisibilityFeature = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.ImageToCrop = exports.ImageDimensions = exports.ReplyTo = exports.VideoSource = exports.PostUserStatus = exports.PostEngagementMetrics = exports.PostAuthor = exports.Post = void 0;
|
|
6
|
+
exports.ResetPasswordRequest = exports.ForgotPasswordRequest = exports.ResendActivationRequest = exports.ActivateAccountRequest = exports.LogoutRequest = exports.RefreshTokenRequest = exports.LoginResponse = exports.LoginRequest = exports.RegisterResponse = exports.RegisterRequest = exports.GetIDRequest = exports.BaseListRequest = exports.DeleteResponse = exports.Empty = exports.Error_DetailsEntry = exports.Error = exports.Metadata = exports.HttpBody = exports.CustomHttpPattern = exports.HttpRule = exports.Http = exports.GetStatusResponse = exports.GetStatusRequest = exports.GetAccountRepostsResponse = exports.GetAccountRepostsRequest = exports.GetAccountLikesResponse = exports.GetAccountLikesRequest = exports.GetAccountMediaResponse = exports.GetAccountMediaRequest = exports.GetAccountRepliesResponse = exports.GetAccountRepliesRequest = exports.GetAccountPostsResponse = exports.GetAccountPostsRequest = exports.GetFollowingResponse = exports.GetFollowingRequest = exports.GetFollowersResponse = exports.GetFollowersRequest = exports.UnfollowUserResponse = exports.UnfollowUserRequest = exports.FollowUserResponse = exports.FollowUserRequest = exports.Representative = exports.OnboardingProgress = exports.AccountStatus = exports.Profile = exports.Account = exports.ProfileStats = exports.ApplyForRepresentativeResponse = exports.ApplyForRepresentativeRequest = exports.OnboardResponse = void 0;
|
|
7
|
+
exports.User = exports.Session = exports.GetUserResponse = exports.GetUserRequest = exports.ValidateTokenResponse = exports.ValidateTokenRequest = void 0;
|
|
7
8
|
var admin_1 = require("./admin");
|
|
8
9
|
Object.defineProperty(exports, "AdminGetStatusRequest", { enumerable: true, get: function () { return admin_1.AdminGetStatusRequest; } });
|
|
9
10
|
Object.defineProperty(exports, "AdminGetStatusResponse", { enumerable: true, get: function () { return admin_1.AdminGetStatusResponse; } });
|
|
@@ -94,6 +95,13 @@ Object.defineProperty(exports, "BookmarkPostResponse", { enumerable: true, get:
|
|
|
94
95
|
Object.defineProperty(exports, "UnbookmarkPostRequest", { enumerable: true, get: function () { return posts_1.UnbookmarkPostRequest; } });
|
|
95
96
|
Object.defineProperty(exports, "RepostRequest", { enumerable: true, get: function () { return posts_1.RepostRequest; } });
|
|
96
97
|
Object.defineProperty(exports, "RepostResponse", { enumerable: true, get: function () { return posts_1.RepostResponse; } });
|
|
98
|
+
Object.defineProperty(exports, "SharePostRequest", { enumerable: true, get: function () { return posts_1.SharePostRequest; } });
|
|
99
|
+
Object.defineProperty(exports, "SharePostResponse", { enumerable: true, get: function () { return posts_1.SharePostResponse; } });
|
|
100
|
+
Object.defineProperty(exports, "GetUserPostsRequest", { enumerable: true, get: function () { return posts_1.GetUserPostsRequest; } });
|
|
101
|
+
Object.defineProperty(exports, "GetUserRepliesRequest", { enumerable: true, get: function () { return posts_1.GetUserRepliesRequest; } });
|
|
102
|
+
Object.defineProperty(exports, "GetUserMediaRequest", { enumerable: true, get: function () { return posts_1.GetUserMediaRequest; } });
|
|
103
|
+
Object.defineProperty(exports, "GetUserLikesRequest", { enumerable: true, get: function () { return posts_1.GetUserLikesRequest; } });
|
|
104
|
+
Object.defineProperty(exports, "GetUserRepostsRequest", { enumerable: true, get: function () { return posts_1.GetUserRepostsRequest; } });
|
|
97
105
|
Object.defineProperty(exports, "UnrepostRequest", { enumerable: true, get: function () { return posts_1.UnrepostRequest; } });
|
|
98
106
|
Object.defineProperty(exports, "SearchPostsRequest", { enumerable: true, get: function () { return posts_1.SearchPostsRequest; } });
|
|
99
107
|
Object.defineProperty(exports, "SignPetitionRequest", { enumerable: true, get: function () { return posts_1.SignPetitionRequest; } });
|
|
@@ -103,9 +111,13 @@ Object.defineProperty(exports, "ApproveEyewitnessReportRequest", { enumerable: t
|
|
|
103
111
|
Object.defineProperty(exports, "ApproveEyewitnessReportResponse", { enumerable: true, get: function () { return posts_1.ApproveEyewitnessReportResponse; } });
|
|
104
112
|
Object.defineProperty(exports, "UnapproveEyewitnessReportRequest", { enumerable: true, get: function () { return posts_1.UnapproveEyewitnessReportRequest; } });
|
|
105
113
|
Object.defineProperty(exports, "Post", { enumerable: true, get: function () { return posts_1.Post; } });
|
|
106
|
-
Object.defineProperty(exports, "
|
|
107
|
-
Object.defineProperty(exports, "
|
|
114
|
+
Object.defineProperty(exports, "PostAuthor", { enumerable: true, get: function () { return posts_1.PostAuthor; } });
|
|
115
|
+
Object.defineProperty(exports, "PostEngagementMetrics", { enumerable: true, get: function () { return posts_1.PostEngagementMetrics; } });
|
|
108
116
|
Object.defineProperty(exports, "PostUserStatus", { enumerable: true, get: function () { return posts_1.PostUserStatus; } });
|
|
117
|
+
Object.defineProperty(exports, "VideoSource", { enumerable: true, get: function () { return posts_1.VideoSource; } });
|
|
118
|
+
Object.defineProperty(exports, "ReplyTo", { enumerable: true, get: function () { return posts_1.ReplyTo; } });
|
|
119
|
+
Object.defineProperty(exports, "ImageDimensions", { enumerable: true, get: function () { return posts_1.ImageDimensions; } });
|
|
120
|
+
Object.defineProperty(exports, "ImageToCrop", { enumerable: true, get: function () { return posts_1.ImageToCrop; } });
|
|
109
121
|
var descriptor_1 = require("./google/protobuf/descriptor");
|
|
110
122
|
Object.defineProperty(exports, "FileDescriptorSet", { enumerable: true, get: function () { return descriptor_1.FileDescriptorSet; } });
|
|
111
123
|
Object.defineProperty(exports, "FileDescriptorProto", { enumerable: true, get: function () { return descriptor_1.FileDescriptorProto; } });
|
|
@@ -153,10 +165,32 @@ Object.defineProperty(exports, "OnboardRequest", { enumerable: true, get: functi
|
|
|
153
165
|
Object.defineProperty(exports, "OnboardResponse", { enumerable: true, get: function () { return account_1.OnboardResponse; } });
|
|
154
166
|
Object.defineProperty(exports, "ApplyForRepresentativeRequest", { enumerable: true, get: function () { return account_1.ApplyForRepresentativeRequest; } });
|
|
155
167
|
Object.defineProperty(exports, "ApplyForRepresentativeResponse", { enumerable: true, get: function () { return account_1.ApplyForRepresentativeResponse; } });
|
|
168
|
+
Object.defineProperty(exports, "ProfileStats", { enumerable: true, get: function () { return account_1.ProfileStats; } });
|
|
156
169
|
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return account_1.Account; } });
|
|
170
|
+
Object.defineProperty(exports, "Profile", { enumerable: true, get: function () { return account_1.Profile; } });
|
|
157
171
|
Object.defineProperty(exports, "AccountStatus", { enumerable: true, get: function () { return account_1.AccountStatus; } });
|
|
158
172
|
Object.defineProperty(exports, "OnboardingProgress", { enumerable: true, get: function () { return account_1.OnboardingProgress; } });
|
|
159
173
|
Object.defineProperty(exports, "Representative", { enumerable: true, get: function () { return account_1.Representative; } });
|
|
174
|
+
Object.defineProperty(exports, "FollowUserRequest", { enumerable: true, get: function () { return account_1.FollowUserRequest; } });
|
|
175
|
+
Object.defineProperty(exports, "FollowUserResponse", { enumerable: true, get: function () { return account_1.FollowUserResponse; } });
|
|
176
|
+
Object.defineProperty(exports, "UnfollowUserRequest", { enumerable: true, get: function () { return account_1.UnfollowUserRequest; } });
|
|
177
|
+
Object.defineProperty(exports, "UnfollowUserResponse", { enumerable: true, get: function () { return account_1.UnfollowUserResponse; } });
|
|
178
|
+
Object.defineProperty(exports, "GetFollowersRequest", { enumerable: true, get: function () { return account_1.GetFollowersRequest; } });
|
|
179
|
+
Object.defineProperty(exports, "GetFollowersResponse", { enumerable: true, get: function () { return account_1.GetFollowersResponse; } });
|
|
180
|
+
Object.defineProperty(exports, "GetFollowingRequest", { enumerable: true, get: function () { return account_1.GetFollowingRequest; } });
|
|
181
|
+
Object.defineProperty(exports, "GetFollowingResponse", { enumerable: true, get: function () { return account_1.GetFollowingResponse; } });
|
|
182
|
+
Object.defineProperty(exports, "GetAccountPostsRequest", { enumerable: true, get: function () { return account_1.GetAccountPostsRequest; } });
|
|
183
|
+
Object.defineProperty(exports, "GetAccountPostsResponse", { enumerable: true, get: function () { return account_1.GetAccountPostsResponse; } });
|
|
184
|
+
Object.defineProperty(exports, "GetAccountRepliesRequest", { enumerable: true, get: function () { return account_1.GetAccountRepliesRequest; } });
|
|
185
|
+
Object.defineProperty(exports, "GetAccountRepliesResponse", { enumerable: true, get: function () { return account_1.GetAccountRepliesResponse; } });
|
|
186
|
+
Object.defineProperty(exports, "GetAccountMediaRequest", { enumerable: true, get: function () { return account_1.GetAccountMediaRequest; } });
|
|
187
|
+
Object.defineProperty(exports, "GetAccountMediaResponse", { enumerable: true, get: function () { return account_1.GetAccountMediaResponse; } });
|
|
188
|
+
Object.defineProperty(exports, "GetAccountLikesRequest", { enumerable: true, get: function () { return account_1.GetAccountLikesRequest; } });
|
|
189
|
+
Object.defineProperty(exports, "GetAccountLikesResponse", { enumerable: true, get: function () { return account_1.GetAccountLikesResponse; } });
|
|
190
|
+
Object.defineProperty(exports, "GetAccountRepostsRequest", { enumerable: true, get: function () { return account_1.GetAccountRepostsRequest; } });
|
|
191
|
+
Object.defineProperty(exports, "GetAccountRepostsResponse", { enumerable: true, get: function () { return account_1.GetAccountRepostsResponse; } });
|
|
192
|
+
Object.defineProperty(exports, "GetStatusRequest", { enumerable: true, get: function () { return account_1.GetStatusRequest; } });
|
|
193
|
+
Object.defineProperty(exports, "GetStatusResponse", { enumerable: true, get: function () { return account_1.GetStatusResponse; } });
|
|
160
194
|
var http_1 = require("./google/api/http");
|
|
161
195
|
Object.defineProperty(exports, "Http", { enumerable: true, get: function () { return http_1.Http; } });
|
|
162
196
|
Object.defineProperty(exports, "HttpRule", { enumerable: true, get: function () { return http_1.HttpRule; } });
|
package/dist/posts.d.ts
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { BaseListRequest, DeleteResponse, GetIDRequest, Metadata } from "./common";
|
|
3
3
|
export declare const protobufPackage = "pb";
|
|
4
|
+
export declare enum VideoType {
|
|
5
|
+
VIDEO_TYPE_UNSPECIFIED = 0,
|
|
6
|
+
MP4 = 1,
|
|
7
|
+
HLS = 2,
|
|
8
|
+
DASH = 3,
|
|
9
|
+
UNRECOGNIZED = -1
|
|
10
|
+
}
|
|
11
|
+
export declare function videoTypeFromJSON(object: any): VideoType;
|
|
12
|
+
export declare function videoTypeToJSON(object: VideoType): string;
|
|
13
|
+
export declare enum MediaType {
|
|
14
|
+
MEDIA_TYPE_UNSPECIFIED = 0,
|
|
15
|
+
IMAGE = 1,
|
|
16
|
+
VIDEO = 2,
|
|
17
|
+
MIXED = 3,
|
|
18
|
+
UNRECOGNIZED = -1
|
|
19
|
+
}
|
|
20
|
+
export declare function mediaTypeFromJSON(object: any): MediaType;
|
|
21
|
+
export declare function mediaTypeToJSON(object: MediaType): string;
|
|
4
22
|
export interface CreatePostRequest {
|
|
5
23
|
/** petition, eyewitness, regular */
|
|
6
24
|
postType: string;
|
|
7
25
|
title: string;
|
|
8
|
-
|
|
9
|
-
|
|
26
|
+
text: string;
|
|
27
|
+
images: string[];
|
|
28
|
+
videos: VideoSource[];
|
|
29
|
+
emojis: string[];
|
|
30
|
+
tags: string[];
|
|
10
31
|
targetSignatures: number;
|
|
11
32
|
category: string;
|
|
12
33
|
}
|
|
@@ -27,8 +48,11 @@ export interface ListPostsResponse {
|
|
|
27
48
|
export interface UpdatePostRequest {
|
|
28
49
|
id: string;
|
|
29
50
|
title: string;
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
text: string;
|
|
52
|
+
images: string[];
|
|
53
|
+
videos: VideoSource[];
|
|
54
|
+
emojis: string[];
|
|
55
|
+
tags: string[];
|
|
32
56
|
status: string;
|
|
33
57
|
}
|
|
34
58
|
export interface UpdatePostResponse {
|
|
@@ -61,6 +85,38 @@ export interface RepostResponse {
|
|
|
61
85
|
reposted: boolean;
|
|
62
86
|
repostsCount: number;
|
|
63
87
|
}
|
|
88
|
+
export interface SharePostRequest {
|
|
89
|
+
postId: string;
|
|
90
|
+
}
|
|
91
|
+
export interface SharePostResponse {
|
|
92
|
+
shared: boolean;
|
|
93
|
+
sharesCount: number;
|
|
94
|
+
}
|
|
95
|
+
export interface GetUserPostsRequest {
|
|
96
|
+
accountId: string;
|
|
97
|
+
page: number;
|
|
98
|
+
pageSize: number;
|
|
99
|
+
}
|
|
100
|
+
export interface GetUserRepliesRequest {
|
|
101
|
+
accountId: string;
|
|
102
|
+
page: number;
|
|
103
|
+
pageSize: number;
|
|
104
|
+
}
|
|
105
|
+
export interface GetUserMediaRequest {
|
|
106
|
+
accountId: string;
|
|
107
|
+
page: number;
|
|
108
|
+
pageSize: number;
|
|
109
|
+
}
|
|
110
|
+
export interface GetUserLikesRequest {
|
|
111
|
+
accountId: string;
|
|
112
|
+
page: number;
|
|
113
|
+
pageSize: number;
|
|
114
|
+
}
|
|
115
|
+
export interface GetUserRepostsRequest {
|
|
116
|
+
accountId: string;
|
|
117
|
+
page: number;
|
|
118
|
+
pageSize: number;
|
|
119
|
+
}
|
|
64
120
|
export interface UnrepostRequest {
|
|
65
121
|
postId: string;
|
|
66
122
|
}
|
|
@@ -95,29 +151,42 @@ export interface Post {
|
|
|
95
151
|
id: string;
|
|
96
152
|
postType: string;
|
|
97
153
|
title: string;
|
|
98
|
-
|
|
99
|
-
|
|
154
|
+
text: string;
|
|
155
|
+
images: string[];
|
|
156
|
+
videos: VideoSource[];
|
|
157
|
+
emojis: string[];
|
|
158
|
+
tags: string[];
|
|
100
159
|
creatorId: string;
|
|
101
|
-
creator:
|
|
160
|
+
creator: PostAuthor | undefined;
|
|
102
161
|
status: string;
|
|
103
162
|
createdAt: string;
|
|
104
163
|
updatedAt: string;
|
|
105
|
-
engagement:
|
|
164
|
+
engagement: PostEngagementMetrics | undefined;
|
|
106
165
|
userStatus: PostUserStatus | undefined;
|
|
166
|
+
parentPostId?: string | undefined;
|
|
167
|
+
threadId?: string | undefined;
|
|
168
|
+
replyTo?: ReplyTo | undefined;
|
|
169
|
+
mediaType?: MediaType | undefined;
|
|
170
|
+
location?: string | undefined;
|
|
171
|
+
language?: string | undefined;
|
|
107
172
|
}
|
|
108
|
-
export interface
|
|
173
|
+
export interface PostAuthor {
|
|
109
174
|
id: string;
|
|
110
175
|
name: string;
|
|
176
|
+
username: string;
|
|
111
177
|
email: string;
|
|
112
178
|
photoUrl: string;
|
|
179
|
+
verified?: boolean | undefined;
|
|
113
180
|
}
|
|
114
|
-
export interface
|
|
181
|
+
export interface PostEngagementMetrics {
|
|
115
182
|
likesCount: number;
|
|
116
183
|
commentsCount: number;
|
|
117
184
|
repostsCount: number;
|
|
118
185
|
bookmarksCount: number;
|
|
119
186
|
signaturesCount?: number | undefined;
|
|
120
187
|
approvalsCount?: number | undefined;
|
|
188
|
+
viewCount: number;
|
|
189
|
+
shareCount: number;
|
|
121
190
|
}
|
|
122
191
|
export interface PostUserStatus {
|
|
123
192
|
isLiked: boolean;
|
|
@@ -125,6 +194,27 @@ export interface PostUserStatus {
|
|
|
125
194
|
isReposted: boolean;
|
|
126
195
|
isSigned?: boolean | undefined;
|
|
127
196
|
isApproved?: boolean | undefined;
|
|
197
|
+
isViewed: boolean;
|
|
198
|
+
isShared: boolean;
|
|
199
|
+
}
|
|
200
|
+
export interface VideoSource {
|
|
201
|
+
url: string;
|
|
202
|
+
type: VideoType;
|
|
203
|
+
mimeType?: string | undefined;
|
|
204
|
+
thumbnail?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
export interface ReplyTo {
|
|
207
|
+
postId: string;
|
|
208
|
+
authorName: string;
|
|
209
|
+
authorUsername: string;
|
|
210
|
+
}
|
|
211
|
+
export interface ImageDimensions {
|
|
212
|
+
width: number;
|
|
213
|
+
height: number;
|
|
214
|
+
}
|
|
215
|
+
export interface ImageToCrop {
|
|
216
|
+
src: string;
|
|
217
|
+
index: number;
|
|
128
218
|
}
|
|
129
219
|
export declare const CreatePostRequest: MessageFns<CreatePostRequest>;
|
|
130
220
|
export declare const CreatePostResponse: MessageFns<CreatePostResponse>;
|
|
@@ -141,6 +231,13 @@ export declare const BookmarkPostResponse: MessageFns<BookmarkPostResponse>;
|
|
|
141
231
|
export declare const UnbookmarkPostRequest: MessageFns<UnbookmarkPostRequest>;
|
|
142
232
|
export declare const RepostRequest: MessageFns<RepostRequest>;
|
|
143
233
|
export declare const RepostResponse: MessageFns<RepostResponse>;
|
|
234
|
+
export declare const SharePostRequest: MessageFns<SharePostRequest>;
|
|
235
|
+
export declare const SharePostResponse: MessageFns<SharePostResponse>;
|
|
236
|
+
export declare const GetUserPostsRequest: MessageFns<GetUserPostsRequest>;
|
|
237
|
+
export declare const GetUserRepliesRequest: MessageFns<GetUserRepliesRequest>;
|
|
238
|
+
export declare const GetUserMediaRequest: MessageFns<GetUserMediaRequest>;
|
|
239
|
+
export declare const GetUserLikesRequest: MessageFns<GetUserLikesRequest>;
|
|
240
|
+
export declare const GetUserRepostsRequest: MessageFns<GetUserRepostsRequest>;
|
|
144
241
|
export declare const UnrepostRequest: MessageFns<UnrepostRequest>;
|
|
145
242
|
export declare const SearchPostsRequest: MessageFns<SearchPostsRequest>;
|
|
146
243
|
export declare const SignPetitionRequest: MessageFns<SignPetitionRequest>;
|
|
@@ -150,9 +247,13 @@ export declare const ApproveEyewitnessReportRequest: MessageFns<ApproveEyewitnes
|
|
|
150
247
|
export declare const ApproveEyewitnessReportResponse: MessageFns<ApproveEyewitnessReportResponse>;
|
|
151
248
|
export declare const UnapproveEyewitnessReportRequest: MessageFns<UnapproveEyewitnessReportRequest>;
|
|
152
249
|
export declare const Post: MessageFns<Post>;
|
|
153
|
-
export declare const
|
|
154
|
-
export declare const
|
|
250
|
+
export declare const PostAuthor: MessageFns<PostAuthor>;
|
|
251
|
+
export declare const PostEngagementMetrics: MessageFns<PostEngagementMetrics>;
|
|
155
252
|
export declare const PostUserStatus: MessageFns<PostUserStatus>;
|
|
253
|
+
export declare const VideoSource: MessageFns<VideoSource>;
|
|
254
|
+
export declare const ReplyTo: MessageFns<ReplyTo>;
|
|
255
|
+
export declare const ImageDimensions: MessageFns<ImageDimensions>;
|
|
256
|
+
export declare const ImageToCrop: MessageFns<ImageToCrop>;
|
|
156
257
|
/** Post Service */
|
|
157
258
|
export type PostServiceDefinition = typeof PostServiceDefinition;
|
|
158
259
|
export declare const PostServiceDefinition: {
|
|
@@ -279,6 +380,78 @@ export declare const PostServiceDefinition: {
|
|
|
279
380
|
};
|
|
280
381
|
};
|
|
281
382
|
};
|
|
383
|
+
readonly sharePost: {
|
|
384
|
+
readonly name: "SharePost";
|
|
385
|
+
readonly requestType: MessageFns<SharePostRequest>;
|
|
386
|
+
readonly requestStream: false;
|
|
387
|
+
readonly responseType: MessageFns<SharePostResponse>;
|
|
388
|
+
readonly responseStream: false;
|
|
389
|
+
readonly options: {
|
|
390
|
+
readonly _unknownFields: {
|
|
391
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
readonly getUserPosts: {
|
|
396
|
+
readonly name: "GetUserPosts";
|
|
397
|
+
readonly requestType: MessageFns<GetUserPostsRequest>;
|
|
398
|
+
readonly requestStream: false;
|
|
399
|
+
readonly responseType: MessageFns<ListPostsResponse>;
|
|
400
|
+
readonly responseStream: false;
|
|
401
|
+
readonly options: {
|
|
402
|
+
readonly _unknownFields: {
|
|
403
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly getUserReplies: {
|
|
408
|
+
readonly name: "GetUserReplies";
|
|
409
|
+
readonly requestType: MessageFns<GetUserRepliesRequest>;
|
|
410
|
+
readonly requestStream: false;
|
|
411
|
+
readonly responseType: MessageFns<ListPostsResponse>;
|
|
412
|
+
readonly responseStream: false;
|
|
413
|
+
readonly options: {
|
|
414
|
+
readonly _unknownFields: {
|
|
415
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
readonly getUserMedia: {
|
|
420
|
+
readonly name: "GetUserMedia";
|
|
421
|
+
readonly requestType: MessageFns<GetUserMediaRequest>;
|
|
422
|
+
readonly requestStream: false;
|
|
423
|
+
readonly responseType: MessageFns<ListPostsResponse>;
|
|
424
|
+
readonly responseStream: false;
|
|
425
|
+
readonly options: {
|
|
426
|
+
readonly _unknownFields: {
|
|
427
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly getUserLikes: {
|
|
432
|
+
readonly name: "GetUserLikes";
|
|
433
|
+
readonly requestType: MessageFns<GetUserLikesRequest>;
|
|
434
|
+
readonly requestStream: false;
|
|
435
|
+
readonly responseType: MessageFns<ListPostsResponse>;
|
|
436
|
+
readonly responseStream: false;
|
|
437
|
+
readonly options: {
|
|
438
|
+
readonly _unknownFields: {
|
|
439
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
readonly getUserReposts: {
|
|
444
|
+
readonly name: "GetUserReposts";
|
|
445
|
+
readonly requestType: MessageFns<GetUserRepostsRequest>;
|
|
446
|
+
readonly requestStream: false;
|
|
447
|
+
readonly responseType: MessageFns<ListPostsResponse>;
|
|
448
|
+
readonly responseStream: false;
|
|
449
|
+
readonly options: {
|
|
450
|
+
readonly _unknownFields: {
|
|
451
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
282
455
|
readonly unrepost: {
|
|
283
456
|
readonly name: "Unrepost";
|
|
284
457
|
readonly requestType: MessageFns<UnrepostRequest>;
|