quiver-protobuf-typescript 1.0.1691505607 → 1.0.1691506077

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tracking/request.ts +12 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quiver-protobuf-typescript",
3
- "version": "1.0.1691505607",
3
+ "version": "1.0.1691506077",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -59,7 +59,7 @@ export interface Request {
59
59
  apiKey?: string | undefined;
60
60
  method: string;
61
61
  url: string;
62
- query: string;
62
+ query?: string | undefined;
63
63
  source?: RequestSource | undefined;
64
64
  request: Payload | undefined;
65
65
  response: Payload | undefined;
@@ -75,7 +75,7 @@ export interface Payload {
75
75
  export interface CreateRequestRequest {
76
76
  merchantId: number;
77
77
  merchantName: string;
78
- apiKey: string;
78
+ apiKey?: string | undefined;
79
79
  method: string;
80
80
  url: string;
81
81
  query?: string | undefined;
@@ -110,7 +110,7 @@ function createBaseRequest(): Request {
110
110
  apiKey: undefined,
111
111
  method: "",
112
112
  url: "",
113
- query: "",
113
+ query: undefined,
114
114
  source: undefined,
115
115
  request: undefined,
116
116
  response: undefined,
@@ -144,7 +144,7 @@ export const Request = {
144
144
  if (message.url !== "") {
145
145
  writer.uint32(66).string(message.url);
146
146
  }
147
- if (message.query !== "") {
147
+ if (message.query !== undefined) {
148
148
  writer.uint32(74).string(message.query);
149
149
  }
150
150
  if (message.source !== undefined) {
@@ -279,7 +279,7 @@ export const Request = {
279
279
  apiKey: isSet(object.apiKey) ? String(object.apiKey) : undefined,
280
280
  method: isSet(object.method) ? String(object.method) : "",
281
281
  url: isSet(object.url) ? String(object.url) : "",
282
- query: isSet(object.query) ? String(object.query) : "",
282
+ query: isSet(object.query) ? String(object.query) : undefined,
283
283
  source: isSet(object.source) ? requestSourceFromJSON(object.source) : undefined,
284
284
  request: isSet(object.request) ? Payload.fromJSON(object.request) : undefined,
285
285
  response: isSet(object.response) ? Payload.fromJSON(object.response) : undefined,
@@ -313,7 +313,7 @@ export const Request = {
313
313
  if (message.url !== "") {
314
314
  obj.url = message.url;
315
315
  }
316
- if (message.query !== "") {
316
+ if (message.query !== undefined) {
317
317
  obj.query = message.query;
318
318
  }
319
319
  if (message.source !== undefined) {
@@ -344,7 +344,7 @@ export const Request = {
344
344
  message.apiKey = object.apiKey ?? undefined;
345
345
  message.method = object.method ?? "";
346
346
  message.url = object.url ?? "";
347
- message.query = object.query ?? "";
347
+ message.query = object.query ?? undefined;
348
348
  message.source = object.source ?? undefined;
349
349
  message.request = (object.request !== undefined && object.request !== null)
350
350
  ? Payload.fromPartial(object.request)
@@ -450,7 +450,7 @@ function createBaseCreateRequestRequest(): CreateRequestRequest {
450
450
  return {
451
451
  merchantId: 0,
452
452
  merchantName: "",
453
- apiKey: "",
453
+ apiKey: undefined,
454
454
  method: "",
455
455
  url: "",
456
456
  query: undefined,
@@ -467,7 +467,7 @@ export const CreateRequestRequest = {
467
467
  if (message.merchantName !== "") {
468
468
  writer.uint32(18).string(message.merchantName);
469
469
  }
470
- if (message.apiKey !== "") {
470
+ if (message.apiKey !== undefined) {
471
471
  writer.uint32(26).string(message.apiKey);
472
472
  }
473
473
  if (message.method !== "") {
@@ -564,7 +564,7 @@ export const CreateRequestRequest = {
564
564
  return {
565
565
  merchantId: isSet(object.merchantId) ? Number(object.merchantId) : 0,
566
566
  merchantName: isSet(object.merchantName) ? String(object.merchantName) : "",
567
- apiKey: isSet(object.apiKey) ? String(object.apiKey) : "",
567
+ apiKey: isSet(object.apiKey) ? String(object.apiKey) : undefined,
568
568
  method: isSet(object.method) ? String(object.method) : "",
569
569
  url: isSet(object.url) ? String(object.url) : "",
570
570
  query: isSet(object.query) ? String(object.query) : undefined,
@@ -581,7 +581,7 @@ export const CreateRequestRequest = {
581
581
  if (message.merchantName !== "") {
582
582
  obj.merchantName = message.merchantName;
583
583
  }
584
- if (message.apiKey !== "") {
584
+ if (message.apiKey !== undefined) {
585
585
  obj.apiKey = message.apiKey;
586
586
  }
587
587
  if (message.method !== "") {
@@ -609,7 +609,7 @@ export const CreateRequestRequest = {
609
609
  const message = createBaseCreateRequestRequest();
610
610
  message.merchantId = object.merchantId ?? 0;
611
611
  message.merchantName = object.merchantName ?? "";
612
- message.apiKey = object.apiKey ?? "";
612
+ message.apiKey = object.apiKey ?? undefined;
613
613
  message.method = object.method ?? "";
614
614
  message.url = object.url ?? "";
615
615
  message.query = object.query ?? undefined;