protobuf-platform 1.2.581 → 1.2.585
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/notification/notification.proto +5 -0
- package/notification/notification_pb.js +237 -2
- package/package.json +1 -1
- package/user/user.proto +51 -0
- package/user/user_pb.js +2296 -184
|
@@ -106,9 +106,14 @@ message NotificationRequest {
|
|
|
106
106
|
message GetNotificationRequest {
|
|
107
107
|
int32 id = 1;
|
|
108
108
|
}
|
|
109
|
+
message NotificationRecipient {
|
|
110
|
+
int32 user_id = 1;
|
|
111
|
+
string public_id = 2;
|
|
112
|
+
}
|
|
109
113
|
message SendNotificationRequest {
|
|
110
114
|
int32 notification_id = 1;
|
|
111
115
|
repeated int32 user_ids = 2;
|
|
116
|
+
repeated NotificationRecipient recipients = 3;
|
|
112
117
|
}
|
|
113
118
|
message DispatchManualNotificationRequest {
|
|
114
119
|
int32 notification_id = 1;
|
|
@@ -45,6 +45,7 @@ goog.exportSymbol('proto.notification.MailTypesResponse', null, global);
|
|
|
45
45
|
goog.exportSymbol('proto.notification.NotificationItem', null, global);
|
|
46
46
|
goog.exportSymbol('proto.notification.NotificationItemRequest', null, global);
|
|
47
47
|
goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
|
|
48
|
+
goog.exportSymbol('proto.notification.NotificationRecipient', null, global);
|
|
48
49
|
goog.exportSymbol('proto.notification.NotificationRequest', null, global);
|
|
49
50
|
goog.exportSymbol('proto.notification.NotificationRequest.RequestCase', null, global);
|
|
50
51
|
goog.exportSymbol('proto.notification.NotificationResponse', null, global);
|
|
@@ -297,6 +298,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
297
298
|
*/
|
|
298
299
|
proto.notification.GetNotificationRequest.displayName = 'proto.notification.GetNotificationRequest';
|
|
299
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* Generated by JsPbCodeGenerator.
|
|
303
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
304
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
305
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
306
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
307
|
+
* valid.
|
|
308
|
+
* @extends {jspb.Message}
|
|
309
|
+
* @constructor
|
|
310
|
+
*/
|
|
311
|
+
proto.notification.NotificationRecipient = function(opt_data) {
|
|
312
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
313
|
+
};
|
|
314
|
+
goog.inherits(proto.notification.NotificationRecipient, jspb.Message);
|
|
315
|
+
if (goog.DEBUG && !COMPILED) {
|
|
316
|
+
/**
|
|
317
|
+
* @public
|
|
318
|
+
* @override
|
|
319
|
+
*/
|
|
320
|
+
proto.notification.NotificationRecipient.displayName = 'proto.notification.NotificationRecipient';
|
|
321
|
+
}
|
|
300
322
|
/**
|
|
301
323
|
* Generated by JsPbCodeGenerator.
|
|
302
324
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4203,12 +4225,172 @@ proto.notification.GetNotificationRequest.prototype.setId = function(value) {
|
|
|
4203
4225
|
|
|
4204
4226
|
|
|
4205
4227
|
|
|
4228
|
+
|
|
4229
|
+
|
|
4230
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4231
|
+
/**
|
|
4232
|
+
* Creates an object representation of this proto.
|
|
4233
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4234
|
+
* Optional fields that are not set will be set to undefined.
|
|
4235
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4236
|
+
* For the list of reserved names please see:
|
|
4237
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4238
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4239
|
+
* JSPB instance for transitional soy proto support:
|
|
4240
|
+
* http://goto/soy-param-migration
|
|
4241
|
+
* @return {!Object}
|
|
4242
|
+
*/
|
|
4243
|
+
proto.notification.NotificationRecipient.prototype.toObject = function(opt_includeInstance) {
|
|
4244
|
+
return proto.notification.NotificationRecipient.toObject(opt_includeInstance, this);
|
|
4245
|
+
};
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
/**
|
|
4249
|
+
* Static version of the {@see toObject} method.
|
|
4250
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4251
|
+
* the JSPB instance for transitional soy proto support:
|
|
4252
|
+
* http://goto/soy-param-migration
|
|
4253
|
+
* @param {!proto.notification.NotificationRecipient} msg The msg instance to transform.
|
|
4254
|
+
* @return {!Object}
|
|
4255
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4256
|
+
*/
|
|
4257
|
+
proto.notification.NotificationRecipient.toObject = function(includeInstance, msg) {
|
|
4258
|
+
var f, obj = {
|
|
4259
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4260
|
+
publicId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4261
|
+
};
|
|
4262
|
+
|
|
4263
|
+
if (includeInstance) {
|
|
4264
|
+
obj.$jspbMessageInstance = msg;
|
|
4265
|
+
}
|
|
4266
|
+
return obj;
|
|
4267
|
+
};
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
|
|
4271
|
+
/**
|
|
4272
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4273
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4274
|
+
* @return {!proto.notification.NotificationRecipient}
|
|
4275
|
+
*/
|
|
4276
|
+
proto.notification.NotificationRecipient.deserializeBinary = function(bytes) {
|
|
4277
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4278
|
+
var msg = new proto.notification.NotificationRecipient;
|
|
4279
|
+
return proto.notification.NotificationRecipient.deserializeBinaryFromReader(msg, reader);
|
|
4280
|
+
};
|
|
4281
|
+
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4285
|
+
* given reader into the given message object.
|
|
4286
|
+
* @param {!proto.notification.NotificationRecipient} msg The message object to deserialize into.
|
|
4287
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4288
|
+
* @return {!proto.notification.NotificationRecipient}
|
|
4289
|
+
*/
|
|
4290
|
+
proto.notification.NotificationRecipient.deserializeBinaryFromReader = function(msg, reader) {
|
|
4291
|
+
while (reader.nextField()) {
|
|
4292
|
+
if (reader.isEndGroup()) {
|
|
4293
|
+
break;
|
|
4294
|
+
}
|
|
4295
|
+
var field = reader.getFieldNumber();
|
|
4296
|
+
switch (field) {
|
|
4297
|
+
case 1:
|
|
4298
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4299
|
+
msg.setUserId(value);
|
|
4300
|
+
break;
|
|
4301
|
+
case 2:
|
|
4302
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4303
|
+
msg.setPublicId(value);
|
|
4304
|
+
break;
|
|
4305
|
+
default:
|
|
4306
|
+
reader.skipField();
|
|
4307
|
+
break;
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
return msg;
|
|
4311
|
+
};
|
|
4312
|
+
|
|
4313
|
+
|
|
4314
|
+
/**
|
|
4315
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4316
|
+
* @return {!Uint8Array}
|
|
4317
|
+
*/
|
|
4318
|
+
proto.notification.NotificationRecipient.prototype.serializeBinary = function() {
|
|
4319
|
+
var writer = new jspb.BinaryWriter();
|
|
4320
|
+
proto.notification.NotificationRecipient.serializeBinaryToWriter(this, writer);
|
|
4321
|
+
return writer.getResultBuffer();
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4327
|
+
* format), writing to the given BinaryWriter.
|
|
4328
|
+
* @param {!proto.notification.NotificationRecipient} message
|
|
4329
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4330
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4331
|
+
*/
|
|
4332
|
+
proto.notification.NotificationRecipient.serializeBinaryToWriter = function(message, writer) {
|
|
4333
|
+
var f = undefined;
|
|
4334
|
+
f = message.getUserId();
|
|
4335
|
+
if (f !== 0) {
|
|
4336
|
+
writer.writeInt32(
|
|
4337
|
+
1,
|
|
4338
|
+
f
|
|
4339
|
+
);
|
|
4340
|
+
}
|
|
4341
|
+
f = message.getPublicId();
|
|
4342
|
+
if (f.length > 0) {
|
|
4343
|
+
writer.writeString(
|
|
4344
|
+
2,
|
|
4345
|
+
f
|
|
4346
|
+
);
|
|
4347
|
+
}
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
|
|
4351
|
+
/**
|
|
4352
|
+
* optional int32 user_id = 1;
|
|
4353
|
+
* @return {number}
|
|
4354
|
+
*/
|
|
4355
|
+
proto.notification.NotificationRecipient.prototype.getUserId = function() {
|
|
4356
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4357
|
+
};
|
|
4358
|
+
|
|
4359
|
+
|
|
4360
|
+
/**
|
|
4361
|
+
* @param {number} value
|
|
4362
|
+
* @return {!proto.notification.NotificationRecipient} returns this
|
|
4363
|
+
*/
|
|
4364
|
+
proto.notification.NotificationRecipient.prototype.setUserId = function(value) {
|
|
4365
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4366
|
+
};
|
|
4367
|
+
|
|
4368
|
+
|
|
4369
|
+
/**
|
|
4370
|
+
* optional string public_id = 2;
|
|
4371
|
+
* @return {string}
|
|
4372
|
+
*/
|
|
4373
|
+
proto.notification.NotificationRecipient.prototype.getPublicId = function() {
|
|
4374
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4375
|
+
};
|
|
4376
|
+
|
|
4377
|
+
|
|
4378
|
+
/**
|
|
4379
|
+
* @param {string} value
|
|
4380
|
+
* @return {!proto.notification.NotificationRecipient} returns this
|
|
4381
|
+
*/
|
|
4382
|
+
proto.notification.NotificationRecipient.prototype.setPublicId = function(value) {
|
|
4383
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4384
|
+
};
|
|
4385
|
+
|
|
4386
|
+
|
|
4387
|
+
|
|
4206
4388
|
/**
|
|
4207
4389
|
* List of repeated fields within this message type.
|
|
4208
4390
|
* @private {!Array<number>}
|
|
4209
4391
|
* @const
|
|
4210
4392
|
*/
|
|
4211
|
-
proto.notification.SendNotificationRequest.repeatedFields_ = [2];
|
|
4393
|
+
proto.notification.SendNotificationRequest.repeatedFields_ = [2,3];
|
|
4212
4394
|
|
|
4213
4395
|
|
|
4214
4396
|
|
|
@@ -4242,7 +4424,9 @@ proto.notification.SendNotificationRequest.prototype.toObject = function(opt_inc
|
|
|
4242
4424
|
proto.notification.SendNotificationRequest.toObject = function(includeInstance, msg) {
|
|
4243
4425
|
var f, obj = {
|
|
4244
4426
|
notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4245
|
-
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
4427
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
4428
|
+
recipientsList: jspb.Message.toObjectList(msg.getRecipientsList(),
|
|
4429
|
+
proto.notification.NotificationRecipient.toObject, includeInstance)
|
|
4246
4430
|
};
|
|
4247
4431
|
|
|
4248
4432
|
if (includeInstance) {
|
|
@@ -4289,6 +4473,11 @@ proto.notification.SendNotificationRequest.deserializeBinaryFromReader = functio
|
|
|
4289
4473
|
msg.addUserIds(values[i]);
|
|
4290
4474
|
}
|
|
4291
4475
|
break;
|
|
4476
|
+
case 3:
|
|
4477
|
+
var value = new proto.notification.NotificationRecipient;
|
|
4478
|
+
reader.readMessage(value,proto.notification.NotificationRecipient.deserializeBinaryFromReader);
|
|
4479
|
+
msg.addRecipients(value);
|
|
4480
|
+
break;
|
|
4292
4481
|
default:
|
|
4293
4482
|
reader.skipField();
|
|
4294
4483
|
break;
|
|
@@ -4332,6 +4521,14 @@ proto.notification.SendNotificationRequest.serializeBinaryToWriter = function(me
|
|
|
4332
4521
|
f
|
|
4333
4522
|
);
|
|
4334
4523
|
}
|
|
4524
|
+
f = message.getRecipientsList();
|
|
4525
|
+
if (f.length > 0) {
|
|
4526
|
+
writer.writeRepeatedMessage(
|
|
4527
|
+
3,
|
|
4528
|
+
f,
|
|
4529
|
+
proto.notification.NotificationRecipient.serializeBinaryToWriter
|
|
4530
|
+
);
|
|
4531
|
+
}
|
|
4335
4532
|
};
|
|
4336
4533
|
|
|
4337
4534
|
|
|
@@ -4390,6 +4587,44 @@ proto.notification.SendNotificationRequest.prototype.clearUserIdsList = function
|
|
|
4390
4587
|
};
|
|
4391
4588
|
|
|
4392
4589
|
|
|
4590
|
+
/**
|
|
4591
|
+
* repeated NotificationRecipient recipients = 3;
|
|
4592
|
+
* @return {!Array<!proto.notification.NotificationRecipient>}
|
|
4593
|
+
*/
|
|
4594
|
+
proto.notification.SendNotificationRequest.prototype.getRecipientsList = function() {
|
|
4595
|
+
return /** @type{!Array<!proto.notification.NotificationRecipient>} */ (
|
|
4596
|
+
jspb.Message.getRepeatedWrapperField(this, proto.notification.NotificationRecipient, 3));
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* @param {!Array<!proto.notification.NotificationRecipient>} value
|
|
4602
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
|
4603
|
+
*/
|
|
4604
|
+
proto.notification.SendNotificationRequest.prototype.setRecipientsList = function(value) {
|
|
4605
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
4606
|
+
};
|
|
4607
|
+
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* @param {!proto.notification.NotificationRecipient=} opt_value
|
|
4611
|
+
* @param {number=} opt_index
|
|
4612
|
+
* @return {!proto.notification.NotificationRecipient}
|
|
4613
|
+
*/
|
|
4614
|
+
proto.notification.SendNotificationRequest.prototype.addRecipients = function(opt_value, opt_index) {
|
|
4615
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.notification.NotificationRecipient, opt_index);
|
|
4616
|
+
};
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
/**
|
|
4620
|
+
* Clears the list making it empty but non-null.
|
|
4621
|
+
* @return {!proto.notification.SendNotificationRequest} returns this
|
|
4622
|
+
*/
|
|
4623
|
+
proto.notification.SendNotificationRequest.prototype.clearRecipientsList = function() {
|
|
4624
|
+
return this.setRecipientsList([]);
|
|
4625
|
+
};
|
|
4626
|
+
|
|
4627
|
+
|
|
4393
4628
|
|
|
4394
4629
|
/**
|
|
4395
4630
|
* List of repeated fields within this message type.
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -2128,6 +2128,52 @@ message ReadResponsibleGamingOverviewRequest {
|
|
|
2128
2128
|
optional string currency = 2;
|
|
2129
2129
|
optional int32 currency_scale = 3;
|
|
2130
2130
|
}
|
|
2131
|
+
// One independently active/configured DEPOSIT_LIMIT replacement scope (DAY, WEEK, or MONTH).
|
|
2132
|
+
message ResponsibleGamingDepositLimitScopeOverview {
|
|
2133
|
+
ResponsibleGamingRecurringPeriod recurring_period = 1;
|
|
2134
|
+
bool configured = 2;
|
|
2135
|
+
optional ResponsibleGamingPolicyItem current_policy = 3;
|
|
2136
|
+
optional ResponsibleGamingPolicyItem pending_policy = 4;
|
|
2137
|
+
optional string current_window_start = 5;
|
|
2138
|
+
optional string current_window_end = 6;
|
|
2139
|
+
optional int64 used_minor = 7;
|
|
2140
|
+
optional int64 reserved_minor = 8;
|
|
2141
|
+
optional int64 remaining_minor = 9;
|
|
2142
|
+
bool limit_reached = 10;
|
|
2143
|
+
}
|
|
2144
|
+
// One independently active/configured LOSS_LIMIT replacement scope (DAY, WEEK, or MONTH).
|
|
2145
|
+
message ResponsibleGamingLossLimitScopeOverview {
|
|
2146
|
+
ResponsibleGamingRecurringPeriod recurring_period = 1;
|
|
2147
|
+
bool configured = 2;
|
|
2148
|
+
optional ResponsibleGamingPolicyItem current_policy = 3;
|
|
2149
|
+
optional ResponsibleGamingPolicyItem pending_policy = 4;
|
|
2150
|
+
optional string current_window_start = 5;
|
|
2151
|
+
optional string current_window_end = 6;
|
|
2152
|
+
optional int64 stakes_minor = 7;
|
|
2153
|
+
optional int64 wins_minor = 8;
|
|
2154
|
+
optional int64 refunds_minor = 9;
|
|
2155
|
+
optional int64 net_loss_minor = 10;
|
|
2156
|
+
optional int64 reserved_exposure_minor = 11;
|
|
2157
|
+
optional int64 effective_risk_minor = 12;
|
|
2158
|
+
optional int64 remaining_stake_minor = 13;
|
|
2159
|
+
bool limit_reached = 14;
|
|
2160
|
+
}
|
|
2161
|
+
// One independently active/configured TIME_LIMIT replacement scope (DAY, WEEK, or MONTH).
|
|
2162
|
+
message ResponsibleGamingTimeLimitScopeOverview {
|
|
2163
|
+
ResponsibleGamingRecurringPeriod recurring_period = 1;
|
|
2164
|
+
bool configured = 2;
|
|
2165
|
+
optional ResponsibleGamingPolicyItem current_policy = 3;
|
|
2166
|
+
optional ResponsibleGamingPolicyItem pending_policy = 4;
|
|
2167
|
+
optional string current_window_start = 5;
|
|
2168
|
+
optional string current_window_end = 6;
|
|
2169
|
+
optional int64 used_seconds = 7;
|
|
2170
|
+
optional int64 remaining_seconds = 8;
|
|
2171
|
+
bool active_gameplay_session = 9;
|
|
2172
|
+
optional string active_session_id = 10;
|
|
2173
|
+
optional string last_activity_at = 11;
|
|
2174
|
+
bool limit_reached = 12;
|
|
2175
|
+
}
|
|
2176
|
+
// Legacy single-scope summary; use scopes for the authoritative per-period representation.
|
|
2131
2177
|
message ResponsibleGamingDepositLimitOverview {
|
|
2132
2178
|
bool configured = 1;
|
|
2133
2179
|
optional ResponsibleGamingPolicyItem current_policy = 2;
|
|
@@ -2138,7 +2184,9 @@ message ResponsibleGamingDepositLimitOverview {
|
|
|
2138
2184
|
optional int64 reserved_minor = 7;
|
|
2139
2185
|
optional int64 remaining_minor = 8;
|
|
2140
2186
|
bool limit_reached = 9;
|
|
2187
|
+
repeated ResponsibleGamingDepositLimitScopeOverview scopes = 10; // Authoritative; all concurrently active/configured periods.
|
|
2141
2188
|
}
|
|
2189
|
+
// Legacy single-scope summary; use scopes for the authoritative per-period representation.
|
|
2142
2190
|
message ResponsibleGamingLossLimitOverview {
|
|
2143
2191
|
bool configured = 1;
|
|
2144
2192
|
optional ResponsibleGamingPolicyItem current_policy = 2;
|
|
@@ -2153,7 +2201,9 @@ message ResponsibleGamingLossLimitOverview {
|
|
|
2153
2201
|
optional int64 effective_risk_minor = 11;
|
|
2154
2202
|
optional int64 remaining_stake_minor = 12;
|
|
2155
2203
|
bool limit_reached = 13;
|
|
2204
|
+
repeated ResponsibleGamingLossLimitScopeOverview scopes = 14; // Authoritative; all concurrently active/configured periods.
|
|
2156
2205
|
}
|
|
2206
|
+
// Legacy single-scope summary; use scopes for the authoritative per-period representation.
|
|
2157
2207
|
message ResponsibleGamingTimeLimitOverview {
|
|
2158
2208
|
bool configured = 1;
|
|
2159
2209
|
optional ResponsibleGamingPolicyItem current_policy = 2;
|
|
@@ -2166,6 +2216,7 @@ message ResponsibleGamingTimeLimitOverview {
|
|
|
2166
2216
|
optional string active_session_id = 9;
|
|
2167
2217
|
optional string last_activity_at = 10;
|
|
2168
2218
|
bool limit_reached = 11;
|
|
2219
|
+
repeated ResponsibleGamingTimeLimitScopeOverview scopes = 12; // Authoritative; all concurrently active/configured periods.
|
|
2169
2220
|
}
|
|
2170
2221
|
message ResponsibleGamingCoolingOffOverview {
|
|
2171
2222
|
bool active = 1;
|