@sniipwebmaster/payroll-service-client-grpcweb 25.7.13

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.
@@ -0,0 +1,208 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for worldpayserviceapi
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v3.20.1
11
+ // source: service.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+
19
+ const grpc = {};
20
+ grpc.web = require('grpc-web');
21
+
22
+
23
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js')
24
+
25
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
26
+
27
+ var google_type_decimal_pb = require('./google/type/decimal_pb.js')
28
+
29
+ var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js')
30
+ const proto = {};
31
+ proto.worldpayserviceapi = require('./service_pb.js');
32
+
33
+ /**
34
+ * @param {string} hostname
35
+ * @param {?Object} credentials
36
+ * @param {?grpc.web.ClientOptions} options
37
+ * @constructor
38
+ * @struct
39
+ * @final
40
+ */
41
+ proto.worldpayserviceapi.PayrollServiceClient =
42
+ function(hostname, credentials, options) {
43
+ if (!options) options = {};
44
+ options.format = 'text';
45
+
46
+ /**
47
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
48
+ */
49
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
50
+
51
+ /**
52
+ * @private @const {string} The hostname
53
+ */
54
+ this.hostname_ = hostname.replace(/\/+$/, '');
55
+
56
+ };
57
+
58
+
59
+ /**
60
+ * @param {string} hostname
61
+ * @param {?Object} credentials
62
+ * @param {?grpc.web.ClientOptions} options
63
+ * @constructor
64
+ * @struct
65
+ * @final
66
+ */
67
+ proto.worldpayserviceapi.PayrollServicePromiseClient =
68
+ function(hostname, credentials, options) {
69
+ if (!options) options = {};
70
+ options.format = 'text';
71
+
72
+ /**
73
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
74
+ */
75
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
76
+
77
+ /**
78
+ * @private @const {string} The hostname
79
+ */
80
+ this.hostname_ = hostname.replace(/\/+$/, '');
81
+
82
+ };
83
+
84
+
85
+ /**
86
+ * @const
87
+ * @type {!grpc.web.MethodDescriptor<
88
+ * !proto.google.protobuf.Empty,
89
+ * !proto.worldpayserviceapi.ResponseCode>}
90
+ */
91
+ const methodDescriptor_PayrollService_Health = new grpc.web.MethodDescriptor(
92
+ '/worldpayserviceapi.PayrollService/Health',
93
+ grpc.web.MethodType.UNARY,
94
+ google_protobuf_empty_pb.Empty,
95
+ proto.worldpayserviceapi.ResponseCode,
96
+ /**
97
+ * @param {!proto.google.protobuf.Empty} request
98
+ * @return {!Uint8Array}
99
+ */
100
+ function(request) {
101
+ return request.serializeBinary();
102
+ },
103
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary
104
+ );
105
+
106
+
107
+ /**
108
+ * @param {!proto.google.protobuf.Empty} request The
109
+ * request proto
110
+ * @param {?Object<string, string>} metadata User defined
111
+ * call metadata
112
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.ResponseCode)}
113
+ * callback The callback function(error, response)
114
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.ResponseCode>|undefined}
115
+ * The XHR Node Readable Stream
116
+ */
117
+ proto.worldpayserviceapi.PayrollServiceClient.prototype.health =
118
+ function(request, metadata, callback) {
119
+ return this.client_.rpcCall(this.hostname_ +
120
+ '/worldpayserviceapi.PayrollService/Health',
121
+ request,
122
+ metadata || {},
123
+ methodDescriptor_PayrollService_Health,
124
+ callback);
125
+ };
126
+
127
+
128
+ /**
129
+ * @param {!proto.google.protobuf.Empty} request The
130
+ * request proto
131
+ * @param {?Object<string, string>=} metadata User defined
132
+ * call metadata
133
+ * @return {!Promise<!proto.worldpayserviceapi.ResponseCode>}
134
+ * Promise that resolves to the response
135
+ */
136
+ proto.worldpayserviceapi.PayrollServicePromiseClient.prototype.health =
137
+ function(request, metadata) {
138
+ return this.client_.unaryCall(this.hostname_ +
139
+ '/worldpayserviceapi.PayrollService/Health',
140
+ request,
141
+ metadata || {},
142
+ methodDescriptor_PayrollService_Health);
143
+ };
144
+
145
+
146
+ /**
147
+ * @const
148
+ * @type {!grpc.web.MethodDescriptor<
149
+ * !proto.google.protobuf.Empty,
150
+ * !proto.worldpayserviceapi.ResponseCode>}
151
+ */
152
+ const methodDescriptor_PayrollService_LocalHealth = new grpc.web.MethodDescriptor(
153
+ '/worldpayserviceapi.PayrollService/LocalHealth',
154
+ grpc.web.MethodType.UNARY,
155
+ google_protobuf_empty_pb.Empty,
156
+ proto.worldpayserviceapi.ResponseCode,
157
+ /**
158
+ * @param {!proto.google.protobuf.Empty} request
159
+ * @return {!Uint8Array}
160
+ */
161
+ function(request) {
162
+ return request.serializeBinary();
163
+ },
164
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary
165
+ );
166
+
167
+
168
+ /**
169
+ * @param {!proto.google.protobuf.Empty} request The
170
+ * request proto
171
+ * @param {?Object<string, string>} metadata User defined
172
+ * call metadata
173
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.ResponseCode)}
174
+ * callback The callback function(error, response)
175
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.ResponseCode>|undefined}
176
+ * The XHR Node Readable Stream
177
+ */
178
+ proto.worldpayserviceapi.PayrollServiceClient.prototype.localHealth =
179
+ function(request, metadata, callback) {
180
+ return this.client_.rpcCall(this.hostname_ +
181
+ '/worldpayserviceapi.PayrollService/LocalHealth',
182
+ request,
183
+ metadata || {},
184
+ methodDescriptor_PayrollService_LocalHealth,
185
+ callback);
186
+ };
187
+
188
+
189
+ /**
190
+ * @param {!proto.google.protobuf.Empty} request The
191
+ * request proto
192
+ * @param {?Object<string, string>=} metadata User defined
193
+ * call metadata
194
+ * @return {!Promise<!proto.worldpayserviceapi.ResponseCode>}
195
+ * Promise that resolves to the response
196
+ */
197
+ proto.worldpayserviceapi.PayrollServicePromiseClient.prototype.localHealth =
198
+ function(request, metadata) {
199
+ return this.client_.unaryCall(this.hostname_ +
200
+ '/worldpayserviceapi.PayrollService/LocalHealth',
201
+ request,
202
+ metadata || {},
203
+ methodDescriptor_PayrollService_LocalHealth);
204
+ };
205
+
206
+
207
+ module.exports = proto.worldpayserviceapi;
208
+
@@ -0,0 +1,208 @@
1
+ // source: service.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
19
+ goog.object.extend(proto, google_api_annotations_pb);
20
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
+ goog.object.extend(proto, google_protobuf_empty_pb);
22
+ var google_type_decimal_pb = require('./google/type/decimal_pb.js');
23
+ goog.object.extend(proto, google_type_decimal_pb);
24
+ var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
25
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
26
+ goog.exportSymbol('proto.worldpayserviceapi.ResponseCode', null, global);
27
+ /**
28
+ * Generated by JsPbCodeGenerator.
29
+ * @param {Array=} opt_data Optional initial data array, typically from a
30
+ * server response, or constructed directly in Javascript. The array is used
31
+ * in place and becomes part of the constructed object. It is not cloned.
32
+ * If no data is provided, the constructed object will be empty, but still
33
+ * valid.
34
+ * @extends {jspb.Message}
35
+ * @constructor
36
+ */
37
+ proto.worldpayserviceapi.ResponseCode = function(opt_data) {
38
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
39
+ };
40
+ goog.inherits(proto.worldpayserviceapi.ResponseCode, jspb.Message);
41
+ if (goog.DEBUG && !COMPILED) {
42
+ /**
43
+ * @public
44
+ * @override
45
+ */
46
+ proto.worldpayserviceapi.ResponseCode.displayName = 'proto.worldpayserviceapi.ResponseCode';
47
+ }
48
+
49
+
50
+
51
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52
+ /**
53
+ * Creates an object representation of this proto.
54
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55
+ * Optional fields that are not set will be set to undefined.
56
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57
+ * For the list of reserved names please see:
58
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60
+ * JSPB instance for transitional soy proto support:
61
+ * http://goto/soy-param-migration
62
+ * @return {!Object}
63
+ */
64
+ proto.worldpayserviceapi.ResponseCode.prototype.toObject = function(opt_includeInstance) {
65
+ return proto.worldpayserviceapi.ResponseCode.toObject(opt_includeInstance, this);
66
+ };
67
+
68
+
69
+ /**
70
+ * Static version of the {@see toObject} method.
71
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72
+ * the JSPB instance for transitional soy proto support:
73
+ * http://goto/soy-param-migration
74
+ * @param {!proto.worldpayserviceapi.ResponseCode} msg The msg instance to transform.
75
+ * @return {!Object}
76
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77
+ */
78
+ proto.worldpayserviceapi.ResponseCode.toObject = function(includeInstance, msg) {
79
+ var f, obj = {
80
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
81
+ code: jspb.Message.getFieldWithDefault(msg, 2, 0)
82
+ };
83
+
84
+ if (includeInstance) {
85
+ obj.$jspbMessageInstance = msg;
86
+ }
87
+ return obj;
88
+ };
89
+ }
90
+
91
+
92
+ /**
93
+ * Deserializes binary data (in protobuf wire format).
94
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
95
+ * @return {!proto.worldpayserviceapi.ResponseCode}
96
+ */
97
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary = function(bytes) {
98
+ var reader = new jspb.BinaryReader(bytes);
99
+ var msg = new proto.worldpayserviceapi.ResponseCode;
100
+ return proto.worldpayserviceapi.ResponseCode.deserializeBinaryFromReader(msg, reader);
101
+ };
102
+
103
+
104
+ /**
105
+ * Deserializes binary data (in protobuf wire format) from the
106
+ * given reader into the given message object.
107
+ * @param {!proto.worldpayserviceapi.ResponseCode} msg The message object to deserialize into.
108
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
109
+ * @return {!proto.worldpayserviceapi.ResponseCode}
110
+ */
111
+ proto.worldpayserviceapi.ResponseCode.deserializeBinaryFromReader = function(msg, reader) {
112
+ while (reader.nextField()) {
113
+ if (reader.isEndGroup()) {
114
+ break;
115
+ }
116
+ var field = reader.getFieldNumber();
117
+ switch (field) {
118
+ case 1:
119
+ var value = /** @type {string} */ (reader.readString());
120
+ msg.setMessage(value);
121
+ break;
122
+ case 2:
123
+ var value = /** @type {number} */ (reader.readInt32());
124
+ msg.setCode(value);
125
+ break;
126
+ default:
127
+ reader.skipField();
128
+ break;
129
+ }
130
+ }
131
+ return msg;
132
+ };
133
+
134
+
135
+ /**
136
+ * Serializes the message to binary data (in protobuf wire format).
137
+ * @return {!Uint8Array}
138
+ */
139
+ proto.worldpayserviceapi.ResponseCode.prototype.serializeBinary = function() {
140
+ var writer = new jspb.BinaryWriter();
141
+ proto.worldpayserviceapi.ResponseCode.serializeBinaryToWriter(this, writer);
142
+ return writer.getResultBuffer();
143
+ };
144
+
145
+
146
+ /**
147
+ * Serializes the given message to binary data (in protobuf wire
148
+ * format), writing to the given BinaryWriter.
149
+ * @param {!proto.worldpayserviceapi.ResponseCode} message
150
+ * @param {!jspb.BinaryWriter} writer
151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
152
+ */
153
+ proto.worldpayserviceapi.ResponseCode.serializeBinaryToWriter = function(message, writer) {
154
+ var f = undefined;
155
+ f = message.getMessage();
156
+ if (f.length > 0) {
157
+ writer.writeString(
158
+ 1,
159
+ f
160
+ );
161
+ }
162
+ f = message.getCode();
163
+ if (f !== 0) {
164
+ writer.writeInt32(
165
+ 2,
166
+ f
167
+ );
168
+ }
169
+ };
170
+
171
+
172
+ /**
173
+ * optional string message = 1;
174
+ * @return {string}
175
+ */
176
+ proto.worldpayserviceapi.ResponseCode.prototype.getMessage = function() {
177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
178
+ };
179
+
180
+
181
+ /**
182
+ * @param {string} value
183
+ * @return {!proto.worldpayserviceapi.ResponseCode} returns this
184
+ */
185
+ proto.worldpayserviceapi.ResponseCode.prototype.setMessage = function(value) {
186
+ return jspb.Message.setProto3StringField(this, 1, value);
187
+ };
188
+
189
+
190
+ /**
191
+ * optional int32 code = 2;
192
+ * @return {number}
193
+ */
194
+ proto.worldpayserviceapi.ResponseCode.prototype.getCode = function() {
195
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
196
+ };
197
+
198
+
199
+ /**
200
+ * @param {number} value
201
+ * @return {!proto.worldpayserviceapi.ResponseCode} returns this
202
+ */
203
+ proto.worldpayserviceapi.ResponseCode.prototype.setCode = function(value) {
204
+ return jspb.Message.setProto3IntField(this, 2, value);
205
+ };
206
+
207
+
208
+ goog.object.extend(exports, proto.worldpayserviceapi);
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ client: require('./dependancies/service_grpc_web_pb.js'),
3
+ models: require('./dependancies/service_pb.js')
4
+ }
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@sniipwebmaster/payroll-service-client-grpcweb",
3
+ "version": "25.7.13",
4
+ "description": "payroll-service-client-grpcweb",
5
+ "author": "Sniip Development Team",
6
+ "license": "MIT",
7
+ "dependencies": {
8
+ "google-protobuf": "3.20.1",
9
+ "grpc-web": "1.5.0"
10
+ }
11
+ }