@sniipwebmaster/email-import-service-client-grpcweb 0.2.1705 → 0.2.1726

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.
@@ -15,8 +15,6 @@ grpc.web = require('grpc-web');
15
15
  var google_api_annotations_pb = require('./google/api/annotations_pb.js')
16
16
 
17
17
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
18
-
19
- var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js')
20
18
  const proto = {};
21
19
  proto.sniipemailimportapi = require('./service_pb.js');
22
20
 
@@ -257,61 +255,6 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.getC
257
255
  };
258
256
 
259
257
 
260
- /**
261
- * @const
262
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
263
- * !proto.sniipemailimportapi.HandleMicrosoftWebhookRequest,
264
- * !proto.google.protobuf.StringValue>}
265
- */
266
- const methodInfo_SniipEmailImportAPIService_HandleMicrosoftWebhook = new grpc.web.AbstractClientBase.MethodInfo(
267
- google_protobuf_wrappers_pb.StringValue,
268
- /** @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} request */
269
- function(request) {
270
- return request.serializeBinary();
271
- },
272
- google_protobuf_wrappers_pb.StringValue.deserializeBinary
273
- );
274
-
275
-
276
- /**
277
- * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} request The
278
- * request proto
279
- * @param {?Object<string, string>} metadata User defined
280
- * call metadata
281
- * @param {function(?grpc.web.Error, ?proto.google.protobuf.StringValue)}
282
- * callback The callback function(error, response)
283
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.StringValue>|undefined}
284
- * The XHR Node Readable Stream
285
- */
286
- proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.handleMicrosoftWebhook =
287
- function(request, metadata, callback) {
288
- return this.client_.rpcCall(this.hostname_ +
289
- '/sniipemailimportapi.SniipEmailImportAPIService/HandleMicrosoftWebhook',
290
- request,
291
- metadata || {},
292
- methodInfo_SniipEmailImportAPIService_HandleMicrosoftWebhook,
293
- callback);
294
- };
295
-
296
-
297
- /**
298
- * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} request The
299
- * request proto
300
- * @param {?Object<string, string>} metadata User defined
301
- * call metadata
302
- * @return {!Promise<!proto.google.protobuf.StringValue>}
303
- * A native promise that resolves to the response
304
- */
305
- proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.handleMicrosoftWebhook =
306
- function(request, metadata) {
307
- return this.client_.unaryCall(this.hostname_ +
308
- '/sniipemailimportapi.SniipEmailImportAPIService/HandleMicrosoftWebhook',
309
- request,
310
- metadata || {},
311
- methodInfo_SniipEmailImportAPIService_HandleMicrosoftWebhook);
312
- };
313
-
314
-
315
258
  /**
316
259
  * @const
317
260
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -11,14 +11,12 @@ 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
- var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
15
14
  goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
16
15
  goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
17
16
  goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global);
18
17
  goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
19
18
  goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
20
19
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
21
- goog.exportSymbol('proto.sniipemailimportapi.HandleMicrosoftWebhookRequest', null, global);
22
20
  goog.exportSymbol('proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest', null, global);
23
21
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthRequest', null, global);
24
22
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthResponse', null, global);
@@ -1479,209 +1477,6 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setAussiesusingsn
1479
1477
 
1480
1478
 
1481
1479
 
1482
- /**
1483
- * Generated by JsPbCodeGenerator.
1484
- * @param {Array=} opt_data Optional initial data array, typically from a
1485
- * server response, or constructed directly in Javascript. The array is used
1486
- * in place and becomes part of the constructed object. It is not cloned.
1487
- * If no data is provided, the constructed object will be empty, but still
1488
- * valid.
1489
- * @extends {jspb.Message}
1490
- * @constructor
1491
- */
1492
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest = function(opt_data) {
1493
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1494
- };
1495
- goog.inherits(proto.sniipemailimportapi.HandleMicrosoftWebhookRequest, jspb.Message);
1496
- if (goog.DEBUG && !COMPILED) {
1497
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.displayName = 'proto.sniipemailimportapi.HandleMicrosoftWebhookRequest';
1498
- }
1499
-
1500
-
1501
- if (jspb.Message.GENERATE_TO_OBJECT) {
1502
- /**
1503
- * Creates an object representation of this proto suitable for use in Soy templates.
1504
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1505
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1506
- * For the list of reserved names please see:
1507
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1508
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1509
- * for transitional soy proto support: http://goto/soy-param-migration
1510
- * @return {!Object}
1511
- */
1512
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.toObject = function(opt_includeInstance) {
1513
- return proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.toObject(opt_includeInstance, this);
1514
- };
1515
-
1516
-
1517
- /**
1518
- * Static version of the {@see toObject} method.
1519
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1520
- * instance for transitional soy proto support:
1521
- * http://goto/soy-param-migration
1522
- * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} msg The msg instance to transform.
1523
- * @return {!Object}
1524
- */
1525
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.toObject = function(includeInstance, msg) {
1526
- var f, obj = {
1527
- data: (f = msg.getData()) && proto.sniipemailimportapi.MicrosoftNotificationRequest.toObject(includeInstance, f),
1528
- validationtoken: msg.getValidationtoken()
1529
- };
1530
-
1531
- if (includeInstance) {
1532
- obj.$jspbMessageInstance = msg;
1533
- }
1534
- return obj;
1535
- };
1536
- }
1537
-
1538
-
1539
- /**
1540
- * Deserializes binary data (in protobuf wire format).
1541
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1542
- * @return {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest}
1543
- */
1544
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.deserializeBinary = function(bytes) {
1545
- var reader = new jspb.BinaryReader(bytes);
1546
- var msg = new proto.sniipemailimportapi.HandleMicrosoftWebhookRequest;
1547
- return proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.deserializeBinaryFromReader(msg, reader);
1548
- };
1549
-
1550
-
1551
- /**
1552
- * Deserializes binary data (in protobuf wire format) from the
1553
- * given reader into the given message object.
1554
- * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} msg The message object to deserialize into.
1555
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1556
- * @return {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest}
1557
- */
1558
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
1559
- while (reader.nextField()) {
1560
- if (reader.isEndGroup()) {
1561
- break;
1562
- }
1563
- var field = reader.getFieldNumber();
1564
- switch (field) {
1565
- case 1:
1566
- var value = new proto.sniipemailimportapi.MicrosoftNotificationRequest;
1567
- reader.readMessage(value,proto.sniipemailimportapi.MicrosoftNotificationRequest.deserializeBinaryFromReader);
1568
- msg.setData(value);
1569
- break;
1570
- case 2:
1571
- var value = /** @type {string} */ (reader.readString());
1572
- msg.setValidationtoken(value);
1573
- break;
1574
- default:
1575
- reader.skipField();
1576
- break;
1577
- }
1578
- }
1579
- return msg;
1580
- };
1581
-
1582
-
1583
- /**
1584
- * Class method variant: serializes the given message to binary data
1585
- * (in protobuf wire format), writing to the given BinaryWriter.
1586
- * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} message
1587
- * @param {!jspb.BinaryWriter} writer
1588
- */
1589
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.serializeBinaryToWriter = function(message, writer) {
1590
- message.serializeBinaryToWriter(writer);
1591
- };
1592
-
1593
-
1594
- /**
1595
- * Serializes the message to binary data (in protobuf wire format).
1596
- * @return {!Uint8Array}
1597
- */
1598
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.serializeBinary = function() {
1599
- var writer = new jspb.BinaryWriter();
1600
- this.serializeBinaryToWriter(writer);
1601
- return writer.getResultBuffer();
1602
- };
1603
-
1604
-
1605
- /**
1606
- * Serializes the message to binary data (in protobuf wire format),
1607
- * writing to the given BinaryWriter.
1608
- * @param {!jspb.BinaryWriter} writer
1609
- */
1610
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.serializeBinaryToWriter = function (writer) {
1611
- var f = undefined;
1612
- f = this.getData();
1613
- if (f != null) {
1614
- writer.writeMessage(
1615
- 1,
1616
- f,
1617
- proto.sniipemailimportapi.MicrosoftNotificationRequest.serializeBinaryToWriter
1618
- );
1619
- }
1620
- f = this.getValidationtoken();
1621
- if (f.length > 0) {
1622
- writer.writeString(
1623
- 2,
1624
- f
1625
- );
1626
- }
1627
- };
1628
-
1629
-
1630
- /**
1631
- * Creates a deep clone of this proto. No data is shared with the original.
1632
- * @return {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} The clone.
1633
- */
1634
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.cloneMessage = function() {
1635
- return /** @type {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} */ (jspb.Message.cloneMessage(this));
1636
- };
1637
-
1638
-
1639
- /**
1640
- * optional MicrosoftNotificationRequest data = 1;
1641
- * @return {proto.sniipemailimportapi.MicrosoftNotificationRequest}
1642
- */
1643
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.getData = function() {
1644
- return /** @type{proto.sniipemailimportapi.MicrosoftNotificationRequest} */ (
1645
- jspb.Message.getWrapperField(this, proto.sniipemailimportapi.MicrosoftNotificationRequest, 1));
1646
- };
1647
-
1648
-
1649
- /** @param {proto.sniipemailimportapi.MicrosoftNotificationRequest|undefined} value */
1650
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.setData = function(value) {
1651
- jspb.Message.setWrapperField(this, 1, value);
1652
- };
1653
-
1654
-
1655
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.clearData = function() {
1656
- this.setData(undefined);
1657
- };
1658
-
1659
-
1660
- /**
1661
- * Returns whether this field is set.
1662
- * @return{!boolean}
1663
- */
1664
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.hasData = function() {
1665
- return jspb.Message.getField(this, 1) != null;
1666
- };
1667
-
1668
-
1669
- /**
1670
- * optional string validationToken = 2;
1671
- * @return {string}
1672
- */
1673
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.getValidationtoken = function() {
1674
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
1675
- };
1676
-
1677
-
1678
- /** @param {string} value */
1679
- proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.setValidationtoken = function(value) {
1680
- jspb.Message.setField(this, 2, value);
1681
- };
1682
-
1683
-
1684
-
1685
1480
  /**
1686
1481
  * Generated by JsPbCodeGenerator.
1687
1482
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/email-import-service-client-grpcweb",
3
- "version": "0.2.1705",
3
+ "version": "0.2.1726",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",