theragist-ts 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/message.d.ts +26 -0
- package/dist/admin/message.js +386 -6
- package/dist/admin/notification.d.ts +1 -5
- package/dist/admin/notification.js +19 -60
- package/dist/admin/service.d.ts +13 -1
- package/dist/admin/service.js +54 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +30 -23
- package/dist/user/message.d.ts +19 -0
- package/dist/user/message.js +283 -4
- package/dist/user/service.d.ts +25 -1
- package/dist/user/service.js +138 -0
- package/package.json +1 -1
package/dist/admin/message.d.ts
CHANGED
|
@@ -862,6 +862,29 @@ export interface AdminCreditUserWalletResponse {
|
|
|
862
862
|
createdAt: string;
|
|
863
863
|
performedBy: string;
|
|
864
864
|
}
|
|
865
|
+
export interface AdminBulkCreditUserWalletRequest {
|
|
866
|
+
userIds: string[];
|
|
867
|
+
amount: number;
|
|
868
|
+
reason: string;
|
|
869
|
+
notifyUser: boolean;
|
|
870
|
+
role: string;
|
|
871
|
+
status: string;
|
|
872
|
+
organization: string;
|
|
873
|
+
search: string;
|
|
874
|
+
}
|
|
875
|
+
export interface AdminBulkCreditUserWalletFailure {
|
|
876
|
+
userId: string;
|
|
877
|
+
error: string;
|
|
878
|
+
}
|
|
879
|
+
export interface AdminBulkCreditUserWalletResponse {
|
|
880
|
+
credits: AdminCreditUserWalletResponse[];
|
|
881
|
+
matchedUsers: number;
|
|
882
|
+
credited: number;
|
|
883
|
+
failed: number;
|
|
884
|
+
failedUserIds: string[];
|
|
885
|
+
failures: AdminBulkCreditUserWalletFailure[];
|
|
886
|
+
performedBy: string;
|
|
887
|
+
}
|
|
865
888
|
export interface UserStatsResponse {
|
|
866
889
|
totalUsers: number;
|
|
867
890
|
activeUsers: number;
|
|
@@ -3155,6 +3178,9 @@ export declare const AdminTestPushNotificationRequest_DataEntry: MessageFns<Admi
|
|
|
3155
3178
|
export declare const AdminTestPushNotificationResponse: MessageFns<AdminTestPushNotificationResponse>;
|
|
3156
3179
|
export declare const AdminCreditUserWalletRequest: MessageFns<AdminCreditUserWalletRequest>;
|
|
3157
3180
|
export declare const AdminCreditUserWalletResponse: MessageFns<AdminCreditUserWalletResponse>;
|
|
3181
|
+
export declare const AdminBulkCreditUserWalletRequest: MessageFns<AdminBulkCreditUserWalletRequest>;
|
|
3182
|
+
export declare const AdminBulkCreditUserWalletFailure: MessageFns<AdminBulkCreditUserWalletFailure>;
|
|
3183
|
+
export declare const AdminBulkCreditUserWalletResponse: MessageFns<AdminBulkCreditUserWalletResponse>;
|
|
3158
3184
|
export declare const UserStatsResponse: MessageFns<UserStatsResponse>;
|
|
3159
3185
|
export declare const AdminTherapist: MessageFns<AdminTherapist>;
|
|
3160
3186
|
export declare const ListAdminTherapistsRequest: MessageFns<ListAdminTherapistsRequest>;
|
package/dist/admin/message.js
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.DeleteAppSettingRequest = exports.UpsertAppSettingsResponse = exports.UpsertAppSettingsRequest = exports.UpsertAppSettingItem = exports.ListAppSettingsResponse = exports.ListAppSettingsRequest = exports.AdminAppSettingItem = exports.ClearAdminPermissionOverridesResponse = exports.ClearAdminPermissionOverridesRequest = exports.SetAdminPermissionOverrideResponse = exports.SetAdminPermissionOverrideRequest = exports.UpdateAdminRolesResponse = exports.UpdateAdminRolesRequest = exports.AdminAccessProfile = exports.AdminPermissionOverride = exports.ListAdminPermissionsResponse = exports.ListAdminPermissionsRequest = exports.AdminPermissionRecord = exports.ListAdminRolesResponse = exports.ListAdminRolesRequest = exports.AdminRoleRecord = exports.ListAuditLogsResponse = exports.ListAuditLogsRequest = exports.AuditLogEntry = exports.RemoveAdminResponse = exports.RemoveAdminRequest = exports.UpdateAdminRoleResponse = exports.UpdateAdminRoleRequest = exports.UpdateAdminPermissionsResponse = exports.UpdateAdminPermissionsRequest = exports.CreateAdminResponse = exports.CreateAdminRequest = exports.ListAdminUsersResponse = exports.ListAdminUsersRequest = exports.AdminUserDetail = exports.AdminUser = exports.AdminPermissions = exports.ModulePermission = exports.AdminProfileResponse = exports.ChangeMyPasswordRequest = exports.AdminLogoutRequest = exports.AdminRefreshTokenResponse = exports.AdminRefreshTokenRequest = exports.AdminResetPasswordRequest = exports.AdminForgotPasswordRequest = exports.AdminLoginResponse = exports.AdminLoginRequest = exports.AdminSession = exports.AdminAuthUser = exports.protobufPackage = void 0;
|
|
9
9
|
exports.SuspendUserResponse = exports.SuspendUserRequest = exports.ManagedUserAccountStats = exports.ManagedUserCommunicationStats = exports.ManagedUserModerationStats = exports.ManagedUserEngagementStats = exports.ManagedUserWalletStats = exports.ManagedUserLiveSessionStats = exports.ManagedUserTherapySessionStats = exports.ManagedUserAuthSessionStats = exports.ManagedUserSessionStats = exports.ManagedUserStats = exports.ManagedUserDetail = exports.AdminUserTherapySessionStats = exports.ListManagedUserTherapySessionsResponse = exports.ManagedUserTherapySessionItem = exports.ListManagedUserTherapySessionsRequest = exports.ManagedUserSessionHistoryStats = exports.ListManagedUserSessionsResponse = exports.ManagedUserSessionHistoryItem = exports.ListManagedUserSessionsRequest = exports.ManagedUserTransactionHistoryStats = exports.ListManagedUserTransactionsResponse = exports.ManagedUserTransaction = exports.ListManagedUserTransactionsRequest = exports.ManagedUserActivityStats = exports.ListManagedUserActivitiesResponse = exports.ManagedUserActivity = exports.ListManagedUserActivitiesRequest = exports.DeleteManagedUserResponse = exports.DeleteManagedUserRequest = exports.UpdateManagedUserAvatarResponse = exports.UpdateManagedUserAvatarRequest = exports.UpdateManagedUserResponse = exports.UpdateManagedUserRequest = exports.CreateManagedUserResponse = exports.CreateManagedUserRequest = exports.ListManagedUsersResponse = exports.ListManagedUsersRequest = exports.AdminManagedUser = exports.ListAdminNotificationsResponse = exports.ListAdminNotificationsRequest = exports.AdminNotification = exports.UserActivityResponse = exports.UserActivityStats = exports.UserActivityDataPoint = exports.UserActivityRequest = exports.DashboardOverviewResponse = exports.DashboardOverviewRequest = exports.DashboardMetric = void 0;
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.AdminBundleResponse = exports.AdminUpdateBundleRequest = exports.AdminCreateBundleRequest = exports.AdminListBundlesResponse = exports.AdminListBundlesRequest = exports.AdminBundle = exports.AdminSupportTicketResponse = exports.AdminUpdateSupportTicketStatusRequest = exports.AdminListSupportTicketsResponse = exports.AdminListSupportTicketsRequest = exports.AdminSupportTicketStats = exports.AdminSupportTicket = exports.AdminMoodTypeResponse = exports.AdminUpdateMoodTypeRequest = exports.AdminCreateMoodTypeRequest = exports.AdminListMoodTypesResponse = exports.AdminListMoodTypesRequest = exports.AdminMoodStats = exports.AdminMoodBreakdownItem = exports.AdminGetMoodStatsRequest = exports.AdminMoodType = exports.AdminBadgeCategoryResponse = exports.AdminUpdateBadgeCategoryRequest = exports.AdminBadgeResponse = exports.AdminUpdateBadgeRequest = exports.AdminCreateBadgeRequest = exports.AdminListBadgeCategoriesResponse = exports.AdminListBadgeCategoriesRequest = exports.AdminListBadgesResponse = exports.AdminListBadgesRequest = exports.AdminBadgeStats = exports.AdminBadgeCategory = exports.AdminBadge = exports.AdminSeasonResponse = exports.AdminUpdateSeasonRequest = exports.AdminCreateSeasonRequest = exports.AdminListSeasonsResponse = exports.AdminListSeasonsRequest = exports.AdminSeason = exports.AdminSoundscapePlanResponse = exports.AdminUpdateSoundscapePlanRequest = exports.AdminCreateSoundscapePlanRequest = exports.AdminListSoundscapePlansResponse = void 0;
|
|
10
|
+
exports.VerifyKycRequest = exports.ListKycTherapistsResponse = exports.ListKycTherapistsRequest = exports.KycTherapist = exports.AdminKycDocument = exports.AdminTherapySessionStatusResponse = exports.AdminUpdateTherapySessionStatusRequest = exports.ListAdminTherapySessionsResponse = exports.AdminTherapySessionListStats = exports.AdminTherapySessionListItem = exports.ListAdminTherapySessionsRequest = exports.ListTherapistSessionsResponse = exports.TherapistSessionStats = exports.MonthlySessionPoint = exports.ListTherapistSessionsRequest = exports.TherapistSession = exports.UpdateTherapistStatusResponse = exports.UpdateTherapistStatusRequest = exports.TherapistStatsResponse = exports.GetAdminTherapistRequest = exports.TherapistStatsRequest = exports.TherapistUpcomingSession = exports.TherapistReview = exports.TherapistRatingPoint = exports.TherapistSessionPoint = exports.TherapistPerformanceStats = exports.AdminTherapistDetail = exports.ListAdminTherapistsResponse = exports.ListAdminTherapistsRequest = exports.AdminTherapist = exports.UserStatsResponse = exports.AdminBulkCreditUserWalletResponse = exports.AdminBulkCreditUserWalletFailure = exports.AdminBulkCreditUserWalletRequest = exports.AdminCreditUserWalletResponse = exports.AdminCreditUserWalletRequest = exports.AdminTestPushNotificationResponse = exports.AdminTestPushNotificationRequest_DataEntry = exports.AdminTestPushNotificationRequest = exports.AdminPushDeliveryResult = exports.AdminSendMessageResponse = exports.AdminSendMessageRequest = exports.ListUserWarningsResponse = exports.UserWarning = exports.WarningIssuedBy = exports.IssueWarningResponse = exports.IssueWarningRequest = exports.BanUserResponse = exports.BanUserRequest = exports.UnsuspendUserResponse = void 0;
|
|
11
|
+
exports.GroupTopContributor = exports.ListGroupTopContributorsRequest = exports.AdminUpdateGroupResponse = exports.AdminUpdateGroupRequest = exports.AdminCreateGroupResponse = exports.AdminCreateGroupRequest = exports.GroupDetail = exports.GroupModerator = exports.GroupRule = exports.AdminListGroupsResponse = exports.AdminListGroupsRequest = exports.AdminGroup = exports.GroupCreator = exports.GroupStats = exports.GroupMemberGrowthChartPoint = exports.GroupActivityChartPoint = exports.GroupActivityStats = exports.GetGroupStatsRequest = exports.UpdateModerationSettingsResponse = exports.ModerationSettings = exports.ListContentReportsResponse = exports.ListContentReportsRequest = exports.ContentReport = exports.BulkContentActionResponse = exports.BulkContentResult = exports.BulkContentActionRequest = exports.EscalateContentResponse = exports.EscalateContentRequest = exports.HideContentResponse = exports.HideContentRequest = exports.RemoveContentResponse = exports.RemoveContentRequest = exports.RestoreContentResponse = exports.RestoreContentRequest = exports.ContentDetailStats_ReportCategoryStatsEntry = exports.ContentDetailStats = exports.ContentDetail = exports.ModerationHistoryEntry = exports.ReportDetail = exports.ContentBody = exports.ContentLocation = exports.ContentAuthor = exports.ListModeratedContentResponse = exports.ListModeratedContentRequest = exports.ModeratedContent = exports.ModerationActivityStats = exports.ModerationActionStats = exports.ContentReportsByType = exports.ContentModerationStatsResponse = exports.VerifyKycResponse = void 0;
|
|
12
|
+
exports.UserGrowthRequest = exports.AnalyticsStatsResponse = exports.AnalyticsStatsRequest = exports.AnalyticsPeriod = exports.AnalyticsMetric = exports.ProcessDueCounsellorPayoutsResponse = exports.ProcessDueCounsellorPayoutsRequest = exports.ReleaseCounsellorPayoutRequest = exports.ListCounsellorPayoutsResponse = exports.CounsellorPayoutItem = exports.ListCounsellorPayoutsRequest = exports.UpdatePayoutSettingsRequest = exports.PayoutSettingsResponse = exports.PayoutMethodScheduleConfig = exports.AdminListTransactionsResponse = exports.AdminListTransactionsRequest = exports.PlatformTransaction = exports.ReactivateWalletResponse = exports.SuspendWalletResponse = exports.SuspendWalletRequest = exports.CreditDebitResponse = exports.CreditDebitRequest = exports.GetWalletDetailRequest = exports.WalletBalanceHistoryItem = exports.WalletStats = exports.WalletDetail = exports.WalletTransaction = exports.ListWalletsResponse = exports.ListWalletsRequest = exports.AdminWallet = exports.PaymentStatsResponse = exports.WalletStatsResponse = exports.RemoveMemberResponse = exports.RemoveMemberRequest = exports.UpdateMemberRoleResponse = exports.UpdateMemberRoleRequest = exports.AdminListGroupMembersResponse = exports.AdminListGroupMembersRequest = exports.AdminGroupMember = exports.AdminDeleteGroupResponse = exports.AdminDeleteGroupRequest = exports.ReactivateGroupResponse = exports.SuspendGroupResponse = exports.SuspendGroupRequest = exports.UpdateGroupMediaResponse = exports.UpdateGroupMediaRequest = exports.ListRecentGroupActivityResponse = exports.RecentGroupActivityItem = exports.ListRecentGroupActivityRequest = exports.ListGroupTopContributorsResponse = void 0;
|
|
13
|
+
exports.ReferralConversionMetric = exports.ReferralCountMetric = exports.ReferrerStats = exports.ReferrerDetail = exports.GetReferrerDetailRequest = exports.ReferralTimeSeriesPoint = exports.ReferralStatsResponse = exports.ReferralStatsRequest = exports.ListReferralAnalyticsResponse = exports.ListReferralAnalyticsRequest = exports.ReferralAnalyticsEntry = exports.ExportReportResponse = exports.ExportReportRequest = exports.CommunityAnalyticsResponse = exports.TopCommunityEntry = exports.CommunityAnalyticsRequest = exports.MoodAnalyticsResponse = exports.MoodDistributionEntry = exports.MoodAnalyticsRequest = exports.SoundscapeAnalyticsResponse = exports.SoundscapeAnalyticsSummary = exports.SoundscapeAnalyticsRequest = exports.GroupAnalyticsResponse = exports.GroupAnalyticsSummary = exports.GroupAnalyticsRequest = exports.ReferralAnalyticsResponse = exports.ReferralAnalyticsSummary = exports.ReferralAnalyticsRequest = exports.ContentModerationAnalyticsResponse = exports.ContentModerationAnalyticsSummary = exports.ModerationTimeSeriesPoint = exports.ContentModerationAnalyticsRequest = exports.TherapistPerformanceResponse = exports.TherapistPerformanceEntry = exports.TherapistPerformanceRequest = exports.RevenueAnalyticsResponse = exports.RevenueAnalyticsSummary = exports.RevenueTimeSeriesPoint = exports.RevenueAnalyticsRequest = exports.SessionsAnalyticsResponse = exports.SessionsAnalyticsSummary = exports.SessionsTimeSeriesPoint = exports.SessionsAnalyticsRequest = exports.EngagementResponse = exports.EngagementSummary = exports.EngagementDataPoint = exports.EngagementRequest = exports.UserGrowthResponse = exports.UserGrowthByRole = exports.UserGrowthDataPoint = void 0;
|
|
14
|
+
exports.AdminCreateSoundscapeTrackRequest = exports.AdminListSoundscapeTracksResponse = exports.AdminListSoundscapeTracksRequest = exports.AdminSoundscapeCategoryResponse = exports.AdminUpdateSoundscapeCategoryRequest = exports.AdminCreateSoundscapeCategoryRequest = exports.AdminListSoundscapeCategoriesResponse = exports.AdminListSoundscapeCategoriesRequest = exports.AdminSoundscapeStats = exports.AdminSoundscapePlan = exports.AdminSoundscapeTrack = exports.AdminSoundscapeCategory = exports.AdminUpdateCommunityMemberRoleResponse = exports.AdminUpdateCommunityMemberRoleRequest = exports.AdminRemoveCommunityMemberResponse = exports.AdminRemoveCommunityMemberRequest = exports.AdminListCommunityMembersResponse = exports.AdminListCommunityMembersRequest = exports.AdminCommunityMember = exports.AdminDeleteCommunityResponse = exports.AdminToggleCommunityResponse = exports.AdminUpdateCommunityResponse = exports.AdminUpdateCommunityRequest = exports.AdminCreateCommunityResponse = exports.AdminCreateCommunityRequest = exports.AdminListCommunitiesResponse = exports.AdminListCommunitiesRequest = exports.AdminCommunityStats = exports.AdminCommunity = exports.AddTherapistResponse = exports.AddTherapistRequest = exports.UpdateGlobalReferralSettingsRequest = exports.GlobalReferralSettings = exports.EditReferralRewardsResponse = exports.EditReferralRewardsRequest = exports.EnableReferralsResponse = exports.DisableReferralsResponse = exports.DisableReferralsRequest = exports.ListReferredUsersResponse = exports.ListReferredUsersRequest = exports.ReferredUser = exports.ListReferralHistoryResponse = exports.ListReferralHistoryRequest = exports.ReferralHistoryEntry = exports.ReferralRewardConfig = exports.TopReferrersResponse = exports.TopReferrerEntry = exports.TopReferrersRequest = exports.ReferralPaidTcMetric = exports.ReferralEarningsMetric = void 0;
|
|
15
|
+
exports.AdminBundleResponse = exports.AdminUpdateBundleRequest = exports.AdminCreateBundleRequest = exports.AdminListBundlesResponse = exports.AdminListBundlesRequest = exports.AdminBundle = exports.AdminSupportTicketResponse = exports.AdminUpdateSupportTicketStatusRequest = exports.AdminListSupportTicketsResponse = exports.AdminListSupportTicketsRequest = exports.AdminSupportTicketStats = exports.AdminSupportTicket = exports.AdminMoodTypeResponse = exports.AdminUpdateMoodTypeRequest = exports.AdminCreateMoodTypeRequest = exports.AdminListMoodTypesResponse = exports.AdminListMoodTypesRequest = exports.AdminMoodStats = exports.AdminMoodBreakdownItem = exports.AdminGetMoodStatsRequest = exports.AdminMoodType = exports.AdminBadgeCategoryResponse = exports.AdminUpdateBadgeCategoryRequest = exports.AdminBadgeResponse = exports.AdminUpdateBadgeRequest = exports.AdminCreateBadgeRequest = exports.AdminListBadgeCategoriesResponse = exports.AdminListBadgeCategoriesRequest = exports.AdminListBadgesResponse = exports.AdminListBadgesRequest = exports.AdminBadgeStats = exports.AdminBadgeCategory = exports.AdminBadge = exports.AdminSeasonResponse = exports.AdminUpdateSeasonRequest = exports.AdminCreateSeasonRequest = exports.AdminListSeasonsResponse = exports.AdminListSeasonsRequest = exports.AdminSeason = exports.AdminSoundscapePlanResponse = exports.AdminUpdateSoundscapePlanRequest = exports.AdminCreateSoundscapePlanRequest = exports.AdminListSoundscapePlansResponse = exports.AdminListSoundscapePlansRequest = exports.AdminSoundscapeTrackResponse = exports.AdminUpdateSoundscapeTrackRequest = void 0;
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
18
18
|
const common_1 = require("../common");
|
|
@@ -14322,6 +14322,386 @@ exports.AdminCreditUserWalletResponse = {
|
|
|
14322
14322
|
return message;
|
|
14323
14323
|
},
|
|
14324
14324
|
};
|
|
14325
|
+
function createBaseAdminBulkCreditUserWalletRequest() {
|
|
14326
|
+
return { userIds: [], amount: 0, reason: "", notifyUser: false, role: "", status: "", organization: "", search: "" };
|
|
14327
|
+
}
|
|
14328
|
+
exports.AdminBulkCreditUserWalletRequest = {
|
|
14329
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14330
|
+
for (const v of message.userIds) {
|
|
14331
|
+
writer.uint32(10).string(v);
|
|
14332
|
+
}
|
|
14333
|
+
if (message.amount !== 0) {
|
|
14334
|
+
writer.uint32(16).int64(message.amount);
|
|
14335
|
+
}
|
|
14336
|
+
if (message.reason !== "") {
|
|
14337
|
+
writer.uint32(26).string(message.reason);
|
|
14338
|
+
}
|
|
14339
|
+
if (message.notifyUser !== false) {
|
|
14340
|
+
writer.uint32(32).bool(message.notifyUser);
|
|
14341
|
+
}
|
|
14342
|
+
if (message.role !== "") {
|
|
14343
|
+
writer.uint32(42).string(message.role);
|
|
14344
|
+
}
|
|
14345
|
+
if (message.status !== "") {
|
|
14346
|
+
writer.uint32(50).string(message.status);
|
|
14347
|
+
}
|
|
14348
|
+
if (message.organization !== "") {
|
|
14349
|
+
writer.uint32(58).string(message.organization);
|
|
14350
|
+
}
|
|
14351
|
+
if (message.search !== "") {
|
|
14352
|
+
writer.uint32(66).string(message.search);
|
|
14353
|
+
}
|
|
14354
|
+
return writer;
|
|
14355
|
+
},
|
|
14356
|
+
decode(input, length) {
|
|
14357
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14358
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14359
|
+
const message = createBaseAdminBulkCreditUserWalletRequest();
|
|
14360
|
+
while (reader.pos < end) {
|
|
14361
|
+
const tag = reader.uint32();
|
|
14362
|
+
switch (tag >>> 3) {
|
|
14363
|
+
case 1: {
|
|
14364
|
+
if (tag !== 10) {
|
|
14365
|
+
break;
|
|
14366
|
+
}
|
|
14367
|
+
message.userIds.push(reader.string());
|
|
14368
|
+
continue;
|
|
14369
|
+
}
|
|
14370
|
+
case 2: {
|
|
14371
|
+
if (tag !== 16) {
|
|
14372
|
+
break;
|
|
14373
|
+
}
|
|
14374
|
+
message.amount = longToNumber(reader.int64());
|
|
14375
|
+
continue;
|
|
14376
|
+
}
|
|
14377
|
+
case 3: {
|
|
14378
|
+
if (tag !== 26) {
|
|
14379
|
+
break;
|
|
14380
|
+
}
|
|
14381
|
+
message.reason = reader.string();
|
|
14382
|
+
continue;
|
|
14383
|
+
}
|
|
14384
|
+
case 4: {
|
|
14385
|
+
if (tag !== 32) {
|
|
14386
|
+
break;
|
|
14387
|
+
}
|
|
14388
|
+
message.notifyUser = reader.bool();
|
|
14389
|
+
continue;
|
|
14390
|
+
}
|
|
14391
|
+
case 5: {
|
|
14392
|
+
if (tag !== 42) {
|
|
14393
|
+
break;
|
|
14394
|
+
}
|
|
14395
|
+
message.role = reader.string();
|
|
14396
|
+
continue;
|
|
14397
|
+
}
|
|
14398
|
+
case 6: {
|
|
14399
|
+
if (tag !== 50) {
|
|
14400
|
+
break;
|
|
14401
|
+
}
|
|
14402
|
+
message.status = reader.string();
|
|
14403
|
+
continue;
|
|
14404
|
+
}
|
|
14405
|
+
case 7: {
|
|
14406
|
+
if (tag !== 58) {
|
|
14407
|
+
break;
|
|
14408
|
+
}
|
|
14409
|
+
message.organization = reader.string();
|
|
14410
|
+
continue;
|
|
14411
|
+
}
|
|
14412
|
+
case 8: {
|
|
14413
|
+
if (tag !== 66) {
|
|
14414
|
+
break;
|
|
14415
|
+
}
|
|
14416
|
+
message.search = reader.string();
|
|
14417
|
+
continue;
|
|
14418
|
+
}
|
|
14419
|
+
}
|
|
14420
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14421
|
+
break;
|
|
14422
|
+
}
|
|
14423
|
+
reader.skip(tag & 7);
|
|
14424
|
+
}
|
|
14425
|
+
return message;
|
|
14426
|
+
},
|
|
14427
|
+
fromJSON(object) {
|
|
14428
|
+
return {
|
|
14429
|
+
userIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.userIds) ? object.userIds.map((e) => globalThis.String(e)) : [],
|
|
14430
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
14431
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
14432
|
+
notifyUser: isSet(object.notifyUser) ? globalThis.Boolean(object.notifyUser) : false,
|
|
14433
|
+
role: isSet(object.role) ? globalThis.String(object.role) : "",
|
|
14434
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
14435
|
+
organization: isSet(object.organization) ? globalThis.String(object.organization) : "",
|
|
14436
|
+
search: isSet(object.search) ? globalThis.String(object.search) : "",
|
|
14437
|
+
};
|
|
14438
|
+
},
|
|
14439
|
+
toJSON(message) {
|
|
14440
|
+
var _a;
|
|
14441
|
+
const obj = {};
|
|
14442
|
+
if ((_a = message.userIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
14443
|
+
obj.userIds = message.userIds;
|
|
14444
|
+
}
|
|
14445
|
+
if (message.amount !== 0) {
|
|
14446
|
+
obj.amount = Math.round(message.amount);
|
|
14447
|
+
}
|
|
14448
|
+
if (message.reason !== "") {
|
|
14449
|
+
obj.reason = message.reason;
|
|
14450
|
+
}
|
|
14451
|
+
if (message.notifyUser !== false) {
|
|
14452
|
+
obj.notifyUser = message.notifyUser;
|
|
14453
|
+
}
|
|
14454
|
+
if (message.role !== "") {
|
|
14455
|
+
obj.role = message.role;
|
|
14456
|
+
}
|
|
14457
|
+
if (message.status !== "") {
|
|
14458
|
+
obj.status = message.status;
|
|
14459
|
+
}
|
|
14460
|
+
if (message.organization !== "") {
|
|
14461
|
+
obj.organization = message.organization;
|
|
14462
|
+
}
|
|
14463
|
+
if (message.search !== "") {
|
|
14464
|
+
obj.search = message.search;
|
|
14465
|
+
}
|
|
14466
|
+
return obj;
|
|
14467
|
+
},
|
|
14468
|
+
create(base) {
|
|
14469
|
+
return exports.AdminBulkCreditUserWalletRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
14470
|
+
},
|
|
14471
|
+
fromPartial(object) {
|
|
14472
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14473
|
+
const message = createBaseAdminBulkCreditUserWalletRequest();
|
|
14474
|
+
message.userIds = ((_a = object.userIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
14475
|
+
message.amount = (_b = object.amount) !== null && _b !== void 0 ? _b : 0;
|
|
14476
|
+
message.reason = (_c = object.reason) !== null && _c !== void 0 ? _c : "";
|
|
14477
|
+
message.notifyUser = (_d = object.notifyUser) !== null && _d !== void 0 ? _d : false;
|
|
14478
|
+
message.role = (_e = object.role) !== null && _e !== void 0 ? _e : "";
|
|
14479
|
+
message.status = (_f = object.status) !== null && _f !== void 0 ? _f : "";
|
|
14480
|
+
message.organization = (_g = object.organization) !== null && _g !== void 0 ? _g : "";
|
|
14481
|
+
message.search = (_h = object.search) !== null && _h !== void 0 ? _h : "";
|
|
14482
|
+
return message;
|
|
14483
|
+
},
|
|
14484
|
+
};
|
|
14485
|
+
function createBaseAdminBulkCreditUserWalletFailure() {
|
|
14486
|
+
return { userId: "", error: "" };
|
|
14487
|
+
}
|
|
14488
|
+
exports.AdminBulkCreditUserWalletFailure = {
|
|
14489
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14490
|
+
if (message.userId !== "") {
|
|
14491
|
+
writer.uint32(10).string(message.userId);
|
|
14492
|
+
}
|
|
14493
|
+
if (message.error !== "") {
|
|
14494
|
+
writer.uint32(18).string(message.error);
|
|
14495
|
+
}
|
|
14496
|
+
return writer;
|
|
14497
|
+
},
|
|
14498
|
+
decode(input, length) {
|
|
14499
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14500
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14501
|
+
const message = createBaseAdminBulkCreditUserWalletFailure();
|
|
14502
|
+
while (reader.pos < end) {
|
|
14503
|
+
const tag = reader.uint32();
|
|
14504
|
+
switch (tag >>> 3) {
|
|
14505
|
+
case 1: {
|
|
14506
|
+
if (tag !== 10) {
|
|
14507
|
+
break;
|
|
14508
|
+
}
|
|
14509
|
+
message.userId = reader.string();
|
|
14510
|
+
continue;
|
|
14511
|
+
}
|
|
14512
|
+
case 2: {
|
|
14513
|
+
if (tag !== 18) {
|
|
14514
|
+
break;
|
|
14515
|
+
}
|
|
14516
|
+
message.error = reader.string();
|
|
14517
|
+
continue;
|
|
14518
|
+
}
|
|
14519
|
+
}
|
|
14520
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14521
|
+
break;
|
|
14522
|
+
}
|
|
14523
|
+
reader.skip(tag & 7);
|
|
14524
|
+
}
|
|
14525
|
+
return message;
|
|
14526
|
+
},
|
|
14527
|
+
fromJSON(object) {
|
|
14528
|
+
return {
|
|
14529
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
14530
|
+
error: isSet(object.error) ? globalThis.String(object.error) : "",
|
|
14531
|
+
};
|
|
14532
|
+
},
|
|
14533
|
+
toJSON(message) {
|
|
14534
|
+
const obj = {};
|
|
14535
|
+
if (message.userId !== "") {
|
|
14536
|
+
obj.userId = message.userId;
|
|
14537
|
+
}
|
|
14538
|
+
if (message.error !== "") {
|
|
14539
|
+
obj.error = message.error;
|
|
14540
|
+
}
|
|
14541
|
+
return obj;
|
|
14542
|
+
},
|
|
14543
|
+
create(base) {
|
|
14544
|
+
return exports.AdminBulkCreditUserWalletFailure.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
14545
|
+
},
|
|
14546
|
+
fromPartial(object) {
|
|
14547
|
+
var _a, _b;
|
|
14548
|
+
const message = createBaseAdminBulkCreditUserWalletFailure();
|
|
14549
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
14550
|
+
message.error = (_b = object.error) !== null && _b !== void 0 ? _b : "";
|
|
14551
|
+
return message;
|
|
14552
|
+
},
|
|
14553
|
+
};
|
|
14554
|
+
function createBaseAdminBulkCreditUserWalletResponse() {
|
|
14555
|
+
return { credits: [], matchedUsers: 0, credited: 0, failed: 0, failedUserIds: [], failures: [], performedBy: "" };
|
|
14556
|
+
}
|
|
14557
|
+
exports.AdminBulkCreditUserWalletResponse = {
|
|
14558
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14559
|
+
for (const v of message.credits) {
|
|
14560
|
+
exports.AdminCreditUserWalletResponse.encode(v, writer.uint32(10).fork()).join();
|
|
14561
|
+
}
|
|
14562
|
+
if (message.matchedUsers !== 0) {
|
|
14563
|
+
writer.uint32(16).int32(message.matchedUsers);
|
|
14564
|
+
}
|
|
14565
|
+
if (message.credited !== 0) {
|
|
14566
|
+
writer.uint32(24).int32(message.credited);
|
|
14567
|
+
}
|
|
14568
|
+
if (message.failed !== 0) {
|
|
14569
|
+
writer.uint32(32).int32(message.failed);
|
|
14570
|
+
}
|
|
14571
|
+
for (const v of message.failedUserIds) {
|
|
14572
|
+
writer.uint32(42).string(v);
|
|
14573
|
+
}
|
|
14574
|
+
for (const v of message.failures) {
|
|
14575
|
+
exports.AdminBulkCreditUserWalletFailure.encode(v, writer.uint32(50).fork()).join();
|
|
14576
|
+
}
|
|
14577
|
+
if (message.performedBy !== "") {
|
|
14578
|
+
writer.uint32(58).string(message.performedBy);
|
|
14579
|
+
}
|
|
14580
|
+
return writer;
|
|
14581
|
+
},
|
|
14582
|
+
decode(input, length) {
|
|
14583
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14584
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14585
|
+
const message = createBaseAdminBulkCreditUserWalletResponse();
|
|
14586
|
+
while (reader.pos < end) {
|
|
14587
|
+
const tag = reader.uint32();
|
|
14588
|
+
switch (tag >>> 3) {
|
|
14589
|
+
case 1: {
|
|
14590
|
+
if (tag !== 10) {
|
|
14591
|
+
break;
|
|
14592
|
+
}
|
|
14593
|
+
message.credits.push(exports.AdminCreditUserWalletResponse.decode(reader, reader.uint32()));
|
|
14594
|
+
continue;
|
|
14595
|
+
}
|
|
14596
|
+
case 2: {
|
|
14597
|
+
if (tag !== 16) {
|
|
14598
|
+
break;
|
|
14599
|
+
}
|
|
14600
|
+
message.matchedUsers = reader.int32();
|
|
14601
|
+
continue;
|
|
14602
|
+
}
|
|
14603
|
+
case 3: {
|
|
14604
|
+
if (tag !== 24) {
|
|
14605
|
+
break;
|
|
14606
|
+
}
|
|
14607
|
+
message.credited = reader.int32();
|
|
14608
|
+
continue;
|
|
14609
|
+
}
|
|
14610
|
+
case 4: {
|
|
14611
|
+
if (tag !== 32) {
|
|
14612
|
+
break;
|
|
14613
|
+
}
|
|
14614
|
+
message.failed = reader.int32();
|
|
14615
|
+
continue;
|
|
14616
|
+
}
|
|
14617
|
+
case 5: {
|
|
14618
|
+
if (tag !== 42) {
|
|
14619
|
+
break;
|
|
14620
|
+
}
|
|
14621
|
+
message.failedUserIds.push(reader.string());
|
|
14622
|
+
continue;
|
|
14623
|
+
}
|
|
14624
|
+
case 6: {
|
|
14625
|
+
if (tag !== 50) {
|
|
14626
|
+
break;
|
|
14627
|
+
}
|
|
14628
|
+
message.failures.push(exports.AdminBulkCreditUserWalletFailure.decode(reader, reader.uint32()));
|
|
14629
|
+
continue;
|
|
14630
|
+
}
|
|
14631
|
+
case 7: {
|
|
14632
|
+
if (tag !== 58) {
|
|
14633
|
+
break;
|
|
14634
|
+
}
|
|
14635
|
+
message.performedBy = reader.string();
|
|
14636
|
+
continue;
|
|
14637
|
+
}
|
|
14638
|
+
}
|
|
14639
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14640
|
+
break;
|
|
14641
|
+
}
|
|
14642
|
+
reader.skip(tag & 7);
|
|
14643
|
+
}
|
|
14644
|
+
return message;
|
|
14645
|
+
},
|
|
14646
|
+
fromJSON(object) {
|
|
14647
|
+
return {
|
|
14648
|
+
credits: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.credits)
|
|
14649
|
+
? object.credits.map((e) => exports.AdminCreditUserWalletResponse.fromJSON(e))
|
|
14650
|
+
: [],
|
|
14651
|
+
matchedUsers: isSet(object.matchedUsers) ? globalThis.Number(object.matchedUsers) : 0,
|
|
14652
|
+
credited: isSet(object.credited) ? globalThis.Number(object.credited) : 0,
|
|
14653
|
+
failed: isSet(object.failed) ? globalThis.Number(object.failed) : 0,
|
|
14654
|
+
failedUserIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.failedUserIds)
|
|
14655
|
+
? object.failedUserIds.map((e) => globalThis.String(e))
|
|
14656
|
+
: [],
|
|
14657
|
+
failures: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.failures)
|
|
14658
|
+
? object.failures.map((e) => exports.AdminBulkCreditUserWalletFailure.fromJSON(e))
|
|
14659
|
+
: [],
|
|
14660
|
+
performedBy: isSet(object.performedBy) ? globalThis.String(object.performedBy) : "",
|
|
14661
|
+
};
|
|
14662
|
+
},
|
|
14663
|
+
toJSON(message) {
|
|
14664
|
+
var _a, _b, _c;
|
|
14665
|
+
const obj = {};
|
|
14666
|
+
if ((_a = message.credits) === null || _a === void 0 ? void 0 : _a.length) {
|
|
14667
|
+
obj.credits = message.credits.map((e) => exports.AdminCreditUserWalletResponse.toJSON(e));
|
|
14668
|
+
}
|
|
14669
|
+
if (message.matchedUsers !== 0) {
|
|
14670
|
+
obj.matchedUsers = Math.round(message.matchedUsers);
|
|
14671
|
+
}
|
|
14672
|
+
if (message.credited !== 0) {
|
|
14673
|
+
obj.credited = Math.round(message.credited);
|
|
14674
|
+
}
|
|
14675
|
+
if (message.failed !== 0) {
|
|
14676
|
+
obj.failed = Math.round(message.failed);
|
|
14677
|
+
}
|
|
14678
|
+
if ((_b = message.failedUserIds) === null || _b === void 0 ? void 0 : _b.length) {
|
|
14679
|
+
obj.failedUserIds = message.failedUserIds;
|
|
14680
|
+
}
|
|
14681
|
+
if ((_c = message.failures) === null || _c === void 0 ? void 0 : _c.length) {
|
|
14682
|
+
obj.failures = message.failures.map((e) => exports.AdminBulkCreditUserWalletFailure.toJSON(e));
|
|
14683
|
+
}
|
|
14684
|
+
if (message.performedBy !== "") {
|
|
14685
|
+
obj.performedBy = message.performedBy;
|
|
14686
|
+
}
|
|
14687
|
+
return obj;
|
|
14688
|
+
},
|
|
14689
|
+
create(base) {
|
|
14690
|
+
return exports.AdminBulkCreditUserWalletResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
14691
|
+
},
|
|
14692
|
+
fromPartial(object) {
|
|
14693
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
14694
|
+
const message = createBaseAdminBulkCreditUserWalletResponse();
|
|
14695
|
+
message.credits = ((_a = object.credits) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AdminCreditUserWalletResponse.fromPartial(e))) || [];
|
|
14696
|
+
message.matchedUsers = (_b = object.matchedUsers) !== null && _b !== void 0 ? _b : 0;
|
|
14697
|
+
message.credited = (_c = object.credited) !== null && _c !== void 0 ? _c : 0;
|
|
14698
|
+
message.failed = (_d = object.failed) !== null && _d !== void 0 ? _d : 0;
|
|
14699
|
+
message.failedUserIds = ((_e = object.failedUserIds) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
|
|
14700
|
+
message.failures = ((_f = object.failures) === null || _f === void 0 ? void 0 : _f.map((e) => exports.AdminBulkCreditUserWalletFailure.fromPartial(e))) || [];
|
|
14701
|
+
message.performedBy = (_g = object.performedBy) !== null && _g !== void 0 ? _g : "";
|
|
14702
|
+
return message;
|
|
14703
|
+
},
|
|
14704
|
+
};
|
|
14325
14705
|
function createBaseUserStatsResponse() {
|
|
14326
14706
|
return {
|
|
14327
14707
|
totalUsers: 0,
|
|
@@ -119,9 +119,7 @@ export interface AdminNotificationVariableCatalogItem {
|
|
|
119
119
|
sourcePath: string;
|
|
120
120
|
required: boolean;
|
|
121
121
|
defaultValue: string;
|
|
122
|
-
|
|
123
|
-
[key: string]: any;
|
|
124
|
-
} | undefined;
|
|
122
|
+
variable: string;
|
|
125
123
|
}
|
|
126
124
|
export interface GetNotificationVariableCatalogRequest {
|
|
127
125
|
sourceType: string;
|
|
@@ -131,8 +129,6 @@ export interface GetNotificationVariableCatalogRequest {
|
|
|
131
129
|
workflowKey: string;
|
|
132
130
|
}
|
|
133
131
|
export interface GetNotificationVariableCatalogResponse {
|
|
134
|
-
templatePlaceholders: string[];
|
|
135
|
-
templateVariables: AdminNotificationVariableCatalogItem[];
|
|
136
132
|
recipientVariables: AdminNotificationVariableCatalogItem[];
|
|
137
133
|
systemVariables: AdminNotificationVariableCatalogItem[];
|
|
138
134
|
payloadVariables: AdminNotificationVariableCatalogItem[];
|