@astro-sports-developers/models 1.0.5 → 1.0.7
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 -27
- package/lib/models/M_MediaFile.d.ts +3 -0
- package/lib/models/M_Purchases.models.d.ts +39 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/README.md
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# @astro-sports-developers/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-sports-developers/models
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Then import the model:
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import { M_CONTractor } from '@astro-sports-developers/models';
|
|
27
|
-
```
|
|
1
|
+
# @astro-sports-developers/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-sports-developers/models
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then import the model:
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { M_CONTractor } from '@astro-sports-developers/models';
|
|
27
|
+
```
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Timestamp } from "firebase/firestore";
|
|
2
2
|
export interface M_MediaFileV1 {
|
|
3
|
+
MR_ID?: string;
|
|
4
|
+
MR_ThumbailPath?: string;
|
|
3
5
|
MF_StorageURL: string;
|
|
4
6
|
MF_StoragePath: string;
|
|
5
7
|
MF_Type: 'image' | 'video';
|
|
6
8
|
MF_Size: number;
|
|
9
|
+
MF_ThumbnailURL?: string;
|
|
7
10
|
UR_Id?: string;
|
|
8
11
|
uid?: string;
|
|
9
12
|
G_Id?: string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Timestamp } from 'firebase/firestore';
|
|
2
|
+
import { M_Product_V1 } from './M_Product.model';
|
|
3
|
+
export interface M_Purchase_V1 {
|
|
4
|
+
ORG_Id?: string;
|
|
5
|
+
ORG_Status_Purchases?: string;
|
|
6
|
+
PAccountMail?: string;
|
|
7
|
+
PAmount?: number;
|
|
8
|
+
PCategory?: string;
|
|
9
|
+
PDescription?: string;
|
|
10
|
+
PURSP_CustomerAddress?: string;
|
|
11
|
+
PURSP_CustomerCity?: string;
|
|
12
|
+
PURSP_CustomerEmail?: string;
|
|
13
|
+
PURSP_CustomerFamilyName?: string;
|
|
14
|
+
PURSP_CustomerGivenName?: string;
|
|
15
|
+
PURSP_CustomerPhone?: string;
|
|
16
|
+
PURSP_CustomerState?: string;
|
|
17
|
+
PURSP_Note?: string;
|
|
18
|
+
TOU_Id?: string;
|
|
19
|
+
TOU_Name?: string;
|
|
20
|
+
currency?: string;
|
|
21
|
+
environment?: string;
|
|
22
|
+
idempotencyKey?: string;
|
|
23
|
+
orderId?: string;
|
|
24
|
+
paymentId?: string;
|
|
25
|
+
paymentStatus?: string;
|
|
26
|
+
processedSuccessfully?: boolean;
|
|
27
|
+
productCount?: number;
|
|
28
|
+
productSource?: string;
|
|
29
|
+
products?: M_Product_V1[];
|
|
30
|
+
receiptNumber?: string;
|
|
31
|
+
receiptUrl?: string;
|
|
32
|
+
splitAmount?: number;
|
|
33
|
+
splitPurchase?: boolean;
|
|
34
|
+
targetDatabase?: string;
|
|
35
|
+
timestamp?: Date | Timestamp;
|
|
36
|
+
totalProductsInTransaction?: number;
|
|
37
|
+
totalQuantity?: number;
|
|
38
|
+
version?: 'V1';
|
|
39
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED