@resellify/types 0.0.2 → 0.0.4

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.
@@ -1,28 +1,29 @@
1
- export type AnalyticsEvent = {
2
- Widget_Interaction_Captured: "Widget_Interaction_Captured";
3
- Widget_Transaction_Captured: "Widget_Transaction_Captured";
4
- First_Successful_Auth: "First_Successful_Auth";
5
- Profile_Completed: "Profile_Completed";
6
- Onboarding_Action_Selected: "Onboarding_Action_Selected";
7
- Tour_Step_Viewed: "Tour_Step_Viewed";
8
- Tour_Completed: "Tour_Completed";
9
- Item_Add_Started: "Item_Add_Started";
10
- Item_Image_Captured: "Item_Image_Captured";
11
- Item_Add_Cancelled: "Item_Add_Cancelled";
12
- Item_Saved: "Item_Saved";
13
- Item_Viewed: "Item_Viewed";
14
- Item_Deleted: "Item_Deleted";
15
- Sell_Button_Tapped: "Sell_Button_Tapped";
16
- Listing_Started: "Listing_Started";
17
- Listing_Item_Selected: "Listing_Item_Selected";
18
- Listing_Step_Completed: "Listing_Step_Completed";
19
- Listing_Validation_Error: "Listing_Validation_Error";
20
- Listing_Created: "Listing_Created";
21
- Listing_Success_Action: "Listing_Success_Action";
22
- Listing_Cancelled: "Listing_Cancelled";
23
- Listing_Removed: "Listing_Removed";
24
- Order_Shipped: "Order_Shipped";
25
- Order_Canceled: "Order_Canceled";
26
- Payout_Method_Switched: "Payout_Method_Switched";
27
- Support_Tapped: "Support_Tapped";
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
28
  };
29
+ export type AnalyticsEvent = keyof typeof AnalyticsEvent;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnalyticsEvent = void 0;
4
+ exports.AnalyticsEvent = {
5
+ Widget_Interaction_Captured: "Widget_Interaction_Captured",
6
+ Widget_Transaction_Captured: "Widget_Transaction_Captured",
7
+ First_Successful_Auth: "First_Successful_Auth",
8
+ Profile_Completed: "Profile_Completed",
9
+ Onboarding_Action_Selected: "Onboarding_Action_Selected",
10
+ Tour_Step_Viewed: "Tour_Step_Viewed",
11
+ Tour_Completed: "Tour_Completed",
12
+ Item_Add_Started: "Item_Add_Started",
13
+ Item_Image_Captured: "Item_Image_Captured",
14
+ Item_Add_Cancelled: "Item_Add_Cancelled",
15
+ Item_Saved: "Item_Saved",
16
+ Item_Viewed: "Item_Viewed",
17
+ Item_Deleted: "Item_Deleted",
18
+ Sell_Button_Tapped: "Sell_Button_Tapped",
19
+ Listing_Started: "Listing_Started",
20
+ Listing_Item_Selected: "Listing_Item_Selected",
21
+ Listing_Step_Completed: "Listing_Step_Completed",
22
+ Listing_Validation_Error: "Listing_Validation_Error",
23
+ Listing_Created: "Listing_Created",
24
+ Listing_Success_Action: "Listing_Success_Action",
25
+ Listing_Cancelled: "Listing_Cancelled",
26
+ Listing_Removed: "Listing_Removed",
27
+ Order_Shipped: "Order_Shipped",
28
+ Order_Canceled: "Order_Canceled",
29
+ Payout_Method_Switched: "Payout_Method_Switched",
30
+ Support_Tapped: "Support_Tapped",
31
+ };
package/dist/index.d.ts CHANGED
@@ -1 +1,4 @@
1
1
  export * from './analytics/analytics';
