@xclade/graphql-client 1.0.3 → 1.0.6

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.js ADDED
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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 = {}));
9
+ var ApplicationMethodAllocation;
10
+ (function (ApplicationMethodAllocation) {
11
+ ApplicationMethodAllocation["Across"] = "across";
12
+ ApplicationMethodAllocation["Each"] = "each";
13
+ })(ApplicationMethodAllocation || (exports.ApplicationMethodAllocation = ApplicationMethodAllocation = {}));
14
+ var ApplicationMethodTargetType;
15
+ (function (ApplicationMethodTargetType) {
16
+ ApplicationMethodTargetType["Items"] = "items";
17
+ ApplicationMethodTargetType["Order"] = "order";
18
+ ApplicationMethodTargetType["ShippingMethods"] = "shipping_methods";
19
+ })(ApplicationMethodTargetType || (exports.ApplicationMethodTargetType = ApplicationMethodTargetType = {}));
20
+ var ApplicationMethodType;
21
+ (function (ApplicationMethodType) {
22
+ ApplicationMethodType["Fixed"] = "fixed";
23
+ ApplicationMethodType["Percentage"] = "percentage";
24
+ })(ApplicationMethodType || (exports.ApplicationMethodType = ApplicationMethodType = {}));
25
+ var ApprovalStatusType;
26
+ (function (ApprovalStatusType) {
27
+ ApprovalStatusType["Approved"] = "approved";
28
+ ApprovalStatusType["Pending"] = "pending";
29
+ ApprovalStatusType["Rejected"] = "rejected";
30
+ })(ApprovalStatusType || (exports.ApprovalStatusType = ApprovalStatusType = {}));
31
+ var ApprovalType;
32
+ (function (ApprovalType) {
33
+ ApprovalType["Admin"] = "admin";
34
+ ApprovalType["SalesManager"] = "sales_manager";
35
+ })(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
36
+ var CampaignBudgetType;
37
+ (function (CampaignBudgetType) {
38
+ CampaignBudgetType["Spend"] = "spend";
39
+ CampaignBudgetType["SpendByAttribute"] = "spend_by_attribute";
40
+ CampaignBudgetType["Usage"] = "usage";
41
+ CampaignBudgetType["UseByAttribute"] = "use_by_attribute";
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 = {}));
55
+ var CompanySpendingLimitResetFrequency;
56
+ (function (CompanySpendingLimitResetFrequency) {
57
+ CompanySpendingLimitResetFrequency["Daily"] = "daily";
58
+ CompanySpendingLimitResetFrequency["Monthly"] = "monthly";
59
+ CompanySpendingLimitResetFrequency["Never"] = "never";
60
+ CompanySpendingLimitResetFrequency["Weekly"] = "weekly";
61
+ CompanySpendingLimitResetFrequency["Yearly"] = "yearly";
62
+ })(CompanySpendingLimitResetFrequency || (exports.CompanySpendingLimitResetFrequency = CompanySpendingLimitResetFrequency = {}));
63
+ var CompanyStatus;
64
+ (function (CompanyStatus) {
65
+ CompanyStatus["Approved"] = "approved";
66
+ CompanyStatus["Pending"] = "pending";
67
+ CompanyStatus["Rejected"] = "rejected";
68
+ })(CompanyStatus || (exports.CompanyStatus = CompanyStatus = {}));
69
+ var GeoZoneType;
70
+ (function (GeoZoneType) {
71
+ GeoZoneType["City"] = "city";
72
+ GeoZoneType["Country"] = "country";
73
+ GeoZoneType["Province"] = "province";
74
+ GeoZoneType["Zip"] = "zip";
75
+ })(GeoZoneType || (exports.GeoZoneType = GeoZoneType = {}));
76
+ var OrderStatus;
77
+ (function (OrderStatus) {
78
+ OrderStatus["Archived"] = "archived";
79
+ OrderStatus["Canceled"] = "canceled";
80
+ OrderStatus["Completed"] = "completed";
81
+ OrderStatus["Draft"] = "draft";
82
+ OrderStatus["Pending"] = "pending";
83
+ OrderStatus["RequiresAction"] = "requires_action";
84
+ })(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
85
+ var PaymentCollectionStatus;
86
+ (function (PaymentCollectionStatus) {
87
+ PaymentCollectionStatus["Authorized"] = "authorized";
88
+ PaymentCollectionStatus["Awaiting"] = "awaiting";
89
+ PaymentCollectionStatus["Canceled"] = "canceled";
90
+ PaymentCollectionStatus["Captured"] = "captured";
91
+ PaymentCollectionStatus["Failed"] = "failed";
92
+ PaymentCollectionStatus["NotPaid"] = "not_paid";
93
+ PaymentCollectionStatus["PartiallyAuthorized"] = "partially_authorized";
94
+ PaymentCollectionStatus["PartiallyCaptured"] = "partially_captured";
95
+ PaymentCollectionStatus["RequiresAction"] = "requires_action";
96
+ })(PaymentCollectionStatus || (exports.PaymentCollectionStatus = PaymentCollectionStatus = {}));
97
+ var PaymentSessionStatus;
98
+ (function (PaymentSessionStatus) {
99
+ PaymentSessionStatus["Authorized"] = "authorized";
100
+ PaymentSessionStatus["Canceled"] = "canceled";
101
+ PaymentSessionStatus["Error"] = "error";
102
+ PaymentSessionStatus["Pending"] = "pending";
103
+ PaymentSessionStatus["PendingAuthorization"] = "pending_authorization";
104
+ PaymentSessionStatus["RequiresMore"] = "requires_more";
105
+ })(PaymentSessionStatus || (exports.PaymentSessionStatus = PaymentSessionStatus = {}));
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 = {}));
116
+ var ProductCategoryImageType;
117
+ (function (ProductCategoryImageType) {
118
+ ProductCategoryImageType["Image"] = "image";
119
+ ProductCategoryImageType["Thumbnail"] = "thumbnail";
120
+ })(ProductCategoryImageType || (exports.ProductCategoryImageType = ProductCategoryImageType = {}));
121
+ var ProductStatus;
122
+ (function (ProductStatus) {
123
+ ProductStatus["Draft"] = "draft";
124
+ ProductStatus["Proposed"] = "proposed";
125
+ ProductStatus["Published"] = "published";
126
+ ProductStatus["Rejected"] = "rejected";
127
+ })(ProductStatus || (exports.ProductStatus = ProductStatus = {}));
128
+ var PromotionRuleOperator;
129
+ (function (PromotionRuleOperator) {
130
+ PromotionRuleOperator["Eq"] = "eq";
131
+ PromotionRuleOperator["Gt"] = "gt";
132
+ PromotionRuleOperator["Gte"] = "gte";
133
+ PromotionRuleOperator["In"] = "in";
134
+ PromotionRuleOperator["Lt"] = "lt";
135
+ PromotionRuleOperator["Lte"] = "lte";
136
+ PromotionRuleOperator["Ne"] = "ne";
137
+ })(PromotionRuleOperator || (exports.PromotionRuleOperator = PromotionRuleOperator = {}));
138
+ var PromotionStatus;
139
+ (function (PromotionStatus) {
140
+ PromotionStatus["Active"] = "active";
141
+ PromotionStatus["Draft"] = "draft";
142
+ PromotionStatus["Inactive"] = "inactive";
143
+ })(PromotionStatus || (exports.PromotionStatus = PromotionStatus = {}));
144
+ var PromotionType;
145
+ (function (PromotionType) {
146
+ PromotionType["Buyget"] = "buyget";
147
+ PromotionType["Standard"] = "standard";
148
+ })(PromotionType || (exports.PromotionType = PromotionType = {}));
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 = {}));
157
+ var ReturnStatus;
158
+ (function (ReturnStatus) {
159
+ ReturnStatus["Canceled"] = "canceled";
160
+ ReturnStatus["Open"] = "open";
161
+ ReturnStatus["PartiallyReceived"] = "partially_received";
162
+ ReturnStatus["Received"] = "received";
163
+ ReturnStatus["Requested"] = "requested";
164
+ })(ReturnStatus || (exports.ReturnStatus = ReturnStatus = {}));
165
+ var ReviewStatus;
166
+ (function (ReviewStatus) {
167
+ ReviewStatus["Approved"] = "approved";
168
+ ReviewStatus["Pending"] = "pending";
169
+ ReviewStatus["Rejected"] = "rejected";
170
+ })(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
171
+ var ShippingOptionPriceType;
172
+ (function (ShippingOptionPriceType) {
173
+ ShippingOptionPriceType["Calculated"] = "calculated";
174
+ ShippingOptionPriceType["Flat"] = "flat";
175
+ })(ShippingOptionPriceType || (exports.ShippingOptionPriceType = ShippingOptionPriceType = {}));
176
+ /** Sort direction */
177
+ var SortOrder;
178
+ (function (SortOrder) {
179
+ SortOrder["Asc"] = "ASC";
180
+ SortOrder["Desc"] = "DESC";
181
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xclade/graphql-client",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "Auto-generated GraphQL Client Types for Xclade B2B",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^20.11.24",
20
- "graphql": "^16.12.0",
21
- "typescript": "^5.3.3"
20
+ "graphql": "16.12.0",
21
+ "typescript": "^5.5.3"
22
22
  },
23
23
  "dependencies": {
24
24
  "graphql-request": "^7.4.0"