@sniipwebmaster/email-import-service-client-grpcweb 0.2.1716 → 0.2.1735

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