@devvit/protos 0.11.0-next-2024-07-17-706cbadf4.0 → 0.11.0-next-2024-07-17-3ab17d177.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/package.json +5 -5
  2. package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +33 -9
  3. package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +3 -0
  4. package/schema/devvit/dev_portal/dev_portal.proto +1 -1
  5. package/schema/devvit/dev_portal/nutrition/nutrition.proto +2 -0
  6. package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +64 -33
  7. package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts.map +1 -1
  8. package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +204 -69
  9. package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +3 -0
  10. package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts.map +1 -1
  11. package/types/devvit/dev_portal/dev_portal.d.ts +34 -20
  12. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  13. package/types/devvit/dev_portal/dev_portal.js +8 -8
  14. package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +4 -4
  15. package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
  16. package/types/devvit/dev_portal/dev_portal.twirp-client.js +9 -9
  17. package/types/devvit/dev_portal/dev_portal.twirp.d.ts +3 -3
  18. package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
  19. package/types/devvit/dev_portal/dev_portal.twirp.js +17 -17
  20. package/types/devvit/dev_portal/nutrition/nutrition.d.ts +2 -0
  21. package/types/devvit/dev_portal/nutrition/nutrition.d.ts.map +1 -1
  22. package/types/devvit/dev_portal/nutrition/nutrition.js +7 -0
@@ -233,7 +233,7 @@ export const FullPublishRequestInfo = {
233
233
  };
234
234
  messageTypeRegistry.set(FullPublishRequestInfo.$type, FullPublishRequestInfo);
235
235
  function createBaseMultiplePublishRequestInfos() {
236
- return { requests: [] };
236
+ return { requests: [], pagination: undefined };
237
237
  }
