@codextech/commerce-platform 0.1.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.
- package/README.md +51 -0
- package/dist/cart/index.d.ts +41 -0
- package/dist/cart/index.d.ts.map +1 -0
- package/dist/cart/index.js +278 -0
- package/dist/cart/index.js.map +1 -0
- package/dist/catalog/index.d.ts +4 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/index.js +2 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/connectors/pinnacle/catalog.d.ts +63 -0
- package/dist/connectors/pinnacle/catalog.d.ts.map +1 -0
- package/dist/connectors/pinnacle/catalog.js +238 -0
- package/dist/connectors/pinnacle/catalog.js.map +1 -0
- package/dist/connectors/pinnacle/index.d.ts +3 -0
- package/dist/connectors/pinnacle/index.d.ts.map +1 -0
- package/dist/connectors/pinnacle/index.js +3 -0
- package/dist/connectors/pinnacle/index.js.map +1 -0
- package/dist/connectors/pinnacle/taxonomy.d.ts +53 -0
- package/dist/connectors/pinnacle/taxonomy.d.ts.map +1 -0
- package/dist/connectors/pinnacle/taxonomy.js +206 -0
- package/dist/connectors/pinnacle/taxonomy.js.map +1 -0
- package/dist/errors/index.d.ts +47 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +257 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/images/index.d.ts +31 -0
- package/dist/images/index.d.ts.map +1 -0
- package/dist/images/index.js +39 -0
- package/dist/images/index.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/money/index.d.ts +5 -0
- package/dist/money/index.d.ts.map +1 -0
- package/dist/money/index.js +29 -0
- package/dist/money/index.js.map +1 -0
- package/dist/react-router/index.d.ts +3 -0
- package/dist/react-router/index.d.ts.map +1 -0
- package/dist/react-router/index.js +2 -0
- package/dist/react-router/index.js.map +1 -0
- package/dist/shopify/index.d.ts +107 -0
- package/dist/shopify/index.d.ts.map +1 -0
- package/dist/shopify/index.js +524 -0
- package/dist/shopify/index.js.map +1 -0
- package/dist/types/index.d.ts +172 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export interface StorefrontGraphQLError {
|
|
2
|
+
message: string;
|
|
3
|
+
locations?: Array<{
|
|
4
|
+
line: number;
|
|
5
|
+
column: number;
|
|
6
|
+
}>;
|
|
7
|
+
path?: Array<string | number>;
|
|
8
|
+
extensions?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface StorefrontResponse<TData> {
|
|
11
|
+
data?: TData;
|
|
12
|
+
errors?: StorefrontGraphQLError[];
|
|
13
|
+
}
|
|
14
|
+
export type StorefrontVariables = Record<string, unknown>;
|
|
15
|
+
export interface PageInfo {
|
|
16
|
+
hasNextPage: boolean;
|
|
17
|
+
hasPreviousPage: boolean;
|
|
18
|
+
startCursor: string | null;
|
|
19
|
+
endCursor: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface Money {
|
|
22
|
+
amount: string;
|
|
23
|
+
currencyCode: string;
|
|
24
|
+
}
|
|
25
|
+
export interface MoneyRange {
|
|
26
|
+
minVariantPrice: Money;
|
|
27
|
+
maxVariantPrice: Money;
|
|
28
|
+
}
|
|
29
|
+
export interface StorefrontImage {
|
|
30
|
+
url: string;
|
|
31
|
+
mainUrl?: string | null;
|
|
32
|
+
cardUrl?: string | null;
|
|
33
|
+
smallUrl?: string | null;
|
|
34
|
+
thumbnailUrl?: string | null;
|
|
35
|
+
altText: string | null;
|
|
36
|
+
width: number | null;
|
|
37
|
+
height: number | null;
|
|
38
|
+
}
|
|
39
|
+
export type Image = StorefrontImage;
|
|
40
|
+
export interface SelectedOption {
|
|
41
|
+
name: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ProductOption {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
values: string[];
|
|
48
|
+
}
|
|
49
|
+
export interface StorefrontProductVariant {
|
|
50
|
+
id: string;
|
|
51
|
+
title: string;
|
|
52
|
+
availableForSale: boolean;
|
|
53
|
+
selectedOptions: SelectedOption[];
|
|
54
|
+
price: Money;
|
|
55
|
+
compareAtPrice: Money | null;
|
|
56
|
+
image: StorefrontImage | null;
|
|
57
|
+
sku?: string | null;
|
|
58
|
+
}
|
|
59
|
+
export type ProductVariant = StorefrontProductVariant;
|
|
60
|
+
export interface StorefrontProduct {
|
|
61
|
+
id: string;
|
|
62
|
+
handle: string;
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
descriptionHtml: string;
|
|
66
|
+
vendor: string;
|
|
67
|
+
productType: string;
|
|
68
|
+
tags: string[];
|
|
69
|
+
availableForSale: boolean;
|
|
70
|
+
featuredImage: StorefrontImage | null;
|
|
71
|
+
images: StorefrontImage[];
|
|
72
|
+
options: ProductOption[];
|
|
73
|
+
variants: StorefrontProductVariant[];
|
|
74
|
+
priceRange: MoneyRange;
|
|
75
|
+
}
|
|
76
|
+
export type Product = StorefrontProduct;
|
|
77
|
+
export interface StorefrontCollection {
|
|
78
|
+
id: string;
|
|
79
|
+
handle: string;
|
|
80
|
+
title: string;
|
|
81
|
+
description: string;
|
|
82
|
+
descriptionHtml: string;
|
|
83
|
+
image: StorefrontImage | null;
|
|
84
|
+
products: StorefrontProduct[];
|
|
85
|
+
}
|
|
86
|
+
export type Collection = StorefrontCollection;
|
|
87
|
+
export interface HomepageData {
|
|
88
|
+
featuredCollections: StorefrontCollection[];
|
|
89
|
+
featuredProducts: StorefrontProduct[];
|
|
90
|
+
}
|
|
91
|
+
export interface CatalogFilterValue {
|
|
92
|
+
id: string;
|
|
93
|
+
label: string;
|
|
94
|
+
count: number;
|
|
95
|
+
input?: unknown;
|
|
96
|
+
}
|
|
97
|
+
export interface CatalogFilter {
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
type: string;
|
|
101
|
+
values: CatalogFilterValue[];
|
|
102
|
+
}
|
|
103
|
+
export interface ProductCatalogResult<TProduct = StorefrontProduct> {
|
|
104
|
+
products: TProduct[];
|
|
105
|
+
pageInfo: PageInfo;
|
|
106
|
+
filters: CatalogFilter[];
|
|
107
|
+
query: string | null;
|
|
108
|
+
}
|
|
109
|
+
export interface AttributeInput {
|
|
110
|
+
key: string;
|
|
111
|
+
value: string;
|
|
112
|
+
}
|
|
113
|
+
export interface CartLineInput {
|
|
114
|
+
merchandiseId: string;
|
|
115
|
+
quantity?: number;
|
|
116
|
+
attributes?: AttributeInput[];
|
|
117
|
+
sellingPlanId?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface CartLineUpdateInput {
|
|
120
|
+
id: string;
|
|
121
|
+
merchandiseId?: string;
|
|
122
|
+
quantity?: number;
|
|
123
|
+
attributes?: AttributeInput[];
|
|
124
|
+
sellingPlanId?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface CartInput {
|
|
127
|
+
lines?: CartLineInput[];
|
|
128
|
+
attributes?: AttributeInput[];
|
|
129
|
+
discountCodes?: string[];
|
|
130
|
+
giftCardCodes?: string[];
|
|
131
|
+
note?: string;
|
|
132
|
+
}
|
|
133
|
+
export interface CartUserError {
|
|
134
|
+
field: string[] | null;
|
|
135
|
+
message: string;
|
|
136
|
+
code?: string;
|
|
137
|
+
}
|
|
138
|
+
export interface ProductSummary {
|
|
139
|
+
id: string;
|
|
140
|
+
handle: string;
|
|
141
|
+
title: string;
|
|
142
|
+
featuredImage: StorefrontImage | null;
|
|
143
|
+
}
|
|
144
|
+
export interface CartLineMerchandise extends StorefrontProductVariant {
|
|
145
|
+
product: ProductSummary;
|
|
146
|
+
}
|
|
147
|
+
export interface CartLineCost {
|
|
148
|
+
amountPerQuantity: Money;
|
|
149
|
+
compareAtAmountPerQuantity: Money | null;
|
|
150
|
+
subtotalAmount: Money;
|
|
151
|
+
totalAmount: Money;
|
|
152
|
+
}
|
|
153
|
+
export interface CartLine {
|
|
154
|
+
id: string;
|
|
155
|
+
quantity: number;
|
|
156
|
+
cost: CartLineCost;
|
|
157
|
+
merchandise: CartLineMerchandise;
|
|
158
|
+
}
|
|
159
|
+
export interface CartCost {
|
|
160
|
+
subtotalAmount: Money;
|
|
161
|
+
totalAmount: Money;
|
|
162
|
+
totalTaxAmount: Money | null;
|
|
163
|
+
totalDutyAmount: Money | null;
|
|
164
|
+
}
|
|
165
|
+
export interface Cart {
|
|
166
|
+
id: string;
|
|
167
|
+
checkoutUrl: string;
|
|
168
|
+
totalQuantity: number;
|
|
169
|
+
cost: CartCost;
|
|
170
|
+
lines: CartLine[];
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB,CAAC,KAAK;IACvC,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,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IAAI,CAAC;CACvC;AAED,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,KAAK,CAAC;IACzB,0BAA0B,EAAE,KAAK,GAAG,IAAI,CAAC;IACzC,cAAc,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,KAAK,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED,MAAM,WAAW,QAAQ;IACvB,cAAc,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,KAAK,CAAC;IACnB,cAAc,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,KAAK,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codextech/commerce-platform",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Non-visual commerce utilities for Codex client-owned storefronts.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Codex-Tech-Solutions/commerce-platform.git"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./types": {
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"import": "./dist/types/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./money": {
|
|
29
|
+
"types": "./dist/money/index.d.ts",
|
|
30
|
+
"import": "./dist/money/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./images": {
|
|
33
|
+
"types": "./dist/images/index.d.ts",
|
|
34
|
+
"import": "./dist/images/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./errors": {
|
|
37
|
+
"types": "./dist/errors/index.d.ts",
|
|
38
|
+
"import": "./dist/errors/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./connectors/pinnacle": {
|
|
41
|
+
"types": "./dist/connectors/pinnacle/index.d.ts",
|
|
42
|
+
"import": "./dist/connectors/pinnacle/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./catalog": {
|
|
45
|
+
"types": "./dist/catalog/index.d.ts",
|
|
46
|
+
"import": "./dist/catalog/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./shopify": {
|
|
49
|
+
"types": "./dist/shopify/index.d.ts",
|
|
50
|
+
"import": "./dist/shopify/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./cart": {
|
|
53
|
+
"types": "./dist/cart/index.d.ts",
|
|
54
|
+
"import": "./dist/cart/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./react-router": {
|
|
57
|
+
"types": "./dist/react-router/index.d.ts",
|
|
58
|
+
"import": "./dist/react-router/index.js"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsc -p tsconfig.json",
|
|
63
|
+
"clean": "rm -rf dist",
|
|
64
|
+
"prepack": "npm run build",
|
|
65
|
+
"prepublishOnly": "npm run check",
|
|
66
|
+
"test": "npm run build && node --test test/*.test.mjs",
|
|
67
|
+
"check": "npm run build && node --test test/*.test.mjs"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"typescript": "5.9.3"
|
|
71
|
+
}
|
|
72
|
+
}
|