@sellout/models 0.0.256 → 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.
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js +4 -1
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js.map +1 -1
- package/.dist/graphql/queries/customerProfile.query.js +4 -0
- package/.dist/graphql/queries/customerProfile.query.js.map +1 -1
- package/.dist/graphql/queries/userProfilesAdmin.query.js +3 -0
- package/.dist/graphql/queries/userProfilesAdmin.query.js.map +1 -1
- package/.dist/interfaces/IUserProfile.d.ts +26 -0
- package/.dist/schemas/UserProfile.d.ts +50 -0
- package/.dist/schemas/UserProfile.js +51 -0
- package/.dist/schemas/UserProfile.js.map +1 -1
- package/.dist/sellout-proto.js +309 -0
- package/package.json +3 -3
- package/src/graphql/mutations/generateUserProfileReport.mutation.ts +4 -1
- package/src/graphql/queries/customerProfile.query.ts +4 -0
- package/src/graphql/queries/userProfilesAdmin.query.ts +3 -0
- package/src/interfaces/IUserProfile.ts +33 -0
- package/src/proto/email.proto +8 -0
- package/src/proto/user-profile.proto +2 -0
- package/src/schemas/UserProfile.ts +52 -0
- package/tsconfig.json +1 -0
|
@@ -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
|
|
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"}
|
|
@@ -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
|
|
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"}
|
|
@@ -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
|
|
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"}
|
|
@@ -23,3 +23,29 @@ export interface IUserProfileGraphQL extends IUserProfile {
|
|
|
23
23
|
stripeCustomer: IStripeCustomer;
|
|
24
24
|
analytics: IAnalytics;
|
|
25
25
|
}
|
|
26
|
+
export interface IUserMetric {
|
|
27
|
+
_id?: string;
|
|
28
|
+
orgId: string;
|
|
29
|
+
lifeTimeValue: number;
|
|
30
|
+
yearToDateValue: number;
|
|
31
|
+
lifeTimeTicketsPurchased: number;
|
|
32
|
+
yearToDateTicketsPurchased: number;
|
|
33
|
+
lifeTimeUpgradesPurchased: number;
|
|
34
|
+
yearToDateUpgradesPurchased: number;
|
|
35
|
+
lifeTimeOrdersPurchased: number;
|
|
36
|
+
yearToDateOrdersPurchased: number;
|
|
37
|
+
createdAt: number;
|
|
38
|
+
}
|
|
39
|
+
export default interface IUserProfile {
|
|
40
|
+
_id?: string;
|
|
41
|
+
userId: string;
|
|
42
|
+
authyId?: string;
|
|
43
|
+
stripeCustomerId?: string;
|
|
44
|
+
imageUrl?: string;
|
|
45
|
+
metrics?: IUserMetric[];
|
|
46
|
+
orgIds?: string[];
|
|
47
|
+
eventIds?: string[];
|
|
48
|
+
venueIds?: string[];
|
|
49
|
+
artistIds?: string[];
|
|
50
|
+
address?: IAddress;
|
|
51
|
+
}
|
|
@@ -58,6 +58,56 @@ declare const _default: {
|
|
|
58
58
|
required: boolean;
|
|
59
59
|
default: never[];
|
|
60
60
|
}[];
|
|
61
|
+
metrics: {
|
|
62
|
+
orgId: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
required: boolean;
|
|
65
|
+
};
|
|
66
|
+
lifeTimeValue: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
required: boolean;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
yearToDateValue: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
required: boolean;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
lifeTimeTicketsPurchased: {
|
|
77
|
+
type: NumberConstructor;
|
|
78
|
+
required: boolean;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
yearToDateTicketsPurchased: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
required: boolean;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
lifeTimeUpgradesPurchased: {
|
|
87
|
+
type: NumberConstructor;
|
|
88
|
+
required: boolean;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
yearToDateUpgradesPurchased: {
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
required: boolean;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
lifeTimeOrdersPurchased: {
|
|
97
|
+
type: NumberConstructor;
|
|
98
|
+
required: boolean;
|
|
99
|
+
default: number;
|
|
100
|
+
};
|
|
101
|
+
yearToDateOrdersPurchased: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
required: boolean;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
createdAt: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
required: boolean;
|
|
109
|
+
};
|
|
110
|
+
}[];
|
|
61
111
|
address: {
|
|
62
112
|
address1: {
|
|
63
113
|
type: StringConstructor;
|
|
@@ -5,6 +5,56 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const shortid_1 = __importDefault(require("shortid"));
|
|
7
7
|
const Address_1 = __importDefault(require("./Address"));
|
|
8
|
+
const Metrics = {
|
|
9
|
+
orgId: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
lifeTimeValue: {
|
|
14
|
+
type: Number,
|
|
15
|
+
required: false,
|
|
16
|
+
default: 0,
|
|
17
|
+
},
|
|
18
|
+
yearToDateValue: {
|
|
19
|
+
type: Number,
|
|
20
|
+
required: false,
|
|
21
|
+
default: 0,
|
|
22
|
+
},
|
|
23
|
+
lifeTimeTicketsPurchased: {
|
|
24
|
+
type: Number,
|
|
25
|
+
required: false,
|
|
26
|
+
default: 0,
|
|
27
|
+
},
|
|
28
|
+
yearToDateTicketsPurchased: {
|
|
29
|
+
type: Number,
|
|
30
|
+
required: false,
|
|
31
|
+
default: 0,
|
|
32
|
+
},
|
|
33
|
+
lifeTimeUpgradesPurchased: {
|
|
34
|
+
type: Number,
|
|
35
|
+
required: false,
|
|
36
|
+
default: 0,
|
|
37
|
+
},
|
|
38
|
+
yearToDateUpgradesPurchased: {
|
|
39
|
+
type: Number,
|
|
40
|
+
required: false,
|
|
41
|
+
default: 0,
|
|
42
|
+
},
|
|
43
|
+
lifeTimeOrdersPurchased: {
|
|
44
|
+
type: Number,
|
|
45
|
+
required: false,
|
|
46
|
+
default: 0,
|
|
47
|
+
},
|
|
48
|
+
yearToDateOrdersPurchased: {
|
|
49
|
+
type: Number,
|
|
50
|
+
required: false,
|
|
51
|
+
default: 0,
|
|
52
|
+
},
|
|
53
|
+
createdAt: {
|
|
54
|
+
type: Number,
|
|
55
|
+
required: true,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
8
58
|
exports.default = {
|
|
9
59
|
_id: {
|
|
10
60
|
type: String,
|
|
@@ -65,6 +115,7 @@ exports.default = {
|
|
|
65
115
|
required: false,
|
|
66
116
|
default: [],
|
|
67
117
|
}],
|
|
118
|
+
metrics: [Metrics],
|
|
68
119
|
address: Address_1.default,
|
|
69
120
|
};
|
|
70
121
|
//# sourceMappingURL=UserProfile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfile.js","sourceRoot":"","sources":["../../src/schemas/UserProfile.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,wDAAgC;AAEhC,kBAAe;IACb,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAO,CAAC,QAAQ;KAC1B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,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,EAAE,iBAAO;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"UserProfile.js","sourceRoot":"","sources":["../../src/schemas/UserProfile.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,wDAAgC;AAEhC,MAAM,OAAO,GAAG;IACd,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,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,wBAAwB,EAAE;QACxB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,0BAA0B,EAAE;QAC1B,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,2BAA2B,EAAE;QAC3B,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,yBAAyB,EAAE;QACzB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,kBAAe;IACb,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAO,CAAC,QAAQ;KAC1B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,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"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -39550,6 +39550,238 @@ $root.orderSheetEmailRequest = (function() {
|
|
|
39550
39550
|
return orderSheetEmailRequest;
|
|
39551
39551
|
})();
|
|
39552
39552
|
|
|
39553
|
+
$root.customerSheetEmailRequest = (function() {
|
|
39554
|
+
|
|
39555
|
+
/**
|
|
39556
|
+
* Properties of a customerSheetEmailRequest.
|
|
39557
|
+
* @exports IcustomerSheetEmailRequest
|
|
39558
|
+
* @interface IcustomerSheetEmailRequest
|
|
39559
|
+
* @property {string|null} [toAddress] customerSheetEmailRequest toAddress
|
|
39560
|
+
* @property {string|null} [orgName] customerSheetEmailRequest orgName
|
|
39561
|
+
* @property {string|null} [url] customerSheetEmailRequest url
|
|
39562
|
+
*/
|
|
39563
|
+
|
|
39564
|
+
/**
|
|
39565
|
+
* Constructs a new customerSheetEmailRequest.
|
|
39566
|
+
* @exports customerSheetEmailRequest
|
|
39567
|
+
* @classdesc Represents a customerSheetEmailRequest.
|
|
39568
|
+
* @implements IcustomerSheetEmailRequest
|
|
39569
|
+
* @constructor
|
|
39570
|
+
* @param {IcustomerSheetEmailRequest=} [properties] Properties to set
|
|
39571
|
+
*/
|
|
39572
|
+
function customerSheetEmailRequest(properties) {
|
|
39573
|
+
if (properties)
|
|
39574
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39575
|
+
if (properties[keys[i]] != null)
|
|
39576
|
+
this[keys[i]] = properties[keys[i]];
|
|
39577
|
+
}
|
|
39578
|
+
|
|
39579
|
+
/**
|
|
39580
|
+
* customerSheetEmailRequest toAddress.
|
|
39581
|
+
* @member {string} toAddress
|
|
39582
|
+
* @memberof customerSheetEmailRequest
|
|
39583
|
+
* @instance
|
|
39584
|
+
*/
|
|
39585
|
+
customerSheetEmailRequest.prototype.toAddress = "";
|
|
39586
|
+
|
|
39587
|
+
/**
|
|
39588
|
+
* customerSheetEmailRequest orgName.
|
|
39589
|
+
* @member {string} orgName
|
|
39590
|
+
* @memberof customerSheetEmailRequest
|
|
39591
|
+
* @instance
|
|
39592
|
+
*/
|
|
39593
|
+
customerSheetEmailRequest.prototype.orgName = "";
|
|
39594
|
+
|
|
39595
|
+
/**
|
|
39596
|
+
* customerSheetEmailRequest url.
|
|
39597
|
+
* @member {string} url
|
|
39598
|
+
* @memberof customerSheetEmailRequest
|
|
39599
|
+
* @instance
|
|
39600
|
+
*/
|
|
39601
|
+
customerSheetEmailRequest.prototype.url = "";
|
|
39602
|
+
|
|
39603
|
+
/**
|
|
39604
|
+
* Creates a new customerSheetEmailRequest instance using the specified properties.
|
|
39605
|
+
* @function create
|
|
39606
|
+
* @memberof customerSheetEmailRequest
|
|
39607
|
+
* @static
|
|
39608
|
+
* @param {IcustomerSheetEmailRequest=} [properties] Properties to set
|
|
39609
|
+
* @returns {customerSheetEmailRequest} customerSheetEmailRequest instance
|
|
39610
|
+
*/
|
|
39611
|
+
customerSheetEmailRequest.create = function create(properties) {
|
|
39612
|
+
return new customerSheetEmailRequest(properties);
|
|
39613
|
+
};
|
|
39614
|
+
|
|
39615
|
+
/**
|
|
39616
|
+
* Encodes the specified customerSheetEmailRequest message. Does not implicitly {@link customerSheetEmailRequest.verify|verify} messages.
|
|
39617
|
+
* @function encode
|
|
39618
|
+
* @memberof customerSheetEmailRequest
|
|
39619
|
+
* @static
|
|
39620
|
+
* @param {IcustomerSheetEmailRequest} message customerSheetEmailRequest message or plain object to encode
|
|
39621
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39622
|
+
* @returns {$protobuf.Writer} Writer
|
|
39623
|
+
*/
|
|
39624
|
+
customerSheetEmailRequest.encode = function encode(message, writer) {
|
|
39625
|
+
if (!writer)
|
|
39626
|
+
writer = $Writer.create();
|
|
39627
|
+
if (message.toAddress != null && Object.hasOwnProperty.call(message, "toAddress"))
|
|
39628
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.toAddress);
|
|
39629
|
+
if (message.orgName != null && Object.hasOwnProperty.call(message, "orgName"))
|
|
39630
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgName);
|
|
39631
|
+
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
39632
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
39633
|
+
return writer;
|
|
39634
|
+
};
|
|
39635
|
+
|
|
39636
|
+
/**
|
|
39637
|
+
* Encodes the specified customerSheetEmailRequest message, length delimited. Does not implicitly {@link customerSheetEmailRequest.verify|verify} messages.
|
|
39638
|
+
* @function encodeDelimited
|
|
39639
|
+
* @memberof customerSheetEmailRequest
|
|
39640
|
+
* @static
|
|
39641
|
+
* @param {IcustomerSheetEmailRequest} message customerSheetEmailRequest message or plain object to encode
|
|
39642
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39643
|
+
* @returns {$protobuf.Writer} Writer
|
|
39644
|
+
*/
|
|
39645
|
+
customerSheetEmailRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39646
|
+
return this.encode(message, writer).ldelim();
|
|
39647
|
+
};
|
|
39648
|
+
|
|
39649
|
+
/**
|
|
39650
|
+
* Decodes a customerSheetEmailRequest message from the specified reader or buffer.
|
|
39651
|
+
* @function decode
|
|
39652
|
+
* @memberof customerSheetEmailRequest
|
|
39653
|
+
* @static
|
|
39654
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39655
|
+
* @param {number} [length] Message length if known beforehand
|
|
39656
|
+
* @returns {customerSheetEmailRequest} customerSheetEmailRequest
|
|
39657
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39658
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39659
|
+
*/
|
|
39660
|
+
customerSheetEmailRequest.decode = function decode(reader, length) {
|
|
39661
|
+
if (!(reader instanceof $Reader))
|
|
39662
|
+
reader = $Reader.create(reader);
|
|
39663
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.customerSheetEmailRequest();
|
|
39664
|
+
while (reader.pos < end) {
|
|
39665
|
+
var tag = reader.uint32();
|
|
39666
|
+
switch (tag >>> 3) {
|
|
39667
|
+
case 0:
|
|
39668
|
+
message.toAddress = reader.string();
|
|
39669
|
+
break;
|
|
39670
|
+
case 1:
|
|
39671
|
+
message.orgName = reader.string();
|
|
39672
|
+
break;
|
|
39673
|
+
case 2:
|
|
39674
|
+
message.url = reader.string();
|
|
39675
|
+
break;
|
|
39676
|
+
default:
|
|
39677
|
+
reader.skipType(tag & 7);
|
|
39678
|
+
break;
|
|
39679
|
+
}
|
|
39680
|
+
}
|
|
39681
|
+
return message;
|
|
39682
|
+
};
|
|
39683
|
+
|
|
39684
|
+
/**
|
|
39685
|
+
* Decodes a customerSheetEmailRequest message from the specified reader or buffer, length delimited.
|
|
39686
|
+
* @function decodeDelimited
|
|
39687
|
+
* @memberof customerSheetEmailRequest
|
|
39688
|
+
* @static
|
|
39689
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39690
|
+
* @returns {customerSheetEmailRequest} customerSheetEmailRequest
|
|
39691
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39692
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39693
|
+
*/
|
|
39694
|
+
customerSheetEmailRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39695
|
+
if (!(reader instanceof $Reader))
|
|
39696
|
+
reader = new $Reader(reader);
|
|
39697
|
+
return this.decode(reader, reader.uint32());
|
|
39698
|
+
};
|
|
39699
|
+
|
|
39700
|
+
/**
|
|
39701
|
+
* Verifies a customerSheetEmailRequest message.
|
|
39702
|
+
* @function verify
|
|
39703
|
+
* @memberof customerSheetEmailRequest
|
|
39704
|
+
* @static
|
|
39705
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39706
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39707
|
+
*/
|
|
39708
|
+
customerSheetEmailRequest.verify = function verify(message) {
|
|
39709
|
+
if (typeof message !== "object" || message === null)
|
|
39710
|
+
return "object expected";
|
|
39711
|
+
if (message.toAddress != null && message.hasOwnProperty("toAddress"))
|
|
39712
|
+
if (!$util.isString(message.toAddress))
|
|
39713
|
+
return "toAddress: string expected";
|
|
39714
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
39715
|
+
if (!$util.isString(message.orgName))
|
|
39716
|
+
return "orgName: string expected";
|
|
39717
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
39718
|
+
if (!$util.isString(message.url))
|
|
39719
|
+
return "url: string expected";
|
|
39720
|
+
return null;
|
|
39721
|
+
};
|
|
39722
|
+
|
|
39723
|
+
/**
|
|
39724
|
+
* Creates a customerSheetEmailRequest message from a plain object. Also converts values to their respective internal types.
|
|
39725
|
+
* @function fromObject
|
|
39726
|
+
* @memberof customerSheetEmailRequest
|
|
39727
|
+
* @static
|
|
39728
|
+
* @param {Object.<string,*>} object Plain object
|
|
39729
|
+
* @returns {customerSheetEmailRequest} customerSheetEmailRequest
|
|
39730
|
+
*/
|
|
39731
|
+
customerSheetEmailRequest.fromObject = function fromObject(object) {
|
|
39732
|
+
if (object instanceof $root.customerSheetEmailRequest)
|
|
39733
|
+
return object;
|
|
39734
|
+
var message = new $root.customerSheetEmailRequest();
|
|
39735
|
+
if (object.toAddress != null)
|
|
39736
|
+
message.toAddress = String(object.toAddress);
|
|
39737
|
+
if (object.orgName != null)
|
|
39738
|
+
message.orgName = String(object.orgName);
|
|
39739
|
+
if (object.url != null)
|
|
39740
|
+
message.url = String(object.url);
|
|
39741
|
+
return message;
|
|
39742
|
+
};
|
|
39743
|
+
|
|
39744
|
+
/**
|
|
39745
|
+
* Creates a plain object from a customerSheetEmailRequest message. Also converts values to other types if specified.
|
|
39746
|
+
* @function toObject
|
|
39747
|
+
* @memberof customerSheetEmailRequest
|
|
39748
|
+
* @static
|
|
39749
|
+
* @param {customerSheetEmailRequest} message customerSheetEmailRequest
|
|
39750
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39751
|
+
* @returns {Object.<string,*>} Plain object
|
|
39752
|
+
*/
|
|
39753
|
+
customerSheetEmailRequest.toObject = function toObject(message, options) {
|
|
39754
|
+
if (!options)
|
|
39755
|
+
options = {};
|
|
39756
|
+
var object = {};
|
|
39757
|
+
if (options.defaults) {
|
|
39758
|
+
object.toAddress = "";
|
|
39759
|
+
object.orgName = "";
|
|
39760
|
+
object.url = "";
|
|
39761
|
+
}
|
|
39762
|
+
if (message.toAddress != null && message.hasOwnProperty("toAddress"))
|
|
39763
|
+
object.toAddress = message.toAddress;
|
|
39764
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
39765
|
+
object.orgName = message.orgName;
|
|
39766
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
39767
|
+
object.url = message.url;
|
|
39768
|
+
return object;
|
|
39769
|
+
};
|
|
39770
|
+
|
|
39771
|
+
/**
|
|
39772
|
+
* Converts this customerSheetEmailRequest to JSON.
|
|
39773
|
+
* @function toJSON
|
|
39774
|
+
* @memberof customerSheetEmailRequest
|
|
39775
|
+
* @instance
|
|
39776
|
+
* @returns {Object.<string,*>} JSON object
|
|
39777
|
+
*/
|
|
39778
|
+
customerSheetEmailRequest.prototype.toJSON = function toJSON() {
|
|
39779
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39780
|
+
};
|
|
39781
|
+
|
|
39782
|
+
return customerSheetEmailRequest;
|
|
39783
|
+
})();
|
|
39784
|
+
|
|
39553
39785
|
$root.dayIdsTimeObj = (function() {
|
|
39554
39786
|
|
|
39555
39787
|
/**
|
|
@@ -45605,6 +45837,39 @@ $root.EmailService = (function() {
|
|
|
45605
45837
|
* @variation 2
|
|
45606
45838
|
*/
|
|
45607
45839
|
|
|
45840
|
+
/**
|
|
45841
|
+
* Callback as used by {@link EmailService#customerSheetEmail}.
|
|
45842
|
+
* @memberof EmailService
|
|
45843
|
+
* @typedef customerSheetEmailCallback
|
|
45844
|
+
* @type {function}
|
|
45845
|
+
* @param {Error|null} error Error, if any
|
|
45846
|
+
* @param {google.protobuf.Empty} [response] Empty
|
|
45847
|
+
*/
|
|
45848
|
+
|
|
45849
|
+
/**
|
|
45850
|
+
* Calls customerSheetEmail.
|
|
45851
|
+
* @function customerSheetEmail
|
|
45852
|
+
* @memberof EmailService
|
|
45853
|
+
* @instance
|
|
45854
|
+
* @param {IcustomerSheetEmailRequest} request customerSheetEmailRequest message or plain object
|
|
45855
|
+
* @param {EmailService.customerSheetEmailCallback} callback Node-style callback called with the error, if any, and Empty
|
|
45856
|
+
* @returns {undefined}
|
|
45857
|
+
* @variation 1
|
|
45858
|
+
*/
|
|
45859
|
+
Object.defineProperty(EmailService.prototype.customerSheetEmail = function customerSheetEmail(request, callback) {
|
|
45860
|
+
return this.rpcCall(customerSheetEmail, $root.customerSheetEmailRequest, $root.google.protobuf.Empty, request, callback);
|
|
45861
|
+
}, "name", { value: "customerSheetEmail" });
|
|
45862
|
+
|
|
45863
|
+
/**
|
|
45864
|
+
* Calls customerSheetEmail.
|
|
45865
|
+
* @function customerSheetEmail
|
|
45866
|
+
* @memberof EmailService
|
|
45867
|
+
* @instance
|
|
45868
|
+
* @param {IcustomerSheetEmailRequest} request customerSheetEmailRequest message or plain object
|
|
45869
|
+
* @returns {Promise<google.protobuf.Empty>} Promise
|
|
45870
|
+
* @variation 2
|
|
45871
|
+
*/
|
|
45872
|
+
|
|
45608
45873
|
return EmailService;
|
|
45609
45874
|
})();
|
|
45610
45875
|
|
|
@@ -117042,6 +117307,7 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117042
117307
|
* @property {string|null} [spanContext] GenerateUserProfileReportRequest spanContext
|
|
117043
117308
|
* @property {string|null} [orgId] GenerateUserProfileReportRequest orgId
|
|
117044
117309
|
* @property {IUserProfileQuery|null} [query] GenerateUserProfileReportRequest query
|
|
117310
|
+
* @property {string|null} [userId] GenerateUserProfileReportRequest userId
|
|
117045
117311
|
*/
|
|
117046
117312
|
|
|
117047
117313
|
/**
|
|
@@ -117083,6 +117349,14 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117083
117349
|
*/
|
|
117084
117350
|
GenerateUserProfileReportRequest.prototype.query = null;
|
|
117085
117351
|
|
|
117352
|
+
/**
|
|
117353
|
+
* GenerateUserProfileReportRequest userId.
|
|
117354
|
+
* @member {string} userId
|
|
117355
|
+
* @memberof GenerateUserProfileReportRequest
|
|
117356
|
+
* @instance
|
|
117357
|
+
*/
|
|
117358
|
+
GenerateUserProfileReportRequest.prototype.userId = "";
|
|
117359
|
+
|
|
117086
117360
|
/**
|
|
117087
117361
|
* Creates a new GenerateUserProfileReportRequest instance using the specified properties.
|
|
117088
117362
|
* @function create
|
|
@@ -117113,6 +117387,8 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117113
117387
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
117114
117388
|
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
117115
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);
|
|
117116
117392
|
return writer;
|
|
117117
117393
|
};
|
|
117118
117394
|
|
|
@@ -117156,6 +117432,9 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117156
117432
|
case 2:
|
|
117157
117433
|
message.query = $root.UserProfileQuery.decode(reader, reader.uint32());
|
|
117158
117434
|
break;
|
|
117435
|
+
case 3:
|
|
117436
|
+
message.userId = reader.string();
|
|
117437
|
+
break;
|
|
117159
117438
|
default:
|
|
117160
117439
|
reader.skipType(tag & 7);
|
|
117161
117440
|
break;
|
|
@@ -117202,6 +117481,9 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117202
117481
|
if (error)
|
|
117203
117482
|
return "query." + error;
|
|
117204
117483
|
}
|
|
117484
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
117485
|
+
if (!$util.isString(message.userId))
|
|
117486
|
+
return "userId: string expected";
|
|
117205
117487
|
return null;
|
|
117206
117488
|
};
|
|
117207
117489
|
|
|
@@ -117226,6 +117508,8 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117226
117508
|
throw TypeError(".GenerateUserProfileReportRequest.query: object expected");
|
|
117227
117509
|
message.query = $root.UserProfileQuery.fromObject(object.query);
|
|
117228
117510
|
}
|
|
117511
|
+
if (object.userId != null)
|
|
117512
|
+
message.userId = String(object.userId);
|
|
117229
117513
|
return message;
|
|
117230
117514
|
};
|
|
117231
117515
|
|
|
@@ -117246,6 +117530,7 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117246
117530
|
object.spanContext = "";
|
|
117247
117531
|
object.orgId = "";
|
|
117248
117532
|
object.query = null;
|
|
117533
|
+
object.userId = "";
|
|
117249
117534
|
}
|
|
117250
117535
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
117251
117536
|
object.spanContext = message.spanContext;
|
|
@@ -117253,6 +117538,8 @@ $root.GenerateUserProfileReportRequest = (function() {
|
|
|
117253
117538
|
object.orgId = message.orgId;
|
|
117254
117539
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
117255
117540
|
object.query = $root.UserProfileQuery.toObject(message.query, options);
|
|
117541
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
117542
|
+
object.userId = message.userId;
|
|
117256
117543
|
return object;
|
|
117257
117544
|
};
|
|
117258
117545
|
|
|
@@ -117279,6 +117566,7 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117279
117566
|
* @property {StatusCode|null} [status] GenerateUserProfileReportResponse status
|
|
117280
117567
|
* @property {Array.<IError>|null} [errors] GenerateUserProfileReportResponse errors
|
|
117281
117568
|
* @property {string|null} [url] GenerateUserProfileReportResponse url
|
|
117569
|
+
* @property {string|null} [message] GenerateUserProfileReportResponse message
|
|
117282
117570
|
*/
|
|
117283
117571
|
|
|
117284
117572
|
/**
|
|
@@ -117321,6 +117609,14 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117321
117609
|
*/
|
|
117322
117610
|
GenerateUserProfileReportResponse.prototype.url = "";
|
|
117323
117611
|
|
|
117612
|
+
/**
|
|
117613
|
+
* GenerateUserProfileReportResponse message.
|
|
117614
|
+
* @member {string} message
|
|
117615
|
+
* @memberof GenerateUserProfileReportResponse
|
|
117616
|
+
* @instance
|
|
117617
|
+
*/
|
|
117618
|
+
GenerateUserProfileReportResponse.prototype.message = "";
|
|
117619
|
+
|
|
117324
117620
|
/**
|
|
117325
117621
|
* Creates a new GenerateUserProfileReportResponse instance using the specified properties.
|
|
117326
117622
|
* @function create
|
|
@@ -117352,6 +117648,8 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117352
117648
|
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
117353
117649
|
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
117354
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);
|
|
117355
117653
|
return writer;
|
|
117356
117654
|
};
|
|
117357
117655
|
|
|
@@ -117397,6 +117695,9 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117397
117695
|
case 2:
|
|
117398
117696
|
message.url = reader.string();
|
|
117399
117697
|
break;
|
|
117698
|
+
case 3:
|
|
117699
|
+
message.message = reader.string();
|
|
117700
|
+
break;
|
|
117400
117701
|
default:
|
|
117401
117702
|
reader.skipType(tag & 7);
|
|
117402
117703
|
break;
|
|
@@ -117459,6 +117760,9 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117459
117760
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
117460
117761
|
if (!$util.isString(message.url))
|
|
117461
117762
|
return "url: string expected";
|
|
117763
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
117764
|
+
if (!$util.isString(message.message))
|
|
117765
|
+
return "message: string expected";
|
|
117462
117766
|
return null;
|
|
117463
117767
|
};
|
|
117464
117768
|
|
|
@@ -117524,6 +117828,8 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117524
117828
|
}
|
|
117525
117829
|
if (object.url != null)
|
|
117526
117830
|
message.url = String(object.url);
|
|
117831
|
+
if (object.message != null)
|
|
117832
|
+
message.message = String(object.message);
|
|
117527
117833
|
return message;
|
|
117528
117834
|
};
|
|
117529
117835
|
|
|
@@ -117545,6 +117851,7 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117545
117851
|
if (options.defaults) {
|
|
117546
117852
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
117547
117853
|
object.url = "";
|
|
117854
|
+
object.message = "";
|
|
117548
117855
|
}
|
|
117549
117856
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
117550
117857
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -117555,6 +117862,8 @@ $root.GenerateUserProfileReportResponse = (function() {
|
|
|
117555
117862
|
}
|
|
117556
117863
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
117557
117864
|
object.url = message.url;
|
|
117865
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
117866
|
+
object.message = message.message;
|
|
117558
117867
|
return object;
|
|
117559
117868
|
};
|
|
117560
117869
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
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": "
|
|
34
|
+
"gitHead": "9d11be7074aaa72e3bc16b008c71f92a6dc470f5"
|
|
35
35
|
}
|
|
@@ -3,6 +3,7 @@ import IAnalytics from "./IAnalytics";
|
|
|
3
3
|
import IStripeCustomer from './IStripeCustomer';
|
|
4
4
|
import IUser from "./IUser";
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
export default interface IUserProfile {
|
|
7
8
|
_id?: string;
|
|
8
9
|
userId: string;
|
|
@@ -26,3 +27,35 @@ export interface IUserProfileGraphQL extends IUserProfile {
|
|
|
26
27
|
stripeCustomer: IStripeCustomer;
|
|
27
28
|
analytics: IAnalytics;
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export interface IUserMetric {
|
|
35
|
+
_id?: string;
|
|
36
|
+
orgId: string;
|
|
37
|
+
lifeTimeValue: number;
|
|
38
|
+
yearToDateValue: number;
|
|
39
|
+
lifeTimeTicketsPurchased: number;
|
|
40
|
+
yearToDateTicketsPurchased: number;
|
|
41
|
+
lifeTimeUpgradesPurchased: number;
|
|
42
|
+
yearToDateUpgradesPurchased: number;
|
|
43
|
+
lifeTimeOrdersPurchased: number;
|
|
44
|
+
yearToDateOrdersPurchased: number;
|
|
45
|
+
createdAt: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default interface IUserProfile {
|
|
49
|
+
_id?: string;
|
|
50
|
+
userId: string;
|
|
51
|
+
authyId?: string;
|
|
52
|
+
stripeCustomerId?: string;
|
|
53
|
+
imageUrl?: string;
|
|
54
|
+
metrics?: IUserMetric[];
|
|
55
|
+
orgIds?: string[];
|
|
56
|
+
eventIds?: string[];
|
|
57
|
+
venueIds?: string[];
|
|
58
|
+
artistIds?: string[];
|
|
59
|
+
address?: IAddress;
|
|
60
|
+
}
|
|
61
|
+
|
package/src/proto/email.proto
CHANGED
|
@@ -65,6 +65,12 @@ message orderSheetEmailRequest {
|
|
|
65
65
|
string orgName = 1;
|
|
66
66
|
string url = 2;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
message customerSheetEmailRequest {
|
|
70
|
+
string toAddress = 0;
|
|
71
|
+
string orgName = 1;
|
|
72
|
+
string url = 2;
|
|
73
|
+
}
|
|
68
74
|
message dayIdsTimeObj {
|
|
69
75
|
int32 startsAt = 0;
|
|
70
76
|
int32 endsAt = 1;
|
|
@@ -290,4 +296,6 @@ service EmailService {
|
|
|
290
296
|
rpc orderSheetEmail (orderSheetEmailRequest) returns (google.protobuf.Empty) {}
|
|
291
297
|
rpc orderQRCodeEmailOnDay (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
|
|
292
298
|
rpc salesReportEmail (salesReportEmailRequest) returns (google.protobuf.Empty) {}
|
|
299
|
+
rpc customerSheetEmail (customerSheetEmailRequest) returns (google.protobuf.Empty) {}
|
|
300
|
+
|
|
293
301
|
}
|
|
@@ -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
|
|
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
import shortid from 'shortid';
|
|
2
2
|
import Address from './Address';
|
|
3
3
|
|
|
4
|
+
const Metrics = {
|
|
5
|
+
orgId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
lifeTimeValue: {
|
|
10
|
+
type: Number,
|
|
11
|
+
required: false,
|
|
12
|
+
default: 0,
|
|
13
|
+
},
|
|
14
|
+
yearToDateValue: {
|
|
15
|
+
type: Number,
|
|
16
|
+
required: false,
|
|
17
|
+
default: 0,
|
|
18
|
+
},
|
|
19
|
+
lifeTimeTicketsPurchased: {
|
|
20
|
+
type: Number,
|
|
21
|
+
required: false,
|
|
22
|
+
default: 0,
|
|
23
|
+
},
|
|
24
|
+
yearToDateTicketsPurchased: {
|
|
25
|
+
type: Number,
|
|
26
|
+
required: false,
|
|
27
|
+
default: 0,
|
|
28
|
+
},
|
|
29
|
+
lifeTimeUpgradesPurchased: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: false,
|
|
32
|
+
default: 0,
|
|
33
|
+
},
|
|
34
|
+
yearToDateUpgradesPurchased: {
|
|
35
|
+
type: Number,
|
|
36
|
+
required: false,
|
|
37
|
+
default: 0,
|
|
38
|
+
},
|
|
39
|
+
lifeTimeOrdersPurchased: {
|
|
40
|
+
type: Number,
|
|
41
|
+
required: false,
|
|
42
|
+
default: 0,
|
|
43
|
+
},
|
|
44
|
+
yearToDateOrdersPurchased: {
|
|
45
|
+
type: Number,
|
|
46
|
+
required: false,
|
|
47
|
+
default: 0,
|
|
48
|
+
},
|
|
49
|
+
createdAt: {
|
|
50
|
+
type: Number,
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
4
55
|
export default {
|
|
5
56
|
_id: {
|
|
6
57
|
type: String,
|
|
@@ -61,5 +112,6 @@ export default {
|
|
|
61
112
|
required: false,
|
|
62
113
|
default: [],
|
|
63
114
|
}],
|
|
115
|
+
metrics:[Metrics],
|
|
64
116
|
address: Address,
|
|
65
117
|
};
|