naijarea-ts 1.0.7 → 1.0.9

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 CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { DeleteResponse } from "./common";
3
- import { AccountType, Constituency, District, LocalGovernment, State } from "./lookup";
2
+ import { Setting, UserPreference } from "./chat";
3
+ import { BaseListRequest, DeleteResponse, Metadata } from "./common";
4
+ import { AccountType, Constituency, District, LocalGovernment, Party, Position, State } from "./lookup";
4
5
  import { Post } from "./posts";
5
6
  export declare const protobufPackage = "pb";
6
7
  export interface GetProfileRequest {
@@ -64,8 +65,6 @@ export interface OnboardResponse {
64
65
  }
65
66
  export interface ApplyForRepresentativeRequest {
66
67
  positionId: string;
67
- constituencyId: string;
68
- districtId: string;
69
68
  partyId: string;
70
69
  swornInDate: string;
71
70
  bio: string;
@@ -108,6 +107,18 @@ export interface Account {
108
107
  isFollowing: boolean;
109
108
  isFollowedBy: boolean;
110
109
  isOwnProfile: boolean;
110
+ /** Representative position (if applicable) */
111
+ position: Position | undefined;
112
+ /** Representative party (if applicable) */
113
+ party: Party | undefined;
114
+ /** Representative-specific bio (if applicable) */
115
+ representativeBio: string;
116
+ /** Representative social handles (if applicable) */
117
+ socialHandles: string;
118
+ /** Representative approval status (if applicable) */
119
+ approved: boolean;
120
+ /** Representative status (if applicable) */
121
+ representativeStatus: string;
111
122
  }
112
123
  export interface Profile {
113
124
  user: Account | undefined;
@@ -116,6 +127,10 @@ export interface Profile {
116
127
  replies: Post[];
117
128
  media: Post[];
118
129
  likes: Post[];
130
+ /** Only included for authenticated user's own profile */
131
+ preferences: UserPreference[];
132
+ /** Only included for authenticated user's own profile */
133
+ settings: Setting[];
119
134
  }
120
135
  export interface AccountStatus {
121
136
  emailVerified: boolean;
@@ -123,8 +138,21 @@ export interface AccountStatus {
123
138
  kyced: boolean;
124
139
  status: string;
125
140
  isRepresentative: boolean;
126
- representative: Representative | undefined;
141
+ /** Representative position (if applicable) */
142
+ position: Position | undefined;
143
+ /** Representative party (if applicable) */
144
+ party: Party | undefined;
145
+ /** Representative-specific bio (if applicable) */
146
+ representativeBio: string;
147
+ /** Representative social handles (if applicable) */
148
+ socialHandles: string;
149
+ /** Representative approval status (if applicable) */
150
+ approved: boolean;
151
+ /** Representative status (if applicable) */
152
+ representativeStatus: string;
127
153
  onboardingProgress: OnboardingProgress | undefined;
154
+ /** Representative sworn in date (if applicable) */
155
+ swornIn: string;
128
156
  }
129
157
  export interface OnboardingProgress {
130
158
  completedSteps: number;
@@ -242,6 +270,31 @@ export interface GetStatusResponse {
242
270
  status: string;
243
271
  service: string;
244
272
  }
273
+ export interface ListAccountsRequest {
274
+ base: BaseListRequest | undefined;
275
+ /** Optional: Search query - if provided, searches accounts */
276
+ query: string;
277
+ /** Filter by account type ID */
278
+ accountTypeId: string;
279
+ /** Filter by state ID */
280
+ stateId: string;
281
+ /** Filter by local government ID */
282
+ localGovernmentId: string;
283
+ /** Filter by constituency ID */
284
+ constituencyId: string;
285
+ /** Filter by district ID */
286
+ districtId: string;
287
+ /** Filter by position ID (for representatives) */
288
+ positionId: string;
289
+ /** Filter by party ID (for representatives) */
290
+ partyId: string;
291
+ /** Filter by status (default: active) */
292
+ status: string;
293
+ }
294
+ export interface ListAccountsResponse {
295
+ accounts: Account[];
296
+ metadata: Metadata | undefined;
297
+ }
245
298
  export declare const GetProfileRequest: MessageFns<GetProfileRequest>;
246
299
  export declare const GetProfileResponse: MessageFns<GetProfileResponse>;
247
300
  export declare const UpdateProfileRequest: MessageFns<UpdateProfileRequest>;
@@ -279,6 +332,8 @@ export declare const GetAccountRepostsRequest: MessageFns<GetAccountRepostsReque
279
332
  export declare const GetAccountRepostsResponse: MessageFns<GetAccountRepostsResponse>;
280
333
  export declare const GetStatusRequest: MessageFns<GetStatusRequest>;
281
334
  export declare const GetStatusResponse: MessageFns<GetStatusResponse>;
335
+ export declare const ListAccountsRequest: MessageFns<ListAccountsRequest>;
336
+ export declare const ListAccountsResponse: MessageFns<ListAccountsResponse>;
282
337
  /** Account Service */
283
338
  export type AccountServiceDefinition = typeof AccountServiceDefinition;
284
339
  export declare const AccountServiceDefinition: {
@@ -477,6 +532,18 @@ export declare const AccountServiceDefinition: {
477
532
  };
478
533
  };
479
534
  };
535
+ readonly listAccounts: {
536
+ readonly name: "ListAccounts";
537
+ readonly requestType: MessageFns<ListAccountsRequest>;
538
+ readonly requestStream: false;
539
+ readonly responseType: MessageFns<ListAccountsResponse>;
540
+ readonly responseStream: false;
541
+ readonly options: {
542
+ readonly _unknownFields: {
543
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
544
+ };
545
+ };
546
+ };
480
547
  };
481
548
  };
482
549
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;