@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,804 @@
|
|
1
|
+
/**
|
2
|
+
* #app_publish_request.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 { AppInfo } from '../app/info/app_info.js';
|
11
|
+
import { AppVersionInfo } from '../app_version/info/app_version_info.js';
|
12
|
+
import { Redditor } from '../reddit/redditor.js';
|
13
|
+
import { AppPublishRequestNote } from './note/app_publish_request_note.js';
|
14
|
+
import { AppPublishRequestReview } from './review/app_publish_request_review.js';
|
15
|
+
export var AppPublishRequestStatus;
|
16
|
+
(function (AppPublishRequestStatus) {
|
17
|
+
AppPublishRequestStatus[AppPublishRequestStatus["APPROVED"] = 0] = "APPROVED";
|
18
|
+
AppPublishRequestStatus[AppPublishRequestStatus["DENIED"] = 1] = "DENIED";
|
19
|
+
AppPublishRequestStatus[AppPublishRequestStatus["OBSOLETE"] = 2] = "OBSOLETE";
|
20
|
+
AppPublishRequestStatus[AppPublishRequestStatus["PENDING"] = 3] = "PENDING";
|
21
|
+
AppPublishRequestStatus[AppPublishRequestStatus["WITHDRAWN"] = 4] = "WITHDRAWN";
|
22
|
+
AppPublishRequestStatus[AppPublishRequestStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
23
|
+
})(AppPublishRequestStatus || (AppPublishRequestStatus = {}));
|
24
|
+
export function appPublishRequestStatusFromJSON(object) {
|
25
|
+
switch (object) {
|
26
|
+
case 0:
|
27
|
+
case "APPROVED":
|
28
|
+
return AppPublishRequestStatus.APPROVED;
|
29
|
+
case 1:
|
30
|
+
case "DENIED":
|
31
|
+
return AppPublishRequestStatus.DENIED;
|
32
|
+
case 2:
|
33
|
+
case "OBSOLETE":
|
34
|
+
return AppPublishRequestStatus.OBSOLETE;
|
35
|
+
case 3:
|
36
|
+
case "PENDING":
|
37
|
+
return AppPublishRequestStatus.PENDING;
|
38
|
+
case 4:
|
39
|
+
case "WITHDRAWN":
|
40
|
+
return AppPublishRequestStatus.WITHDRAWN;
|
41
|
+
case -1:
|
42
|
+
case "UNRECOGNIZED":
|
43
|
+
default:
|
44
|
+
return AppPublishRequestStatus.UNRECOGNIZED;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
export function appPublishRequestStatusToJSON(object) {
|
48
|
+
switch (object) {
|
49
|
+
case AppPublishRequestStatus.APPROVED:
|
50
|
+
return 0;
|
51
|
+
case AppPublishRequestStatus.DENIED:
|
52
|
+
return 1;
|
53
|
+
case AppPublishRequestStatus.OBSOLETE:
|
54
|
+
return 2;
|
55
|
+
case AppPublishRequestStatus.PENDING:
|
56
|
+
return 3;
|
57
|
+
case AppPublishRequestStatus.WITHDRAWN:
|
58
|
+
return 4;
|
59
|
+
case AppPublishRequestStatus.UNRECOGNIZED:
|
60
|
+
default:
|
61
|
+
return -1;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
function createBaseFullPublishRequestInfo() {
|
65
|
+
return {
|
66
|
+
id: "",
|
67
|
+
createdAt: undefined,
|
68
|
+
createdBy: undefined,
|
69
|
+
status: 0,
|
70
|
+
appVersionInfo: undefined,
|
71
|
+
appInfo: undefined,
|
72
|
+
reviews: [],
|
73
|
+
notes: [],
|
74
|
+
};
|
75
|
+
}
|
76
|
+
export const FullPublishRequestInfo = {
|
77
|
+
$type: "devvit.dev_portal.app_publish_request.FullPublishRequestInfo",
|
78
|
+
encode(message, writer = _m0.Writer.create()) {
|
79
|
+
if (message.id !== "") {
|
80
|
+
writer.uint32(10).string(message.id);
|
81
|
+
}
|
82
|
+
if (message.createdAt !== undefined) {
|
83
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim();
|
84
|
+
}
|
85
|
+
if (message.createdBy !== undefined) {
|
86
|
+
Redditor.encode(message.createdBy, writer.uint32(26).fork()).ldelim();
|
87
|
+
}
|
88
|
+
if (message.status !== 0) {
|
89
|
+
writer.uint32(32).int32(message.status);
|
90
|
+
}
|
91
|
+
if (message.appVersionInfo !== undefined) {
|
92
|
+
AppVersionInfo.encode(message.appVersionInfo, writer.uint32(42).fork()).ldelim();
|
93
|
+
}
|
94
|
+
if (message.appInfo !== undefined) {
|
95
|
+
AppInfo.encode(message.appInfo, writer.uint32(50).fork()).ldelim();
|
96
|
+
}
|
97
|
+
for (const v of message.reviews) {
|
98
|
+
AppPublishRequestReview.encode(v, writer.uint32(58).fork()).ldelim();
|
99
|
+
}
|
100
|
+
for (const v of message.notes) {
|
101
|
+
AppPublishRequestNote.encode(v, writer.uint32(66).fork()).ldelim();
|
102
|
+
}
|
103
|
+
return writer;
|
104
|
+
},
|
105
|
+
decode(input, length) {
|
106
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
108
|
+
const message = createBaseFullPublishRequestInfo();
|
109
|
+
while (reader.pos < end) {
|
110
|
+
const tag = reader.uint32();
|
111
|
+
switch (tag >>> 3) {
|
112
|
+
case 1:
|
113
|
+
if (tag !== 10) {
|
114
|
+
break;
|
115
|
+
}
|
116
|
+
message.id = reader.string();
|
117
|
+
continue;
|
118
|
+
case 2:
|
119
|
+
if (tag !== 18) {
|
120
|
+
break;
|
121
|
+
}
|
122
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
123
|
+
continue;
|
124
|
+
case 3:
|
125
|
+
if (tag !== 26) {
|
126
|
+
break;
|
127
|
+
}
|
128
|
+
message.createdBy = Redditor.decode(reader, reader.uint32());
|
129
|
+
continue;
|
130
|
+
case 4:
|
131
|
+
if (tag !== 32) {
|
132
|
+
break;
|
133
|
+
}
|
134
|
+
message.status = reader.int32();
|
135
|
+
continue;
|
136
|
+
case 5:
|
137
|
+
if (tag !== 42) {
|
138
|
+
break;
|
139
|
+
}
|
140
|
+
message.appVersionInfo = AppVersionInfo.decode(reader, reader.uint32());
|
141
|
+
continue;
|
142
|
+
case 6:
|
143
|
+
if (tag !== 50) {
|
144
|
+
break;
|
145
|
+
}
|
146
|
+
message.appInfo = AppInfo.decode(reader, reader.uint32());
|
147
|
+
continue;
|
148
|
+
case 7:
|
149
|
+
if (tag !== 58) {
|
150
|
+
break;
|
151
|
+
}
|
152
|
+
message.reviews.push(AppPublishRequestReview.decode(reader, reader.uint32()));
|
153
|
+
continue;
|
154
|
+
case 8:
|
155
|
+
if (tag !== 66) {
|
156
|
+
break;
|
157
|
+
}
|
158
|
+
message.notes.push(AppPublishRequestNote.decode(reader, reader.uint32()));
|
159
|
+
continue;
|
160
|
+
}
|
161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
162
|
+
break;
|
163
|
+
}
|
164
|
+
reader.skipType(tag & 7);
|
165
|
+
}
|
166
|
+
return message;
|
167
|
+
},
|
168
|
+
fromJSON(object) {
|
169
|
+
return {
|
170
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
171
|
+
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
172
|
+
createdBy: isSet(object.createdBy) ? Redditor.fromJSON(object.createdBy) : undefined,
|
173
|
+
status: isSet(object.status) ? appPublishRequestStatusFromJSON(object.status) : 0,
|
174
|
+
appVersionInfo: isSet(object.appVersionInfo) ? AppVersionInfo.fromJSON(object.appVersionInfo) : undefined,
|
175
|
+
appInfo: isSet(object.appInfo) ? AppInfo.fromJSON(object.appInfo) : undefined,
|
176
|
+
reviews: globalThis.Array.isArray(object?.reviews)
|
177
|
+
? object.reviews.map((e) => AppPublishRequestReview.fromJSON(e))
|
178
|
+
: [],
|
179
|
+
notes: globalThis.Array.isArray(object?.notes)
|
180
|
+
? object.notes.map((e) => AppPublishRequestNote.fromJSON(e))
|
181
|
+
: [],
|
182
|
+
};
|
183
|
+
},
|
184
|
+
toJSON(message) {
|
185
|
+
const obj = {};
|
186
|
+
if (message.id !== "") {
|
187
|
+
obj.id = message.id;
|
188
|
+
}
|
189
|
+
if (message.createdAt !== undefined) {
|
190
|
+
obj.createdAt = message.createdAt.toISOString();
|
191
|
+
}
|
192
|
+
if (message.createdBy !== undefined) {
|
193
|
+
obj.createdBy = Redditor.toJSON(message.createdBy);
|
194
|
+
}
|
195
|
+
if (message.status !== 0) {
|
196
|
+
obj.status = appPublishRequestStatusToJSON(message.status);
|
197
|
+
}
|
198
|
+
if (message.appVersionInfo !== undefined) {
|
199
|
+
obj.appVersionInfo = AppVersionInfo.toJSON(message.appVersionInfo);
|
200
|
+
}
|
201
|
+
if (message.appInfo !== undefined) {
|
202
|
+
obj.appInfo = AppInfo.toJSON(message.appInfo);
|
203
|
+
}
|
204
|
+
if (message.reviews?.length) {
|
205
|
+
obj.reviews = message.reviews.map((e) => AppPublishRequestReview.toJSON(e));
|
206
|
+
}
|
207
|
+
if (message.notes?.length) {
|
208
|
+
obj.notes = message.notes.map((e) => AppPublishRequestNote.toJSON(e));
|
209
|
+
}
|
210
|
+
return obj;
|
211
|
+
},
|
212
|
+
create(base) {
|
213
|
+
return FullPublishRequestInfo.fromPartial(base ?? {});
|
214
|
+
},
|
215
|
+
fromPartial(object) {
|
216
|
+
const message = createBaseFullPublishRequestInfo();
|
217
|
+
message.id = object.id ?? "";
|
218
|
+
message.createdAt = object.createdAt ?? undefined;
|
219
|
+
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
220
|
+
? Redditor.fromPartial(object.createdBy)
|
221
|
+
: undefined;
|
222
|
+
message.status = object.status ?? 0;
|
223
|
+
message.appVersionInfo = (object.appVersionInfo !== undefined && object.appVersionInfo !== null)
|
224
|
+
? AppVersionInfo.fromPartial(object.appVersionInfo)
|
225
|
+
: undefined;
|
226
|
+
message.appInfo = (object.appInfo !== undefined && object.appInfo !== null)
|
227
|
+
? AppInfo.fromPartial(object.appInfo)
|
228
|
+
: undefined;
|
229
|
+
message.reviews = object.reviews?.map((e) => AppPublishRequestReview.fromPartial(e)) || [];
|
230
|
+
message.notes = object.notes?.map((e) => AppPublishRequestNote.fromPartial(e)) || [];
|
231
|
+
return message;
|
232
|
+
},
|
233
|
+
};
|
234
|
+
messageTypeRegistry.set(FullPublishRequestInfo.$type, FullPublishRequestInfo);
|
235
|
+
function createBaseMultiplePublishRequestInfos() {
|
236
|
+
return { requests: [] };
|
237
|
+
}
|
238
|
+
export const MultiplePublishRequestInfos = {
|
239
|
+
$type: "devvit.dev_portal.app_publish_request.MultiplePublishRequestInfos",
|
240
|
+
encode(message, writer = _m0.Writer.create()) {
|
241
|
+
for (const v of message.requests) {
|
242
|
+
FullPublishRequestInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
243
|
+
}
|
244
|
+
return writer;
|
245
|
+
},
|
246
|
+
decode(input, length) {
|
247
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
248
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
249
|
+
const message = createBaseMultiplePublishRequestInfos();
|
250
|
+
while (reader.pos < end) {
|
251
|
+
const tag = reader.uint32();
|
252
|
+
switch (tag >>> 3) {
|
253
|
+
case 1:
|
254
|
+
if (tag !== 10) {
|
255
|
+
break;
|
256
|
+
}
|
257
|
+
message.requests.push(FullPublishRequestInfo.decode(reader, reader.uint32()));
|
258
|
+
continue;
|
259
|
+
}
|
260
|
+
if ((tag & 7) === 4 || tag === 0) {
|
261
|
+
break;
|
262
|
+
}
|
263
|
+
reader.skipType(tag & 7);
|
264
|
+
}
|
265
|
+
return message;
|
266
|
+
},
|
267
|
+
fromJSON(object) {
|
268
|
+
return {
|
269
|
+
requests: globalThis.Array.isArray(object?.requests)
|
270
|
+
? object.requests.map((e) => FullPublishRequestInfo.fromJSON(e))
|
271
|
+
: [],
|
272
|
+
};
|
273
|
+
},
|
274
|
+
toJSON(message) {
|
275
|
+
const obj = {};
|
276
|
+
if (message.requests?.length) {
|
277
|
+
obj.requests = message.requests.map((e) => FullPublishRequestInfo.toJSON(e));
|
278
|
+
}
|
279
|
+
return obj;
|
280
|
+
},
|
281
|
+
create(base) {
|
282
|
+
return MultiplePublishRequestInfos.fromPartial(base ?? {});
|
283
|
+
},
|
284
|
+
fromPartial(object) {
|
285
|
+
const message = createBaseMultiplePublishRequestInfos();
|
286
|
+
message.requests = object.requests?.map((e) => FullPublishRequestInfo.fromPartial(e)) || [];
|
287
|
+
return message;
|
288
|
+
},
|
289
|
+
};
|
290
|
+
messageTypeRegistry.set(MultiplePublishRequestInfos.$type, MultiplePublishRequestInfos);
|
291
|
+
function createBaseAppPRCreateRequest() {
|
292
|
+
return { appVersionId: undefined, appNameAndVersionNumber: undefined };
|
293
|
+
}
|
294
|
+
export const AppPRCreateRequest = {
|
295
|
+
$type: "devvit.dev_portal.app_publish_request.AppPRCreateRequest",
|
296
|
+
encode(message, writer = _m0.Writer.create()) {
|
297
|
+
if (message.appVersionId !== undefined) {
|
298
|
+
writer.uint32(10).string(message.appVersionId);
|
299
|
+
}
|
300
|
+
if (message.appNameAndVersionNumber !== undefined) {
|
301
|
+
writer.uint32(18).string(message.appNameAndVersionNumber);
|
302
|
+
}
|
303
|
+
return writer;
|
304
|
+
},
|
305
|
+
decode(input, length) {
|
306
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
307
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
308
|
+
const message = createBaseAppPRCreateRequest();
|
309
|
+
while (reader.pos < end) {
|
310
|
+
const tag = reader.uint32();
|
311
|
+
switch (tag >>> 3) {
|
312
|
+
case 1:
|
313
|
+
if (tag !== 10) {
|
314
|
+
break;
|
315
|
+
}
|
316
|
+
message.appVersionId = reader.string();
|
317
|
+
continue;
|
318
|
+
case 2:
|
319
|
+
if (tag !== 18) {
|
320
|
+
break;
|
321
|
+
}
|
322
|
+
message.appNameAndVersionNumber = reader.string();
|
323
|
+
continue;
|
324
|
+
}
|
325
|
+
if ((tag & 7) === 4 || tag === 0) {
|
326
|
+
break;
|
327
|
+
}
|
328
|
+
reader.skipType(tag & 7);
|
329
|
+
}
|
330
|
+
return message;
|
331
|
+
},
|
332
|
+
fromJSON(object) {
|
333
|
+
return {
|
334
|
+
appVersionId: isSet(object.appVersionId) ? globalThis.String(object.appVersionId) : undefined,
|
335
|
+
appNameAndVersionNumber: isSet(object.appNameAndVersionNumber)
|
336
|
+
? globalThis.String(object.appNameAndVersionNumber)
|
337
|
+
: undefined,
|
338
|
+
};
|
339
|
+
},
|
340
|
+
toJSON(message) {
|
341
|
+
const obj = {};
|
342
|
+
if (message.appVersionId !== undefined) {
|
343
|
+
obj.appVersionId = message.appVersionId;
|
344
|
+
}
|
345
|
+
if (message.appNameAndVersionNumber !== undefined) {
|
346
|
+
obj.appNameAndVersionNumber = message.appNameAndVersionNumber;
|
347
|
+
}
|
348
|
+
return obj;
|
349
|
+
},
|
350
|
+
create(base) {
|
351
|
+
return AppPRCreateRequest.fromPartial(base ?? {});
|
352
|
+
},
|
353
|
+
fromPartial(object) {
|
354
|
+
const message = createBaseAppPRCreateRequest();
|
355
|
+
message.appVersionId = object.appVersionId ?? undefined;
|
356
|
+
message.appNameAndVersionNumber = object.appNameAndVersionNumber ?? undefined;
|
357
|
+
return message;
|
358
|
+
},
|
359
|
+
};
|
360
|
+
messageTypeRegistry.set(AppPRCreateRequest.$type, AppPRCreateRequest);
|
361
|
+
function createBaseAppPRUpdateRequest() {
|
362
|
+
return { appVersionId: undefined, publishRequestId: undefined, appNameAndVersionNumber: undefined, status: 0 };
|
363
|
+
}
|
364
|
+
export const AppPRUpdateRequest = {
|
365
|
+
$type: "devvit.dev_portal.app_publish_request.AppPRUpdateRequest",
|
366
|
+
encode(message, writer = _m0.Writer.create()) {
|
367
|
+
if (message.appVersionId !== undefined) {
|
368
|
+
writer.uint32(10).string(message.appVersionId);
|
369
|
+
}
|
370
|
+
if (message.publishRequestId !== undefined) {
|
371
|
+
writer.uint32(18).string(message.publishRequestId);
|
372
|
+
}
|
373
|
+
if (message.appNameAndVersionNumber !== undefined) {
|
374
|
+
writer.uint32(26).string(message.appNameAndVersionNumber);
|
375
|
+
}
|
376
|
+
if (message.status !== 0) {
|
377
|
+
writer.uint32(32).int32(message.status);
|
378
|
+
}
|
379
|
+
return writer;
|
380
|
+
},
|
381
|
+
decode(input, length) {
|
382
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
384
|
+
const message = createBaseAppPRUpdateRequest();
|
385
|
+
while (reader.pos < end) {
|
386
|
+
const tag = reader.uint32();
|
387
|
+
switch (tag >>> 3) {
|
388
|
+
case 1:
|
389
|
+
if (tag !== 10) {
|
390
|
+
break;
|
391
|
+
}
|
392
|
+
message.appVersionId = reader.string();
|
393
|
+
continue;
|
394
|
+
case 2:
|
395
|
+
if (tag !== 18) {
|
396
|
+
break;
|
397
|
+
}
|
398
|
+
message.publishRequestId = reader.string();
|
399
|
+
continue;
|
400
|
+
case 3:
|
401
|
+
if (tag !== 26) {
|
402
|
+
break;
|
403
|
+
}
|
404
|
+
message.appNameAndVersionNumber = reader.string();
|
405
|
+
continue;
|
406
|
+
case 4:
|
407
|
+
if (tag !== 32) {
|
408
|
+
break;
|
409
|
+
}
|
410
|
+
message.status = reader.int32();
|
411
|
+
continue;
|
412
|
+
}
|
413
|
+
if ((tag & 7) === 4 || tag === 0) {
|
414
|
+
break;
|
415
|
+
}
|
416
|
+
reader.skipType(tag & 7);
|
417
|
+
}
|
418
|
+
return message;
|
419
|
+
},
|
420
|
+
fromJSON(object) {
|
421
|
+
return {
|
422
|
+
appVersionId: isSet(object.appVersionId) ? globalThis.String(object.appVersionId) : undefined,
|
423
|
+
publishRequestId: isSet(object.publishRequestId) ? globalThis.String(object.publishRequestId) : undefined,
|
424
|
+
appNameAndVersionNumber: isSet(object.appNameAndVersionNumber)
|
425
|
+
? globalThis.String(object.appNameAndVersionNumber)
|
426
|
+
: undefined,
|
427
|
+
status: isSet(object.status) ? appPublishRequestStatusFromJSON(object.status) : 0,
|
428
|
+
};
|
429
|
+
},
|
430
|
+
toJSON(message) {
|
431
|
+
const obj = {};
|
432
|
+
if (message.appVersionId !== undefined) {
|
433
|
+
obj.appVersionId = message.appVersionId;
|
434
|
+
}
|
435
|
+
if (message.publishRequestId !== undefined) {
|
436
|
+
obj.publishRequestId = message.publishRequestId;
|
437
|
+
}
|
438
|
+
if (message.appNameAndVersionNumber !== undefined) {
|
439
|
+
obj.appNameAndVersionNumber = message.appNameAndVersionNumber;
|
440
|
+
}
|
441
|
+
if (message.status !== 0) {
|
442
|
+
obj.status = appPublishRequestStatusToJSON(message.status);
|
443
|
+
}
|
444
|
+
return obj;
|
445
|
+
},
|
446
|
+
create(base) {
|
447
|
+
return AppPRUpdateRequest.fromPartial(base ?? {});
|
448
|
+
},
|
449
|
+
fromPartial(object) {
|
450
|
+
const message = createBaseAppPRUpdateRequest();
|
451
|
+
message.appVersionId = object.appVersionId ?? undefined;
|
452
|
+
message.publishRequestId = object.publishRequestId ?? undefined;
|
453
|
+
message.appNameAndVersionNumber = object.appNameAndVersionNumber ?? undefined;
|
454
|
+
message.status = object.status ?? 0;
|
455
|
+
return message;
|
456
|
+
},
|
457
|
+
};
|
458
|
+
messageTypeRegistry.set(AppPRUpdateRequest.$type, AppPRUpdateRequest);
|
459
|
+
function createBaseAppPRGetRequest() {
|
460
|
+
return { appVersionId: undefined, publishRequestId: undefined, appNameAndVersionNumber: undefined };
|
461
|
+
}
|
462
|
+
export const AppPRGetRequest = {
|
463
|
+
$type: "devvit.dev_portal.app_publish_request.AppPRGetRequest",
|
464
|
+
encode(message, writer = _m0.Writer.create()) {
|
465
|
+
if (message.appVersionId !== undefined) {
|
466
|
+
writer.uint32(10).string(message.appVersionId);
|
467
|
+
}
|
468
|
+
if (message.publishRequestId !== undefined) {
|
469
|
+
writer.uint32(18).string(message.publishRequestId);
|
470
|
+
}
|
471
|
+
if (message.appNameAndVersionNumber !== undefined) {
|
472
|
+
writer.uint32(26).string(message.appNameAndVersionNumber);
|
473
|
+
}
|
474
|
+
return writer;
|
475
|
+
},
|
476
|
+
decode(input, length) {
|
477
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
478
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
479
|
+
const message = createBaseAppPRGetRequest();
|
480
|
+
while (reader.pos < end) {
|
481
|
+
const tag = reader.uint32();
|
482
|
+
switch (tag >>> 3) {
|
483
|
+
case 1:
|
484
|
+
if (tag !== 10) {
|
485
|
+
break;
|
486
|
+
}
|
487
|
+
message.appVersionId = reader.string();
|
488
|
+
continue;
|
489
|
+
case 2:
|
490
|
+
if (tag !== 18) {
|
491
|
+
break;
|
492
|
+
}
|
493
|
+
message.publishRequestId = reader.string();
|
494
|
+
continue;
|
495
|
+
case 3:
|
496
|
+
if (tag !== 26) {
|
497
|
+
break;
|
498
|
+
}
|
499
|
+
message.appNameAndVersionNumber = reader.string();
|
500
|
+
continue;
|
501
|
+
}
|
502
|
+
if ((tag & 7) === 4 || tag === 0) {
|
503
|
+
break;
|
504
|
+
}
|
505
|
+
reader.skipType(tag & 7);
|
506
|
+
}
|
507
|
+
return message;
|
508
|
+
},
|
509
|
+
fromJSON(object) {
|
510
|
+
return {
|
511
|
+
appVersionId: isSet(object.appVersionId) ? globalThis.String(object.appVersionId) : undefined,
|
512
|
+
publishRequestId: isSet(object.publishRequestId) ? globalThis.String(object.publishRequestId) : undefined,
|
513
|
+
appNameAndVersionNumber: isSet(object.appNameAndVersionNumber)
|
514
|
+
? globalThis.String(object.appNameAndVersionNumber)
|
515
|
+
: undefined,
|
516
|
+
};
|
517
|
+
},
|
518
|
+
toJSON(message) {
|
519
|
+
const obj = {};
|
520
|
+
if (message.appVersionId !== undefined) {
|
521
|
+
obj.appVersionId = message.appVersionId;
|
522
|
+
}
|
523
|
+
if (message.publishRequestId !== undefined) {
|
524
|
+
obj.publishRequestId = message.publishRequestId;
|
525
|
+
}
|
526
|
+
if (message.appNameAndVersionNumber !== undefined) {
|
527
|
+
obj.appNameAndVersionNumber = message.appNameAndVersionNumber;
|
528
|
+
}
|
529
|
+
return obj;
|
530
|
+
},
|
531
|
+
create(base) {
|
532
|
+
return AppPRGetRequest.fromPartial(base ?? {});
|
533
|
+
},
|
534
|
+
fromPartial(object) {
|
535
|
+
const message = createBaseAppPRGetRequest();
|
536
|
+
message.appVersionId = object.appVersionId ?? undefined;
|
537
|
+
message.publishRequestId = object.publishRequestId ?? undefined;
|
538
|
+
message.appNameAndVersionNumber = object.appNameAndVersionNumber ?? undefined;
|
539
|
+
return message;
|
540
|
+
},
|
541
|
+
};
|
542
|
+
messageTypeRegistry.set(AppPRGetRequest.$type, AppPRGetRequest);
|
543
|
+
function createBaseAppPRGetByAppRequest() {
|
544
|
+
return { appName: undefined, appId: undefined, pagination: undefined, sort: undefined };
|
545
|
+
}
|
546
|
+
export const AppPRGetByAppRequest = {
|
547
|
+
$type: "devvit.dev_portal.app_publish_request.AppPRGetByAppRequest",
|
548
|
+
encode(message, writer = _m0.Writer.create()) {
|
549
|
+
if (message.appName !== undefined) {
|
550
|
+
writer.uint32(10).string(message.appName);
|
551
|
+
}
|
552
|
+
if (message.appId !== undefined) {
|
553
|
+
writer.uint32(18).string(message.appId);
|
554
|
+
}
|
555
|
+
if (message.pagination !== undefined) {
|
556
|
+
AppPRGetByAppRequest_PaginationInfo.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
557
|
+
}
|
558
|
+
if (message.sort !== undefined) {
|
559
|
+
AppPRGetByAppRequest_SortInfo.encode(message.sort, writer.uint32(34).fork()).ldelim();
|
560
|
+
}
|
561
|
+
return writer;
|
562
|
+
},
|
563
|
+
decode(input, length) {
|
564
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
565
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
566
|
+
const message = createBaseAppPRGetByAppRequest();
|
567
|
+
while (reader.pos < end) {
|
568
|
+
const tag = reader.uint32();
|
569
|
+
switch (tag >>> 3) {
|
570
|
+
case 1:
|
571
|
+
if (tag !== 10) {
|
572
|
+
break;
|
573
|
+
}
|
574
|
+
message.appName = reader.string();
|
575
|
+
continue;
|
576
|
+
case 2:
|
577
|
+
if (tag !== 18) {
|
578
|
+
break;
|
579
|
+
}
|
580
|
+
message.appId = reader.string();
|
581
|
+
continue;
|
582
|
+
case 3:
|
583
|
+
if (tag !== 26) {
|
584
|
+
break;
|
585
|
+
}
|
586
|
+
message.pagination = AppPRGetByAppRequest_PaginationInfo.decode(reader, reader.uint32());
|
587
|
+
continue;
|
588
|
+
case 4:
|
589
|
+
if (tag !== 34) {
|
590
|
+
break;
|
591
|
+
}
|
592
|
+
message.sort = AppPRGetByAppRequest_SortInfo.decode(reader, reader.uint32());
|
593
|
+
continue;
|
594
|
+
}
|
595
|
+
if ((tag & 7) === 4 || tag === 0) {
|
596
|
+
break;
|
597
|
+
}
|
598
|
+
reader.skipType(tag & 7);
|
599
|
+
}
|
600
|
+
return message;
|
601
|
+
},
|
602
|
+
fromJSON(object) {
|
603
|
+
return {
|
604
|
+
appName: isSet(object.appName) ? globalThis.String(object.appName) : undefined,
|
605
|
+
appId: isSet(object.appId) ? globalThis.String(object.appId) : undefined,
|
606
|
+
pagination: isSet(object.pagination)
|
607
|
+
? AppPRGetByAppRequest_PaginationInfo.fromJSON(object.pagination)
|
608
|
+
: undefined,
|
609
|
+
sort: isSet(object.sort) ? AppPRGetByAppRequest_SortInfo.fromJSON(object.sort) : undefined,
|
610
|
+
};
|
611
|
+
},
|
612
|
+
toJSON(message) {
|
613
|
+
const obj = {};
|
614
|
+
if (message.appName !== undefined) {
|
615
|
+
obj.appName = message.appName;
|
616
|
+
}
|
617
|
+
if (message.appId !== undefined) {
|
618
|
+
obj.appId = message.appId;
|
619
|
+
}
|
620
|
+
if (message.pagination !== undefined) {
|
621
|
+
obj.pagination = AppPRGetByAppRequest_PaginationInfo.toJSON(message.pagination);
|
622
|
+
}
|
623
|
+
if (message.sort !== undefined) {
|
624
|
+
obj.sort = AppPRGetByAppRequest_SortInfo.toJSON(message.sort);
|
625
|
+
}
|
626
|
+
return obj;
|
627
|
+
},
|
628
|
+
create(base) {
|
629
|
+
return AppPRGetByAppRequest.fromPartial(base ?? {});
|
630
|
+
},
|
631
|
+
fromPartial(object) {
|
632
|
+
const message = createBaseAppPRGetByAppRequest();
|
633
|
+
message.appName = object.appName ?? undefined;
|
634
|
+
message.appId = object.appId ?? undefined;
|
635
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
636
|
+
? AppPRGetByAppRequest_PaginationInfo.fromPartial(object.pagination)
|
637
|
+
: undefined;
|
638
|
+
message.sort = (object.sort !== undefined && object.sort !== null)
|
639
|
+
? AppPRGetByAppRequest_SortInfo.fromPartial(object.sort)
|
640
|
+
: undefined;
|
641
|
+
return message;
|
642
|
+
},
|
643
|
+
};
|
644
|
+
messageTypeRegistry.set(AppPRGetByAppRequest.$type, AppPRGetByAppRequest);
|
645
|
+
function createBaseAppPRGetByAppRequest_PaginationInfo() {
|
646
|
+
return { page: 0, pageSize: 0 };
|
647
|
+
}
|
648
|
+
export const AppPRGetByAppRequest_PaginationInfo = {
|
649
|
+
$type: "devvit.dev_portal.app_publish_request.AppPRGetByAppRequest.PaginationInfo",
|
650
|
+
encode(message, writer = _m0.Writer.create()) {
|
651
|
+
if (message.page !== 0) {
|
652
|
+
writer.uint32(8).int32(message.page);
|
653
|
+
}
|
654
|
+
if (message.pageSize !== 0) {
|
655
|
+
writer.uint32(16).int32(message.pageSize);
|
656
|
+
}
|
657
|
+
return writer;
|
658
|
+
},
|
659
|
+
decode(input, length) {
|
660
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
661
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
662
|
+
const message = createBaseAppPRGetByAppRequest_PaginationInfo();
|
663
|
+
while (reader.pos < end) {
|
664
|
+
const tag = reader.uint32();
|
665
|
+
switch (tag >>> 3) {
|
666
|
+
case 1:
|
667
|
+
if (tag !== 8) {
|
668
|
+
break;
|
669
|
+
}
|
670
|
+
message.page = reader.int32();
|
671
|
+
continue;
|
672
|
+
case 2:
|
673
|
+
if (tag !== 16) {
|
674
|
+
break;
|
675
|
+
}
|
676
|
+
message.pageSize = reader.int32();
|
677
|
+
continue;
|
678
|
+
}
|
679
|
+
if ((tag & 7) === 4 || tag === 0) {
|
680
|
+
break;
|
681
|
+
}
|
682
|
+
reader.skipType(tag & 7);
|
683
|
+
}
|
684
|
+
return message;
|
685
|
+
},
|
686
|
+
fromJSON(object) {
|
687
|
+
return {
|
688
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
689
|
+
pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
|
690
|
+
};
|
691
|
+
},
|
692
|
+
toJSON(message) {
|
693
|
+
const obj = {};
|
694
|
+
if (message.page !== 0) {
|
695
|
+
obj.page = Math.round(message.page);
|
696
|
+
}
|
697
|
+
if (message.pageSize !== 0) {
|
698
|
+
obj.pageSize = Math.round(message.pageSize);
|
699
|
+
}
|
700
|
+
return obj;
|
701
|
+
},
|
702
|
+
create(base) {
|
703
|
+
return AppPRGetByAppRequest_PaginationInfo.fromPartial(base ?? {});
|
704
|
+
},
|
705
|
+
fromPartial(object) {
|
706
|
+
const message = createBaseAppPRGetByAppRequest_PaginationInfo();
|
707
|
+
message.page = object.page ?? 0;
|
708
|
+
message.pageSize = object.pageSize ?? 0;
|
709
|
+
return message;
|
710
|
+
},
|
711
|
+
};
|
712
|
+
messageTypeRegistry.set(AppPRGetByAppRequest_PaginationInfo.$type, AppPRGetByAppRequest_PaginationInfo);
|
713
|
+
function createBaseAppPRGetByAppRequest_SortInfo() {
|
714
|
+
return { field: "", asc: false };
|
715
|
+
}
|
716
|
+
export const AppPRGetByAppRequest_SortInfo = {
|
717
|
+
$type: "devvit.dev_portal.app_publish_request.AppPRGetByAppRequest.SortInfo",
|
718
|
+
encode(message, writer = _m0.Writer.create()) {
|
719
|
+
if (message.field !== "") {
|
720
|
+
writer.uint32(10).string(message.field);
|
721
|
+
}
|
722
|
+
if (message.asc !== false) {
|
723
|
+
writer.uint32(16).bool(message.asc);
|
724
|
+
}
|
725
|
+
return writer;
|
726
|
+
},
|
727
|
+
decode(input, length) {
|
728
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
729
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
730
|
+
const message = createBaseAppPRGetByAppRequest_SortInfo();
|
731
|
+
while (reader.pos < end) {
|
732
|
+
const tag = reader.uint32();
|
733
|
+
switch (tag >>> 3) {
|
734
|
+
case 1:
|
735
|
+
if (tag !== 10) {
|
736
|
+
break;
|
737
|
+
}
|
738
|
+
message.field = reader.string();
|
739
|
+
continue;
|
740
|
+
case 2:
|
741
|
+
if (tag !== 16) {
|
742
|
+
break;
|
743
|
+
}
|
744
|
+
message.asc = reader.bool();
|
745
|
+
continue;
|
746
|
+
}
|
747
|
+
if ((tag & 7) === 4 || tag === 0) {
|
748
|
+
break;
|
749
|
+
}
|
750
|
+
reader.skipType(tag & 7);
|
751
|
+
}
|
752
|
+
return message;
|
753
|
+
},
|
754
|
+
fromJSON(object) {
|
755
|
+
return {
|
756
|
+
field: isSet(object.field) ? globalThis.String(object.field) : "",
|
757
|
+
asc: isSet(object.asc) ? globalThis.Boolean(object.asc) : false,
|
758
|
+
};
|
759
|
+
},
|
760
|
+
toJSON(message) {
|
761
|
+
const obj = {};
|
762
|
+
if (message.field !== "") {
|
763
|
+
obj.field = message.field;
|
764
|
+
}
|
765
|
+
if (message.asc !== false) {
|
766
|
+
obj.asc = message.asc;
|
767
|
+
}
|
768
|
+
return obj;
|
769
|
+
},
|
770
|
+
create(base) {
|
771
|
+
return AppPRGetByAppRequest_SortInfo.fromPartial(base ?? {});
|
772
|
+
},
|
773
|
+
fromPartial(object) {
|
774
|
+
const message = createBaseAppPRGetByAppRequest_SortInfo();
|
775
|
+
message.field = object.field ?? "";
|
776
|
+
message.asc = object.asc ?? false;
|
777
|
+
return message;
|
778
|
+
},
|
779
|
+
};
|
780
|
+
messageTypeRegistry.set(AppPRGetByAppRequest_SortInfo.$type, AppPRGetByAppRequest_SortInfo);
|
781
|
+
function toTimestamp(date) {
|
782
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
783
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
784
|
+
return { seconds, nanos };
|
785
|
+
}
|
786
|
+
function fromTimestamp(t) {
|
787
|
+
let millis = (t.seconds || 0) * 1000;
|
788
|
+
millis += (t.nanos || 0) / 1000000;
|
789
|
+
return new globalThis.Date(millis);
|
790
|
+
}
|
791
|
+
function fromJsonTimestamp(o) {
|
792
|
+
if (o instanceof globalThis.Date) {
|
793
|
+
return o;
|
794
|
+
}
|
795
|
+
else if (typeof o === "string") {
|
796
|
+
return new globalThis.Date(o);
|
797
|
+
}
|
798
|
+
else {
|
799
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
800
|
+
}
|
801
|
+
}
|
802
|
+
function isSet(value) {
|
803
|
+
return value !== null && value !== undefined;
|
804
|
+
}
|