@astro-sports-developers/models 1.0.9 → 1.0.13

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.
@@ -0,0 +1,57 @@
1
+ import { Timestamp } from "firebase/firestore";
2
+ import { M_MediaFileV1 } from "./M_MediaFile";
3
+ import { M_Product_V1 } from "./M_Product.model";
4
+ export interface M_Event_V2 {
5
+ E_ORG_Id?: string;
6
+ E_SP_Id?: string;
7
+ E_TOU_Id?: string;
8
+ E_Id?: string;
9
+ E_MasterAdminUid?: string;
10
+ E_UserCreated?: string;
11
+ E_Active: boolean;
12
+ E_EventName?: string;
13
+ E_Type: 'Tournament' | 'Media Day' | 'Camp' | 'League' | 'Other';
14
+ E_EventStatus?: string;
15
+ E_Address?: string;
16
+ E_City?: string;
17
+ E_Sports?: string[];
18
+ E_ReadyForPurchase?: boolean;
19
+ E_Description?: string;
20
+ E_RegistrationPage?: string;
21
+ E_DateOptions?: Timestamp[] | Date[];
22
+ E_GamesIds?: string[];
23
+ E_ImageUrl?: M_MediaFileV1;
24
+ E_LogoUrl?: M_MediaFileV1;
25
+ E_PurchaseOptions?: E_PurchaseOptions[];
26
+ E_CoverByAstro?: boolean;
27
+ E_AstroStatus?: string;
28
+ E_RegisteredProductsAstro?: M_Product_V1[];
29
+ E_RegisteredProducts?: M_Product_V1[];
30
+ createdAt?: any;
31
+ updatedAt?: any;
32
+ delete?: boolean;
33
+ version?: 'v2';
34
+ }
35
+ export interface M_EventMini {
36
+ E_Id?: string;
37
+ E_EventName?: string;
38
+ E_Type: 'Tournament' | 'Media Day' | 'Camp' | 'League' | 'Other';
39
+ E_EventStatus?: string;
40
+ E_ReadyForPurchase?: boolean;
41
+ E_Description?: string;
42
+ E_CoverByAstro?: boolean;
43
+ E_AstroStatus?: string;
44
+ E_ImageUrl?: M_MediaFileV1;
45
+ E_DateOptions?: Timestamp[] | Date[];
46
+ createdAt?: any;
47
+ updatedAt?: any;
48
+ delete?: boolean;
49
+ }
50
+ export interface E_PurchaseOptions {
51
+ GId: string;
52
+ GHomeTeam: string;
53
+ GAwayTeam: string;
54
+ GVenueId: string;
55
+ GCourt: string;
56
+ GSport: string;
57
+ }
@@ -0,0 +1,37 @@
1
+ import { Timestamp } from 'firebase/firestore';
2
+ import { M_Product_V1 } from './M_Product.model';
3
+ export interface M_PurchasePayload_V1 extends M_PartialPayloadEvent, M_PartialPayloadTorunament {
4
+ paymentSourceId: string;
5
+ idempotencyKey: string;
6
+ PAmount: number;
7
+ PAccountMail: string | null;
8
+ PCategory: string;
9
+ PDescription: string;
10
+ targetDatabase: 'production' | 'developer';
11
+ currency: 'USD';
12
+ ORG_Id?: string;
13
+ environment: string;
14
+ PURSP_CustomerPhone: string | null;
15
+ PURSP_CustomerEmail: string | null;
16
+ PURSP_CustomerGivenName: string | null;
17
+ PURSP_CustomerFamilyName: string | null;
18
+ PURSP_CustomerAddress: string | null;
19
+ PURSP_CustomerState: string | null;
20
+ PURSP_CustomerCity: string | null;
21
+ PURSP_Note?: string;
22
+ version?: 'v1';
23
+ }
24
+ export interface M_PartialPayloadEvent {
25
+ E_Id?: string;
26
+ E_Name?: string;
27
+ E_Type?: string;
28
+ SP_Id?: string;
29
+ PURSelectedDate?: Date | Timestamp;
30
+ products: M_Product_V1[];
31
+ }
32
+ export interface M_PartialPayloadTorunament {
33
+ TOU_Id?: string;
34
+ TOU_Name?: string;
35
+ TOU_Type?: string;
36
+ products: M_Product_V1[];
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astro-sports-developers/models",
3
- "version": "1.0.9",
3
+ "version": "1.0.13",
4
4
  "description": "Astro shared models library",
5
5
  "main": "bundles/astro-models.umd.js",
6
6
  "module": "fesm2022/astro-sports-developers-models.mjs",
package/public-api.d.ts CHANGED
@@ -2,7 +2,9 @@ export * from './lib/models/M_Contractor.model';
2
2
  export * from './lib/models/M_Product.model';
3
3
  export * from './lib/models/M_PortalPayments';
4
4
  export * from './lib/models/M_MediaFile';
5
+ export * from './lib/models/M_Events';
5
6
  export * from './lib/models/M_Sponsors.model';
6
7
  export * from './lib/models/M_Teams.model';
7
8
  export * from './lib/models/M_Universal';
8
9
  export * from './lib/models/M_Purchases.models';
10
+ export * from './lib/models/M_PurchasePayload';