@picked/shopify 0.0.1-dev.1788925875333 → 0.0.12-next.14

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 (54) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/esm/index.js +22 -0
  3. package/dist/types/index.d.ts +2 -1
  4. package/dist/types/index.d.ts.map +1 -1
  5. package/package.json +24 -102
  6. package/dist/.tsbuildinfo +0 -1
  7. package/dist/ajax-api-TzqQuV55.js +0 -239
  8. package/dist/ajax-api-xrCwcyZw.cjs +0 -1
  9. package/dist/cjs/ajax-api/index.js +0 -1
  10. package/dist/cjs/json-api/index.js +0 -1
  11. package/dist/cjs/picked-app/index.js +0 -1
  12. package/dist/cjs/plugins/shopify/index.js +0 -1
  13. package/dist/cjs/storefront-api/index.js +0 -10
  14. package/dist/cjs/utils/index.js +0 -1
  15. package/dist/esm/ajax-api/index.js +0 -2
  16. package/dist/esm/json-api/index.js +0 -12
  17. package/dist/esm/picked-app/index.js +0 -10
  18. package/dist/esm/plugins/shopify/index.js +0 -2
  19. package/dist/esm/storefront-api/index.js +0 -30
  20. package/dist/esm/utils/index.js +0 -2
  21. package/dist/types/ajax-api/index.d.ts +0 -22
  22. package/dist/types/ajax-api/index.d.ts.map +0 -1
  23. package/dist/types/ajax-api/types.d.ts +0 -259
  24. package/dist/types/ajax-api/types.d.ts.map +0 -1
  25. package/dist/types/json-api/index.d.ts +0 -8
  26. package/dist/types/json-api/index.d.ts.map +0 -1
  27. package/dist/types/json-api/types.d.ts +0 -66
  28. package/dist/types/json-api/types.d.ts.map +0 -1
  29. package/dist/types/picked-app/index.d.ts +0 -15
  30. package/dist/types/picked-app/index.d.ts.map +0 -1
  31. package/dist/types/plugins/shopify/global-obj.d.ts +0 -10
  32. package/dist/types/plugins/shopify/global-obj.d.ts.map +0 -1
  33. package/dist/types/plugins/shopify/index.d.ts +0 -5
  34. package/dist/types/plugins/shopify/index.d.ts.map +0 -1
  35. package/dist/types/plugins/shopify/picked-config.d.ts +0 -87
  36. package/dist/types/plugins/shopify/picked-config.d.ts.map +0 -1
  37. package/dist/types/plugins/shopify/plugin.d.ts +0 -14
  38. package/dist/types/plugins/shopify/plugin.d.ts.map +0 -1
  39. package/dist/types/plugins/shopify/predicates.d.ts +0 -42
  40. package/dist/types/plugins/shopify/predicates.d.ts.map +0 -1
  41. package/dist/types/plugins/shopify/types.d.ts +0 -105
  42. package/dist/types/plugins/shopify/types.d.ts.map +0 -1
  43. package/dist/types/storefront-api/index.d.ts +0 -9
  44. package/dist/types/storefront-api/index.d.ts.map +0 -1
  45. package/dist/types/storefront-api/types.d.ts +0 -14
  46. package/dist/types/storefront-api/types.d.ts.map +0 -1
  47. package/dist/types/types.d.ts +0 -4
  48. package/dist/types/types.d.ts.map +0 -1
  49. package/dist/types/utils/debounce.d.ts +0 -3
  50. package/dist/types/utils/debounce.d.ts.map +0 -1
  51. package/dist/types/utils/index.d.ts +0 -2
  52. package/dist/types/utils/index.d.ts.map +0 -1
  53. package/dist/types/utils/request.d.ts +0 -3
  54. package/dist/types/utils/request.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ajax-api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,oCAAoC,EACpC,oCAAoC,EACrC,MAAM,SAAS,CAAA;AAKhB,wBAAgB,UAAU,CAAC,CAAC,GAAG,qBAAqB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAEhF;AAKD,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,SAAS,GAAG,eAAe,GAClC,OAAO,CAAC,oCAAoC,CAAC,CAI/C;AAKD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAEhG;AAKD,wBAAgB,OAAO,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAErD;AAKD,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAGpE;AAKD,wBAAgB,UAAU,CAAC,OAAO,EAAE;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE9B;AAKD,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,OAAO,CAAC,kBAAkB,CAAC,CAE7B;AAKD,wBAAgB,SAAS,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAEvD;AAKD,wBAAgB,gBAAgB,CAAC,eAAe,EAAE;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC;IACV,cAAc,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAA;CAClD,CAAC,CAQD"}
