@xclade/types 1.0.1 → 1.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/index.d.ts +1392 -809
- package/dist/index.js +56 -40
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.ShippingOptionPriceType = exports.ReviewStatus = exports.ReturnStatus = exports.PromotionType = exports.PromotionStatus = exports.PromotionRuleOperator = exports.ProductStatus = exports.ProductCategoryImageType = exports.PaymentSessionStatus = exports.PaymentCollectionStatus = exports.OrderStatus = exports.GeoZoneType = exports.
|
|
3
|
+
exports.SortOrder = exports.ShippingOptionPriceType = exports.ReviewStatus = exports.ReturnStatus = exports.QuoteStatus = exports.PromotionType = exports.PromotionStatus = exports.PromotionRuleOperator = exports.ProductStatus = exports.ProductCategoryImageType = exports.PriceListType = exports.PriceListStatus = exports.PaymentSessionStatus = exports.PaymentCollectionStatus = exports.OrderStatus = exports.GeoZoneType = exports.CompanyStatus = exports.CompanySpendingLimitResetFrequency = exports.ClaimType = exports.ClaimReason = exports.CampaignBudgetType = exports.ApprovalType = exports.ApprovalStatusType = exports.ApplicationMethodType = exports.ApplicationMethodTargetType = exports.ApplicationMethodAllocation = exports.ActorType = void 0;
|
|
4
|
+
var ActorType;
|
|
5
|
+
(function (ActorType) {
|
|
6
|
+
ActorType["Customer"] = "customer";
|
|
7
|
+
ActorType["User"] = "user";
|
|
8
|
+
})(ActorType || (exports.ActorType = ActorType = {}));
|
|
4
9
|
var ApplicationMethodAllocation;
|
|
5
10
|
(function (ApplicationMethodAllocation) {
|
|
6
11
|
ApplicationMethodAllocation["Across"] = "across";
|
|
7
12
|
ApplicationMethodAllocation["Each"] = "each";
|
|
8
|
-
ApplicationMethodAllocation["Once"] = "once";
|
|
9
13
|
})(ApplicationMethodAllocation || (exports.ApplicationMethodAllocation = ApplicationMethodAllocation = {}));
|
|
10
14
|
var ApplicationMethodTargetType;
|
|
11
15
|
(function (ApplicationMethodTargetType) {
|
|
@@ -18,47 +22,36 @@ var ApplicationMethodType;
|
|
|
18
22
|
ApplicationMethodType["Fixed"] = "fixed";
|
|
19
23
|
ApplicationMethodType["Percentage"] = "percentage";
|
|
20
24
|
})(ApplicationMethodType || (exports.ApplicationMethodType = ApplicationMethodType = {}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})(ApprovalStatusEnum || (exports.ApprovalStatusEnum = ApprovalStatusEnum = {}));
|
|
28
|
-
/** Approval Status Status Enum */
|
|
29
|
-
var ApprovalStatusStatus;
|
|
30
|
-
(function (ApprovalStatusStatus) {
|
|
31
|
-
ApprovalStatusStatus["Approved"] = "approved";
|
|
32
|
-
ApprovalStatusStatus["Pending"] = "pending";
|
|
33
|
-
})(ApprovalStatusStatus || (exports.ApprovalStatusStatus = ApprovalStatusStatus = {}));
|
|
34
|
-
/** Approval Type Enum */
|
|
25
|
+
var ApprovalStatusType;
|
|
26
|
+
(function (ApprovalStatusType) {
|
|
27
|
+
ApprovalStatusType["Approved"] = "approved";
|
|
28
|
+
ApprovalStatusType["Pending"] = "pending";
|
|
29
|
+
ApprovalStatusType["Rejected"] = "rejected";
|
|
30
|
+
})(ApprovalStatusType || (exports.ApprovalStatusType = ApprovalStatusType = {}));
|
|
35
31
|
var ApprovalType;
|
|
36
32
|
(function (ApprovalType) {
|
|
37
33
|
ApprovalType["Admin"] = "admin";
|
|
38
34
|
ApprovalType["SalesManager"] = "sales_manager";
|
|
39
35
|
})(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
|
|
40
|
-
var B2BApprovalStatus;
|
|
41
|
-
(function (B2BApprovalStatus) {
|
|
42
|
-
B2BApprovalStatus["Approved"] = "APPROVED";
|
|
43
|
-
B2BApprovalStatus["Pending"] = "PENDING";
|
|
44
|
-
B2BApprovalStatus["Rejected"] = "REJECTED";
|
|
45
|
-
})(B2BApprovalStatus || (exports.B2BApprovalStatus = B2BApprovalStatus = {}));
|
|
46
|
-
var B2BApprovalType;
|
|
47
|
-
(function (B2BApprovalType) {
|
|
48
|
-
B2BApprovalType["Cart"] = "CART";
|
|
49
|
-
B2BApprovalType["Order"] = "ORDER";
|
|
50
|
-
})(B2BApprovalType || (exports.B2BApprovalType = B2BApprovalType = {}));
|
|
51
|
-
var B2BCompanyStatus;
|
|
52
|
-
(function (B2BCompanyStatus) {
|
|
53
|
-
B2BCompanyStatus["Approved"] = "approved";
|
|
54
|
-
B2BCompanyStatus["Pending"] = "pending";
|
|
55
|
-
B2BCompanyStatus["Rejected"] = "rejected";
|
|
56
|
-
})(B2BCompanyStatus || (exports.B2BCompanyStatus = B2BCompanyStatus = {}));
|
|
57
36
|
var CampaignBudgetType;
|
|
58
37
|
(function (CampaignBudgetType) {
|
|
59
38
|
CampaignBudgetType["Spend"] = "spend";
|
|
39
|
+
CampaignBudgetType["SpendByAttribute"] = "spend_by_attribute";
|
|
60
40
|
CampaignBudgetType["Usage"] = "usage";
|
|
41
|
+
CampaignBudgetType["UseByAttribute"] = "use_by_attribute";
|
|
61
42
|
})(CampaignBudgetType || (exports.CampaignBudgetType = CampaignBudgetType = {}));
|
|
43
|
+
var ClaimReason;
|
|
44
|
+
(function (ClaimReason) {
|
|
45
|
+
ClaimReason["MissingItem"] = "missing_item";
|
|
46
|
+
ClaimReason["Other"] = "other";
|
|
47
|
+
ClaimReason["ProductionFailure"] = "production_failure";
|
|
48
|
+
ClaimReason["WrongItem"] = "wrong_item";
|
|
49
|
+
})(ClaimReason || (exports.ClaimReason = ClaimReason = {}));
|
|
50
|
+
var ClaimType;
|
|
51
|
+
(function (ClaimType) {
|
|
52
|
+
ClaimType["Refund"] = "refund";
|
|
53
|
+
ClaimType["Replace"] = "replace";
|
|
54
|
+
})(ClaimType || (exports.ClaimType = ClaimType = {}));
|
|
62
55
|
var CompanySpendingLimitResetFrequency;
|
|
63
56
|
(function (CompanySpendingLimitResetFrequency) {
|
|
64
57
|
CompanySpendingLimitResetFrequency["Daily"] = "daily";
|
|
@@ -67,7 +60,12 @@ var CompanySpendingLimitResetFrequency;
|
|
|
67
60
|
CompanySpendingLimitResetFrequency["Weekly"] = "weekly";
|
|
68
61
|
CompanySpendingLimitResetFrequency["Yearly"] = "yearly";
|
|
69
62
|
})(CompanySpendingLimitResetFrequency || (exports.CompanySpendingLimitResetFrequency = CompanySpendingLimitResetFrequency = {}));
|
|
70
|
-
|
|
63
|
+
var CompanyStatus;
|
|
64
|
+
(function (CompanyStatus) {
|
|
65
|
+
CompanyStatus["Approved"] = "approved";
|
|
66
|
+
CompanyStatus["Pending"] = "pending";
|
|
67
|
+
CompanyStatus["Rejected"] = "rejected";
|
|
68
|
+
})(CompanyStatus || (exports.CompanyStatus = CompanyStatus = {}));
|
|
71
69
|
var GeoZoneType;
|
|
72
70
|
(function (GeoZoneType) {
|
|
73
71
|
GeoZoneType["City"] = "city";
|
|
@@ -75,12 +73,12 @@ var GeoZoneType;
|
|
|
75
73
|
GeoZoneType["Province"] = "province";
|
|
76
74
|
GeoZoneType["Zip"] = "zip";
|
|
77
75
|
})(GeoZoneType || (exports.GeoZoneType = GeoZoneType = {}));
|
|
78
|
-
/** Order status enum */
|
|
79
76
|
var OrderStatus;
|
|
80
77
|
(function (OrderStatus) {
|
|
81
78
|
OrderStatus["Archived"] = "archived";
|
|
82
79
|
OrderStatus["Canceled"] = "canceled";
|
|
83
80
|
OrderStatus["Completed"] = "completed";
|
|
81
|
+
OrderStatus["Draft"] = "draft";
|
|
84
82
|
OrderStatus["Pending"] = "pending";
|
|
85
83
|
OrderStatus["RequiresAction"] = "requires_action";
|
|
86
84
|
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
@@ -89,22 +87,32 @@ var PaymentCollectionStatus;
|
|
|
89
87
|
PaymentCollectionStatus["Authorized"] = "authorized";
|
|
90
88
|
PaymentCollectionStatus["Awaiting"] = "awaiting";
|
|
91
89
|
PaymentCollectionStatus["Canceled"] = "canceled";
|
|
92
|
-
PaymentCollectionStatus["
|
|
90
|
+
PaymentCollectionStatus["Captured"] = "captured";
|
|
93
91
|
PaymentCollectionStatus["Failed"] = "failed";
|
|
94
92
|
PaymentCollectionStatus["NotPaid"] = "not_paid";
|
|
95
93
|
PaymentCollectionStatus["PartiallyAuthorized"] = "partially_authorized";
|
|
96
94
|
PaymentCollectionStatus["PartiallyCaptured"] = "partially_captured";
|
|
95
|
+
PaymentCollectionStatus["RequiresAction"] = "requires_action";
|
|
97
96
|
})(PaymentCollectionStatus || (exports.PaymentCollectionStatus = PaymentCollectionStatus = {}));
|
|
98
97
|
var PaymentSessionStatus;
|
|
99
98
|
(function (PaymentSessionStatus) {
|
|
100
99
|
PaymentSessionStatus["Authorized"] = "authorized";
|
|
101
100
|
PaymentSessionStatus["Canceled"] = "canceled";
|
|
102
|
-
PaymentSessionStatus["Captured"] = "captured";
|
|
103
101
|
PaymentSessionStatus["Error"] = "error";
|
|
104
102
|
PaymentSessionStatus["Pending"] = "pending";
|
|
103
|
+
PaymentSessionStatus["PendingAuthorization"] = "pending_authorization";
|
|
105
104
|
PaymentSessionStatus["RequiresMore"] = "requires_more";
|
|
106
105
|
})(PaymentSessionStatus || (exports.PaymentSessionStatus = PaymentSessionStatus = {}));
|
|
107
|
-
|
|
106
|
+
var PriceListStatus;
|
|
107
|
+
(function (PriceListStatus) {
|
|
108
|
+
PriceListStatus["Active"] = "active";
|
|
109
|
+
PriceListStatus["Draft"] = "draft";
|
|
110
|
+
})(PriceListStatus || (exports.PriceListStatus = PriceListStatus = {}));
|
|
111
|
+
var PriceListType;
|
|
112
|
+
(function (PriceListType) {
|
|
113
|
+
PriceListType["Override"] = "override";
|
|
114
|
+
PriceListType["Sale"] = "sale";
|
|
115
|
+
})(PriceListType || (exports.PriceListType = PriceListType = {}));
|
|
108
116
|
var ProductCategoryImageType;
|
|
109
117
|
(function (ProductCategoryImageType) {
|
|
110
118
|
ProductCategoryImageType["Image"] = "image";
|
|
@@ -138,10 +146,18 @@ var PromotionType;
|
|
|
138
146
|
PromotionType["Buyget"] = "buyget";
|
|
139
147
|
PromotionType["Standard"] = "standard";
|
|
140
148
|
})(PromotionType || (exports.PromotionType = PromotionType = {}));
|
|
141
|
-
|
|
149
|
+
var QuoteStatus;
|
|
150
|
+
(function (QuoteStatus) {
|
|
151
|
+
QuoteStatus["Accepted"] = "accepted";
|
|
152
|
+
QuoteStatus["CustomerRejected"] = "customer_rejected";
|
|
153
|
+
QuoteStatus["MerchantRejected"] = "merchant_rejected";
|
|
154
|
+
QuoteStatus["PendingCustomer"] = "pending_customer";
|
|
155
|
+
QuoteStatus["PendingMerchant"] = "pending_merchant";
|
|
156
|
+
})(QuoteStatus || (exports.QuoteStatus = QuoteStatus = {}));
|
|
142
157
|
var ReturnStatus;
|
|
143
158
|
(function (ReturnStatus) {
|
|
144
159
|
ReturnStatus["Canceled"] = "canceled";
|
|
160
|
+
ReturnStatus["Open"] = "open";
|
|
145
161
|
ReturnStatus["PartiallyReceived"] = "partially_received";
|
|
146
162
|
ReturnStatus["Received"] = "received";
|
|
147
163
|
ReturnStatus["Requested"] = "requested";
|
|
@@ -152,12 +168,12 @@ var ReviewStatus;
|
|
|
152
168
|
ReviewStatus["Pending"] = "pending";
|
|
153
169
|
ReviewStatus["Rejected"] = "rejected";
|
|
154
170
|
})(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
|
|
155
|
-
/** Shipping option price type enum */
|
|
156
171
|
var ShippingOptionPriceType;
|
|
157
172
|
(function (ShippingOptionPriceType) {
|
|
158
173
|
ShippingOptionPriceType["Calculated"] = "calculated";
|
|
159
174
|
ShippingOptionPriceType["Flat"] = "flat";
|
|
160
175
|
})(ShippingOptionPriceType || (exports.ShippingOptionPriceType = ShippingOptionPriceType = {}));
|
|
176
|
+
/** Sort direction */
|
|
161
177
|
var SortOrder;
|
|
162
178
|
(function (SortOrder) {
|
|
163
179
|
SortOrder["Asc"] = "ASC";
|