rerobe-js-orm 3.4.8 → 3.5.0

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,156 +1,24 @@
1
- export namespace TRANSACTION_TYPES {
2
- const merchantCredit: string;
3
- const merchantDebit: string;
4
- const sellerCredit: string;
5
- const sellerDebit: string;
6
- const customerCredit: string;
7
- const customerDebit: string;
8
- }
9
- export namespace CUSTOMER_CREDIT_REASONS {
10
- const giftCard: string;
11
- const marketingPromotion: string;
12
- const partnershipCompensation: string;
13
- const employeeCompensation: string;
14
- const customerCompensation: string;
15
- const refund: string;
16
- }
17
- export namespace SellerProductLedgerStatusDescriptions {
18
- namespace PENDING_RETURN_PERIOD_COMPLETION {
19
- const label: string;
20
- const description: string;
21
- }
22
- namespace RETURNED_AND_RELISTED {
23
- const label_1: string;
24
- export { label_1 as label };
25
- const description_1: string;
26
- export { description_1 as description };
27
- }
28
- namespace SELLER_LIQUIDATED {
29
- const label_2: string;
30
- export { label_2 as label };
31
- const description_2: string;
32
- export { description_2 as description };
33
- }
34
- namespace MERCHANT_DONATED {
35
- const label_3: string;
36
- export { label_3 as label };
37
- const description_3: string;
38
- export { description_3 as description };
39
- }
40
- namespace SELLER_TO_BE_PAID {
41
- const label_4: string;
42
- export { label_4 as label };
43
- const description_4: string;
44
- export { description_4 as description };
45
- }
46
- namespace PAYMENT_IN_PROGRESS {
47
- const label_5: string;
48
- export { label_5 as label };
49
- const description_5: string;
50
- export { description_5 as description };
51
- }
52
- namespace SELLER_PAID {
53
- const label_6: string;
54
- export { label_6 as label };
55
- const description_6: string;
56
- export { description_6 as description };
57
- }
58
- namespace DISPUTED {
59
- const label_7: string;
60
- export { label_7 as label };
61
- const description_7: string;
62
- export { description_7 as description };
63
- }
64
- namespace RESOLVED {
65
- const label_8: string;
66
- export { label_8 as label };
67
- const description_8: string;
68
- export { description_8 as description };
69
- }
70
- namespace DIRECT_SALE_PENDING {
71
- const label_9: string;
72
- export { label_9 as label };
73
- const description_9: string;
74
- export { description_9 as description };
75
- }
76
- namespace DIRECT_SALE_COMPLETED {
77
- const label_10: string;
78
- export { label_10 as label };
79
- const description_10: string;
80
- export { description_10 as description };
81
- }
82
- }
83
- export namespace SellerProductLedgerActivityLogActionDescriptions {
84
- namespace STATUS_CHANGED_TO_PENDING_RETURN_PERIOD_COMPLETION {
85
- const label_11: string;
86
- export { label_11 as label };
87
- const description_11: string;
88
- export { description_11 as description };
89
- }
90
- namespace STATUS_CHANGED_TO_RETURNED_AND_RELISTED {
91
- const label_12: string;
92
- export { label_12 as label };
93
- const description_12: string;
94
- export { description_12 as description };
95
- }
96
- namespace STATUS_CHANGED_TO_SELLER_LIQUIDATED {
97
- const label_13: string;
98
- export { label_13 as label };
99
- const description_13: string;
100
- export { description_13 as description };
101
- }
102
- namespace STATUS_CHANGED_TO_MERCHANT_DONATED {
103
- const label_14: string;
104
- export { label_14 as label };
105
- const description_14: string;
106
- export { description_14 as description };
107
- }
108
- namespace STATUS_CHANGED_TO_SELLER_TO_BE_PAID {
109
- const label_15: string;
110
- export { label_15 as label };
111
- const description_15: string;
112
- export { description_15 as description };
113
- }
114
- namespace STATUS_CHANGED_TO_PAYMENT_IN_PROGRESS {
115
- const label_16: string;
116
- export { label_16 as label };
117
- const description_16: string;
118
- export { description_16 as description };
119
- }
120
- namespace STATUS_CHANGED_TO_SELLER_PAID {
121
- const label_17: string;
122
- export { label_17 as label };
123
- const description_17: string;
124
- export { description_17 as description };
125
- }
126
- namespace STATUS_CHANGED_TO_DISPUTED {
127
- const label_18: string;
128
- export { label_18 as label };
129
- const description_18: string;
130
- export { description_18 as description };
131
- }
132
- namespace STATUS_CHANGED_TO_RESOLVED {
133
- const label_19: string;
134
- export { label_19 as label };
135
- const description_19: string;
136
- export { description_19 as description };
137
- }
138
- namespace STATUS_CHANGED_TO_DIRECT_SALE_PENDING {
139
- const label_20: string;
140
- export { label_20 as label };
141
- const description_20: string;
142
- export { description_20 as description };
143
- }
144
- namespace STATUS_CHANGED_TO_DIRECT_SALE_COMPLETED {
145
- const label_21: string;
146
- export { label_21 as label };
147
- const description_21: string;
148
- export { description_21 as description };
149
- }
150
- namespace MERCHANT_ADJUSTMENT_MADE {
151
- const label_22: string;
152
- export { label_22 as label };
153
- const description_22: string;
154
- export { description_22 as description };
155
- }
156
- }
1
+ export declare const TRANSACTION_TYPES: {
2
+ merchantCredit: string;
3
+ merchantDebit: string;
4
+ sellerCredit: string;
5
+ sellerDebit: string;
6
+ customerCredit: string;
7
+ customerDebit: string;
8
+ };
9
+ export declare const CUSTOMER_CREDIT_REASONS: {
10
+ giftCard: string;
11
+ marketingPromotion: string;
12
+ partnershipCompensation: string;
13
+ employeeCompensation: string;
14
+ customerCompensation: string;
15
+ refund: string;
16
+ };
17
+ export declare const SellerProductLedgerStatusDescriptions: Record<SellerProductLedgerStatus, {
18
+ label: string;
19
+ description: string;
20
+ }>;
21
+ export declare const SellerProductLedgerActivityLogActionDescriptions: Record<SellerProductLedgerActivityLogAction, {
22
+ label: string;
23
+ description: string;
24
+ }>;
@@ -18,97 +18,97 @@ exports.CUSTOMER_CREDIT_REASONS = {
18
18
  refund: 'REFUND',
19
19
  };
