@isoftdata/svelte-ecommerce 1.0.0-beta.0 → 1.0.0-beta.1
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 +56 -58
- package/dist/EcommerceCategoryMapConfiguration.svelte +251 -266
- package/dist/EcommerceCategoryMapConfiguration.svelte.d.ts +6 -4
- package/dist/EcommerceConditionMapConfiguration.svelte +192 -214
- package/dist/EcommerceConditionMapConfiguration.svelte.d.ts +3 -3
- package/dist/EcommerceConfiguration.svelte +199 -195
- package/dist/EcommerceConfiguration.svelte.d.ts +16 -16
- package/dist/EcommerceDefaults.svelte +333 -357
- package/dist/EcommerceDefaults.svelte.d.ts +4 -4
- package/dist/EcommerceListingDetails.svelte +852 -986
- package/dist/EcommerceListingDetails.svelte.d.ts +10 -10
- package/dist/EcommercePartTypeConfig.svelte +277 -305
- package/dist/EcommercePartTypeConfig.svelte.d.ts +7 -8
- package/dist/EcommerceStoreConfiguration.svelte +248 -263
- package/dist/EcommerceStoreConfiguration.svelte.d.ts +5 -5
- package/dist/PolicyList.svelte +54 -66
- package/dist/PolicyList.svelte.d.ts +3 -3
- package/dist/data/ebay.d.ts +4 -4
- package/dist/data/htp.d.ts +3 -3
- package/dist/data/htp.js +1 -1
- package/dist/helpers/listing.js +22 -25
- package/dist/helpers/template.d.ts +2 -2
- package/dist/helpers/template.js +35 -37
- package/dist/helpers/validation.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/utils.d.ts +47 -61
- package/package.json +22 -6
package/dist/utils.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ export interface BuildEbayListingInput {
|
|
|
4
4
|
ecommercePartnerConfiguration: EcommercePartnerConfiguration;
|
|
5
5
|
existingListing?: InventoryListingDetail | NewInventoryListingDetail;
|
|
6
6
|
inventoryRow: InventoryRow;
|
|
7
|
-
inventoryTypeListingDefaults?: ExtendedInventoryTypeListingDefaults
|
|
7
|
+
inventoryTypeListingDefaults?: Array<ExtendedInventoryTypeListingDefaults>;
|
|
8
8
|
inventoryType?: InventoryType;
|
|
9
|
-
partFileList?: FileItem
|
|
9
|
+
partFileList?: Array<FileItem>;
|
|
10
10
|
}
|
|
11
11
|
export interface ConvertedEbayListingDetails {
|
|
12
|
-
imageUrls: ImageUrlsWithName
|
|
12
|
+
imageUrls: Array<ImageUrlsWithName>;
|
|
13
13
|
sku: string;
|
|
14
14
|
ebayInventoryItem: string;
|
|
15
15
|
listingDetails: string;
|
|
@@ -22,12 +22,12 @@ export type EbayCategory = {
|
|
|
22
22
|
export interface EbaySpecificListingDetails {
|
|
23
23
|
brand: string | null;
|
|
24
24
|
oemNumber: string | null;
|
|
25
|
-
listingFormat:
|
|
26
|
-
fulfillmentPolicy: string
|
|
25
|
+
listingFormat: 'FIXED_PRICE';
|
|
26
|
+
fulfillmentPolicy: Array<string> | null;
|
|
27
27
|
marketplaceId: string | null;
|
|
28
28
|
merchantLocationKey: string | null;
|
|
29
|
-
paymentPolicy: string
|
|
30
|
-
returnPolicy: string
|
|
29
|
+
paymentPolicy: Array<string> | null;
|
|
30
|
+
returnPolicy: Array<string> | null;
|
|
31
31
|
}
|
|
32
32
|
export type EbayLocation = {
|
|
33
33
|
storeId: number;
|
|
@@ -73,25 +73,25 @@ export type EcommercePartnerConfiguration = {
|
|
|
73
73
|
};
|
|
74
74
|
export type EcommercePartnerDefaults = {
|
|
75
75
|
global: EcommerceSharedDefaults;
|
|
76
|
-
store: EcommerceStoreConfig
|
|
76
|
+
store: Array<EcommerceStoreConfig>;
|
|
77
77
|
};
|
|
78
78
|
export type EcommerceSharedDefaults = {
|
|
79
79
|
brandMapping?: string;
|
|
80
80
|
conditionDescription?: string;
|
|
81
81
|
conditionId?: number;
|
|
82
|
-
fulfillmentPolicies?: string
|
|
82
|
+
fulfillmentPolicies?: Array<string>;
|
|
83
83
|
fulfillmentTimeUnit?: string;
|
|
84
84
|
fulfillmentTimeValue?: number;
|
|
85
85
|
listingDescriptionTemplate?: string;
|
|
86
86
|
listingDuration?: string;
|
|
87
|
-
listingFormat?:
|
|
87
|
+
listingFormat?: 'FIXED_PRICE';
|
|
88
88
|
listingTitleTemplate?: string;
|
|
89
89
|
manufacturerPartNumberMapping?: string;
|
|
90
90
|
oemNumberMapping?: string;
|
|
91
91
|
packageType?: string;
|
|
92
|
-
paymentPolicies?: string
|
|
92
|
+
paymentPolicies?: Array<string>;
|
|
93
93
|
pricingModifier?: number;
|
|
94
|
-
returnPolicies?: string
|
|
94
|
+
returnPolicies?: Array<string>;
|
|
95
95
|
shippingLengthUnit?: string;
|
|
96
96
|
shippingWeightUnit?: string;
|
|
97
97
|
storePickupAllowed?: boolean;
|
|
@@ -141,38 +141,38 @@ export interface ImageUrlsWithName {
|
|
|
141
141
|
url: string;
|
|
142
142
|
}
|
|
143
143
|
export type InventoryDetailsForTemplate = {
|
|
144
|
-
inventoryId?: number;
|
|
145
|
-
vehicleMake?: string;
|
|
146
|
-
vehicleModel?: string;
|
|
147
|
-
year?: number;
|
|
148
|
-
description?: string;
|
|
149
|
-
price?: number;
|
|
150
|
-
manufacturer?: string;
|
|
151
|
-
model?: string;
|
|
152
|
-
partType?: string;
|
|
153
|
-
category?: string;
|
|
154
|
-
store?: string;
|
|
155
|
-
productCode?: number;
|
|
156
|
-
tagNumber?: string;
|
|
157
|
-
condition?: string;
|
|
158
|
-
flexLabel1?: string;
|
|
159
|
-
flexLabel2?: string;
|
|
160
|
-
flexLabel3?: string;
|
|
161
|
-
flexLabel4?: string;
|
|
162
|
-
flexValue1?: string;
|
|
163
|
-
flexValue2?: string;
|
|
164
|
-
flexValue3?: string;
|
|
165
|
-
flexValue4?: string;
|
|
166
|
-
oemNumber?: string;
|
|
167
|
-
side?: string;
|
|
168
|
-
make?: string;
|
|
169
|
-
serialNumber?: string;
|
|
170
|
-
weight?: number;
|
|
171
|
-
upc?: string;
|
|
172
|
-
notes?: string;
|
|
173
|
-
quantity?: number;
|
|
174
|
-
partManufacturer?: string;
|
|
175
|
-
partModel?: string;
|
|
144
|
+
inventoryId?: number | null;
|
|
145
|
+
vehicleMake?: string | null;
|
|
146
|
+
vehicleModel?: string | null;
|
|
147
|
+
year?: number | null;
|
|
148
|
+
description?: string | null;
|
|
149
|
+
price?: number | null;
|
|
150
|
+
manufacturer?: string | null;
|
|
151
|
+
model?: string | null;
|
|
152
|
+
partType?: string | null;
|
|
153
|
+
category?: string | null;
|
|
154
|
+
store?: string | null;
|
|
155
|
+
productCode?: number | null;
|
|
156
|
+
tagNumber?: string | null;
|
|
157
|
+
condition?: string | null;
|
|
158
|
+
flexLabel1?: string | null;
|
|
159
|
+
flexLabel2?: string | null;
|
|
160
|
+
flexLabel3?: string | null;
|
|
161
|
+
flexLabel4?: string | null;
|
|
162
|
+
flexValue1?: string | null;
|
|
163
|
+
flexValue2?: string | null;
|
|
164
|
+
flexValue3?: string | null;
|
|
165
|
+
flexValue4?: string | null;
|
|
166
|
+
oemNumber?: string | null;
|
|
167
|
+
side?: string | null;
|
|
168
|
+
make?: string | null;
|
|
169
|
+
serialNumber?: string | null;
|
|
170
|
+
weight?: number | null;
|
|
171
|
+
upc?: string | null;
|
|
172
|
+
notes?: string | null;
|
|
173
|
+
quantity?: number | null;
|
|
174
|
+
partManufacturer?: string | null;
|
|
175
|
+
partModel?: string | null;
|
|
176
176
|
};
|
|
177
177
|
export interface InventoryListingDetail {
|
|
178
178
|
inventoryListingDetailId: number;
|
|
@@ -185,7 +185,7 @@ export interface InventoryListingDetail {
|
|
|
185
185
|
ecommerceConditionDescription: string | null;
|
|
186
186
|
fulfillmentTime: number | null;
|
|
187
187
|
fulfillmentTimeUnit: string | null;
|
|
188
|
-
imageUrls: ImageUrl
|
|
188
|
+
imageUrls: Array<ImageUrl>;
|
|
189
189
|
inventoryId: number;
|
|
190
190
|
inventoryDescription: string | null;
|
|
191
191
|
lastUpdate: string;
|
|
@@ -193,7 +193,7 @@ export interface InventoryListingDetail {
|
|
|
193
193
|
listingStatus: 'error' | 'listed' | 'pending' | 'cancelled';
|
|
194
194
|
listingTitle: string | null;
|
|
195
195
|
manufacturerPartNumber: string | null;
|
|
196
|
-
message: MessageObj
|
|
196
|
+
message: Array<MessageObj>;
|
|
197
197
|
price: number | null;
|
|
198
198
|
quantity: number | null;
|
|
199
199
|
sku: string | null;
|
|
@@ -263,8 +263,6 @@ export interface InventoryRow {
|
|
|
263
263
|
deplete: boolean;
|
|
264
264
|
isTaxable: boolean;
|
|
265
265
|
isWorldViewable: boolean;
|
|
266
|
-
tag: string;
|
|
267
|
-
isTagPerQuantity: string;
|
|
268
266
|
quantity: number | null;
|
|
269
267
|
minimumQuantity: number | null;
|
|
270
268
|
maximumQuantity: number | null;
|
|
@@ -284,21 +282,13 @@ export interface InventoryRow {
|
|
|
284
282
|
data4: string;
|
|
285
283
|
interchangeNumber: string;
|
|
286
284
|
interchangeOptionNotes: string | null;
|
|
287
|
-
enteredDate: Date | string;
|
|
288
|
-
lastModifiedDate: Date | string;
|
|
289
|
-
lastModifiedByUser: string | null;
|
|
290
|
-
enteredByUser: string;
|
|
291
285
|
partFirstYear: string | null;
|
|
292
286
|
partLastYear: string | null;
|
|
293
|
-
destination: string;
|
|
294
|
-
buildId: number | null;
|
|
295
287
|
vendorId: number | null;
|
|
296
|
-
saleClassCode: string | null;
|
|
297
|
-
searchKeywords: string | null;
|
|
298
288
|
}
|
|
299
289
|
export interface MessageObj {
|
|
300
290
|
type: string;
|
|
301
|
-
messages: unknown
|
|
291
|
+
messages: Array<unknown>;
|
|
302
292
|
}
|
|
303
293
|
export type NewEcommerceConditionMap = Omit<EcommerceConditionMap, 'ecommerceConditionMapId'>;
|
|
304
294
|
export type NewInventoryTypeListingDefaults = Omit<InventoryTypeListingDefaults, 'inventoryTypeListingConfigurationId'>;
|
|
@@ -310,10 +300,6 @@ export type NewConditionMappingState = {
|
|
|
310
300
|
ecommerceConditionId: number | null;
|
|
311
301
|
description: string | null;
|
|
312
302
|
};
|
|
313
|
-
export interface SelectedEbayCategoryMapRow extends ExtendedEbayCategoryMap {
|
|
314
|
-
originalIndex: number;
|
|
315
|
-
uuid: string;
|
|
316
|
-
}
|
|
317
303
|
export type Store = {
|
|
318
304
|
companyCode?: number;
|
|
319
305
|
storeId: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isoftdata/svelte-ecommerce",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"!dist/**/*.test.*",
|
|
@@ -21,18 +21,32 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"svelte": "^5.23.2"
|
|
23
23
|
},
|
|
24
|
+
"eslintConfig": {
|
|
25
|
+
"extends": "@isoftdata/base"
|
|
26
|
+
},
|
|
24
27
|
"devDependencies": {
|
|
28
|
+
"@eslint/compat": "^1.4.0",
|
|
29
|
+
"@eslint/js": "^9.36.0",
|
|
30
|
+
"@isoftdata/eslint-config-base": "^1.2.3",
|
|
25
31
|
"@isoftdata/prettier-config": "^2.0.4",
|
|
32
|
+
"@isoftdata/svelte-bootstrap-version-switcher": "^2.0.0",
|
|
26
33
|
"@sveltejs/adapter-auto": "^4.0.0",
|
|
27
34
|
"@sveltejs/kit": "^2.16.0",
|
|
28
35
|
"@sveltejs/package": "^2.0.0",
|
|
29
36
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
37
|
+
"@types/node": "^22",
|
|
38
|
+
"eslint": "^9.36.0",
|
|
39
|
+
"eslint-config-prettier": "^10.1.8",
|
|
40
|
+
"eslint-plugin-svelte": "^3.12.4",
|
|
41
|
+
"globals": "^16.4.0",
|
|
42
|
+
"i18next": "^25.6.0",
|
|
30
43
|
"prettier": "^3.6.2",
|
|
31
44
|
"prettier-plugin-svelte": "^3.4.0",
|
|
32
45
|
"publint": "^0.3.2",
|
|
33
46
|
"svelte": "^5.0.0",
|
|
34
47
|
"svelte-check": "^4.0.0",
|
|
35
48
|
"typescript": "^5.0.0",
|
|
49
|
+
"typescript-eslint": "^8.44.1",
|
|
36
50
|
"vite": "^6.0.0"
|
|
37
51
|
},
|
|
38
52
|
"keywords": [
|
|
@@ -40,7 +54,8 @@
|
|
|
40
54
|
],
|
|
41
55
|
"prettier": "@isoftdata/prettier-config",
|
|
42
56
|
"dependencies": {
|
|
43
|
-
"@isoftdata/svelte-attachments": "2.
|
|
57
|
+
"@isoftdata/svelte-attachments": "^2.3.0",
|
|
58
|
+
"@isoftdata/svelte-autocomplete": "^2.0.7",
|
|
44
59
|
"@isoftdata/svelte-button": "^2.1.1",
|
|
45
60
|
"@isoftdata/svelte-checkbox": "^2.5.0",
|
|
46
61
|
"@isoftdata/svelte-currency-input": "^2.0.1",
|
|
@@ -50,10 +65,9 @@
|
|
|
50
65
|
"@isoftdata/svelte-table": "^2.6.6",
|
|
51
66
|
"@isoftdata/svelte-textarea": "^2.1.0",
|
|
52
67
|
"@isoftdata/svelte-user-prompt": "^1.1.0",
|
|
53
|
-
"@isoftdata/utility-string": "^2.
|
|
68
|
+
"@isoftdata/utility-string": "^2.2.0",
|
|
54
69
|
"@lukeed/uuid": "2.0.1",
|
|
55
|
-
"
|
|
56
|
-
"klona": "^1.1.2",
|
|
70
|
+
"klona": "^2.0.6",
|
|
57
71
|
"svelte": "^5.23.2"
|
|
58
72
|
},
|
|
59
73
|
"scripts": {
|
|
@@ -61,6 +75,8 @@
|
|
|
61
75
|
"build": "vite build && npm run prepack",
|
|
62
76
|
"preview": "vite preview",
|
|
63
77
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
64
|
-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
|
78
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
79
|
+
"lint": "eslint . && prettier --check .",
|
|
80
|
+
"format": "prettier --write ."
|
|
65
81
|
}
|
|
66
82
|
}
|