@dhyasama/totem-models 6.2.0 → 6.3.0
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/.npmignore +14 -0
- package/lib/Organization.js +135 -5
- package/package-lock.json +1829 -0
- package/package.json +1 -1
- package/test/Organization.js +64 -0
package/package.json
CHANGED
package/test/Organization.js
CHANGED
|
@@ -162,6 +162,48 @@ describe('Organization', function() {
|
|
|
162
162
|
order: 4,
|
|
163
163
|
active: false
|
|
164
164
|
}
|
|
165
|
+
],
|
|
166
|
+
standardFields: {
|
|
167
|
+
fundraise: {
|
|
168
|
+
active: true,
|
|
169
|
+
showOnList: true,
|
|
170
|
+
order: 3
|
|
171
|
+
},
|
|
172
|
+
sources: {
|
|
173
|
+
active: true,
|
|
174
|
+
showOnList: false,
|
|
175
|
+
order: 4
|
|
176
|
+
},
|
|
177
|
+
referrers: {
|
|
178
|
+
active: true,
|
|
179
|
+
showOnList: false,
|
|
180
|
+
order: 5
|
|
181
|
+
},
|
|
182
|
+
resources: {
|
|
183
|
+
active: true,
|
|
184
|
+
showOnList: false,
|
|
185
|
+
order: 6
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
customFields: [
|
|
189
|
+
{
|
|
190
|
+
key: 'testField2',
|
|
191
|
+
type: 'Text',
|
|
192
|
+
label: 'Test Field 2',
|
|
193
|
+
display: { order: 1, showOnList: true }
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
key: 'testField1',
|
|
197
|
+
type: 'Text',
|
|
198
|
+
label: 'Test Field 1',
|
|
199
|
+
display: { order: 2, showOnList: false }
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
key: 'testFieldLast',
|
|
203
|
+
type: 'Text',
|
|
204
|
+
label: 'Test Field Last',
|
|
205
|
+
display: { order: 17, showOnList: true }
|
|
206
|
+
}
|
|
165
207
|
]
|
|
166
208
|
};
|
|
167
209
|
|
|
@@ -1142,6 +1184,28 @@ describe('Organization', function() {
|
|
|
1142
1184
|
return done();
|
|
1143
1185
|
|
|
1144
1186
|
|
|
1187
|
+
});
|
|
1188
|
+
|
|
1189
|
+
it('gets deal columns for a customer', function(done) {
|
|
1190
|
+
|
|
1191
|
+
var columns = customer1.customer.deals.columns;
|
|
1192
|
+
columns.length.should.equal(6);
|
|
1193
|
+
columns[0].name.should.equal('Company');
|
|
1194
|
+
columns[0].order.should.equal(0);
|
|
1195
|
+
columns[1].name.should.equal('Stage');
|
|
1196
|
+
columns[1].order.should.equal(1);
|
|
1197
|
+
columns[2].name.should.equal('Test Field 2');
|
|
1198
|
+
columns[2].order.should.equal(2);
|
|
1199
|
+
columns[3].name.should.equal('Fundraise Amount');
|
|
1200
|
+
columns[3].order.should.equal(3);
|
|
1201
|
+
columns[4].name.should.equal('Fundraise Valuation');
|
|
1202
|
+
columns[4].order.should.equal(4);
|
|
1203
|
+
columns[5].name.should.equal('Test Field Last');
|
|
1204
|
+
columns[5].order.should.equal(5);
|
|
1205
|
+
|
|
1206
|
+
return done();
|
|
1207
|
+
|
|
1208
|
+
|
|
1145
1209
|
});
|
|
1146
1210
|
|
|
1147
1211
|
it('adds a deal', function(done) {
|