@resellify/types 0.0.3 → 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.
- package/dist/analytics/analytics.js +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -0
- package/dist/item/item.d.ts +6 -4
- package/dist/item/item.js +54 -0
- package/dist/merchant/merchant.d.ts +7 -0
- package/dist/merchant/merchant.js +2 -0
- package/dist/user/settings.d.ts +3 -0
- package/dist/user/settings.js +2 -0
- package/dist/user/user.js +2 -0
- package/package.json +1 -1
|
@@ -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
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);
|
package/dist/item/item.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ItemMerchantData } from "../merchant/merchant";
|
|
1
2
|
export type ItemImport = {
|
|
2
3
|
itemName: string;
|
|
3
4
|
itemImagePublicURL: string;
|
|
@@ -16,15 +17,16 @@ export type ItemImport = {
|
|
|
16
17
|
export type ItemCreate = ItemImport & {
|
|
17
18
|
itemId: string;
|
|
18
19
|
userId: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
merchantId: string;
|
|
21
|
+
addedOn: string;
|
|
22
|
+
itemImages: Record<string, unknown>[];
|
|
23
|
+
status: string;
|
|
24
|
+
merchantData: ItemMerchantData;
|
|
22
25
|
shopifyData?: Record<string, unknown>;
|
|
23
26
|
shopifyPurchaseData?: Record<string, unknown>;
|
|
24
27
|
shopifyProductId?: string;
|
|
25
28
|
shopifyEmail?: string;
|
|
26
29
|
listingSoldMarketplace?: string;
|
|
27
|
-
merchantId: string;
|
|
28
30
|
};
|
|
29
31
|
export type Item = ItemCreate & {
|
|
30
32
|
itemImages?: Record<string, unknown>[];
|
|
@@ -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
|
+
// };
|