@sellout/models 0.0.49 → 0.0.50
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/interfaces/IEventUpgrade.d.ts +6 -0
- package/.dist/interfaces/IEventUpgrade.js +7 -0
- package/.dist/interfaces/IEventUpgrade.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +55 -35
- package/.dist/schemas/Organization.js +2 -37
- package/.dist/schemas/Organization.js.map +1 -1
- package/package.json +4 -4
- package/src/interfaces/IEventUpgrade.ts +7 -0
- package/src/schemas/Organization.ts +2 -37
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare enum UpgradeTypeComplimentaryWithEnum {
|
|
2
|
+
Order = "Order",
|
|
3
|
+
Ticket = "Ticket"
|
|
4
|
+
}
|
|
1
5
|
export default interface IEventUpgrade {
|
|
2
6
|
_id?: string;
|
|
3
7
|
name: string;
|
|
@@ -6,6 +10,8 @@ export default interface IEventUpgrade {
|
|
|
6
10
|
remainingQty: number;
|
|
7
11
|
purchaseLimit: number;
|
|
8
12
|
complimentary: boolean;
|
|
13
|
+
complimentaryWith: UpgradeTypeComplimentaryWithEnum;
|
|
14
|
+
complimentaryQty: number;
|
|
9
15
|
ticketTypeIds: string[];
|
|
10
16
|
imageUrl: string;
|
|
11
17
|
description: string;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpgradeTypeComplimentaryWithEnum = void 0;
|
|
4
|
+
var UpgradeTypeComplimentaryWithEnum;
|
|
5
|
+
(function (UpgradeTypeComplimentaryWithEnum) {
|
|
6
|
+
UpgradeTypeComplimentaryWithEnum["Order"] = "Order";
|
|
7
|
+
UpgradeTypeComplimentaryWithEnum["Ticket"] = "Ticket";
|
|
8
|
+
})(UpgradeTypeComplimentaryWithEnum = exports.UpgradeTypeComplimentaryWithEnum || (exports.UpgradeTypeComplimentaryWithEnum = {}));
|
|
9
|
+
;
|
|
3
10
|
//# sourceMappingURL=IEventUpgrade.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEventUpgrade.js","sourceRoot":"","sources":["../../src/interfaces/IEventUpgrade.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"IEventUpgrade.js","sourceRoot":"","sources":["../../src/interfaces/IEventUpgrade.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAGX;AAHD,WAAY,gCAAgC;IAC1C,mDAAe,CAAA;IACf,qDAAiB,CAAA;AACnB,CAAC,EAHW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAG3C;AAAA,CAAC"}
|
|
@@ -31,6 +31,41 @@ declare const _default: {
|
|
|
31
31
|
required: boolean;
|
|
32
32
|
default: null;
|
|
33
33
|
}[];
|
|
34
|
+
orgLogoUrl: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: boolean;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
orgColorHex: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: boolean;
|
|
42
|
+
default: null;
|
|
43
|
+
};
|
|
44
|
+
bio: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: boolean;
|
|
47
|
+
default: null;
|
|
48
|
+
};
|
|
49
|
+
email: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: boolean;
|
|
52
|
+
default: null;
|
|
53
|
+
};
|
|
54
|
+
phoneNumber: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: boolean;
|
|
57
|
+
default: null;
|
|
58
|
+
};
|
|
59
|
+
facebookPixelId: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
required: boolean;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
googleAnalyticsId: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: boolean;
|
|
67
|
+
default: null;
|
|
68
|
+
};
|
|
34
69
|
address: {
|
|
35
70
|
address1: {
|
|
36
71
|
type: StringConstructor;
|
|
@@ -67,41 +102,26 @@ declare const _default: {
|
|
|
67
102
|
required: boolean;
|
|
68
103
|
default: null;
|
|
69
104
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
};
|
|
91
|
-
phoneNumber: {
|
|
92
|
-
type: StringConstructor;
|
|
93
|
-
required: boolean;
|
|
94
|
-
default: null;
|
|
95
|
-
};
|
|
96
|
-
facebookPixelId: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
required: boolean;
|
|
99
|
-
default: null;
|
|
100
|
-
};
|
|
101
|
-
googleAnalyticsId: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
required: boolean;
|
|
104
|
-
default: null;
|
|
105
|
+
lat: {
|
|
106
|
+
type: NumberConstructor;
|
|
107
|
+
required: boolean;
|
|
108
|
+
default: null;
|
|
109
|
+
};
|
|
110
|
+
lng: {
|
|
111
|
+
type: NumberConstructor;
|
|
112
|
+
required: boolean;
|
|
113
|
+
default: null;
|
|
114
|
+
};
|
|
115
|
+
placeId: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
required: boolean;
|
|
118
|
+
default: null;
|
|
119
|
+
};
|
|
120
|
+
timezone: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
required: boolean;
|
|
123
|
+
default: null;
|
|
124
|
+
};
|
|
105
125
|
};
|
|
106
126
|
};
|
|
107
127
|
export default _default;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const shortid_1 = __importDefault(require("shortid"));
|
|
7
|
+
const Address_1 = __importDefault(require("./Address"));
|
|
7
8
|
exports.default = {
|
|
8
9
|
_id: {
|
|
9
10
|
type: String,
|
|
@@ -37,43 +38,6 @@ exports.default = {
|
|
|
37
38
|
required: false,
|
|
38
39
|
default: null,
|
|
39
40
|
}],
|
|
40
|
-
address: {
|
|
41
|
-
address1: {
|
|
42
|
-
type: String,
|
|
43
|
-
required: false,
|
|
44
|
-
default: null,
|
|
45
|
-
},
|
|
46
|
-
address2: {
|
|
47
|
-
type: String,
|
|
48
|
-
required: false,
|
|
49
|
-
default: null,
|
|
50
|
-
},
|
|
51
|
-
city: {
|
|
52
|
-
type: String,
|
|
53
|
-
required: false,
|
|
54
|
-
default: null,
|
|
55
|
-
},
|
|
56
|
-
state: {
|
|
57
|
-
type: String,
|
|
58
|
-
required: false,
|
|
59
|
-
default: null,
|
|
60
|
-
},
|
|
61
|
-
zip: {
|
|
62
|
-
type: String,
|
|
63
|
-
required: false,
|
|
64
|
-
default: null,
|
|
65
|
-
},
|
|
66
|
-
country: {
|
|
67
|
-
type: String,
|
|
68
|
-
required: false,
|
|
69
|
-
default: null,
|
|
70
|
-
},
|
|
71
|
-
phone: {
|
|
72
|
-
type: String,
|
|
73
|
-
required: false,
|
|
74
|
-
default: null,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
41
|
orgLogoUrl: {
|
|
78
42
|
type: String,
|
|
79
43
|
required: false,
|
|
@@ -109,5 +73,6 @@ exports.default = {
|
|
|
109
73
|
required: false,
|
|
110
74
|
default: null,
|
|
111
75
|
},
|
|
76
|
+
address: Address_1.default,
|
|
112
77
|
};
|
|
113
78
|
//# sourceMappingURL=Organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../src/schemas/Organization.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;
|
|
1
|
+
{"version":3,"file":"Organization.js","sourceRoot":"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AK;QACf,OAAO,EAAE,IAAI;KACd;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE,iBAAO;CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.50",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"author": "samheutmaker@gmail.com",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sellout/service": "^0.0.
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
19
|
+
"@sellout/service": "^0.0.50",
|
|
20
|
+
"@sellout/utils": "^0.0.50",
|
|
21
21
|
"@types/shortid": "0.0.29",
|
|
22
22
|
"graphql": "^14.6.0",
|
|
23
23
|
"graphql-tag": "^2.10.3",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"protobufjs": "~6.8.8",
|
|
30
30
|
"typescript": "^3.8.3"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6888751c5d7908a61606cbc6b2b0144d74872f81"
|
|
33
33
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export enum UpgradeTypeComplimentaryWithEnum {
|
|
2
|
+
Order = 'Order',
|
|
3
|
+
Ticket = 'Ticket',
|
|
4
|
+
};
|
|
5
|
+
|
|
1
6
|
export default interface IEventUpgrade {
|
|
2
7
|
_id?: string;
|
|
3
8
|
name: string;
|
|
@@ -6,6 +11,8 @@ export default interface IEventUpgrade {
|
|
|
6
11
|
remainingQty: number;
|
|
7
12
|
purchaseLimit: number;
|
|
8
13
|
complimentary: boolean;
|
|
14
|
+
complimentaryWith: UpgradeTypeComplimentaryWithEnum;
|
|
15
|
+
complimentaryQty: number;
|
|
9
16
|
ticketTypeIds: string[];
|
|
10
17
|
imageUrl: string;
|
|
11
18
|
description: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import shortid from 'shortid';
|
|
2
|
+
import Address from './Address';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
_id: {
|
|
@@ -33,43 +34,6 @@ export default {
|
|
|
33
34
|
required: false,
|
|
34
35
|
default: null,
|
|
35
36
|
}],
|
|
36
|
-
address: {
|
|
37
|
-
address1: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: false,
|
|
40
|
-
default: null,
|
|
41
|
-
},
|
|
42
|
-
address2: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: false,
|
|
45
|
-
default: null,
|
|
46
|
-
},
|
|
47
|
-
city: {
|
|
48
|
-
type: String,
|
|
49
|
-
required: false,
|
|
50
|
-
default: null,
|
|
51
|
-
},
|
|
52
|
-
state: {
|
|
53
|
-
type: String,
|
|
54
|
-
required: false,
|
|
55
|
-
default: null,
|
|
56
|
-
},
|
|
57
|
-
zip: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: false,
|
|
60
|
-
default: null,
|
|
61
|
-
},
|
|
62
|
-
country: {
|
|
63
|
-
type: String,
|
|
64
|
-
required: false,
|
|
65
|
-
default: null,
|
|
66
|
-
},
|
|
67
|
-
phone: {
|
|
68
|
-
type: String,
|
|
69
|
-
required: false,
|
|
70
|
-
default: null,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
37
|
orgLogoUrl: {
|
|
74
38
|
type: String,
|
|
75
39
|
required: false,
|
|
@@ -105,4 +69,5 @@ export default {
|
|
|
105
69
|
required: false,
|
|
106
70
|
default: null,
|
|
107
71
|
},
|
|
72
|
+
address: Address,
|
|
108
73
|
};
|