@stashfin/grpc 1.2.825 → 1.2.827

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.825",
3
+ "version": "1.2.827",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,11 +1,14 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "eqxcustomers.getallcustomers";
3
3
  export interface getAllCustomersRequest {
4
- page: number;
5
- limit: number;
6
- id?: string | undefined;
4
+ page?: number | undefined;
5
+ limit?: number | undefined;
6
+ id?: number | undefined;
7
7
  mobile?: string | undefined;
8
8
  email?: string | undefined;
9
+ upi_linked?: string | undefined;
10
+ category?: string | undefined;
11
+ created_at?: string | undefined;
9
12
  }
10
13
  export interface Customer {
11
14
  id?: number | undefined;
@@ -14,18 +14,27 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "eqxcustomers.getallcustomers";
16
16
  function createBasegetAllCustomersRequest() {
17
- return { page: 0, limit: 0, id: undefined, mobile: undefined, email: undefined };
17
+ return {
18
+ page: undefined,
19
+ limit: undefined,
20
+ id: undefined,
21
+ mobile: undefined,
22
+ email: undefined,
23
+ upi_linked: undefined,
24
+ category: undefined,
25
+ created_at: undefined,
26
+ };
18
27
  }
19
28
  exports.getAllCustomersRequest = {
20
29
  encode(message, writer = minimal_1.default.Writer.create()) {
21
- if (message.page !== 0) {
30
+ if (message.page !== undefined) {
22
31
  writer.uint32(8).int32(message.page);
23
32
  }
24
- if (message.limit !== 0) {
33
+ if (message.limit !== undefined) {
25
34
  writer.uint32(16).int32(message.limit);
26
35
  }
27
36
  if (message.id !== undefined) {
28
- writer.uint32(26).string(message.id);
37
+ writer.uint32(24).int32(message.id);
29
38
  }
30
39
  if (message.mobile !== undefined) {
31
40
  writer.uint32(34).string(message.mobile);
@@ -33,6 +42,15 @@ exports.getAllCustomersRequest = {
33
42
  if (message.email !== undefined) {
34
43
  writer.uint32(42).string(message.email);
35
44
  }
45
+ if (message.upi_linked !== undefined) {
46
+ writer.uint32(50).string(message.upi_linked);
47
+ }
48
+ if (message.category !== undefined) {
49
+ writer.uint32(58).string(message.category);
50
+ }
51
+ if (message.created_at !== undefined) {
52
+ writer.uint32(66).string(message.created_at);
53
+ }
36
54
  return writer;
37
55
  },
38
56
  decode(input, length) {
@@ -55,10 +73,10 @@ exports.getAllCustomersRequest = {
55
73
  message.limit = reader.int32();
56
74
  continue;
57
75
  case 3:
58
- if (tag !== 26) {
76
+ if (tag !== 24) {
59
77
  break;
60
78
  }
61
- message.id = reader.string();
79
+ message.id = reader.int32();
62
80
  continue;
63
81
  case 4:
64
82
  if (tag !== 34) {
@@ -72,6 +90,24 @@ exports.getAllCustomersRequest = {
72
90
  }
73
91
  message.email = reader.string();
74
92
  continue;
93
+ case 6:
94
+ if (tag !== 50) {
95
+ break;
96
+ }
97
+ message.upi_linked = reader.string();
98
+ continue;
99
+ case 7:
100
+ if (tag !== 58) {
101
+ break;
102
+ }
103
+ message.category = reader.string();
104
+ continue;
105
+ case 8:
106
+ if (tag !== 66) {
107
+ break;
108
+ }
109
+ message.created_at = reader.string();
110
+ continue;
75
111
  }
76
112
  if ((tag & 7) === 4 || tag === 0) {
77
113
  break;
@@ -82,23 +118,26 @@ exports.getAllCustomersRequest = {
82
118
  },
83
119
  fromJSON(object) {
84
120
  return {
85
- page: isSet(object.page) ? globalThis.Number(object.page) : 0,
86
- limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
87
- id: isSet(object.id) ? globalThis.String(object.id) : undefined,
121
+ page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
122
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
123
+ id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
88
124
  mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
89
125
  email: isSet(object.email) ? globalThis.String(object.email) : undefined,
126
+ upi_linked: isSet(object.upi_linked) ? globalThis.String(object.upi_linked) : undefined,
127
+ category: isSet(object.category) ? globalThis.String(object.category) : undefined,
128
+ created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
90
129
  };
91
130
  },
92
131
  toJSON(message) {
93
132
  const obj = {};
94
- if (message.page !== 0) {
133
+ if (message.page !== undefined) {
95
134
  obj.page = Math.round(message.page);
96
135
  }
97
- if (message.limit !== 0) {
136
+ if (message.limit !== undefined) {
98
137
  obj.limit = Math.round(message.limit);
99
138
  }
100
139
  if (message.id !== undefined) {
101
- obj.id = message.id;
140
+ obj.id = Math.round(message.id);
102
141
  }
103
142
  if (message.mobile !== undefined) {
104
143
  obj.mobile = message.mobile;
@@ -106,6 +145,15 @@ exports.getAllCustomersRequest = {
106
145
  if (message.email !== undefined) {
107
146
  obj.email = message.email;
108
147
  }
148
+ if (message.upi_linked !== undefined) {
149
+ obj.upi_linked = message.upi_linked;
150
+ }
151
+ if (message.category !== undefined) {
152
+ obj.category = message.category;
153
+ }
154
+ if (message.created_at !== undefined) {
155
+ obj.created_at = message.created_at;
156
+ }
109
157
  return obj;
110
158
  },
111
159
  create(base) {
@@ -113,11 +161,14 @@ exports.getAllCustomersRequest = {
113
161
  },
114
162
  fromPartial(object) {
115
163
  const message = createBasegetAllCustomersRequest();
116
- message.page = object.page ?? 0;
117
- message.limit = object.limit ?? 0;
164
+ message.page = object.page ?? undefined;
165
+ message.limit = object.limit ?? undefined;
118
166
  message.id = object.id ?? undefined;
119
167
  message.mobile = object.mobile ?? undefined;
120
168
  message.email = object.email ?? undefined;
169
+ message.upi_linked = object.upi_linked ?? undefined;
170
+ message.category = object.category ?? undefined;
171
+ message.created_at = object.created_at ?? undefined;
121
172
  return message;
122
173
  },
123
174
  };