@sellout/models 0.0.257 → 0.0.258

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.
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
7
7
  const mutation = (0, graphql_tag_1.default) `
8
8
  mutation generateUserProfileReport($query: UserProfileQueryInput) {
9
- generateUserProfileReport(query: $query)
9
+ generateUserProfileReport(query: $query) {
10
+ url
11
+ message
12
+ }
10
13
  }
11
14
  `;
12
15
  exports.default = mutation;
@@ -1 +1 @@
1
- {"version":3,"file":"generateUserProfileReport.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/generateUserProfileReport.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;CAInB,CAAC;AAGF,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"generateUserProfileReport.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/generateUserProfileReport.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOnB,CAAC;AAGF,kBAAe,QAAQ,CAAC"}
@@ -48,6 +48,10 @@ const query = (0, graphql_tag_1.default) `
48
48
  }
49
49
  }
50
50
  }
51
+ metrics {
52
+ lifeTimeValue
53
+ lifeTimeTicketsPurchased
54
+ }
51
55
  }
52
56
  }
53
57
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"customerProfile.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/customerProfile.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"customerProfile.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/customerProfile.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -117307,6 +117307,7 @@ $root.GenerateUserProfileReportRequest = (function() {
117307
117307
  * @property {string|null} [spanContext] GenerateUserProfileReportRequest spanContext
117308
117308
  * @property {string|null} [orgId] GenerateUserProfileReportRequest orgId
117309
117309
  * @property {IUserProfileQuery|null} [query] GenerateUserProfileReportRequest query
117310
+ * @property {string|null} [userId] GenerateUserProfileReportRequest userId
117310
117311
  */
117311
117312
 
117312
117313
  /**
@@ -117348,6 +117349,14 @@ $root.GenerateUserProfileReportRequest = (function() {
117348
117349
  */
117349
117350
  GenerateUserProfileReportRequest.prototype.query = null;
117350
117351
 
117352
+ /**
117353
+ * GenerateUserProfileReportRequest userId.
117354
+ * @member {string} userId
117355
+ * @memberof GenerateUserProfileReportRequest
117356
+ * @instance
117357
+ */
117358
+ GenerateUserProfileReportRequest.prototype.userId = "";
117359
+
117351
117360
  /**
117352
117361
  * Creates a new GenerateUserProfileReportRequest instance using the specified properties.
117353
117362
  * @function create
@@ -117378,6 +117387,8 @@ $root.GenerateUserProfileReportRequest = (function() {
117378
117387
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
117379
117388
  if (message.query != null && Object.hasOwnProperty.call(message, "query"))
117380
117389
  $root.UserProfileQuery.encode(message.query, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
117390
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
117391
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
117381
117392
  return writer;
117382
117393
  };
117383
117394
 
@@ -117421,6 +117432,9 @@ $root.GenerateUserProfileReportRequest = (function() {
117421
117432
  case 2:
117422
117433
  message.query = $root.UserProfileQuery.decode(reader, reader.uint32());
117423
117434
  break;
117435
+ case 3:
117436
+ message.userId = reader.string();
117437
+ break;
117424
117438
  default:
117425
117439
  reader.skipType(tag & 7);
117426
117440
  break;
@@ -117467,6 +117481,9 @@ $root.GenerateUserProfileReportRequest = (function() {
117467
117481
  if (error)
117468
117482
  return "query." + error;
117469
117483
  }
117484
+ if (message.userId != null && message.hasOwnProperty("userId"))
117485
+ if (!$util.isString(message.userId))
117486
+ return "userId: string expected";
117470
117487
  return null;
117471
117488
  };
117472
117489
 
@@ -117491,6 +117508,8 @@ $root.GenerateUserProfileReportRequest = (function() {
117491
117508
  throw TypeError(".GenerateUserProfileReportRequest.query: object expected");
117492
117509
  message.query = $root.UserProfileQuery.fromObject(object.query);
117493
117510
  }
117511
+ if (object.userId != null)
117512
+ message.userId = String(object.userId);
117494
117513
  return message;
117495
117514
  };
117496
117515
 
@@ -117511,6 +117530,7 @@ $root.GenerateUserProfileReportRequest = (function() {
117511
117530
  object.spanContext = "";
117512
117531
  object.orgId = "";
117513
117532
  object.query = null;
117533
+ object.userId = "";
117514
117534
  }
117515
117535
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
117516
117536
  object.spanContext = message.spanContext;
@@ -117518,6 +117538,8 @@ $root.GenerateUserProfileReportRequest = (function() {
117518
117538
  object.orgId = message.orgId;
117519
117539
  if (message.query != null && message.hasOwnProperty("query"))
117520
117540
  object.query = $root.UserProfileQuery.toObject(message.query, options);
117541
+ if (message.userId != null && message.hasOwnProperty("userId"))
117542
+ object.userId = message.userId;
117521
117543
  return object;
117522
117544
  };
117523
117545
 
@@ -117544,6 +117566,7 @@ $root.GenerateUserProfileReportResponse = (function() {
117544
117566
  * @property {StatusCode|null} [status] GenerateUserProfileReportResponse status
117545
117567
  * @property {Array.<IError>|null} [errors] GenerateUserProfileReportResponse errors
117546
117568
  * @property {string|null} [url] GenerateUserProfileReportResponse url
117569
+ * @property {string|null} [message] GenerateUserProfileReportResponse message
117547
117570
  */
117548
117571
 
117549
117572
  /**
@@ -117586,6 +117609,14 @@ $root.GenerateUserProfileReportResponse = (function() {
117586
117609
  */
117587
117610
  GenerateUserProfileReportResponse.prototype.url = "";
117588
117611
 
117612
+ /**
117613
+ * GenerateUserProfileReportResponse message.
117614
+ * @member {string} message
117615
+ * @memberof GenerateUserProfileReportResponse
117616
+ * @instance
117617
+ */
117618
+ GenerateUserProfileReportResponse.prototype.message = "";
117619
+
117589
117620
  /**
117590
117621
  * Creates a new GenerateUserProfileReportResponse instance using the specified properties.
117591
117622
  * @function create
@@ -117617,6 +117648,8 @@ $root.GenerateUserProfileReportResponse = (function() {
117617
117648
  $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
117618
117649
  if (message.url != null && Object.hasOwnProperty.call(message, "url"))
117619
117650
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
117651
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
117652
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
117620
117653
  return writer;
117621
117654
  };
117622
117655
 
@@ -117662,6 +117695,9 @@ $root.GenerateUserProfileReportResponse = (function() {
117662
117695
  case 2:
117663
117696
  message.url = reader.string();
117664
117697
  break;
117698
+ case 3:
117699
+ message.message = reader.string();
117700
+ break;
117665
117701
  default:
117666
117702
  reader.skipType(tag & 7);
117667
117703
  break;
@@ -117724,6 +117760,9 @@ $root.GenerateUserProfileReportResponse = (function() {
117724
117760
  if (message.url != null && message.hasOwnProperty("url"))
117725
117761
  if (!$util.isString(message.url))
117726
117762
  return "url: string expected";
117763
+ if (message.message != null && message.hasOwnProperty("message"))
117764
+ if (!$util.isString(message.message))
117765
+ return "message: string expected";
117727
117766
  return null;
117728
117767
  };
117729
117768
 
@@ -117789,6 +117828,8 @@ $root.GenerateUserProfileReportResponse = (function() {
117789
117828
  }
117790
117829
  if (object.url != null)
117791
117830
  message.url = String(object.url);
117831
+ if (object.message != null)
117832
+ message.message = String(object.message);
117792
117833
  return message;
117793
117834
  };
117794
117835
 
@@ -117810,6 +117851,7 @@ $root.GenerateUserProfileReportResponse = (function() {
117810
117851
  if (options.defaults) {
117811
117852
  object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
117812
117853
  object.url = "";
117854
+ object.message = "";
117813
117855
  }
117814
117856
  if (message.status != null && message.hasOwnProperty("status"))
117815
117857
  object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
@@ -117820,6 +117862,8 @@ $root.GenerateUserProfileReportResponse = (function() {
117820
117862
  }
117821
117863
  if (message.url != null && message.hasOwnProperty("url"))
117822
117864
  object.url = message.url;
117865
+ if (message.message != null && message.hasOwnProperty("message"))
117866
+ object.message = message.message;
117823
117867
  return object;
117824
117868
  };
117825
117869
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.257",
3
+ "version": "0.0.258",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@hapi/joi": "^16.1.7",
20
- "@sellout/utils": "^0.0.257",
20
+ "@sellout/utils": "^0.0.258",
21
21
  "@types/hapi__joi": "^16.0.1",
22
22
  "@types/shortid": "^0.0.29",
23
23
  "apollo-link-debounce": "^2.1.0",
@@ -31,5 +31,5 @@
31
31
  "protobufjs": "^6.11.2",
32
32
  "typescript": "^4.4.2"
33
33
  },
34
- "gitHead": "1b9fb19e805fbc07141cb97af6ad6e2fbbf1fada"
34
+ "gitHead": "9d11be7074aaa72e3bc16b008c71f92a6dc470f5"
35
35
  }
@@ -2,7 +2,10 @@ import gql from 'graphql-tag';
2
2
 
3
3
  const mutation = gql`
4
4
  mutation generateUserProfileReport($query: UserProfileQueryInput) {
5
- generateUserProfileReport(query: $query)
5
+ generateUserProfileReport(query: $query) {
6
+ url
7
+ message
8
+ }
6
9
  }
7
10
  `;
8
11
 
@@ -44,6 +44,10 @@ const query = gql`
44
44
  }
45
45
  }
46
46
  }
47
+ metrics {
48
+ lifeTimeValue
49
+ lifeTimeTicketsPurchased
50
+ }
47
51
  }
48
52
  }
49
53
  `;
@@ -63,12 +63,14 @@ message GenerateUserProfileReportRequest {
63
63
  string spanContext = 0;
64
64
  string orgId = 1;
65
65
  UserProfileQuery query = 2;
66
+ string userId = 3;
66
67
  }
67
68
 
68
69
  message GenerateUserProfileReportResponse {
69
70
  StatusCode status = 0;
70
71
  repeated Error errors = 1;
71
72
  string url = 2;
73
+ string message = 3;
72
74
  }
73
75
 
74
76