@porulle/plugin-marketplace 0.10.3 → 0.10.5
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/schemas/commission.d.ts +2 -2
- package/dist/schemas/sub-orders.d.ts +4 -4
- package/dist/services/commission.d.ts +6 -6
- package/dist/services/contract-price.d.ts +4 -4
- package/dist/services/dispute.d.ts +4 -4
- package/dist/services/payout.d.ts +3 -3
- package/dist/services/return.d.ts +4 -4
- package/dist/services/review.d.ts +4 -4
- package/dist/services/rfq.d.ts +7 -7
- package/dist/services/vendor.d.ts +16 -16
- package/package.json +4 -4
|
@@ -2,8 +2,8 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
export declare const CreateCommissionRuleBodySchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
type: z.ZodEnum<{
|
|
5
|
-
vendor_tier: "vendor_tier";
|
|
6
5
|
category: "category";
|
|
6
|
+
vendor_tier: "vendor_tier";
|
|
7
7
|
volume_tier: "volume_tier";
|
|
8
8
|
promotional: "promotional";
|
|
9
9
|
}>;
|
|
@@ -29,8 +29,8 @@ export declare const createCommissionRuleRoute: {
|
|
|
29
29
|
schema: z.ZodObject<{
|
|
30
30
|
name: z.ZodString;
|
|
31
31
|
type: z.ZodEnum<{
|
|
32
|
-
vendor_tier: "vendor_tier";
|
|
33
32
|
category: "category";
|
|
33
|
+
vendor_tier: "vendor_tier";
|
|
34
34
|
volume_tier: "volume_tier";
|
|
35
35
|
promotional: "promotional";
|
|
36
36
|
}>;
|
|
@@ -2,11 +2,11 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
export declare const UpdateSubOrderStatusBodySchema: z.ZodObject<{
|
|
3
3
|
status: z.ZodEnum<{
|
|
4
4
|
pending: "pending";
|
|
5
|
-
confirmed: "confirmed";
|
|
6
5
|
processing: "processing";
|
|
6
|
+
cancelled: "cancelled";
|
|
7
|
+
confirmed: "confirmed";
|
|
7
8
|
shipped: "shipped";
|
|
8
9
|
delivered: "delivered";
|
|
9
|
-
cancelled: "cancelled";
|
|
10
10
|
}>;
|
|
11
11
|
reason: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strip>;
|
|
@@ -25,11 +25,11 @@ export declare const updateSubOrderStatusRoute: {
|
|
|
25
25
|
schema: z.ZodObject<{
|
|
26
26
|
status: z.ZodEnum<{
|
|
27
27
|
pending: "pending";
|
|
28
|
-
confirmed: "confirmed";
|
|
29
28
|
processing: "processing";
|
|
29
|
+
cancelled: "cancelled";
|
|
30
|
+
confirmed: "confirmed";
|
|
30
31
|
shipped: "shipped";
|
|
31
32
|
delivered: "delivered";
|
|
32
|
-
cancelled: "cancelled";
|
|
33
33
|
}>;
|
|
34
34
|
reason: z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, z.core.$strip>;
|
|
@@ -17,18 +17,18 @@ export declare class CommissionService {
|
|
|
17
17
|
priority?: number;
|
|
18
18
|
}): Promise<{
|
|
19
19
|
id: string;
|
|
20
|
+
name: string;
|
|
20
21
|
vendorId: string | null;
|
|
21
22
|
type: string;
|
|
22
|
-
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
priority: number;
|
|
25
|
+
validFrom: Date | null;
|
|
26
|
+
validUntil: Date | null;
|
|
27
|
+
rateBps: number;
|
|
23
28
|
categorySlug: string | null;
|
|
24
29
|
vendorTier: string | null;
|
|
25
30
|
minVolumeCents: number | null;
|
|
26
31
|
maxVolumeCents: number | null;
|
|
27
|
-
rateBps: number;
|
|
28
|
-
validFrom: Date | null;
|
|
29
|
-
validUntil: Date | null;
|
|
30
|
-
priority: number;
|
|
31
|
-
isActive: boolean;
|
|
32
32
|
} | undefined>;
|
|
33
33
|
updateRule(id: string, data: Record<string, unknown>): Promise<{
|
|
34
34
|
id: string;
|
|
@@ -14,16 +14,16 @@ export declare class ContractPriceService {
|
|
|
14
14
|
validUntil?: Date | undefined;
|
|
15
15
|
}): Promise<{
|
|
16
16
|
id: string;
|
|
17
|
-
vendorId: string;
|
|
18
17
|
createdAt: Date;
|
|
18
|
+
vendorId: string;
|
|
19
19
|
entityId: string;
|
|
20
|
+
variantId: string | null;
|
|
21
|
+
currency: string;
|
|
22
|
+
minQuantity: number;
|
|
20
23
|
validFrom: Date | null;
|
|
21
24
|
validUntil: Date | null;
|
|
22
25
|
buyerId: string;
|
|
23
|
-
currency: string;
|
|
24
|
-
variantId: string | null;
|
|
25
26
|
priceCents: number;
|
|
26
|
-
minQuantity: number;
|
|
27
27
|
} | undefined>;
|
|
28
28
|
update(id: string, data: Record<string, unknown>): Promise<{
|
|
29
29
|
id: string;
|
|
@@ -12,11 +12,13 @@ export declare class DisputeService {
|
|
|
12
12
|
id: string;
|
|
13
13
|
status: string;
|
|
14
14
|
description: string | null;
|
|
15
|
+
reason: string;
|
|
16
|
+
resolvedAt: Date | null;
|
|
17
|
+
resolvedBy: string | null;
|
|
18
|
+
resolutionNotes: string | null;
|
|
15
19
|
subOrderId: string;
|
|
16
20
|
openedBy: string;
|
|
17
|
-
reason: string;
|
|
18
21
|
resolution: string | null;
|
|
19
|
-
resolutionNotes: string | null;
|
|
20
22
|
refundAmountCents: number | null;
|
|
21
23
|
evidence: {
|
|
22
24
|
party: string;
|
|
@@ -25,10 +27,8 @@ export declare class DisputeService {
|
|
|
25
27
|
note?: string;
|
|
26
28
|
at: string;
|
|
27
29
|
}[] | null;
|
|
28
|
-
resolvedBy: string | null;
|
|
29
30
|
deadlineAt: Date | null;
|
|
30
31
|
openedAt: Date;
|
|
31
|
-
resolvedAt: Date | null;
|
|
32
32
|
} | undefined>;
|
|
33
33
|
getById(id: string): Promise<{
|
|
34
34
|
id: string;
|
|
@@ -12,14 +12,14 @@ export declare class PayoutService {
|
|
|
12
12
|
description?: string;
|
|
13
13
|
}): Promise<{
|
|
14
14
|
id: string;
|
|
15
|
-
vendorId: string;
|
|
16
15
|
createdAt: Date;
|
|
16
|
+
vendorId: string;
|
|
17
|
+
referenceId: string | null;
|
|
17
18
|
type: string;
|
|
18
19
|
description: string | null;
|
|
20
|
+
referenceType: string | null;
|
|
19
21
|
amountCents: number;
|
|
20
22
|
runningBalanceCents: number;
|
|
21
|
-
referenceType: string | null;
|
|
22
|
-
referenceId: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
getBalance(vendorId: string): Promise<number>;
|
|
25
25
|
getLedger(vendorId: string, limit?: number): Promise<{
|
|
@@ -16,18 +16,18 @@ export declare class ReturnService {
|
|
|
16
16
|
id: string;
|
|
17
17
|
status: string;
|
|
18
18
|
description: string | null;
|
|
19
|
+
reason: string;
|
|
20
|
+
customerId: string | null;
|
|
21
|
+
trackingNumber: string | null;
|
|
22
|
+
resolvedAt: Date | null;
|
|
19
23
|
lineItems: {
|
|
20
24
|
entityId: string;
|
|
21
25
|
quantity: number;
|
|
22
26
|
reason?: string;
|
|
23
27
|
}[] | null;
|
|
24
|
-
trackingNumber: string | null;
|
|
25
28
|
vendorNotes: string | null;
|
|
26
29
|
subOrderId: string;
|
|
27
|
-
reason: string;
|
|
28
30
|
refundAmountCents: number | null;
|
|
29
|
-
resolvedAt: Date | null;
|
|
30
|
-
customerId: string | null;
|
|
31
31
|
requestedAt: Date;
|
|
32
32
|
} | undefined>;
|
|
33
33
|
getById(id: string): Promise<{
|
|
@@ -12,14 +12,14 @@ export declare class ReviewService {
|
|
|
12
12
|
body?: string;
|
|
13
13
|
}): Promise<{
|
|
14
14
|
id: string;
|
|
15
|
+
createdAt: Date;
|
|
15
16
|
vendorId: string;
|
|
16
|
-
orderId: string | null;
|
|
17
17
|
status: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
rating: number;
|
|
20
|
-
customerId: string | null;
|
|
21
18
|
title: string | null;
|
|
19
|
+
customerId: string | null;
|
|
20
|
+
orderId: string | null;
|
|
22
21
|
body: string | null;
|
|
22
|
+
rating: number;
|
|
23
23
|
vendorResponse: string | null;
|
|
24
24
|
vendorRespondedAt: Date | null;
|
|
25
25
|
} | undefined>;
|
package/dist/services/rfq.d.ts
CHANGED
|
@@ -14,17 +14,17 @@ export declare class RFQService {
|
|
|
14
14
|
metadata?: Record<string, unknown>;
|
|
15
15
|
}): Promise<{
|
|
16
16
|
id: string;
|
|
17
|
-
status: string;
|
|
18
17
|
createdAt: Date;
|
|
19
|
-
description: string | null;
|
|
20
18
|
metadata: Record<string, unknown> | null;
|
|
19
|
+
status: string;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string | null;
|
|
22
|
+
quantity: number | null;
|
|
23
|
+
currency: string;
|
|
21
24
|
categorySlug: string | null;
|
|
22
25
|
deadlineAt: Date | null;
|
|
23
|
-
title: string;
|
|
24
26
|
buyerId: string | null;
|
|
25
|
-
quantity: number | null;
|
|
26
27
|
budgetCents: number | null;
|
|
27
|
-
currency: string;
|
|
28
28
|
awardedVendorId: string | null;
|
|
29
29
|
} | undefined>;
|
|
30
30
|
getById(id: string): Promise<{
|
|
@@ -68,14 +68,14 @@ export declare class RFQService {
|
|
|
68
68
|
notes?: string;
|
|
69
69
|
}): Promise<{
|
|
70
70
|
id: string;
|
|
71
|
+
createdAt: Date;
|
|
71
72
|
vendorId: string;
|
|
72
73
|
status: string;
|
|
73
|
-
|
|
74
|
+
notes: string | null;
|
|
74
75
|
rfqId: string;
|
|
75
76
|
unitPriceCents: number;
|
|
76
77
|
totalPriceCents: number;
|
|
77
78
|
leadTimeDays: number | null;
|
|
78
|
-
notes: string | null;
|
|
79
79
|
} | undefined>;
|
|
80
80
|
getResponses(rfqId: string): Promise<{
|
|
81
81
|
id: string;
|
|
@@ -11,14 +11,25 @@ export declare class VendorService {
|
|
|
11
11
|
metadata?: Record<string, unknown>;
|
|
12
12
|
}): Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
status: string;
|
|
15
|
-
createdAt: Date;
|
|
16
14
|
name: string;
|
|
17
|
-
organizationId: string;
|
|
18
|
-
slug: string | null;
|
|
19
15
|
email: string | null;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
slug: string | null;
|
|
19
|
+
metadata: Record<string, unknown> | null;
|
|
20
|
+
organizationId: string;
|
|
21
|
+
status: string;
|
|
20
22
|
description: string | null;
|
|
23
|
+
bankAccount: {
|
|
24
|
+
accountHolder?: string;
|
|
25
|
+
bankName?: string;
|
|
26
|
+
routingNumber?: string;
|
|
27
|
+
accountNumber?: string;
|
|
28
|
+
iban?: string;
|
|
29
|
+
swift?: string;
|
|
30
|
+
} | null;
|
|
21
31
|
logoUrl: string | null;
|
|
32
|
+
taxId: string | null;
|
|
22
33
|
bannerUrl: string | null;
|
|
23
34
|
contactPhone: string | null;
|
|
24
35
|
businessAddress: {
|
|
@@ -29,15 +40,6 @@ export declare class VendorService {
|
|
|
29
40
|
postalCode?: string;
|
|
30
41
|
country?: string;
|
|
31
42
|
} | null;
|
|
32
|
-
bankAccount: {
|
|
33
|
-
accountHolder?: string;
|
|
34
|
-
bankName?: string;
|
|
35
|
-
routingNumber?: string;
|
|
36
|
-
accountNumber?: string;
|
|
37
|
-
iban?: string;
|
|
38
|
-
swift?: string;
|
|
39
|
-
} | null;
|
|
40
|
-
taxId: string | null;
|
|
41
43
|
verificationStatus: string;
|
|
42
44
|
rejectionReason: string | null;
|
|
43
45
|
approvedCategories: string[] | null;
|
|
@@ -49,7 +51,6 @@ export declare class VendorService {
|
|
|
49
51
|
payoutSchedule: string;
|
|
50
52
|
payoutMinimumCents: number;
|
|
51
53
|
holdbackDays: number;
|
|
52
|
-
metadata: Record<string, unknown> | null;
|
|
53
54
|
storeConnectionProvider: string | null;
|
|
54
55
|
storeConnectionUrl: string | null;
|
|
55
56
|
storeAccessToken: string | null;
|
|
@@ -57,7 +58,6 @@ export declare class VendorService {
|
|
|
57
58
|
storeWebhookSecret: string | null;
|
|
58
59
|
lastSyncAt: Date | null;
|
|
59
60
|
syncStatus: string | null;
|
|
60
|
-
updatedAt: Date;
|
|
61
61
|
} | undefined>;
|
|
62
62
|
getById(id: string): Promise<{
|
|
63
63
|
id: string;
|
|
@@ -489,9 +489,9 @@ export declare class VendorService {
|
|
|
489
489
|
vendorId: string;
|
|
490
490
|
status: string;
|
|
491
491
|
type: string;
|
|
492
|
+
uploadedAt: Date;
|
|
492
493
|
fileUrl: string;
|
|
493
494
|
reviewerNotes: string | null;
|
|
494
|
-
uploadedAt: Date;
|
|
495
495
|
reviewedAt: Date | null;
|
|
496
496
|
} | undefined>;
|
|
497
497
|
listDocuments(vendorId: string): Promise<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porulle/plugin-marketplace",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@hono/zod-openapi": "^1.2.2",
|
|
22
22
|
"hono": "^4.12.5",
|
|
23
|
-
"@porulle/core": "0.10.
|
|
23
|
+
"@porulle/core": "0.10.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^24.5.2",
|
|
27
27
|
"eslint": "^9.39.1",
|
|
28
28
|
"typescript": "5.9.2",
|
|
29
29
|
"vitest": "^3.2.4",
|
|
30
|
-
"@porulle/
|
|
31
|
-
"@porulle/
|
|
30
|
+
"@porulle/typescript-config": "0.1.0",
|
|
31
|
+
"@porulle/eslint-config": "0.1.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|