theragist-ts 1.0.47 → 1.0.48
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
CHANGED
|
@@ -2933,6 +2933,7 @@ export interface AdminSeason {
|
|
|
2933
2933
|
description: string;
|
|
2934
2934
|
promptExample: string;
|
|
2935
2935
|
createdAt: string;
|
|
2936
|
+
themeColor: string;
|
|
2936
2937
|
}
|
|
2937
2938
|
export interface AdminListSeasonsRequest {
|
|
2938
2939
|
pagination: BaseListRequest | undefined;
|
|
@@ -2950,6 +2951,7 @@ export interface AdminCreateSeasonRequest {
|
|
|
2950
2951
|
corePosture: string;
|
|
2951
2952
|
description: string;
|
|
2952
2953
|
promptExample: string;
|
|
2954
|
+
themeColor: string;
|
|
2953
2955
|
}
|
|
2954
2956
|
export interface AdminUpdateSeasonRequest {
|
|
2955
2957
|
id: string;
|
|
@@ -2957,6 +2959,8 @@ export interface AdminUpdateSeasonRequest {
|
|
|
2957
2959
|
corePosture: string;
|
|
2958
2960
|
description: string;
|
|
2959
2961
|
promptExample: string;
|
|
2962
|
+
themeColor: string;
|
|
2963
|
+
slug: string;
|
|
2960
2964
|
}
|
|
2961
2965
|
export interface AdminSeasonResponse {
|
|
2962
2966
|
id: string;
|
package/dist/admin/message.js
CHANGED
|
@@ -48826,6 +48826,7 @@ function createBaseAdminSeason() {
|
|
|
48826
48826
|
description: "",
|
|
48827
48827
|
promptExample: "",
|
|
48828
48828
|
createdAt: "",
|
|
48829
|
+
themeColor: "",
|
|
48829
48830
|
};
|
|
48830
48831
|
}
|
|
48831
48832
|
exports.AdminSeason = {
|
|
@@ -48863,6 +48864,9 @@ exports.AdminSeason = {
|
|
|
48863
48864
|
if (message.createdAt !== "") {
|
|
48864
48865
|
writer.uint32(90).string(message.createdAt);
|
|
48865
48866
|
}
|
|
48867
|
+
if (message.themeColor !== "") {
|
|
48868
|
+
writer.uint32(98).string(message.themeColor);
|
|
48869
|
+
}
|
|
48866
48870
|
return writer;
|
|
48867
48871
|
},
|
|
48868
48872
|
decode(input, length) {
|
|
@@ -48949,6 +48953,13 @@ exports.AdminSeason = {
|
|
|
48949
48953
|
message.createdAt = reader.string();
|
|
48950
48954
|
continue;
|
|
48951
48955
|
}
|
|
48956
|
+
case 12: {
|
|
48957
|
+
if (tag !== 98) {
|
|
48958
|
+
break;
|
|
48959
|
+
}
|
|
48960
|
+
message.themeColor = reader.string();
|
|
48961
|
+
continue;
|
|
48962
|
+
}
|
|
48952
48963
|
}
|
|
48953
48964
|
if ((tag & 7) === 4 || tag === 0) {
|
|
48954
48965
|
break;
|
|
@@ -48970,6 +48981,7 @@ exports.AdminSeason = {
|
|
|
48970
48981
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
48971
48982
|
promptExample: isSet(object.promptExample) ? globalThis.String(object.promptExample) : "",
|
|
48972
48983
|
createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
|
|
48984
|
+
themeColor: isSet(object.themeColor) ? globalThis.String(object.themeColor) : "",
|
|
48973
48985
|
};
|
|
48974
48986
|
},
|
|
48975
48987
|
toJSON(message) {
|
|
@@ -49007,13 +49019,16 @@ exports.AdminSeason = {
|
|
|
49007
49019
|
if (message.createdAt !== "") {
|
|
49008
49020
|
obj.createdAt = message.createdAt;
|
|
49009
49021
|
}
|
|
49022
|
+
if (message.themeColor !== "") {
|
|
49023
|
+
obj.themeColor = message.themeColor;
|
|
49024
|
+
}
|
|
49010
49025
|
return obj;
|
|
49011
49026
|
},
|
|
49012
49027
|
create(base) {
|
|
49013
49028
|
return exports.AdminSeason.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
49014
49029
|
},
|
|
49015
49030
|
fromPartial(object) {
|
|
49016
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
49031
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
49017
49032
|
const message = createBaseAdminSeason();
|
|
49018
49033
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
49019
49034
|
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
@@ -49026,6 +49041,7 @@ exports.AdminSeason = {
|
|
|
49026
49041
|
message.description = (_j = object.description) !== null && _j !== void 0 ? _j : "";
|
|
49027
49042
|
message.promptExample = (_k = object.promptExample) !== null && _k !== void 0 ? _k : "";
|
|
49028
49043
|
message.createdAt = (_l = object.createdAt) !== null && _l !== void 0 ? _l : "";
|
|
49044
|
+
message.themeColor = (_m = object.themeColor) !== null && _m !== void 0 ? _m : "";
|
|
49029
49045
|
return message;
|
|
49030
49046
|
},
|
|
49031
49047
|
};
|
|
@@ -49148,6 +49164,7 @@ function createBaseAdminCreateSeasonRequest() {
|
|
|
49148
49164
|
corePosture: "",
|
|
49149
49165
|
description: "",
|
|
49150
49166
|
promptExample: "",
|
|
49167
|
+
themeColor: "",
|
|
49151
49168
|
};
|
|
49152
49169
|
}
|
|
49153
49170
|
exports.AdminCreateSeasonRequest = {
|
|
@@ -49179,6 +49196,9 @@ exports.AdminCreateSeasonRequest = {
|
|
|
49179
49196
|
if (message.promptExample !== "") {
|
|
49180
49197
|
writer.uint32(74).string(message.promptExample);
|
|
49181
49198
|
}
|
|
49199
|
+
if (message.themeColor !== "") {
|
|
49200
|
+
writer.uint32(82).string(message.themeColor);
|
|
49201
|
+
}
|
|
49182
49202
|
return writer;
|
|
49183
49203
|
},
|
|
49184
49204
|
decode(input, length) {
|
|
@@ -49251,6 +49271,13 @@ exports.AdminCreateSeasonRequest = {
|
|
|
49251
49271
|
message.promptExample = reader.string();
|
|
49252
49272
|
continue;
|
|
49253
49273
|
}
|
|
49274
|
+
case 10: {
|
|
49275
|
+
if (tag !== 82) {
|
|
49276
|
+
break;
|
|
49277
|
+
}
|
|
49278
|
+
message.themeColor = reader.string();
|
|
49279
|
+
continue;
|
|
49280
|
+
}
|
|
49254
49281
|
}
|
|
49255
49282
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49256
49283
|
break;
|
|
@@ -49270,6 +49297,7 @@ exports.AdminCreateSeasonRequest = {
|
|
|
49270
49297
|
corePosture: isSet(object.corePosture) ? globalThis.String(object.corePosture) : "",
|
|
49271
49298
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
49272
49299
|
promptExample: isSet(object.promptExample) ? globalThis.String(object.promptExample) : "",
|
|
49300
|
+
themeColor: isSet(object.themeColor) ? globalThis.String(object.themeColor) : "",
|
|
49273
49301
|
};
|
|
49274
49302
|
},
|
|
49275
49303
|
toJSON(message) {
|
|
@@ -49301,13 +49329,16 @@ exports.AdminCreateSeasonRequest = {
|
|
|
49301
49329
|
if (message.promptExample !== "") {
|
|
49302
49330
|
obj.promptExample = message.promptExample;
|
|
49303
49331
|
}
|
|
49332
|
+
if (message.themeColor !== "") {
|
|
49333
|
+
obj.themeColor = message.themeColor;
|
|
49334
|
+
}
|
|
49304
49335
|
return obj;
|
|
49305
49336
|
},
|
|
49306
49337
|
create(base) {
|
|
49307
49338
|
return exports.AdminCreateSeasonRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
49308
49339
|
},
|
|
49309
49340
|
fromPartial(object) {
|
|
49310
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
49341
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
49311
49342
|
const message = createBaseAdminCreateSeasonRequest();
|
|
49312
49343
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
49313
49344
|
message.slug = (_b = object.slug) !== null && _b !== void 0 ? _b : "";
|
|
@@ -49318,11 +49349,12 @@ exports.AdminCreateSeasonRequest = {
|
|
|
49318
49349
|
message.corePosture = (_g = object.corePosture) !== null && _g !== void 0 ? _g : "";
|
|
49319
49350
|
message.description = (_h = object.description) !== null && _h !== void 0 ? _h : "";
|
|
49320
49351
|
message.promptExample = (_j = object.promptExample) !== null && _j !== void 0 ? _j : "";
|
|
49352
|
+
message.themeColor = (_k = object.themeColor) !== null && _k !== void 0 ? _k : "";
|
|
49321
49353
|
return message;
|
|
49322
49354
|
},
|
|
49323
49355
|
};
|
|
49324
49356
|
function createBaseAdminUpdateSeasonRequest() {
|
|
49325
|
-
return { id: "", name: "", corePosture: "", description: "", promptExample: "" };
|
|
49357
|
+
return { id: "", name: "", corePosture: "", description: "", promptExample: "", themeColor: "", slug: "" };
|
|
49326
49358
|
}
|
|
49327
49359
|
exports.AdminUpdateSeasonRequest = {
|
|
49328
49360
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -49341,6 +49373,12 @@ exports.AdminUpdateSeasonRequest = {
|
|
|
49341
49373
|
if (message.promptExample !== "") {
|
|
49342
49374
|
writer.uint32(42).string(message.promptExample);
|
|
49343
49375
|
}
|
|
49376
|
+
if (message.themeColor !== "") {
|
|
49377
|
+
writer.uint32(50).string(message.themeColor);
|
|
49378
|
+
}
|
|
49379
|
+
if (message.slug !== "") {
|
|
49380
|
+
writer.uint32(58).string(message.slug);
|
|
49381
|
+
}
|
|
49344
49382
|
return writer;
|
|
49345
49383
|
},
|
|
49346
49384
|
decode(input, length) {
|
|
@@ -49385,6 +49423,20 @@ exports.AdminUpdateSeasonRequest = {
|
|
|
49385
49423
|
message.promptExample = reader.string();
|
|
49386
49424
|
continue;
|
|
49387
49425
|
}
|
|
49426
|
+
case 6: {
|
|
49427
|
+
if (tag !== 50) {
|
|
49428
|
+
break;
|
|
49429
|
+
}
|
|
49430
|
+
message.themeColor = reader.string();
|
|
49431
|
+
continue;
|
|
49432
|
+
}
|
|
49433
|
+
case 7: {
|
|
49434
|
+
if (tag !== 58) {
|
|
49435
|
+
break;
|
|
49436
|
+
}
|
|
49437
|
+
message.slug = reader.string();
|
|
49438
|
+
continue;
|
|
49439
|
+
}
|
|
49388
49440
|
}
|
|
49389
49441
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49390
49442
|
break;
|
|
@@ -49400,6 +49452,8 @@ exports.AdminUpdateSeasonRequest = {
|
|
|
49400
49452
|
corePosture: isSet(object.corePosture) ? globalThis.String(object.corePosture) : "",
|
|
49401
49453
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
49402
49454
|
promptExample: isSet(object.promptExample) ? globalThis.String(object.promptExample) : "",
|
|
49455
|
+
themeColor: isSet(object.themeColor) ? globalThis.String(object.themeColor) : "",
|
|
49456
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
49403
49457
|
};
|
|
49404
49458
|
},
|
|
49405
49459
|
toJSON(message) {
|
|
@@ -49419,19 +49473,27 @@ exports.AdminUpdateSeasonRequest = {
|
|
|
49419
49473
|
if (message.promptExample !== "") {
|
|
49420
49474
|
obj.promptExample = message.promptExample;
|
|
49421
49475
|
}
|
|
49476
|
+
if (message.themeColor !== "") {
|
|
49477
|
+
obj.themeColor = message.themeColor;
|
|
49478
|
+
}
|
|
49479
|
+
if (message.slug !== "") {
|
|
49480
|
+
obj.slug = message.slug;
|
|
49481
|
+
}
|
|
49422
49482
|
return obj;
|
|
49423
49483
|
},
|
|
49424
49484
|
create(base) {
|
|
49425
49485
|
return exports.AdminUpdateSeasonRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
49426
49486
|
},
|
|
49427
49487
|
fromPartial(object) {
|
|
49428
|
-
var _a, _b, _c, _d, _e;
|
|
49488
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
49429
49489
|
const message = createBaseAdminUpdateSeasonRequest();
|
|
49430
49490
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
49431
49491
|
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
49432
49492
|
message.corePosture = (_c = object.corePosture) !== null && _c !== void 0 ? _c : "";
|
|
49433
49493
|
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
49434
49494
|
message.promptExample = (_e = object.promptExample) !== null && _e !== void 0 ? _e : "";
|
|
49495
|
+
message.themeColor = (_f = object.themeColor) !== null && _f !== void 0 ? _f : "";
|
|
49496
|
+
message.slug = (_g = object.slug) !== null && _g !== void 0 ? _g : "";
|
|
49435
49497
|
return message;
|
|
49436
49498
|
},
|
|
49437
49499
|
};
|
|
@@ -73,12 +73,14 @@ export interface AdminNotificationTemplate {
|
|
|
73
73
|
createdAt: string;
|
|
74
74
|
updatedAt: string;
|
|
75
75
|
variables: AdminNotificationTemplateVariable[];
|
|
76
|
+
class: string;
|
|
76
77
|
}
|
|
77
78
|
export interface ListNotificationTemplatesRequest {
|
|
78
79
|
pagination: BaseListRequest | undefined;
|
|
79
80
|
channelType: string;
|
|
80
81
|
locale: string;
|
|
81
82
|
activity: string;
|
|
83
|
+
class: string;
|
|
82
84
|
}
|
|
83
85
|
export interface ListNotificationTemplatesResponse {
|
|
84
86
|
templates: AdminNotificationTemplate[];
|
|
@@ -107,6 +109,7 @@ export interface UpsertNotificationTemplateRequest {
|
|
|
107
109
|
[key: string]: any;
|
|
108
110
|
} | undefined;
|
|
109
111
|
variables: AdminNotificationTemplateVariable[];
|
|
112
|
+
class: string;
|
|
110
113
|
}
|
|
111
114
|
export interface UpsertNotificationTemplateResponse {
|
|
112
115
|
template: AdminNotificationTemplate | undefined;
|
|
@@ -172,11 +175,13 @@ export interface AdminNotificationWorkflow {
|
|
|
172
175
|
createdAt: string;
|
|
173
176
|
updatedAt: string;
|
|
174
177
|
steps: AdminNotificationWorkflowStep[];
|
|
178
|
+
class: string;
|
|
175
179
|
}
|
|
176
180
|
export interface ListNotificationWorkflowsRequest {
|
|
177
181
|
pagination: BaseListRequest | undefined;
|
|
178
182
|
category: string;
|
|
179
183
|
activity: string;
|
|
184
|
+
class: string;
|
|
180
185
|
}
|
|
181
186
|
export interface ListNotificationWorkflowsResponse {
|
|
182
187
|
workflows: AdminNotificationWorkflow[];
|
|
@@ -209,6 +214,7 @@ export interface UpsertNotificationWorkflowRequest {
|
|
|
209
214
|
[key: string]: any;
|
|
210
215
|
} | undefined;
|
|
211
216
|
steps: UpsertNotificationWorkflowStepRequest[];
|
|
217
|
+
class: string;
|
|
212
218
|
}
|
|
213
219
|
export interface UpsertNotificationWorkflowResponse {
|
|
214
220
|
workflow: AdminNotificationWorkflow | undefined;
|
|
@@ -711,6 +711,7 @@ function createBaseAdminNotificationTemplate() {
|
|
|
711
711
|
createdAt: "",
|
|
712
712
|
updatedAt: "",
|
|
713
713
|
variables: [],
|
|
714
|
+
class: "",
|
|
714
715
|
};
|
|
715
716
|
}
|
|
716
717
|
exports.AdminNotificationTemplate = {
|
|
@@ -778,6 +779,9 @@ exports.AdminNotificationTemplate = {
|
|
|
778
779
|
for (const v of message.variables) {
|
|
779
780
|
exports.AdminNotificationTemplateVariable.encode(v, writer.uint32(170).fork()).join();
|
|
780
781
|
}
|
|
782
|
+
if (message.class !== "") {
|
|
783
|
+
writer.uint32(178).string(message.class);
|
|
784
|
+
}
|
|
781
785
|
return writer;
|
|
782
786
|
},
|
|
783
787
|
decode(input, length) {
|
|
@@ -934,6 +938,13 @@ exports.AdminNotificationTemplate = {
|
|
|
934
938
|
message.variables.push(exports.AdminNotificationTemplateVariable.decode(reader, reader.uint32()));
|
|
935
939
|
continue;
|
|
936
940
|
}
|
|
941
|
+
case 22: {
|
|
942
|
+
if (tag !== 178) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
message.class = reader.string();
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
937
948
|
}
|
|
938
949
|
if ((tag & 7) === 4 || tag === 0) {
|
|
939
950
|
break;
|
|
@@ -967,6 +978,7 @@ exports.AdminNotificationTemplate = {
|
|
|
967
978
|
variables: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.variables)
|
|
968
979
|
? object.variables.map((e) => exports.AdminNotificationTemplateVariable.fromJSON(e))
|
|
969
980
|
: [],
|
|
981
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
970
982
|
};
|
|
971
983
|
},
|
|
972
984
|
toJSON(message) {
|
|
@@ -1035,13 +1047,16 @@ exports.AdminNotificationTemplate = {
|
|
|
1035
1047
|
if ((_a = message.variables) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1036
1048
|
obj.variables = message.variables.map((e) => exports.AdminNotificationTemplateVariable.toJSON(e));
|
|
1037
1049
|
}
|
|
1050
|
+
if (message.class !== "") {
|
|
1051
|
+
obj.class = message.class;
|
|
1052
|
+
}
|
|
1038
1053
|
return obj;
|
|
1039
1054
|
},
|
|
1040
1055
|
create(base) {
|
|
1041
1056
|
return exports.AdminNotificationTemplate.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1042
1057
|
},
|
|
1043
1058
|
fromPartial(object) {
|
|
1044
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1059
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
1045
1060
|
const message = createBaseAdminNotificationTemplate();
|
|
1046
1061
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1047
1062
|
message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
|
|
@@ -1064,11 +1079,12 @@ exports.AdminNotificationTemplate = {
|
|
|
1064
1079
|
message.createdAt = (_u = object.createdAt) !== null && _u !== void 0 ? _u : "";
|
|
1065
1080
|
message.updatedAt = (_v = object.updatedAt) !== null && _v !== void 0 ? _v : "";
|
|
1066
1081
|
message.variables = ((_w = object.variables) === null || _w === void 0 ? void 0 : _w.map((e) => exports.AdminNotificationTemplateVariable.fromPartial(e))) || [];
|
|
1082
|
+
message.class = (_x = object.class) !== null && _x !== void 0 ? _x : "";
|
|
1067
1083
|
return message;
|
|
1068
1084
|
},
|
|
1069
1085
|
};
|
|
1070
1086
|
function createBaseListNotificationTemplatesRequest() {
|
|
1071
|
-
return { pagination: undefined, channelType: "", locale: "", activity: "" };
|
|
1087
|
+
return { pagination: undefined, channelType: "", locale: "", activity: "", class: "" };
|
|
1072
1088
|
}
|
|
1073
1089
|
exports.ListNotificationTemplatesRequest = {
|
|
1074
1090
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -1084,6 +1100,9 @@ exports.ListNotificationTemplatesRequest = {
|
|
|
1084
1100
|
if (message.activity !== "") {
|
|
1085
1101
|
writer.uint32(34).string(message.activity);
|
|
1086
1102
|
}
|
|
1103
|
+
if (message.class !== "") {
|
|
1104
|
+
writer.uint32(42).string(message.class);
|
|
1105
|
+
}
|
|
1087
1106
|
return writer;
|
|
1088
1107
|
},
|
|
1089
1108
|
decode(input, length) {
|
|
@@ -1121,6 +1140,13 @@ exports.ListNotificationTemplatesRequest = {
|
|
|
1121
1140
|
message.activity = reader.string();
|
|
1122
1141
|
continue;
|
|
1123
1142
|
}
|
|
1143
|
+
case 5: {
|
|
1144
|
+
if (tag !== 42) {
|
|
1145
|
+
break;
|
|
1146
|
+
}
|
|
1147
|
+
message.class = reader.string();
|
|
1148
|
+
continue;
|
|
1149
|
+
}
|
|
1124
1150
|
}
|
|
1125
1151
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1126
1152
|
break;
|
|
@@ -1135,6 +1161,7 @@ exports.ListNotificationTemplatesRequest = {
|
|
|
1135
1161
|
channelType: isSet(object.channelType) ? globalThis.String(object.channelType) : "",
|
|
1136
1162
|
locale: isSet(object.locale) ? globalThis.String(object.locale) : "",
|
|
1137
1163
|
activity: isSet(object.activity) ? globalThis.String(object.activity) : "",
|
|
1164
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
1138
1165
|
};
|
|
1139
1166
|
},
|
|
1140
1167
|
toJSON(message) {
|
|
@@ -1151,13 +1178,16 @@ exports.ListNotificationTemplatesRequest = {
|
|
|
1151
1178
|
if (message.activity !== "") {
|
|
1152
1179
|
obj.activity = message.activity;
|
|
1153
1180
|
}
|
|
1181
|
+
if (message.class !== "") {
|
|
1182
|
+
obj.class = message.class;
|
|
1183
|
+
}
|
|
1154
1184
|
return obj;
|
|
1155
1185
|
},
|
|
1156
1186
|
create(base) {
|
|
1157
1187
|
return exports.ListNotificationTemplatesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1158
1188
|
},
|
|
1159
1189
|
fromPartial(object) {
|
|
1160
|
-
var _a, _b, _c;
|
|
1190
|
+
var _a, _b, _c, _d;
|
|
1161
1191
|
const message = createBaseListNotificationTemplatesRequest();
|
|
1162
1192
|
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1163
1193
|
? common_1.BaseListRequest.fromPartial(object.pagination)
|
|
@@ -1165,6 +1195,7 @@ exports.ListNotificationTemplatesRequest = {
|
|
|
1165
1195
|
message.channelType = (_a = object.channelType) !== null && _a !== void 0 ? _a : "";
|
|
1166
1196
|
message.locale = (_b = object.locale) !== null && _b !== void 0 ? _b : "";
|
|
1167
1197
|
message.activity = (_c = object.activity) !== null && _c !== void 0 ? _c : "";
|
|
1198
|
+
message.class = (_d = object.class) !== null && _d !== void 0 ? _d : "";
|
|
1168
1199
|
return message;
|
|
1169
1200
|
},
|
|
1170
1201
|
};
|
|
@@ -1246,6 +1277,7 @@ function createBaseUpsertNotificationTemplateRequest() {
|
|
|
1246
1277
|
imageUrlTemplate: "",
|
|
1247
1278
|
metadata: undefined,
|
|
1248
1279
|
variables: [],
|
|
1280
|
+
class: "",
|
|
1249
1281
|
};
|
|
1250
1282
|
}
|
|
1251
1283
|
exports.UpsertNotificationTemplateRequest = {
|
|
@@ -1307,6 +1339,9 @@ exports.UpsertNotificationTemplateRequest = {
|
|
|
1307
1339
|
for (const v of message.variables) {
|
|
1308
1340
|
exports.AdminNotificationTemplateVariable.encode(v, writer.uint32(154).fork()).join();
|
|
1309
1341
|
}
|
|
1342
|
+
if (message.class !== "") {
|
|
1343
|
+
writer.uint32(162).string(message.class);
|
|
1344
|
+
}
|
|
1310
1345
|
return writer;
|
|
1311
1346
|
},
|
|
1312
1347
|
decode(input, length) {
|
|
@@ -1449,6 +1484,13 @@ exports.UpsertNotificationTemplateRequest = {
|
|
|
1449
1484
|
message.variables.push(exports.AdminNotificationTemplateVariable.decode(reader, reader.uint32()));
|
|
1450
1485
|
continue;
|
|
1451
1486
|
}
|
|
1487
|
+
case 20: {
|
|
1488
|
+
if (tag !== 162) {
|
|
1489
|
+
break;
|
|
1490
|
+
}
|
|
1491
|
+
message.class = reader.string();
|
|
1492
|
+
continue;
|
|
1493
|
+
}
|
|
1452
1494
|
}
|
|
1453
1495
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1454
1496
|
break;
|
|
@@ -1480,6 +1522,7 @@ exports.UpsertNotificationTemplateRequest = {
|
|
|
1480
1522
|
variables: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.variables)
|
|
1481
1523
|
? object.variables.map((e) => exports.AdminNotificationTemplateVariable.fromJSON(e))
|
|
1482
1524
|
: [],
|
|
1525
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
1483
1526
|
};
|
|
1484
1527
|
},
|
|
1485
1528
|
toJSON(message) {
|
|
@@ -1542,13 +1585,16 @@ exports.UpsertNotificationTemplateRequest = {
|
|
|
1542
1585
|
if ((_a = message.variables) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1543
1586
|
obj.variables = message.variables.map((e) => exports.AdminNotificationTemplateVariable.toJSON(e));
|
|
1544
1587
|
}
|
|
1588
|
+
if (message.class !== "") {
|
|
1589
|
+
obj.class = message.class;
|
|
1590
|
+
}
|
|
1545
1591
|
return obj;
|
|
1546
1592
|
},
|
|
1547
1593
|
create(base) {
|
|
1548
1594
|
return exports.UpsertNotificationTemplateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1549
1595
|
},
|
|
1550
1596
|
fromPartial(object) {
|
|
1551
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
1597
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
1552
1598
|
const message = createBaseUpsertNotificationTemplateRequest();
|
|
1553
1599
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1554
1600
|
message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
|
|
@@ -1569,6 +1615,7 @@ exports.UpsertNotificationTemplateRequest = {
|
|
|
1569
1615
|
message.imageUrlTemplate = (_s = object.imageUrlTemplate) !== null && _s !== void 0 ? _s : "";
|
|
1570
1616
|
message.metadata = (_t = object.metadata) !== null && _t !== void 0 ? _t : undefined;
|
|
1571
1617
|
message.variables = ((_u = object.variables) === null || _u === void 0 ? void 0 : _u.map((e) => exports.AdminNotificationTemplateVariable.fromPartial(e))) || [];
|
|
1618
|
+
message.class = (_v = object.class) !== null && _v !== void 0 ? _v : "";
|
|
1572
1619
|
return message;
|
|
1573
1620
|
},
|
|
1574
1621
|
};
|
|
@@ -2362,6 +2409,7 @@ function createBaseAdminNotificationWorkflow() {
|
|
|
2362
2409
|
createdAt: "",
|
|
2363
2410
|
updatedAt: "",
|
|
2364
2411
|
steps: [],
|
|
2412
|
+
class: "",
|
|
2365
2413
|
};
|
|
2366
2414
|
}
|
|
2367
2415
|
exports.AdminNotificationWorkflow = {
|
|
@@ -2405,6 +2453,9 @@ exports.AdminNotificationWorkflow = {
|
|
|
2405
2453
|
for (const v of message.steps) {
|
|
2406
2454
|
exports.AdminNotificationWorkflowStep.encode(v, writer.uint32(106).fork()).join();
|
|
2407
2455
|
}
|
|
2456
|
+
if (message.class !== "") {
|
|
2457
|
+
writer.uint32(114).string(message.class);
|
|
2458
|
+
}
|
|
2408
2459
|
return writer;
|
|
2409
2460
|
},
|
|
2410
2461
|
decode(input, length) {
|
|
@@ -2505,6 +2556,13 @@ exports.AdminNotificationWorkflow = {
|
|
|
2505
2556
|
message.steps.push(exports.AdminNotificationWorkflowStep.decode(reader, reader.uint32()));
|
|
2506
2557
|
continue;
|
|
2507
2558
|
}
|
|
2559
|
+
case 14: {
|
|
2560
|
+
if (tag !== 114) {
|
|
2561
|
+
break;
|
|
2562
|
+
}
|
|
2563
|
+
message.class = reader.string();
|
|
2564
|
+
continue;
|
|
2565
|
+
}
|
|
2508
2566
|
}
|
|
2509
2567
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2510
2568
|
break;
|
|
@@ -2532,6 +2590,7 @@ exports.AdminNotificationWorkflow = {
|
|
|
2532
2590
|
steps: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.steps)
|
|
2533
2591
|
? object.steps.map((e) => exports.AdminNotificationWorkflowStep.fromJSON(e))
|
|
2534
2592
|
: [],
|
|
2593
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
2535
2594
|
};
|
|
2536
2595
|
},
|
|
2537
2596
|
toJSON(message) {
|
|
@@ -2576,13 +2635,16 @@ exports.AdminNotificationWorkflow = {
|
|
|
2576
2635
|
if ((_a = message.steps) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2577
2636
|
obj.steps = message.steps.map((e) => exports.AdminNotificationWorkflowStep.toJSON(e));
|
|
2578
2637
|
}
|
|
2638
|
+
if (message.class !== "") {
|
|
2639
|
+
obj.class = message.class;
|
|
2640
|
+
}
|
|
2579
2641
|
return obj;
|
|
2580
2642
|
},
|
|
2581
2643
|
create(base) {
|
|
2582
2644
|
return exports.AdminNotificationWorkflow.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2583
2645
|
},
|
|
2584
2646
|
fromPartial(object) {
|
|
2585
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2647
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2586
2648
|
const message = createBaseAdminNotificationWorkflow();
|
|
2587
2649
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
2588
2650
|
message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
|
|
@@ -2597,11 +2659,12 @@ exports.AdminNotificationWorkflow = {
|
|
|
2597
2659
|
message.createdAt = (_l = object.createdAt) !== null && _l !== void 0 ? _l : "";
|
|
2598
2660
|
message.updatedAt = (_m = object.updatedAt) !== null && _m !== void 0 ? _m : "";
|
|
2599
2661
|
message.steps = ((_o = object.steps) === null || _o === void 0 ? void 0 : _o.map((e) => exports.AdminNotificationWorkflowStep.fromPartial(e))) || [];
|
|
2662
|
+
message.class = (_p = object.class) !== null && _p !== void 0 ? _p : "";
|
|
2600
2663
|
return message;
|
|
2601
2664
|
},
|
|
2602
2665
|
};
|
|
2603
2666
|
function createBaseListNotificationWorkflowsRequest() {
|
|
2604
|
-
return { pagination: undefined, category: "", activity: "" };
|
|
2667
|
+
return { pagination: undefined, category: "", activity: "", class: "" };
|
|
2605
2668
|
}
|
|
2606
2669
|
exports.ListNotificationWorkflowsRequest = {
|
|
2607
2670
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -2614,6 +2677,9 @@ exports.ListNotificationWorkflowsRequest = {
|
|
|
2614
2677
|
if (message.activity !== "") {
|
|
2615
2678
|
writer.uint32(26).string(message.activity);
|
|
2616
2679
|
}
|
|
2680
|
+
if (message.class !== "") {
|
|
2681
|
+
writer.uint32(34).string(message.class);
|
|
2682
|
+
}
|
|
2617
2683
|
return writer;
|
|
2618
2684
|
},
|
|
2619
2685
|
decode(input, length) {
|
|
@@ -2644,6 +2710,13 @@ exports.ListNotificationWorkflowsRequest = {
|
|
|
2644
2710
|
message.activity = reader.string();
|
|
2645
2711
|
continue;
|
|
2646
2712
|
}
|
|
2713
|
+
case 4: {
|
|
2714
|
+
if (tag !== 34) {
|
|
2715
|
+
break;
|
|
2716
|
+
}
|
|
2717
|
+
message.class = reader.string();
|
|
2718
|
+
continue;
|
|
2719
|
+
}
|
|
2647
2720
|
}
|
|
2648
2721
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2649
2722
|
break;
|
|
@@ -2657,6 +2730,7 @@ exports.ListNotificationWorkflowsRequest = {
|
|
|
2657
2730
|
pagination: isSet(object.pagination) ? common_1.BaseListRequest.fromJSON(object.pagination) : undefined,
|
|
2658
2731
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
2659
2732
|
activity: isSet(object.activity) ? globalThis.String(object.activity) : "",
|
|
2733
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
2660
2734
|
};
|
|
2661
2735
|
},
|
|
2662
2736
|
toJSON(message) {
|
|
@@ -2670,19 +2744,23 @@ exports.ListNotificationWorkflowsRequest = {
|
|
|
2670
2744
|
if (message.activity !== "") {
|
|
2671
2745
|
obj.activity = message.activity;
|
|
2672
2746
|
}
|
|
2747
|
+
if (message.class !== "") {
|
|
2748
|
+
obj.class = message.class;
|
|
2749
|
+
}
|
|
2673
2750
|
return obj;
|
|
2674
2751
|
},
|
|
2675
2752
|
create(base) {
|
|
2676
2753
|
return exports.ListNotificationWorkflowsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2677
2754
|
},
|
|
2678
2755
|
fromPartial(object) {
|
|
2679
|
-
var _a, _b;
|
|
2756
|
+
var _a, _b, _c;
|
|
2680
2757
|
const message = createBaseListNotificationWorkflowsRequest();
|
|
2681
2758
|
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
2682
2759
|
? common_1.BaseListRequest.fromPartial(object.pagination)
|
|
2683
2760
|
: undefined;
|
|
2684
2761
|
message.category = (_a = object.category) !== null && _a !== void 0 ? _a : "";
|
|
2685
2762
|
message.activity = (_b = object.activity) !== null && _b !== void 0 ? _b : "";
|
|
2763
|
+
message.class = (_c = object.class) !== null && _c !== void 0 ? _c : "";
|
|
2686
2764
|
return message;
|
|
2687
2765
|
},
|
|
2688
2766
|
};
|
|
@@ -2958,6 +3036,7 @@ function createBaseUpsertNotificationWorkflowRequest() {
|
|
|
2958
3036
|
allowExternalPush: false,
|
|
2959
3037
|
metadata: undefined,
|
|
2960
3038
|
steps: [],
|
|
3039
|
+
class: "",
|
|
2961
3040
|
};
|
|
2962
3041
|
}
|
|
2963
3042
|
exports.UpsertNotificationWorkflowRequest = {
|
|
@@ -2995,6 +3074,9 @@ exports.UpsertNotificationWorkflowRequest = {
|
|
|
2995
3074
|
for (const v of message.steps) {
|
|
2996
3075
|
exports.UpsertNotificationWorkflowStepRequest.encode(v, writer.uint32(90).fork()).join();
|
|
2997
3076
|
}
|
|
3077
|
+
if (message.class !== "") {
|
|
3078
|
+
writer.uint32(98).string(message.class);
|
|
3079
|
+
}
|
|
2998
3080
|
return writer;
|
|
2999
3081
|
},
|
|
3000
3082
|
decode(input, length) {
|
|
@@ -3081,6 +3163,13 @@ exports.UpsertNotificationWorkflowRequest = {
|
|
|
3081
3163
|
message.steps.push(exports.UpsertNotificationWorkflowStepRequest.decode(reader, reader.uint32()));
|
|
3082
3164
|
continue;
|
|
3083
3165
|
}
|
|
3166
|
+
case 12: {
|
|
3167
|
+
if (tag !== 98) {
|
|
3168
|
+
break;
|
|
3169
|
+
}
|
|
3170
|
+
message.class = reader.string();
|
|
3171
|
+
continue;
|
|
3172
|
+
}
|
|
3084
3173
|
}
|
|
3085
3174
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3086
3175
|
break;
|
|
@@ -3106,6 +3195,7 @@ exports.UpsertNotificationWorkflowRequest = {
|
|
|
3106
3195
|
steps: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.steps)
|
|
3107
3196
|
? object.steps.map((e) => exports.UpsertNotificationWorkflowStepRequest.fromJSON(e))
|
|
3108
3197
|
: [],
|
|
3198
|
+
class: isSet(object.class) ? globalThis.String(object.class) : "",
|
|
3109
3199
|
};
|
|
3110
3200
|
},
|
|
3111
3201
|
toJSON(message) {
|
|
@@ -3144,13 +3234,16 @@ exports.UpsertNotificationWorkflowRequest = {
|
|
|
3144
3234
|
if ((_a = message.steps) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3145
3235
|
obj.steps = message.steps.map((e) => exports.UpsertNotificationWorkflowStepRequest.toJSON(e));
|
|
3146
3236
|
}
|
|
3237
|
+
if (message.class !== "") {
|
|
3238
|
+
obj.class = message.class;
|
|
3239
|
+
}
|
|
3147
3240
|
return obj;
|
|
3148
3241
|
},
|
|
3149
3242
|
create(base) {
|
|
3150
3243
|
return exports.UpsertNotificationWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3151
3244
|
},
|
|
3152
3245
|
fromPartial(object) {
|
|
3153
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3246
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3154
3247
|
const message = createBaseUpsertNotificationWorkflowRequest();
|
|
3155
3248
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
3156
3249
|
message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
|
|
@@ -3163,6 +3256,7 @@ exports.UpsertNotificationWorkflowRequest = {
|
|
|
3163
3256
|
message.allowExternalPush = (_j = object.allowExternalPush) !== null && _j !== void 0 ? _j : false;
|
|
3164
3257
|
message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
|
|
3165
3258
|
message.steps = ((_l = object.steps) === null || _l === void 0 ? void 0 : _l.map((e) => exports.UpsertNotificationWorkflowStepRequest.fromPartial(e))) || [];
|
|
3259
|
+
message.class = (_m = object.class) !== null && _m !== void 0 ? _m : "";
|
|
3166
3260
|
return message;
|
|
3167
3261
|
},
|
|
3168
3262
|
};
|