theragist-ts 1.0.136 → 1.0.138

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.
@@ -3296,6 +3296,7 @@ export interface AdminBadge {
3296
3296
  userType: string;
3297
3297
  season: AdminSeasonInfo | undefined;
3298
3298
  category: AdminCategoryInfo | undefined;
3299
+ imageUrl: string;
3299
3300
  }
3300
3301
  export interface AdminSeasonInfo {
3301
3302
  id: string;
@@ -3355,6 +3356,7 @@ export interface AdminCreateBadgeRequest {
3355
3356
  setIsActive: boolean;
3356
3357
  seasonId: string;
3357
3358
  userType: string;
3359
+ imageUrl: string;
3358
3360
  }
3359
3361
  export interface AdminUpdateBadgeRequest {
3360
3362
  id: string;
@@ -3372,6 +3374,7 @@ export interface AdminUpdateBadgeRequest {
3372
3374
  setIsActive: boolean;
3373
3375
  seasonId: string;
3374
3376
  userType: string;
3377
+ imageUrl: string;
3375
3378
  }
3376
3379
  export interface AdminBadgeResponse {
3377
3380
  id: string;
@@ -3685,6 +3688,9 @@ export interface AdminBadgeFullDetails {
3685
3688
  requirements: AdminBadgeRequirementItem[];
3686
3689
  rewards: AdminBadgeRewardItem[];
3687
3690
  triggers: AdminBadgeTriggerItem[];
3691
+ categoryAware: boolean;
3692
+ seasonAware: boolean;
3693
+ imageUrl: string;
3688
3694
  }
3689
3695
  export interface AdminMoodType {
3690
3696
  id: string;
@@ -54688,6 +54688,7 @@ function createBaseAdminBadge() {
54688
54688
  userType: "",
54689
54689
  season: undefined,
54690
54690
  category: undefined,
54691
+ imageUrl: "",
54691
54692
  };
54692
54693
  }
54693
54694
  exports.AdminBadge = {
@@ -54737,6 +54738,9 @@ exports.AdminBadge = {
54737
54738
  if (message.category !== undefined) {
54738
54739
  exports.AdminCategoryInfo.encode(message.category, writer.uint32(122).fork()).join();
54739
54740
  }
54741
+ if (message.imageUrl !== "") {
54742
+ writer.uint32(130).string(message.imageUrl);
54743
+ }
54740
54744
  return writer;
54741
54745
  },
54742
54746
  decode(input, length) {
@@ -54851,6 +54855,13 @@ exports.AdminBadge = {
54851
54855
  message.category = exports.AdminCategoryInfo.decode(reader, reader.uint32());
54852
54856
  continue;
54853
54857
  }
54858
+ case 16: {
54859
+ if (tag !== 130) {
54860
+ break;
54861
+ }
54862
+ message.imageUrl = reader.string();
54863
+ continue;
54864
+ }
54854
54865
  }
54855
54866
  if ((tag & 7) === 4 || tag === 0) {
54856
54867
  break;
@@ -54880,6 +54891,7 @@ exports.AdminBadge = {
54880
54891
  userType: isSet(object.userType) ? globalThis.String(object.userType) : "",
54881
54892
  season: isSet(object.season) ? exports.AdminSeasonInfo.fromJSON(object.season) : undefined,
54882
54893
  category: isSet(object.category) ? exports.AdminCategoryInfo.fromJSON(object.category) : undefined,
54894
+ imageUrl: isSet(object.imageUrl) ? globalThis.String(object.imageUrl) : "",
54883
54895
  };
54884
54896
  },
54885
54897
  toJSON(message) {
@@ -54930,13 +54942,16 @@ exports.AdminBadge = {
54930
54942
  if (message.category !== undefined) {
54931
54943
  obj.category = exports.AdminCategoryInfo.toJSON(message.category);
54932
54944
  }
54945
+ if (message.imageUrl !== "") {
54946
+ obj.imageUrl = message.imageUrl;
54947
+ }
54933
54948
  return obj;
54934
54949
  },
54935
54950
  create(base) {
54936
54951
  return exports.AdminBadge.fromPartial(base !== null && base !== void 0 ? base : {});
54937
54952
  },
54938
54953
  fromPartial(object) {
54939
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
54954
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
54940
54955
  const message = createBaseAdminBadge();
54941
54956
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
54942
54957
  message.badgeLevel = (_b = object.badgeLevel) !== null && _b !== void 0 ? _b : 0;
@@ -54957,6 +54972,7 @@ exports.AdminBadge = {
54957
54972
  message.category = (object.category !== undefined && object.category !== null)
54958
54973
  ? exports.AdminCategoryInfo.fromPartial(object.category)
54959
54974
  : undefined;
54975
+ message.imageUrl = (_p = object.imageUrl) !== null && _p !== void 0 ? _p : "";
54960
54976
  return message;
54961
54977
  },
54962
54978
  };
@@ -55653,6 +55669,7 @@ function createBaseAdminCreateBadgeRequest() {
55653
55669
  setIsActive: false,
55654
55670
  seasonId: "",
55655
55671
  userType: "",
55672
+ imageUrl: "",
55656
55673
  };
55657
55674
  }
55658
55675
  exports.AdminCreateBadgeRequest = {
@@ -55708,6 +55725,9 @@ exports.AdminCreateBadgeRequest = {
55708
55725
  if (message.userType !== "") {
55709
55726
  writer.uint32(138).string(message.userType);
55710
55727
  }
55728
+ if (message.imageUrl !== "") {
55729
+ writer.uint32(146).string(message.imageUrl);
55730
+ }
55711
55731
  return writer;
55712
55732
  },
55713
55733
  decode(input, length) {
@@ -55836,6 +55856,13 @@ exports.AdminCreateBadgeRequest = {
55836
55856
  message.userType = reader.string();
55837
55857
  continue;
55838
55858
  }
55859
+ case 18: {
55860
+ if (tag !== 146) {
55861
+ break;
55862
+ }
55863
+ message.imageUrl = reader.string();
55864
+ continue;
55865
+ }
55839
55866
  }
55840
55867
  if ((tag & 7) === 4 || tag === 0) {
55841
55868
  break;
@@ -55863,6 +55890,7 @@ exports.AdminCreateBadgeRequest = {
55863
55890
  setIsActive: isSet(object.setIsActive) ? globalThis.Boolean(object.setIsActive) : false,
55864
55891
  seasonId: isSet(object.seasonId) ? globalThis.String(object.seasonId) : "",
55865
55892
  userType: isSet(object.userType) ? globalThis.String(object.userType) : "",
55893
+ imageUrl: isSet(object.imageUrl) ? globalThis.String(object.imageUrl) : "",
55866
55894
  };
55867
55895
  },
55868
55896
  toJSON(message) {
@@ -55919,13 +55947,16 @@ exports.AdminCreateBadgeRequest = {
55919
55947
  if (message.userType !== "") {
55920
55948
  obj.userType = message.userType;
55921
55949
  }
55950
+ if (message.imageUrl !== "") {
55951
+ obj.imageUrl = message.imageUrl;
55952
+ }
55922
55953
  return obj;
55923
55954
  },
55924
55955
  create(base) {
55925
55956
  return exports.AdminCreateBadgeRequest.fromPartial(base !== null && base !== void 0 ? base : {});
55926
55957
  },
55927
55958
  fromPartial(object) {
55928
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
55959
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
55929
55960
  const message = createBaseAdminCreateBadgeRequest();
55930
55961
  message.badgeLevel = (_a = object.badgeLevel) !== null && _a !== void 0 ? _a : 0;
55931
55962
  message.badgeType = (_b = object.badgeType) !== null && _b !== void 0 ? _b : "";
@@ -55944,6 +55975,7 @@ exports.AdminCreateBadgeRequest = {
55944
55975
  message.setIsActive = (_q = object.setIsActive) !== null && _q !== void 0 ? _q : false;
55945
55976
  message.seasonId = (_r = object.seasonId) !== null && _r !== void 0 ? _r : "";
55946
55977
  message.userType = (_s = object.userType) !== null && _s !== void 0 ? _s : "";
55978
+ message.imageUrl = (_t = object.imageUrl) !== null && _t !== void 0 ? _t : "";
55947
55979
  return message;
55948
55980
  },
55949
55981
  };
@@ -55964,6 +55996,7 @@ function createBaseAdminUpdateBadgeRequest() {
55964
55996
  setIsActive: false,
55965
55997
  seasonId: "",
55966
55998
  userType: "",
55999
+ imageUrl: "",
55967
56000
  };
55968
56001
  }
55969
56002
  exports.AdminUpdateBadgeRequest = {
@@ -56013,6 +56046,9 @@ exports.AdminUpdateBadgeRequest = {
56013
56046
  if (message.userType !== "") {
56014
56047
  writer.uint32(122).string(message.userType);
56015
56048
  }
56049
+ if (message.imageUrl !== "") {
56050
+ writer.uint32(130).string(message.imageUrl);
56051
+ }
56016
56052
  return writer;
56017
56053
  },
56018
56054
  decode(input, length) {
@@ -56127,6 +56163,13 @@ exports.AdminUpdateBadgeRequest = {
56127
56163
  message.userType = reader.string();
56128
56164
  continue;
56129
56165
  }
56166
+ case 16: {
56167
+ if (tag !== 130) {
56168
+ break;
56169
+ }
56170
+ message.imageUrl = reader.string();
56171
+ continue;
56172
+ }
56130
56173
  }
56131
56174
  if ((tag & 7) === 4 || tag === 0) {
56132
56175
  break;
@@ -56152,6 +56195,7 @@ exports.AdminUpdateBadgeRequest = {
56152
56195
  setIsActive: isSet(object.setIsActive) ? globalThis.Boolean(object.setIsActive) : false,
56153
56196
  seasonId: isSet(object.seasonId) ? globalThis.String(object.seasonId) : "",
56154
56197
  userType: isSet(object.userType) ? globalThis.String(object.userType) : "",
56198
+ imageUrl: isSet(object.imageUrl) ? globalThis.String(object.imageUrl) : "",
56155
56199
  };
56156
56200
  },
56157
56201
  toJSON(message) {
@@ -56202,13 +56246,16 @@ exports.AdminUpdateBadgeRequest = {
56202
56246
  if (message.userType !== "") {
56203
56247
  obj.userType = message.userType;
56204
56248
  }
56249
+ if (message.imageUrl !== "") {
56250
+ obj.imageUrl = message.imageUrl;
56251
+ }
56205
56252
  return obj;
56206
56253
  },
56207
56254
  create(base) {
56208
56255
  return exports.AdminUpdateBadgeRequest.fromPartial(base !== null && base !== void 0 ? base : {});
56209
56256
  },
56210
56257
  fromPartial(object) {
56211
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
56258
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
56212
56259
  const message = createBaseAdminUpdateBadgeRequest();
56213
56260
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
56214
56261
  message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
@@ -56225,6 +56272,7 @@ exports.AdminUpdateBadgeRequest = {
56225
56272
  message.setIsActive = (_o = object.setIsActive) !== null && _o !== void 0 ? _o : false;
56226
56273
  message.seasonId = (_p = object.seasonId) !== null && _p !== void 0 ? _p : "";
56227
56274
  message.userType = (_q = object.userType) !== null && _q !== void 0 ? _q : "";
56275
+ message.imageUrl = (_r = object.imageUrl) !== null && _r !== void 0 ? _r : "";
56228
56276
  return message;
56229
56277
  },
56230
56278
  };
@@ -61132,6 +61180,9 @@ function createBaseAdminBadgeFullDetails() {
61132
61180
  requirements: [],
61133
61181
  rewards: [],
61134
61182
  triggers: [],
61183
+ categoryAware: false,
61184
+ seasonAware: false,
61185
+ imageUrl: "",
61135
61186
  };
61136
61187
  }
61137
61188
  exports.AdminBadgeFullDetails = {
@@ -61181,6 +61232,15 @@ exports.AdminBadgeFullDetails = {
61181
61232
  for (const v of message.triggers) {
61182
61233
  exports.AdminBadgeTriggerItem.encode(v, writer.uint32(122).fork()).join();
61183
61234
  }
61235
+ if (message.categoryAware !== false) {
61236
+ writer.uint32(128).bool(message.categoryAware);
61237
+ }
61238
+ if (message.seasonAware !== false) {
61239
+ writer.uint32(136).bool(message.seasonAware);
61240
+ }
61241
+ if (message.imageUrl !== "") {
61242
+ writer.uint32(146).string(message.imageUrl);
61243
+ }
61184
61244
  return writer;
61185
61245
  },
61186
61246
  decode(input, length) {
@@ -61295,6 +61355,27 @@ exports.AdminBadgeFullDetails = {
61295
61355
  message.triggers.push(exports.AdminBadgeTriggerItem.decode(reader, reader.uint32()));
61296
61356
  continue;
61297
61357
  }
61358
+ case 16: {
61359
+ if (tag !== 128) {
61360
+ break;
61361
+ }
61362
+ message.categoryAware = reader.bool();
61363
+ continue;
61364
+ }
61365
+ case 17: {
61366
+ if (tag !== 136) {
61367
+ break;
61368
+ }
61369
+ message.seasonAware = reader.bool();
61370
+ continue;
61371
+ }
61372
+ case 18: {
61373
+ if (tag !== 146) {
61374
+ break;
61375
+ }
61376
+ message.imageUrl = reader.string();
61377
+ continue;
61378
+ }
61298
61379
  }
61299
61380
  if ((tag & 7) === 4 || tag === 0) {
61300
61381
  break;
@@ -61326,6 +61407,9 @@ exports.AdminBadgeFullDetails = {
61326
61407
  triggers: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.triggers)
61327
61408
  ? object.triggers.map((e) => exports.AdminBadgeTriggerItem.fromJSON(e))
61328
61409
  : [],
61410
+ categoryAware: isSet(object.categoryAware) ? globalThis.Boolean(object.categoryAware) : false,
61411
+ seasonAware: isSet(object.seasonAware) ? globalThis.Boolean(object.seasonAware) : false,
61412
+ imageUrl: isSet(object.imageUrl) ? globalThis.String(object.imageUrl) : "",
61329
61413
  };
61330
61414
  },
61331
61415
  toJSON(message) {
@@ -61376,13 +61460,22 @@ exports.AdminBadgeFullDetails = {
61376
61460
  if ((_c = message.triggers) === null || _c === void 0 ? void 0 : _c.length) {
61377
61461
  obj.triggers = message.triggers.map((e) => exports.AdminBadgeTriggerItem.toJSON(e));
61378
61462
  }
61463
+ if (message.categoryAware !== false) {
61464
+ obj.categoryAware = message.categoryAware;
61465
+ }
61466
+ if (message.seasonAware !== false) {
61467
+ obj.seasonAware = message.seasonAware;
61468
+ }
61469
+ if (message.imageUrl !== "") {
61470
+ obj.imageUrl = message.imageUrl;
61471
+ }
61379
61472
  return obj;
61380
61473
  },
61381
61474
  create(base) {
61382
61475
  return exports.AdminBadgeFullDetails.fromPartial(base !== null && base !== void 0 ? base : {});
61383
61476
  },
61384
61477
  fromPartial(object) {
61385
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
61478
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
61386
61479
  const message = createBaseAdminBadgeFullDetails();
61387
61480
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
61388
61481
  message.badgeLevel = (_b = object.badgeLevel) !== null && _b !== void 0 ? _b : 0;
@@ -61401,6 +61494,9 @@ exports.AdminBadgeFullDetails = {
61401
61494
  message.requirements = ((_m = object.requirements) === null || _m === void 0 ? void 0 : _m.map((e) => exports.AdminBadgeRequirementItem.fromPartial(e))) || [];
61402
61495
  message.rewards = ((_o = object.rewards) === null || _o === void 0 ? void 0 : _o.map((e) => exports.AdminBadgeRewardItem.fromPartial(e))) || [];
61403
61496
  message.triggers = ((_p = object.triggers) === null || _p === void 0 ? void 0 : _p.map((e) => exports.AdminBadgeTriggerItem.fromPartial(e))) || [];
61497
+ message.categoryAware = (_q = object.categoryAware) !== null && _q !== void 0 ? _q : false;
61498
+ message.seasonAware = (_r = object.seasonAware) !== null && _r !== void 0 ? _r : false;
61499
+ message.imageUrl = (_s = object.imageUrl) !== null && _s !== void 0 ? _s : "";
61404
61500
  return message;
61405
61501
  },
61406
61502
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theragist-ts",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "description": "TypeScript types and interfaces for Theragist protobuf definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",