@stashfin/grpc 1.2.593 → 1.2.594

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.593",
3
+ "version": "1.2.594",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,18 +1,22 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "upi.checkDeregisterPermission";
3
3
  export interface checkDeregisterPermissionRequest {
4
+ mobile: string;
5
+ device_id: string;
6
+ profile_id: string;
7
+ vpa: string;
4
8
  }
5
9
  export interface checkDeregisterPermissionResponse {
6
10
  status: string;
7
11
  message?: string | undefined;
8
12
  }
9
13
  export declare const checkDeregisterPermissionRequest: {
10
- encode(_: checkDeregisterPermissionRequest, writer?: _m0.Writer): _m0.Writer;
14
+ encode(message: checkDeregisterPermissionRequest, writer?: _m0.Writer): _m0.Writer;
11
15
  decode(input: _m0.Reader | Uint8Array, length?: number): checkDeregisterPermissionRequest;
12
- fromJSON(_: any): checkDeregisterPermissionRequest;
13
- toJSON(_: checkDeregisterPermissionRequest): unknown;
16
+ fromJSON(object: any): checkDeregisterPermissionRequest;
17
+ toJSON(message: checkDeregisterPermissionRequest): unknown;
14
18
  create<I extends Exact<DeepPartial<checkDeregisterPermissionRequest>, I>>(base?: I): checkDeregisterPermissionRequest;
15
- fromPartial<I extends Exact<DeepPartial<checkDeregisterPermissionRequest>, I>>(_: I): checkDeregisterPermissionRequest;
19
+ fromPartial<I extends Exact<DeepPartial<checkDeregisterPermissionRequest>, I>>(object: I): checkDeregisterPermissionRequest;
16
20
  };
17
21
  export declare const checkDeregisterPermissionResponse: {
18
22
  encode(message: checkDeregisterPermissionResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,10 +13,22 @@ exports.checkDeregisterPermissionResponse = exports.checkDeregisterPermissionReq
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.checkDeregisterPermission";
15
15
  function createBasecheckDeregisterPermissionRequest() {
16
- return {};
16
+ return { mobile: "", device_id: "", profile_id: "", vpa: "" };
17
17
  }
18
18
  exports.checkDeregisterPermissionRequest = {
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
+ }
23
+ if (message.device_id !== "") {
24
+ writer.uint32(18).string(message.device_id);
25
+ }
26
+ if (message.profile_id !== "") {
27
+ writer.uint32(26).string(message.profile_id);
28
+ }
29
+ if (message.vpa !== "") {
30
+ writer.uint32(34).string(message.vpa);
31
+ }
20
32
  return writer;
21
33
  },
22
34
  decode(input, length) {
@@ -26,6 +38,30 @@ exports.checkDeregisterPermissionRequest = {
26
38
  while (reader.pos < end) {
27
39
  const tag = reader.uint32();
28
40
  switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 10) {
43
+ break;
44
+ }
45
+ message.mobile = reader.string();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 18) {
49
+ break;
50
+ }
51
+ message.device_id = reader.string();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 26) {
55
+ break;
56
+ }
57
+ message.profile_id = reader.string();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.vpa = reader.string();
64
+ continue;
29
65
  }
30
66
  if ((tag & 7) === 4 || tag === 0) {
31
67
  break;
@@ -34,18 +70,39 @@ exports.checkDeregisterPermissionRequest = {
34
70
  }
35
71
  return message;
36
72
  },
37
- fromJSON(_) {
38
- return {};
73
+ fromJSON(object) {
74
+ return {
75
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
76
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
77
+ profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
78
+ vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : "",
79
+ };
39
80
  },
40
- toJSON(_) {
81
+ toJSON(message) {
41
82
  const obj = {};
83
+ if (message.mobile !== "") {
84
+ obj.mobile = message.mobile;
85
+ }
86
+ if (message.device_id !== "") {
87
+ obj.device_id = message.device_id;
88
+ }
89
+ if (message.profile_id !== "") {
90
+ obj.profile_id = message.profile_id;
91
+ }
92
+ if (message.vpa !== "") {
93
+ obj.vpa = message.vpa;
94
+ }
42
95
  return obj;
43
96
  },
44
97
  create(base) {
45
98
  return exports.checkDeregisterPermissionRequest.fromPartial(base ?? {});
46
99
  },
47
- fromPartial(_) {
100
+ fromPartial(object) {
48
101
  const message = createBasecheckDeregisterPermissionRequest();
102
+ message.mobile = object.mobile ?? "";
103
+ message.device_id = object.device_id ?? "";
104
+ message.profile_id = object.profile_id ?? "";
105
+ message.vpa = object.vpa ?? "";
49
106
  return message;
50
107
  },
51
108
  };