naijarea-ts 1.0.8 → 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,7 +1,7 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Setting, UserPreference } from "./chat";
3
- import { DeleteResponse } from "./common";
4
- import { AccountType, Constituency, District, LocalGovernment, State } from "./lookup";
3
+ import { BaseListRequest, DeleteResponse, Metadata } from "./common";
4
+ import { AccountType, Constituency, District, LocalGovernment, Party, Position, State } from "./lookup";
5
5
  import { Post } from "./posts";
6
6
  export declare const protobufPackage = "pb";
7
7
  export interface GetProfileRequest {
@@ -65,8 +65,6 @@ export interface OnboardResponse {
65
65
  }
66
66
  export interface ApplyForRepresentativeRequest {
67
67
  positionId: string;
68
- constituencyId: string;
69
- districtId: string;
70
68
  partyId: string;
71
69
  swornInDate: string;
72
70
  bio: string;
@@ -109,6 +107,18 @@ export interface Account {
109
107
  isFollowing: boolean;
110
108
  isFollowedBy: boolean;
111
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;
112
122
  }
113
123
  export interface Profile {
114
124
  user: Account | undefined;
@@ -128,8 +138,21 @@ export interface AccountStatus {
128
138
  kyced: boolean;
129
139
  status: string;
130
140
  isRepresentative: boolean;
131
- 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;
132
153
  onboardingProgress: OnboardingProgress | undefined;
154
+ /** Representative sworn in date (if applicable) */
155
+ swornIn: string;
133
156
  }
134
157
  export interface OnboardingProgress {
135
158
  completedSteps: number;
@@ -247,6 +270,31 @@ export interface GetStatusResponse {
247
270
  status: string;
248
271
  service: string;
249
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
+ }
250
298
  export declare const GetProfileRequest: MessageFns<GetProfileRequest>;
251
299
  export declare const GetProfileResponse: MessageFns<GetProfileResponse>;
252
300
  export declare const UpdateProfileRequest: MessageFns<UpdateProfileRequest>;
@@ -284,6 +332,8 @@ export declare const GetAccountRepostsRequest: MessageFns<GetAccountRepostsReque
284
332
  export declare const GetAccountRepostsResponse: MessageFns<GetAccountRepostsResponse>;
285
333
  export declare const GetStatusRequest: MessageFns<GetStatusRequest>;
286
334
  export declare const GetStatusResponse: MessageFns<GetStatusResponse>;
335
+ export declare const ListAccountsRequest: MessageFns<ListAccountsRequest>;
336
+ export declare const ListAccountsResponse: MessageFns<ListAccountsResponse>;
287
337
  /** Account Service */
288
338
  export type AccountServiceDefinition = typeof AccountServiceDefinition;
289
339
  export declare const AccountServiceDefinition: {
@@ -482,6 +532,18 @@ export declare const AccountServiceDefinition: {
482
532
  };
483
533
  };
484
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
+ };
485
547
  };
486
548
  };
487
549
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;