@stashfin/grpc 1.2.645 → 1.2.646

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.645",
3
+ "version": "1.2.646",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,6 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "eqxcustomers.getcustomerbymobile";
3
3
  export interface getCustomerByMobileRequest {
4
+ mobile: string;
4
5
  }
5
6
  export interface getCustomerByMobileResponse {
6
7
  id: number;
@@ -11,12 +12,12 @@ export interface getCustomerByMobileResponse {
11
12
  email?: string | undefined;
12
13
  }
13
14
  export declare const getCustomerByMobileRequest: {
14
- encode(_: getCustomerByMobileRequest, writer?: _m0.Writer): _m0.Writer;
15
+ encode(message: getCustomerByMobileRequest, writer?: _m0.Writer): _m0.Writer;
15
16
  decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByMobileRequest;
16
- fromJSON(_: any): getCustomerByMobileRequest;
17
- toJSON(_: getCustomerByMobileRequest): unknown;
17
+ fromJSON(object: any): getCustomerByMobileRequest;
18
+ toJSON(message: getCustomerByMobileRequest): unknown;
18
19
  create<I extends Exact<DeepPartial<getCustomerByMobileRequest>, I>>(base?: I): getCustomerByMobileRequest;
19
- fromPartial<I extends Exact<DeepPartial<getCustomerByMobileRequest>, I>>(_: I): getCustomerByMobileRequest;
20
+ fromPartial<I extends Exact<DeepPartial<getCustomerByMobileRequest>, I>>(object: I): getCustomerByMobileRequest;
20
21
  };
21
22
  export declare const getCustomerByMobileResponse: {
22
23
  encode(message: getCustomerByMobileResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,10 +13,13 @@ exports.getCustomerByMobileResponse = exports.getCustomerByMobileRequest = expor
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getcustomerbymobile";
15
15
  function createBasegetCustomerByMobileRequest() {
16
- return {};
16
+ return { mobile: "" };
17
17
  }
18
18
  exports.getCustomerByMobileRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
22
+ }
20
23
  return writer;
21
24
  },
22
25
  decode(input, length) {
@@ -26,6 +29,12 @@ exports.getCustomerByMobileRequest = {
26
29
  while (reader.pos < end) {
27
30
  const tag = reader.uint32();
28
31
  switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.mobile = reader.string();
37
+ continue;
29
38
  }
30
39
  if ((tag & 7) === 4 || tag === 0) {
31
40
  break;
@@ -34,18 +43,22 @@ exports.getCustomerByMobileRequest = {
34
43
  }
35
44
  return message;
36
45
  },
37
- fromJSON(_) {
38
- return {};
46
+ fromJSON(object) {
47
+ return { mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "" };
39
48
  },
40
- toJSON(_) {
49
+ toJSON(message) {
41
50
  const obj = {};
51
+ if (message.mobile !== "") {
52
+ obj.mobile = message.mobile;
53
+ }
42
54
  return obj;
43
55
  },
44
56
  create(base) {
45
57
  return exports.getCustomerByMobileRequest.fromPartial(base ?? {});
46
58
  },
47
- fromPartial(_) {
59
+ fromPartial(object) {
48
60
  const message = createBasegetCustomerByMobileRequest();
61
+ message.mobile = object.mobile ?? "";
49
62
  return message;
50
63
  },
51
64
  };