20
20
  exports.SellerProductLedgerStatusDescriptions = {
21
- [SellerProductLedgerStatus.PENDING_RETURN_PERIOD_COMPLETION]: {
21
+ PENDING_RETURN_PERIOD_COMPLETION: {
22
22
  label: 'The sold product is in a return period; payment to the seller is pending its completion',
23
23
  description: 'This status is assigned when an item is sold but is still within the return or refund period. Payment to the seller is pending its completion.',
24
24
  },
25
- [SellerProductLedgerStatus.RETURNED_AND_RELISTED]: {
25
+ RETURNED_AND_RELISTED: {
26
26
  label: 'Item has been returned and is now listed again for sale.',
27
27
  description: 'Indicates the item was returned and has been relisted for sale. Customer was refunded and no payment will occur for seller.',
28
28
  },
29
- [SellerProductLedgerStatus.SELLER_LIQUIDATED]: {
29
+ SELLER_LIQUIDATED: {
30
30
  label: 'Item was returned and relisted but then seller decides to take item back.',
31
31
  description: 'Indicates the item was returned and has been relisted for sale, but seller takes it back, meaning inventory is no longer held by merchant and seller is not owed any money.',
32
32
  },
33
- [SellerProductLedgerStatus.MERCHANT_DONATED]: {
33
+ MERCHANT_DONATED: {
34
34
  label: 'Item was returned and relisted but merchant decides to donate item and seller does not want it back.',
35
35
  description: 'Indicates the item was returned and has been relisted for sale, but merchant no longer wants to sell it and seller does not want it back, meaning inventory is no longer held by merchant and seller is not owed any money.',
36
36
  },
37
- [SellerProductLedgerStatus.SELLER_TO_BE_PAID]: {
37
+ SELLER_TO_BE_PAID: {
38
38
  label: 'Item has cleared the returned period and the seller is now ready to be paid their share of the sale.',
39
39
  description: 'Once the return period has expired without a return or dispute, the merchant owes payment to the seller.',
40
40
  },
41
- [SellerProductLedgerStatus.PAYMENT_IN_PROGRESS]: {
41
+ PAYMENT_IN_PROGRESS: {
42
42
  label: 'Payment to the seller has been initiated and is currently being processed.',
43
43
  description: 'The merchant has initiated the payment and it is now on its way to the seller.',
44
44
  },
45
- [SellerProductLedgerStatus.SELLER_PAID]: {
45
+ SELLER_PAID: {
46
46
  label: 'Payment to the seller is complete.',
47
47
  description: 'This status indicates that payment has been disbursed to the seller.',
48
48
  },
49
- [SellerProductLedgerStatus.DISPUTED]: {
49
+ DISPUTED: {
50
50
  label: 'Transaction is under dispute.',
51
51
  description: 'A dispute has been raised concerning this transaction, possibly due to issues with the item, payment, or fulfillment. The dispute resolution process is in progress.',
52
52
  },
53
- [SellerProductLedgerStatus.RESOLVED]: {
53
+ RESOLVED: {
54
54
  label: 'Dispute has been resolved.',
55
55
  description: 'The dispute related to this transaction has been resolved. The outcome could result in a payment to the seller, a refund to the buyer, or another resolution.',
56
56
  },
57
- [SellerProductLedgerStatus.DIRECT_SALE_PENDING]: {
57
+ DIRECT_SALE_PENDING: {
58
58
  label: 'Direct sale transaction is pending.',
59
59
  description: 'This status is used for items sold directly by the platform, pending completion of the sale process. Payment processing or shipment may still be in progress.',
60
60
  },
61
- [SellerProductLedgerStatus.DIRECT_SALE_COMPLETED]: {
61
+ DIRECT_SALE_COMPLETED: {
62
62
  label: 'Direct sale transaction is completed.',
63
63
  description: 'Indicates that a direct sale transaction has been completed successfully. The item has been sold, shipped, and no return is expected. Payment has been processed accordingly.',
64
64
  },
65
65
  };
66
66
  exports.SellerProductLedgerActivityLogActionDescriptions = {
67
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_PENDING_RETURN_PERIOD_COMPLETION]: {
67
+ STATUS_CHANGED_TO_PENDING_RETURN_PERIOD_COMPLETION: {
68
68
  label: 'Pending Return Period Completion',
69
69
  description: 'The item has been sold, and the transaction is now in the return period. Payment to the seller is pending the completion of this period.',
70
70
  },
71
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_RETURNED_AND_RELISTED]: {
71
+ STATUS_CHANGED_TO_RETURNED_AND_RELISTED: {
72
72
  label: 'Returned and Relisted',
73
73
  description: 'The sold item has been returned and is now relisted for sale. The transaction has been reverted, and no payment is processed to the seller.',
74
74
  },
75
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_SELLER_LIQUIDATED]: {
75
+ STATUS_CHANGED_TO_SELLER_LIQUIDATED: {
76
76
  label: 'Seller liquidated',
77
77
  description: 'The sold item was returned and relisted for sale, but seller decided to take it back',
78
78
  },
79
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_MERCHANT_DONATED]: {
79
+ STATUS_CHANGED_TO_MERCHANT_DONATED: {
80
80
  label: 'Merchant Donated',
81
81
  description: "The sold item was returned and relisted for sale, but merchant decided to donate it and seller didn't want to take it back",
82
82
  },
83
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_SELLER_TO_BE_PAID]: {
83
+ STATUS_CHANGED_TO_SELLER_TO_BE_PAID: {
84
84
  label: 'Seller to be Paid',
85
85
  description: 'The return period has completed without a return, and the seller is now due to be paid for the sale.',
86
86
  },
87
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_PAYMENT_IN_PROGRESS]: {
87
+ STATUS_CHANGED_TO_PAYMENT_IN_PROGRESS: {
88
88
  label: 'Payment in Progress',
89
89
  description: 'Payment to the seller has been initiated and is currently being processed.',
90
90
  },
91
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_SELLER_PAID]: {
91
+ STATUS_CHANGED_TO_SELLER_PAID: {
92
92
  label: 'Seller Paid',
93
93
  description: 'The seller has been paid, completing the transaction for the sold item.',
94
94
  },
95
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_DISPUTED]: {
95
+ STATUS_CHANGED_TO_DISPUTED: {
96
96
  label: 'Disputed',
97
97
  description: 'A dispute has been raised concerning the transaction. The dispute process is underway to resolve the issue.',
98
98
  },
99
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_RESOLVED]: {
99
+ STATUS_CHANGED_TO_RESOLVED: {
100
100
  label: 'Resolved',
101
101
  description: 'The dispute or issue affecting the transaction has been resolved.',
102
102
  },
103
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_DIRECT_SALE_PENDING]: {
103
+ STATUS_CHANGED_TO_DIRECT_SALE_PENDING: {
104
104
  label: 'Direct Sale Pending',
105
105
  description: 'A direct sale transaction is pending completion. This status is used for items sold directly by the platform.',
106
106
  },
107
- [SellerProductLedgerActivityLogAction.STATUS_CHANGED_TO_DIRECT_SALE_COMPLETED]: {
107
+ STATUS_CHANGED_TO_DIRECT_SALE_COMPLETED: {
108
108
  label: 'Direct Sale Completed',
109
109
  description: 'A direct sale transaction has been completed successfully.',
110
110
  },
111
- [SellerProductLedgerActivityLogAction.MERCHANT_ADJUSTMENT_MADE]: {
111
+ MERCHANT_ADJUSTMENT_MADE: {
112
112
  label: 'Merchant Adjustment Made',
113
113
  description: 'An adjustment (e.g., payment adjustment) has been made by the merchant.',
114
114
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.4.8",
3
+ "version": "3.5.0",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",