@stashfin/grpc 1.5.6 → 1.5.7

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.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -29,6 +29,11 @@ export interface Report {
29
29
  refreshed?: boolean | undefined;
30
30
  is_credit_report_fetched?: boolean | undefined;
31
31
  product_code?: string | undefined;
32
+ email_variations?: EmailVariations | undefined;
33
+ address_variations?: AddressVariations | undefined;
34
+ phone_variations?: PhoneVariations | undefined;
35
+ dob_variations?: DOBVariations | undefined;
36
+ id_card_variations?: IDCardVariations | undefined;
32
37
  }
33
38
  export interface TradeLine {
34
39
  id: number;
@@ -118,6 +123,27 @@ export interface EnquiriesData {
118
123
  reporting_member: string;
119
124
  loan_type?: string | undefined;
120
125
  }
126
+ export interface EmailVariations {
127
+ emails: string[];
128
+ }
129
+ export interface AddressVariations {
130
+ addresses: string[];
131
+ }
132
+ export interface PhoneVariations {
133
+ phones: string[];
134
+ }
135
+ export interface DOBVariations {
136
+ dobs: string[];
137
+ }
138
+ export interface IDCardVariations {
139
+ id_cards: {
140
+ [key: string]: string;
141
+ };
142
+ }
143
+ export interface IDCardVariations_IdCardsEntry {
144
+ key: string;
145
+ value: string;
146
+ }
121
147
  export declare const bureauRequest: {
122
148
  encode(message: bureauRequest, writer?: _m0.Writer): _m0.Writer;
123
149
  decode(input: _m0.Reader | Uint8Array, length?: number): bureauRequest;
@@ -198,6 +224,54 @@ export declare const EnquiriesData: {
198
224
  create<I extends Exact<DeepPartial<EnquiriesData>, I>>(base?: I): EnquiriesData;
199
225
  fromPartial<I extends Exact<DeepPartial<EnquiriesData>, I>>(object: I): EnquiriesData;
200
226
  };
227
+ export declare const EmailVariations: {
228
+ encode(message: EmailVariations, writer?: _m0.Writer): _m0.Writer;
229
+ decode(input: _m0.Reader | Uint8Array, length?: number): EmailVariations;
230
+ fromJSON(object: any): EmailVariations;
231
+ toJSON(message: EmailVariations): unknown;
232
+ create<I extends Exact<DeepPartial<EmailVariations>, I>>(base?: I): EmailVariations;
233
+ fromPartial<I extends Exact<DeepPartial<EmailVariations>, I>>(object: I): EmailVariations;
234
+ };
235
+ export declare const AddressVariations: {
236
+ encode(message: AddressVariations, writer?: _m0.Writer): _m0.Writer;
237
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddressVariations;
238
+ fromJSON(object: any): AddressVariations;
239
+ toJSON(message: AddressVariations): unknown;
240
+ create<I extends Exact<DeepPartial<AddressVariations>, I>>(base?: I): AddressVariations;
241
+ fromPartial<I extends Exact<DeepPartial<AddressVariations>, I>>(object: I): AddressVariations;
242
+ };
243
+ export declare const PhoneVariations: {
244
+ encode(message: PhoneVariations, writer?: _m0.Writer): _m0.Writer;
245
+ decode(input: _m0.Reader | Uint8Array, length?: number): PhoneVariations;
246
+ fromJSON(object: any): PhoneVariations;
247
+ toJSON(message: PhoneVariations): unknown;
248
+ create<I extends Exact<DeepPartial<PhoneVariations>, I>>(base?: I): PhoneVariations;
249
+ fromPartial<I extends Exact<DeepPartial<PhoneVariations>, I>>(object: I): PhoneVariations;
250
+ };
251
+ export declare const DOBVariations: {
252
+ encode(message: DOBVariations, writer?: _m0.Writer): _m0.Writer;
253
+ decode(input: _m0.Reader | Uint8Array, length?: number): DOBVariations;
254
+ fromJSON(object: any): DOBVariations;
255
+ toJSON(message: DOBVariations): unknown;
256
+ create<I extends Exact<DeepPartial<DOBVariations>, I>>(base?: I): DOBVariations;
257
+ fromPartial<I extends Exact<DeepPartial<DOBVariations>, I>>(object: I): DOBVariations;
258
+ };
259
+ export declare const IDCardVariations: {
260
+ encode(message: IDCardVariations, writer?: _m0.Writer): _m0.Writer;
261
+ decode(input: _m0.Reader | Uint8Array, length?: number): IDCardVariations;
262
+ fromJSON(object: any): IDCardVariations;
263
+ toJSON(message: IDCardVariations): unknown;
264
+ create<I extends Exact<DeepPartial<IDCardVariations>, I>>(base?: I): IDCardVariations;
265
+ fromPartial<I extends Exact<DeepPartial<IDCardVariations>, I>>(object: I): IDCardVariations;
266
+ };
267
+ export declare const IDCardVariations_IdCardsEntry: {
268
+ encode(message: IDCardVariations_IdCardsEntry, writer?: _m0.Writer): _m0.Writer;
269
+ decode(input: _m0.Reader | Uint8Array, length?: number): IDCardVariations_IdCardsEntry;
270
+ fromJSON(object: any): IDCardVariations_IdCardsEntry;
271
+ toJSON(message: IDCardVariations_IdCardsEntry): unknown;
272
+ create<I extends Exact<DeepPartial<IDCardVariations_IdCardsEntry>, I>>(base?: I): IDCardVariations_IdCardsEntry;
273
+ fromPartial<I extends Exact<DeepPartial<IDCardVariations_IdCardsEntry>, I>>(object: I): IDCardVariations_IdCardsEntry;
274
+ };
201
275
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
202
276
  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 {} ? {
203
277
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.EnquiriesData = exports.DPDCounts = exports.dpdChar = exports.Enquiries = exports.DPD = exports.HistoryData = exports.TradeLine = exports.Report = exports.bureauResponse = exports.bureauRequest = exports.protobufPackage = void 0;
11
+ exports.IDCardVariations_IdCardsEntry = exports.IDCardVariations = exports.DOBVariations = exports.PhoneVariations = exports.AddressVariations = exports.EmailVariations = exports.EnquiriesData = exports.DPDCounts = exports.dpdChar = exports.Enquiries = exports.DPD = exports.HistoryData = exports.TradeLine = exports.Report = exports.bureauResponse = exports.bureauRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
@@ -253,6 +253,11 @@ function createBaseReport() {
253
253
  refreshed: undefined,
254
254
  is_credit_report_fetched: undefined,
255
255
  product_code: undefined,
256
+ email_variations: undefined,
257
+ address_variations: undefined,
258
+ phone_variations: undefined,
259
+ dob_variations: undefined,
260
+ id_card_variations: undefined,
256
261
  };
257
262
  }
258
263
  exports.Report = {
@@ -299,6 +304,21 @@ exports.Report = {
299
304
  if (message.product_code !== undefined) {
300
305
  writer.uint32(114).string(message.product_code);
301
306
  }
307
+ if (message.email_variations !== undefined) {
308
+ exports.EmailVariations.encode(message.email_variations, writer.uint32(122).fork()).ldelim();
309
+ }
310
+ if (message.address_variations !== undefined) {
311
+ exports.AddressVariations.encode(message.address_variations, writer.uint32(130).fork()).ldelim();
312
+ }
313
+ if (message.phone_variations !== undefined) {
314
+ exports.PhoneVariations.encode(message.phone_variations, writer.uint32(138).fork()).ldelim();
315
+ }
316
+ if (message.dob_variations !== undefined) {
317
+ exports.DOBVariations.encode(message.dob_variations, writer.uint32(146).fork()).ldelim();
318
+ }
319
+ if (message.id_card_variations !== undefined) {
320
+ exports.IDCardVariations.encode(message.id_card_variations, writer.uint32(154).fork()).ldelim();
321
+ }
302
322
  return writer;
303
323
  },
304
324
  decode(input, length) {
@@ -392,6 +412,36 @@ exports.Report = {
392
412
  }
393
413
  message.product_code = reader.string();
394
414
  continue;
415
+ case 15:
416
+ if (tag !== 122) {
417
+ break;
418
+ }
419
+ message.email_variations = exports.EmailVariations.decode(reader, reader.uint32());
420
+ continue;
421
+ case 16:
422
+ if (tag !== 130) {
423
+ break;
424
+ }
425
+ message.address_variations = exports.AddressVariations.decode(reader, reader.uint32());
426
+ continue;
427
+ case 17:
428
+ if (tag !== 138) {
429
+ break;
430
+ }
431
+ message.phone_variations = exports.PhoneVariations.decode(reader, reader.uint32());
432
+ continue;
433
+ case 18:
434
+ if (tag !== 146) {
435
+ break;
436
+ }
437
+ message.dob_variations = exports.DOBVariations.decode(reader, reader.uint32());
438
+ continue;
439
+ case 19:
440
+ if (tag !== 154) {
441
+ break;
442
+ }
443
+ message.id_card_variations = exports.IDCardVariations.decode(reader, reader.uint32());
444
+ continue;
395
445
  }
396
446
  if ((tag & 7) === 4 || tag === 0) {
397
447
  break;
@@ -422,6 +472,15 @@ exports.Report = {
422
472
  ? globalThis.Boolean(object.is_credit_report_fetched)
423
473
  : undefined,
424
474
  product_code: isSet(object.product_code) ? globalThis.String(object.product_code) : undefined,
475
+ email_variations: isSet(object.email_variations) ? exports.EmailVariations.fromJSON(object.email_variations) : undefined,
476
+ address_variations: isSet(object.address_variations)
477
+ ? exports.AddressVariations.fromJSON(object.address_variations)
478
+ : undefined,
479
+ phone_variations: isSet(object.phone_variations) ? exports.PhoneVariations.fromJSON(object.phone_variations) : undefined,
480
+ dob_variations: isSet(object.dob_variations) ? exports.DOBVariations.fromJSON(object.dob_variations) : undefined,
481
+ id_card_variations: isSet(object.id_card_variations)
482
+ ? exports.IDCardVariations.fromJSON(object.id_card_variations)
483
+ : undefined,
425
484
  };
426
485
  },
427
486
  toJSON(message) {
@@ -468,6 +527,21 @@ exports.Report = {
468
527
  if (message.product_code !== undefined) {
469
528
  obj.product_code = message.product_code;
470
529
  }
530
+ if (message.email_variations !== undefined) {
531
+ obj.email_variations = exports.EmailVariations.toJSON(message.email_variations);
532
+ }
533
+ if (message.address_variations !== undefined) {
534
+ obj.address_variations = exports.AddressVariations.toJSON(message.address_variations);
535
+ }
536
+ if (message.phone_variations !== undefined) {
537
+ obj.phone_variations = exports.PhoneVariations.toJSON(message.phone_variations);
538
+ }
539
+ if (message.dob_variations !== undefined) {
540
+ obj.dob_variations = exports.DOBVariations.toJSON(message.dob_variations);
541
+ }
542
+ if (message.id_card_variations !== undefined) {
543
+ obj.id_card_variations = exports.IDCardVariations.toJSON(message.id_card_variations);
544
+ }
471
545
  return obj;
472
546
  },
473
547
  create(base) {
@@ -495,6 +569,21 @@ exports.Report = {
495
569
  message.refreshed = object.refreshed ?? undefined;
496
570
  message.is_credit_report_fetched = object.is_credit_report_fetched ?? undefined;
497
571
  message.product_code = object.product_code ?? undefined;
572
+ message.email_variations = (object.email_variations !== undefined && object.email_variations !== null)
573
+ ? exports.EmailVariations.fromPartial(object.email_variations)
574
+ : undefined;
575
+ message.address_variations = (object.address_variations !== undefined && object.address_variations !== null)
576
+ ? exports.AddressVariations.fromPartial(object.address_variations)
577
+ : undefined;
578
+ message.phone_variations = (object.phone_variations !== undefined && object.phone_variations !== null)
579
+ ? exports.PhoneVariations.fromPartial(object.phone_variations)
580
+ : undefined;
581
+ message.dob_variations = (object.dob_variations !== undefined && object.dob_variations !== null)
582
+ ? exports.DOBVariations.fromPartial(object.dob_variations)
583
+ : undefined;
584
+ message.id_card_variations = (object.id_card_variations !== undefined && object.id_card_variations !== null)
585
+ ? exports.IDCardVariations.fromPartial(object.id_card_variations)
586
+ : undefined;
498
587
  return message;
499
588
  },
500
589
  };
@@ -1859,6 +1948,351 @@ exports.EnquiriesData = {
1859
1948
  return message;
1860
1949
  },
1861
1950
  };
1951
+ function createBaseEmailVariations() {
1952
+ return { emails: [] };
1953
+ }
1954
+ exports.EmailVariations = {
1955
+ encode(message, writer = minimal_1.default.Writer.create()) {
1956
+ for (const v of message.emails) {
1957
+ writer.uint32(10).string(v);
1958
+ }
1959
+ return writer;
1960
+ },
1961
+ decode(input, length) {
1962
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1963
+ let end = length === undefined ? reader.len : reader.pos + length;
1964
+ const message = createBaseEmailVariations();
1965
+ while (reader.pos < end) {
1966
+ const tag = reader.uint32();
1967
+ switch (tag >>> 3) {
1968
+ case 1:
1969
+ if (tag !== 10) {
1970
+ break;
1971
+ }
1972
+ message.emails.push(reader.string());
1973
+ continue;
1974
+ }
1975
+ if ((tag & 7) === 4 || tag === 0) {
1976
+ break;
1977
+ }
1978
+ reader.skipType(tag & 7);
1979
+ }
1980
+ return message;
1981
+ },
1982
+ fromJSON(object) {
1983
+ return {
1984
+ emails: globalThis.Array.isArray(object?.emails) ? object.emails.map((e) => globalThis.String(e)) : [],
1985
+ };
1986
+ },
1987
+ toJSON(message) {
1988
+ const obj = {};
1989
+ if (message.emails?.length) {
1990
+ obj.emails = message.emails;
1991
+ }
1992
+ return obj;
1993
+ },
1994
+ create(base) {
1995
+ return exports.EmailVariations.fromPartial(base ?? {});
1996
+ },
1997
+ fromPartial(object) {
1998
+ const message = createBaseEmailVariations();
1999
+ message.emails = object.emails?.map((e) => e) || [];
2000
+ return message;
2001
+ },
2002
+ };
2003
+ function createBaseAddressVariations() {
2004
+ return { addresses: [] };
2005
+ }
2006
+ exports.AddressVariations = {
2007
+ encode(message, writer = minimal_1.default.Writer.create()) {
2008
+ for (const v of message.addresses) {
2009
+ writer.uint32(10).string(v);
2010
+ }
2011
+ return writer;
2012
+ },
2013
+ decode(input, length) {
2014
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2015
+ let end = length === undefined ? reader.len : reader.pos + length;
2016
+ const message = createBaseAddressVariations();
2017
+ while (reader.pos < end) {
2018
+ const tag = reader.uint32();
2019
+ switch (tag >>> 3) {
2020
+ case 1:
2021
+ if (tag !== 10) {
2022
+ break;
2023
+ }
2024
+ message.addresses.push(reader.string());
2025
+ continue;
2026
+ }
2027
+ if ((tag & 7) === 4 || tag === 0) {
2028
+ break;
2029
+ }
2030
+ reader.skipType(tag & 7);
2031
+ }
2032
+ return message;
2033
+ },
2034
+ fromJSON(object) {
2035
+ return {
2036
+ addresses: globalThis.Array.isArray(object?.addresses)
2037
+ ? object.addresses.map((e) => globalThis.String(e))
2038
+ : [],
2039
+ };
2040
+ },
2041
+ toJSON(message) {
2042
+ const obj = {};
2043
+ if (message.addresses?.length) {
2044
+ obj.addresses = message.addresses;
2045
+ }
2046
+ return obj;
2047
+ },
2048
+ create(base) {
2049
+ return exports.AddressVariations.fromPartial(base ?? {});
2050
+ },
2051
+ fromPartial(object) {
2052
+ const message = createBaseAddressVariations();
2053
+ message.addresses = object.addresses?.map((e) => e) || [];
2054
+ return message;
2055
+ },
2056
+ };
2057
+ function createBasePhoneVariations() {
2058
+ return { phones: [] };
2059
+ }
2060
+ exports.PhoneVariations = {
2061
+ encode(message, writer = minimal_1.default.Writer.create()) {
2062
+ for (const v of message.phones) {
2063
+ writer.uint32(10).string(v);
2064
+ }
2065
+ return writer;
2066
+ },
2067
+ decode(input, length) {
2068
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2069
+ let end = length === undefined ? reader.len : reader.pos + length;
2070
+ const message = createBasePhoneVariations();
2071
+ while (reader.pos < end) {
2072
+ const tag = reader.uint32();
2073
+ switch (tag >>> 3) {
2074
+ case 1:
2075
+ if (tag !== 10) {
2076
+ break;
2077
+ }
2078
+ message.phones.push(reader.string());
2079
+ continue;
2080
+ }
2081
+ if ((tag & 7) === 4 || tag === 0) {
2082
+ break;
2083
+ }
2084
+ reader.skipType(tag & 7);
2085
+ }
2086
+ return message;
2087
+ },
2088
+ fromJSON(object) {
2089
+ return {
2090
+ phones: globalThis.Array.isArray(object?.phones) ? object.phones.map((e) => globalThis.String(e)) : [],
2091
+ };
2092
+ },
2093
+ toJSON(message) {
2094
+ const obj = {};
2095
+ if (message.phones?.length) {
2096
+ obj.phones = message.phones;
2097
+ }
2098
+ return obj;
2099
+ },
2100
+ create(base) {
2101
+ return exports.PhoneVariations.fromPartial(base ?? {});
2102
+ },
2103
+ fromPartial(object) {
2104
+ const message = createBasePhoneVariations();
2105
+ message.phones = object.phones?.map((e) => e) || [];
2106
+ return message;
2107
+ },
2108
+ };
2109
+ function createBaseDOBVariations() {
2110
+ return { dobs: [] };
2111
+ }
2112
+ exports.DOBVariations = {
2113
+ encode(message, writer = minimal_1.default.Writer.create()) {
2114
+ for (const v of message.dobs) {
2115
+ writer.uint32(10).string(v);
2116
+ }
2117
+ return writer;
2118
+ },
2119
+ decode(input, length) {
2120
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2121
+ let end = length === undefined ? reader.len : reader.pos + length;
2122
+ const message = createBaseDOBVariations();
2123
+ while (reader.pos < end) {
2124
+ const tag = reader.uint32();
2125
+ switch (tag >>> 3) {
2126
+ case 1:
2127
+ if (tag !== 10) {
2128
+ break;
2129
+ }
2130
+ message.dobs.push(reader.string());
2131
+ continue;
2132
+ }
2133
+ if ((tag & 7) === 4 || tag === 0) {
2134
+ break;
2135
+ }
2136
+ reader.skipType(tag & 7);
2137
+ }
2138
+ return message;
2139
+ },
2140
+ fromJSON(object) {
2141
+ return { dobs: globalThis.Array.isArray(object?.dobs) ? object.dobs.map((e) => globalThis.String(e)) : [] };
2142
+ },
2143
+ toJSON(message) {
2144
+ const obj = {};
2145
+ if (message.dobs?.length) {
2146
+ obj.dobs = message.dobs;
2147
+ }
2148
+ return obj;
2149
+ },
2150
+ create(base) {
2151
+ return exports.DOBVariations.fromPartial(base ?? {});
2152
+ },
2153
+ fromPartial(object) {
2154
+ const message = createBaseDOBVariations();
2155
+ message.dobs = object.dobs?.map((e) => e) || [];
2156
+ return message;
2157
+ },
2158
+ };
2159
+ function createBaseIDCardVariations() {
2160
+ return { id_cards: {} };
2161
+ }
2162
+ exports.IDCardVariations = {
2163
+ encode(message, writer = minimal_1.default.Writer.create()) {
2164
+ Object.entries(message.id_cards).forEach(([key, value]) => {
2165
+ exports.IDCardVariations_IdCardsEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
2166
+ });
2167
+ return writer;
2168
+ },
2169
+ decode(input, length) {
2170
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2171
+ let end = length === undefined ? reader.len : reader.pos + length;
2172
+ const message = createBaseIDCardVariations();
2173
+ while (reader.pos < end) {
2174
+ const tag = reader.uint32();
2175
+ switch (tag >>> 3) {
2176
+ case 1:
2177
+ if (tag !== 10) {
2178
+ break;
2179
+ }
2180
+ const entry1 = exports.IDCardVariations_IdCardsEntry.decode(reader, reader.uint32());
2181
+ if (entry1.value !== undefined) {
2182
+ message.id_cards[entry1.key] = entry1.value;
2183
+ }
2184
+ continue;
2185
+ }
2186
+ if ((tag & 7) === 4 || tag === 0) {
2187
+ break;
2188
+ }
2189
+ reader.skipType(tag & 7);
2190
+ }
2191
+ return message;
2192
+ },
2193
+ fromJSON(object) {
2194
+ return {
2195
+ id_cards: isObject(object.id_cards)
2196
+ ? Object.entries(object.id_cards).reduce((acc, [key, value]) => {
2197
+ acc[key] = String(value);
2198
+ return acc;
2199
+ }, {})
2200
+ : {},
2201
+ };
2202
+ },
2203
+ toJSON(message) {
2204
+ const obj = {};
2205
+ if (message.id_cards) {
2206
+ const entries = Object.entries(message.id_cards);
2207
+ if (entries.length > 0) {
2208
+ obj.id_cards = {};
2209
+ entries.forEach(([k, v]) => {
2210
+ obj.id_cards[k] = v;
2211
+ });
2212
+ }
2213
+ }
2214
+ return obj;
2215
+ },
2216
+ create(base) {
2217
+ return exports.IDCardVariations.fromPartial(base ?? {});
2218
+ },
2219
+ fromPartial(object) {
2220
+ const message = createBaseIDCardVariations();
2221
+ message.id_cards = Object.entries(object.id_cards ?? {}).reduce((acc, [key, value]) => {
2222
+ if (value !== undefined) {
2223
+ acc[key] = globalThis.String(value);
2224
+ }
2225
+ return acc;
2226
+ }, {});
2227
+ return message;
2228
+ },
2229
+ };
2230
+ function createBaseIDCardVariations_IdCardsEntry() {
2231
+ return { key: "", value: "" };
2232
+ }
2233
+ exports.IDCardVariations_IdCardsEntry = {
2234
+ encode(message, writer = minimal_1.default.Writer.create()) {
2235
+ if (message.key !== "") {
2236
+ writer.uint32(10).string(message.key);
2237
+ }
2238
+ if (message.value !== "") {
2239
+ writer.uint32(18).string(message.value);
2240
+ }
2241
+ return writer;
2242
+ },
2243
+ decode(input, length) {
2244
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2245
+ let end = length === undefined ? reader.len : reader.pos + length;
2246
+ const message = createBaseIDCardVariations_IdCardsEntry();
2247
+ while (reader.pos < end) {
2248
+ const tag = reader.uint32();
2249
+ switch (tag >>> 3) {
2250
+ case 1:
2251
+ if (tag !== 10) {
2252
+ break;
2253
+ }
2254
+ message.key = reader.string();
2255
+ continue;
2256
+ case 2:
2257
+ if (tag !== 18) {
2258
+ break;
2259
+ }
2260
+ message.value = reader.string();
2261
+ continue;
2262
+ }
2263
+ if ((tag & 7) === 4 || tag === 0) {
2264
+ break;
2265
+ }
2266
+ reader.skipType(tag & 7);
2267
+ }
2268
+ return message;
2269
+ },
2270
+ fromJSON(object) {
2271
+ return {
2272
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2273
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
2274
+ };
2275
+ },
2276
+ toJSON(message) {
2277
+ const obj = {};
2278
+ if (message.key !== "") {
2279
+ obj.key = message.key;
2280
+ }
2281
+ if (message.value !== "") {
2282
+ obj.value = message.value;
2283
+ }
2284
+ return obj;
2285
+ },
2286
+ create(base) {
2287
+ return exports.IDCardVariations_IdCardsEntry.fromPartial(base ?? {});
2288
+ },
2289
+ fromPartial(object) {
2290
+ const message = createBaseIDCardVariations_IdCardsEntry();
2291
+ message.key = object.key ?? "";
2292
+ message.value = object.value ?? "";
2293
+ return message;
2294
+ },
2295
+ };
1862
2296
  function longToNumber(long) {
1863
2297
  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
1864
2298
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
@@ -1872,6 +2306,9 @@ if (minimal_1.default.util.Long !== long_1.default) {
1872
2306
  minimal_1.default.util.Long = long_1.default;
1873
2307
  minimal_1.default.configure();
1874
2308
  }
2309
+ function isObject(value) {
2310
+ return typeof value === "object" && value !== null;
2311
+ }
1875
2312
  function isSet(value) {
1876
2313
  return value !== null && value !== undefined;
1877
2314
  }