238
238
  export const MultiplePublishRequestInfos = {
239
239
  $type: "devvit.dev_portal.app_publish_request.MultiplePublishRequestInfos",
@@ -241,6 +241,9 @@ export const MultiplePublishRequestInfos = {
241
241
  for (const v of message.requests) {
242
242
  FullPublishRequestInfo.encode(v, writer.uint32(10).fork()).ldelim();
243
243
  }
244
+ if (message.pagination !== undefined) {
245
+ MultiplePublishRequestInfos_PageInfo.encode(message.pagination, writer.uint32(18).fork()).ldelim();
246
+ }
244
247
  return writer;
245
248
  },
246
249
  decode(input, length) {
@@ -256,6 +259,12 @@ export const MultiplePublishRequestInfos = {
256
259
  }
257
260
  message.requests.push(FullPublishRequestInfo.decode(reader, reader.uint32()));
258
261
  continue;
262
+ case 2:
263
+ if (tag !== 18) {
264
+ break;
265
+ }
266
+ message.pagination = MultiplePublishRequestInfos_PageInfo.decode(reader, reader.uint32());
267
+ continue;
259
268
  }
260
269
  if ((tag & 7) === 4 || tag === 0) {
261
270
  break;
@@ -269,6 +278,9 @@ export const MultiplePublishRequestInfos = {
269
278
  requests: globalThis.Array.isArray(object?.requests)
270
279
  ? object.requests.map((e) => FullPublishRequestInfo.fromJSON(e))
271
280
  : [],
281
+ pagination: isSet(object.pagination)
282
+ ? MultiplePublishRequestInfos_PageInfo.fromJSON(object.pagination)
283
+ : undefined,
272
284
  };
273
285
  },
274
286
  toJSON(message) {
@@ -276,6 +288,9 @@ export const MultiplePublishRequestInfos = {
276
288
  if (message.requests?.length) {
277
289
  obj.requests = message.requests.map((e) => FullPublishRequestInfo.toJSON(e));
278
290
  }
291
+ if (message.pagination !== undefined) {
292
+ obj.pagination = MultiplePublishRequestInfos_PageInfo.toJSON(message.pagination);
293
+ }
279
294
  return obj;
280
295
  },
281
296
  create(base) {
@@ -284,12 +299,97 @@ export const MultiplePublishRequestInfos = {
284
299
  fromPartial(object) {
285
300
  const message = createBaseMultiplePublishRequestInfos();
286
301
  message.requests = object.requests?.map((e) => FullPublishRequestInfo.fromPartial(e)) || [];
302
+ message.pagination = (object.pagination !== undefined && object.pagination !== null)
303
+ ? MultiplePublishRequestInfos_PageInfo.fromPartial(object.pagination)
304
+ : undefined;
287
305
  return message;
288
306
  },
289
307
  };
290
308
  messageTypeRegistry.set(MultiplePublishRequestInfos.$type, MultiplePublishRequestInfos);
309
+ function createBaseMultiplePublishRequestInfos_PageInfo() {
310
+ return { page: 0, pageSize: 0, total: 0 };
311
+ }
312
+ export const MultiplePublishRequestInfos_PageInfo = {
313
+ $type: "devvit.dev_portal.app_publish_request.MultiplePublishRequestInfos.PageInfo",
314
+ encode(message, writer = _m0.Writer.create()) {
315
+ if (message.page !== 0) {
316
+ writer.uint32(8).int32(message.page);
317
+ }
318
+ if (message.pageSize !== 0) {
319
+ writer.uint32(16).int32(message.pageSize);
320
+ }
321
+ if (message.total !== 0) {
322
+ writer.uint32(24).int32(message.total);
323
+ }
324
+ return writer;
325
+ },
326
+ decode(input, length) {
327
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
328
+ let end = length === undefined ? reader.len : reader.pos + length;
329
+ const message = createBaseMultiplePublishRequestInfos_PageInfo();
330
+ while (reader.pos < end) {
331
+ const tag = reader.uint32();
332
+ switch (tag >>> 3) {
333
+ case 1:
334
+ if (tag !== 8) {
335
+ break;
336
+ }
337
+ message.page = reader.int32();
338
+ continue;
339
+ case 2:
340
+ if (tag !== 16) {
341
+ break;
342
+ }
343
+ message.pageSize = reader.int32();
344
+ continue;
345
+ case 3:
346
+ if (tag !== 24) {
347
+ break;
348
+ }
349
+ message.total = reader.int32();
350
+ continue;
351
+ }
352
+ if ((tag & 7) === 4 || tag === 0) {
353
+ break;
354
+ }
355
+ reader.skipType(tag & 7);
356
+ }
357
+ return message;
358
+ },
359
+ fromJSON(object) {
360
+ return {
361
+ page: isSet(object.page) ? globalThis.Number(object.page) : 0,
362
+ pageSize: isSet(object.pageSize) ? globalThis.Number(object.pageSize) : 0,
363
+ total: isSet(object.total) ? globalThis.Number(object.total) : 0,
364
+ };
365
+ },
366
+ toJSON(message) {
367
+ const obj = {};
368
+ if (message.page !== 0) {
369
+ obj.page = Math.round(message.page);
370
+ }
371
+ if (message.pageSize !== 0) {
372
+ obj.pageSize = Math.round(message.pageSize);
373
+ }
374
+ if (message.total !== 0) {
375
+ obj.total = Math.round(message.total);
376
+ }
377
+ return obj;
378
+ },
379
+ create(base) {
380
+ return MultiplePublishRequestInfos_PageInfo.fromPartial(base ?? {});
381
+ },
382
+ fromPartial(object) {
383
+ const message = createBaseMultiplePublishRequestInfos_PageInfo();
384
+ message.page = object.page ?? 0;
385
+ message.pageSize = object.pageSize ?? 0;
386
+ message.total = object.total ?? 0;
387
+ return message;
388
+ },
389
+ };
390
+ messageTypeRegistry.set(MultiplePublishRequestInfos_PageInfo.$type, MultiplePublishRequestInfos_PageInfo);
291
391
  function createBaseAppPRCreateRequest() {
292
- return { appVersionId: undefined, appNameAndVersionNumber: undefined };
392
+ return { appVersionId: undefined, appSlugAndVersionNumber: undefined };
293
393
  }
294
394
  export const AppPRCreateRequest = {
295
395
  $type: "devvit.dev_portal.app_publish_request.AppPRCreateRequest",
@@ -297,8 +397,8 @@ export const AppPRCreateRequest = {
297
397
  if (message.appVersionId !== undefined) {
298
398
  writer.uint32(10).string(message.appVersionId);
299
399
  }
300
- if (message.appNameAndVersionNumber !== undefined) {
301
- writer.uint32(18).string(message.appNameAndVersionNumber);
400
+ if (message.appSlugAndVersionNumber !== undefined) {
401
+ writer.uint32(18).string(message.appSlugAndVersionNumber);
302
402
  }
303
403
  return writer;
304
404
  },
@@ -319,7 +419,7 @@ export const AppPRCreateRequest = {
319
419
  if (tag !== 18) {
320
420
  break;
321
421
  }
322
- message.appNameAndVersionNumber = reader.string();
422
+ message.appSlugAndVersionNumber = reader.string();
323
423
  continue;
324
424
  }
325
425
  if ((tag & 7) === 4 || tag === 0) {
@@ -332,8 +432,8 @@ export const AppPRCreateRequest = {
332
432
  fromJSON(object) {
333
433
  return {
334
434
  appVersionId: isSet(object.appVersionId) ? globalThis.String(object.appVersionId) : undefined,
335
- appNameAndVersionNumber: isSet(object.appNameAndVersionNumber)
336
- ? globalThis.String(object.appNameAndVersionNumber)
435
+ appSlugAndVersionNumber: isSet(object.appSlugAndVersionNumber)
436
+ ? globalThis.String(object.appSlugAndVersionNumber)
337
437
  : undefined,
338
438
  };
339
439
  },
@@ -342,8 +442,8 @@ export const AppPRCreateRequest = {
342
442
  if (message.appVersionId !== undefined) {
343
443
  obj.appVersionId = message.appVersionId;
344
444
  }
345
- if (message.appNameAndVersionNumber !== undefined) {
346
- obj.appNameAndVersionNumber = message.appNameAndVersionNumber;
445
+ if (message.appSlugAndVersionNumber !== undefined) {
446
+ obj.appSlugAndVersionNumber = message.appSlugAndVersionNumber;
347
447
  }
348
448
  return obj;
349
449
  },
@@ -353,13 +453,13 @@ export const AppPRCreateRequest = {
353
453
  fromPartial(object) {
354
454
  const message = createBaseAppPRCreateRequest();
355
455
  message.appVersionId = object.appVersionId ?? undefined;
356
- message.appNameAndVersionNumber = object.appNameAndVersionNumber ?? undefined;
456
+ message.appSlugAndVersionNumber = object.appSlugAndVersionNumber ?? undefined;
357
457
  return message;
358
458
  },
359
459
  };
360
460
  messageTypeRegistry.set(AppPRCreateRequest.$type, AppPRCreateRequest);
361
461
  function createBaseAppPRUpdateRequest() {
362
- return { appVersionId: undefined, publishRequestId: undefined, appNameAndVersionNumber: undefined, status: 0 };
462
+ return { appVersionId: undefined, publishRequestId: undefined, appSlugAndVersionNumber: undefined, status: 0 };
363
463
  }
364
464
  export const AppPRUpdateRequest = {
365
465
  $type: "devvit.dev_portal.app_publish_request.AppPRUpdateRequest",
@@ -370,8 +470,8 @@ export const AppPRUpdateRequest = {
370
470
  if (message.publishRequestId !== undefined) {
371
471
  writer.uint32(18).string(message.publishRequestId);
372
472
  }
373
- if (message.appNameAndVersionNumber !== undefined) {
374
- writer.uint32(26).string(message.appNameAndVersionNumber);
473
+ if (message.appSlugAndVersionNumber !== undefined) {
474
+ writer.uint32(26).string(message.appSlugAndVersionNumber);
375
475
  }
376
476
  if (message.status !== 0) {
377
477
  writer.uint32(32).int32(message.status);
@@ -401,7 +501,7 @@ export const AppPRUpdateRequest = {
401
501
  if (tag !== 26) {
402
502
  break;
403
503
  }
404
- message.appNameAndVersionNumber = reader.string();
504
+ message.appSlugAndVersionNumber = reader.string();
405
505
  continue;
406
506
  case 4:
407
507
  if (tag !== 32) {
@@ -421,8 +521,8 @@ export const AppPRUpdateRequest = {
421
521
  return {
422
522
  appVersionId: isSet(object.appVersionId) ? globalThis.String(object.appVersionId) : undefined,
423
523
  publishRequestId: isSet(object.publishRequestId) ? globalThis.String(object.publishRequestId) : undefined,
424
- appNameAndVersionNumber: isSet(object.appNameAndVersionNumber)
425
- ? globalThis.String(object.appNameAndVersionNumber)
524
+ appSlugAndVersionNumber: isSet(object.appSlugAndVersionNumber)
525
+ ? globalThis.String(object.appSlugAndVersionNumber)
426
526
  : undefined,
427
527
  status: isSet(object.status) ? appPublishRequestStatusFromJSON(object.status) : 0,
428
528
  };
@@ -435,8 +535,8 @@ export const AppPRUpdateRequest = {
435
535
  if (message.publishRequestId !== undefined) {
436
536
  obj.publishRequestId = message.publishRequestId;
437
537
  }
438
- if (message.appNameAndVersionNumber !== undefined) {
439
- obj.appNameAndVersionNumber = message.appNameAndVersionNumber;
538
+ if (message.appSlugAndVersionNumber !== undefined) {
539
+ obj.appSlugAndVersionNumber = message.appSlugAndVersionNumber;
440
540
  }
441
541
  if (message.status !== 0) {
442
542
  obj.status = appPublishRequestStatusToJSON(message.status);
@@ -450,14 +550,14 @@ export const AppPRUpdateRequest = {
450
550
  const message = createBaseAppPRUpdateRequest();
451
551
  message.appVersionId = object.appVersionId ?? undefined;
452
552
  message.publishRequestId = object.publishRequestId ?? undefined;
453
- message.appNameAndVersionNumber = object.appNameAndVersionNumber ?? undefined;
553
+ message.appSlugAndVersionNumber = object.appSlugAndVersionNumber ?? undefined;
454
554
  message.status = object.status ?? 0;
455
555
  return message;
456
556
  },
457
557
  };
458
558
  messageTypeRegistry.set(AppPRUpdateRequest.$type, AppPRUpdateRequest);
459
559
  function createBaseAppPRGetRequest() {
460
- return { appVersionId: undefined, publishRequestId: undefined, appNameAndVersionNumber: undefined };
560
+ return { appVersionId: undefined, publishRequestId: undefined, appSlugAndVersionNumber: undefined };
461
561
  }
462
562
  export const AppPRGetRequest = {
463
563
  $type: "devvit.dev_portal.app_publish_request.AppPRGetRequest",
@@ -468,8 +568,8 @@ export const AppPRGetRequest = {
468
568
  if (message.publishRequestId !== undefined) {
469
569
  writer.uint32(18).string(message.publishRequestId);
470
570
  }
471
- if (message.appNameAndVersionNumber !== undefined) {
472
- writer.uint32(26).string(message.appNameAndVersionNumber);
571
+ if (message.appSlugAndVersionNumber !== undefined) {
572
+ writer.uint32(26).string(message.appSlugAndVersionNumber);
473
573
  }
474
574
  return writer;
475
575
  },
@@ -496,7 +596,7 @@ export const AppPRGetRequest = {
496
596
  if (tag !== 26) {
497
597
  break;
498
598
  }
499
- message.appNameAndVersionNumber = reader.string();
599
+ message.appSlugAndVersionNumber = reader.string();
500
600
  continue;
501
601
  }
502
602
  if ((tag & 7) === 4 || tag === 0) {
@@ -510,8 +610,8 @@ export const AppPRGetRequest = {
510
610
  return {
511
611
  appVersionId: isSet(object.appVersionId) ? globalThis.String(object.appVersionId) : undefined,
512
612
  publishRequestId: isSet(object.publishRequestId) ? globalThis.String(object.publishRequestId) : undefined,
513
- appNameAndVersionNumber: isSet(object.appNameAndVersionNumber)
514
- ? globalThis.String(object.appNameAndVersionNumber)
613
+ appSlugAndVersionNumber: isSet(object.appSlugAndVersionNumber)
614
+ ? globalThis.String(object.appSlugAndVersionNumber)
515
615
  : undefined,
516
616
  };
517
617
  },
@@ -523,8 +623,8 @@ export const AppPRGetRequest = {
523
623
  if (message.publishRequestId !== undefined) {
524
624
  obj.publishRequestId = message.publishRequestId;
525
625
  }
526
- if (message.appNameAndVersionNumber !== undefined) {
527
- obj.appNameAndVersionNumber = message.appNameAndVersionNumber;
626
+ if (message.appSlugAndVersionNumber !== undefined) {
627
+ obj.appSlugAndVersionNumber = message.appSlugAndVersionNumber;
528
628
  }
529
629
  return obj;
530
630
  },
@@ -535,35 +635,48 @@ export const AppPRGetRequest = {
535
635
  const message = createBaseAppPRGetRequest();
536
636
  message.appVersionId = object.appVersionId ?? undefined;
537
637
  message.publishRequestId = object.publishRequestId ?? undefined;
538
- message.appNameAndVersionNumber = object.appNameAndVersionNumber ?? undefined;
638
+ message.appSlugAndVersionNumber = object.appSlugAndVersionNumber ?? undefined;
539
639
  return message;
540
640
  },
541
641
  };
542
642
  messageTypeRegistry.set(AppPRGetRequest.$type, AppPRGetRequest);
543
- function createBaseAppPRGetByAppRequest() {
544
- return { appName: undefined, appId: undefined, pagination: undefined, sort: undefined };
643
+ function createBaseAppPRFindManyRequest() {
644
+ return {
645
+ appId: undefined,
646
+ appName: undefined,
647
+ appSlug: undefined,
648
+ searchTerm: undefined,
649
+ pagination: undefined,
650
+ sort: undefined,
651
+ };
545
652
  }
546
- export const AppPRGetByAppRequest = {
547
- $type: "devvit.dev_portal.app_publish_request.AppPRGetByAppRequest",
653
+ export const AppPRFindManyRequest = {
654
+ $type: "devvit.dev_portal.app_publish_request.AppPRFindManyRequest",
548
655
  encode(message, writer = _m0.Writer.create()) {
656
+ if (message.appId !== undefined) {
657
+ writer.uint32(10).string(message.appId);
658
+ }
549
659
  if (message.appName !== undefined) {
550
- writer.uint32(10).string(message.appName);
660
+ writer.uint32(18).string(message.appName);
551
661
  }
552
- if (message.appId !== undefined) {
553
- writer.uint32(18).string(message.appId);
662
+ if (message.appSlug !== undefined) {
663
+ writer.uint32(26).string(message.appSlug);
664
+ }
665
+ if (message.searchTerm !== undefined) {
666
+ writer.uint32(34).string(message.searchTerm);
554
667
  }
555
668
  if (message.pagination !== undefined) {
556
- AppPRGetByAppRequest_PaginationInfo.encode(message.pagination, writer.uint32(26).fork()).ldelim();
669
+ AppPRFindManyRequest_PaginationInfo.encode(message.pagination, writer.uint32(42).fork()).ldelim();
557
670
  }
558
671
  if (message.sort !== undefined) {
559
- AppPRGetByAppRequest_SortInfo.encode(message.sort, writer.uint32(34).fork()).ldelim();
672
+ AppPRFindManyRequest_SortInfo.encode(message.sort, writer.uint32(50).fork()).ldelim();
560
673
  }
561
674
  return writer;
562
675
  },
563
676
  decode(input, length) {
564
677
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
565
678
  let end = length === undefined ? reader.len : reader.pos + length;
566
- const message = createBaseAppPRGetByAppRequest();
679
+ const message = createBaseAppPRFindManyRequest();
567
680
  while (reader.pos < end) {
568
681
  const tag = reader.uint32();
569
682
  switch (tag >>> 3) {
@@ -571,25 +684,37 @@ export const AppPRGetByAppRequest = {
571
684
  if (tag !== 10) {
572
685
  break;
573
686
  }
574
- message.appName = reader.string();
687
+ message.appId = reader.string();
575
688
  continue;
576
689
  case 2:
577
690
  if (tag !== 18) {
578
691
  break;
579
692
  }
580
- message.appId = reader.string();
693
+ message.appName = reader.string();
581
694
  continue;
582
695
  case 3:
583
696
  if (tag !== 26) {
584
697
  break;
585
698
  }
586
- message.pagination = AppPRGetByAppRequest_PaginationInfo.decode(reader, reader.uint32());
699
+ message.appSlug = reader.string();
587
700
  continue;
588
701
  case 4:
589
702
  if (tag !== 34) {
590
703
  break;
591
704
  }
592
- message.sort = AppPRGetByAppRequest_SortInfo.decode(reader, reader.uint32());
705
+ message.searchTerm = reader.string();
706
+ continue;
707
+ case 5:
708
+ if (tag !== 42) {
709
+ break;
710
+ }
711
+ message.pagination = AppPRFindManyRequest_PaginationInfo.decode(reader, reader.uint32());
712
+ continue;
713
+ case 6:
714
+ if (tag !== 50) {
715
+ break;
716
+ }
717
+ message.sort = AppPRFindManyRequest_SortInfo.decode(reader, reader.uint32());
593
718
  continue;
594
719
  }
595
720
  if ((tag & 7) === 4 || tag === 0) {
@@ -601,52 +726,62 @@ export const AppPRGetByAppRequest = {
601
726
  },
602
727
  fromJSON(object) {
603
728
  return {
604
- appName: isSet(object.appName) ? globalThis.String(object.appName) : undefined,
605
729
  appId: isSet(object.appId) ? globalThis.String(object.appId) : undefined,
730
+ appName: isSet(object.appName) ? globalThis.String(object.appName) : undefined,
731
+ appSlug: isSet(object.appSlug) ? globalThis.String(object.appSlug) : undefined,
732
+ searchTerm: isSet(object.searchTerm) ? globalThis.String(object.searchTerm) : undefined,
606
733
  pagination: isSet(object.pagination)
607
- ? AppPRGetByAppRequest_PaginationInfo.fromJSON(object.pagination)
734
+ ? AppPRFindManyRequest_PaginationInfo.fromJSON(object.pagination)
608
735
  : undefined,
609
- sort: isSet(object.sort) ? AppPRGetByAppRequest_SortInfo.fromJSON(object.sort) : undefined,
736
+ sort: isSet(object.sort) ? AppPRFindManyRequest_SortInfo.fromJSON(object.sort) : undefined,
610
737
  };
611
738
  },
612
739
  toJSON(message) {
613
740
  const obj = {};
741
+ if (message.appId !== undefined) {
742
+ obj.appId = message.appId;
743
+ }
614
744
  if (message.appName !== undefined) {
615
745
  obj.appName = message.appName;
616
746
  }
617
- if (message.appId !== undefined) {
618
- obj.appId = message.appId;
747
+ if (message.appSlug !== undefined) {
748
+ obj.appSlug = message.appSlug;
749
+ }
750
+ if (message.searchTerm !== undefined) {
751
+ obj.searchTerm = message.searchTerm;
619
752
  }
620
753
  if (message.pagination !== undefined) {
621
- obj.pagination = AppPRGetByAppRequest_PaginationInfo.toJSON(message.pagination);
754
+ obj.pagination = AppPRFindManyRequest_PaginationInfo.toJSON(message.pagination);
622
755
  }
623
756
  if (message.sort !== undefined) {
624
- obj.sort = AppPRGetByAppRequest_SortInfo.toJSON(message.sort);
757
+ obj.sort = AppPRFindManyRequest_SortInfo.toJSON(message.sort);
625
758
  }
626
759
  return obj;
627
760
  },
628
761
  create(base) {
629
- return AppPRGetByAppRequest.fromPartial(base ?? {});
762
+ return AppPRFindManyRequest.fromPartial(base ?? {});
630
763
  },
631
764
  fromPartial(object) {
632
- const message = createBaseAppPRGetByAppRequest();
633
- message.appName = object.appName ?? undefined;
765
+ const message = createBaseAppPRFindManyRequest();
634
766
  message.appId = object.appId ?? undefined;
767
+ message.appName = object.appName ?? undefined;
768
+ message.appSlug = object.appSlug ?? undefined;
769
+ message.searchTerm = object.searchTerm ?? undefined;
635
770
  message.pagination = (object.pagination !== undefined && object.pagination !== null)
636
- ? AppPRGetByAppRequest_PaginationInfo.fromPartial(object.pagination)
771
+ ? AppPRFindManyRequest_PaginationInfo.fromPartial(object.pagination)
637
772
  : undefined;
638
773
  message.sort = (object.sort !== undefined && object.sort !== null)
639
- ? AppPRGetByAppRequest_SortInfo.fromPartial(object.sort)
774
+ ? AppPRFindManyRequest_SortInfo.fromPartial(object.sort)
640
775
  : undefined;
641
776
  return message;
642
777
  },
643
778
  };
644
- messageTypeRegistry.set(AppPRGetByAppRequest.$type, AppPRGetByAppRequest);
645
- function createBaseAppPRGetByAppRequest_PaginationInfo() {
779
+ messageTypeRegistry.set(AppPRFindManyRequest.$type, AppPRFindManyRequest);
780
+ function createBaseAppPRFindManyRequest_PaginationInfo() {
646
781
  return { page: 0, pageSize: 0 };
647
782
  }
648
- export const AppPRGetByAppRequest_PaginationInfo = {
649
- $type: "devvit.dev_portal.app_publish_request.AppPRGetByAppRequest.PaginationInfo",
783
+ export const AppPRFindManyRequest_PaginationInfo = {
784
+ $type: "devvit.dev_portal.app_publish_request.AppPRFindManyRequest.PaginationInfo",
650
785
  encode(message, writer = _m0.Writer.create()) {
651
786
  if (message.page !== 0) {
652
787
  writer.uint32(8).int32(message.page);
@@ -659,7 +794,7 @@ export const AppPRGetByAppRequest_PaginationInfo = {
659
794
  decode(input, length) {
660
795
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
661
796
  let end = length === undefined ? reader.len : reader.pos + length;
662
- const message = createBaseAppPRGetByAppRequest_PaginationInfo();
797
+ const message = createBaseAppPRFindManyRequest_PaginationInfo();
663
798
  while (reader.pos < end) {
664
799
  const tag = reader.uint32();
665
800
  switch (tag >>> 3) {
@@ -700,21 +835,21 @@ export const AppPRGetByAppRequest_PaginationInfo = {
700
835
  return obj;
701
836
  },
702
837
  create(base) {
703
- return AppPRGetByAppRequest_PaginationInfo.fromPartial(base ?? {});
838
+ return AppPRFindManyRequest_PaginationInfo.fromPartial(base ?? {});
704
839
  },
705
840
  fromPartial(object) {
706
- const message = createBaseAppPRGetByAppRequest_PaginationInfo();
841
+ const message = createBaseAppPRFindManyRequest_PaginationInfo();
707
842
  message.page = object.page ?? 0;
708
843
  message.pageSize = object.pageSize ?? 0;
709
844
  return message;
710
845
  },
711
846
  };
712
- messageTypeRegistry.set(AppPRGetByAppRequest_PaginationInfo.$type, AppPRGetByAppRequest_PaginationInfo);
713
- function createBaseAppPRGetByAppRequest_SortInfo() {
847
+ messageTypeRegistry.set(AppPRFindManyRequest_PaginationInfo.$type, AppPRFindManyRequest_PaginationInfo);
848
+ function createBaseAppPRFindManyRequest_SortInfo() {
714
849
  return { field: "", asc: false };
715
850
  }
716
- export const AppPRGetByAppRequest_SortInfo = {
717
- $type: "devvit.dev_portal.app_publish_request.AppPRGetByAppRequest.SortInfo",
851
+ export const AppPRFindManyRequest_SortInfo = {
852
+ $type: "devvit.dev_portal.app_publish_request.AppPRFindManyRequest.SortInfo",
718
853
  encode(message, writer = _m0.Writer.create()) {
719
854
  if (message.field !== "") {
720
855
  writer.uint32(10).string(message.field);
@@ -727,7 +862,7 @@ export const AppPRGetByAppRequest_SortInfo = {
727
862
  decode(input, length) {
728
863
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
729
864
  let end = length === undefined ? reader.len : reader.pos + length;
730
- const message = createBaseAppPRGetByAppRequest_SortInfo();
865
+ const message = createBaseAppPRFindManyRequest_SortInfo();
731
866
  while (reader.pos < end) {
732
867
  const tag = reader.uint32();
733
868
  switch (tag >>> 3) {
@@ -768,16 +903,16 @@ export const AppPRGetByAppRequest_SortInfo = {
768
903
  return obj;
769
904
  },
770
905
  create(base) {
771
- return AppPRGetByAppRequest_SortInfo.fromPartial(base ?? {});
906
+ return AppPRFindManyRequest_SortInfo.fromPartial(base ?? {});
772
907
  },
773
908
  fromPartial(object) {
774
- const message = createBaseAppPRGetByAppRequest_SortInfo();
909
+ const message = createBaseAppPRFindManyRequest_SortInfo();
775
910
  message.field = object.field ?? "";
776
911
  message.asc = object.asc ?? false;
777
912
  return message;
778
913
  },
779
914
  };
780
- messageTypeRegistry.set(AppPRGetByAppRequest_SortInfo.$type, AppPRGetByAppRequest_SortInfo);
915
+ messageTypeRegistry.set(AppPRFindManyRequest_SortInfo.$type, AppPRFindManyRequest_SortInfo);
781
916
  function toTimestamp(date) {
782
917
  const seconds = Math.trunc(date.getTime() / 1000);
783
918
  const nanos = (date.getTime() % 1000) * 1000000;
@@ -10,14 +10,17 @@ export interface AppPublishRequestNote {
10
10
  createdAt?: Date | undefined;
11
11
  updatedAt?: Date | undefined;
12
12
  author?: Redditor | undefined;
13
+ /** a text of the note */
13
14
  note: string;
14
15
  }
15
16
  export interface AppPRAddNoteRequest {
16
17
  appPublishRequestId: string;
18
+ /** a text of the note */
17
19
  note: string;
18
20
  }
19
21
  export interface AppPRUpdateNoteRequest {
20
22
  appPublishRequestNoteId: string;
23
+ /** a text of the note */
21
24
  note: string;
22
25
  }
23
26
  export declare const AppPublishRequestNote: {
@@ -1 +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,G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AAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
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,EACH,QAAQ,GACR,SAAS,CAAC;IACd,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,eAAO,MAAM,qBAAqB;;oBAGhB,qBAAqB,WAAU,IAAI,MAAM,GAAyB,IAAI,MAAM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