@@ -8,52 +8,53 @@ var window, global = {};
88
99 var modules = { } ;
1010 var cache = { } ;
11- var aliases = { } ;
1211 var has = ( { } ) . hasOwnProperty ;
1312
13+ var aliases = { } ;
14+
1415 var endsWith = function ( str , suffix ) {
1516 return str . indexOf ( suffix , str . length - suffix . length ) !== - 1 ;
1617 } ;
1718
18- var _cmp = 'components/' ;
1919 var unalias = function ( alias , loaderPath ) {
2020 var start = 0 ;
2121 if ( loaderPath ) {
22- if ( loaderPath . indexOf ( _cmp ) === 0 ) {
23- start = _cmp . length ;
22+ if ( loaderPath . indexOf ( 'components/' === 0 ) ) {
23+ start = 'components/' . length ;
2424 }
2525 if ( loaderPath . indexOf ( '/' , start ) > 0 ) {
2626 loaderPath = loaderPath . substring ( start , loaderPath . indexOf ( '/' , start ) ) ;
2727 }
2828 }
2929 var result = aliases [ alias + '/index.js' ] || aliases [ loaderPath + '/deps/' + alias + '/index.js' ] ;
3030 if ( result ) {
31- return _cmp + result . substring ( 0 , result . length - '.js' . length ) ;
31+ return 'components/' + result . substring ( 0 , result . length - '.js' . length ) ;
3232 }
3333 return alias ;
3434 } ;
3535
36- var _reg = / ^ \. \. ? ( \/ | $ ) / ;
37- var expand = function ( root , name ) {
38- var results = [ ] , part ;
39- var parts = ( _reg . test ( name ) ? root + '/' + name : name ) . split ( '/' ) ;
40- for ( var i = 0 , length = parts . length ; i < length ; i ++ ) {
41- part = parts [ i ] ;
42- if ( part === '..' ) {
43- results . pop ( ) ;
44- } else if ( part !== '.' && part !== '' ) {
45- results . push ( part ) ;
36+ var expand = ( function ( ) {
37+ var reg = / ^ \. \. ? ( \/ | $ ) / ;
38+ return function ( root , name ) {
39+ var results = [ ] , parts , part ;
40+ parts = ( reg . test ( name ) ? root + '/' + name : name ) . split ( '/' ) ;
41+ for ( var i = 0 , length = parts . length ; i < length ; i ++ ) {
42+ part = parts [ i ] ;
43+ if ( part === '..' ) {
44+ results . pop ( ) ;
45+ } else if ( part !== '.' && part !== '' ) {
46+ results . push ( part ) ;
47+ }
4648 }
47- }
48- return results . join ( '/' ) ;
49- } ;
50-
49+ return results . join ( '/' ) ;
50+ } ;
51+ } ) ( ) ;
5152 var dirname = function ( path ) {
5253 return path . split ( '/' ) . slice ( 0 , - 1 ) . join ( '/' ) ;
5354 } ;
5455
5556 var localRequire = function ( path ) {
56- return function expanded ( name ) {
57+ return function ( name ) {
5758 var absolute = expand ( dirname ( path ) , name ) ;
5859 return globals . require ( absolute , path ) ;
5960 } ;
@@ -108,7 +109,6 @@ var window, global = {};
108109 } ;
109110
110111 require . brunch = true ;
111- require . _cache = cache ;
112112 globals . require = require ;
113113} ) ( ) ;
114114var require = global . require ;
@@ -1601,6 +1601,31 @@ exports.deleteMemberPhoneNumber = function(memberPhoneNumber, callback) {
16011601
16021602} ) ;
16031603
1604+ require . register ( "collections/memberPhotos" , function ( exports , require , module ) {
1605+ exports . loadMemberPhotos = function ( params , callback ) {
1606+ if ( this . isId ( params ) ) {
1607+ params = {
1608+ teamId : params
1609+ } ;
1610+ } else if ( ! ( params && typeof params === 'object' ) ) {
1611+ throw new TSArgsError ( 'teamsnap.loadMemberPhotos' , 'must provide a `teamId` or query parameters' ) ;
1612+ }
1613+ return this . loadItems ( 'memberPhoto' , params , callback ) ;
1614+ } ;
1615+
1616+ exports . loadMemberPhoto = function ( params , callback ) {
1617+ if ( this . isId ( params ) ) {
1618+ params = {
1619+ id : params
1620+ } ;
1621+ } else if ( ! ( params && typeof params === 'object' ) ) {
1622+ throw new TSArgsError ( 'teamsnap.loadMemberPhoto' , 'must provide an `id` or query parameters' ) ;
1623+ }
1624+ return this . loadItem ( 'memberPhoto' , params , callback ) ;
1625+ } ;
1626+
1627+ } ) ;
1628+
16041629require . register ( "collections/memberStatistics" , function ( exports , require , module ) {
16051630exports . loadMemberStatistics = function ( params , callback ) {
16061631 if ( this . isId ( params ) ) {
@@ -2730,6 +2755,31 @@ exports.deleteTeamMediumComment = function(teamMediumComment, callback) {
27302755
27312756} ) ;
27322757
2758+ require . register ( "collections/teamPhotos" , function ( exports , require , module ) {
2759+ exports . loadTeamPhotos = function ( params , callback ) {
2760+ if ( this . isId ( params ) ) {
2761+ params = {
2762+ teamId : params
2763+ } ;
2764+ } else if ( ! ( params && typeof params === 'object' ) ) {
2765+ throw new TSArgsError ( 'teamsnap.loadTeamPhotos' , 'must provide a `teamId` or query parameters' ) ;
2766+ }
2767+ return this . loadItems ( 'teamPhoto' , params , callback ) ;
2768+ } ;
2769+
2770+ exports . loadTeamPhoto = function ( params , callback ) {
2771+ if ( this . isId ( params ) ) {
2772+ params = {
2773+ id : params
2774+ } ;
2775+ } else if ( ! ( params && typeof params === 'object' ) ) {
2776+ throw new TSArgsError ( 'teamsnap.loadTeamPhoto' , 'must provide an `id` or query parameters' ) ;
2777+ }
2778+ return this . loadItem ( 'teamPhoto' , params , callback ) ;
2779+ } ;
2780+
2781+ } ) ;
2782+
27332783require . register ( "collections/teamPublicSites" , function ( exports , require , module ) {
27342784exports . loadTeamPublicSites = function ( params , callback ) {
27352785 if ( this . isId ( params ) ) {
@@ -5910,6 +5960,8 @@ add(require('./collections/memberPayments'));
59105960
59115961add ( require ( './collections/memberPhoneNumbers' ) ) ;
59125962
5963+ add ( require ( './collections/memberPhotos' ) ) ;
5964+
59135965add ( require ( './collections/membersPreferences' ) ) ;
59145966
59155967add ( require ( './collections/memberStatistics' ) ) ;
@@ -5952,6 +6004,8 @@ add(require('./collections/teamPublicSites'));
59526004
59536005add ( require ( './collections/teamsPaypalPreferences' ) ) ;
59546006
6007+ add ( require ( './collections/teamPhotos' ) ) ;
6008+
59556009add ( require ( './collections/teamsPreferences' ) ) ;
59566010
59576011add ( require ( './collections/teamsResults' ) ) ;
@@ -5996,7 +6050,7 @@ ref = require('./model'), Collection = ref.Collection, Item = ref.Item;
59966050require ( './errors' ) ;
59976051
59986052TeamSnap = ( function ( ) {
5999- TeamSnap . prototype . version = '1.13.5 ' ;
6053+ TeamSnap . prototype . version = '1.14.0 ' ;
60006054
60016055 TeamSnap . prototype . promises = promises ;
60026056
@@ -6036,7 +6090,7 @@ var i, len, plural, pluralLookup, singularLookup, teamTypes, teamsnap, type, typ
60366090
60376091teamsnap = exports ;
60386092
6039- types = [ 'user' , 'assignment' , 'availability' , 'broadcastAlert' , 'broadcastEmail' , 'broadcastEmailAttachment' , 'contact' , 'contactEmailAddress' , 'contactPhoneNumber' , 'customDatum' , 'customField' , 'leagueCustomDatum' , 'leagueCustomField' , 'divisionContact' , 'divisionContactEmailAddress' , 'divisionContactPhoneNumber' , 'divisionLocation' , 'divisionMember' , 'divisionMemberEmailAddress' , 'divisionMemberPhoneNumber' , 'divisionMemberPreferences' , 'divisionTeamStanding' , 'event' , 'eventStatistic' , 'facebookPage' , 'forumPost' , 'forumSubscription' , 'forumTopic' , 'leagueRegistrantDocument' , 'location' , 'member' , 'memberBalance' , 'memberEmailAddress' , 'memberFile' , 'memberLink' , 'memberPayment' , 'memberPhoneNumber' , 'memberPreferences' , 'memberStatistic' , 'message' , 'messageDatum' , 'opponent' , 'opponentResults' , 'paymentNote' , 'plan' , 'smsGateway' , 'sponsor' , 'statistic' , 'statisticAggregate' , 'statisticDatum' , 'statisticGroup' , 'sport' , 'team' , 'teamFee' , 'teamMedium' , 'teamMediumComment' , 'teamMediaGroup' , 'teamPaypalPreferences' , 'teamPreferences' , 'teamPublicSite' , 'teamResults' , 'teamStatistic' , 'timeZone' , 'trackedItem' , 'trackedItemStatus' ] ;
6093+ types = [ 'user' , 'assignment' , 'availability' , 'broadcastAlert' , 'broadcastEmail' , 'broadcastEmailAttachment' , 'contact' , 'contactEmailAddress' , 'contactPhoneNumber' , 'customDatum' , 'customField' , 'leagueCustomDatum' , 'leagueCustomField' , 'divisionContact' , 'divisionContactEmailAddress' , 'divisionContactPhoneNumber' , 'divisionLocation' , 'divisionMember' , 'divisionMemberEmailAddress' , 'divisionMemberPhoneNumber' , 'divisionMemberPreferences' , 'divisionTeamStanding' , 'event' , 'eventStatistic' , 'facebookPage' , 'forumPost' , 'forumSubscription' , 'forumTopic' , 'leagueRegistrantDocument' , 'location' , 'member' , 'memberBalance' , 'memberEmailAddress' , 'memberFile' , 'memberLink' , 'memberPayment' , 'memberPhoneNumber' , 'memberPhoto' , 'memberPreferences' , 'memberStatistic' , 'message' , 'messageDatum' , 'opponent' , 'opponentResults' , 'paymentNote' , 'plan' , 'smsGateway' , 'sponsor' , 'statistic' , 'statisticAggregate' , 'statisticDatum' , 'statisticGroup' , 'sport' , 'team' , 'teamFee' , 'teamMedium' , 'teamMediumComment' , 'teamMediaGroup' , 'teamPaypalPreferences' , 'teamPhoto' , 'teamPreferences' , 'teamPublicSite' , 'teamResults' , 'teamStatistic' , 'timeZone' , 'trackedItem' , 'trackedItemStatus' ] ;
60406094
60416095teamTypes = types . slice ( ) ;
60426096
0 commit comments