@sellout/models 0.0.257 → 0.0.259

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,11 @@ const query = (0, graphql_tag_1.default) `
48
48
  }
49
49
  }
50
50
  }
51
+ metrics {
52
+ lifeTimeValue
53
+ lifeTimeTicketsPurchased
54
+ eventIds
55
+ }
51
56
  }
52
57
  }
53
58
  `;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -46,6 +46,7 @@ const query = (0, graphql_tag_1.default) `
46
46
  }
47
47
  metrics {
48
48
  lifeTimeValue
49
+ eventIds
49
50
  }
50
51
  __typename
51
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"userProfilesAdmin.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userProfilesAdmin.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"userProfilesAdmin.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userProfilesAdmin.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -35,6 +35,7 @@ export interface IUserMetric {
35
35
  lifeTimeOrdersPurchased: number;
36
36
  yearToDateOrdersPurchased: number;
37
37
  createdAt: number;
38
+ eventIds: [string];
38
39
  }
39
40
  export default interface IUserProfile {
40
41
  _id?: string;
@@ -697,6 +697,11 @@ declare const _default: {
697
697
  required: boolean;
698
698
  default: number;
699
699
  };
700
+ eventIds: {
701
+ type: StringConstructor;
702
+ required: boolean;
703
+ default: never[];
704
+ }[];
700
705
  };
701
706
  published: {
702
707
  type: BooleanConstructor;
@@ -127,5 +127,10 @@ declare const _default: {
127
127
  required: boolean;
128
128
  default: number;
129
129
  };
130
+ eventIds: {
131
+ type: StringConstructor;
132
+ required: boolean;
133
+ default: never[];
134
+ }[];
130
135
  };
131
136
  export default _default;
@@ -133,5 +133,10 @@ exports.default = {
133
133
  required: false,
134
134
  default: 0,
135
135
  },
136
+ eventIds: [{
137
+ type: String,
138
+ required: false,
139
+ default: [],
140
+ }]
136
141
  };
137
142
  //# sourceMappingURL=Metrics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Metrics.js","sourceRoot":"","sources":["../../src/schemas/Metrics.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ;IACR,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,UAAU;IACV,wBAAwB,EAAE;QACxB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC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B,EAAE;QACvB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,wBAAwB,EAAE;QACxB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,QAAQ,EAAE,CAAC;YACT,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE;SACZ,CAAC;CAEH,CAAC"}
@@ -660,6 +660,11 @@ declare const _default: {
660
660
  required: boolean;
661
661
  default: number;
662
662
  };
663
+ eventIds: {
664
+ type: StringConstructor;
665
+ required: boolean;
666
+ default: never[];
667
+ }[];
663
668
  };
664
669
  published: {
665
670
  type: BooleanConstructor;
@@ -107,6 +107,11 @@ declare const _default: {
107
107
  type: NumberConstructor;
108
108
  required: boolean;
109
109
  };
110
+ eventIds: {
111
+ type: StringConstructor;
112
+ required: boolean;
113
+ default: never[];
114
+ }[];
110
115
  }[];
111
116
  address: {
112
117
  address1: {
@@ -54,6 +54,11 @@ const Metrics = {
54
54
  type: Number,
55
55
  required: true,
56
56
  },
57
+ eventIds: [{
58
+ type: String,
59
+ required: false,
60
+ default: [],
61
+ }]
57
62
  };
58
63
  exports.default = {
59
64
  _id: {
@@ -1 +1 @@
1
- {"version":3,"file":"UserProfile.js","sourceRoot":"","sources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QAAQ,EAAE,KAAK;KAChB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,MAAM,EAAE,CAAC;YACP,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE;SACZ,CAAC;IACF,QAAQ,EAAE,CAAC;YACT,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE;SACZ,CAAC;IACF,QAAQ,EAAE,CAAC;YACT,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE;SACZ,CAAC;IACF,SAAS,EAAE,CAAC;YACV,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE;SACZ,CAAC;IACF,OAAO,EAAC,CAAC,OAAO,CAAC;IACjB,OAAO,EAAE,iBAAO;CACjB,CAAC"}
@@ -6880,6 +6880,7 @@ $root.Metrics = (function() {
6880
6880
  * @property {number|null} [yearToDateOrdersRefunded] Metrics yearToDateOrdersRefunded
6881
6881
  * @property {number|null} [lifeTimeOrdersComped] Metrics lifeTimeOrdersComped
6882
6882
  * @property {number|null} [yearToDateOrdersComped] Metrics yearToDateOrdersComped
6883
+ * @property {Array.<string>|null} [eventIds] Metrics eventIds
6883
6884
  */
6884
6885
 
6885
6886
  /**
@@ -6891,6 +6892,7 @@ $root.Metrics = (function() {
6891
6892
  * @param {IMetrics=} [properties] Properties to set
6892
6893
  */
6893
6894
  function Metrics(properties) {
6895
+ this.eventIds = [];
6894
6896
  if (properties)
6895
6897
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6896
6898
  if (properties[keys[i]] != null)
@@ -7113,6 +7115,14 @@ $root.Metrics = (function() {
7113
7115
  */
7114
7116
  Metrics.prototype.yearToDateOrdersComped = 0;
7115
7117
 
7118
+ /**
7119
+ * Metrics eventIds.
7120
+ * @member {Array.<string>} eventIds
7121
+ * @memberof Metrics
7122
+ * @instance
7123
+ */
7124
+ Metrics.prototype.eventIds = $util.emptyArray;
7125
+
7116
7126
  /**
7117
7127
  * Creates a new Metrics instance using the specified properties.
7118
7128
  * @function create
@@ -7191,6 +7201,9 @@ $root.Metrics = (function() {
7191
7201
  writer.uint32(/* id 26, wireType 0 =*/208).int32(message.lifeTimeOrdersComped);
7192
7202
  if (message.yearToDateOrdersComped != null && Object.hasOwnProperty.call(message, "yearToDateOrdersComped"))
7193
7203
  writer.uint32(/* id 27, wireType 0 =*/216).int32(message.yearToDateOrdersComped);
7204
+ if (message.eventIds != null && message.eventIds.length)
7205
+ for (var i = 0; i < message.eventIds.length; ++i)
7206
+ writer.uint32(/* id 28, wireType 2 =*/226).string(message.eventIds[i]);
7194
7207
  return writer;
7195
7208
  };
7196
7209
 
@@ -7306,6 +7319,11 @@ $root.Metrics = (function() {
7306
7319
  case 27:
7307
7320
  message.yearToDateOrdersComped = reader.int32();
7308
7321
  break;
7322
+ case 28:
7323
+ if (!(message.eventIds && message.eventIds.length))
7324
+ message.eventIds = [];
7325
+ message.eventIds.push(reader.string());
7326
+ break;
7309
7327
  default:
7310
7328
  reader.skipType(tag & 7);
7311
7329
  break;
@@ -7422,6 +7440,13 @@ $root.Metrics = (function() {
7422
7440
  if (message.yearToDateOrdersComped != null && message.hasOwnProperty("yearToDateOrdersComped"))
7423
7441
  if (!$util.isInteger(message.yearToDateOrdersComped))
7424
7442
  return "yearToDateOrdersComped: integer expected";
7443
+ if (message.eventIds != null && message.hasOwnProperty("eventIds")) {
7444
+ if (!Array.isArray(message.eventIds))
7445
+ return "eventIds: array expected";
7446
+ for (var i = 0; i < message.eventIds.length; ++i)
7447
+ if (!$util.isString(message.eventIds[i]))
7448
+ return "eventIds: string[] expected";
7449
+ }
7425
7450
  return null;
7426
7451
  };
7427
7452
 
@@ -7491,6 +7516,13 @@ $root.Metrics = (function() {
7491
7516
  message.lifeTimeOrdersComped = object.lifeTimeOrdersComped | 0;
7492
7517
  if (object.yearToDateOrdersComped != null)
7493
7518
  message.yearToDateOrdersComped = object.yearToDateOrdersComped | 0;
7519
+ if (object.eventIds) {
7520
+ if (!Array.isArray(object.eventIds))
7521
+ throw TypeError(".Metrics.eventIds: array expected");
7522
+ message.eventIds = [];
7523
+ for (var i = 0; i < object.eventIds.length; ++i)
7524
+ message.eventIds[i] = String(object.eventIds[i]);
7525
+ }
7494
7526
  return message;
7495
7527
  };
7496
7528
 
@@ -7507,6 +7539,8 @@ $root.Metrics = (function() {
7507
7539
  if (!options)
7508
7540
  options = {};
7509
7541
  var object = {};
7542
+ if (options.arrays || options.defaults)
7543
+ object.eventIds = [];
7510
7544
  if (options.defaults) {
7511
7545
  object._id = "";
7512
7546
  object.orgId = "";
@@ -7590,6 +7624,11 @@ $root.Metrics = (function() {
7590
7624
  object.lifeTimeOrdersComped = message.lifeTimeOrdersComped;
7591
7625
  if (message.yearToDateOrdersComped != null && message.hasOwnProperty("yearToDateOrdersComped"))
7592
7626
  object.yearToDateOrdersComped = message.yearToDateOrdersComped;
7627
+ if (message.eventIds && message.eventIds.length) {
7628
+ object.eventIds = [];
7629
+ for (var j = 0; j < message.eventIds.length; ++j)
7630
+ object.eventIds[j] = message.eventIds[j];
7631
+ }
7593
7632
  return object;
7594
7633
  };
7595
7634
 
@@ -117307,6 +117346,7 @@ $root.GenerateUserProfileReportRequest = (function() {
117307
117346
  * @property {string|null} [spanContext] GenerateUserProfileReportRequest spanContext
117308
117347
  * @property {string|null} [orgId] GenerateUserProfileReportRequest orgId
117309
117348
  * @property {IUserProfileQuery|null} [query] GenerateUserProfileReportRequest query
117349
+ * @property {string|null} [userId] GenerateUserProfileReportRequest userId
117310
117350
  */
117311
117351
 
117312
117352
  /**
@@ -117348,6 +117388,14 @@ $root.GenerateUserProfileReportRequest = (function() {
117348
117388
  */
117349
117389
  GenerateUserProfileReportRequest.prototype.query = null;
117350
117390
 
117391
+ /**
117392
+ * GenerateUserProfileReportRequest userId.
117393
+ * @member {string} userId
117394
+ * @memberof GenerateUserProfileReportRequest
117395
+ * @instance
117396
+ */
117397
+ GenerateUserProfileReportRequest.prototype.userId = "";
117398
+
117351
117399
  /**
117352
117400
  * Creates a new GenerateUserProfileReportRequest instance using the specified properties.
117353
117401
  * @function create
@@ -117378,6 +117426,8 @@ $root.GenerateUserProfileReportRequest = (function() {
117378
117426
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
117379
117427
  if (message.query != null && Object.hasOwnProperty.call(message, "query"))
117380
117428
  $root.UserProfileQuery.encode(message.query, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
117429
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
117430
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
117381
117431
  return writer;
117382
117432
  };
117383
117433
 
@@ -117421,6 +117471,9 @@ $root.GenerateUserProfileReportRequest = (function() {
117421
117471
  case 2:
117422
117472
  message.query = $root.UserProfileQuery.decode(reader, reader.uint32());
117423
117473
  break;
117474
+ case 3:
117475
+ message.userId = reader.string();
117476
+ break;
117424
117477
  default:
117425
117478
  reader.skipType(tag & 7);
117426
117479
  break;
@@ -117467,6 +117520,9 @@ $root.GenerateUserProfileReportRequest = (function() {
117467
117520
  if (error)
117468
117521
  return "query." + error;
117469
117522
  }
117523
+ if (message.userId != null && message.hasOwnProperty("userId"))
117524
+ if (!$util.isString(message.userId))
117525
+ return "userId: string expected";
117470
117526
  return null;
117471
117527
  };
117472
117528
 
@@ -117491,6 +117547,8 @@ $root.GenerateUserProfileReportRequest = (function() {
117491
117547
  throw TypeError(".GenerateUserProfileReportRequest.query: object expected");
117492
117548
  message.query = $root.UserProfileQuery.fromObject(object.query);
117493
117549
  }
117550
+ if (object.userId != null)
117551
+ message.userId = String(object.userId);
117494
117552
  return message;
117495
117553
  };
117496
117554
 
@@ -117511,6 +117569,7 @@ $root.GenerateUserProfileReportRequest = (function() {
117511
117569
  object.spanContext = "";
117512
117570
  object.orgId = "";
117513
117571
  object.query = null;
117572
+ object.userId = "";
117514
117573
  }
117515
117574
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
117516
117575
  object.spanContext = message.spanContext;
@@ -117518,6 +117577,8 @@ $root.GenerateUserProfileReportRequest = (function() {
117518
117577
  object.orgId = message.orgId;
117519
117578
  if (message.query != null && message.hasOwnProperty("query"))
117520
117579
  object.query = $root.UserProfileQuery.toObject(message.query, options);
117580
+ if (message.userId != null && message.hasOwnProperty("userId"))
117581
+ object.userId = message.userId;
117521
117582
  return object;
117522
117583
  };
117523
117584
 
@@ -117544,6 +117605,7 @@ $root.GenerateUserProfileReportResponse = (function() {
117544
117605
  * @property {StatusCode|null} [status] GenerateUserProfileReportResponse status
117545
117606
  * @property {Array.<IError>|null} [errors] GenerateUserProfileReportResponse errors
117546
117607
  * @property {string|null} [url] GenerateUserProfileReportResponse url
117608
+ * @property {string|null} [message] GenerateUserProfileReportResponse message
117547
117609
  */
117548
117610
 
117549
117611
  /**
@@ -117586,6 +117648,14 @@ $root.GenerateUserProfileReportResponse = (function() {
117586
117648
  */
117587
117649
  GenerateUserProfileReportResponse.prototype.url = "";
117588
117650
 
117651
+ /**
117652
+ * GenerateUserProfileReportResponse message.
117653
+ * @member {string} message
117654
+ * @memberof GenerateUserProfileReportResponse
117655
+ * @instance
117656
+ */
117657
+ GenerateUserProfileReportResponse.prototype.message = "";
117658
+
117589
117659
  /**
117590
117660
  * Creates a new GenerateUserProfileReportResponse instance using the specified properties.
117591
117661
  * @function create
@@ -117617,6 +117687,8 @@ $root.GenerateUserProfileReportResponse = (function() {
117617
117687
  $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
117618
117688
  if (message.url != null && Object.hasOwnProperty.call(message, "url"))
117619
117689
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
117690
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
117691
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
117620
117692
  return writer;
117621
117693
  };
117622
117694
 
@@ -117662,6 +117734,9 @@ $root.GenerateUserProfileReportResponse = (function() {
117662
117734
  case 2:
117663
117735
  message.url = reader.string();
117664
117736
  break;
117737
+ case 3:
117738
+ message.message = reader.string();
117739
+ break;
117665
117740
  default:
117666
117741
  reader.skipType(tag & 7);
117667
117742
  break;
@@ -117724,6 +117799,9 @@ $root.GenerateUserProfileReportResponse = (function() {
117724
117799
  if (message.url != null && message.hasOwnProperty("url"))
117725
117800
  if (!$util.isString(message.url))
117726
117801
  return "url: string expected";
117802
+ if (message.message != null && message.hasOwnProperty("message"))
117803
+ if (!$util.isString(message.message))
117804
+ return "message: string expected";
117727
117805
  return null;
117728
117806
  };
117729
117807
 
@@ -117789,6 +117867,8 @@ $root.GenerateUserProfileReportResponse = (function() {
117789
117867
  }
117790
117868
  if (object.url != null)
117791
117869
  message.url = String(object.url);
117870
+ if (object.message != null)
117871
+ message.message = String(object.message);
117792
117872
  return message;
117793
117873
  };
117794
117874
 
@@ -117810,6 +117890,7 @@ $root.GenerateUserProfileReportResponse = (function() {
117810
117890
  if (options.defaults) {
117811
117891
  object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
117812
117892
  object.url = "";
117893
+ object.message = "";
117813
117894
  }
117814
117895
  if (message.status != null && message.hasOwnProperty("status"))
117815
117896
  object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
@@ -117820,6 +117901,8 @@ $root.GenerateUserProfileReportResponse = (function() {
117820
117901
  }
117821
117902
  if (message.url != null && message.hasOwnProperty("url"))
117822
117903
  object.url = message.url;
117904
+ if (message.message != null && message.hasOwnProperty("message"))
117905
+ object.message = message.message;
117823
117906
  return object;
117824
117907
  };
117825
117908
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.257",
3
+ "version": "0.0.259",
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.259",
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": "ccf2687248143d0b9df2de52c18fec96e4b470b4"
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,11 @@ const query = gql`
44
44
  }
