@astro-sports-developers/models 1.0.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/README.md +27 -0
- package/fesm2022/astro-sports-developers-models.mjs +4 -0
- package/fesm2022/astro-sports-developers-models.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/models/M_Contractor.model.d.ts +13 -0
- package/lib/models/M_PortalPayments.d.ts +25 -0
- package/lib/models/M_Product.model.d.ts +16 -0
- package/package.json +25 -0
- package/public-api.d.ts +3 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @astro/models
|
|
2
|
+
|
|
3
|
+
This package contains shared models for Astro projects.
|
|
4
|
+
|
|
5
|
+
## Build
|
|
6
|
+
|
|
7
|
+
To build the models library for npm publishing:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm run build models
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The output will be in the `dist/models` directory.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
After publishing, install in your consuming project:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npm install @astro/models
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then import the model:
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { M_CONTractor } from '@astro/models';
|
|
27
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astro-sports-developers-models.mjs","sources":["../../../projects/models/src/astro-sports-developers-models.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Timestamp } from "firebase/firestore";
|
|
2
|
+
export type M_CONTractor = {
|
|
3
|
+
uid: string;
|
|
4
|
+
CONT_Id: string;
|
|
5
|
+
CONT_Name: string;
|
|
6
|
+
CONT_Email: string;
|
|
7
|
+
CONT_Phone?: string;
|
|
8
|
+
CONT_ProfilePhotoURL?: string;
|
|
9
|
+
CONT_Skills?: ('Editor' | 'Videographer')[];
|
|
10
|
+
deleted?: boolean;
|
|
11
|
+
createdAt: Date | Timestamp;
|
|
12
|
+
lastUpdate: Date | Timestamp;
|
|
13
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface M_SchoolPortalPaymentPayload {
|
|
2
|
+
PR_Id: string;
|
|
3
|
+
PR_Price: number;
|
|
4
|
+
PR_Type: string;
|
|
5
|
+
PR_Category: string;
|
|
6
|
+
PR_SubCategory: string;
|
|
7
|
+
SP_Id: string;
|
|
8
|
+
uid: string;
|
|
9
|
+
email: string;
|
|
10
|
+
customerEmail: string;
|
|
11
|
+
customerPhone: string;
|
|
12
|
+
customerGivenName: string;
|
|
13
|
+
customerFamilyName: string;
|
|
14
|
+
customerAddress: string;
|
|
15
|
+
customerState: string;
|
|
16
|
+
customerCity: string;
|
|
17
|
+
tokenizedPaymentMethod: string;
|
|
18
|
+
SP_PortalType: string;
|
|
19
|
+
monthsPurchased: number;
|
|
20
|
+
note: string;
|
|
21
|
+
environment: string;
|
|
22
|
+
paymentSourceId: string;
|
|
23
|
+
idempotencyKey: string;
|
|
24
|
+
raw: any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Timestamp } from "firebase/firestore";
|
|
2
|
+
export interface M_Product_V1 {
|
|
3
|
+
PR_Id: string;
|
|
4
|
+
PR_Name: string;
|
|
5
|
+
PR_Description: string;
|
|
6
|
+
PR_Price: number;
|
|
7
|
+
PR_ImageUrl?: string;
|
|
8
|
+
PR_Category: string;
|
|
9
|
+
PR_SubCategory?: string;
|
|
10
|
+
PR_Type: 'portal' | 'booking' | 'event';
|
|
11
|
+
PR_Available: boolean;
|
|
12
|
+
createdAt: Date | Timestamp;
|
|
13
|
+
updatedAt: Date | Timestamp;
|
|
14
|
+
deleted: boolean;
|
|
15
|
+
version: 'V1';
|
|
16
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@astro-sports-developers/models",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Astro shared models library",
|
|
5
|
+
"main": "bundles/astro-models.umd.js",
|
|
6
|
+
"module": "fesm2022/astro-sports-developers-models.mjs",
|
|
7
|
+
"es2015": "fesm2015/astro-models.js",
|
|
8
|
+
"typings": "index.d.ts",
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"peerDependencies": {},
|
|
12
|
+
"exports": {
|
|
13
|
+
"./package.json": {
|
|
14
|
+
"default": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"default": "./fesm2022/astro-sports-developers-models.mjs"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"tslib": "^2.3.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/public-api.d.ts
ADDED