@conduitplatform/grpc-sdk 0.15.17 → 0.15.19

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.
Files changed (138) hide show
  1. package/dist/classes/ConduitActiveSchema.js +25 -43
  2. package/dist/classes/ConduitActiveSchema.js.map +1 -1
  3. package/dist/classes/ConduitAuthorizedResource.js +5 -6
  4. package/dist/classes/ConduitAuthorizedResource.js.map +1 -1
  5. package/dist/classes/ConduitModule.js +44 -138
  6. package/dist/classes/ConduitModule.js.map +1 -1
  7. package/dist/classes/ConduitSchema.js +3 -4
  8. package/dist/classes/ConduitSchema.js.map +1 -1
  9. package/dist/classes/ConduitServiceModule.js +39 -98
  10. package/dist/classes/ConduitServiceModule.js.map +1 -1
  11. package/dist/classes/ConfigController.js +10 -17
  12. package/dist/classes/ConfigController.js.map +1 -1
  13. package/dist/classes/Error.js +17 -40
  14. package/dist/classes/Error.js.map +1 -1
  15. package/dist/classes/GrpcServer.js +88 -172
  16. package/dist/classes/GrpcServer.js.map +1 -1
  17. package/dist/classes/HealthCheck.js +26 -72
  18. package/dist/classes/HealthCheck.js.map +1 -1
  19. package/dist/classes/ManagedModule.js +93 -245
  20. package/dist/classes/ManagedModule.js.map +1 -1
  21. package/dist/classes/ModuleManager.js +51 -149
  22. package/dist/classes/ModuleManager.js.map +1 -1
  23. package/dist/helpers/GrpcHelper.js +11 -11
  24. package/dist/helpers/GrpcHelper.js.map +1 -1
  25. package/dist/helpers/TypeHelpers.js +57 -119
  26. package/dist/helpers/TypeHelpers.js.map +1 -1
  27. package/dist/helpers/wrapGrpcFunctions.js +14 -15
  28. package/dist/helpers/wrapGrpcFunctions.js.map +1 -1
  29. package/dist/index.js +299 -467
  30. package/dist/index.js.map +1 -1
  31. package/dist/interceptors/grpcSignedToken.js +7 -79
  32. package/dist/interceptors/grpcSignedToken.js.map +1 -1
  33. package/dist/interceptors/moduleName.js +7 -79
  34. package/dist/interceptors/moduleName.js.map +1 -1
  35. package/dist/metrics/MetricsServer.js +25 -70
  36. package/dist/metrics/MetricsServer.js.map +1 -1
  37. package/dist/metrics/clientMiddleware.js +76 -217
  38. package/dist/metrics/clientMiddleware.js.map +1 -1
  39. package/dist/metrics/config/defaults.js +1 -1
  40. package/dist/metrics/config/defaults.js.map +1 -1
  41. package/dist/metrics/index.js +53 -89
  42. package/dist/metrics/index.js.map +1 -1
  43. package/dist/modules/admin/index.js +16 -34
  44. package/dist/modules/admin/index.js.map +1 -1
  45. package/dist/modules/authentication/index.js +20 -39
  46. package/dist/modules/authentication/index.js.map +1 -1
  47. package/dist/modules/authorization/index.js +29 -47
  48. package/dist/modules/authorization/index.js.map +1 -1
  49. package/dist/modules/chat/index.js +16 -34
  50. package/dist/modules/chat/index.js.map +1 -1
  51. package/dist/modules/config/index.js +70 -175
  52. package/dist/modules/config/index.js.map +1 -1
  53. package/dist/modules/core/index.js +8 -26
  54. package/dist/modules/core/index.js.map +1 -1
  55. package/dist/modules/database/index.js +80 -122
  56. package/dist/modules/database/index.js.map +1 -1
  57. package/dist/modules/email/index.js +15 -33
  58. package/dist/modules/email/index.js.map +1 -1
  59. package/dist/modules/forms/index.js +8 -26
  60. package/dist/modules/forms/index.js.map +1 -1
  61. package/dist/modules/functions/index.js +8 -26
  62. package/dist/modules/functions/index.js.map +1 -1
  63. package/dist/modules/pushNotifications/index.js +38 -56
  64. package/dist/modules/pushNotifications/index.js.map +1 -1
  65. package/dist/modules/router/index.js +18 -36
  66. package/dist/modules/router/index.js.map +1 -1
  67. package/dist/modules/sms/index.js +17 -35
  68. package/dist/modules/sms/index.js.map +1 -1
  69. package/dist/modules/storage/index.js +17 -36
  70. package/dist/modules/storage/index.js.map +1 -1
  71. package/dist/protoUtils/authentication.d.ts +1 -1
  72. package/dist/protoUtils/authentication.js +188 -169
  73. package/dist/protoUtils/authentication.js.map +1 -1
  74. package/dist/protoUtils/authorization.d.ts +1 -1
  75. package/dist/protoUtils/authorization.js +332 -391
  76. package/dist/protoUtils/authorization.js.map +1 -1
  77. package/dist/protoUtils/chat.d.ts +1 -1
  78. package/dist/protoUtils/chat.js +176 -212
  79. package/dist/protoUtils/chat.js.map +1 -1
  80. package/dist/protoUtils/core.d.ts +1 -1
  81. package/dist/protoUtils/core.js +643 -605
  82. package/dist/protoUtils/core.js.map +1 -1
  83. package/dist/protoUtils/database.d.ts +1 -1
  84. package/dist/protoUtils/database.js +563 -554
  85. package/dist/protoUtils/database.js.map +1 -1
  86. package/dist/protoUtils/email.d.ts +1 -1
  87. package/dist/protoUtils/email.js +180 -208
  88. package/dist/protoUtils/email.js.map +1 -1
  89. package/dist/protoUtils/forms.d.ts +1 -1
  90. package/dist/protoUtils/forms.js +37 -35
  91. package/dist/protoUtils/forms.js.map +1 -1
  92. package/dist/protoUtils/functions.d.ts +1 -1
  93. package/dist/protoUtils/functions.js +37 -35
  94. package/dist/protoUtils/functions.js.map +1 -1
  95. package/dist/protoUtils/grpc_health_check.d.ts +1 -1
  96. package/dist/protoUtils/grpc_health_check.js +36 -34
  97. package/dist/protoUtils/grpc_health_check.js.map +1 -1
  98. package/dist/protoUtils/push-notifications.d.ts +1 -1
  99. package/dist/protoUtils/push-notifications.js +252 -272
  100. package/dist/protoUtils/push-notifications.js.map +1 -1
  101. package/dist/protoUtils/router.d.ts +1 -1
  102. package/dist/protoUtils/router.js +381 -387
  103. package/dist/protoUtils/router.js.map +1 -1
  104. package/dist/protoUtils/sms.d.ts +1 -1
  105. package/dist/protoUtils/sms.js +155 -143
  106. package/dist/protoUtils/sms.js.map +1 -1
  107. package/dist/protoUtils/storage.d.ts +1 -1
  108. package/dist/protoUtils/storage.js +190 -164
  109. package/dist/protoUtils/storage.js.map +1 -1
  110. package/dist/routing/ConduitRouteReturn.js +9 -18
  111. package/dist/routing/ConduitRouteReturn.js.map +1 -1
  112. package/dist/routing/ProxyRouteBuilder.js +21 -24
  113. package/dist/routing/ProxyRouteBuilder.js.map +1 -1
  114. package/dist/routing/RouteBuilder.js +31 -34
  115. package/dist/routing/RouteBuilder.js.map +1 -1
  116. package/dist/routing/RoutingManager.js +65 -115
  117. package/dist/routing/RoutingManager.js.map +1 -1
  118. package/dist/routing/RoutingUtilities.js +3 -3
  119. package/dist/routing/RoutingUtilities.js.map +1 -1
  120. package/dist/routing/wrapRouterFunctions.js +25 -34
  121. package/dist/routing/wrapRouterFunctions.js.map +1 -1
  122. package/dist/types/index.js +6 -24
  123. package/dist/types/index.js.map +1 -1
  124. package/dist/utilities/EventBus.js +16 -17
  125. package/dist/utilities/EventBus.js.map +1 -1
  126. package/dist/utilities/Logger.js +80 -180
  127. package/dist/utilities/Logger.js.map +1 -1
  128. package/dist/utilities/RedisManager.js +11 -21
  129. package/dist/utilities/RedisManager.js.map +1 -1
  130. package/dist/utilities/StateManager.js +13 -14
  131. package/dist/utilities/StateManager.js.map +1 -1
  132. package/dist/utilities/linearBackoffTimeout.js +28 -92
  133. package/dist/utilities/linearBackoffTimeout.js.map +1 -1
  134. package/dist/utilities/merge.js +2 -2
  135. package/dist/utilities/merge.js.map +1 -1
  136. package/dist/utilities/sleep.js +1 -1
  137. package/dist/utilities/sleep.js.map +1 -1
  138. package/package.json +1 -1
