@devvit/protos 0.11.0-next-2024-07-09-09c743af9.0 → 0.11.0-next-2024-07-09-907b3322a.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.min.json +46 -38
- package/package.json +6 -6
- package/protos.min.js +2 -2
- package/protos.min.js.map +4 -4
- package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +79 -0
- package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +24 -0
- package/schema/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +30 -0
- package/schema/devvit/dev_portal/dev_portal.proto +19 -2
- package/schema/devvit/plugin/buildpack/buildpack_common.proto +12 -0
- package/schema/devvit/runtime/bundle.proto +2 -1
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +141 -0
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts.map +1 -0
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +804 -0
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +55 -0
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts.map +1 -0
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.js +284 -0
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts +63 -0
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts.map +1 -0
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +321 -0
- package/types/devvit/dev_portal/dev_portal.d.ts +714 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.js +156 -0
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +46 -0
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp-client.js +133 -0
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts +29 -0
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp.js +685 -0
- package/types/devvit/gateway/resolvers.d.ts +6 -0
- package/types/devvit/gateway/resolvers.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack.d.ts +60 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +34 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.js +161 -0
- package/types/devvit/plugin/linker/linker.d.ts +30 -0
- package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
- package/types/devvit/plugin/linker/resolver.d.ts +30 -0
- package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
- package/types/devvit/runtime/actor/bootstrap.d.ts +6 -0
- package/types/devvit/runtime/actor/bootstrap.d.ts.map +1 -1
- package/types/devvit/runtime/actor/runtime.d.ts +6 -0
- package/types/devvit/runtime/actor/runtime.d.ts.map +1 -1
- package/types/devvit/runtime/actor/supervisor.d.ts +6 -0
- package/types/devvit/runtime/actor/supervisor.d.ts.map +1 -1
- package/types/devvit/runtime/bundle.d.ts +17 -0
- package/types/devvit/runtime/bundle.d.ts.map +1 -1
- package/types/devvit/runtime/bundle.js +102 -0
- package/types/devvit/service/bundle_service.d.ts +12 -0
- package/types/devvit/service/bundle_service.d.ts.map +1 -1
@@ -0,0 +1,55 @@
|
|
1
|
+
/**
|
2
|
+
* #app_publish_request_note.ts
|
3
|
+
*
|
4
|
+
* @packageDocumentation
|
5
|
+
*/
|
6
|
+
import _m0 from 'protobufjs/minimal.js';
|
7
|
+
import { Redditor } from '../../reddit/redditor.js';
|
8
|
+
export interface AppPublishRequestNote {
|
9
|
+
id: string;
|
10
|
+
createdAt?: Date | undefined;
|
11
|
+
updatedAt?: Date | undefined;
|
12
|
+
author?: Redditor | undefined;
|
13
|
+
note: string;
|
14
|
+
}
|
15
|
+
export interface AppPRAddNoteRequest {
|
16
|
+
appPublishRequestId: string;
|
17
|
+
note: string;
|
18
|
+
}
|
19
|
+
export interface AppPRUpdateNoteRequest {
|
20
|
+
appPublishRequestNoteId: string;
|
21
|
+
note: string;
|
22
|
+
}
|
23
|
+
export declare const AppPublishRequestNote: {
|
24
|
+
$type: "devvit.dev_portal.app_publish_request.note.AppPublishRequestNote";
|
25
|
+
encode(message: AppPublishRequestNote, writer?: _m0.Writer): _m0.Writer;
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppPublishRequestNote;
|
27
|
+
fromJSON(object: any): AppPublishRequestNote;
|
28
|
+
toJSON(message: AppPublishRequestNote): unknown;
|
29
|
+
create(base?: DeepPartial<AppPublishRequestNote>): AppPublishRequestNote;
|
30
|
+
fromPartial(object: DeepPartial<AppPublishRequestNote>): AppPublishRequestNote;
|
31
|
+
};
|
32
|
+
export declare const AppPRAddNoteRequest: {
|
33
|
+
$type: "devvit.dev_portal.app_publish_request.note.AppPRAddNoteRequest";
|
34
|
+
encode(message: AppPRAddNoteRequest, writer?: _m0.Writer): _m0.Writer;
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppPRAddNoteRequest;
|
36
|
+
fromJSON(object: any): AppPRAddNoteRequest;
|
37
|
+
toJSON(message: AppPRAddNoteRequest): unknown;
|
38
|
+
create(base?: DeepPartial<AppPRAddNoteRequest>): AppPRAddNoteRequest;
|
39
|
+
fromPartial(object: DeepPartial<AppPRAddNoteRequest>): AppPRAddNoteRequest;
|
40
|
+
};
|
41
|
+
export declare const AppPRUpdateNoteRequest: {
|
42
|
+
$type: "devvit.dev_portal.app_publish_request.note.AppPRUpdateNoteRequest";
|
43
|
+
encode(message: AppPRUpdateNoteRequest, writer?: _m0.Writer): _m0.Writer;
|
44
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppPRUpdateNoteRequest;
|
45
|
+
fromJSON(object: any): AppPRUpdateNoteRequest;
|
46
|
+
toJSON(message: AppPRUpdateNoteRequest): unknown;
|
47
|
+
create(base?: DeepPartial<AppPRUpdateNoteRequest>): AppPRUpdateNoteRequest;
|
48
|
+
fromPartial(object: DeepPartial<AppPRUpdateNoteRequest>): AppPRUpdateNoteRequest;
|
49
|
+
};
|
50
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
51
|
+
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 {} ? {
|
52
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
53
|
+
} : Partial<T>;
|
54
|
+
export {};
|
55
|
+
//# sourceMappingURL=app_publish_request_note.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"app_publish_request_note.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,eAAO,MAAM,qBAAqB;;oBAGhB,qBAAqB,WAAU,IAAI,MAAM,GAAyB,IAAI,MAAM;kBAmB9E,IAAI,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,qBAAqB;qBAmD7D,GAAG,GAAG,qBAAqB;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AC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,284 @@
|
|
1
|
+
/**
|
2
|
+
* #app_publish_request_note.ts
|
3
|
+
*
|
4
|
+
* @packageDocumentation
|
5
|
+
*/
|
6
|
+
/* eslint-disable */
|
7
|
+
import _m0 from 'protobufjs/minimal.js';
|
8
|
+
import { Timestamp } from '../../../../google/protobuf/timestamp.js';
|
9
|
+
import { messageTypeRegistry } from '../../../../typeRegistry.js';
|
10
|
+
import { Redditor } from '../../reddit/redditor.js';
|
11
|
+
function createBaseAppPublishRequestNote() {
|
12
|
+
return { id: "", createdAt: undefined, updatedAt: undefined, author: undefined, note: "" };
|
13
|
+
}
|
14
|
+
export const AppPublishRequestNote = {
|
15
|
+
$type: "devvit.dev_portal.app_publish_request.note.AppPublishRequestNote",
|
16
|
+
encode(message, writer = _m0.Writer.create()) {
|
17
|
+
if (message.id !== "") {
|
18
|
+
writer.uint32(10).string(message.id);
|
19
|
+
}
|
20
|
+
if (message.createdAt !== undefined) {
|
21
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
22
|
+
}
|
23
|
+
if (message.updatedAt !== undefined) {
|
24
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(26).fork()).ldelim();
|
25
|
+
}
|
26
|
+
if (message.author !== undefined) {
|
27
|
+
Redditor.encode(message.author, writer.uint32(34).fork()).ldelim();
|
28
|
+
}
|
29
|
+
if (message.note !== "") {
|
30
|
+
writer.uint32(42).string(message.note);
|
31
|
+
}
|
32
|
+
return writer;
|
33
|
+
},
|
34
|
+
decode(input, length) {
|
35
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
36
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
37
|
+
const message = createBaseAppPublishRequestNote();
|
38
|
+
while (reader.pos < end) {
|
39
|
+
const tag = reader.uint32();
|
40
|
+
switch (tag >>> 3) {
|
41
|
+
case 1:
|
42
|
+
if (tag !== 10) {
|
43
|
+
break;
|
44
|
+
}
|
45
|
+
message.id = reader.string();
|
46
|
+
continue;
|
47
|
+
case 2:
|
48
|
+
if (tag !== 18) {
|
49
|
+
break;
|
50
|
+
}
|
51
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
52
|
+
continue;
|
53
|
+
case 3:
|
54
|
+
if (tag !== 26) {
|
55
|
+
break;
|
56
|
+
}
|
57
|
+
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
58
|
+
continue;
|
59
|
+
case 4:
|
60
|
+
if (tag !== 34) {
|
61
|
+
break;
|
62
|
+
}
|
63
|
+
message.author = Redditor.decode(reader, reader.uint32());
|
64
|
+
continue;
|
65
|
+
case 5:
|
66
|
+
if (tag !== 42) {
|
67
|
+
break;
|
68
|
+
}
|
69
|
+
message.note = reader.string();
|
70
|
+
continue;
|
71
|
+
}
|
72
|
+
if ((tag & 7) === 4 || tag === 0) {
|
73
|
+
break;
|
74
|
+
}
|
75
|
+
reader.skipType(tag & 7);
|
76
|
+
}
|
77
|
+
return message;
|
78
|
+
},
|
79
|
+
fromJSON(object) {
|
80
|
+
return {
|
81
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
82
|
+
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
83
|
+
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
84
|
+
author: isSet(object.author) ? Redditor.fromJSON(object.author) : undefined,
|
85
|
+
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
86
|
+
};
|
87
|
+
},
|
88
|
+
toJSON(message) {
|
89
|
+
const obj = {};
|
90
|
+
if (message.id !== "") {
|
91
|
+
obj.id = message.id;
|
92
|
+
}
|
93
|
+
if (message.createdAt !== undefined) {
|
94
|
+
obj.createdAt = message.createdAt.toISOString();
|
95
|
+
}
|
96
|
+
if (message.updatedAt !== undefined) {
|
97
|
+
obj.updatedAt = message.updatedAt.toISOString();
|
98
|
+
}
|
99
|
+
if (message.author !== undefined) {
|
100
|
+
obj.author = Redditor.toJSON(message.author);
|
101
|
+
}
|
102
|
+
if (message.note !== "") {
|
103
|
+
obj.note = message.note;
|
104
|
+
}
|
105
|
+
return obj;
|
106
|
+
},
|
107
|
+
create(base) {
|
108
|
+
return AppPublishRequestNote.fromPartial(base ?? {});
|
109
|
+
},
|
110
|
+
fromPartial(object) {
|
111
|
+
const message = createBaseAppPublishRequestNote();
|
112
|
+
message.id = object.id ?? "";
|
113
|
+
message.createdAt = object.createdAt ?? undefined;
|
114
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
115
|
+
message.author = (object.author !== undefined && object.author !== null)
|
116
|
+
? Redditor.fromPartial(object.author)
|
117
|
+
: undefined;
|
118
|
+
message.note = object.note ?? "";
|
119
|
+
return message;
|
120
|
+
},
|
121
|
+
};
|
122
|
+
messageTypeRegistry.set(AppPublishRequestNote.$type, AppPublishRequestNote);
|
123
|
+
function createBaseAppPRAddNoteRequest() {
|
124
|
+
return { appPublishRequestId: "", note: "" };
|
125
|
+
}
|
126
|
+
export const AppPRAddNoteRequest = {
|
127
|
+
$type: "devvit.dev_portal.app_publish_request.note.AppPRAddNoteRequest",
|
128
|
+
encode(message, writer = _m0.Writer.create()) {
|
129
|
+
if (message.appPublishRequestId !== "") {
|
130
|
+
writer.uint32(10).string(message.appPublishRequestId);
|
131
|
+
}
|
132
|
+
if (message.note !== "") {
|
133
|
+
writer.uint32(18).string(message.note);
|
134
|
+
}
|
135
|
+
return writer;
|
136
|
+
},
|
137
|
+
decode(input, length) {
|
138
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
139
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
140
|
+
const message = createBaseAppPRAddNoteRequest();
|
141
|
+
while (reader.pos < end) {
|
142
|
+
const tag = reader.uint32();
|
143
|
+
switch (tag >>> 3) {
|
144
|
+
case 1:
|
145
|
+
if (tag !== 10) {
|
146
|
+
break;
|
147
|
+
}
|
148
|
+
message.appPublishRequestId = reader.string();
|
149
|
+
continue;
|
150
|
+
case 2:
|
151
|
+
if (tag !== 18) {
|
152
|
+
break;
|
153
|
+
}
|
154
|
+
message.note = reader.string();
|
155
|
+
continue;
|
156
|
+
}
|
157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
158
|
+
break;
|
159
|
+
}
|
160
|
+
reader.skipType(tag & 7);
|
161
|
+
}
|
162
|
+
return message;
|
163
|
+
},
|
164
|
+
fromJSON(object) {
|
165
|
+
return {
|
166
|
+
appPublishRequestId: isSet(object.appPublishRequestId) ? globalThis.String(object.appPublishRequestId) : "",
|
167
|
+
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
168
|
+
};
|
169
|
+
},
|
170
|
+
toJSON(message) {
|
171
|
+
const obj = {};
|
172
|
+
if (message.appPublishRequestId !== "") {
|
173
|
+
obj.appPublishRequestId = message.appPublishRequestId;
|
174
|
+
}
|
175
|
+
if (message.note !== "") {
|
176
|
+
obj.note = message.note;
|
177
|
+
}
|
178
|
+
return obj;
|
179
|
+
},
|
180
|
+
create(base) {
|
181
|
+
return AppPRAddNoteRequest.fromPartial(base ?? {});
|
182
|
+
},
|
183
|
+
fromPartial(object) {
|
184
|
+
const message = createBaseAppPRAddNoteRequest();
|
185
|
+
message.appPublishRequestId = object.appPublishRequestId ?? "";
|
186
|
+
message.note = object.note ?? "";
|
187
|
+
return message;
|
188
|
+
},
|
189
|
+
};
|
190
|
+
messageTypeRegistry.set(AppPRAddNoteRequest.$type, AppPRAddNoteRequest);
|
191
|
+
function createBaseAppPRUpdateNoteRequest() {
|
192
|
+
return { appPublishRequestNoteId: "", note: "" };
|
193
|
+
}
|
194
|
+
export const AppPRUpdateNoteRequest = {
|
195
|
+
$type: "devvit.dev_portal.app_publish_request.note.AppPRUpdateNoteRequest",
|
196
|
+
encode(message, writer = _m0.Writer.create()) {
|
197
|
+
if (message.appPublishRequestNoteId !== "") {
|
198
|
+
writer.uint32(10).string(message.appPublishRequestNoteId);
|
199
|
+
}
|
200
|
+
if (message.note !== "") {
|
201
|
+
writer.uint32(18).string(message.note);
|
202
|
+
}
|
203
|
+
return writer;
|
204
|
+
},
|
205
|
+
decode(input, length) {
|
206
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
207
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
208
|
+
const message = createBaseAppPRUpdateNoteRequest();
|
209
|
+
while (reader.pos < end) {
|
210
|
+
const tag = reader.uint32();
|
211
|
+
switch (tag >>> 3) {
|
212
|
+
case 1:
|
213
|
+
if (tag !== 10) {
|
214
|
+
break;
|
215
|
+
}
|
216
|
+
message.appPublishRequestNoteId = reader.string();
|
217
|
+
continue;
|
218
|
+
case 2:
|
219
|
+
if (tag !== 18) {
|
220
|
+
break;
|
221
|
+
}
|
222
|
+
message.note = reader.string();
|
223
|
+
continue;
|
224
|
+
}
|
225
|
+
if ((tag & 7) === 4 || tag === 0) {
|
226
|
+
break;
|
227
|
+
}
|
228
|
+
reader.skipType(tag & 7);
|
229
|
+
}
|
230
|
+
return message;
|
231
|
+
},
|
232
|
+
fromJSON(object) {
|
233
|
+
return {
|
234
|
+
appPublishRequestNoteId: isSet(object.appPublishRequestNoteId)
|
235
|
+
? globalThis.String(object.appPublishRequestNoteId)
|
236
|
+
: "",
|
237
|
+
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
238
|
+
};
|
239
|
+
},
|
240
|
+
toJSON(message) {
|
241
|
+
const obj = {};
|
242
|
+
if (message.appPublishRequestNoteId !== "") {
|
243
|
+
obj.appPublishRequestNoteId = message.appPublishRequestNoteId;
|
244
|
+
}
|
245
|
+
if (message.note !== "") {
|
246
|
+
obj.note = message.note;
|
247
|
+
}
|
248
|
+
return obj;
|
249
|
+
},
|
250
|
+
create(base) {
|
251
|
+
return AppPRUpdateNoteRequest.fromPartial(base ?? {});
|
252
|
+
},
|
253
|
+
fromPartial(object) {
|
254
|
+
const message = createBaseAppPRUpdateNoteRequest();
|
255
|
+
message.appPublishRequestNoteId = object.appPublishRequestNoteId ?? "";
|
256
|
+
message.note = object.note ?? "";
|
257
|
+
return message;
|
258
|
+
},
|
259
|
+
};
|
260
|
+
messageTypeRegistry.set(AppPRUpdateNoteRequest.$type, AppPRUpdateNoteRequest);
|
261
|
+
function toTimestamp(date) {
|
262
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
263
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
264
|
+
return { seconds, nanos };
|
265
|
+
}
|
266
|
+
function fromTimestamp(t) {
|
267
|
+
let millis = (t.seconds || 0) * 1000;
|
268
|
+
millis += (t.nanos || 0) / 1000000;
|
269
|
+
return new globalThis.Date(millis);
|
270
|
+
}
|
271
|
+
function fromJsonTimestamp(o) {
|
272
|
+
if (o instanceof globalThis.Date) {
|
273
|
+
return o;
|
274
|
+
}
|
275
|
+
else if (typeof o === "string") {
|
276
|
+
return new globalThis.Date(o);
|
277
|
+
}
|
278
|
+
else {
|
279
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
280
|
+
}
|
281
|
+
}
|
282
|
+
function isSet(value) {
|
283
|
+
return value !== null && value !== undefined;
|
284
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* #app_publish_request_review.ts
|
3
|
+
*
|
4
|
+
* @packageDocumentation
|
5
|
+
*/
|
6
|
+
import _m0 from 'protobufjs/minimal.js';
|
7
|
+
import { Redditor } from '../../reddit/redditor.js';
|
8
|
+
export declare enum AppPublishRequestReviewDecision {
|
9
|
+
APPROVED = 0,
|
10
|
+
DENIED = 1,
|
11
|
+
OBSOLETE = 2,
|
12
|
+
UNRECOGNIZED = -1
|
13
|
+
}
|
14
|
+
export declare function appPublishRequestReviewDecisionFromJSON(object: any): AppPublishRequestReviewDecision;
|
15
|
+
export declare function appPublishRequestReviewDecisionToJSON(object: AppPublishRequestReviewDecision): number;
|
16
|
+
export interface AppPublishRequestReview {
|
17
|
+
id: string;
|
18
|
+
createdAt?: Date | undefined;
|
19
|
+
updatedAt?: Date | undefined;
|
20
|
+
reviewer?: Redditor | undefined;
|
21
|
+
decision: AppPublishRequestReviewDecision;
|
22
|
+
}
|
23
|
+
export interface AppPRAddReviewRequest {
|
24
|
+
appPublishRequestId: string;
|
25
|
+
decision: AppPublishRequestReviewDecision;
|
26
|
+
}
|
27
|
+
export interface AppPRUpdateReviewRequest {
|
28
|
+
appPublishRequestReviewId: string;
|
29
|
+
decision: AppPublishRequestReviewDecision;
|
30
|
+
}
|
31
|
+
export declare const AppPublishRequestReview: {
|
32
|
+
$type: "devvit.dev_portal.app_publish_request.review.AppPublishRequestReview";
|
33
|
+
encode(message: AppPublishRequestReview, writer?: _m0.Writer): _m0.Writer;
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppPublishRequestReview;
|
35
|
+
fromJSON(object: any): AppPublishRequestReview;
|
36
|
+
toJSON(message: AppPublishRequestReview): unknown;
|
37
|
+
create(base?: DeepPartial<AppPublishRequestReview>): AppPublishRequestReview;
|
38
|
+
fromPartial(object: DeepPartial<AppPublishRequestReview>): AppPublishRequestReview;
|
39
|
+
};
|
40
|
+
export declare const AppPRAddReviewRequest: {
|
41
|
+
$type: "devvit.dev_portal.app_publish_request.review.AppPRAddReviewRequest";
|
42
|
+
encode(message: AppPRAddReviewRequest, writer?: _m0.Writer): _m0.Writer;
|
43
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppPRAddReviewRequest;
|
44
|
+
fromJSON(object: any): AppPRAddReviewRequest;
|
45
|
+
toJSON(message: AppPRAddReviewRequest): unknown;
|
46
|
+
create(base?: DeepPartial<AppPRAddReviewRequest>): AppPRAddReviewRequest;
|
47
|
+
fromPartial(object: DeepPartial<AppPRAddReviewRequest>): AppPRAddReviewRequest;
|
48
|
+
};
|
49
|
+
export declare const AppPRUpdateReviewRequest: {
|
50
|
+
$type: "devvit.dev_portal.app_publish_request.review.AppPRUpdateReviewRequest";
|
51
|
+
encode(message: AppPRUpdateReviewRequest, writer?: _m0.Writer): _m0.Writer;
|
52
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppPRUpdateReviewRequest;
|
53
|
+
fromJSON(object: any): AppPRUpdateReviewRequest;
|
54
|
+
toJSON(message: AppPRUpdateReviewRequest): unknown;
|
55
|
+
create(base?: DeepPartial<AppPRUpdateReviewRequest>): AppPRUpdateReviewRequest;
|
56
|
+
fromPartial(object: DeepPartial<AppPRUpdateReviewRequest>): AppPRUpdateReviewRequest;
|
57
|
+
};
|
58
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
59
|
+
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 {} ? {
|
60
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
61
|
+
} : Partial<T>;
|
62
|
+
export {};
|
63
|
+
//# sourceMappingURL=app_publish_request_review.d.ts.map
|
package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"app_publish_request_review.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,oBAAY,+BAA+B;IACzC,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,GAAG,GAAG,+BAA+B,CAgBpG;AAED,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,+BAA+B,GAAG,MAAM,CAYrG;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,SAA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