naijarea-ts 1.0.2
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 +229 -0
- package/dist/account.js +2211 -0
- package/dist/admin.d.ts +49 -0
- package/dist/admin.js +164 -0
- package/dist/auth.d.ts +242 -0
- package/dist/auth.js +1750 -0
- package/dist/chat.d.ts +49 -0
- package/dist/chat.js +163 -0
- package/dist/common.d.ts +60 -0
- package/dist/common.js +543 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +10 -0
- package/dist/google/api/field_behavior.d.ts +76 -0
- package/dist/google/api/field_behavior.js +146 -0
- package/dist/google/api/http.d.ts +379 -0
- package/dist/google/api/http.js +360 -0
- package/dist/google/api/httpbody.d.ts +78 -0
- package/dist/google/api/httpbody.js +127 -0
- package/dist/google/protobuf/any.d.ts +144 -0
- package/dist/google/protobuf/any.js +108 -0
- package/dist/google/protobuf/descriptor.d.ts +1338 -0
- package/dist/google/protobuf/descriptor.js +5427 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +190 -0
- package/dist/lookup.d.ts +876 -0
- package/dist/lookup.js +6841 -0
- package/dist/posts.d.ts +374 -0
- package/dist/posts.js +2784 -0
- package/package.json +43 -0
package/dist/chat.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "pb";
|
|
3
|
+
export interface ChatGetStatusRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface ChatGetStatusResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
service: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ChatGetStatusRequest: MessageFns<ChatGetStatusRequest>;
|
|
10
|
+
export declare const ChatGetStatusResponse: MessageFns<ChatGetStatusResponse>;
|
|
11
|
+
/** Chat Service */
|
|
12
|
+
export type ChatServiceDefinition = typeof ChatServiceDefinition;
|
|
13
|
+
export declare const ChatServiceDefinition: {
|
|
14
|
+
readonly name: "ChatService";
|
|
15
|
+
readonly fullName: "pb.ChatService";
|
|
16
|
+
readonly methods: {
|
|
17
|
+
readonly getStatus: {
|
|
18
|
+
readonly name: "GetStatus";
|
|
19
|
+
readonly requestType: MessageFns<ChatGetStatusRequest>;
|
|
20
|
+
readonly requestStream: false;
|
|
21
|
+
readonly responseType: MessageFns<ChatGetStatusResponse>;
|
|
22
|
+
readonly responseStream: false;
|
|
23
|
+
readonly options: {
|
|
24
|
+
readonly _unknownFields: {
|
|
25
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
32
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
33
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
34
|
+
} : Partial<T>;
|
|
35
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
36
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
37
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
38
|
+
} & {
|
|
39
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
40
|
+
};
|
|
41
|
+
export interface MessageFns<T> {
|
|
42
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
43
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
44
|
+
fromJSON(object: any): T;
|
|
45
|
+
toJSON(message: T): unknown;
|
|
46
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
47
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
package/dist/chat.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.10.0
|
|
5
|
+
// protoc v6.33.2
|
|
6
|
+
// source: chat.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ChatServiceDefinition = exports.ChatGetStatusResponse = exports.ChatGetStatusRequest = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "pb";
|
|
12
|
+
function createBaseChatGetStatusRequest() {
|
|
13
|
+
return {};
|
|
14
|
+
}
|
|
15
|
+
exports.ChatGetStatusRequest = {
|
|
16
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
21
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseChatGetStatusRequest();
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
}
|
|
27
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
reader.skip(tag & 7);
|
|
31
|
+
}
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
fromJSON(_) {
|
|
35
|
+
return {};
|
|
36
|
+
},
|
|
37
|
+
toJSON(_) {
|
|
38
|
+
const obj = {};
|
|
39
|
+
return obj;
|
|
40
|
+
},
|
|
41
|
+
create(base) {
|
|
42
|
+
return exports.ChatGetStatusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
43
|
+
},
|
|
44
|
+
fromPartial(_) {
|
|
45
|
+
const message = createBaseChatGetStatusRequest();
|
|
46
|
+
return message;
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
function createBaseChatGetStatusResponse() {
|
|
50
|
+
return { status: "", service: "" };
|
|
51
|
+
}
|
|
52
|
+
exports.ChatGetStatusResponse = {
|
|
53
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
54
|
+
if (message.status !== "") {
|
|
55
|
+
writer.uint32(10).string(message.status);
|
|
56
|
+
}
|
|
57
|
+
if (message.service !== "") {
|
|
58
|
+
writer.uint32(18).string(message.service);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
64
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBaseChatGetStatusResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1: {
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
case 2: {
|
|
77
|
+
if (tag !== 18) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.service = reader.string();
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
reader.skip(tag & 7);
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
fromJSON(object) {
|
|
92
|
+
return {
|
|
93
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
94
|
+
service: isSet(object.service) ? globalThis.String(object.service) : "",
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
toJSON(message) {
|
|
98
|
+
const obj = {};
|
|
99
|
+
if (message.status !== "") {
|
|
100
|
+
obj.status = message.status;
|
|
101
|
+
}
|
|
102
|
+
if (message.service !== "") {
|
|
103
|
+
obj.service = message.service;
|
|
104
|
+
}
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
create(base) {
|
|
108
|
+
return exports.ChatGetStatusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
109
|
+
},
|
|
110
|
+
fromPartial(object) {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
const message = createBaseChatGetStatusResponse();
|
|
113
|
+
message.status = (_a = object.status) !== null && _a !== void 0 ? _a : "";
|
|
114
|
+
message.service = (_b = object.service) !== null && _b !== void 0 ? _b : "";
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
exports.ChatServiceDefinition = {
|
|
119
|
+
name: "ChatService",
|
|
120
|
+
fullName: "pb.ChatService",
|
|
121
|
+
methods: {
|
|
122
|
+
getStatus: {
|
|
123
|
+
name: "GetStatus",
|
|
124
|
+
requestType: exports.ChatGetStatusRequest,
|
|
125
|
+
requestStream: false,
|
|
126
|
+
responseType: exports.ChatGetStatusResponse,
|
|
127
|
+
responseStream: false,
|
|
128
|
+
options: {
|
|
129
|
+
_unknownFields: {
|
|
130
|
+
578365826: [
|
|
131
|
+
new Uint8Array([
|
|
132
|
+
21,
|
|
133
|
+
18,
|
|
134
|
+
19,
|
|
135
|
+
47,
|
|
136
|
+
97,
|
|
137
|
+
112,
|
|
138
|
+
105,
|
|
139
|
+
47,
|
|
140
|
+
118,
|
|
141
|
+
49,
|
|
142
|
+
47,
|
|
143
|
+
99,
|
|
144
|
+
104,
|
|
145
|
+
97,
|
|
146
|
+
116,
|
|
147
|
+
47,
|
|
148
|
+
115,
|
|
149
|
+
116,
|
|
150
|
+
97,
|
|
151
|
+
116,
|
|
152
|
+
117,
|
|
153
|
+
115,
|
|
154
|
+
]),
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
function isSet(value) {
|
|
162
|
+
return value !== null && value !== undefined;
|
|
163
|
+
}
|
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "pb";
|
|
3
|
+
export interface Metadata {
|
|
4
|
+
page: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
total: number;
|
|
7
|
+
totalPages: number;
|
|
8
|
+
}
|
|
9
|
+
export interface Error {
|
|
10
|
+
code: string;
|
|
11
|
+
level: string;
|
|
12
|
+
message: string;
|
|
13
|
+
details: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface Error_DetailsEntry {
|
|
18
|
+
key: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Empty {
|
|
22
|
+
}
|
|
23
|
+
export interface DeleteResponse {
|
|
24
|
+
message: string;
|
|
25
|
+
}
|
|
26
|
+
export interface BaseListRequest {
|
|
27
|
+
page: number;
|
|
28
|
+
pageSize: number;
|
|
29
|
+
sortBy: string;
|
|
30
|
+
orderBy: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GetIDRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const Metadata: MessageFns<Metadata>;
|
|
36
|
+
export declare const Error: MessageFns<Error>;
|
|
37
|
+
export declare const Error_DetailsEntry: MessageFns<Error_DetailsEntry>;
|
|
38
|
+
export declare const Empty: MessageFns<Empty>;
|
|
39
|
+
export declare const DeleteResponse: MessageFns<DeleteResponse>;
|
|
40
|
+
export declare const BaseListRequest: MessageFns<BaseListRequest>;
|
|
41
|
+
export declare const GetIDRequest: MessageFns<GetIDRequest>;
|
|
42
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
43
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
44
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
45
|
+
} : Partial<T>;
|
|
46
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
47
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
48
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
49
|
+
} & {
|
|
50
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
51
|
+
};
|
|
52
|
+
export interface MessageFns<T> {
|
|
53
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
54
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
55
|
+
fromJSON(object: any): T;
|
|
56
|
+
toJSON(message: T): unknown;
|
|
57
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
58
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
59
|
+
}
|
|
60
|
+
export {};
|