@@ -1,69 +1,59 @@
1
1
  "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
9
- }
10
- };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
16
5
  Object.defineProperty(exports, "__esModule", { value: true });
17
6
  exports.PushNotificationsDefinition = exports.SendNotificationResponse = exports.SendManyNotificationsRequest = exports.SendNotificationToManyDevicesRequest = exports.SendNotificationRequest = exports.GetNotificationTokensResponse = exports.GetNotificationTokensRequest = exports.SetNotificationTokenResponse = exports.SetNotificationTokenRequest = exports.SetConfigResponse = exports.SetConfigRequest = exports.protobufPackage = void 0;
18
7
  /* eslint-disable */
19
- var minimal_1 = __importDefault(require("protobufjs/minimal"));
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
20
9
  exports.protobufPackage = "pushnotifications";
21
10
  function createBaseSetConfigRequest() {
22
11
  return { newConfig: "" };
23
12
  }
24
13
  exports.SetConfigRequest = {
25
- encode: function (message, writer) {
26
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
27
15
  if (message.newConfig !== "") {
28
16
  writer.uint32(10).string(message.newConfig);
29
17
  }
30
18
  return writer;
31
19
  },
32
- decode: function (input, length) {
33
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
34
- var end = length === undefined ? reader.len : reader.pos + length;
35
- var message = createBaseSetConfigRequest();
20
+ decode(input, length) {
21
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBaseSetConfigRequest();
36
24
  while (reader.pos < end) {
37
- var tag = reader.uint32();
25
+ const tag = reader.uint32();
38
26
  switch (tag >>> 3) {
39
27
  case 1:
40
- if (tag != 10) {
28
+ if (tag !== 10) {
41
29
  break;
42
30
  }
43
31
  message.newConfig = reader.string();
44
32
  continue;
45
33
  }
46
- if ((tag & 7) == 4 || tag == 0) {
34
+ if ((tag & 7) === 4 || tag === 0) {
47
35
  break;
48
36
  }
49
37
  reader.skipType(tag & 7);
50
38
  }
51
39
  return message;
52
40
  },
53
- fromJSON: function (object) {
54
- return { newConfig: isSet(object.newConfig) ? String(object.newConfig) : "" };
41
+ fromJSON(object) {
42
+ return { newConfig: isSet(object.newConfig) ? globalThis.String(object.newConfig) : "" };
55
43
  },
56
- toJSON: function (message) {
57
- var obj = {};
58
- message.newConfig !== undefined && (obj.newConfig = message.newConfig);
44
+ toJSON(message) {
45
+ const obj = {};
46
+ if (message.newConfig !== "") {
47
+ obj.newConfig = message.newConfig;
48
+ }
59
49
  return obj;
60
50
  },
61
- create: function (base) {
51
+ create(base) {
62
52
  return exports.SetConfigRequest.fromPartial(base !== null && base !== void 0 ? base : {});
63
53
  },
64
- fromPartial: function (object) {
54
+ fromPartial(object) {
65
55
  var _a;
66
- var message = createBaseSetConfigRequest();
56
+ const message = createBaseSetConfigRequest();
67
57
  message.newConfig = (_a = object.newConfig) !== null && _a !== void 0 ? _a : "";
68
58
  return message;
69
59
  },
@@ -72,48 +62,49 @@ function createBaseSetConfigResponse() {
72
62
  return { updatedConfig: "" };
73
63
  }
74
64
  exports.SetConfigResponse = {
75
- encode: function (message, writer) {
76
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
65
+ encode(message, writer = minimal_1.default.Writer.create()) {
77
66
  if (message.updatedConfig !== "") {
78
67
  writer.uint32(10).string(message.updatedConfig);
79
68
  }
80
69
  return writer;
81
70
  },
82
- decode: function (input, length) {
83
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
84
- var end = length === undefined ? reader.len : reader.pos + length;
85
- var message = createBaseSetConfigResponse();
71
+ decode(input, length) {
72
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
73
+ let end = length === undefined ? reader.len : reader.pos + length;
74
+ const message = createBaseSetConfigResponse();
86
75
  while (reader.pos < end) {
87
- var tag = reader.uint32();
76
+ const tag = reader.uint32();
88
77
  switch (tag >>> 3) {
89
78
  case 1:
90
- if (tag != 10) {
79
+ if (tag !== 10) {
91
80
  break;
92
81
  }
93
82
  message.updatedConfig = reader.string();
94
83
  continue;
95
84
  }
96
- if ((tag & 7) == 4 || tag == 0) {
85
+ if ((tag & 7) === 4 || tag === 0) {
97
86
  break;
98
87
  }
99
88
  reader.skipType(tag & 7);
100
89
  }
101
90
  return message;
102
91
  },
103
- fromJSON: function (object) {
104
- return { updatedConfig: isSet(object.updatedConfig) ? String(object.updatedConfig) : "" };
92
+ fromJSON(object) {
93
+ return { updatedConfig: isSet(object.updatedConfig) ? globalThis.String(object.updatedConfig) : "" };
105
94
  },
106
- toJSON: function (message) {
107
- var obj = {};
108
- message.updatedConfig !== undefined && (obj.updatedConfig = message.updatedConfig);
95
+ toJSON(message) {
96
+ const obj = {};
97
+ if (message.updatedConfig !== "") {
98
+ obj.updatedConfig = message.updatedConfig;
99
+ }
109
100
  return obj;
110
101
  },
111
- create: function (base) {
102
+ create(base) {
112
103
  return exports.SetConfigResponse.fromPartial(base !== null && base !== void 0 ? base : {});
113
104
  },
114
- fromPartial: function (object) {
105
+ fromPartial(object) {
115
106
  var _a;
116
- var message = createBaseSetConfigResponse();
107
+ const message = createBaseSetConfigResponse();
117
108
  message.updatedConfig = (_a = object.updatedConfig) !== null && _a !== void 0 ? _a : "";
118
109
  return message;
119
110
  },
@@ -122,8 +113,7 @@ function createBaseSetNotificationTokenRequest() {
122
113
  return { token: "", platform: "", userId: "" };
123
114
  }
124
115
  exports.SetNotificationTokenRequest = {
125
- encode: function (message, writer) {
126
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
116
+ encode(message, writer = minimal_1.default.Writer.create()) {
127
117
  if (message.token !== "") {
128
118
  writer.uint32(10).string(message.token);
129
119
  }
@@ -135,59 +125,65 @@ exports.SetNotificationTokenRequest = {
135
125
  }
136
126
  return writer;
137
127
  },
138
- decode: function (input, length) {
139
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
140
- var end = length === undefined ? reader.len : reader.pos + length;
141
- var message = createBaseSetNotificationTokenRequest();
128
+ decode(input, length) {
129
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
130
+ let end = length === undefined ? reader.len : reader.pos + length;
131
+ const message = createBaseSetNotificationTokenRequest();
142
132
  while (reader.pos < end) {
143
- var tag = reader.uint32();
133
+ const tag = reader.uint32();
144
134
  switch (tag >>> 3) {
145
135
  case 1:
146
- if (tag != 10) {
136
+ if (tag !== 10) {
147
137
  break;
148
138
  }
149
139
  message.token = reader.string();
150
140
  continue;
151
141
  case 2:
152
- if (tag != 18) {
142
+ if (tag !== 18) {
153
143
  break;
154
144
  }
155
145
  message.platform = reader.string();
156
146
  continue;
157
147
  case 3:
158
- if (tag != 26) {
148
+ if (tag !== 26) {
159
149
  break;
160
150
  }
161
151
  message.userId = reader.string();
162
152
  continue;
163
153
  }
164
- if ((tag & 7) == 4 || tag == 0) {
154
+ if ((tag & 7) === 4 || tag === 0) {
165
155
  break;
166
156
  }
167
157
  reader.skipType(tag & 7);
168
158
  }
169
159
  return message;
170
160
  },
171
- fromJSON: function (object) {
161
+ fromJSON(object) {
172
162
  return {
173
- token: isSet(object.token) ? String(object.token) : "",
174
- platform: isSet(object.platform) ? String(object.platform) : "",
175
- userId: isSet(object.userId) ? String(object.userId) : "",
163
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
164
+ platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
165
+ userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
176
166
  };
177
167
  },
178
- toJSON: function (message) {
179
- var obj = {};
180
- message.token !== undefined && (obj.token = message.token);
181
- message.platform !== undefined && (obj.platform = message.platform);
182
- message.userId !== undefined && (obj.userId = message.userId);
168
+ toJSON(message) {
169
+ const obj = {};
170
+ if (message.token !== "") {
171
+ obj.token = message.token;
172
+ }
173
+ if (message.platform !== "") {
174
+ obj.platform = message.platform;
175
+ }
176
+ if (message.userId !== "") {
177
+ obj.userId = message.userId;
178
+ }
183
179
  return obj;
184
180
  },
185
- create: function (base) {
181
+ create(base) {
186
182
  return exports.SetNotificationTokenRequest.fromPartial(base !== null && base !== void 0 ? base : {});
187
183
  },
188
- fromPartial: function (object) {
184
+ fromPartial(object) {
189
185
  var _a, _b, _c;
190
- var message = createBaseSetNotificationTokenRequest();
186
+ const message = createBaseSetNotificationTokenRequest();
191
187
  message.token = (_a = object.token) !== null && _a !== void 0 ? _a : "";
192
188
  message.platform = (_b = object.platform) !== null && _b !== void 0 ? _b : "";
193
189
  message.userId = (_c = object.userId) !== null && _c !== void 0 ? _c : "";
@@ -198,48 +194,49 @@ function createBaseSetNotificationTokenResponse() {
198
194
  return { newTokenDocument: "" };
199
195
  }
200
196
  exports.SetNotificationTokenResponse = {
201
- encode: function (message, writer) {
202
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
197
+ encode(message, writer = minimal_1.default.Writer.create()) {
203
198
  if (message.newTokenDocument !== "") {
204
199
  writer.uint32(10).string(message.newTokenDocument);
205
200
  }
206
201
  return writer;
207
202
  },
208
- decode: function (input, length) {
209
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
210
- var end = length === undefined ? reader.len : reader.pos + length;
211
- var message = createBaseSetNotificationTokenResponse();
203
+ decode(input, length) {
204
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
205
+ let end = length === undefined ? reader.len : reader.pos + length;
206
+ const message = createBaseSetNotificationTokenResponse();
212
207
  while (reader.pos < end) {
213
- var tag = reader.uint32();
208
+ const tag = reader.uint32();
214
209
  switch (tag >>> 3) {
215
210
  case 1:
216
- if (tag != 10) {
211
+ if (tag !== 10) {
217
212
  break;
218
213
  }
219
214
  message.newTokenDocument = reader.string();
220
215
  continue;
221
216
  }
222
- if ((tag & 7) == 4 || tag == 0) {
217
+ if ((tag & 7) === 4 || tag === 0) {
223
218
  break;
224
219
  }
225
220
  reader.skipType(tag & 7);
226
221
  }
227
222
  return message;
228
223
  },
229
- fromJSON: function (object) {
230
- return { newTokenDocument: isSet(object.newTokenDocument) ? String(object.newTokenDocument) : "" };
224
+ fromJSON(object) {
225
+ return { newTokenDocument: isSet(object.newTokenDocument) ? globalThis.String(object.newTokenDocument) : "" };
231
226
  },
232
- toJSON: function (message) {
233
- var obj = {};
234
- message.newTokenDocument !== undefined && (obj.newTokenDocument = message.newTokenDocument);
227
+ toJSON(message) {
228
+ const obj = {};
229
+ if (message.newTokenDocument !== "") {
230
+ obj.newTokenDocument = message.newTokenDocument;
231
+ }
235
232
  return obj;
236
233
  },
237
- create: function (base) {
234
+ create(base) {
238
235
  return exports.SetNotificationTokenResponse.fromPartial(base !== null && base !== void 0 ? base : {});
239
236
  },
240
- fromPartial: function (object) {
237
+ fromPartial(object) {
241
238
  var _a;
242
- var message = createBaseSetNotificationTokenResponse();
239
+ const message = createBaseSetNotificationTokenResponse();
243
240
  message.newTokenDocument = (_a = object.newTokenDocument) !== null && _a !== void 0 ? _a : "";
244
241
  return message;
245
242
  },
@@ -248,48 +245,49 @@ function createBaseGetNotificationTokensRequest() {
248
245
  return { userId: "" };
249
246
  }
250
247
  exports.GetNotificationTokensRequest = {
251
- encode: function (message, writer) {
252
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
248
+ encode(message, writer = minimal_1.default.Writer.create()) {
253
249
  if (message.userId !== "") {
254
250
  writer.uint32(10).string(message.userId);
255
251
  }
256
252
  return writer;
257
253
  },
258
- decode: function (input, length) {
259
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
260
- var end = length === undefined ? reader.len : reader.pos + length;
261
- var message = createBaseGetNotificationTokensRequest();
254
+ decode(input, length) {
255
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
256
+ let end = length === undefined ? reader.len : reader.pos + length;
257
+ const message = createBaseGetNotificationTokensRequest();
262
258
  while (reader.pos < end) {
263
- var tag = reader.uint32();
259
+ const tag = reader.uint32();
264
260
  switch (tag >>> 3) {
265
261
  case 1:
266
- if (tag != 10) {
262
+ if (tag !== 10) {
267
263
  break;
268
264
  }
269
265
  message.userId = reader.string();
270
266
  continue;
271
267
  }
272
- if ((tag & 7) == 4 || tag == 0) {
268
+ if ((tag & 7) === 4 || tag === 0) {
273
269
  break;
274
270
  }
275
271
  reader.skipType(tag & 7);
276
272
  }
277
273
  return message;
278
274
  },
279
- fromJSON: function (object) {
280
- return { userId: isSet(object.userId) ? String(object.userId) : "" };
275
+ fromJSON(object) {
276
+ return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" };
281
277
  },
282
- toJSON: function (message) {
283
- var obj = {};
284
- message.userId !== undefined && (obj.userId = message.userId);
278
+ toJSON(message) {
279
+ const obj = {};
280
+ if (message.userId !== "") {
281
+ obj.userId = message.userId;
282
+ }
285
283
  return obj;
286
284
  },
287
- create: function (base) {
285
+ create(base) {
288
286
  return exports.GetNotificationTokensRequest.fromPartial(base !== null && base !== void 0 ? base : {});
289
287
  },
290
- fromPartial: function (object) {
288
+ fromPartial(object) {
291
289
  var _a;
292
- var message = createBaseGetNotificationTokensRequest();
290
+ const message = createBaseGetNotificationTokensRequest();
293
291
  message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
294
292
  return message;
295
293
  },
@@ -298,67 +296,55 @@ function createBaseGetNotificationTokensResponse() {
298
296
  return { tokenDocuments: [] };
299
297
  }
300
298
  exports.GetNotificationTokensResponse = {
301
- encode: function (message, writer) {
302
- var e_1, _a;
303
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
304
- try {
305
- for (var _b = __values(message.tokenDocuments), _c = _b.next(); !_c.done; _c = _b.next()) {
306
- var v = _c.value;
307
- writer.uint32(10).string(v);
308
- }
309
- }
310
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
311
- finally {
312
- try {
313
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
314
- }
315
- finally { if (e_1) throw e_1.error; }
299
+ encode(message, writer = minimal_1.default.Writer.create()) {
300
+ for (const v of message.tokenDocuments) {
301
+ writer.uint32(10).string(v);
316
302
  }
317
303
  return writer;
318
304
  },
319
- decode: function (input, length) {
320
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
321
- var end = length === undefined ? reader.len : reader.pos + length;
322
- var message = createBaseGetNotificationTokensResponse();
305
+ decode(input, length) {
306
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
307
+ let end = length === undefined ? reader.len : reader.pos + length;
308
+ const message = createBaseGetNotificationTokensResponse();
323
309
  while (reader.pos < end) {
324
- var tag = reader.uint32();
310
+ const tag = reader.uint32();
325
311
  switch (tag >>> 3) {
326
312
  case 1:
327
- if (tag != 10) {
313
+ if (tag !== 10) {
328
314
  break;
329
315
  }
330
316
  message.tokenDocuments.push(reader.string());
331
317
  continue;
332
318
  }
333
- if ((tag & 7) == 4 || tag == 0) {
319
+ if ((tag & 7) === 4 || tag === 0) {
334
320
  break;
335
321
  }
336
322
  reader.skipType(tag & 7);
337
323
  }
338
324
  return message;
339
325
  },
340
- fromJSON: function (object) {
326
+ fromJSON(object) {
341
327
  return {
342
- tokenDocuments: Array.isArray(object === null || object === void 0 ? void 0 : object.tokenDocuments) ? object.tokenDocuments.map(function (e) { return String(e); }) : [],
328
+ tokenDocuments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tokenDocuments)
329
+ ? object.tokenDocuments.map((e) => globalThis.String(e))
330
+ : [],
343
331
  };
344
332
  },
345
- toJSON: function (message) {
346
- var obj = {};
347
- if (message.tokenDocuments) {
348
- obj.tokenDocuments = message.tokenDocuments.map(function (e) { return e; });
349
- }
350
- else {
351
- obj.tokenDocuments = [];
333
+ toJSON(message) {
334
+ var _a;
335
+ const obj = {};
336
+ if ((_a = message.tokenDocuments) === null || _a === void 0 ? void 0 : _a.length) {
337
+ obj.tokenDocuments = message.tokenDocuments;
352
338
  }
353
339
  return obj;
354
340
  },
355
- create: function (base) {
341
+ create(base) {
356
342
  return exports.GetNotificationTokensResponse.fromPartial(base !== null && base !== void 0 ? base : {});
357
343
  },
358
- fromPartial: function (object) {
344
+ fromPartial(object) {
359
345
  var _a;
360
- var message = createBaseGetNotificationTokensResponse();
361
- message.tokenDocuments = ((_a = object.tokenDocuments) === null || _a === void 0 ? void 0 : _a.map(function (e) { return e; })) || [];
346
+ const message = createBaseGetNotificationTokensResponse();
347
+ message.tokenDocuments = ((_a = object.tokenDocuments) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
362
348
  return message;
363
349
  },
364
350
  };
@@ -366,8 +352,7 @@ function createBaseSendNotificationRequest() {
366
352
  return { sendTo: "", title: "", platform: undefined, body: undefined, data: undefined, doNotStore: undefined };
367
353
  }
368
354
  exports.SendNotificationRequest = {
369
- encode: function (message, writer) {
370
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
355
+ encode(message, writer = minimal_1.default.Writer.create()) {
371
356
  if (message.sendTo !== "") {
372
357
  writer.uint32(10).string(message.sendTo);
373
358
  }
@@ -388,83 +373,95 @@ exports.SendNotificationRequest = {
388
373
  }
389
374
  return writer;
390
375
  },
391
- decode: function (input, length) {
392
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
393
- var end = length === undefined ? reader.len : reader.pos + length;
394
- var message = createBaseSendNotificationRequest();
376
+ decode(input, length) {
377
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
378
+ let end = length === undefined ? reader.len : reader.pos + length;
379
+ const message = createBaseSendNotificationRequest();
395
380
  while (reader.pos < end) {
396
- var tag = reader.uint32();
381
+ const tag = reader.uint32();
397
382
  switch (tag >>> 3) {
398
383
  case 1:
399
- if (tag != 10) {
384
+ if (tag !== 10) {
400
385
  break;
401
386
  }
402
387
  message.sendTo = reader.string();
403
388
  continue;
404
389
  case 2:
405
- if (tag != 18) {
390
+ if (tag !== 18) {
406
391
  break;
407
392
  }
408
393
  message.title = reader.string();
409
394
  continue;
410
395
  case 3:
411
- if (tag != 26) {
396
+ if (tag !== 26) {
412
397
  break;
413
398
  }
414
399
  message.platform = reader.string();
415
400
  continue;
416
401
  case 4:
417
- if (tag != 34) {
402
+ if (tag !== 34) {
418
403
  break;
419
404
  }
420
405
  message.body = reader.string();
421
406
  continue;
422
407
  case 5:
423
- if (tag != 42) {
408
+ if (tag !== 42) {
424
409
  break;
425
410
  }
426
411
  message.data = reader.string();
427
412
  continue;
428
413
  case 6:
429
- if (tag != 48) {
414
+ if (tag !== 48) {
430
415
  break;
431
416
  }
432
417
  message.doNotStore = reader.bool();
433
418
  continue;
434
419
  }
435
- if ((tag & 7) == 4 || tag == 0) {
420
+ if ((tag & 7) === 4 || tag === 0) {
436
421
  break;
437
422
  }
438
423
  reader.skipType(tag & 7);
439
424
  }
440
425
  return message;
441
426
  },
442
- fromJSON: function (object) {
427
+ fromJSON(object) {
443
428
  return {
444
- sendTo: isSet(object.sendTo) ? String(object.sendTo) : "",
445
- title: isSet(object.title) ? String(object.title) : "",
446
- platform: isSet(object.platform) ? String(object.platform) : undefined,
447
- body: isSet(object.body) ? String(object.body) : undefined,
448
- data: isSet(object.data) ? String(object.data) : undefined,
449
- doNotStore: isSet(object.doNotStore) ? Boolean(object.doNotStore) : undefined,
429
+ sendTo: isSet(object.sendTo) ? globalThis.String(object.sendTo) : "",
430
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
431
+ platform: isSet(object.platform) ? globalThis.String(object.platform) : undefined,
432
+ body: isSet(object.body) ? globalThis.String(object.body) : undefined,
433
+ data: isSet(object.data) ? globalThis.String(object.data) : undefined,
434
+ doNotStore: isSet(object.doNotStore) ? globalThis.Boolean(object.doNotStore) : undefined,
450
435
  };
451
436
  },
452
- toJSON: function (message) {
453
- var obj = {};
454
- message.sendTo !== undefined && (obj.sendTo = message.sendTo);
455
- message.title !== undefined && (obj.title = message.title);
456
- message.platform !== undefined && (obj.platform = message.platform);
457
- message.body !== undefined && (obj.body = message.body);
458
- message.data !== undefined && (obj.data = message.data);
459
- message.doNotStore !== undefined && (obj.doNotStore = message.doNotStore);
437
+ toJSON(message) {
438
+ const obj = {};
439
+ if (message.sendTo !== "") {
440
+ obj.sendTo = message.sendTo;
441
+ }
442
+ if (message.title !== "") {
443
+ obj.title = message.title;
444
+ }
445
+ if (message.platform !== undefined) {
446
+ obj.platform = message.platform;
447
+ }
448
+ if (message.body !== undefined) {
449
+ obj.body = message.body;
450
+ }
451
+ if (message.data !== undefined) {
452
+ obj.data = message.data;
453
+ }
454
+ if (message.doNotStore !== undefined) {
455
+ obj.doNotStore = message.doNotStore;
456
+ }
460
457
  return obj;
461
458
  },
462
- create: function (base) {
459
+ create(base) {
463
460
  return exports.SendNotificationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
464
461
  },
465
- fromPartial: function (object) {
462
+ fromPartial(object) {
466
463
  var _a, _b, _c, _d, _e, _f;
467
- var message = createBaseSendNotificationRequest();
464
+ const message = createBaseSendNotificationRequest();
468
465
  message.sendTo = (_a = object.sendTo) !== null && _a !== void 0 ? _a : "";
469
466
  message.title = (_b = object.title) !== null && _b !== void 0 ? _b : "";
470
467
  message.platform = (_c = object.platform) !== null && _c !== void 0 ? _c : undefined;
@@ -478,21 +475,9 @@ function createBaseSendNotificationToManyDevicesRequest() {
478
475
  return { sendTo: [], title: "", body: undefined, data: undefined, platform: undefined, doNotStore: undefined };
479
476
  }
480
477
  exports.SendNotificationToManyDevicesRequest = {
481
- encode: function (message, writer) {
482
- var e_2, _a;
483
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
484
- try {
485
- for (var _b = __values(message.sendTo), _c = _b.next(); !_c.done; _c = _b.next()) {
486
- var v = _c.value;
487
- writer.uint32(10).string(v);
488
- }
489
- }
490
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
491
- finally {
492
- try {
493
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
494
- }
495
- finally { if (e_2) throw e_2.error; }
478
+ encode(message, writer = minimal_1.default.Writer.create()) {
479
+ for (const v of message.sendTo) {
480
+ writer.uint32(10).string(v);
496
481
  }
497
482
  if (message.title !== "") {
498
483
  writer.uint32(18).string(message.title);
@@ -511,89 +496,97 @@ exports.SendNotificationToManyDevicesRequest = {
511
496
  }
512
497
  return writer;
513
498
  },
514
- decode: function (input, length) {
515
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
516
- var end = length === undefined ? reader.len : reader.pos + length;
517
- var message = createBaseSendNotificationToManyDevicesRequest();
499
+ decode(input, length) {
500
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
501
+ let end = length === undefined ? reader.len : reader.pos + length;
502
+ const message = createBaseSendNotificationToManyDevicesRequest();
518
503
  while (reader.pos < end) {
519
- var tag = reader.uint32();
504
+ const tag = reader.uint32();
520
505
  switch (tag >>> 3) {
521
506
  case 1:
522
- if (tag != 10) {
507
+ if (tag !== 10) {
523
508
  break;
524
509
  }
525
510
  message.sendTo.push(reader.string());
526
511
  continue;
527
512
  case 2:
528
- if (tag != 18) {
513
+ if (tag !== 18) {
529
514
  break;
530
515
  }
531
516
  message.title = reader.string();
532
517
  continue;
533
518
  case 3:
534
- if (tag != 26) {
519
+ if (tag !== 26) {
535
520
  break;
536
521
  }
537
522
  message.body = reader.string();
538
523
  continue;
539
524
  case 4:
540
- if (tag != 34) {
525
+ if (tag !== 34) {
541
526
  break;
542
527
  }
543
528
  message.data = reader.string();
544
529
  continue;
545
530
  case 5:
546
- if (tag != 42) {
531
+ if (tag !== 42) {
547
532
  break;
548
533
  }
549
534
  message.platform = reader.string();
550
535
  continue;
551
536
  case 6:
552
- if (tag != 48) {
537
+ if (tag !== 48) {
553
538
  break;
554
539
  }
555
540
  message.doNotStore = reader.bool();
556
541
  continue;
557
542
  }
558
- if ((tag & 7) == 4 || tag == 0) {
543
+ if ((tag & 7) === 4 || tag === 0) {
559
544
  break;
560
545
  }
561
546
  reader.skipType(tag & 7);
562
547
  }
563
548
  return message;
564
549
  },
565
- fromJSON: function (object) {
550
+ fromJSON(object) {
566
551
  return {
567
- sendTo: Array.isArray(object === null || object === void 0 ? void 0 : object.sendTo) ? object.sendTo.map(function (e) { return String(e); }) : [],
568
- title: isSet(object.title) ? String(object.title) : "",
569
- body: isSet(object.body) ? String(object.body) : undefined,
570
- data: isSet(object.data) ? String(object.data) : undefined,
571
- platform: isSet(object.platform) ? String(object.platform) : undefined,
572
- doNotStore: isSet(object.doNotStore) ? Boolean(object.doNotStore) : undefined,
552
+ sendTo: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sendTo) ? object.sendTo.map((e) => globalThis.String(e)) : [],
553
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
554
+ body: isSet(object.body) ? globalThis.String(object.body) : undefined,
555
+ data: isSet(object.data) ? globalThis.String(object.data) : undefined,
556
+ platform: isSet(object.platform) ? globalThis.String(object.platform) : undefined,
557
+ doNotStore: isSet(object.doNotStore) ? globalThis.Boolean(object.doNotStore) : undefined,
573
558
  };
574
559
  },
575
- toJSON: function (message) {
576
- var obj = {};
577
- if (message.sendTo) {
578
- obj.sendTo = message.sendTo.map(function (e) { return e; });
560
+ toJSON(message) {
561
+ var _a;
562
+ const obj = {};
563
+ if ((_a = message.sendTo) === null || _a === void 0 ? void 0 : _a.length) {
564
+ obj.sendTo = message.sendTo;
565
+ }
566
+ if (message.title !== "") {
567
+ obj.title = message.title;
568
+ }
569
+ if (message.body !== undefined) {
570
+ obj.body = message.body;
571
+ }
572
+ if (message.data !== undefined) {
573
+ obj.data = message.data;
579
574
  }
580
- else {
581
- obj.sendTo = [];
575
+ if (message.platform !== undefined) {
576
+ obj.platform = message.platform;
577
+ }
578
+ if (message.doNotStore !== undefined) {
579
+ obj.doNotStore = message.doNotStore;
582
580
  }
583
- message.title !== undefined && (obj.title = message.title);
584
- message.body !== undefined && (obj.body = message.body);
585
- message.data !== undefined && (obj.data = message.data);
586
- message.platform !== undefined && (obj.platform = message.platform);
587
- message.doNotStore !== undefined && (obj.doNotStore = message.doNotStore);
588
581
  return obj;
589
582
  },
590
- create: function (base) {
583
+ create(base) {
591
584
  return exports.SendNotificationToManyDevicesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
592
585
  },
593
- fromPartial: function (object) {
586
+ fromPartial(object) {
594
587
  var _a, _b, _c, _d, _e, _f;
595
- var message = createBaseSendNotificationToManyDevicesRequest();
596
- message.sendTo = ((_a = object.sendTo) === null || _a === void 0 ? void 0 : _a.map(function (e) { return e; })) || [];
588
+ const message = createBaseSendNotificationToManyDevicesRequest();
589
+ message.sendTo = ((_a = object.sendTo) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
597
590
  message.title = (_b = object.title) !== null && _b !== void 0 ? _b : "";
598
591
  message.body = (_c = object.body) !== null && _c !== void 0 ? _c : undefined;
599
592
  message.data = (_d = object.data) !== null && _d !== void 0 ? _d : undefined;
@@ -606,69 +599,55 @@ function createBaseSendManyNotificationsRequest() {
606
599
  return { notifications: [] };
607
600
  }
608
601
  exports.SendManyNotificationsRequest = {
609
- encode: function (message, writer) {
610
- var e_3, _a;
611
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
612
- try {
613
- for (var _b = __values(message.notifications), _c = _b.next(); !_c.done; _c = _b.next()) {
614
- var v = _c.value;
615
- exports.SendNotificationRequest.encode(v, writer.uint32(10).fork()).ldelim();
616
- }
617
- }
618
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
619
- finally {
620
- try {
621
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
622
- }
623
- finally { if (e_3) throw e_3.error; }
602
+ encode(message, writer = minimal_1.default.Writer.create()) {
603
+ for (const v of message.notifications) {
604
+ exports.SendNotificationRequest.encode(v, writer.uint32(10).fork()).ldelim();
624
605
  }
625
606
  return writer;
626
607
  },
627
- decode: function (input, length) {
628
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
629
- var end = length === undefined ? reader.len : reader.pos + length;
630
- var message = createBaseSendManyNotificationsRequest();
608
+ decode(input, length) {
609
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
610
+ let end = length === undefined ? reader.len : reader.pos + length;
611
+ const message = createBaseSendManyNotificationsRequest();
631
612
  while (reader.pos < end) {
632
- var tag = reader.uint32();
613
+ const tag = reader.uint32();
633
614
  switch (tag >>> 3) {
634
615
  case 1:
635
- if (tag != 10) {
616
+ if (tag !== 10) {
636
617
  break;
637
618
  }
638
619
  message.notifications.push(exports.SendNotificationRequest.decode(reader, reader.uint32()));
639
620
  continue;
640
621
  }
641
- if ((tag & 7) == 4 || tag == 0) {
622
+ if ((tag & 7) === 4 || tag === 0) {
642
623
  break;
643
624
  }
644
625
  reader.skipType(tag & 7);
645
626
  }
646
627
  return message;
647
628
  },
648
- fromJSON: function (object) {
629
+ fromJSON(object) {
649
630
  return {
650
- notifications: Array.isArray(object === null || object === void 0 ? void 0 : object.notifications)
651
- ? object.notifications.map(function (e) { return exports.SendNotificationRequest.fromJSON(e); })
631
+ notifications: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.notifications)
632
+ ? object.notifications.map((e) => exports.SendNotificationRequest.fromJSON(e))
652
633
  : [],
653
634
  };
654
635
  },
655
- toJSON: function (message) {
656
- var obj = {};
657
- if (message.notifications) {
658
- obj.notifications = message.notifications.map(function (e) { return e ? exports.SendNotificationRequest.toJSON(e) : undefined; });
659
- }
660
- else {
661
- obj.notifications = [];
636
+ toJSON(message) {
637
+ var _a;
638
+ const obj = {};
639
+ if ((_a = message.notifications) === null || _a === void 0 ? void 0 : _a.length) {
640
+ obj.notifications = message.notifications.map((e) => exports.SendNotificationRequest.toJSON(e));
662
641
  }
663
642
  return obj;
664
643
  },
665
- create: function (base) {
644
+ create(base) {
666
645
  return exports.SendManyNotificationsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
667
646
  },
668
- fromPartial: function (object) {
647
+ fromPartial(object) {
669
648
  var _a;
670
- var message = createBaseSendManyNotificationsRequest();
671
- message.notifications = ((_a = object.notifications) === null || _a === void 0 ? void 0 : _a.map(function (e) { return exports.SendNotificationRequest.fromPartial(e); })) || [];
649
+ const message = createBaseSendManyNotificationsRequest();
650
+ message.notifications = ((_a = object.notifications) === null || _a === void 0 ? void 0 : _a.map((e) => exports.SendNotificationRequest.fromPartial(e))) || [];
672
651
  return message;
673
652
  },
674
653
  };
@@ -676,48 +655,49 @@ function createBaseSendNotificationResponse() {
676
655
  return { message: "" };
677
656
  }
678
657
  exports.SendNotificationResponse = {
679
- encode: function (message, writer) {
680
- if (writer === void 0) { writer = minimal_1.default.Writer.create(); }
658
+ encode(message, writer = minimal_1.default.Writer.create()) {
681
659
  if (message.message !== "") {
682
660
  writer.uint32(10).string(message.message);
683
661
  }
684
662
  return writer;
685
663
  },
686
- decode: function (input, length) {
687
- var reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
688
- var end = length === undefined ? reader.len : reader.pos + length;
689
- var message = createBaseSendNotificationResponse();
664
+ decode(input, length) {
665
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
666
+ let end = length === undefined ? reader.len : reader.pos + length;
667
+ const message = createBaseSendNotificationResponse();
690
668
  while (reader.pos < end) {
691
- var tag = reader.uint32();
669
+ const tag = reader.uint32();
692
670
  switch (tag >>> 3) {
693
671
  case 1:
694
- if (tag != 10) {
672
+ if (tag !== 10) {
695
673
  break;
696
674
  }
697
675
  message.message = reader.string();
698
676
  continue;
699
677
  }
700
- if ((tag & 7) == 4 || tag == 0) {
678
+ if ((tag & 7) === 4 || tag === 0) {
701
679
  break;
702
680
  }
703
681
  reader.skipType(tag & 7);
704
682
  }
705
683
  return message;
706
684
  },
707
- fromJSON: function (object) {
708
- return { message: isSet(object.message) ? String(object.message) : "" };
685
+ fromJSON(object) {
686
+ return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
709
687
  },
710
- toJSON: function (message) {
711
- var obj = {};
712
- message.message !== undefined && (obj.message = message.message);
688
+ toJSON(message) {
689
+ const obj = {};
690
+ if (message.message !== "") {
691
+ obj.message = message.message;
692
+ }
713
693
  return obj;
714
694
  },
715
- create: function (base) {
695
+ create(base) {
716
696
  return exports.SendNotificationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
717
697
  },
718
- fromPartial: function (object) {
698
+ fromPartial(object) {
719
699
  var _a;
720
- var message = createBaseSendNotificationResponse();
700
+ const message = createBaseSendNotificationResponse();
721
701
  message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
722
702
  return message;
723
703
  },