@@ -1,259 +0,0 @@
1
- export interface ShopifyAjaxApiProduct {
2
- id: number;
3
- title: string;
4
- handle: string;
5
- description: string | null;
6
- published_at: string;
7
- created_at: string;
8
- vendor: string;
9
- type: string;
10
- tags: string[];
11
- price: number;
12
- price_min: number;
13
- price_max: number;
14
- available: boolean;
15
- price_varies: boolean;
16
- compare_at_price: number | null;
17
- compare_at_price_min: number;
18
- compare_at_price_max: number;
19
- compare_at_price_varies: boolean;
20
- variants: ShopifyAjaxApiProductVariant[];
21
- images: string[];
22
- featured_image: string | null;
23
- options: ShopifyAjaxApiProductOption[];
24
- url: string;
25
- media?: ShopifyAjaxApiProductMedia[];
26
- requires_selling_plan: boolean;
27
- selling_plan_groups: ShopifyAjaxApiSellingPlanGroup[];
28
- }
29
- export interface ShopifyAjaxApiProductMedia {
30
- alt: string | null;
31
- id: number;
32
- position: number;
33
- preview_image: {
34
- aspect_ratio: number;
35
- height: number;
36
- width: number;
37
- src: string;
38
- };
39
- sources?: Array<{
40
- format: string;
41
- height: number;
42
- mime_type: string;
43
- url: string;
44
- width: number;
45
- }>;
46
- aspect_ratio: number;
47
- height: number;
48
- media_type: string;
49
- src: string;
50
- width: number;
51
- }
52
- export interface ShopifyAjaxApiProductVariant {
53
- id: number;
54
- title: string;
55
- options: string[];
56
- option1: string | null;
57
- option2: string | null;
58
- option3: string | null;
59
- price: number;
60
- weight: number;
61
- compare_at_price: number | null;
62
- inventory_management: string;
63
- inventory_quantity: number;
64
- available: boolean;
65
- sku: string | null;
66
- requires_shipping: boolean;
67
- taxable: boolean;
68
- barcode: string | null;
69
- name: string;
70
- public_title: string | null;
71
- quantity_rule: ShopifyAjaxApiQuantityRule;
72
- quantity_price_breaks?: ShopifyAjaxApiProductVariantQuantityPriceBreak[];
73
- requires_selling_plan: boolean;
74
- selling_plan_allocations: ShopifyAjaxApiSellingPlanAllocation[];
75
- featured_image: string | null;
76
- }
77
- export interface ShopifyAjaxApiProductVariantQuantityPriceBreak {
78
- quantity: number;
79
- price: number;
80
- }
81
- export interface ShopifyAjaxApiSellingPlanAllocation {
82
- price_adjustments: Array<{
83
- position: number;
84
- price: number;
85
- }>;
86
- price: number;
87
- compare_at_price: number;
88
- per_delivery_price: number;
89
- selling_plan_id: number;
90
- selling_plan_group_id: string;
91
- }
92
- export interface ShopifyAjaxApiProductOption {
93
- name: string;
94
- position: number;
95
- values: string[];
96
- }
97
- export interface ShopifyAjaxApiSellingPlanGroup {
98
- id: string;
99
- name: string;
100
- options: Array<{
101
- name: string;
102
- position: number;
103
- values: string[];
104
- }>;
105
- selling_plans: ShopifyAjaxApiSellingPlan[];
106
- app_id: string;
107
- }
108
- export interface ShopifyAjaxApiSellingPlan {
109
- id: number;
110
- name: string;
111
- description: string | null;
112
- options: Array<{
113
- name: string;
114
- position: number;
115
- value: string;
116
- }>;
117
- recurring_deliveries: boolean;
118
- price_adjustments: Array<{
119
- order_count: number | null;
120
- position: number;
121
- value_type: string;
122
- value: number;
123
- }>;
124
- }
125
- export interface ShopifyAjaxApiQuantityRule {
126
- min: number;
127
- max: number | null;
128
- increment: number;
129
- }
130
- export interface ShopifyAjaxApiShippingRate {
131
- name: string;
132
- price: string;
133
- source: string;
134
- delivery_range: string[];
135
- delivery_days: number;
136
- delivery_date: string | null;
137
- currency: string;
138
- }
139
- export interface ShopifyAjaxApiCart {
140
- token: string;
141
- note: string | null;
142
- attributes: Record<string, string>;
143
- original_total_price: number;
144
- total_price: number;
145
- total_discount: number;
146
- total_weight: number;
147
- item_count: number;
148
- items: ShopifyAjaxApiCartItem[];
149
- requires_shipping: boolean;
150
- currency: string;
151
- items_subtotal_price: number;
152
- cart_level_discount_applications: Array<ShopifyAjaxApiCartLevelDiscountApplication>;
153
- discount_codes?: ShopifyAjaxApiCartDiscountCode[];
154
- }
155
- export interface ShopifyAjaxApiCartDiscountCode {
156
- code: string;
157
- applicable: boolean;
158
- }
159
- export interface ShopifyAjaxApiCartLevelDiscountApplication {
160
- type: string;
161
- key?: string;
162
- value: string;
163
- value_type: string;
164
- allocation_method?: string;
165
- target_selection: string;
166
- target_type: string;
167
- title: string;
168
- total_allocated_amount: number;
169
- description?: string | null;
170
- }
171
- export interface ShopifyAjaxApiCartItem {
172
- id: number;
173
- quantity: number;
174
- properties: Record<string, string> | null;
175
- variant_id: number;
176
- key: string;
177
- title: string;
178
- price: number;
179
- original_price: number;
180
- discounted_price: number;
181
- line_price: number;
182
- original_line_price: number;
183
- total_discount: number;
184
- discounts: Array<{
185
- amount: number;
186
- title: string;
187
- }>;
188
- sku: string | null;
189
- grams: number;
190
- vendor: string;
191
- taxable: boolean;
192
- product_id: number;
193
- product_has_only_default_variant: boolean;
194
- gift_card: boolean;
195
- final_price: number;
196
- final_line_price: number;
197
- url: string;
198
- featured_image: ShopifyAjaxApiImage | null;
199
- image: string;
200
- handle: string;
201
- requires_shipping: boolean;
202
- product_type: string;
203
- product_title: string;
204
- variant_title: string;
205
- variant_options: string[];
206
- options_with_values: Array<{
207
- name: string;
208
- value: string;
209
- }>;
210
- selling_plan_allocation?: Record<string, string>;
211
- }
212
- export interface ShopifyAjaxApiProductRecommendations {
213
- intent: 'related' | 'complementary';
214
- products: ShopifyAjaxApiProduct[];
215
- }
216
- export interface ShopifyAjaxApiPredictiveSearchResult {
217
- resources: {
218
- results: {
219
- products: ShopifyAjaxApiPredictiveSearchProduct[];
220
- };
221
- };
222
- }
223
- export interface ShopifyAjaxApiPredictiveSearchProduct {
224
- available: boolean;
225
- body: string;
226
- compare_at_price_max: number;
227
- compare_at_price_min: number;
228
- handle: string;
229
- id: number;
230
- image: string;
231
- price: number;
232
- price_max: number;
233
- price_min: number;
234
- tags: string[];
235
- title: string;
236
- type: string;
237
- url: string;
238
- variants: ShopifyAjaxApiPredictiveSearchVariant[];
239
- vendor: string;
240
- featured_image?: ShopifyAjaxApiImage | null;
241
- }
242
- export interface ShopifyAjaxApiPredictiveSearchVariant {
243
- available: boolean;
244
- compare_at_price: number | null;
245
- id: number;
246
- image: string;
247
- price: number;
248
- title: string;
249
- url: string;
250
- featured_image?: ShopifyAjaxApiImage | null;
251
- }
252
- export interface ShopifyAjaxApiImage {
253
- alt: string;
254
- aspect_ratio: number;
255
- height: number;
256
- url: string;
257
- width: number;
258
- }
259
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ajax-api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAA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,MAAM,CAAA;IAEb,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IAEX,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAC5C;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -1,8 +0,0 @@
1
- import type { ShopifyJsonApiCollection, ShopifyJsonApiCollectionProduct } from './types';
2
- export declare function getCollection(handle: string): Promise<{
3
- collection: ShopifyJsonApiCollection;
4
- }>;
5
- export declare function getCollectionProducts(handle: string, limit?: number): Promise<{
6
- products: ShopifyJsonApiCollectionProduct[];
7
- }>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json-api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAA;AAExF,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,UAAU,EAAE,wBAAwB,CAAA;CAAE,CAAC,CAGnD;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,MAAW,GACjB,OAAO,CAAC;IACT,QAAQ,EAAE,+BAA+B,EAAE,CAAA;CAC5C,CAAC,CAGD"}
@@ -1,66 +0,0 @@
1
- export interface ShopifyJsonApiCollection {
2
- id: number;
3
- handle: string;
4
- title: string;
5
- updated_at: string;
6
- published_at: string;
7
- description: string;
8
- products_count: number;
9
- image: {
10
- id: number;
11
- created_at: string;
12
- alt: string | null;
13
- src: string;
14
- };
15
- }
16
- export interface ShopifyJsonApiCollectionProduct {
17
- id: number;
18
- title: string;
19
- body_html?: string;
20
- vendor: string;
21
- product_type: string;
22
- created_at: string;
23
- handle: string;
24
- updated_at: string;
25
- published_at: string;
26
- tags: string[];
27
- variants: ShopifyJsonApiCollectionProductVariant[];
28
- images: ShopifyJsonApiCollectionProductImage[];
29
- options: ShopifyJsonApiProductOption[];
30
- }
31
- export interface ShopifyJsonApiCollectionProductVariant {
32
- id: number;
33
- title: string;
34
- option1: string;
35
- option2: string;
36
- option3: string | null;
37
- sku: string;
38
- requires_shipping: boolean;
39
- taxable: boolean;
40
- featured_image: string | null;
41
- available: boolean;
42
- price: string;
43
- grams: number;
44
- compare_at_price: string | null;
45
- position: number;
46
- product_id: number;
47
- created_at: string;
48
- updated_at: string;
49
- }
50
- export interface ShopifyJsonApiCollectionProductImage {
51
- id: number;
52
- position: number;
53
- product_id: number;
54
- created_at: string;
55
- updated_at: string;
56
- variant_ids: number[];
57
- width: number;
58
- height: number;
59
- src: string;
60
- }
61
- export interface ShopifyJsonApiProductOption {
62
- name: string;
63
- position: number;
64
- values: string[];
65
- }
66
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/json-api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAA;QACV,UAAU,EAAE,MAAM,CAAA;QAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;QAClB,GAAG,EAAE,MAAM,CAAA;KACZ,CAAA;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EA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CACZ;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Fetches product metadata from the Picked Shopify App.
3
- *
4
- * @param id product handle for which to fetch metadata.
5
- * @returns A promise that resolves to the product metadata.
6
- */
7
- export declare function getProductMetadata(handle: string): Promise<Record<string, any>>;
8
- /**
9
- * Fetches collection metadata from the Picked Shopify App.
10
- *
11
- * @param id collection handle for which to fetch metadata.
12
- * @returns A promise that resolves to the collection metadata.
13
- */
14
- export declare function getCollectionMetadata(handle: string): Promise<Record<string, any>>;
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/picked-app/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAErF;AAED;;;;;GAKG;AAEH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAExF"}
@@ -1,10 +0,0 @@
1
- import type { EventPayload } from './types';
2
- export declare function getShopify(): import("./types").Shopify;
3
- export declare function supportsShopifyAnalytics(w: Window): w is Window & {
4
- Shopify: {
5
- analytics: {
6
- publish: (event: string, payload: EventPayload) => void;
7
- };
8
- };
9
- };
10
- //# sourceMappingURL=global-obj.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-obj.d.ts","sourceRoot":"","sources":["../../../../src/plugins/shopify/global-obj.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,wBAAgB,UAAU,8BAQzB;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG;IACjE,OAAO,EAAE;QAAE,SAAS,EAAE;YAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;SAAE,CAAA;KAAE,CAAA;CACpF,CAEA"}
@@ -1,5 +0,0 @@
1
- export { shopifyPlugin } from './plugin';
2
- export { getPickedConfig, getPickedConfigCollection, getPickedConfigCustomer, getPickedConfigExperiments, getPickedConfigFeatureExperiments, getPickedConfigProduct, getPickedConfigStorefrontApiToken, } from './picked-config';
3
- export { getShopify } from './global-obj';
4
- export type { PickedConfigCollection, PickedConfigCustomer, PickedConfigExperiment, PickedConfigProduct, PickedConfigProductCollection, PickedConfigProductVariant, Shopify, ShopifyPickedConfig, } from './types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/shopify/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,iCAAiC,EACjC,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,6BAA6B,EAC7B,0BAA0B,EAC1B,OAAO,EACP,mBAAmB,GACpB,MAAM,SAAS,CAAA"}
@@ -1,87 +0,0 @@
1
- /**
2
- * @file Readers for the Shopify-injected `window.pickedConfig`, including the
3
- * experiment-to-feature transform consumed by the Picked client.
4
- */
5
- import type { CreateClientOptions } from '@picked/client';
6
- import type { MetafieldObject, PickedConfigExperiment, ShopifyPickedConfig } from './types';
7
- export declare function getPickedConfig<ProductMetafields = MetafieldObject>(): Readonly<Partial<CreateClientOptions> & ShopifyPickedConfig<Partial<{
8
- available: boolean;
9
- collections: Partial<{
10
- id: number;
11
- }>[];
12
- featured_image: string;
13
- handle: string;
14
- id: number;
15
- metafields: ProductMetafields;
16
- price: number;
17
- tags: string[];
18
- title: string;
19
- type: string;
20
- url: string;
21
- variants: Partial<{
22
- available: boolean;
23
- title: string;
24
- id: number;
25
- price: number;
26
- inventory_quantity: number;
27
- option1: string;
28
- }>[];
29
- vendor: string;
30
- }>>> | undefined;
31
- export declare function getPickedConfigCustomer(): Partial<{
32
- accepts_marketing: boolean;
33
- email: string;
34
- first_name: string | null;
35
- has_account: boolean;
36
- id: number;
37
- last_name: string | null;
38
- metafields: MetafieldObject;
39
- orders_count: number;
40
- phone: string | null;
41
- tax_exempt: boolean;
42
- }> | undefined;
43
- export declare function getPickedConfigProduct<ProductMetafields = MetafieldObject>(): Partial<{
44
- available: boolean;
45
- collections: Partial<{
46
- id: number;
47
- }>[];
48
- featured_image: string;
49
- handle: string;
50
- id: number;
51
- metafields: ProductMetafields;
52
- price: number;
53
- tags: string[];
54
- title: string;
55
- type: string;
56
- url: string;
57
- variants: Partial<{
58
- available: boolean;
59
- title: string;
60
- id: number;
61
- price: number;
62
- inventory_quantity: number;
63
- option1: string;
64
- }>[];
65
- vendor: string;
66
- }> | undefined;
67
- export declare function getPickedConfigCollection(): Partial<{
68
- title: string;
69
- id: number;
70
- handle: string;
71
- metafields: MetafieldObject;
72
- }> | undefined;
73
- export declare function getPickedConfigExperiments(): PickedConfigExperiment[] | undefined;
74
- export declare function getPickedConfigStorefrontApiToken(): string | undefined;
75
- /**
76
- * Builds the SDK feature-config map from enabled Shopify experiments.
77
- *
78
- * Disabled experiments are skipped; each enabled experiment becomes a feature whose
79
- * `decide` allocates the session by weight, carrying its `enabled` flag and `weight`
80
- * so consumers can read them via the client feature index.
81
- *
82
- * @returns {CreateClientOptions['features']} A map of experiment id to feature config, empty when there are no experiments.
83
- * @example
84
- * const features = getPickedConfigFeatureExperiments()
85
- */
86
- export declare function getPickedConfigFeatureExperiments(): CreateClientOptions['features'];
87
- //# sourceMappingURL=picked-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"picked-config.d.ts","sourceRoot":"","sources":["../../../../src/plugins/shopify/picked-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAOzD,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EAEtB,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB,wBAAgB,eAAe,CAAC,iBAAiB,GAAG,eAAe;;;;;;;;;;;;;;;;;;;;;;;iBAMlE;AAED,wBAAgB,uBAAuB;;;;;;;;;;;eAMtC;AAED,wBAAgB,sBAAsB,CAAC,iBAAiB,GAAG,eAAe;;;;;;;;;;;;;;;;;;;;;;;eAMzE;AAED,wBAAgB,yBAAyB;;;;;eAMxC;AAED,wBAAgB,0BAA0B,yCAMzC;AAED,wBAAgB,iCAAiC,uBAMhD;AAmBD;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAmCnF"}
@@ -1,14 +0,0 @@
1
- /** @file Shopify plugin — publishes Picked session and feature data to Shopify's analytics.web-pixels API. */
2
- import type { Plugin } from '@picked/client';
3
- /**
4
- * Shopify integration plugin — publishes session metadata and feature buckets to Shopify's
5
- * analytics.web-pixels API and updates cart attributes via the AJAX cart API.
6
- *
7
- * @returns {Plugin} The Shopify plugin definition.
8
- * @example
9
- * ```typescript
10
- * createClient({ plugins: [shopifyPlugin()] })
11
- * ```
12
- */
13
- export declare const shopifyPlugin: () => Plugin;
14
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/shopify/plugin.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,KAAK,EAA2B,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAqBrE;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,QAAO,MAkGhC,CAAA"}
@@ -1,42 +0,0 @@
1
- import type { StateSnapshot } from '@picked/client';
2
- export declare const evaluatePathname: (regexPattern: RegExp, location?: StateSnapshot['location']) => boolean;
3
- /**
4
- * Evaluate handle from path using regex pattern
5
- *
6
- * @param regexPattern Regex pattern to extract handle
7
- * @param location Location object containing pathname
8
- * @returns handle string or undefined
9
- */
10
- export declare const evaluateHandleByPath: (regexPattern: RegExp, location?: StateSnapshot['location']) => string | undefined;
11
- /**
12
- * Evaluate handle from pickedConfig based on type
13
- *
14
- * @param type page type: 'product' | 'collection'
15
- * @returns handle string or undefined
16
- */
17
- export declare const evaluateHandleByType: (type: 'product' | 'collection') => string | false;
18
- interface PredicateArgs {
19
- location?: StateSnapshot['location'];
20
- }
21
- export declare const shopifyPredicates: {
22
- 'is-page': ({ location }: PredicateArgs) => boolean;
23
- 'get-page-handle': ({ location }: PredicateArgs) => string | undefined;
24
- 'is-product-page': () => boolean;
25
- 'get-product-handle': () => string | false;
26
- 'is-collection-page': () => boolean;
27
- 'get-collection-handle': () => string | false;
28
- 'is-blog-page': ({ location }: PredicateArgs) => boolean;
29
- 'get-blog-handle': ({ location }: PredicateArgs) => string | undefined;
30
- 'is-article-page': ({ location }: PredicateArgs) => boolean;
31
- 'get-article-handle': ({ location }: PredicateArgs) => string | undefined;
32
- 'is-app-proxy-page': ({ location }: PredicateArgs) => boolean;
33
- 'get-app-proxy-handle': ({ location }: PredicateArgs) => string | undefined;
34
- 'is-account-page': ({ location }: PredicateArgs) => boolean;
35
- 'is-login-page': ({ location }: PredicateArgs) => boolean;
36
- 'is-register-page': ({ location }: PredicateArgs) => boolean;
37
- 'is-cart-page': ({ location }: PredicateArgs) => boolean;
38
- 'is-checkout-page': ({ location }: PredicateArgs) => boolean;
39
- 'is-homepage': ({ location }: PredicateArgs) => boolean;
40
- };
41
- export {};
42
- //# sourceMappingURL=predicates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../../src/plugins/shopify/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAmBnD,eAAO,MAAM,gBAAgB,iBACb,MAAM,aACT,aAAa,CAAC,UAAU,CAAC,KACnC,OAMF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iBACjB,MAAM,aACT,aAAa,CAAC,UAAU,CAAC,uBAQrC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,SAAU,SAAS,GAAG,YAAY,mBASlE,CAAA;AAED,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;CACrC;AAED,eAAO,MAAM,iBAAiB;IAE5B,SAAS,iBAAiB,aAAa;IACvC,iBAAiB,iBAAiB,aAAa;IAE/C,iBAAiB;IACjB,oBAAoB;IAEpB,oBAAoB;IACpB,uBAAuB;IAEvB,cAAc,iBAAiB,aAAa;IAC5C,iBAAiB,iBAAiB,aAAa;IAE/C,iBAAiB,iBAAiB,aAAa;IAC/C,oBAAoB,iBAAiB,aAAa;IAGlD,mBAAmB,iBAAiB,aAAa;IACjD,sBAAsB,iBAAiB,aAAa;IAGpD,iBAAiB,iBAAiB,aAAa;IAE/C,eAAe,iBAAiB,aAAa;IAC7C,kBAAkB,iBAAiB,aAAa;IAGhD,cAAc,iBAAiB,aAAa;IAE5C,kBAAkB,iBAAiB,aAAa;IAEhD,aAAa,iBAAiB,aAAa;CAC5C,CAAA"}
@@ -1,105 +0,0 @@
1
- declare global {
2
- interface Window {
3
- Shopify?: Shopify;
4
- }
5
- }
6
- export interface Shopify {
7
- shop: string;
8
- locale: string;
9
- currency: {
10
- active: string;
11
- rate: string;
12
- };
13
- country: string;
14
- theme: {
15
- name: string;
16
- id: number;
17
- schema_name: string;
18
- schema_version: string;
19
- theme_store_id: number | null;
20
- role: string;
21
- handle: string;
22
- style: {
23
- id: number | null;
24
- handle: string | null;
25
- };
26
- };
27
- routes: {
28
- root: string;
29
- };
30
- PaymentButton: {
31
- isStorefrontPortableWallets: boolean;
32
- };
33
- analytics?: {
34
- publish?: (event: string, payload: EventPayload) => void;
35
- };
36
- }
37
- export interface EventPayload {
38
- [key: string]: string | number | boolean | null | undefined | EventPayload | Array<string | number | boolean | null | undefined | EventPayload>;
39
- }
40
- export interface PickedConfigExperiment {
41
- enabled: boolean;
42
- id: string;
43
- name: string;
44
- version: number;
45
- weight: number;
46
- }
47
- export type PickedConfigCollection = Partial<{
48
- title: string;
49
- id: number;
50
- handle: string;
51
- metafields: MetafieldObject;
52
- }>;
53
- export type PickedConfigProductVariant = Partial<{
54
- available: boolean;
55
- title: string;
56
- id: number;
57
- price: number;
58
- inventory_quantity: number;
59
- option1: string;
60
- }>;
61
- export type PickedConfigProductCollection = Partial<{
62
- id: number;
63
- }>;
64
- export type MetafieldValue = string | number | boolean | null | undefined;
65
- export interface MetafieldObject {
66
- [key: string]: MetafieldValue | MetafieldObject | MetafieldValue[] | MetafieldObject[];
67
- }
68
- export type PickedConfigProduct<T = MetafieldObject> = Partial<{
69
- available: boolean;
70
- collections: PickedConfigProductCollection[];
71
- featured_image: string;
72
- handle: string;
73
- id: number;
74
- metafields: T;
75
- price: number;
76
- tags: string[];
77
- title: string;
78
- type: string;
79
- url: string;
80
- variants: PickedConfigProductVariant[];
81
- vendor: string;
82
- }>;
83
- export type PickedConfigCustomer = Partial<{
84
- accepts_marketing: boolean;
85
- email: string;
86
- first_name: string | null;
87
- has_account: boolean;
88
- id: number;
89
- last_name: string | null;
90
- metafields: MetafieldObject;
91
- orders_count: number;
92
- phone: string | null;
93
- tax_exempt: boolean;
94
- }>;
95
- export interface ShopifyPickedConfig<P = PickedConfigProduct> {
96
- [key: string]: unknown;
97
- customer?: PickedConfigCustomer;
98
- product?: P;
99
- collection?: PickedConfigCollection;
100
- experiments?: PickedConfigExperiment[];
101
- storefront_api?: {
102
- token?: string;
103
- };
104
- }
105
- //# sourceMappingURL=types.d.ts.map