@stashfin/grpc 1.2.706 → 1.2.708

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.706",
3
+ "version": "1.2.708",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -22,6 +22,7 @@ export interface Report {
22
22
  report_path?: string | undefined;
23
23
  dpd_counts?: DPDCounts | undefined;
24
24
  enquiries_data: EnquiriesData[];
25
+ pull_date?: string | undefined;
25
26
  }
26
27
  export interface TradeLine {
27
28
  id: number;
@@ -199,6 +199,7 @@ function createBaseReport() {
199
199
  report_path: undefined,
200
200
  dpd_counts: undefined,
201
201
  enquiries_data: [],
202
+ pull_date: undefined,
202
203
  };
203
204
  }
204
205
  exports.Report = {
@@ -233,6 +234,9 @@ exports.Report = {
233
234
  for (const v of message.enquiries_data) {
234
235
  exports.EnquiriesData.encode(v, writer.uint32(82).fork()).ldelim();
235
236
  }
237
+ if (message.pull_date !== undefined) {
238
+ writer.uint32(90).string(message.pull_date);
239
+ }
236
240
  return writer;
237
241
  },
238
242
  decode(input, length) {
@@ -302,6 +306,12 @@ exports.Report = {
302
306
  }
303
307
  message.enquiries_data.push(exports.EnquiriesData.decode(reader, reader.uint32()));
304
308
  continue;
309
+ case 11:
310
+ if (tag !== 90) {
311
+ break;
312
+ }
313
+ message.pull_date = reader.string();
314
+ continue;
305
315
  }
306
316
  if ((tag & 7) === 4 || tag === 0) {
307
317
  break;
@@ -326,6 +336,7 @@ exports.Report = {
326
336
  enquiries_data: globalThis.Array.isArray(object?.enquiries_data)
327
337
  ? object.enquiries_data.map((e) => exports.EnquiriesData.fromJSON(e))
328
338
  : [],
339
+ pull_date: isSet(object.pull_date) ? globalThis.String(object.pull_date) : undefined,
329
340
  };
330
341
  },
331
342
  toJSON(message) {
@@ -360,6 +371,9 @@ exports.Report = {
360
371
  if (message.enquiries_data?.length) {
361
372
  obj.enquiries_data = message.enquiries_data.map((e) => exports.EnquiriesData.toJSON(e));
362
373
  }
374
+ if (message.pull_date !== undefined) {
375
+ obj.pull_date = message.pull_date;
376
+ }
363
377
  return obj;
364
378
  },
365
379
  create(base) {
@@ -383,6 +397,7 @@ exports.Report = {
383
397
  ? exports.DPDCounts.fromPartial(object.dpd_counts)
384
398
  : undefined;
385
399
  message.enquiries_data = object.enquiries_data?.map((e) => exports.EnquiriesData.fromPartial(e)) || [];
400
+ message.pull_date = object.pull_date ?? undefined;
386
401
  return message;
387
402
  },
388
403
  };
@@ -0,0 +1,38 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "communications.bureauidwhatsapp";
3
+ export interface bureauWpRequest {
4
+ phone: string;
5
+ }
6
+ export interface bureauWpResponse {
7
+ wa_found?: number | undefined;
8
+ raw_response?: string | undefined;
9
+ raw_request?: string | undefined;
10
+ message: string;
11
+ }
12
+ export declare const bureauWpRequest: {
13
+ encode(message: bureauWpRequest, writer?: _m0.Writer): _m0.Writer;
14
+ decode(input: _m0.Reader | Uint8Array, length?: number): bureauWpRequest;
15
+ fromJSON(object: any): bureauWpRequest;
16
+ toJSON(message: bureauWpRequest): unknown;
17
+ create<I extends Exact<DeepPartial<bureauWpRequest>, I>>(base?: I): bureauWpRequest;
18
+ fromPartial<I extends Exact<DeepPartial<bureauWpRequest>, I>>(object: I): bureauWpRequest;
19
+ };
20
+ export declare const bureauWpResponse: {
21
+ encode(message: bureauWpResponse, writer?: _m0.Writer): _m0.Writer;
22
+ decode(input: _m0.Reader | Uint8Array, length?: number): bureauWpResponse;
23
+ fromJSON(object: any): bureauWpResponse;
24
+ toJSON(message: bureauWpResponse): unknown;
25
+ create<I extends Exact<DeepPartial<bureauWpResponse>, I>>(base?: I): bureauWpResponse;
26
+ fromPartial<I extends Exact<DeepPartial<bureauWpResponse>, I>>(object: I): bureauWpResponse;
27
+ };
28
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
29
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
30
+ [K in keyof T]?: DeepPartial<T[K]>;
31
+ } : Partial<T>;
32
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
33
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
34
+ [K in keyof P]: Exact<P[K], I[K]>;
35
+ } & {
36
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
37
+ };
38
+ export {};
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v6.30.1
6
+ // source: communications/bureauidwhatsapp.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.bureauWpResponse = exports.bureauWpRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "communications.bureauidwhatsapp";
15
+ function createBasebureauWpRequest() {
16
+ return { phone: "" };
17
+ }
18
+ exports.bureauWpRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.phone !== "") {
21
+ writer.uint32(10).string(message.phone);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasebureauWpRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.phone = reader.string();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { phone: isSet(object.phone) ? globalThis.String(object.phone) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.phone !== "") {
52
+ obj.phone = message.phone;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.bureauWpRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBasebureauWpRequest();
61
+ message.phone = object.phone ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBasebureauWpResponse() {
66
+ return { wa_found: undefined, raw_response: undefined, raw_request: undefined, message: "" };
67
+ }
68
+ exports.bureauWpResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.wa_found !== undefined) {
71
+ writer.uint32(8).int32(message.wa_found);
72
+ }
73
+ if (message.raw_response !== undefined) {
74
+ writer.uint32(18).string(message.raw_response);
75
+ }
76
+ if (message.raw_request !== undefined) {
77
+ writer.uint32(26).string(message.raw_request);
78
+ }
79
+ if (message.message !== "") {
80
+ writer.uint32(34).string(message.message);
81
+ }
82
+ return writer;
83
+ },
84
+ decode(input, length) {
85
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
86
+ let end = length === undefined ? reader.len : reader.pos + length;
87
+ const message = createBasebureauWpResponse();
88
+ while (reader.pos < end) {
89
+ const tag = reader.uint32();
90
+ switch (tag >>> 3) {
91
+ case 1:
92
+ if (tag !== 8) {
93
+ break;
94
+ }
95
+ message.wa_found = reader.int32();
96
+ continue;
97
+ case 2:
98
+ if (tag !== 18) {
99
+ break;
100
+ }
101
+ message.raw_response = reader.string();
102
+ continue;
103
+ case 3:
104
+ if (tag !== 26) {
105
+ break;
106
+ }
107
+ message.raw_request = reader.string();
108
+ continue;
109
+ case 4:
110
+ if (tag !== 34) {
111
+ break;
112
+ }
113
+ message.message = reader.string();
114
+ continue;
115
+ }
116
+ if ((tag & 7) === 4 || tag === 0) {
117
+ break;
118
+ }
119
+ reader.skipType(tag & 7);
120
+ }
121
+ return message;
122
+ },
123
+ fromJSON(object) {
124
+ return {
125
+ wa_found: isSet(object.wa_found) ? globalThis.Number(object.wa_found) : undefined,
126
+ raw_response: isSet(object.raw_response) ? globalThis.String(object.raw_response) : undefined,
127
+ raw_request: isSet(object.raw_request) ? globalThis.String(object.raw_request) : undefined,
128
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
129
+ };
130
+ },
131
+ toJSON(message) {
132
+ const obj = {};
133
+ if (message.wa_found !== undefined) {
134
+ obj.wa_found = Math.round(message.wa_found);
135
+ }
136
+ if (message.raw_response !== undefined) {
137
+ obj.raw_response = message.raw_response;
138
+ }
139
+ if (message.raw_request !== undefined) {
140
+ obj.raw_request = message.raw_request;
141
+ }
142
+ if (message.message !== "") {
143
+ obj.message = message.message;
144
+ }
145
+ return obj;
146
+ },
147
+ create(base) {
148
+ return exports.bureauWpResponse.fromPartial(base ?? {});
149
+ },
150
+ fromPartial(object) {
151
+ const message = createBasebureauWpResponse();
152
+ message.wa_found = object.wa_found ?? undefined;
153
+ message.raw_response = object.raw_response ?? undefined;
154
+ message.raw_request = object.raw_request ?? undefined;
155
+ message.message = object.message ?? "";
156
+ return message;
157
+ },
158
+ };
159
+ function isSet(value) {
160
+ return value !== null && value !== undefined;
161
+ }
@@ -0,0 +1,28 @@
1
+ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import { bureauWpRequest, bureauWpResponse } from "./communications/bureauidwhatsapp";
3
+ export declare const protobufPackage = "service";
4
+ export type communicationsService = typeof communicationsService;
5
+ export declare const communicationsService: {
6
+ readonly fetchWhatsAppDetails: {
7
+ readonly path: "/service.communications/fetchWhatsAppDetails";
8
+ readonly requestStream: false;
9
+ readonly responseStream: false;
10
+ readonly requestSerialize: (value: bureauWpRequest) => Buffer;
11
+ readonly requestDeserialize: (value: Buffer) => bureauWpRequest;
12
+ readonly responseSerialize: (value: bureauWpResponse) => Buffer;
13
+ readonly responseDeserialize: (value: Buffer) => bureauWpResponse;
14
+ };
15
+ };
16
+ export interface communicationsServer extends UntypedServiceImplementation {
17
+ fetchWhatsAppDetails: handleUnaryCall<bureauWpRequest, bureauWpResponse>;
18
+ }
19
+ export interface communicationsClient extends Client {
20
+ fetchWhatsAppDetails(request: bureauWpRequest, callback: (error: ServiceError | null, response: bureauWpResponse) => void): ClientUnaryCall;
21
+ fetchWhatsAppDetails(request: bureauWpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bureauWpResponse) => void): ClientUnaryCall;
22
+ fetchWhatsAppDetails(request: bureauWpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bureauWpResponse) => void): ClientUnaryCall;
23
+ }
24
+ export declare const communicationsClient: {
25
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): communicationsClient;
26
+ service: typeof communicationsService;
27
+ serviceName: string;
28
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v6.30.1
6
+ // source: communications.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.communicationsClient = exports.communicationsService = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const grpc_js_1 = require("@grpc/grpc-js");
11
+ const bureauidwhatsapp_1 = require("./communications/bureauidwhatsapp");
12
+ exports.protobufPackage = "service";
13
+ exports.communicationsService = {
14
+ fetchWhatsAppDetails: {
15
+ path: "/service.communications/fetchWhatsAppDetails",
16
+ requestStream: false,
17
+ responseStream: false,
18
+ requestSerialize: (value) => Buffer.from(bureauidwhatsapp_1.bureauWpRequest.encode(value).finish()),
19
+ requestDeserialize: (value) => bureauidwhatsapp_1.bureauWpRequest.decode(value),
20
+ responseSerialize: (value) => Buffer.from(bureauidwhatsapp_1.bureauWpResponse.encode(value).finish()),
21
+ responseDeserialize: (value) => bureauidwhatsapp_1.bureauWpResponse.decode(value),
22
+ },
23
+ };
24
+ exports.communicationsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.communicationsService, "service.communications");