@astro-sports-developers/models 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @astro/models
1
+ # @astro-sports-developers/models
2
2
 
3
3
  This package contains shared models for Astro projects.
4
4
 
@@ -17,11 +17,11 @@ The output will be in the `dist/models` directory.
17
17
  After publishing, install in your consuming project:
18
18
 
19
19
  ```
20
- npm install @astro/models
20
+ npm install @astro-sports-developers/models
21
21
  ```
22
22
 
23
23
  Then import the model:
24
24
 
25
25
  ```typescript
26
- import { M_CONTractor } from '@astro/models';
26
+ import { M_CONTractor } from '@astro-sports-developers/models';
27
27
  ```
@@ -0,0 +1,14 @@
1
+ import { Timestamp } from "firebase/firestore";
2
+ export interface M_MediaFileV1 {
3
+ MF_StorageURL: string;
4
+ MF_StoragePath: string;
5
+ MF_Type: 'image' | 'video';
6
+ MF_Size: number;
7
+ UR_Id?: string;
8
+ uid?: string;
9
+ G_Id?: string;
10
+ TOU_Id?: string;
11
+ ORG_Id?: string;
12
+ uidClient?: string;
13
+ timestamp?: Date | Timestamp;
14
+ }
@@ -0,0 +1,23 @@
1
+ import { M_MediaFileV1 } from "./M_MediaFile";
2
+ import { M_DocumentLog, M_StaffRolesV1 } from "./M_Universal";
3
+ export interface M_SPOnsorsV1 {
4
+ uid: string;
5
+ SPO_Id: string;
6
+ SPO_Name: string;
7
+ SPO_Category: string[];
8
+ SPO_City: string;
9
+ SPO_State: string;
10
+ SPO_ZipCode: string;
11
+ SPO_Address: string;
12
+ SPO_MasterAdminUid: string;
13
+ SPO_LogoBlackBackground: M_MediaFileV1;
14
+ SPO_LogoWhiteBackground: M_MediaFileV1;
15
+ SPO_Description?: string;
16
+ SPO_WebsiteURL?: string;
17
+ SPO_StaffRoles?: M_StaffRolesV1[];
18
+ version: 'V1';
19
+ log: M_DocumentLog[];
20
+ deleted: boolean;
21
+ createdAt: Date | any;
22
+ lastUpdate: Date | any;
23
+ }
@@ -0,0 +1,40 @@
1
+ import { M_MediaFileV1 } from './M_MediaFile';
2
+ import { M_SPOnsorsV1 } from './M_Sponsors.model';
3
+ import { M_DocumentLog, M_StaffRolesV1 } from './M_Universal';
4
+ export interface M_SportAssociationV1 {
5
+ ORG_Id?: string;
6
+ SA_Id?: string;
7
+ SA_Tier: 'T0' | 'T1';
8
+ SA_Name: string;
9
+ SA_MasterAdminUid: string;
10
+ SA_StaffRoles: M_StaffRolesV1[];
11
+ SA_State: string;
12
+ SA_City: string;
13
+ SA_OfficialSponsors?: M_SPOnsorsV1[];
14
+ SA_Description?: string;
15
+ SA_Address?: string;
16
+ SA_ZipCode?: string;
17
+ SA_TeamIds?: string[];
18
+ SA_LogoBlackBackground?: M_MediaFileV1;
19
+ SA_LogoWhiteBackground?: M_MediaFileV1;
20
+ SA_MediaGallery?: M_MediaFileV1[];
21
+ SA_MediaStorage?: number;
22
+ version: 'V1';
23
+ log: M_DocumentLog[];
24
+ deleted: boolean;
25
+ createdAt: Date | any;
26
+ lastUpdate: Date | any;
27
+ }
28
+ export interface M_SportAssociationV1Min {
29
+ ORG_Id?: string;
30
+ SA_Id?: string;
31
+ SA_Tier: 'T0' | 'T1';
32
+ SA_Name: string;
33
+ SA_State: string;
34
+ SA_City: string;
35
+ SA_TeamIds?: string[];
36
+ SA_LogoBlackBackground?: M_MediaFileV1;
37
+ SA_LogoWhiteBackground?: M_MediaFileV1;
38
+ SA_MediaStorage?: number;
39
+ version: 'V1';
40
+ }
@@ -0,0 +1,14 @@
1
+ import { Timestamp } from "firebase/firestore";
2
+ export interface M_DocumentLog {
3
+ uid?: string;
4
+ timestamp: Date | Timestamp;
5
+ DL_PropertyChanged: string;
6
+ DL_CurrentValue: any;
7
+ DL_ChangedValue: any;
8
+ }
9
+ export interface M_StaffRolesV1 {
10
+ uid: string;
11
+ email?: string;
12
+ role: 'Social Media' | 'Administrator' | 'Team Manager' | 'Coach';
13
+ version: 'V1';
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astro-sports-developers/models",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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
@@ -1,3 +1,7 @@
1
1
  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
+ export * from './lib/models/M_MediaFile';
5
+ export * from './lib/models/M_Sponsors.model';
6
+ export * from './lib/models/M_Teams.model';
7
+ export * from './lib/models/M_Universal';