@sniipwebmaster/loyalty-program-client-grpcweb 22.16.57

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,318 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for loyaltyprogramserviceapi
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // GENERATED CODE -- DO NOT EDIT!
8
+
9
+
10
+ /* eslint-disable */
11
+ // @ts-nocheck
12
+
13
+
14
+
15
+ const grpc = {};
16
+ grpc.web = require('grpc-web');
17
+
18
+
19
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js')
20
+
21
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
22
+ const proto = {};
23
+ proto.loyaltyprogramserviceapi = require('./service_pb.js');
24
+
25
+ /**
26
+ * @param {string} hostname
27
+ * @param {?Object} credentials
28
+ * @param {?Object} options
29
+ * @constructor
30
+ * @struct
31
+ * @final
32
+ */
33
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient =
34
+ function(hostname, credentials, options) {
35
+ if (!options) options = {};
36
+ options['format'] = 'text';
37
+
38
+ /**
39
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
40
+ */
41
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
42
+
43
+ /**
44
+ * @private @const {string} The hostname
45
+ */
46
+ this.hostname_ = hostname;
47
+
48
+ };
49
+
50
+
51
+ /**
52
+ * @param {string} hostname
53
+ * @param {?Object} credentials
54
+ * @param {?Object} options
55
+ * @constructor
56
+ * @struct
57
+ * @final
58
+ */
59
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient =
60
+ function(hostname, credentials, options) {
61
+ if (!options) options = {};
62
+ options['format'] = 'text';
63
+
64
+ /**
65
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
66
+ */
67
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
68
+
69
+ /**
70
+ * @private @const {string} The hostname
71
+ */
72
+ this.hostname_ = hostname;
73
+
74
+ };
75
+
76
+
77
+ /**
78
+ * @const
79
+ * @type {!grpc.web.MethodDescriptor<
80
+ * !proto.google.protobuf.Empty,
81
+ * !proto.loyaltyprogramserviceapi.ProgramDetailsResponse>}
82
+ */
83
+ const methodDescriptor_LoyaltyProgramServiceAPIService_GetProgramList = new grpc.web.MethodDescriptor(
84
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetProgramList',
85
+ grpc.web.MethodType.UNARY,
86
+ google_protobuf_empty_pb.Empty,
87
+ proto.loyaltyprogramserviceapi.ProgramDetailsResponse,
88
+ /**
89
+ * @param {!proto.google.protobuf.Empty} request
90
+ * @return {!Uint8Array}
91
+ */
92
+ function(request) {
93
+ return request.serializeBinary();
94
+ },
95
+ proto.loyaltyprogramserviceapi.ProgramDetailsResponse.deserializeBinary
96
+ );
97
+
98
+
99
+ /**
100
+ * @const
101
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
102
+ * !proto.google.protobuf.Empty,
103
+ * !proto.loyaltyprogramserviceapi.ProgramDetailsResponse>}
104
+ */
105
+ const methodInfo_LoyaltyProgramServiceAPIService_GetProgramList = new grpc.web.AbstractClientBase.MethodInfo(
106
+ proto.loyaltyprogramserviceapi.ProgramDetailsResponse,
107
+ /**
108
+ * @param {!proto.google.protobuf.Empty} request
109
+ * @return {!Uint8Array}
110
+ */
111
+ function(request) {
112
+ return request.serializeBinary();
113
+ },
114
+ proto.loyaltyprogramserviceapi.ProgramDetailsResponse.deserializeBinary
115
+ );
116
+
117
+
118
+ /**
119
+ * @param {!proto.google.protobuf.Empty} request The
120
+ * request proto
121
+ * @param {?Object<string, string>} metadata User defined
122
+ * call metadata
123
+ * @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ProgramDetailsResponse)}
124
+ * callback The callback function(error, response)
125
+ * @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ProgramDetailsResponse>|undefined}
126
+ * The XHR Node Readable Stream
127
+ */
128
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getProgramList =
129
+ function(request, metadata, callback) {
130
+ return this.client_.rpcCall(this.hostname_ +
131
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetProgramList',
132
+ request,
133
+ metadata || {},
134
+ methodDescriptor_LoyaltyProgramServiceAPIService_GetProgramList,
135
+ callback);
136
+ };
137
+
138
+
139
+ /**
140
+ * @param {!proto.google.protobuf.Empty} request The
141
+ * request proto
142
+ * @param {?Object<string, string>} metadata User defined
143
+ * call metadata
144
+ * @return {!Promise<!proto.loyaltyprogramserviceapi.ProgramDetailsResponse>}
145
+ * Promise that resolves to the response
146
+ */
147
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getProgramList =
148
+ function(request, metadata) {
149
+ return this.client_.unaryCall(this.hostname_ +
150
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetProgramList',
151
+ request,
152
+ metadata || {},
153
+ methodDescriptor_LoyaltyProgramServiceAPIService_GetProgramList);
154
+ };
155
+
156
+
157
+ /**
158
+ * @const
159
+ * @type {!grpc.web.MethodDescriptor<
160
+ * !proto.google.protobuf.Empty,
161
+ * !proto.loyaltyprogramserviceapi.ResponseCode>}
162
+ */
163
+ const methodDescriptor_LoyaltyProgramServiceAPIService_GrpcCall = new grpc.web.MethodDescriptor(
164
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GrpcCall',
165
+ grpc.web.MethodType.UNARY,
166
+ google_protobuf_empty_pb.Empty,
167
+ proto.loyaltyprogramserviceapi.ResponseCode,
168
+ /**
169
+ * @param {!proto.google.protobuf.Empty} request
170
+ * @return {!Uint8Array}
171
+ */
172
+ function(request) {
173
+ return request.serializeBinary();
174
+ },
175
+ proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
176
+ );
177
+
178
+
179
+ /**
180
+ * @const
181
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
182
+ * !proto.google.protobuf.Empty,
183
+ * !proto.loyaltyprogramserviceapi.ResponseCode>}
184
+ */
185
+ const methodInfo_LoyaltyProgramServiceAPIService_GrpcCall = new grpc.web.AbstractClientBase.MethodInfo(
186
+ proto.loyaltyprogramserviceapi.ResponseCode,
187
+ /**
188
+ * @param {!proto.google.protobuf.Empty} request
189
+ * @return {!Uint8Array}
190
+ */
191
+ function(request) {
192
+ return request.serializeBinary();
193
+ },
194
+ proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
195
+ );
196
+
197
+
198
+ /**
199
+ * @param {!proto.google.protobuf.Empty} request The
200
+ * request proto
201
+ * @param {?Object<string, string>} metadata User defined
202
+ * call metadata
203
+ * @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ResponseCode)}
204
+ * callback The callback function(error, response)
205
+ * @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ResponseCode>|undefined}
206
+ * The XHR Node Readable Stream
207
+ */
208
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.grpcCall =
209
+ function(request, metadata, callback) {
210
+ return this.client_.rpcCall(this.hostname_ +
211
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GrpcCall',
212
+ request,
213
+ metadata || {},
214
+ methodDescriptor_LoyaltyProgramServiceAPIService_GrpcCall,
215
+ callback);
216
+ };
217
+
218
+
219
+ /**
220
+ * @param {!proto.google.protobuf.Empty} request The
221
+ * request proto
222
+ * @param {?Object<string, string>} metadata User defined
223
+ * call metadata
224
+ * @return {!Promise<!proto.loyaltyprogramserviceapi.ResponseCode>}
225
+ * Promise that resolves to the response
226
+ */
227
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.grpcCall =
228
+ function(request, metadata) {
229
+ return this.client_.unaryCall(this.hostname_ +
230
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GrpcCall',
231
+ request,
232
+ metadata || {},
233
+ methodDescriptor_LoyaltyProgramServiceAPIService_GrpcCall);
234
+ };
235
+
236
+
237
+ /**
238
+ * @const
239
+ * @type {!grpc.web.MethodDescriptor<
240
+ * !proto.google.protobuf.Empty,
241
+ * !proto.loyaltyprogramserviceapi.ResponseCode>}
242
+ */
243
+ const methodDescriptor_LoyaltyProgramServiceAPIService_HealthCheck = new grpc.web.MethodDescriptor(
244
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/HealthCheck',
245
+ grpc.web.MethodType.UNARY,
246
+ google_protobuf_empty_pb.Empty,
247
+ proto.loyaltyprogramserviceapi.ResponseCode,
248
+ /**
249
+ * @param {!proto.google.protobuf.Empty} request
250
+ * @return {!Uint8Array}
251
+ */
252
+ function(request) {
253
+ return request.serializeBinary();
254
+ },
255
+ proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
256
+ );
257
+
258
+
259
+ /**
260
+ * @const
261
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
262
+ * !proto.google.protobuf.Empty,
263
+ * !proto.loyaltyprogramserviceapi.ResponseCode>}
264
+ */
265
+ const methodInfo_LoyaltyProgramServiceAPIService_HealthCheck = new grpc.web.AbstractClientBase.MethodInfo(
266
+ proto.loyaltyprogramserviceapi.ResponseCode,
267
+ /**
268
+ * @param {!proto.google.protobuf.Empty} request
269
+ * @return {!Uint8Array}
270
+ */
271
+ function(request) {
272
+ return request.serializeBinary();
273
+ },
274
+ proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
275
+ );
276
+
277
+
278
+ /**
279
+ * @param {!proto.google.protobuf.Empty} request The
280
+ * request proto
281
+ * @param {?Object<string, string>} metadata User defined
282
+ * call metadata
283
+ * @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ResponseCode)}
284
+ * callback The callback function(error, response)
285
+ * @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ResponseCode>|undefined}
286
+ * The XHR Node Readable Stream
287
+ */
288
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.healthCheck =
289
+ function(request, metadata, callback) {
290
+ return this.client_.rpcCall(this.hostname_ +
291
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/HealthCheck',
292
+ request,
293
+ metadata || {},
294
+ methodDescriptor_LoyaltyProgramServiceAPIService_HealthCheck,
295
+ callback);
296
+ };
297
+
298
+
299
+ /**
300
+ * @param {!proto.google.protobuf.Empty} request The
301
+ * request proto
302
+ * @param {?Object<string, string>} metadata User defined
303
+ * call metadata
304
+ * @return {!Promise<!proto.loyaltyprogramserviceapi.ResponseCode>}
305
+ * Promise that resolves to the response
306
+ */
307
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.healthCheck =
308
+ function(request, metadata) {
309
+ return this.client_.unaryCall(this.hostname_ +
310
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/HealthCheck',
311
+ request,
312
+ metadata || {},
313
+ methodDescriptor_LoyaltyProgramServiceAPIService_HealthCheck);
314
+ };
315
+
316
+
317
+ module.exports = proto.loyaltyprogramserviceapi;
318
+