@xclade/graphql-client 0.0.1 → 1.0.1

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 CHANGED
@@ -1,6 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.ShippingOptionPriceType = exports.ReviewStatus = exports.ReturnStatus = exports.PromotionTypeValues = exports.PromotionStatus = exports.PromotionRuleOperatorValues = exports.ProductStatus = exports.ProductCategoryImageType = exports.PaymentSessionStatus = exports.PaymentCollectionStatus = exports.OrderStatus = exports.GeoZoneType = exports.CompanySpendingLimitResetFrequency = exports.ApprovalType = exports.ApprovalStatusStatus = exports.ApprovalStatusEnum = void 0;
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 = {}));
4
21
  /** Approval Status Enum */
5
22
  var ApprovalStatusEnum;
6
23
  (function (ApprovalStatusEnum) {
@@ -20,6 +37,28 @@ var ApprovalType;
20
37
  ApprovalType["Admin"] = "admin";
21
38
  ApprovalType["SalesManager"] = "sales_manager";
22
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 = {}));
23
62
  var CompanySpendingLimitResetFrequency;
24
63
  (function (CompanySpendingLimitResetFrequency) {
25
64
  CompanySpendingLimitResetFrequency["Daily"] = "daily";
@@ -28,7 +67,7 @@ var CompanySpendingLimitResetFrequency;
28
67
  CompanySpendingLimitResetFrequency["Weekly"] = "weekly";
29
68
  CompanySpendingLimitResetFrequency["Yearly"] = "yearly";
30
69
  })(CompanySpendingLimitResetFrequency || (exports.CompanySpendingLimitResetFrequency = CompanySpendingLimitResetFrequency = {}));
31
- /** Geo zone type enum - Matches Medusa exactly */
70
+ /** Geo zone type enum */
32
71
  var GeoZoneType;
33
72
  (function (GeoZoneType) {
34
73
  GeoZoneType["City"] = "city";
@@ -78,31 +117,28 @@ var ProductStatus;
78
117
  ProductStatus["Published"] = "published";
79
118
  ProductStatus["Rejected"] = "rejected";
80
119
  })(ProductStatus || (exports.ProductStatus = ProductStatus = {}));
81
- /** Promotion Rule Operator Values Enum */
82
- var PromotionRuleOperatorValues;
83
- (function (PromotionRuleOperatorValues) {
84
- PromotionRuleOperatorValues["Eq"] = "eq";
85
- PromotionRuleOperatorValues["Gt"] = "gt";
86
- PromotionRuleOperatorValues["Gte"] = "gte";
87
- PromotionRuleOperatorValues["In"] = "in";
88
- PromotionRuleOperatorValues["Lt"] = "lt";
89
- PromotionRuleOperatorValues["Lte"] = "lte";
90
- PromotionRuleOperatorValues["Ne"] = "ne";
91
- })(PromotionRuleOperatorValues || (exports.PromotionRuleOperatorValues = PromotionRuleOperatorValues = {}));
92
- /** Promotion Status Enum */
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 = {}));
93
130
  var PromotionStatus;
94
131
  (function (PromotionStatus) {
95
132
  PromotionStatus["Active"] = "active";
96
133
  PromotionStatus["Draft"] = "draft";
97
134
  PromotionStatus["Inactive"] = "inactive";
98
135
  })(PromotionStatus || (exports.PromotionStatus = PromotionStatus = {}));
99
- /** Promotion Type Values Enum */
100
- var PromotionTypeValues;
101
- (function (PromotionTypeValues) {
102
- PromotionTypeValues["Buyget"] = "buyget";
103
- PromotionTypeValues["Standard"] = "standard";
104
- })(PromotionTypeValues || (exports.PromotionTypeValues = PromotionTypeValues = {}));
105
- /** Return status enum - Matches Medusa exactly */
136
+ var PromotionType;
137
+ (function (PromotionType) {
138
+ PromotionType["Buyget"] = "buyget";
139
+ PromotionType["Standard"] = "standard";
140
+ })(PromotionType || (exports.PromotionType = PromotionType = {}));
141
+ /** Return status enum */
106
142
  var ReturnStatus;
107
143
  (function (ReturnStatus) {
108
144
  ReturnStatus["Canceled"] = "canceled";
@@ -116,7 +152,7 @@ var ReviewStatus;
116
152
  ReviewStatus["Pending"] = "pending";
117
153
  ReviewStatus["Rejected"] = "rejected";
118
154
  })(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
119
- /** Shipping option price type enum - Matches Medusa exactly */
155
+ /** Shipping option price type enum */
120
156
  var ShippingOptionPriceType;
121
157
  (function (ShippingOptionPriceType) {
122
158
  ShippingOptionPriceType["Calculated"] = "calculated";
package/package.json CHANGED
@@ -1,18 +1,23 @@
1
1
  {
2
2
  "name": "@xclade/graphql-client",
3
- "version": "0.0.1",
4
- "description": "Auto-generated GraphQL client types for Xclade B2B",
3
+ "version": "1.0.1",
4
+ "description": "Auto-generated GraphQL Client Types for Xclade B2B",
5
+ "private": false,
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
7
11
  "scripts": {
8
12
  "build": "tsc",
9
- "prepublishOnly": "npm run build"
13
+ "watch": "tsc -w",
14
+ "clean": "rm -rf dist"
10
15
  },
11
16
  "peerDependencies": {
12
- "graphql": "^16.0.0"
17
+ "graphql": ">=16.0.0"
13
18
  },
14
19
  "devDependencies": {
15
- "typescript": "^5.0.0",
16
- "graphql": "^16.0.0"
20
+ "@types/node": "^20.11.24",
21
+ "typescript": "^5.3.3"
17
22
  }
18
23
  }