@be-link/vitality-cli-nodejs 0.0.42 → 0.0.44

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,89 @@
1
+ import type { AdvisorActor } from '../../../../advisorProtection';
2
+ export type AdvisorAllowedAdjustmentType = {
3
+ value: string;
4
+ label: string;
5
+ };
6
+ export type AdvisorCapabilitiesRequest = {
7
+ orderIds: string[];
8
+ actor: AdvisorActor;
9
+ };
10
+ export type AdvisorCapability = {
11
+ orderId: string;
12
+ isAdjustable: boolean;
13
+ reason: string | null;
14
+ allowedAdjustmentTypes: AdvisorAllowedAdjustmentType[];
15
+ };
16
+ export type AdvisorAdjustmentListRequest = {
17
+ orderId: string;
18
+ actor: AdvisorActor;
19
+ };
20
+ export type AdvisorAdjustmentShareRequest = {
21
+ adjustmentOrderId: string;
22
+ actor: AdvisorActor;
23
+ };
24
+ export type AdvisorAdjustmentOperationsRequest = AdvisorAdjustmentShareRequest & {
25
+ cursor?: string;
26
+ pageSize?: number;
27
+ };
28
+ export type AdvisorRefundSummary = {
29
+ refundedFeeCent: number;
30
+ refundedQuantity: number;
31
+ hasPendingRefund: boolean;
32
+ hasRefunding: boolean;
33
+ };
34
+ export type AdvisorInternalAdjustment = {
35
+ adjustmentOrderId: string;
36
+ mainOrderId: string;
37
+ type: string;
38
+ typeLabel: string;
39
+ status: string;
40
+ unitFeeCent: number;
41
+ quantity: number;
42
+ feeCent: number;
43
+ description: string | null;
44
+ creatorName: string;
45
+ creatorType: number | null;
46
+ creatorId: string | null;
47
+ createdAt: number;
48
+ paidAt: number | null;
49
+ completedAt: number | null;
50
+ expiresAt: number | null;
51
+ canShare: boolean;
52
+ refundSummary: AdvisorRefundSummary;
53
+ };
54
+ export type AdvisorShareContext = {
55
+ mainOrderId: string;
56
+ adjustmentOrderId: string;
57
+ path: string;
58
+ title: string;
59
+ };
60
+ export type AdvisorInternalOperation = {
61
+ id: string;
62
+ action: string;
63
+ operatorType: number | null;
64
+ operatorId: string | null;
65
+ operatorName: string | null;
66
+ source: string;
67
+ beforeStatus: string | null;
68
+ afterStatus: string | null;
69
+ occurredAt: number;
70
+ summary: string;
71
+ };
72
+ export type AdvisorOperationPage = {
73
+ list: AdvisorInternalOperation[];
74
+ nextCursor: string | null;
75
+ hasMore: boolean;
76
+ };
77
+ export type AdvisorAdjustmentCreateRequest = {
78
+ orderId: string;
79
+ type: string;
80
+ unitFeeCent: number;
81
+ quantity: number;
82
+ description: string;
83
+ actor: AdvisorActor;
84
+ };
85
+ export type AdvisorAdjustmentCreateResponse = {
86
+ adjustmentOrderId: string;
87
+ status: 'NOT_PAID';
88
+ feeCent: number;
89
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/api/adjustment/advisor/type.ts"],"names":[],"mappings":""}