@astro-sports-developers/models 1.0.75 → 1.0.77
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/fesm2022/astro-sports-developers-models.mjs.map +1 -1
- package/lib/models/M_Dictionary.models.d.ts +2 -0
- package/lib/models/M_Events.d.ts +2 -0
- package/lib/models/M_MediaFile.d.ts +1 -0
- package/lib/models/M_PlayersProfile.models.d.ts +1 -1
- package/lib/models/M_Tournaments.d.ts +2 -0
- package/lib/models/M_Universal.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro-sports-developers-models.mjs","sources":["../../../projects/models/src/lib/models/M_Dictionary.models.ts","../../../projects/models/src/lib/models/L_Strings.ts","../../../projects/models/src/lib/models/M_PlayersProfile.models.ts","../../../projects/models/src/lib/models/M_Tournaments.ts","../../../projects/models/src/lib/models/purchaseResponseTypes.ts","../../../projects/models/src/astro-sports-developers-models.ts"],"sourcesContent":["import { Timestamp } from 'firebase/firestore';\r\nimport { M_MediaFileV1 } from './M_MediaFile';\r\n\r\nexport const countries = [\r\n { variable: 'US', name: 'United States' },\r\n { variable: 'CA', name: 'Canada' },\r\n { variable: 'MX', name: 'Mexico' },\r\n] as const;\r\n\r\nexport interface M_DictionaryTournamentItem_V1_1 {\r\n TOU_Id?: string;\r\n ORG_Id?: string;\r\n\r\n TOU_Tier: string;\r\n\r\n TOU_Name: string;\r\n TOU_ShortDescription?: string;\r\n\r\n TOU_Country: string;\r\n TOU_State: string;\r\n TOU_City: string;\r\n\r\n TOU_StartDate?: Date | string | any;\r\n TOU_EndDate?: Date | string | any;\r\n TOU_DateOptions?: Timestamp[] | Date[];\r\n TOU_Sports?: string[];\r\n\r\n TOU_LogoURL?: M_MediaFileV1;\r\n\r\n TOU_Type?: 'Tournament' | 'League' | 'Camp' | 'Showcase' | 'Other';\r\n TOU_Status?: 'Upcoming' | 'Live' | 'Completed';\r\n TOU_Gender?: 'Boys' | 'Girls' | 'Boys and Girls';\r\n\r\n TOU_TeamsIDSportAssociation?: string[];\r\n TOU_TeamsIDSchoolProgram?: string[];\r\n TOU_SportAssociationIds?: string[];\r\n TOU_SchoolProgramIds?: string[];\r\n\r\n TOU_IsCoverByAstro?: boolean;\r\n TOU_AstroStatus?: string;\r\n\r\n TOU_CanAllCreativesSellContent?: boolean;\r\n TOU_CreativeIdsCanSellContent?: string[];\r\n\r\n version: '1.1';\r\n}\r\n\r\nexport interface M_DictionaryEventItem_V1_1 {\r\n //new\r\n ORG_Id?: string;\r\n SP_Id?: string;\r\n SA_Id?: string;\r\n\r\n E_Id?: string;\r\n E_EventName?: string;\r\n E_Type: 'Tournament' | 'Media Day' | 'Camp' | 'League' | 'Other';\r\n E_EventStatus?: string;\r\n E_ReadyForPurchase?: boolean;\r\n E_Description?: string;\r\n E_CoverByAstro?: boolean;\r\n E_AstroStatus?: string;\r\n E_LogoUrl?: M_MediaFileV1;\r\n E_ImageUrl?: M_MediaFileV1;\r\n E_DateOptions?: Timestamp[] | Date[]; //Array of possible dates for the event\r\n\r\n E_CanAllCreativesSellContent?: boolean;\r\n E_CreativeIdsCanSellContent?: string[];\r\n\r\n createdAt?: any;\r\n updatedAt?: any;\r\n delete?: boolean;\r\n}\r\nexport interface M_TOU_Dictionary_V1 {\r\n country: string;\r\n state: string;\r\n year: string;\r\n month: string;\r\n yearMonth: string;\r\n countryStateYearMonth: string; //<--Esta sera el de lectura.\r\n\r\n tournaments: M_DictionaryTournamentItem_V1_1[];\r\n\r\n updateAt: Timestamp | Date;\r\n version: '1';\r\n}\r\nexport interface M_E_Dictionary_V1 {\r\n country: string;\r\n state: string;\r\n year: string;\r\n month: string;\r\n yearMonth: string;\r\n countryStateYearMonth: string; //<--Esta sera el de lectura.\r\n\r\n events: M_DictionaryEventItem_V1_1[];\r\n\r\n updateAt: Timestamp | Date;\r\n version: '1';\r\n}\r\n","export const socialMediaString = [\r\n 'facebook',\r\n 'instagram',\r\n 'X',\r\n 'linkedin',\r\n 'tiktok',\r\n 'youtube',\r\n 'snapshat',\r\n 'other',\r\n] as const;\r\nexport const sports = [\r\n 'Badminton',\r\n 'Baseball',\r\n 'Basketball',\r\n 'Boxing',\r\n 'Cheerleading',\r\n 'Cross Country',\r\n 'Cycling',\r\n 'Dance',\r\n 'Field Hockey',\r\n 'Flag Football',\r\n 'Football',\r\n 'Golf',\r\n 'Gymnastics',\r\n 'Hockey',\r\n 'Lacrosse',\r\n 'Martial Arts',\r\n 'Padel',\r\n 'Pickleball',\r\n 'Rugby',\r\n 'Soccer',\r\n 'Softball',\r\n 'Swimming and Diving',\r\n 'Swimming',\r\n 'Table Tennis',\r\n 'Tennis',\r\n 'Track and Field',\r\n 'Volleyball',\r\n 'Water Polo',\r\n 'Wrestling',\r\n] as const;\r\n\r\nexport const productOptionalInputs = [\r\n 'Attendee Name',\r\n 'Attendee Last Name',\r\n 'Attendee Email',\r\n 'Attendee Phone Number',\r\n 'Attendee Age',\r\n 'Attendee Birthdate',\r\n 'Player Name',\r\n 'Player Last Name',\r\n 'Player Number',\r\n 'Player Position',\r\n 'Player Email',\r\n 'Player Phone Number',\r\n 'Player Age',\r\n 'Player Birthdate',\r\n 'Player Grade',\r\n 'Graduation Year',\r\n 'Sport Name',\r\n 'Team Name',\r\n 'Team Home',\r\n 'Team Away',\r\n 'Team Color',\r\n 'School Name',\r\n 'Organization Name',\r\n 'Coach Name',\r\n 'Coach Last Name',\r\n 'Parent Name',\r\n 'Parent Last Name',\r\n 'Parent Email',\r\n 'Parent Phone Number',\r\n 'Emergency Contact Name',\r\n 'Emergency Contact Phone Number',\r\n 'Event Name',\r\n 'Tournament Name',\r\n 'Venue Name',\r\n 'Venue Address',\r\n 'City',\r\n 'State',\r\n 'Country',\r\n 'Zip Code',\r\n 'Date',\r\n 'Time',\r\n 'Session',\r\n 'Division',\r\n 'Category',\r\n 'Jersey Number',\r\n 'Number',\r\n 'Court',\r\n 'Nickname',\r\n 'Hour',\r\n 'Email',\r\n 'Phone Number',\r\n 'Twitter',\r\n 'Facebook',\r\n 'Instagram',\r\n 'Snapchat',\r\n 'TikTok',\r\n 'YouTube',\r\n 'Score Team Home',\r\n 'Score Team Away',\r\n 'Final Score',\r\n 'Result',\r\n 'Ticket Type',\r\n 'Pass Type',\r\n 'Shirt Size',\r\n 'Uniform Size',\r\n 'Note',\r\n] as const;\r\n\r\nexport const usStates = [\r\n 'AL',\r\n 'AK',\r\n 'AZ',\r\n 'AR',\r\n 'CA',\r\n 'CO',\r\n 'CT',\r\n 'DE',\r\n 'FL',\r\n 'GA',\r\n 'HI',\r\n 'ID',\r\n 'IL',\r\n 'IN',\r\n 'IA',\r\n 'KS',\r\n 'KY',\r\n 'LA',\r\n 'ME',\r\n 'MD',\r\n 'MA',\r\n 'MI',\r\n 'MN',\r\n 'MS',\r\n 'MO',\r\n 'MT',\r\n 'NE',\r\n 'NV',\r\n 'NH',\r\n 'NJ',\r\n 'NM',\r\n 'NY',\r\n 'NC',\r\n 'ND',\r\n 'OH',\r\n 'OK',\r\n 'OR',\r\n 'PA',\r\n 'RI',\r\n 'SC',\r\n 'SD',\r\n 'TN',\r\n 'TX',\r\n 'UT',\r\n 'VT',\r\n 'VA',\r\n 'WA',\r\n 'WV',\r\n 'WI',\r\n 'WY',\r\n] as const;\r\n\r\nexport const division = [\r\n '2nd',\r\n '3rd',\r\n '4th',\r\n '5th',\r\n '6th',\r\n '7th',\r\n '8th',\r\n '9th',\r\n '10th',\r\n 'jv',\r\n 'varsity',\r\n '17 u'\r\n] as const;\r\n\r\nexport const schooltypes = [\r\n 'UIL',\r\n 'TAAPS',\r\n 'FHSAA',\r\n 'SSAC',\r\n 'FACCS',\r\n 'FICAA',\r\n] as const;\r\n","import { Timestamp } from 'firebase/firestore';\r\nimport { M_MediaFileV1 } from './M_MediaFile';\r\nimport { M_ContactMethods } from './M_Universal';\r\n\r\nexport interface M_PlayerProfile_V1 {\r\n uid: string;\r\n email: string;\r\n\r\n P_Id: string;\r\n P_Name: string;\r\n P_NickName?: string;\r\n P_DateOfBirth?: Timestamp | Date;\r\n P_AboutMe?: string; //max 250\r\n P_Gender?: string;\r\n P_ProfileImage?: M_MediaFileV1; //users/{uid}/COLSharedMedia\r\n P_ImageGallery?: M_MediaFileV1[]; //users/{uid}/COLMediaFile\r\n\r\n P_Tier: string;\r\n P_ExpirationDate?: Timestamp | Date;\r\n P_Status?: string;\r\n createAt: Timestamp | Date;\r\n updated: Timestamp | Date;\r\n deleted: boolean;\r\n\r\n //team data\r\n P_Number?: number;\r\n P_Position?: string;\r\n P_Sport?: string;\r\n}\r\n\r\n//player tier extend premiun properties.\r\n\r\n// #region UserPartnersVideographers\r\n\r\nexport interface M_UserPartnersVideographersMin_V1 {\r\n uid?: string;\r\n email: string;\r\n\r\n UPV_Id: string;\r\n\r\n UPV_ProfilePhoto?: M_MediaFileV1;\r\n URP_Username?: string;\r\n\r\n UPV_FullName: string;\r\n UPV_ContactMethods: M_ContactMethods[];\r\n UPV_Country?: string;\r\n UPV_State?: string;\r\n UPV_City?: string;\r\n UPV_Address?: string;\r\n\r\n UPV_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n}\r\n\r\nexport interface M_UserPartnersVideographers_V1 extends M_UserProfile_V1 {\r\n uid: string;\r\n email: string;\r\n\r\n UPV_Id: string;\r\n\r\n UPV_ProfilePhoto?: M_MediaFileV1;\r\n URP_Username?: string;\r\n\r\n UPV_FullName: string;\r\n UPV_ContactMethods?: M_ContactMethods[];\r\n UPV_Country?: string;\r\n UPV_State?: string;\r\n UPV_City?: string;\r\n UPV_Address?: string;\r\n\r\n UPV_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n\r\n UPV_BannerURL?: M_MediaFileV1[];\r\n UPV_BackGrownMedia?: M_MediaFileV1[];\r\n\r\n UPV_Level?: number;\r\n UPV_LikesIds?: string[];\r\n UPV_MediaStorageCount?: number;\r\n\r\n createdAt: Timestamp | Date;\r\n updateAt: Date | any;\r\n deleted: boolean;\r\n}\r\n\r\ninterface M_UserProfile_V1 {\r\n URP_AtUsername?: string; //@Samytheturtle\r\n URP_AboutMe?: string;\r\n URP_Skills?: string[];\r\n URP_DateOfBirth?: Timestamp | Date;\r\n URP_TypeUserProfile?:\r\n | 'TBD'\r\n | 'Videoghapher'\r\n | 'Photographer'\r\n | 'Editor'\r\n | 'Designer'\r\n | 'Creative';\r\n\r\n URP_HighlightsGallery?: M_MediaFileV1[];\r\n URP_MediaGaller?: M_MediaFileV1[];\r\n\r\n URP_IntroVideoURL?: M_MediaFileV1;\r\n URP_CreativeProgram?: string[];\r\n URP_Specialty?: string;\r\n URP_ExternalPortfolioURL?: string;\r\n\r\n URP_ExperienceDateStart?: Date | Timestamp;\r\n\r\n URP_RegisteredSessions?: number; //No lo puede editar el usuario\r\n}\r\n// #endregion\r\n// #region UserRolesPartners\r\nexport interface M_UserPartners {\r\n uid?: string;\r\n email: string;\r\n\r\n UR_Id: string;\r\n UR_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n\r\n UR_ProfilePhoto?: M_MediaFileV1;\r\n\r\n UR_Profile?: M_UserProfile_V1;\r\n\r\n UR_ContactMethods: M_ContactMethods[];\r\n\r\n UR_FullName: string;\r\n UR_Phone?: string;\r\n UR_ContactMail?: string;\r\n\r\n UR_Address?: string;\r\n UR_Country?: string;\r\n UR_State?: string;\r\n UR_City?: string;\r\n\r\n UR_ProfilePhotoURL?: string;\r\n UR_BannerURL?: string;\r\n\r\n deleted: boolean;\r\n lastUpdate: Date | any;\r\n}\r\n\r\nexport interface M_UserPartnersMin {\r\n uid?: string;\r\n email: string;\r\n\r\n UR_Id: string;\r\n UR_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n\r\n UR_Profile?: M_UserProfile_V1;\r\n\r\n UR_ProfilePhoto?: M_MediaFileV1;\r\n\r\n UR_FullName: string;\r\n UR_Phone?: string;\r\n UR_ContactMail?: string;\r\n UR_Address?: string;\r\n UR_Country?: string;\r\n UR_State?: string;\r\n UR_City?: string;\r\n}\r\n// #endregion\r\n","import { Timestamp } from 'firebase/firestore';\r\nimport { M_SPOnsorsV1 } from './M_Sponsors.model';\r\nimport { M_MediaFileV1 } from './M_MediaFile';\r\nimport { M_Team, M_VenueMin } from './M_Teams.model';\r\nimport { M_GoogleDriveFolders, M_StaffRolesV1 } from './M_Universal';\r\nimport { M_Product_V1 } from './M_Product.model';\r\n\r\nexport interface M_Tournament_V1 extends M_Tournament_Basic {\r\n //COLTournaments\r\n TOU_Id?: string;\r\n ORG_Id?: string;\r\n\r\n TOU_Tier: string;\r\n\r\n TOU_SponsorIdsAccepted?: string[];\r\n TOU_SponsorsIds: M_SPOnsorsV1[];\r\n\r\n TOU_Name: string;\r\n TOU_LogDescription?: string;\r\n TOU_ShortDescription?: string;\r\n\r\n TOU_Country: string;\r\n TOU_State: string;\r\n TOU_City: string;\r\n\r\n TOU_StartDate?: Date | string | any;\r\n TOU_EndDate?: Date | string | any;\r\n TOU_Sports?: string[];\r\n TOU_DateOptions?: Timestamp[] | Date[];\r\n TOU_Staff?: M_StaffRolesV1[];\r\n\r\n TOU_Route: string;\r\n\r\n TOU_LogoURL?: M_MediaFileV1;\r\n TOU_Banner?: M_MediaFileV1;\r\n\r\n TOU_Address?: string;\r\n TOU_ZipCode?: string;\r\n\r\n TOU_Type?: 'Tournament' | 'League' | 'Camp' | 'Showcase' | 'Other';\r\n TOU_Status?: 'Upcoming' | 'Live' | 'Completed';\r\n TOU_Gender?: 'Boys' | 'Girls' | 'Boys and Girls';\r\n TOU_RegistrationPage?: string;\r\n\r\n TOU_Venues?: M_VenueMin[];\r\n\r\n TOU_IsCoverByAstro?: boolean; //<-Para registrar poder registrar los prodcutos de astro en x proyecto.\r\n TOU_RegisteredProductsAstro?: M_Product_V1[];\r\n TOU_RegisteredProducts?: M_Product_V1[];\r\n TOU_RegisterTickets?: M_Product_V1[];\r\n TOU_GamesRegisterId?: string[];\r\n\r\n TOU_PriceMedia?: {\r\n video: number;\r\n image: number;\r\n };\r\n\r\n TOU_PriceMediaAstro?: {\r\n video: number;\r\n image: number;\r\n };\r\n\r\n TOU_GoogleDriveFolders?: M_GoogleDriveFolders[];\r\n TOU_AstroStatus?:\r\n | 'Open for request'\r\n | 'Scheduled for shoot'\r\n | 'Delivering/Posting'\r\n | 'Completed'\r\n | 'Cancel';\r\n\r\n TOU_VirtualTouTeams?: M_Team[]; //Indicates if the tournament allows virtual teams (teams that don't have a physical location)\r\n TOU_TeamsIDSportAssociation?: string[];\r\n TOU_TeamsIDSchoolProgram?: string[];\r\n TOU_SportAssociationIds?: string[];\r\n TOU_SchoolProgramIds?: string[];\r\n\r\n TOU_IsOfficialMediaCoverage?: boolean;\r\n //creative controls\r\n TOU_CanAllCreativesSellContent?: boolean;\r\n TOU_CreativeIdsCanSellContent?: string[];\r\n\r\n createdAt: Date | Timestamp;\r\n deleted: boolean;\r\n lastUpdate: Date | any;\r\n version?: 'v1';\r\n}\r\n\r\nexport interface M_TournamentMin_V1 {\r\n TOU_Id?: string;\r\n ORG_Id?: string;\r\n\r\n TOU_Tier: string;\r\n\r\n TOU_Name: string;\r\n TOU_ShortDescription?: string;\r\n\r\n TOU_Country: string;\r\n TOU_State: string;\r\n TOU_City: string;\r\n\r\n TOU_StartDate?: Date | string | any;\r\n TOU_EndDate?: Date | string | any;\r\n TOU_DateOptions?: Timestamp[] | Date[];\r\n TOU_Sports?: string[];\r\n\r\n TOU_Route: string;\r\n TOU_LogoURL?: M_MediaFileV1;\r\n\r\n TOU_Type?: 'Tournament' | 'League' | 'Camp' | 'Showcase' | 'Other';\r\n TOU_Status?: 'Upcoming' | 'Live' | 'Completed';\r\n TOU_Gender?: 'Boys' | 'Girls' | 'Boys and Girls';\r\n\r\n TOU_TeamsIDSportAssociation?: string[];\r\n TOU_TeamsIDSchoolProgram?: string[];\r\n TOU_SportAssociationIds?: string[];\r\n TOU_SchoolProgramIds?: string[];\r\n\r\n TOU_CanAllCreativesSellContent?: boolean;\r\n TOU_CreativeIdsCanSellContent?: string[];\r\n\r\n\r\n TOU_IsCoverByAstro?: boolean;\r\n TOU_AstroStatus?:\r\n | 'Open for request'\r\n | 'Scheduled for shoot'\r\n | 'Delivering/Posting'\r\n | 'Completed'\r\n | 'Cancel';\r\n}\r\n\r\ninterface M_Tournament_Basic {\r\n TOUB_TextSplash?: string;\r\n TOUB_CustomLinks?: { label: string; url: string }[];\r\n TOUB_SocialLinks?: { social: string; url: string }[];\r\n\r\n //TOUB_Questions?: BasicQuestion[];\r\n}\r\n\r\nexport const socialIcons = [\r\n { social: 'Instagram', url: 'assets/socials/Instagram.svg' },\r\n { social: 'Facebook', url: 'assets/socials/Facebook.svg' },\r\n { social: 'TikTok', url: 'assets/socials/TikTok.svg' },\r\n { social: 'YouTube', url: 'assets/socials/YouTube.svg' },\r\n { social: 'X', url: 'assets/socials/X.svg' },\r\n];\r\nexport interface M_SocialItem {\r\n social:\r\n | 'Instagram'\r\n | 'Facebook'\r\n | 'TikTok'\r\n | 'YouTube'\r\n | 'X'\r\n | 'Other'\r\n | string;\r\n url: string;\r\n}\r\nexport interface M_Socials {\r\n socials: M_SocialItem[];\r\n}\r\n","// ── Shared building blocks ──────────────────────────────────────────────────\n\nexport interface PurchaseMoneyV1 {\n amount: number;\n currency: string;\n}\n\nexport interface PurchasePaymentInfoV1 {\n id: string;\n /** Square payment status, e.g. \"COMPLETED\", \"PENDING\" */\n status: string;\n receiptNumber?: string | null;\n receiptUrl?: string | null;\n totalMoney: PurchaseMoneyV1;\n}\n\nexport interface PurchaseOrderInfoV1 {\n id: string;\n state?: string | null;\n totalMoney: PurchaseMoneyV1;\n}\n\n/** A single COLPurchases / COLOrganizationPurchases Firestore write record */\nexport interface PurchaseFirestoreRecordV1 {\n id: string;\n collection: string;\n productCount: number;\n amount: number;\n}\n\nexport interface PurchaseProductSummaryV1 {\n name: string;\n price: number;\n quantity: number;\n category?: string;\n subCategory?: string;\n optionalInputs?: Array<{ label: string; value: string }>;\n}\n\n/**\n * Product split between Astro-owned and organization/event-owned products.\n * Present only for tournamentPurchase and eventsPurchase.\n */\nexport interface PurchaseProductSplitV1 {\n /** Products registered under Astro's catalog */\n astroProducts: PurchaseProductSummaryV1[];\n /** Products registered under the organization or event catalog */\n counterpartProducts: PurchaseProductSummaryV1[];\n astroCount: number;\n counterpartCount: number;\n /** Indicates whose catalog the counterpart products belong to */\n counterpartLabel: 'organization' | 'event';\n}\n\n/** Individual media file authorized by this purchase */\nexport interface PurchaseMediaItemV1 {\n iipId: string;\n mediaType: 'image' | 'video';\n expectedPrice: number;\n}\n\n/**\n * Media authorization summary.\n * Present only for individualMediaPurchase.\n */\nexport interface PurchaseMediaInfoV1 {\n totalItems: number;\n /** UID that was granted access to the purchased files */\n authorizedUid?: string;\n /** Number of COLPurchasableFiles documents updated */\n authorizationUpdated: number;\n items: PurchaseMediaItemV1[];\n}\n\n/** Tournament or event context embedded in the response */\nexport interface PurchaseEntityContextV1 {\n TOU_Id?: string;\n TOU_Name?: string;\n ORG_Id?: string;\n E_Id?: string;\n E_Name?: string;\n}\n\n// ── Success response ─────────────────────────────────────────────────────────\n\nexport interface PurchaseSuccessResponseV1 {\n success: true;\n paymentId: string;\n orderId: string;\n /** COLPurchases document id — present for individualMediaPurchase */\n purchaseId?: string;\n environment: 'production' | 'sandbox';\n payment: PurchasePaymentInfoV1;\n /** Square order summary — present for tournamentPurchase and eventsPurchase */\n order?: PurchaseOrderInfoV1;\n /** Tournament or event that this purchase is associated with */\n entity: PurchaseEntityContextV1;\n /** Product split breakdown — present for tournamentPurchase and eventsPurchase */\n productSplit?: PurchaseProductSplitV1;\n /** Firestore write records — present for tournamentPurchase and eventsPurchase */\n firestoreRecords?: PurchaseFirestoreRecordV1[];\n /** True when the transaction created split purchase documents */\n splitPurchase?: true;\n /** Media authorization info — present for individualMediaPurchase */\n media?: PurchaseMediaInfoV1;\n totalProducts?: number;\n totalAmount: number;\n timestamp: string;\n}\n\n// ── Error response ────────────────────────────────────────────────────────────\n\nexport interface PurchaseErrorResponseV1 {\n success: false;\n /** Human-readable explanation of what went wrong */\n error: string;\n /** Field-level validation failures */\n validationErrors?: string[];\n /** Additional machine-readable detail */\n details?: unknown;\n}\n\n// ── Union ─────────────────────────────────────────────────────────────────────\n\nexport type PurchaseResponseV1 = PurchaseSuccessResponseV1 | PurchaseErrorResponseV1;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAGa,MAAA,SAAS,GAAG;AACvB,IAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;AACzC,IAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;AAClC,IAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;;;ACNvB,MAAA,iBAAiB,GAAG;IAC/B,UAAU;IACV,WAAW;IACX,GAAG;IACH,UAAU;IACV,QAAQ;IACR,SAAS;IACT,UAAU;IACV,OAAO;;AAEI,MAAA,MAAM,GAAG;IACpB,WAAW;IACX,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,cAAc;IACd,eAAe;IACf,SAAS;IACT,OAAO;IACP,cAAc;IACd,eAAe;IACf,UAAU;IACV,MAAM;IACN,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,cAAc;IACd,OAAO;IACP,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,UAAU;IACV,qBAAqB;IACrB,UAAU;IACV,cAAc;IACd,QAAQ;IACR,iBAAiB;IACjB,YAAY;IACZ,YAAY;IACZ,WAAW;;AAGA,MAAA,qBAAqB,GAAG;IACnC,eAAe;IACf,oBAAoB;IACpB,gBAAgB;IAChB,uBAAuB;IACvB,cAAc;IACd,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,qBAAqB;IACrB,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AI;IACJ,IAAI;IACJ,IAAI;;AAGO,MAAA,QAAQ,GAAG;IACtB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,IAAI;IACJ,SAAS;IACT;;AAGW,MAAA,WAAW,GAAG;IACzB,KAAK;IACL,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;;;AC3BT;;ACpBa,MAAA,WAAW,GAAG;AACzB,IAAA,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,8BAA8B,EAAE;AAC5D,IAAA,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,6BAA6B,EAAE;AAC1D,IAAA,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,2BAA2B,EAAE;AACtD,IAAA,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,4BAA4B,EAAE;AACxD,IAAA,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,sBAAsB,EAAE;;;AC/I9C;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"astro-sports-developers-models.mjs","sources":["../../../projects/models/src/lib/models/M_Dictionary.models.ts","../../../projects/models/src/lib/models/L_Strings.ts","../../../projects/models/src/lib/models/M_PlayersProfile.models.ts","../../../projects/models/src/lib/models/M_Tournaments.ts","../../../projects/models/src/lib/models/purchaseResponseTypes.ts","../../../projects/models/src/astro-sports-developers-models.ts"],"sourcesContent":["import { Timestamp } from 'firebase/firestore';\r\nimport { M_MediaFileV1 } from './M_MediaFile';\r\n\r\nexport const countries = [\r\n { variable: 'US', name: 'United States' },\r\n { variable: 'CA', name: 'Canada' },\r\n { variable: 'MX', name: 'Mexico' },\r\n] as const;\r\n\r\nexport interface M_DictionaryTournamentItem_V1_1 {\r\n TOU_Id?: string;\r\n ORG_Id?: string;\r\n\r\n TOU_Tier: string;\r\n\r\n TOU_Name: string;\r\n TOU_ShortDescription?: string;\r\n\r\n TOU_Country: string;\r\n TOU_State: string;\r\n TOU_City: string;\r\n\r\n TOU_StartDate?: Date | string | any;\r\n TOU_EndDate?: Date | string | any;\r\n TOU_DateOptions?: Timestamp[] | Date[];\r\n TOU_Sports?: string[];\r\n\r\n TOU_LogoURL?: M_MediaFileV1;\r\n\r\n TOU_Type?: 'Tournament' | 'League' | 'Camp' | 'Showcase' | 'Other';\r\n TOU_Status?: 'Upcoming' | 'Live' | 'Completed';\r\n TOU_Gender?: 'Boys' | 'Girls' | 'Boys and Girls';\r\n\r\n TOU_TeamsIDSportAssociation?: string[];\r\n TOU_TeamsIDSchoolProgram?: string[];\r\n TOU_SportAssociationIds?: string[];\r\n TOU_SchoolProgramIds?: string[];\r\n\r\n TOU_IsCoverByAstro?: boolean;\r\n TOU_AstroStatus?: string;\r\n\r\n TOU_CanAllCreativesSellContent?: boolean;\r\n TOU_CreativeIdsCanSellContent?: string[];\r\n TOU_CreativeIdsCanUploadGalleryMedia?: string[];\r\n\r\n version: '1.1';\r\n}\r\n\r\nexport interface M_DictionaryEventItem_V1_1 {\r\n //new\r\n ORG_Id?: string;\r\n SP_Id?: string;\r\n SA_Id?: string;\r\n\r\n E_Id?: string;\r\n E_EventName?: string;\r\n E_Type: 'Tournament' | 'Media Day' | 'Camp' | 'League' | 'Other';\r\n E_EventStatus?: string;\r\n E_ReadyForPurchase?: boolean;\r\n E_Description?: string;\r\n E_CoverByAstro?: boolean;\r\n E_AstroStatus?: string;\r\n E_LogoUrl?: M_MediaFileV1;\r\n E_ImageUrl?: M_MediaFileV1;\r\n E_DateOptions?: Timestamp[] | Date[]; //Array of possible dates for the event\r\n\r\n E_CanAllCreativesSellContent?: boolean;\r\n E_CreativeIdsCanSellContent?: string[];\r\n E_CreativeIdsCanUploadGalleryMedia?: string[];\r\n\r\n createdAt?: any;\r\n updatedAt?: any;\r\n delete?: boolean;\r\n}\r\nexport interface M_TOU_Dictionary_V1 {\r\n country: string;\r\n state: string;\r\n year: string;\r\n month: string;\r\n yearMonth: string;\r\n countryStateYearMonth: string; //<--Esta sera el de lectura.\r\n\r\n tournaments: M_DictionaryTournamentItem_V1_1[];\r\n\r\n updateAt: Timestamp | Date;\r\n version: '1';\r\n}\r\nexport interface M_E_Dictionary_V1 {\r\n country: string;\r\n state: string;\r\n year: string;\r\n month: string;\r\n yearMonth: string;\r\n countryStateYearMonth: string; //<--Esta sera el de lectura.\r\n\r\n events: M_DictionaryEventItem_V1_1[];\r\n\r\n updateAt: Timestamp | Date;\r\n version: '1';\r\n}\r\n","export const socialMediaString = [\r\n 'facebook',\r\n 'instagram',\r\n 'X',\r\n 'linkedin',\r\n 'tiktok',\r\n 'youtube',\r\n 'snapshat',\r\n 'other',\r\n] as const;\r\nexport const sports = [\r\n 'Badminton',\r\n 'Baseball',\r\n 'Basketball',\r\n 'Boxing',\r\n 'Cheerleading',\r\n 'Cross Country',\r\n 'Cycling',\r\n 'Dance',\r\n 'Field Hockey',\r\n 'Flag Football',\r\n 'Football',\r\n 'Golf',\r\n 'Gymnastics',\r\n 'Hockey',\r\n 'Lacrosse',\r\n 'Martial Arts',\r\n 'Padel',\r\n 'Pickleball',\r\n 'Rugby',\r\n 'Soccer',\r\n 'Softball',\r\n 'Swimming and Diving',\r\n 'Swimming',\r\n 'Table Tennis',\r\n 'Tennis',\r\n 'Track and Field',\r\n 'Volleyball',\r\n 'Water Polo',\r\n 'Wrestling',\r\n] as const;\r\n\r\nexport const productOptionalInputs = [\r\n 'Attendee Name',\r\n 'Attendee Last Name',\r\n 'Attendee Email',\r\n 'Attendee Phone Number',\r\n 'Attendee Age',\r\n 'Attendee Birthdate',\r\n 'Player Name',\r\n 'Player Last Name',\r\n 'Player Number',\r\n 'Player Position',\r\n 'Player Email',\r\n 'Player Phone Number',\r\n 'Player Age',\r\n 'Player Birthdate',\r\n 'Player Grade',\r\n 'Graduation Year',\r\n 'Sport Name',\r\n 'Team Name',\r\n 'Team Home',\r\n 'Team Away',\r\n 'Team Color',\r\n 'School Name',\r\n 'Organization Name',\r\n 'Coach Name',\r\n 'Coach Last Name',\r\n 'Parent Name',\r\n 'Parent Last Name',\r\n 'Parent Email',\r\n 'Parent Phone Number',\r\n 'Emergency Contact Name',\r\n 'Emergency Contact Phone Number',\r\n 'Event Name',\r\n 'Tournament Name',\r\n 'Venue Name',\r\n 'Venue Address',\r\n 'City',\r\n 'State',\r\n 'Country',\r\n 'Zip Code',\r\n 'Date',\r\n 'Time',\r\n 'Session',\r\n 'Division',\r\n 'Category',\r\n 'Jersey Number',\r\n 'Number',\r\n 'Court',\r\n 'Nickname',\r\n 'Hour',\r\n 'Email',\r\n 'Phone Number',\r\n 'Twitter',\r\n 'Facebook',\r\n 'Instagram',\r\n 'Snapchat',\r\n 'TikTok',\r\n 'YouTube',\r\n 'Score Team Home',\r\n 'Score Team Away',\r\n 'Final Score',\r\n 'Result',\r\n 'Ticket Type',\r\n 'Pass Type',\r\n 'Shirt Size',\r\n 'Uniform Size',\r\n 'Note',\r\n] as const;\r\n\r\nexport const usStates = [\r\n 'AL',\r\n 'AK',\r\n 'AZ',\r\n 'AR',\r\n 'CA',\r\n 'CO',\r\n 'CT',\r\n 'DE',\r\n 'FL',\r\n 'GA',\r\n 'HI',\r\n 'ID',\r\n 'IL',\r\n 'IN',\r\n 'IA',\r\n 'KS',\r\n 'KY',\r\n 'LA',\r\n 'ME',\r\n 'MD',\r\n 'MA',\r\n 'MI',\r\n 'MN',\r\n 'MS',\r\n 'MO',\r\n 'MT',\r\n 'NE',\r\n 'NV',\r\n 'NH',\r\n 'NJ',\r\n 'NM',\r\n 'NY',\r\n 'NC',\r\n 'ND',\r\n 'OH',\r\n 'OK',\r\n 'OR',\r\n 'PA',\r\n 'RI',\r\n 'SC',\r\n 'SD',\r\n 'TN',\r\n 'TX',\r\n 'UT',\r\n 'VT',\r\n 'VA',\r\n 'WA',\r\n 'WV',\r\n 'WI',\r\n 'WY',\r\n] as const;\r\n\r\nexport const division = [\r\n '2nd',\r\n '3rd',\r\n '4th',\r\n '5th',\r\n '6th',\r\n '7th',\r\n '8th',\r\n '9th',\r\n '10th',\r\n 'jv',\r\n 'varsity',\r\n '17 u'\r\n] as const;\r\n\r\nexport const schooltypes = [\r\n 'UIL',\r\n 'TAAPS',\r\n 'FHSAA',\r\n 'SSAC',\r\n 'FACCS',\r\n 'FICAA',\r\n] as const;\r\n","import { Timestamp } from 'firebase/firestore';\r\nimport { M_MediaFileV1 } from './M_MediaFile';\r\nimport { M_ContactMethods } from './M_Universal';\r\n\r\nexport interface M_PlayerProfile_V1 {\r\n uid: string;\r\n email: string;\r\n\r\n P_Id: string;\r\n P_Name: string;\r\n P_NickName?: string;\r\n P_DateOfBirth?: Timestamp | Date;\r\n P_AboutMe?: string; //max 250\r\n P_Gender?: string;\r\n P_ProfileImage?: M_MediaFileV1; //users/{uid}/COLSharedMedia\r\n P_ImageGallery?: M_MediaFileV1[]; //users/{uid}/COLMediaFile\r\n\r\n P_Tier: string;\r\n P_ExpirationDate?: Timestamp | Date;\r\n P_Status?: string;\r\n createAt: Timestamp | Date;\r\n updated: Timestamp | Date;\r\n deleted: boolean;\r\n\r\n //team data\r\n P_Number?: number;\r\n P_Position?: string;\r\n P_Sport?: string;\r\n}\r\n\r\n//player tier extend premiun properties.\r\n\r\n// #region UserPartnersVideographers\r\n\r\nexport interface M_UserPartnersVideographersMin_V1 {\r\n uid?: string;\r\n email: string;\r\n\r\n UPV_Id: string;\r\n\r\n UPV_ProfilePhoto?: M_MediaFileV1;\r\n URP_Username?: string;\r\n\r\n UPV_FullName: string;\r\n UPV_ContactMethods: M_ContactMethods[];\r\n UPV_Country?: string;\r\n UPV_State?: string;\r\n UPV_City?: string;\r\n UPV_Address?: string;\r\n\r\n UPV_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n}\r\n\r\nexport interface M_UserPartnersVideographers_V1 extends M_UserProfile_V1 {\r\n uid: string;\r\n email: string;\r\n\r\n UPV_Id: string;\r\n\r\n UPV_ProfilePhoto?: M_MediaFileV1;\r\n URP_Username?: string;\r\n\r\n UPV_FullName: string;\r\n UPV_ContactMethods?: M_ContactMethods[];\r\n UPV_Country?: string;\r\n UPV_State?: string;\r\n UPV_City?: string;\r\n UPV_Address?: string;\r\n\r\n UPV_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n\r\n UPV_BannerURL?: M_MediaFileV1[];\r\n UPV_BackGrownMedia?: M_MediaFileV1[];\r\n\r\n UPV_Level?: number;\r\n UPV_LikesIds?: string[];\r\n UPV_MediaStorageCount?: number;\r\n\r\n createdAt: Timestamp | Date;\r\n updateAt: Date | any;\r\n deleted: boolean;\r\n}\r\n\r\ninterface M_UserProfile_V1 {\r\n URP_AtUsername?: string; //@Samytheturtle\r\n URP_AboutMe?: string;\r\n URP_Skills?: string[];\r\n URP_DateOfBirth?: Timestamp | Date;\r\n URP_TypeUserProfile?:\r\n | 'TBD'\r\n | 'Videoghapher'\r\n | 'Photographer'\r\n | 'Editor'\r\n | 'Designer'\r\n | 'Creative';\r\n\r\n URP_HighlightsGallery?: M_MediaFileV1[];\r\n URP_MediaGallery?: M_MediaFileV1[];\r\n\r\n URP_IntroVideoURL?: M_MediaFileV1;\r\n URP_CreativeProgram?: string[];\r\n URP_Specialty?: string;\r\n URP_ExternalPortfolioURL?: string;\r\n\r\n URP_ExperienceDateStart?: Date | Timestamp;\r\n\r\n URP_RegisteredSessions?: number; //No lo puede editar el usuario\r\n}\r\n// #endregion\r\n// #region UserRolesPartners\r\nexport interface M_UserPartners {\r\n uid?: string;\r\n email: string;\r\n\r\n UR_Id: string;\r\n UR_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n\r\n UR_ProfilePhoto?: M_MediaFileV1;\r\n\r\n UR_Profile?: M_UserProfile_V1;\r\n\r\n UR_ContactMethods: M_ContactMethods[];\r\n\r\n UR_FullName: string;\r\n UR_Phone?: string;\r\n UR_ContactMail?: string;\r\n\r\n UR_Address?: string;\r\n UR_Country?: string;\r\n UR_State?: string;\r\n UR_City?: string;\r\n\r\n UR_ProfilePhotoURL?: string;\r\n UR_BannerURL?: string;\r\n\r\n deleted: boolean;\r\n lastUpdate: Date | any;\r\n}\r\n\r\nexport interface M_UserPartnersMin {\r\n uid?: string;\r\n email: string;\r\n\r\n UR_Id: string;\r\n UR_Status: 'TBD' | 'Active' | 'Inactve' | 'Aplication Pending' | 'Rejected';\r\n\r\n UR_Profile?: M_UserProfile_V1;\r\n\r\n UR_ProfilePhoto?: M_MediaFileV1;\r\n\r\n UR_FullName: string;\r\n UR_Phone?: string;\r\n UR_ContactMail?: string;\r\n UR_Address?: string;\r\n UR_Country?: string;\r\n UR_State?: string;\r\n UR_City?: string;\r\n}\r\n// #endregion\r\n","import { Timestamp } from 'firebase/firestore';\r\nimport { M_SPOnsorsV1 } from './M_Sponsors.model';\r\nimport { M_MediaFileV1 } from './M_MediaFile';\r\nimport { M_Team, M_VenueMin } from './M_Teams.model';\r\nimport { M_GoogleDriveFolders, M_StaffRolesV1 } from './M_Universal';\r\nimport { M_Product_V1 } from './M_Product.model';\r\n\r\nexport interface M_Tournament_V1 extends M_Tournament_Basic {\r\n //COLTournaments\r\n TOU_Id?: string;\r\n ORG_Id?: string;\r\n\r\n TOU_Tier: string;\r\n\r\n TOU_SponsorIdsAccepted?: string[];\r\n TOU_SponsorsIds: M_SPOnsorsV1[];\r\n\r\n TOU_Name: string;\r\n TOU_LogDescription?: string;\r\n TOU_ShortDescription?: string;\r\n\r\n TOU_Country: string;\r\n TOU_State: string;\r\n TOU_City: string;\r\n\r\n TOU_StartDate?: Date | string | any;\r\n TOU_EndDate?: Date | string | any;\r\n TOU_Sports?: string[];\r\n TOU_DateOptions?: Timestamp[] | Date[];\r\n TOU_Staff?: M_StaffRolesV1[];\r\n\r\n TOU_Route: string;\r\n\r\n TOU_LogoURL?: M_MediaFileV1;\r\n TOU_Banner?: M_MediaFileV1;\r\n\r\n TOU_Address?: string;\r\n TOU_ZipCode?: string;\r\n\r\n TOU_Type?: 'Tournament' | 'League' | 'Camp' | 'Showcase' | 'Other';\r\n TOU_Status?: 'Upcoming' | 'Live' | 'Completed';\r\n TOU_Gender?: 'Boys' | 'Girls' | 'Boys and Girls';\r\n TOU_RegistrationPage?: string;\r\n\r\n TOU_Venues?: M_VenueMin[];\r\n\r\n TOU_IsCoverByAstro?: boolean; //<-Para registrar poder registrar los prodcutos de astro en x proyecto.\r\n TOU_RegisteredProductsAstro?: M_Product_V1[];\r\n TOU_RegisteredProducts?: M_Product_V1[];\r\n TOU_RegisterTickets?: M_Product_V1[];\r\n TOU_GamesRegisterId?: string[];\r\n\r\n TOU_PriceMedia?: {\r\n video: number;\r\n image: number;\r\n };\r\n\r\n TOU_PriceMediaAstro?: {\r\n video: number;\r\n image: number;\r\n };\r\n\r\n TOU_GoogleDriveFolders?: M_GoogleDriveFolders[];\r\n TOU_AstroStatus?:\r\n | 'Open for request'\r\n | 'Scheduled for shoot'\r\n | 'Delivering/Posting'\r\n | 'Completed'\r\n | 'Cancel';\r\n\r\n TOU_VirtualTouTeams?: M_Team[]; //Indicates if the tournament allows virtual teams (teams that don't have a physical location)\r\n TOU_TeamsIDSportAssociation?: string[];\r\n TOU_TeamsIDSchoolProgram?: string[];\r\n TOU_SportAssociationIds?: string[];\r\n TOU_SchoolProgramIds?: string[];\r\n\r\n TOU_IsOfficialMediaCoverage?: boolean;\r\n //creative controls\r\n TOU_CanAllCreativesSellContent?: boolean;\r\n TOU_CreativeIdsCanSellContent?: string[];\r\n TOU_CreativeIdsCanUploadGalleryMedia?: string[];\r\n\r\n createdAt: Date | Timestamp;\r\n deleted: boolean;\r\n lastUpdate: Date | any;\r\n version?: 'v1';\r\n}\r\n\r\nexport interface M_TournamentMin_V1 {\r\n TOU_Id?: string;\r\n ORG_Id?: string;\r\n\r\n TOU_Tier: string;\r\n\r\n TOU_Name: string;\r\n TOU_ShortDescription?: string;\r\n\r\n TOU_Country: string;\r\n TOU_State: string;\r\n TOU_City: string;\r\n\r\n TOU_StartDate?: Date | string | any;\r\n TOU_EndDate?: Date | string | any;\r\n TOU_DateOptions?: Timestamp[] | Date[];\r\n TOU_Sports?: string[];\r\n\r\n TOU_Route: string;\r\n TOU_LogoURL?: M_MediaFileV1;\r\n\r\n TOU_Type?: 'Tournament' | 'League' | 'Camp' | 'Showcase' | 'Other';\r\n TOU_Status?: 'Upcoming' | 'Live' | 'Completed';\r\n TOU_Gender?: 'Boys' | 'Girls' | 'Boys and Girls';\r\n\r\n TOU_TeamsIDSportAssociation?: string[];\r\n TOU_TeamsIDSchoolProgram?: string[];\r\n TOU_SportAssociationIds?: string[];\r\n TOU_SchoolProgramIds?: string[];\r\n\r\n TOU_CanAllCreativesSellContent?: boolean;\r\n TOU_CreativeIdsCanSellContent?: string[];\r\n TOU_CreativeIdsCanUploadGalleryMedia?: string[];\r\n\r\n TOU_IsCoverByAstro?: boolean;\r\n TOU_AstroStatus?:\r\n | 'Open for request'\r\n | 'Scheduled for shoot'\r\n | 'Delivering/Posting'\r\n | 'Completed'\r\n | 'Cancel';\r\n}\r\n\r\ninterface M_Tournament_Basic {\r\n TOUB_TextSplash?: string;\r\n TOUB_CustomLinks?: { label: string; url: string }[];\r\n TOUB_SocialLinks?: { social: string; url: string }[];\r\n\r\n //TOUB_Questions?: BasicQuestion[];\r\n}\r\n\r\nexport const socialIcons = [\r\n { social: 'Instagram', url: 'assets/socials/Instagram.svg' },\r\n { social: 'Facebook', url: 'assets/socials/Facebook.svg' },\r\n { social: 'TikTok', url: 'assets/socials/TikTok.svg' },\r\n { social: 'YouTube', url: 'assets/socials/YouTube.svg' },\r\n { social: 'X', url: 'assets/socials/X.svg' },\r\n];\r\nexport interface M_SocialItem {\r\n social:\r\n | 'Instagram'\r\n | 'Facebook'\r\n | 'TikTok'\r\n | 'YouTube'\r\n | 'X'\r\n | 'Other'\r\n | string;\r\n url: string;\r\n}\r\nexport interface M_Socials {\r\n socials: M_SocialItem[];\r\n}\r\n","// ── Shared building blocks ──────────────────────────────────────────────────\n\nexport interface PurchaseMoneyV1 {\n amount: number;\n currency: string;\n}\n\nexport interface PurchasePaymentInfoV1 {\n id: string;\n /** Square payment status, e.g. \"COMPLETED\", \"PENDING\" */\n status: string;\n receiptNumber?: string | null;\n receiptUrl?: string | null;\n totalMoney: PurchaseMoneyV1;\n}\n\nexport interface PurchaseOrderInfoV1 {\n id: string;\n state?: string | null;\n totalMoney: PurchaseMoneyV1;\n}\n\n/** A single COLPurchases / COLOrganizationPurchases Firestore write record */\nexport interface PurchaseFirestoreRecordV1 {\n id: string;\n collection: string;\n productCount: number;\n amount: number;\n}\n\nexport interface PurchaseProductSummaryV1 {\n name: string;\n price: number;\n quantity: number;\n category?: string;\n subCategory?: string;\n optionalInputs?: Array<{ label: string; value: string }>;\n}\n\n/**\n * Product split between Astro-owned and organization/event-owned products.\n * Present only for tournamentPurchase and eventsPurchase.\n */\nexport interface PurchaseProductSplitV1 {\n /** Products registered under Astro's catalog */\n astroProducts: PurchaseProductSummaryV1[];\n /** Products registered under the organization or event catalog */\n counterpartProducts: PurchaseProductSummaryV1[];\n astroCount: number;\n counterpartCount: number;\n /** Indicates whose catalog the counterpart products belong to */\n counterpartLabel: 'organization' | 'event';\n}\n\n/** Individual media file authorized by this purchase */\nexport interface PurchaseMediaItemV1 {\n iipId: string;\n mediaType: 'image' | 'video';\n expectedPrice: number;\n}\n\n/**\n * Media authorization summary.\n * Present only for individualMediaPurchase.\n */\nexport interface PurchaseMediaInfoV1 {\n totalItems: number;\n /** UID that was granted access to the purchased files */\n authorizedUid?: string;\n /** Number of COLPurchasableFiles documents updated */\n authorizationUpdated: number;\n items: PurchaseMediaItemV1[];\n}\n\n/** Tournament or event context embedded in the response */\nexport interface PurchaseEntityContextV1 {\n TOU_Id?: string;\n TOU_Name?: string;\n ORG_Id?: string;\n E_Id?: string;\n E_Name?: string;\n}\n\n// ── Success response ─────────────────────────────────────────────────────────\n\nexport interface PurchaseSuccessResponseV1 {\n success: true;\n paymentId: string;\n orderId: string;\n /** COLPurchases document id — present for individualMediaPurchase */\n purchaseId?: string;\n environment: 'production' | 'sandbox';\n payment: PurchasePaymentInfoV1;\n /** Square order summary — present for tournamentPurchase and eventsPurchase */\n order?: PurchaseOrderInfoV1;\n /** Tournament or event that this purchase is associated with */\n entity: PurchaseEntityContextV1;\n /** Product split breakdown — present for tournamentPurchase and eventsPurchase */\n productSplit?: PurchaseProductSplitV1;\n /** Firestore write records — present for tournamentPurchase and eventsPurchase */\n firestoreRecords?: PurchaseFirestoreRecordV1[];\n /** True when the transaction created split purchase documents */\n splitPurchase?: true;\n /** Media authorization info — present for individualMediaPurchase */\n media?: PurchaseMediaInfoV1;\n totalProducts?: number;\n totalAmount: number;\n timestamp: string;\n}\n\n// ── Error response ────────────────────────────────────────────────────────────\n\nexport interface PurchaseErrorResponseV1 {\n success: false;\n /** Human-readable explanation of what went wrong */\n error: string;\n /** Field-level validation failures */\n validationErrors?: string[];\n /** Additional machine-readable detail */\n details?: unknown;\n}\n\n// ── Union ─────────────────────────────────────────────────────────────────────\n\nexport type PurchaseResponseV1 = PurchaseSuccessResponseV1 | PurchaseErrorResponseV1;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAGa,MAAA,SAAS,GAAG;AACvB,IAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE;AACzC,IAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;AAClC,IAAA,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;;;ACNvB,MAAA,iBAAiB,GAAG;IAC/B,UAAU;IACV,WAAW;IACX,GAAG;IACH,UAAU;IACV,QAAQ;IACR,SAAS;IACT,UAAU;IACV,OAAO;;AAEI,MAAA,MAAM,GAAG;IACpB,WAAW;IACX,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,cAAc;IACd,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|
|
36
36
|
TOU_CanAllCreativesSellContent?: boolean;
|
|
37
37
|
TOU_CreativeIdsCanSellContent?: string[];
|
|
38
|
+
TOU_CreativeIdsCanUploadGalleryMedia?: string[];
|
|
38
39
|
version: '1.1';
|
|
39
40
|
}
|
|
40
41
|
export interface M_DictionaryEventItem_V1_1 {
|
|
@@ -54,6 +55,7 @@ export interface M_DictionaryEventItem_V1_1 {
|
|
|
54
55
|
E_DateOptions?: Timestamp[] | Date[];
|
|
55
56
|
E_CanAllCreativesSellContent?: boolean;
|
|
56
57
|
E_CreativeIdsCanSellContent?: string[];
|
|
58
|
+
E_CreativeIdsCanUploadGalleryMedia?: string[];
|
|
57
59
|
createdAt?: any;
|
|
58
60
|
updatedAt?: any;
|
|
59
61
|
delete?: boolean;
|
package/lib/models/M_Events.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface M_Event_V5 {
|
|
|
44
44
|
E_GoogleDriveFolders?: M_GoogleDriveFolders[];
|
|
45
45
|
E_CanAllCreativesSellContent?: boolean;
|
|
46
46
|
E_CreativeIdsCanSellContent?: string[];
|
|
47
|
+
E_CreativeIdsCanUploadGalleryMedia?: string[];
|
|
47
48
|
createdAt?: any;
|
|
48
49
|
updatedAt?: any;
|
|
49
50
|
delete?: boolean;
|
|
@@ -67,6 +68,7 @@ export interface M_EventMini {
|
|
|
67
68
|
E_DateOptions?: Timestamp[] | Date[];
|
|
68
69
|
E_CanAllCreativesSellContent?: boolean;
|
|
69
70
|
E_CreativeIdsCanSellContent?: string[];
|
|
71
|
+
E_CreativeIdsCanUploadGalleryMedia?: string[];
|
|
70
72
|
createdAt?: any;
|
|
71
73
|
updatedAt?: any;
|
|
72
74
|
delete?: boolean;
|
|
@@ -65,7 +65,7 @@ interface M_UserProfile_V1 {
|
|
|
65
65
|
URP_DateOfBirth?: Timestamp | Date;
|
|
66
66
|
URP_TypeUserProfile?: 'TBD' | 'Videoghapher' | 'Photographer' | 'Editor' | 'Designer' | 'Creative';
|
|
67
67
|
URP_HighlightsGallery?: M_MediaFileV1[];
|
|
68
|
-
|
|
68
|
+
URP_MediaGallery?: M_MediaFileV1[];
|
|
69
69
|
URP_IntroVideoURL?: M_MediaFileV1;
|
|
70
70
|
URP_CreativeProgram?: string[];
|
|
71
71
|
URP_Specialty?: string;
|
|
@@ -54,6 +54,7 @@ export interface M_Tournament_V1 extends M_Tournament_Basic {
|
|
|
54
54
|
TOU_IsOfficialMediaCoverage?: boolean;
|
|
55
55
|
TOU_CanAllCreativesSellContent?: boolean;
|
|
56
56
|
TOU_CreativeIdsCanSellContent?: string[];
|
|
57
|
+
TOU_CreativeIdsCanUploadGalleryMedia?: string[];
|
|
57
58
|
createdAt: Date | Timestamp;
|
|
58
59
|
deleted: boolean;
|
|
59
60
|
lastUpdate: Date | any;
|
|
@@ -83,6 +84,7 @@ export interface M_TournamentMin_V1 {
|
|
|
83
84
|
TOU_SchoolProgramIds?: string[];
|
|
84
85
|
TOU_CanAllCreativesSellContent?: boolean;
|
|
85
86
|
TOU_CreativeIdsCanSellContent?: string[];
|
|
87
|
+
TOU_CreativeIdsCanUploadGalleryMedia?: string[];
|
|
86
88
|
TOU_IsCoverByAstro?: boolean;
|
|
87
89
|
TOU_AstroStatus?: 'Open for request' | 'Scheduled for shoot' | 'Delivering/Posting' | 'Completed' | 'Cancel';
|
|
88
90
|
}
|
package/package.json
CHANGED