weave-typescript 0.23.0 → 0.25.0
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/weaveapi/organization/v1/organization.pb.d.ts +38 -0
- package/dist/weaveapi/organization/v1/organization.pb.js +252 -0
- package/dist/weaveapi/organization/v1/service.pb.d.ts +261 -0
- package/dist/weaveapi/organization/v1/service.pb.js +1561 -0
- package/dist/weavesql/weavedb/organization_sql.d.ts +123 -0
- package/dist/weavesql/weavedb/organization_sql.js +247 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weaveapi.organization.v1";
|
|
3
|
+
/**
|
|
4
|
+
* Organization is the top-level tenant in Weave. The slug is the URL-facing
|
|
5
|
+
* identifier; id is the stable FK target.
|
|
6
|
+
*/
|
|
7
|
+
export interface Organization {
|
|
8
|
+
id: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
primaryColor: string;
|
|
13
|
+
hasLogo: boolean;
|
|
14
|
+
timezone: string;
|
|
15
|
+
location: string;
|
|
16
|
+
createdAt: Date | undefined;
|
|
17
|
+
updatedAt: Date | undefined;
|
|
18
|
+
}
|
|
19
|
+
export declare const Organization: MessageFns<Organization>;
|
|
20
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
21
|
+
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 {} ? {
|
|
22
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
23
|
+
} : Partial<T>;
|
|
24
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
25
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
26
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
27
|
+
} & {
|
|
28
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
29
|
+
};
|
|
30
|
+
export interface MessageFns<T> {
|
|
31
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
32
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
33
|
+
fromJSON(object: any): T;
|
|
34
|
+
toJSON(message: T): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.6
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: weaveapi/organization/v1/organization.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Organization = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
12
|
+
exports.protobufPackage = "weaveapi.organization.v1";
|
|
13
|
+
function createBaseOrganization() {
|
|
14
|
+
return {
|
|
15
|
+
id: "",
|
|
16
|
+
slug: "",
|
|
17
|
+
name: "",
|
|
18
|
+
description: "",
|
|
19
|
+
primaryColor: "",
|
|
20
|
+
hasLogo: false,
|
|
21
|
+
timezone: "",
|
|
22
|
+
location: "",
|
|
23
|
+
createdAt: undefined,
|
|
24
|
+
updatedAt: undefined,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.Organization = {
|
|
28
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
29
|
+
if (message.id !== "") {
|
|
30
|
+
writer.uint32(10).string(message.id);
|
|
31
|
+
}
|
|
32
|
+
if (message.slug !== "") {
|
|
33
|
+
writer.uint32(18).string(message.slug);
|
|
34
|
+
}
|
|
35
|
+
if (message.name !== "") {
|
|
36
|
+
writer.uint32(26).string(message.name);
|
|
37
|
+
}
|
|
38
|
+
if (message.description !== "") {
|
|
39
|
+
writer.uint32(34).string(message.description);
|
|
40
|
+
}
|
|
41
|
+
if (message.primaryColor !== "") {
|
|
42
|
+
writer.uint32(42).string(message.primaryColor);
|
|
43
|
+
}
|
|
44
|
+
if (message.hasLogo !== false) {
|
|
45
|
+
writer.uint32(48).bool(message.hasLogo);
|
|
46
|
+
}
|
|
47
|
+
if (message.timezone !== "") {
|
|
48
|
+
writer.uint32(58).string(message.timezone);
|
|
49
|
+
}
|
|
50
|
+
if (message.location !== "") {
|
|
51
|
+
writer.uint32(66).string(message.location);
|
|
52
|
+
}
|
|
53
|
+
if (message.createdAt !== undefined) {
|
|
54
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(74).fork()).join();
|
|
55
|
+
}
|
|
56
|
+
if (message.updatedAt !== undefined) {
|
|
57
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(82).fork()).join();
|
|
58
|
+
}
|
|
59
|
+
return writer;
|
|
60
|
+
},
|
|
61
|
+
decode(input, length) {
|
|
62
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
63
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
64
|
+
const message = createBaseOrganization();
|
|
65
|
+
while (reader.pos < end) {
|
|
66
|
+
const tag = reader.uint32();
|
|
67
|
+
switch (tag >>> 3) {
|
|
68
|
+
case 1: {
|
|
69
|
+
if (tag !== 10) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.id = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
case 2: {
|
|
76
|
+
if (tag !== 18) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.slug = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
case 3: {
|
|
83
|
+
if (tag !== 26) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.name = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
case 4: {
|
|
90
|
+
if (tag !== 34) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.description = reader.string();
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
case 5: {
|
|
97
|
+
if (tag !== 42) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.primaryColor = reader.string();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
case 6: {
|
|
104
|
+
if (tag !== 48) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
message.hasLogo = reader.bool();
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
case 7: {
|
|
111
|
+
if (tag !== 58) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.timezone = reader.string();
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
case 8: {
|
|
118
|
+
if (tag !== 66) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
message.location = reader.string();
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
case 9: {
|
|
125
|
+
if (tag !== 74) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
case 10: {
|
|
132
|
+
if (tag !== 82) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
reader.skip(tag & 7);
|
|
143
|
+
}
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
fromJSON(object) {
|
|
147
|
+
return {
|
|
148
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
149
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
150
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
151
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
152
|
+
primaryColor: isSet(object.primaryColor)
|
|
153
|
+
? globalThis.String(object.primaryColor)
|
|
154
|
+
: isSet(object.primary_color)
|
|
155
|
+
? globalThis.String(object.primary_color)
|
|
156
|
+
: "",
|
|
157
|
+
hasLogo: isSet(object.hasLogo)
|
|
158
|
+
? globalThis.Boolean(object.hasLogo)
|
|
159
|
+
: isSet(object.has_logo)
|
|
160
|
+
? globalThis.Boolean(object.has_logo)
|
|
161
|
+
: false,
|
|
162
|
+
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
163
|
+
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
164
|
+
createdAt: isSet(object.createdAt)
|
|
165
|
+
? fromJsonTimestamp(object.createdAt)
|
|
166
|
+
: isSet(object.created_at)
|
|
167
|
+
? fromJsonTimestamp(object.created_at)
|
|
168
|
+
: undefined,
|
|
169
|
+
updatedAt: isSet(object.updatedAt)
|
|
170
|
+
? fromJsonTimestamp(object.updatedAt)
|
|
171
|
+
: isSet(object.updated_at)
|
|
172
|
+
? fromJsonTimestamp(object.updated_at)
|
|
173
|
+
: undefined,
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
toJSON(message) {
|
|
177
|
+
const obj = {};
|
|
178
|
+
if (message.id !== "") {
|
|
179
|
+
obj.id = message.id;
|
|
180
|
+
}
|
|
181
|
+
if (message.slug !== "") {
|
|
182
|
+
obj.slug = message.slug;
|
|
183
|
+
}
|
|
184
|
+
if (message.name !== "") {
|
|
185
|
+
obj.name = message.name;
|
|
186
|
+
}
|
|
187
|
+
if (message.description !== "") {
|
|
188
|
+
obj.description = message.description;
|
|
189
|
+
}
|
|
190
|
+
if (message.primaryColor !== "") {
|
|
191
|
+
obj.primaryColor = message.primaryColor;
|
|
192
|
+
}
|
|
193
|
+
if (message.hasLogo !== false) {
|
|
194
|
+
obj.hasLogo = message.hasLogo;
|
|
195
|
+
}
|
|
196
|
+
if (message.timezone !== "") {
|
|
197
|
+
obj.timezone = message.timezone;
|
|
198
|
+
}
|
|
199
|
+
if (message.location !== "") {
|
|
200
|
+
obj.location = message.location;
|
|
201
|
+
}
|
|
202
|
+
if (message.createdAt !== undefined) {
|
|
203
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
204
|
+
}
|
|
205
|
+
if (message.updatedAt !== undefined) {
|
|
206
|
+
obj.updatedAt = message.updatedAt.toISOString();
|
|
207
|
+
}
|
|
208
|
+
return obj;
|
|
209
|
+
},
|
|
210
|
+
create(base) {
|
|
211
|
+
return exports.Organization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
212
|
+
},
|
|
213
|
+
fromPartial(object) {
|
|
214
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
215
|
+
const message = createBaseOrganization();
|
|
216
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
217
|
+
message.slug = (_b = object.slug) !== null && _b !== void 0 ? _b : "";
|
|
218
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
219
|
+
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
220
|
+
message.primaryColor = (_e = object.primaryColor) !== null && _e !== void 0 ? _e : "";
|
|
221
|
+
message.hasLogo = (_f = object.hasLogo) !== null && _f !== void 0 ? _f : false;
|
|
222
|
+
message.timezone = (_g = object.timezone) !== null && _g !== void 0 ? _g : "";
|
|
223
|
+
message.location = (_h = object.location) !== null && _h !== void 0 ? _h : "";
|
|
224
|
+
message.createdAt = (_j = object.createdAt) !== null && _j !== void 0 ? _j : undefined;
|
|
225
|
+
message.updatedAt = (_k = object.updatedAt) !== null && _k !== void 0 ? _k : undefined;
|
|
226
|
+
return message;
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
function toTimestamp(date) {
|
|
230
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
231
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
232
|
+
return { seconds, nanos };
|
|
233
|
+
}
|
|
234
|
+
function fromTimestamp(t) {
|
|
235
|
+
let millis = (t.seconds || 0) * 1000;
|
|
236
|
+
millis += (t.nanos || 0) / 1000000;
|
|
237
|
+
return new globalThis.Date(millis);
|
|
238
|
+
}
|
|
239
|
+
function fromJsonTimestamp(o) {
|
|
240
|
+
if (o instanceof globalThis.Date) {
|
|
241
|
+
return o;
|
|
242
|
+
}
|
|
243
|
+
else if (typeof o === "string") {
|
|
244
|
+
return new globalThis.Date(o);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
function isSet(value) {
|
|
251
|
+
return value !== null && value !== undefined;
|
|
252
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Organization } from "./organization.pb";
|
|
3
|
+
export declare const protobufPackage = "weaveapi.organization.v1";
|
|
4
|
+
export interface ListOrganizationsRequest {
|
|
5
|
+
}
|
|
6
|
+
export interface ListOrganizationsResponse {
|
|
7
|
+
organizations: Organization[];
|
|
8
|
+
}
|
|
9
|
+
export interface CreateOrganizationRequest {
|
|
10
|
+
/** If slug is empty, the server generates one from name. */
|
|
11
|
+
slug: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
/** Hex RGB like "#22d3ee". Empty string means "use default". */
|
|
15
|
+
primaryColor: string;
|
|
16
|
+
/** IANA timezone. Empty string means "use default" (UTC). */
|
|
17
|
+
timezone: string;
|
|
18
|
+
location: string;
|
|
19
|
+
/** Optional organization logo bytes. Empty means no logo. */
|
|
20
|
+
logo: Uint8Array;
|
|
21
|
+
/** MIME type for logo bytes. Empty means no logo. */
|
|
22
|
+
logoContentType: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CreateOrganizationResponse {
|
|
25
|
+
organization: Organization | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface GetOrganizationBySlugRequest {
|
|
28
|
+
slug: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GetOrganizationBySlugResponse {
|
|
31
|
+
organization: Organization | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface GetOrganizationByIdRequest {
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GetOrganizationByIdResponse {
|
|
37
|
+
organization: Organization | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* UpdateOrganizationRequest uses the "present optional" convention used
|
|
41
|
+
* elsewhere in weaveapi: an empty string leaves the field unchanged.
|
|
42
|
+
* To explicitly clear a field, send a single space then rely on server-side
|
|
43
|
+
* trimming rejecting it. For a boolean-style "clear", use the dedicated
|
|
44
|
+
* logo REST endpoint (there is no nullable string field to clear in this
|
|
45
|
+
* request).
|
|
46
|
+
*/
|
|
47
|
+
export interface UpdateOrganizationRequest {
|
|
48
|
+
/** the current slug (path param) */
|
|
49
|
+
slug: string;
|
|
50
|
+
/** optional; empty means unchanged */
|
|
51
|
+
newSlug: string;
|
|
52
|
+
/** optional; empty means unchanged */
|
|
53
|
+
name: string;
|
|
54
|
+
/** optional; empty means unchanged */
|
|
55
|
+
description: string;
|
|
56
|
+
/** optional; empty means unchanged */
|
|
57
|
+
primaryColor: string;
|
|
58
|
+
/** optional; empty means unchanged */
|
|
59
|
+
timezone: string;
|
|
60
|
+
/** optional; empty means unchanged */
|
|
61
|
+
location: string;
|
|
62
|
+
}
|
|
63
|
+
export interface UpdateOrganizationResponse {
|
|
64
|
+
organization: Organization | undefined;
|
|
65
|
+
}
|
|
66
|
+
export interface DeleteOrganizationRequest {
|
|
67
|
+
slug: string;
|
|
68
|
+
}
|
|
69
|
+
export interface DeleteOrganizationResponse {
|
|
70
|
+
deleted: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface GetOrganizationLogoRequest {
|
|
73
|
+
slug: string;
|
|
74
|
+
}
|
|
75
|
+
export interface GetOrganizationLogoResponse {
|
|
76
|
+
logo: Uint8Array;
|
|
77
|
+
logoContentType: string;
|
|
78
|
+
}
|
|
79
|
+
export interface PutOrganizationLogoRequest {
|
|
80
|
+
slug: string;
|
|
81
|
+
logo: Uint8Array;
|
|
82
|
+
logoContentType: string;
|
|
83
|
+
}
|
|
84
|
+
export interface PutOrganizationLogoResponse {
|
|
85
|
+
}
|
|
86
|
+
export interface DeleteOrganizationLogoRequest {
|
|
87
|
+
slug: string;
|
|
88
|
+
}
|
|
89
|
+
export interface DeleteOrganizationLogoResponse {
|
|
90
|
+
}
|
|
91
|
+
export declare const ListOrganizationsRequest: MessageFns<ListOrganizationsRequest>;
|
|
92
|
+
export declare const ListOrganizationsResponse: MessageFns<ListOrganizationsResponse>;
|
|
93
|
+
export declare const CreateOrganizationRequest: MessageFns<CreateOrganizationRequest>;
|
|
94
|
+
export declare const CreateOrganizationResponse: MessageFns<CreateOrganizationResponse>;
|
|
95
|
+
export declare const GetOrganizationBySlugRequest: MessageFns<GetOrganizationBySlugRequest>;
|
|
96
|
+
export declare const GetOrganizationBySlugResponse: MessageFns<GetOrganizationBySlugResponse>;
|
|
97
|
+
export declare const GetOrganizationByIdRequest: MessageFns<GetOrganizationByIdRequest>;
|
|
98
|
+
export declare const GetOrganizationByIdResponse: MessageFns<GetOrganizationByIdResponse>;
|
|
99
|
+
export declare const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest>;
|
|
100
|
+
export declare const UpdateOrganizationResponse: MessageFns<UpdateOrganizationResponse>;
|
|
101
|
+
export declare const DeleteOrganizationRequest: MessageFns<DeleteOrganizationRequest>;
|
|
102
|
+
export declare const DeleteOrganizationResponse: MessageFns<DeleteOrganizationResponse>;
|
|
103
|
+
export declare const GetOrganizationLogoRequest: MessageFns<GetOrganizationLogoRequest>;
|
|
104
|
+
export declare const GetOrganizationLogoResponse: MessageFns<GetOrganizationLogoResponse>;
|
|
105
|
+
export declare const PutOrganizationLogoRequest: MessageFns<PutOrganizationLogoRequest>;
|
|
106
|
+
export declare const PutOrganizationLogoResponse: MessageFns<PutOrganizationLogoResponse>;
|
|
107
|
+
export declare const DeleteOrganizationLogoRequest: MessageFns<DeleteOrganizationLogoRequest>;
|
|
108
|
+
export declare const DeleteOrganizationLogoResponse: MessageFns<DeleteOrganizationLogoResponse>;
|
|
109
|
+
export interface OrganizationService {
|
|
110
|
+
ListOrganizations(request: ListOrganizationsRequest): Promise<ListOrganizationsResponse>;
|
|
111
|
+
CreateOrganization(request: CreateOrganizationRequest): Promise<CreateOrganizationResponse>;
|
|
112
|
+
GetOrganizationBySlug(request: GetOrganizationBySlugRequest): Promise<GetOrganizationBySlugResponse>;
|
|
113
|
+
GetOrganizationById(request: GetOrganizationByIdRequest): Promise<GetOrganizationByIdResponse>;
|
|
114
|
+
UpdateOrganization(request: UpdateOrganizationRequest): Promise<UpdateOrganizationResponse>;
|
|
115
|
+
DeleteOrganization(request: DeleteOrganizationRequest): Promise<DeleteOrganizationResponse>;
|
|
116
|
+
GetOrganizationLogo(request: GetOrganizationLogoRequest): Promise<GetOrganizationLogoResponse>;
|
|
117
|
+
PutOrganizationLogo(request: PutOrganizationLogoRequest): Promise<PutOrganizationLogoResponse>;
|
|
118
|
+
DeleteOrganizationLogo(request: DeleteOrganizationLogoRequest): Promise<DeleteOrganizationLogoResponse>;
|
|
119
|
+
}
|
|
120
|
+
export declare const OrganizationServiceServiceName = "weaveapi.organization.v1.OrganizationService";
|
|
121
|
+
export declare class OrganizationServiceClientImpl implements OrganizationService {
|
|
122
|
+
private readonly rpc;
|
|
123
|
+
private readonly service;
|
|
124
|
+
constructor(rpc: Rpc, opts?: {
|
|
125
|
+
service?: string;
|
|
126
|
+
});
|
|
127
|
+
ListOrganizations(request: ListOrganizationsRequest): Promise<ListOrganizationsResponse>;
|
|
128
|
+
CreateOrganization(request: CreateOrganizationRequest): Promise<CreateOrganizationResponse>;
|
|
129
|
+
GetOrganizationBySlug(request: GetOrganizationBySlugRequest): Promise<GetOrganizationBySlugResponse>;
|
|
130
|
+
GetOrganizationById(request: GetOrganizationByIdRequest): Promise<GetOrganizationByIdResponse>;
|
|
131
|
+
UpdateOrganization(request: UpdateOrganizationRequest): Promise<UpdateOrganizationResponse>;
|
|
132
|
+
DeleteOrganization(request: DeleteOrganizationRequest): Promise<DeleteOrganizationResponse>;
|
|
133
|
+
GetOrganizationLogo(request: GetOrganizationLogoRequest): Promise<GetOrganizationLogoResponse>;
|
|
134
|
+
PutOrganizationLogo(request: PutOrganizationLogoRequest): Promise<PutOrganizationLogoResponse>;
|
|
135
|
+
DeleteOrganizationLogo(request: DeleteOrganizationLogoRequest): Promise<DeleteOrganizationLogoResponse>;
|
|
136
|
+
}
|
|
137
|
+
export type OrganizationServiceDefinition = typeof OrganizationServiceDefinition;
|
|
138
|
+
export declare const OrganizationServiceDefinition: {
|
|
139
|
+
readonly name: "OrganizationService";
|
|
140
|
+
readonly fullName: "weaveapi.organization.v1.OrganizationService";
|
|
141
|
+
readonly methods: {
|
|
142
|
+
readonly listOrganizations: {
|
|
143
|
+
readonly name: "ListOrganizations";
|
|
144
|
+
readonly requestType: typeof ListOrganizationsRequest;
|
|
145
|
+
readonly requestStream: false;
|
|
146
|
+
readonly responseType: typeof ListOrganizationsResponse;
|
|
147
|
+
readonly responseStream: false;
|
|
148
|
+
readonly options: {
|
|
149
|
+
readonly _unknownFields: {
|
|
150
|
+
readonly 578365826: readonly [Uint8Array];
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly createOrganization: {
|
|
155
|
+
readonly name: "CreateOrganization";
|
|
156
|
+
readonly requestType: typeof CreateOrganizationRequest;
|
|
157
|
+
readonly requestStream: false;
|
|
158
|
+
readonly responseType: typeof CreateOrganizationResponse;
|
|
159
|
+
readonly responseStream: false;
|
|
160
|
+
readonly options: {
|
|
161
|
+
readonly _unknownFields: {
|
|
162
|
+
readonly 578365826: readonly [Uint8Array];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly getOrganizationBySlug: {
|
|
167
|
+
readonly name: "GetOrganizationBySlug";
|
|
168
|
+
readonly requestType: typeof GetOrganizationBySlugRequest;
|
|
169
|
+
readonly requestStream: false;
|
|
170
|
+
readonly responseType: typeof GetOrganizationBySlugResponse;
|
|
171
|
+
readonly responseStream: false;
|
|
172
|
+
readonly options: {
|
|
173
|
+
readonly _unknownFields: {
|
|
174
|
+
readonly 578365826: readonly [Uint8Array];
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly getOrganizationById: {
|
|
179
|
+
readonly name: "GetOrganizationById";
|
|
180
|
+
readonly requestType: typeof GetOrganizationByIdRequest;
|
|
181
|
+
readonly requestStream: false;
|
|
182
|
+
readonly responseType: typeof GetOrganizationByIdResponse;
|
|
183
|
+
readonly responseStream: false;
|
|
184
|
+
readonly options: {
|
|
185
|
+
readonly _unknownFields: {
|
|
186
|
+
readonly 578365826: readonly [Uint8Array];
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly updateOrganization: {
|
|
191
|
+
readonly name: "UpdateOrganization";
|
|
192
|
+
readonly requestType: typeof UpdateOrganizationRequest;
|
|
193
|
+
readonly requestStream: false;
|
|
194
|
+
readonly responseType: typeof UpdateOrganizationResponse;
|
|
195
|
+
readonly responseStream: false;
|
|
196
|
+
readonly options: {
|
|
197
|
+
readonly _unknownFields: {
|
|
198
|
+
readonly 578365826: readonly [Uint8Array];
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
readonly deleteOrganization: {
|
|
203
|
+
readonly name: "DeleteOrganization";
|
|
204
|
+
readonly requestType: typeof DeleteOrganizationRequest;
|
|
205
|
+
readonly requestStream: false;
|
|
206
|
+
readonly responseType: typeof DeleteOrganizationResponse;
|
|
207
|
+
readonly responseStream: false;
|
|
208
|
+
readonly options: {
|
|
209
|
+
readonly _unknownFields: {
|
|
210
|
+
readonly 578365826: readonly [Uint8Array];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly getOrganizationLogo: {
|
|
215
|
+
readonly name: "GetOrganizationLogo";
|
|
216
|
+
readonly requestType: typeof GetOrganizationLogoRequest;
|
|
217
|
+
readonly requestStream: false;
|
|
218
|
+
readonly responseType: typeof GetOrganizationLogoResponse;
|
|
219
|
+
readonly responseStream: false;
|
|
220
|
+
readonly options: {};
|
|
221
|
+
};
|
|
222
|
+
readonly putOrganizationLogo: {
|
|
223
|
+
readonly name: "PutOrganizationLogo";
|
|
224
|
+
readonly requestType: typeof PutOrganizationLogoRequest;
|
|
225
|
+
readonly requestStream: false;
|
|
226
|
+
readonly responseType: typeof PutOrganizationLogoResponse;
|
|
227
|
+
readonly responseStream: false;
|
|
228
|
+
readonly options: {};
|
|
229
|
+
};
|
|
230
|
+
readonly deleteOrganizationLogo: {
|
|
231
|
+
readonly name: "DeleteOrganizationLogo";
|
|
232
|
+
readonly requestType: typeof DeleteOrganizationLogoRequest;
|
|
233
|
+
readonly requestStream: false;
|
|
234
|
+
readonly responseType: typeof DeleteOrganizationLogoResponse;
|
|
235
|
+
readonly responseStream: false;
|
|
236
|
+
readonly options: {};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
interface Rpc {
|
|
241
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
242
|
+
}
|
|
243
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
244
|
+
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 {} ? {
|
|
245
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
246
|
+
} : Partial<T>;
|
|
247
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
248
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
249
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
250
|
+
} & {
|
|
251
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
252
|
+
};
|
|
253
|
+
export interface MessageFns<T> {
|
|
254
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
255
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
256
|
+
fromJSON(object: any): T;
|
|
257
|
+
toJSON(message: T): unknown;
|
|
258
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
259
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
260
|
+
}
|
|
261
|
+
export {};
|