2
+ export * from './user/user';
3
+ export * from './item/item';
4
+ export * from './merchant/merchant';
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./analytics/analytics"), exports);
18
+ __exportStar(require("./user/user"), exports);
19
+ __exportStar(require("./item/item"), exports);
20
+ __exportStar(require("./merchant/merchant"), exports);
@@ -0,0 +1,61 @@
1
+ import { ItemMerchantData } from "../merchant/merchant";
2
+ export type ItemImport = {
3
+ itemName: string;
4
+ itemImagePublicURL: string;
5
+ itemDescription?: string;
6
+ purchaseLink?: string;
7
+ itemCategory?: string;
8
+ brand?: string;
9
+ price?: number;
10
+ size?: string;
11
+ colours?: string[];
12
+ season?: string;
13
+ occasion?: string[];
14
+ materials?: string[];
15
+ careDetails?: string[];
16
+ };
17
+ export type ItemCreate = ItemImport & {
18
+ itemId: string;
19
+ userId: string;
20
+ merchantId: string;
21
+ addedOn: string;
22
+ itemImages: Record<string, unknown>[];
23
+ status: string;
24
+ merchantData: ItemMerchantData;
25
+ shopifyData?: Record<string, unknown>;
26
+ shopifyPurchaseData?: Record<string, unknown>;
27
+ shopifyProductId?: string;
28
+ shopifyEmail?: string;
29
+ listingSoldMarketplace?: string;
30
+ };
31
+ export type Item = ItemCreate & {
32
+ itemImages?: Record<string, unknown>[];
33
+ itemListingImages?: Record<string, unknown>[];
34
+ comments?: string[];
35
+ availableForSell?: boolean;
36
+ soldOn?: string;
37
+ listingDescription?: string;
38
+ listingCondition?: string;
39
+ listingParcelSize?: ListingParcelSize;
40
+ listingPrice?: number;
41
+ listingStatus?: ListingStatus;
42
+ payoutMethod: string;
43
+ };
44
+ export declare const ListingParcelSize: {
45
+ readonly Small: "small";
46
+ readonly Medium: "medium";
47
+ readonly Large: "large";
48
+ readonly Undefined: "undefined";
49
+ };
50
+ export type ListingParcelSize = (typeof ListingParcelSize)[keyof typeof ListingParcelSize];
51
+ export declare const ListingStatus: {
52
+ readonly PendingApproval: "pendingApproval";
53
+ readonly Listed: "listed";
54
+ readonly AwaitingShipment: "awaitingShipment";
55
+ readonly Sold: "sold";
56
+ readonly Undefined: "undefined";
57
+ readonly Unlisted: "unlisted";
58
+ readonly Canceled: "canceled";
59
+ readonly Shipped: "shipped";
60
+ };
61
+ export type ListingStatus = (typeof ListingStatus)[keyof typeof ListingStatus];
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListingStatus = exports.ListingParcelSize = void 0;
4
+ exports.ListingParcelSize = {
5
+ Small: 'small',
6
+ Medium: 'medium',
7
+ Large: 'large',
8
+ Undefined: 'undefined',
9
+ };
10
+ exports.ListingStatus = {
11
+ PendingApproval: 'pendingApproval',
12
+ Listed: 'listed',
13
+ AwaitingShipment: 'awaitingShipment',
14
+ Sold: 'sold',
15
+ Undefined: 'undefined',
16
+ Unlisted: 'unlisted',
17
+ Canceled: 'canceled',
18
+ Shipped: 'shipped',
19
+ };
20
+ // export type Item = ItemCreate & {
21
+ // itemId: string;
22
+ // userId: string;
23
+ // itemName?: string;
24
+ // itemImages?: Record<string, unknown>[];
25
+ // itemListingImages?: Record<string, unknown>[];
26
+ // itemDescription?: string;
27
+ // purchaseLink?: string;
28
+ // itemCategory?: string;
29
+ // brand?: string;
30
+ // price?: number;
31
+ // size?: string;
32
+ // colours?: string[];
33
+ // season?: string;
34
+ // occasion?: string[];
35
+ // materials?: string[];
36
+ // careDetails?: string[];
37
+ // comments?: string[];
38
+ // status?: string;
39
+ // availableForSell?: boolean;
40
+ // addedOn?: string;
41
+ // soldOn?: string;
42
+ // listingDescription?: string;
43
+ // listingCondition?: string;
44
+ // listingParcelSize?: ListingParcelSize;
45
+ // listingPrice?: number;
46
+ // listingStatus?: ListingStatus;
47
+ // shopifyData?: Record<string, unknown>;
48
+ // shopifyPurchaseData?: Record<string, unknown>;
49
+ // shopifyProductId?: string;
50
+ // shopifyEmail?: string;
51
+ // listingSoldMarketplace?: string;
52
+ // merchantId: string;
53
+ // payoutMethod: string;
54
+ // };
@@ -0,0 +1,7 @@
1
+ export type MerchantImport = {
2
+ id: string;
3
+ name: string;
4
+ };
5
+ export type ItemMerchantData = {
6
+ name: string;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type UserSettings = {
2
+ email: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resellify/types",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Resellify types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",