@xclade/graphql-client 0.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 ADDED
@@ -0,0 +1,129 @@
1
+ "use strict";
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;
4
+ /** Approval Status Enum */
5
+ var ApprovalStatusEnum;
6
+ (function (ApprovalStatusEnum) {
7
+ ApprovalStatusEnum["Approved"] = "approved";
8
+ ApprovalStatusEnum["Pending"] = "pending";
9
+ ApprovalStatusEnum["Rejected"] = "rejected";
10
+ })(ApprovalStatusEnum || (exports.ApprovalStatusEnum = ApprovalStatusEnum = {}));
11
+ /** Approval Status Status Enum */
12
+ var ApprovalStatusStatus;
13
+ (function (ApprovalStatusStatus) {
14
+ ApprovalStatusStatus["Approved"] = "approved";
15
+ ApprovalStatusStatus["Pending"] = "pending";
16
+ })(ApprovalStatusStatus || (exports.ApprovalStatusStatus = ApprovalStatusStatus = {}));
17
+ /** Approval Type Enum */
18
+ var ApprovalType;
19
+ (function (ApprovalType) {
20
+ ApprovalType["Admin"] = "admin";
21
+ ApprovalType["SalesManager"] = "sales_manager";
22
+ })(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
23
+ var CompanySpendingLimitResetFrequency;
24
+ (function (CompanySpendingLimitResetFrequency) {
25
+ CompanySpendingLimitResetFrequency["Daily"] = "daily";
26
+ CompanySpendingLimitResetFrequency["Monthly"] = "monthly";
27
+ CompanySpendingLimitResetFrequency["Never"] = "never";
28
+ CompanySpendingLimitResetFrequency["Weekly"] = "weekly";
29
+ CompanySpendingLimitResetFrequency["Yearly"] = "yearly";
30
+ })(CompanySpendingLimitResetFrequency || (exports.CompanySpendingLimitResetFrequency = CompanySpendingLimitResetFrequency = {}));
31
+ /** Geo zone type enum - Matches Medusa exactly */
32
+ var GeoZoneType;
33
+ (function (GeoZoneType) {
34
+ GeoZoneType["City"] = "city";
35
+ GeoZoneType["Country"] = "country";
36
+ GeoZoneType["Province"] = "province";
37
+ GeoZoneType["Zip"] = "zip";
38
+ })(GeoZoneType || (exports.GeoZoneType = GeoZoneType = {}));
39
+ /** Order status enum */
40
+ var OrderStatus;
41
+ (function (OrderStatus) {
42
+ OrderStatus["Archived"] = "archived";
43
+ OrderStatus["Canceled"] = "canceled";
44
+ OrderStatus["Completed"] = "completed";
45
+ OrderStatus["Pending"] = "pending";
46
+ OrderStatus["RequiresAction"] = "requires_action";
47
+ })(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
48
+ var PaymentCollectionStatus;
49
+ (function (PaymentCollectionStatus) {
50
+ PaymentCollectionStatus["Authorized"] = "authorized";
51
+ PaymentCollectionStatus["Awaiting"] = "awaiting";
52
+ PaymentCollectionStatus["Canceled"] = "canceled";
53
+ PaymentCollectionStatus["Completed"] = "completed";
54
+ PaymentCollectionStatus["Failed"] = "failed";
55
+ PaymentCollectionStatus["NotPaid"] = "not_paid";
56
+ PaymentCollectionStatus["PartiallyAuthorized"] = "partially_authorized";
57
+ PaymentCollectionStatus["PartiallyCaptured"] = "partially_captured";
58
+ })(PaymentCollectionStatus || (exports.PaymentCollectionStatus = PaymentCollectionStatus = {}));
59
+ var PaymentSessionStatus;
60
+ (function (PaymentSessionStatus) {
61
+ PaymentSessionStatus["Authorized"] = "authorized";
62
+ PaymentSessionStatus["Canceled"] = "canceled";
63
+ PaymentSessionStatus["Captured"] = "captured";
64
+ PaymentSessionStatus["Error"] = "error";
65
+ PaymentSessionStatus["Pending"] = "pending";
66
+ PaymentSessionStatus["RequiresMore"] = "requires_more";
67
+ })(PaymentSessionStatus || (exports.PaymentSessionStatus = PaymentSessionStatus = {}));
68
+ /** Product Category entity */
69
+ var ProductCategoryImageType;
70
+ (function (ProductCategoryImageType) {
71
+ ProductCategoryImageType["Image"] = "image";
72
+ ProductCategoryImageType["Thumbnail"] = "thumbnail";
73
+ })(ProductCategoryImageType || (exports.ProductCategoryImageType = ProductCategoryImageType = {}));
74
+ var ProductStatus;
75
+ (function (ProductStatus) {
76
+ ProductStatus["Draft"] = "draft";
77
+ ProductStatus["Proposed"] = "proposed";
78
+ ProductStatus["Published"] = "published";
79
+ ProductStatus["Rejected"] = "rejected";
80
+ })(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 */
93
+ var PromotionStatus;
94
+ (function (PromotionStatus) {
95
+ PromotionStatus["Active"] = "active";
96
+ PromotionStatus["Draft"] = "draft";
97
+ PromotionStatus["Inactive"] = "inactive";
98
+ })(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 */
106
+ var ReturnStatus;
107
+ (function (ReturnStatus) {
108
+ ReturnStatus["Canceled"] = "canceled";
109
+ ReturnStatus["PartiallyReceived"] = "partially_received";
110
+ ReturnStatus["Received"] = "received";
111
+ ReturnStatus["Requested"] = "requested";
112
+ })(ReturnStatus || (exports.ReturnStatus = ReturnStatus = {}));
113
+ var ReviewStatus;
114
+ (function (ReviewStatus) {
115
+ ReviewStatus["Approved"] = "approved";
116
+ ReviewStatus["Pending"] = "pending";
117
+ ReviewStatus["Rejected"] = "rejected";
118
+ })(ReviewStatus || (exports.ReviewStatus = ReviewStatus = {}));
119
+ /** Shipping option price type enum - Matches Medusa exactly */
120
+ var ShippingOptionPriceType;
121
+ (function (ShippingOptionPriceType) {
122
+ ShippingOptionPriceType["Calculated"] = "calculated";
123
+ ShippingOptionPriceType["Flat"] = "flat";
124
+ })(ShippingOptionPriceType || (exports.ShippingOptionPriceType = ShippingOptionPriceType = {}));
125
+ var SortOrder;
126
+ (function (SortOrder) {
127
+ SortOrder["Asc"] = "ASC";
128
+ SortOrder["Desc"] = "DESC";
129
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@xclade/graphql-client",
3
+ "version": "0.0.1",
4
+ "description": "Auto-generated GraphQL client types for Xclade B2B",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "prepublishOnly": "npm run build"
10
+ },
11
+ "peerDependencies": {
12
+ "graphql": "^16.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "typescript": "^5.0.0",
16
+ "graphql": "^16.0.0"
17
+ }
18
+ }