45
45
  }
46
46
  }
47
+ metrics {
48
+ lifeTimeValue
49
+ lifeTimeTicketsPurchased
50
+ eventIds
51
+ }
47
52
  }
48
53
  }
49
54
  `;
@@ -42,6 +42,7 @@ const query = gql`
42
42
  }
43
43
  metrics {
44
44
  lifeTimeValue
45
+ eventIds
45
46
  }
46
47
  __typename
47
48
  }
@@ -43,6 +43,7 @@ export interface IUserMetric {
43
43
  lifeTimeOrdersPurchased: number;
44
44
  yearToDateOrdersPurchased: number;
45
45
  createdAt: number;
46
+ eventIds :[string]
46
47
  }
47
48
 
48
49
  export default interface IUserProfile {
@@ -57,6 +57,7 @@ message Metrics {
57
57
  int32 yearToDateOrdersRefunded = 25;
58
58
  int32 lifeTimeOrdersComped = 26;
59
59
  int32 yearToDateOrdersComped = 27;
60
+ repeated string eventIds = 28;
60
61
  }
61
62
 
62
63
  message Coordinates {
@@ -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
 
@@ -131,4 +131,10 @@ export default {
131
131
  required: false,
132
132
  default: 0,
133
133
  },
134
+ eventIds: [{
135
+ type: String,
136
+ required: false,
137
+ default: [],
138
+ }]
139
+
134
140
  };
@@ -50,6 +50,11 @@ const Metrics = {
50
50
  type: Number,
51
51
  required: true,
52
52
  },
53
+ eventIds:[{
54
+ type: String,
55
+ required: false,
56
+ default: [],
57
+ }]
53
58
  };
54
59
 
55
60
  export default {