@sniipwebmaster/kyc-client-grpcweb 21.8.84 → 21.8.91
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/dependancies/service_pb.js +234 -15
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ var global = Function('return this')();
|
|
|
11
11
|
|
|
12
12
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
13
13
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
14
|
+
goog.exportSymbol('proto.kycserviceapi.Attachment', null, global);
|
|
14
15
|
goog.exportSymbol('proto.kycserviceapi.Document', null, global);
|
|
15
16
|
goog.exportSymbol('proto.kycserviceapi.DocumentResponse', null, global);
|
|
16
17
|
goog.exportSymbol('proto.kycserviceapi.DocumentSaveRequest', null, global);
|
|
@@ -31,6 +32,219 @@ goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
|
|
|
31
32
|
goog.exportSymbol('proto.kycserviceapi.UserKycSummaryResponse', null, global);
|
|
32
33
|
goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
|
|
33
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Generated by JsPbCodeGenerator.
|
|
37
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
38
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
39
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
40
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
41
|
+
* valid.
|
|
42
|
+
* @extends {jspb.Message}
|
|
43
|
+
* @constructor
|
|
44
|
+
*/
|
|
45
|
+
proto.kycserviceapi.Attachment = function(opt_data) {
|
|
46
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
47
|
+
};
|
|
48
|
+
goog.inherits(proto.kycserviceapi.Attachment, jspb.Message);
|
|
49
|
+
if (goog.DEBUG && !COMPILED) {
|
|
50
|
+
proto.kycserviceapi.Attachment.displayName = 'proto.kycserviceapi.Attachment';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55
|
+
/**
|
|
56
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
57
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
58
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
59
|
+
* For the list of reserved names please see:
|
|
60
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
61
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
62
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
63
|
+
* @return {!Object}
|
|
64
|
+
*/
|
|
65
|
+
proto.kycserviceapi.Attachment.prototype.toObject = function(opt_includeInstance) {
|
|
66
|
+
return proto.kycserviceapi.Attachment.toObject(opt_includeInstance, this);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Static version of the {@see toObject} method.
|
|
72
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
73
|
+
* instance for transitional soy proto support:
|
|
74
|
+
* http://goto/soy-param-migration
|
|
75
|
+
* @param {!proto.kycserviceapi.Attachment} msg The msg instance to transform.
|
|
76
|
+
* @return {!Object}
|
|
77
|
+
*/
|
|
78
|
+
proto.kycserviceapi.Attachment.toObject = function(includeInstance, msg) {
|
|
79
|
+
var f, obj = {
|
|
80
|
+
attachmentid: msg.getAttachmentid(),
|
|
81
|
+
attachmenticonurl: msg.getAttachmenticonurl(),
|
|
82
|
+
attachmenturl: msg.getAttachmenturl()
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
if (includeInstance) {
|
|
86
|
+
obj.$jspbMessageInstance = msg;
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Deserializes binary data (in protobuf wire format).
|
|
95
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
96
|
+
* @return {!proto.kycserviceapi.Attachment}
|
|
97
|
+
*/
|
|
98
|
+
proto.kycserviceapi.Attachment.deserializeBinary = function(bytes) {
|
|
99
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
100
|
+
var msg = new proto.kycserviceapi.Attachment;
|
|
101
|
+
return proto.kycserviceapi.Attachment.deserializeBinaryFromReader(msg, reader);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
107
|
+
* given reader into the given message object.
|
|
108
|
+
* @param {!proto.kycserviceapi.Attachment} msg The message object to deserialize into.
|
|
109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
110
|
+
* @return {!proto.kycserviceapi.Attachment}
|
|
111
|
+
*/
|
|
112
|
+
proto.kycserviceapi.Attachment.deserializeBinaryFromReader = function(msg, reader) {
|
|
113
|
+
while (reader.nextField()) {
|
|
114
|
+
if (reader.isEndGroup()) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
var field = reader.getFieldNumber();
|
|
118
|
+
switch (field) {
|
|
119
|
+
case 1:
|
|
120
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
121
|
+
msg.setAttachmentid(value);
|
|
122
|
+
break;
|
|
123
|
+
case 2:
|
|
124
|
+
var value = /** @type {string} */ (reader.readString());
|
|
125
|
+
msg.setAttachmenticonurl(value);
|
|
126
|
+
break;
|
|
127
|
+
case 3:
|
|
128
|
+
var value = /** @type {string} */ (reader.readString());
|
|
129
|
+
msg.setAttachmenturl(value);
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
reader.skipField();
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return msg;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Class method variant: serializes the given message to binary data
|
|
142
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
143
|
+
* @param {!proto.kycserviceapi.Attachment} message
|
|
144
|
+
* @param {!jspb.BinaryWriter} writer
|
|
145
|
+
*/
|
|
146
|
+
proto.kycserviceapi.Attachment.serializeBinaryToWriter = function(message, writer) {
|
|
147
|
+
message.serializeBinaryToWriter(writer);
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
153
|
+
* @return {!Uint8Array}
|
|
154
|
+
*/
|
|
155
|
+
proto.kycserviceapi.Attachment.prototype.serializeBinary = function() {
|
|
156
|
+
var writer = new jspb.BinaryWriter();
|
|
157
|
+
this.serializeBinaryToWriter(writer);
|
|
158
|
+
return writer.getResultBuffer();
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
164
|
+
* writing to the given BinaryWriter.
|
|
165
|
+
* @param {!jspb.BinaryWriter} writer
|
|
166
|
+
*/
|
|
167
|
+
proto.kycserviceapi.Attachment.prototype.serializeBinaryToWriter = function (writer) {
|
|
168
|
+
var f = undefined;
|
|
169
|
+
f = this.getAttachmentid();
|
|
170
|
+
if (f !== 0) {
|
|
171
|
+
writer.writeInt64(
|
|
172
|
+
1,
|
|
173
|
+
f
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
f = this.getAttachmenticonurl();
|
|
177
|
+
if (f.length > 0) {
|
|
178
|
+
writer.writeString(
|
|
179
|
+
2,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
f = this.getAttachmenturl();
|
|
184
|
+
if (f.length > 0) {
|
|
185
|
+
writer.writeString(
|
|
186
|
+
3,
|
|
187
|
+
f
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
195
|
+
* @return {!proto.kycserviceapi.Attachment} The clone.
|
|
196
|
+
*/
|
|
197
|
+
proto.kycserviceapi.Attachment.prototype.cloneMessage = function() {
|
|
198
|
+
return /** @type {!proto.kycserviceapi.Attachment} */ (jspb.Message.cloneMessage(this));
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* optional int64 attachmentId = 1;
|
|
204
|
+
* @return {number}
|
|
205
|
+
*/
|
|
206
|
+
proto.kycserviceapi.Attachment.prototype.getAttachmentid = function() {
|
|
207
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/** @param {number} value */
|
|
212
|
+
proto.kycserviceapi.Attachment.prototype.setAttachmentid = function(value) {
|
|
213
|
+
jspb.Message.setField(this, 1, value);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* optional string attachmentIconUrl = 2;
|
|
219
|
+
* @return {string}
|
|
220
|
+
*/
|
|
221
|
+
proto.kycserviceapi.Attachment.prototype.getAttachmenticonurl = function() {
|
|
222
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
/** @param {string} value */
|
|
227
|
+
proto.kycserviceapi.Attachment.prototype.setAttachmenticonurl = function(value) {
|
|
228
|
+
jspb.Message.setField(this, 2, value);
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* optional string attachmentUrl = 3;
|
|
234
|
+
* @return {string}
|
|
235
|
+
*/
|
|
236
|
+
proto.kycserviceapi.Attachment.prototype.getAttachmenturl = function() {
|
|
237
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
/** @param {string} value */
|
|
242
|
+
proto.kycserviceapi.Attachment.prototype.setAttachmenturl = function(value) {
|
|
243
|
+
jspb.Message.setField(this, 3, value);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
34
248
|
/**
|
|
35
249
|
* Generated by JsPbCodeGenerator.
|
|
36
250
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -90,7 +304,8 @@ proto.kycserviceapi.Document.toObject = function(includeInstance, msg) {
|
|
|
90
304
|
passport: (f = msg.getPassport()) && proto.kycserviceapi.Passport.toObject(includeInstance, f),
|
|
91
305
|
driverslicense: (f = msg.getDriverslicense()) && proto.kycserviceapi.DriversLicense.toObject(includeInstance, f),
|
|
92
306
|
paymentmethod: (f = msg.getPaymentmethod()) && proto.kycserviceapi.KycPaymentMethod.toObject(includeInstance, f),
|
|
93
|
-
|
|
307
|
+
attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(),
|
|
308
|
+
proto.kycserviceapi.Attachment.toObject, includeInstance),
|
|
94
309
|
requirestwophotos: msg.getRequirestwophotos()
|
|
95
310
|
};
|
|
96
311
|
|
|
@@ -160,8 +375,10 @@ proto.kycserviceapi.Document.deserializeBinaryFromReader = function(msg, reader)
|
|
|
160
375
|
msg.setPaymentmethod(value);
|
|
161
376
|
break;
|
|
162
377
|
case 8:
|
|
163
|
-
var value =
|
|
164
|
-
|
|
378
|
+
var value = new proto.kycserviceapi.Attachment;
|
|
379
|
+
reader.readMessage(value,proto.kycserviceapi.Attachment.deserializeBinaryFromReader);
|
|
380
|
+
msg.getAttachmentsList().push(value);
|
|
381
|
+
msg.setAttachmentsList(msg.getAttachmentsList());
|
|
165
382
|
break;
|
|
166
383
|
case 9:
|
|
167
384
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
@@ -257,11 +474,12 @@ proto.kycserviceapi.Document.prototype.serializeBinaryToWriter = function (write
|
|
|
257
474
|
proto.kycserviceapi.KycPaymentMethod.serializeBinaryToWriter
|
|
258
475
|
);
|
|
259
476
|
}
|
|
260
|
-
f = this.
|
|
477
|
+
f = this.getAttachmentsList();
|
|
261
478
|
if (f.length > 0) {
|
|
262
|
-
writer.
|
|
479
|
+
writer.writeRepeatedMessage(
|
|
263
480
|
8,
|
|
264
|
-
f
|
|
481
|
+
f,
|
|
482
|
+
proto.kycserviceapi.Attachment.serializeBinaryToWriter
|
|
265
483
|
);
|
|
266
484
|
}
|
|
267
485
|
f = this.getRequirestwophotos();
|
|
@@ -436,24 +654,25 @@ proto.kycserviceapi.Document.prototype.hasPaymentmethod = function() {
|
|
|
436
654
|
|
|
437
655
|
|
|
438
656
|
/**
|
|
439
|
-
* repeated
|
|
657
|
+
* repeated Attachment attachments = 8;
|
|
440
658
|
* If you change this array by adding, removing or replacing elements, or if you
|
|
441
659
|
* replace the array itself, then you must call the setter to update it.
|
|
442
|
-
* @return {!Array
|
|
660
|
+
* @return {!Array.<!proto.kycserviceapi.Attachment>}
|
|
443
661
|
*/
|
|
444
|
-
proto.kycserviceapi.Document.prototype.
|
|
445
|
-
return /** @type
|
|
662
|
+
proto.kycserviceapi.Document.prototype.getAttachmentsList = function() {
|
|
663
|
+
return /** @type{!Array.<!proto.kycserviceapi.Attachment>} */ (
|
|
664
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kycserviceapi.Attachment, 8));
|
|
446
665
|
};
|
|
447
666
|
|
|
448
667
|
|
|
449
|
-
/** @param {Array
|
|
450
|
-
proto.kycserviceapi.Document.prototype.
|
|
451
|
-
jspb.Message.
|
|
668
|
+
/** @param {Array.<!proto.kycserviceapi.Attachment>} value */
|
|
669
|
+
proto.kycserviceapi.Document.prototype.setAttachmentsList = function(value) {
|
|
670
|
+
jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
452
671
|
};
|
|
453
672
|
|
|
454
673
|
|
|
455
|
-
proto.kycserviceapi.Document.prototype.
|
|
456
|
-
|
|
674
|
+
proto.kycserviceapi.Document.prototype.clearAttachmentsList = function() {
|
|
675
|
+
this.setAttachmentsList([]);
|
|
457
676
|
};
|
|
458
677
|
|
|
459
678
|
|