@xclade/types 1.0.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +2748 -0
  2. package/dist/index.js +165 -0
  3. package/package.json +18 -0
package/dist/index.js ADDED
@@ -0,0 +1,165 @@
1
+ "use strict";
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.CompanySpendingLimitResetFrequency = exports.CampaignBudgetType = exports.B2BCompanyStatus = exports.B2BApprovalType = exports.B2BApprovalStatus = exports.ApprovalType = exports.ApprovalStatusStatus = exports.ApprovalStatusEnum = exports.ApplicationMethodType = exports.ApplicationMethodTargetType = exports.ApplicationMethodAllocation = void 0;
4
+ var ApplicationMethodAllocation;
5
+ (function (ApplicationMethodAllocation) {
6
+ ApplicationMethodAllocation["Across"] = "across";
7
+ ApplicationMethodAllocation["Each"] = "each";
8
+ ApplicationMethodAllocation["Once"] = "once";
9
+ })(ApplicationMethodAllocation || (exports.ApplicationMethodAllocation = ApplicationMethodAllocation = {}));
10
+ var ApplicationMethodTargetType;
11
+ (function (ApplicationMethodTargetType) {
12
+ ApplicationMethodTargetType["Items"] = "items";
13
+ ApplicationMethodTargetType["Order"] = "order";
14
+ ApplicationMethodTargetType["ShippingMethods"] = "shipping_methods";
15
+ })(ApplicationMethodTargetType || (exports.ApplicationMethodTargetType = ApplicationMethodTargetType = {}));
16
+ var ApplicationMethodType;
17
+ (function (ApplicationMethodType) {
18
+ ApplicationMethodType["Fixed"] = "fixed";
19
+ ApplicationMethodType["Percentage"] = "percentage";
20
+ })(ApplicationMethodType || (exports.ApplicationMethodType = ApplicationMethodType = {}));
21
+ /** Approval Status Enum */
22
+ var ApprovalStatusEnum;
23
+ (function (ApprovalStatusEnum) {
24
+ ApprovalStatusEnum["Approved"] = "approved";
25
+ ApprovalStatusEnum["Pending"] = "pending";
26
+ ApprovalStatusEnum["Rejected"] = "rejected";
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 */
35
+ var ApprovalType;
36
+ (function (ApprovalType) {
37
+ ApprovalType["Admin"] = "admin";
38
+ ApprovalType["SalesManager"] = "sales_manager";
39
+ })(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
+ var CampaignBudgetType;
58
+ (function (CampaignBudgetType) {
59
+ CampaignBudgetType["Spend"] = "spend";
60
+ CampaignBudgetType["Usage"] = "usage";
61
+ })(CampaignBudgetType || (exports.CampaignBudgetType = CampaignBudgetType = {}));
62
+ var CompanySpendingLimitResetFrequency;
63
+ (function (CompanySpendingLimitResetFrequency) {
64
+ CompanySpendingLimitResetFrequency["Daily"] = "daily";
65
+ CompanySpendingLimitResetFrequency["Monthly"] = "monthly";
66
+ CompanySpendingLimitResetFrequency["Never"] = "never";
67
+ CompanySpendingLimitResetFrequency["Weekly"] = "weekly";
68
+ CompanySpendingLimitResetFrequency["Yearly"] = "yearly";
69
+ })(CompanySpendingLimitResetFrequency || (exports.CompanySpendingLimitResetFrequency = CompanySpendingLimitResetFrequency = {}));
70
+ /** Geo zone type enum */
71
+ var GeoZoneType;
72
+ (function (GeoZoneType) {
73
+ GeoZoneType["City"] = "city";
74
+ GeoZoneType["Country"] = "country";
75
+ GeoZoneType["Province"] = "province";
76
+ GeoZoneType["Zip"] = "zip";
77
+ })(GeoZoneType || (exports.GeoZoneType = GeoZoneType = {}));
78
+ /** Order status enum */
79
+ var OrderStatus;
80
+ (function (OrderStatus) {
81
+ OrderStatus["Archived"] = "archived";
82
+ OrderStatus["Canceled"] = "canceled";
83
+ OrderStatus["Completed"] = "completed";
84
+ OrderStatus["Pending"] = "pending";
85
+ OrderStatus["RequiresAction"] = "requires_action";
86
+ })(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
87
+ var PaymentCollectionStatus;
88
+ (function (PaymentCollectionStatus) {
89
+ PaymentCollectionStatus["Authorized"] = "authorized";
90
+ PaymentCollectionStatus["Awaiting"] = "awaiting";
91
+ PaymentCollectionStatus["Canceled"] = "canceled";
92
+ PaymentCollectionStatus["Completed"] = "completed";
93
+ PaymentCollectionStatus["Failed"] = "failed";
94
+ PaymentCollectionStatus["NotPaid"] = "not_paid";
95
+ PaymentCollectionStatus["PartiallyAuthorized"] = "partially_authorized";
96
+ PaymentCollectionStatus["PartiallyCaptured"] = "partially_captured";
97
+ })(PaymentCollectionStatus || (exports.PaymentCollectionStatus = PaymentCollectionStatus = {}));
98
+ var PaymentSessionStatus;
99
+ (function (PaymentSessionStatus) {
100
+ PaymentSessionStatus["Authorized"] = "authorized";
101
+ PaymentSessionStatus["Canceled"] = "canceled";
102
+ PaymentSessionStatus["Captured"] = "captured";
103
+ PaymentSessionStatus["Error"] = "error";
104
+ PaymentSessionStatus["Pending"] = "pending";
105
+ PaymentSessionStatus["RequiresMore"] = "requires_more";
106
+ })(PaymentSessionStatus || (exports.PaymentSessionStatus = PaymentSessionStatus = {}));
107
+ /** Product Category entity */
108
+ var ProductCategoryImageType;
109
+ (function (ProductCategoryImageType) {
110
+ ProductCategoryImageType["Image"] = "image";
111
+ ProductCategoryImageType["Thumbnail"] = "thumbnail";
112
+ })(ProductCategoryImageType || (exports.ProductCategoryImageType = ProductCategoryImageType = {}));
113
+ var ProductStatus;
114
+ (function (ProductStatus) {
115
+ ProductStatus["Draft"] = "draft";
116
+ ProductStatus["Proposed"] = "proposed";
117
+ ProductStatus["Published"] = "published";
118
+ ProductStatus["Rejected"] = "rejected";
119
+ })(ProductStatus || (exports.ProductStatus = ProductStatus = {}));
120
+ var PromotionRuleOperator;
121
+ (function (PromotionRuleOperator) {
122
+ PromotionRuleOperator["Eq"] = "eq";
123
+ PromotionRuleOperator["Gt"] = "gt";
124
+ PromotionRuleOperator["Gte"] = "gte";
125
+ PromotionRuleOperator["In"] = "in";
126
+ PromotionRuleOperator["Lt"] = "lt";
127
+ PromotionRuleOperator["Lte"] = "lte";
128
+ PromotionRuleOperator["Ne"] = "ne";
129
+ })(PromotionRuleOperator || (exports.PromotionRuleOperator = PromotionRuleOperator = {}));
130
+ var PromotionStatus;
131
+ (function (PromotionStatus) {
132
+ PromotionStatus["Active"] = "active";
133
+ PromotionStatus["Draft"] = "draft";
134
+ PromotionStatus["Inactive"] = "inactive";
135
+ })(PromotionStatus || (exports.PromotionStatus = PromotionStatus = {}));
136
+ var PromotionType;
137
+ (function (PromotionType) {
138
+ PromotionType["Buyget"] = "buyget";
139
+ PromotionType["Standard"] = "standard";
140
+ })(PromotionType || (exports.PromotionType = PromotionType = {}));
141
+ /** Return status enum */
142
+ var ReturnStatus;
143
+ (function (ReturnStatus) {
144
+ ReturnStatus["Canceled"] = "canceled";
145
+ ReturnStatus["PartiallyReceived"] = "partially_received";
146
+ ReturnStatus["Received"] = "received";
147
+ ReturnStatus["Requested"] = "requested";
148
+ })(ReturnStatus || (exports.ReturnStatus = ReturnStatus = {}));
149
+ var ReviewStatus;
150
+ (function (ReviewStatus) {
151
+ ReviewStatus["Approved"] = "approved";
152
+ ReviewStatus["Pending"] = "pending";
153
+ ReviewStatus["Rejected"] = "rejected";
154
+ })(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
155
+ /** Shipping option price type enum */
156
+ var ShippingOptionPriceType;
157
+ (function (ShippingOptionPriceType) {
158
+ ShippingOptionPriceType["Calculated"] = "calculated";
159
+ ShippingOptionPriceType["Flat"] = "flat";
160
+ })(ShippingOptionPriceType || (exports.ShippingOptionPriceType = ShippingOptionPriceType = {}));
161
+ var SortOrder;
162
+ (function (SortOrder) {
163
+ SortOrder["Asc"] = "ASC";
164
+ SortOrder["Desc"] = "DESC";
165
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@xclade/types",
3
+ "version": "1.0.0",
4
+ "description": "Shared GraphQL types for Xclade B2B",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "watch": "tsc -w",
13
+ "clean": "rm -rf dist"
14
+ },
15
+ "devDependencies": {
16
+ "typescript": "^5.5.3"
17
+ }
18
+ }