@resellify/types 0.0.1 → 0.0.3

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,29 @@
1
+ export declare const AnalyticsEvent: {
2
+ Widget_Interaction_Captured: string;
3
+ Widget_Transaction_Captured: string;
4
+ First_Successful_Auth: string;
5
+ Profile_Completed: string;
6
+ Onboarding_Action_Selected: string;
7
+ Tour_Step_Viewed: string;
8
+ Tour_Completed: string;
9
+ Item_Add_Started: string;
10
+ Item_Image_Captured: string;
11
+ Item_Add_Cancelled: string;
12
+ Item_Saved: string;
13
+ Item_Viewed: string;
14
+ Item_Deleted: string;
15
+ Sell_Button_Tapped: string;
16
+ Listing_Started: string;
17
+ Listing_Item_Selected: string;
18
+ Listing_Step_Completed: string;
19
+ Listing_Validation_Error: string;
20
+ Listing_Created: string;
21
+ Listing_Success_Action: string;
22
+ Listing_Cancelled: string;
23
+ Listing_Removed: string;
24
+ Order_Shipped: string;
25
+ Order_Canceled: string;
26
+ Payout_Method_Switched: string;
27
+ Support_Tapped: string;
28
+ };
29
+ export type AnalyticsEvent = keyof typeof AnalyticsEvent;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- export interface User {
2
- id: string;
3
- email: string;
4
- name: string;
5
- }
6
- export type UserRole = 'admin' | 'user' | 'guest';
1
+ export * from './analytics/analytics';
2
+ export * from './user/user';
3
+ export * from './item/item';
@@ -0,0 +1,59 @@
1
+ export type ItemImport = {
2
+ itemName: string;
3
+ itemImagePublicURL: string;
4
+ itemDescription?: string;
5
+ purchaseLink?: string;
6
+ itemCategory?: string;
7
+ brand?: string;
8
+ price?: number;
9
+ size?: string;
10
+ colours?: string[];
11
+ season?: string;
12
+ occasion?: string[];
13
+ materials?: string[];
14
+ careDetails?: string[];
15
+ };
16
+ export type ItemCreate = ItemImport & {
17
+ itemId: string;
18
+ userId: string;
19
+ itemImages?: Record<string, unknown>[];
20
+ status?: string;
21
+ addedOn?: string;
22
+ shopifyData?: Record<string, unknown>;
23
+ shopifyPurchaseData?: Record<string, unknown>;
24
+ shopifyProductId?: string;
25
+ shopifyEmail?: string;
26
+ listingSoldMarketplace?: string;
27
+ merchantId: string;
28
+ };
29
+ export type Item = ItemCreate & {
30
+ itemImages?: Record<string, unknown>[];
31
+ itemListingImages?: Record<string, unknown>[];
32
+ comments?: string[];
33
+ availableForSell?: boolean;
34
+ soldOn?: string;
35
+ listingDescription?: string;
36
+ listingCondition?: string;
37
+ listingParcelSize?: ListingParcelSize;
38
+ listingPrice?: number;
39
+ listingStatus?: ListingStatus;
40
+ payoutMethod: string;
41
+ };
42
+ export declare const ListingParcelSize: {
43
+ readonly Small: "small";
44
+ readonly Medium: "medium";
45
+ readonly Large: "large";
46
+ readonly Undefined: "undefined";
47
+ };
48
+ export type ListingParcelSize = (typeof ListingParcelSize)[keyof typeof ListingParcelSize];
49
+ export declare const ListingStatus: {
50
+ readonly PendingApproval: "pendingApproval";
51
+ readonly Listed: "listed";
52
+ readonly AwaitingShipment: "awaitingShipment";
53
+ readonly Sold: "sold";
54
+ readonly Undefined: "undefined";
55
+ readonly Unlisted: "unlisted";
56
+ readonly Canceled: "canceled";
57
+ readonly Shipped: "shipped";
58
+ };
59
+ export type ListingStatus = (typeof ListingStatus)[keyof typeof ListingStatus];
@@ -0,0 +1,8 @@
1
+ export type User = {
2
+ id: string;
3
+ name: string;
4
+ email: string;
5
+ };
6
+ export type UserSignUp = {
7
+ email: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resellify/types",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Resellify types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",