@picked/shopify 0.0.117-next.2 → 0.0.117-next.3

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 (48) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/cjs/ajax-api/index.d.ts +22 -0
  3. package/dist/cjs/ajax-api/index.d.ts.map +1 -0
  4. package/dist/cjs/ajax-api/types.d.ts +259 -0
  5. package/dist/cjs/ajax-api/types.d.ts.map +1 -0
  6. package/dist/cjs/index.d.ts +2 -0
  7. package/dist/cjs/index.d.ts.map +1 -0
  8. package/dist/cjs/json-api/index.d.ts +8 -0
  9. package/dist/cjs/json-api/index.d.ts.map +1 -0
  10. package/dist/cjs/json-api/types.d.ts +66 -0
  11. package/dist/cjs/json-api/types.d.ts.map +1 -0
  12. package/dist/cjs/package.json +3 -0
  13. package/dist/cjs/picked-app/index.d.ts +15 -0
  14. package/dist/cjs/picked-app/index.d.ts.map +1 -0
  15. package/dist/cjs/plugins/shopify/global-obj.d.ts +10 -0
  16. package/dist/cjs/plugins/shopify/global-obj.d.ts.map +1 -0
  17. package/dist/cjs/plugins/shopify/index.d.ts +5 -0
  18. package/dist/cjs/plugins/shopify/index.d.ts.map +1 -0
  19. package/dist/cjs/plugins/shopify/picked-config.d.ts +87 -0
  20. package/dist/cjs/plugins/shopify/picked-config.d.ts.map +1 -0
  21. package/dist/cjs/plugins/shopify/plugin.d.ts +14 -0
  22. package/dist/cjs/plugins/shopify/plugin.d.ts.map +1 -0
  23. package/dist/cjs/plugins/shopify/predicates.d.ts +42 -0
  24. package/dist/cjs/plugins/shopify/predicates.d.ts.map +1 -0
  25. package/dist/cjs/plugins/shopify/types.d.ts +105 -0
  26. package/dist/cjs/plugins/shopify/types.d.ts.map +1 -0
  27. package/dist/cjs/storefront-api/index.d.ts +9 -0
  28. package/dist/cjs/storefront-api/index.d.ts.map +1 -0
  29. package/dist/cjs/storefront-api/types.d.ts +14 -0
  30. package/dist/cjs/storefront-api/types.d.ts.map +1 -0
  31. package/dist/cjs/types.d.ts +4 -0
  32. package/dist/cjs/types.d.ts.map +1 -0
  33. package/dist/cjs/utils/debounce.d.ts +3 -0
  34. package/dist/cjs/utils/debounce.d.ts.map +1 -0
  35. package/dist/cjs/utils/index.d.ts +2 -0
  36. package/dist/cjs/utils/index.d.ts.map +1 -0
  37. package/dist/cjs/utils/request.d.ts +3 -0
  38. package/dist/cjs/utils/request.d.ts.map +1 -0
  39. package/dist/types/ajax-api/index.d.ts +1 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/dist/types/json-api/index.d.ts +1 -1
  42. package/dist/types/plugins/shopify/global-obj.d.ts +2 -2
  43. package/dist/types/plugins/shopify/index.d.ts +4 -4
  44. package/dist/types/plugins/shopify/picked-config.d.ts +1 -1
  45. package/dist/types/storefront-api/index.d.ts +1 -1
  46. package/dist/types/types.d.ts +3 -3
  47. package/dist/types/utils/index.d.ts +1 -1
  48. package/package.json +60 -25
package/dist/.tsbuildinfo CHANGED
@@ -1 +1 @@
1
- {"version":"7.0.0-dev.20260707.2","root":[[64,68],[127,137],[153,154]],"packageJsons":["../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/package.json","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/package.json","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/package.json","../../client/package.json","../../delivery-api-client/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/package.json","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/package.json","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/package.json","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/package.json","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/package.json","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../src/ajax-api/types.ts","../src/json-api/types.ts","../src/storefront-api/types.ts","../src/types.ts","../src/index.ts","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/index.d.ts","../../delivery-api-client/dist/types/client-headers.d.ts","../../delivery-api-client/dist/types/project-config.d.ts","../../delivery-api-client/dist/types/types.d.ts","../../delivery-api-client/dist/types/fetch.d.ts","../../delivery-api-client/dist/types/actions.d.ts","../../delivery-api-client/dist/types/action-response.d.ts","../../delivery-api-client/dist/types/index.d.ts","../../client/dist/types/entities/component/lazyComponent.d.ts","../../client/dist/types/entities/component/component.d.ts","../../client/dist/types/logic-engine.d.ts","../../client/dist/types/entities/condition/condition.d.ts","../../client/dist/types/entities/content/content.d.ts","../../client/dist/types/entities/step/step.d.ts","../../client/dist/types/entities/history/history.d.ts","../../client/dist/types/entities/experience-instance/experience-instance.d.ts","../../client/dist/types/entities/framework/framework.d.ts","../../client/dist/types/utils/node-tree/node-adjacency.d.ts","../../client/dist/types/utils/node-tree/node-tree-index.d.ts","../../client/dist/types/entities/experience/experience.d.ts","../../client/dist/types/entities/plugin/plugin.d.ts","../../client/dist/types/utils/logger.d.ts","../../client/dist/types/lifecycle/rules-logic.d.ts","../../client/dist/types/lifecycle/condition-selection.d.ts","../../client/dist/types/lifecycle/lifecycle.d.ts","../../client/dist/types/entities/field/policies.d.ts","../../client/dist/types/entities/field/field.d.ts","../../client/dist/types/schema-registry.d.ts","../../client/dist/types/entities/feature/feature.d.ts","../../client/dist/types/entities/response/response-validation.d.ts","../../client/dist/types/entities/response/response.d.ts","../../client/dist/types/entities/session/session.d.ts","../../client/dist/types/utils/events.d.ts","../../client/dist/types/plugins/dynamic-experiences/types.d.ts","../../client/dist/types/entities/action/action.d.ts","../../client/dist/types/utils/user-timing.d.ts","../../client/dist/types/data-source/request-observer.d.ts","../../client/dist/types/utils/client-telemetry.d.ts","../../client/dist/types/entities/workspace/workspace.d.ts","../../client/dist/types/picked.d.ts","../../client/dist/types/lifecycle/state-snapshot.d.ts","../../client/dist/types/entities/predicate/predicate.d.ts","../../client/dist/types/client.d.ts","../../client/dist/types/utils/dom.d.ts","../../client/dist/types/utils/rehydrate-scripts.d.ts","../../client/dist/types/utils/html-asset-value.d.ts","../../client/dist/types/utils/preview-session.d.ts","../../client/dist/types/data-source/preview-unavailable.d.ts","../../client/dist/types/utils/inert-script-report.d.ts","../../client/dist/types/utils/supports.d.ts","../../client/dist/types/utils/storage.d.ts","../../client/dist/types/utils/rules-logic.d.ts","../../client/dist/types/utils/picked-config.d.ts","../../client/dist/types/entities/content/reference.d.ts","../../client/dist/types/exports.d.ts","../../client/dist/types/utils/search-params.d.ts","../../client/dist/types/typed-content.d.ts","../../client/dist/types/index.d.ts","../src/utils/debounce.ts","../src/plugins/shopify/types.ts","../src/plugins/shopify/picked-config.ts","../src/plugins/shopify/predicates.ts","../src/plugins/shopify/global-obj.ts","../src/plugins/shopify/plugin.ts","../src/plugins/shopify/index.ts","../src/utils/request.ts","../src/ajax-api/index.ts","../src/json-api/index.ts","../src/picked-app/index.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/types.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/graphql-client.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/index.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/utilities.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/operation-types.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/types.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/validations.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/api-versions.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/http-fetch.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/utilities.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/index.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/index.d.ts","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/types.d.ts","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/storefront-api-client.d.ts","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/index.d.ts","../src/storefront-api/index.ts","../src/utils/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44ec192ecdb7d1b1a46e310ed6fecd0d","signature":"2a1d897b99dc8db742f899e71ff4bc2b","impliedNodeFormat":1},{"version":"588f0deb0d66e5e94a5c226258f5491d","signature":"609748ba5a6ac9bd1d7ed09deb3a3983","impliedNodeFormat":1},{"version":"6a54066fbee30a8de87c1ffb172a3a96","signature":"7b41f07aac2c3d22482c40434d459812","impliedNodeFormat":1},{"version":"f9fa2a82b71981290fa66cd23b432c60","signature":"65768f510c037971aa58d265cfcc57c8","impliedNodeFormat":1},{"version":"9b4d425f4b00d5c483b9b457eb60c104","signature":"3696f8d0ec84ff48464003547c0b23b2","impliedNodeFormat":1},"4d30d5ec0ec1f3784ba6050d307a4db5","f992571afa109506b5288c980ee5e498","9af7eb4f1538dc2efa7288609b15dd34","f02d570d92e7970b351373e3a39d6d4b","bd6bd1ac3925d2a2668e7b21bedc2e04","9967558c324a381bdf951331c4df5949","5b0c8f64b9fa7c90c85abfafd3e78521","7469c900c435b241f4784233793f68ec","c693b09dcd6d7e0986763de264a6456e","331eba2c930bea66378f3e58658b17fb","757d173c6105d046a4c1f1ceaef3802b","8520fb9b295b10dd7d5bd1805eb6dc05","257aa345e35665cec2f78afe005faa9e","990bc7054c18efd1fc19e21df19fb00a","5859a130c0b0cb8b9661e2cdc0ac0cd0","11702f490d55070224433c6200fb0e44","239b4ca55b42b39d96c24ce761c9f16a","dfc59183e57d6443f70056b89829d55a","0a58cbf05d0e83b5cfb3ed153151750d","9f2b8e7468f2135a809ca915cf383a32","e1873fe7af9ce55a5d1b5b9a3bc39a9d","b7ca911c22ea11fd08f4643020b1450d","e2125552fa2b9ddfbc8bb60bdac55c97","486d01fd3c94ebd16f84f6536f6f1c91","5356e38ea582e02b409e424a26d5ecc8","1984ab6f3dafbd4102e956997fe2352c","a7a8153236751bd356a79bb30c89af69","11ad862040eda62711f418f9a84c58ff","ec84b27f9dded8ef584c7249da37ea94","dbff577bf4b6d09d2e3fc5744979029e","885a241e00ad3913a5a55b95e51424a0","9fa74e96a9f54b715f18adbd8871cfeb","2320027556c457c034d578eba594b155","24ac617a10de59cc60d7d52b470a1ac4","ca9c043b1303b623f5e46d169f45329a","9cd895bcf53f393578205f2f79afb8b3","4b895c773ffabf07dbbacb7467333270","5d7eb5ba82878b9badbe908f8fcdd7e9","ce2a9dbbf6590208fa018c1cf1027b09","ae2a6c4410a4576443136cb72af76f48","9b7f6365fa9ad8d272d6953ee99c7a20","ca5b5f0c47153cfb8d1b3b27192fbce7","2334480ba8cdeb26e4a37ab752120fb9","6d4649cdd413dd635ac0ca0b37d452cc",{"version":"4198eb85452f1ee8650e3525ebc56405","affectsGlobalScope":true,"impliedNodeFormat":1},"a51a8e6599581e605aa01164b2aecf58","698b1018d1c18af70f8828dcf86dfb3f","5cb76b3a982286c6bafa06b6f622629e","8378623bb64e556c9c62d37b214e3f2a","f1b6fd6b86d263291725f1e6450c7a0f","a860181621c15a4495aea811188f6ade","209ff181f8921efcd0dc66e34b9e455d",{"version":"3c818c69e25524502fb01cdd4eb204ff","affectsGlobalScope":true,"impliedNodeFormat":1},"457028a15a800a0101897207083230b4","c2701f1731e335f6b79d584906b18c14","822714c9c063cb8aa30df160952b0b93","25964893a5671a9c91d97da7d2a90561","7f3862c3416b4cd58bde29bb2af9132b",{"version":"55c7d4301a1b8831ae2dd4db52884ddb","signature":"c71a52cd7a11bebd076a13bdd151eef1","impliedNodeFormat":1},{"version":"210f531e9db83cc9814327038c68c565","signature":"a2f48913b6b0ce598592e8a3cc6ec327","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6907274c235c806dbbdd5acd7c0a5094","signature":"068fe66ca212cb4032fa773d3017ce1c","impliedNodeFormat":1},{"version":"12ed0905db473972803f72200c983fa8","signature":"3c5148301db2be45392202e1e41e66c3","impliedNodeFormat":1},{"version":"ef0593995bfc3d4d9a6b2cf495b36404","signature":"4ee5067285a1049cd1cdc6371cbc1c57","impliedNodeFormat":1},{"version":"807d28b94098ffc7fe6754bcfd510e82","signature":"37b329bbe218ac69e0086acbea2f9e2f","impliedNodeFormat":1},{"version":"2caac142ca8821ba6bef29bc89897828","signature":"a131aa9968d7378dca3f8e84dea626db","impliedNodeFormat":1},{"version":"167ca7f8735988347dca29b722b5f39a","signature":"365296a5484c2d4681bf2cff3aa6cbb3","impliedNodeFormat":1},{"version":"c33545d2510f240120d90e89711e3290","signature":"284d09781436f5456079ccf8f12355c3","impliedNodeFormat":1},{"version":"bd8da0b965b44e7052b442f77d83cf9d","signature":"374da215c64c1129a5ba0f22a7d3a002","impliedNodeFormat":1},{"version":"5bedbae4cabd4e3b6c8e981e1279cfa7","signature":"34d1d3b0aa0cf4b03df413359da00880","impliedNodeFormat":1},"0c16c5c8945b669a2f394c521168f0a6","c0688009894a734236f474af9a6a4a44","55e8c9f61285b02cb2f1fa8caad4e903","2f3e243d1a65b1cfc603a1b4b2aaddf5","cc0127c0ef1eacaeba0c3a10bd4822b0","b3dd56db02a04535796c784d405a2fa5","5dc876ab5501402f445d966acb7150a1","0dfd2926c02532d4c971abc3b09ca099","bf1f0b8bf04ebc0c3363571439b431cd","04e24265382a2ad28abec81de53a2a79","a5b0fe2c360fb9b73b8e4d918f0dc3e5","539e7bfdc5109c6e6c6e03ac71435a6f","62e248d144b53eff0d45d95f427bbe7e","4f0729689a0e8a33fbb38b4f2c24ee2b","82e30764088aebadc1981d8ec29925dd",{"version":"458ff060e80380db683415b9386e4f86","signature":"16d61563ec9c66121adab8b78a3c385c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"27f184c542395ff07f1acd2937abae2a","signature":"f0c394972d8721da6499f2e24a565e62","impliedNodeFormat":1}],"fileIdsList":[[141,143,144,145,146,147],[138,142],[138,143],[143],[138],[138,139],[140,148],[149,150,151],[150],[149],[78,79,89,95,97,103,110],[69,84,108,109],[69,77,108,126],[69,79],[69],[69,81],[69,78,82,83,85,88,108],[69,78,79,80,82,85,87,108],[69,96,108],[69,79,94],[69,78,84,108],[69,88],[69,108],[69,108,109],[79,95],[69,95,96,98,108],[77,88,89,108,111,112,113,114,115,116,117,118,119,120,121,122],[77,78,80,81,82,83,84,85,88,89,94,95,96,97,99,101,103,108,109,110,111,122,123,124,125],[69,79,80,108],[69,79,108],[69,95,108],[69,76,78,80,81,82,85,88,89,90,91,92,93,95,96,97,100,101,102,103,104,106,107,109,110,111,123,126],[76],[81,95],[69,81,96],[105],[88],[69,82,84,97,99,100],[86,88],[111],[79,108],[84],[72],[70,72,73,74,75],[71],[64,134],[67],[65,134],[134],[126,128],[128,129,131,132],[69,126,127,130,131,135],[126,129],[66,133,152],[64,65,66],[133]],"options":{"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","esModuleInterop":true},"referencedMap":[[148,1],[143,2],[147,3],[144,4],[139,5],[146,5],[140,6],[149,7],[152,8],[151,9],[150,10],[111,11],[103,12],[78,13],[80,14],[81,15],[122,16],[84,17],[88,18],[97,19],[95,20],[85,21],[83,22],[89,23],[110,24],[98,25],[99,26],[100,15],[82,16],[107,15],[123,27],[126,28],[92,29],[93,30],[91,30],[109,31],[108,32],[102,33],[96,34],[125,35],[106,36],[112,37],[101,38],[86,37],[87,39],[121,40],[120,41],[119,42],[73,43],[76,44],[72,45],[135,46],[68,47],[136,48],[137,49],[131,50],[133,51],[129,50],[132,52],[130,53],[153,54],[67,55],[154,49],[134,56]],"latestChangedDtsFile":"./types/utils/index.d.ts"}
1
+ {"version":"7.0.0-dev.20260707.2","root":[[64,68],[127,137],[153,154]],"packageJsons":["../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/package.json","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/package.json","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/package.json","../../client/package.json","../../delivery-api-client/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/package.json","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/package.json","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/package.json","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/package.json","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/package.json","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../src/ajax-api/types.ts","../src/json-api/types.ts","../src/storefront-api/types.ts","../src/types.ts","../src/index.ts","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/index.d.ts","../../delivery-api-client/dist/types/client-headers.d.ts","../../delivery-api-client/dist/types/project-config.d.ts","../../delivery-api-client/dist/types/types.d.ts","../../delivery-api-client/dist/types/fetch.d.ts","../../delivery-api-client/dist/types/actions.d.ts","../../delivery-api-client/dist/types/action-response.d.ts","../../delivery-api-client/dist/types/index.d.ts","../../client/dist/types/entities/component/lazyComponent.d.ts","../../client/dist/types/entities/component/component.d.ts","../../client/dist/types/logic-engine.d.ts","../../client/dist/types/entities/condition/condition.d.ts","../../client/dist/types/entities/content/content.d.ts","../../client/dist/types/entities/step/step.d.ts","../../client/dist/types/entities/history/history.d.ts","../../client/dist/types/entities/experience-instance/experience-instance.d.ts","../../client/dist/types/entities/framework/framework.d.ts","../../client/dist/types/utils/node-tree/node-adjacency.d.ts","../../client/dist/types/utils/node-tree/node-tree-index.d.ts","../../client/dist/types/entities/experience/experience.d.ts","../../client/dist/types/entities/plugin/plugin.d.ts","../../client/dist/types/utils/logger.d.ts","../../client/dist/types/lifecycle/rules-logic.d.ts","../../client/dist/types/lifecycle/condition-selection.d.ts","../../client/dist/types/lifecycle/lifecycle.d.ts","../../client/dist/types/entities/field/policies.d.ts","../../client/dist/types/entities/field/field.d.ts","../../client/dist/types/schema-registry.d.ts","../../client/dist/types/entities/feature/feature.d.ts","../../client/dist/types/entities/response/response-validation.d.ts","../../client/dist/types/entities/response/response.d.ts","../../client/dist/types/entities/session/session.d.ts","../../client/dist/types/utils/events.d.ts","../../client/dist/types/plugins/dynamic-experiences/types.d.ts","../../client/dist/types/entities/action/action.d.ts","../../client/dist/types/utils/user-timing.d.ts","../../client/dist/types/data-source/request-observer.d.ts","../../client/dist/types/utils/client-telemetry.d.ts","../../client/dist/types/entities/workspace/workspace.d.ts","../../client/dist/types/picked.d.ts","../../client/dist/types/lifecycle/state-snapshot.d.ts","../../client/dist/types/entities/predicate/predicate.d.ts","../../client/dist/types/client.d.ts","../../client/dist/types/utils/dom.d.ts","../../client/dist/types/utils/rehydrate-scripts.d.ts","../../client/dist/types/utils/html-asset-value.d.ts","../../client/dist/types/utils/preview-session.d.ts","../../client/dist/types/data-source/preview-unavailable.d.ts","../../client/dist/types/utils/inert-script-report.d.ts","../../client/dist/types/utils/supports.d.ts","../../client/dist/types/utils/storage.d.ts","../../client/dist/types/utils/rules-logic.d.ts","../../client/dist/types/utils/picked-config.d.ts","../../client/dist/types/entities/content/reference.d.ts","../../client/dist/types/exports.d.ts","../../client/dist/types/utils/search-params.d.ts","../../client/dist/types/typed-content.d.ts","../../client/dist/types/index.d.ts","../src/utils/debounce.ts","../src/plugins/shopify/types.ts","../src/plugins/shopify/picked-config.ts","../src/plugins/shopify/predicates.ts","../src/plugins/shopify/global-obj.ts","../src/plugins/shopify/plugin.ts","../src/plugins/shopify/index.ts","../src/utils/request.ts","../src/ajax-api/index.ts","../src/json-api/index.ts","../src/picked-app/index.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/types.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/graphql-client.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/index.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/utilities.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/operation-types.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/types.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/validations.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/api-versions.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/graphql-client/http-fetch.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/utilities.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/api-client-utilities/index.d.ts","../../../node_modules/.pnpm/@shopify+graphql-client@1.4.2/node_modules/@shopify/graphql-client/dist/ts/index.d.ts","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/types.d.ts","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/storefront-api-client.d.ts","../../../node_modules/.pnpm/@shopify+storefront-api-client@1.0.10/node_modules/@shopify/storefront-api-client/dist/ts/index.d.ts","../src/storefront-api/index.ts","../src/utils/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"44ec192ecdb7d1b1a46e310ed6fecd0d","signature":"2a1d897b99dc8db742f899e71ff4bc2b","impliedNodeFormat":1},{"version":"588f0deb0d66e5e94a5c226258f5491d","signature":"609748ba5a6ac9bd1d7ed09deb3a3983","impliedNodeFormat":1},{"version":"6a54066fbee30a8de87c1ffb172a3a96","signature":"7b41f07aac2c3d22482c40434d459812","impliedNodeFormat":1},{"version":"f9fa2a82b71981290fa66cd23b432c60","signature":"65768f510c037971aa58d265cfcc57c8","impliedNodeFormat":1},{"version":"9b4d425f4b00d5c483b9b457eb60c104","signature":"3696f8d0ec84ff48464003547c0b23b2","impliedNodeFormat":1},"4d30d5ec0ec1f3784ba6050d307a4db5","f992571afa109506b5288c980ee5e498","9af7eb4f1538dc2efa7288609b15dd34","ae7e78df5f37465bb384dfcb72a638f2","1339bf75b1fd30332feee5fc559be5a8","9967558c324a381bdf951331c4df5949","5b0c8f64b9fa7c90c85abfafd3e78521","60911a6610894a93ccd58555c1e24f14","c693b09dcd6d7e0986763de264a6456e","1659e44d3c3e220c72bd1144c26d7409","757d173c6105d046a4c1f1ceaef3802b","388af522c75e0123abce4d5657cd842c","257aa345e35665cec2f78afe005faa9e","8ac9c5ed1b4f67523f6d5098553d9c61","a4226fe9b46bec13a4aca8f21dd79ea6","731df86919429b1f3a5475df07d5fa48","b23bcd8bbea2a46ea5e101c4d4c1dae5","32c0e9a24a3ea8aa9764d9d56a1491fc","59c26c3da6cbd2530196d8b576fbf309","1a17ee77bc95db24cce543dde6784a0b","541d6758c68504c4d1484c63155116fb","b7ca911c22ea11fd08f4643020b1450d","cf0a02222304ff92743e22c59ea480cd","a950720c8b77f23cb04a597f8bf96947","040ea24df3ab038fe3650e57e38f19a9","1984ab6f3dafbd4102e956997fe2352c","01cd8422b63b772f59beb40168821d30","ca3a936769b356e6e79ef015f3dadc4b","d85cfdc950ca5e23b26fb6be6065bf2a","002579b2b3af496ebca4799c4d2ae316","ee92614d278a0f671663a3825a95adfd","9fa74e96a9f54b715f18adbd8871cfeb","103927ee710a82be79d930d364f38426","24ac617a10de59cc60d7d52b470a1ac4","08992740593952491efd70d80661dda1","9cd895bcf53f393578205f2f79afb8b3","4b895c773ffabf07dbbacb7467333270","466e4ccd5bae36a7e088c04cf8fcdb5e","ce2a9dbbf6590208fa018c1cf1027b09","43d0a2ceef2186efa53b09503c76965c","161bb308d12a7c57060f347b1105f61f","c22a27263d4ded89db5f948d6cb6595f","49a0ae0b875bc33558f3ebbdf4e48b5a","cab42e82d6bdcf747793fc26a86326dc",{"version":"4198eb85452f1ee8650e3525ebc56405","affectsGlobalScope":true,"impliedNodeFormat":1},"a51a8e6599581e605aa01164b2aecf58","698b1018d1c18af70f8828dcf86dfb3f","5cb76b3a982286c6bafa06b6f622629e","8378623bb64e556c9c62d37b214e3f2a","f1b6fd6b86d263291725f1e6450c7a0f","d3e070dacae99adac114aebfe5aa12ad","3dcfbd307e7910176e38ee7686b1e9a0",{"version":"b3006e7b01fd906df8d6911bebcb3183","affectsGlobalScope":true,"impliedNodeFormat":1},"8efe458b2ccdd6703ebd54226f6cb7e0","80d4aa91f657e359ef23e8d980dbdf7c","822714c9c063cb8aa30df160952b0b93","c70e9c037e44c694a3cfd4221145ebdc","6330072f3fc4a931144734779e75e2ff",{"version":"55c7d4301a1b8831ae2dd4db52884ddb","signature":"c71a52cd7a11bebd076a13bdd151eef1","impliedNodeFormat":1},{"version":"210f531e9db83cc9814327038c68c565","signature":"a2f48913b6b0ce598592e8a3cc6ec327","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6907274c235c806dbbdd5acd7c0a5094","signature":"068fe66ca212cb4032fa773d3017ce1c","impliedNodeFormat":1},{"version":"12ed0905db473972803f72200c983fa8","signature":"3c5148301db2be45392202e1e41e66c3","impliedNodeFormat":1},{"version":"ef0593995bfc3d4d9a6b2cf495b36404","signature":"4ee5067285a1049cd1cdc6371cbc1c57","impliedNodeFormat":1},{"version":"807d28b94098ffc7fe6754bcfd510e82","signature":"37b329bbe218ac69e0086acbea2f9e2f","impliedNodeFormat":1},{"version":"2caac142ca8821ba6bef29bc89897828","signature":"a131aa9968d7378dca3f8e84dea626db","impliedNodeFormat":1},{"version":"167ca7f8735988347dca29b722b5f39a","signature":"365296a5484c2d4681bf2cff3aa6cbb3","impliedNodeFormat":1},{"version":"c33545d2510f240120d90e89711e3290","signature":"284d09781436f5456079ccf8f12355c3","impliedNodeFormat":1},{"version":"bd8da0b965b44e7052b442f77d83cf9d","signature":"374da215c64c1129a5ba0f22a7d3a002","impliedNodeFormat":1},{"version":"5bedbae4cabd4e3b6c8e981e1279cfa7","signature":"34d1d3b0aa0cf4b03df413359da00880","impliedNodeFormat":1},"0c16c5c8945b669a2f394c521168f0a6","c0688009894a734236f474af9a6a4a44","55e8c9f61285b02cb2f1fa8caad4e903","2f3e243d1a65b1cfc603a1b4b2aaddf5","cc0127c0ef1eacaeba0c3a10bd4822b0","b3dd56db02a04535796c784d405a2fa5","5dc876ab5501402f445d966acb7150a1","0dfd2926c02532d4c971abc3b09ca099","bf1f0b8bf04ebc0c3363571439b431cd","04e24265382a2ad28abec81de53a2a79","a5b0fe2c360fb9b73b8e4d918f0dc3e5","539e7bfdc5109c6e6c6e03ac71435a6f","62e248d144b53eff0d45d95f427bbe7e","4f0729689a0e8a33fbb38b4f2c24ee2b","82e30764088aebadc1981d8ec29925dd",{"version":"458ff060e80380db683415b9386e4f86","signature":"16d61563ec9c66121adab8b78a3c385c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"27f184c542395ff07f1acd2937abae2a","signature":"f0c394972d8721da6499f2e24a565e62","impliedNodeFormat":1}],"fileIdsList":[[141,143,144,145,146,147],[138,142],[138,143],[143],[138],[138,139],[140,148],[149,150,151],[150],[149],[78,79,89,95,97,103,110],[69,84,108,109],[69,77,108,126],[69,79],[69],[69,81],[69,78,82,83,85,88,108],[69,78,79,80,82,85,87,108],[69,96,108],[69,79,94],[69,78,84,108],[69,88],[69,108],[69,108,109],[79,95],[69,95,96,98,108],[77,88,89,108,111,112,113,114,115,116,117,118,119,120,121,122],[77,78,80,81,82,83,84,85,88,89,94,95,96,97,99,101,103,108,109,110,111,122,123,124,125],[69,79,80,108],[69,79,108],[69,95,108],[69,76,78,80,81,82,85,88,89,90,91,92,93,95,96,97,100,101,102,103,104,106,107,109,110,111,123,126],[76],[81,95],[69,81,96],[105],[88],[69,82,84,97,99,100],[86,88],[111],[79,108],[84],[72],[70,72,73,74,75],[71],[64,134],[67],[65,134],[134],[126,128],[128,129,131,132],[69,126,127,130,131,135],[126,129],[66,133,152],[64,65,66],[133]],"options":{"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","esModuleInterop":true},"referencedMap":[[148,1],[143,2],[147,3],[144,4],[139,5],[146,5],[140,6],[149,7],[152,8],[151,9],[150,10],[111,11],[103,12],[78,13],[80,14],[81,15],[122,16],[84,17],[88,18],[97,19],[95,20],[85,21],[83,22],[89,23],[110,24],[98,25],[99,26],[100,15],[82,16],[107,15],[123,27],[126,28],[92,29],[93,30],[91,30],[109,31],[108,32],[102,33],[96,34],[125,35],[106,36],[112,37],[101,38],[86,37],[87,39],[121,40],[120,41],[119,42],[73,43],[76,44],[72,45],[135,46],[68,47],[136,48],[137,49],[131,50],[133,51],[129,50],[132,52],[130,53],[153,54],[67,55],[154,49],[134,56]],"latestChangedDtsFile":"./types/utils/index.d.ts"}
@@ -0,0 +1,22 @@
1
+ import type { ShopifyAjaxApiCart, ShopifyAjaxApiProduct, ShopifyAjaxApiShippingRate, ShopifyAjaxApiProductRecommendations, ShopifyAjaxApiPredictiveSearchResult } from './types.js';
2
+ export declare function getProduct<T = ShopifyAjaxApiProduct>(handle: string): Promise<T>;
3
+ export declare function getProductRecommendations(productId: string, limit: number, intent: 'related' | 'complementary'): Promise<ShopifyAjaxApiProductRecommendations>;
4
+ export declare function getPredictiveSearch(query: string): Promise<ShopifyAjaxApiPredictiveSearchResult>;
5
+ export declare function getCart(): Promise<ShopifyAjaxApiCart>;
6
+ export declare function addToCart<T>(items: T[]): Promise<ShopifyAjaxApiCart>;
7
+ export declare function updateCart(updates: {
8
+ updates?: Record<string, number | string>;
9
+ discount?: string;
10
+ note?: string;
11
+ attributes?: Record<string, string>;
12
+ }): Promise<ShopifyAjaxApiCart>;
13
+ export declare function changeCart(line: number, quantity: number, properties?: Record<string, string>): Promise<ShopifyAjaxApiCart>;
14
+ export declare function clearCart(): Promise<ShopifyAjaxApiCart>;
15
+ export declare function getShippingRates(shippingAddress: {
16
+ zip: string;
17
+ country: string;
18
+ province: string;
19
+ }): Promise<{
20
+ shipping_rates: Array<ShopifyAjaxApiShippingRate>;
21
+ }>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,259 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ajax-api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,uBAAuB,EAAE,OAAO,CAAA;IAChC,QAAQ,EAAE,4BAA4B,EAAE,CAAA;IACxC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,OAAO,EAAE,2BAA2B,EAAE,CAAA;IACtC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,0BAA0B,EAAE,CAAA;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AAE,MAAM,CAAA;IAEjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,qCAAqC,EAAE,CAAA;IACjD,MAAM,EAAE,MAAM,CAAA;IAEd,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAC5C;AAED,MAAM,WAAW,qCAAqC;IACpD,SAAS,EAAE,OAAO,CAAA;IAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,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"}
@@ -0,0 +1,2 @@
1
+ export type * from './types.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { ShopifyJsonApiCollection, ShopifyJsonApiCollectionProduct } from './types.js';
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,66 @@
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
@@ -0,0 +1 @@
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,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,QAAQ,EAAE,sCAAsC,EAAE,CAAA;IAClD,MAAM,EAAE,oCAAoC,EAAE,CAAA;IAC9C,OAAO,EAAE,2BAA2B,EAAE,CAAA;CACvC;AAED,MAAM,WAAW,sCAAsC;IACrD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,iBAAiB,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,oCAAoC;IACnD,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
1
+ import type { EventPayload } from './types.js';
2
+ export declare function getShopify(): import("./types.js").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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
1
+ export { shopifyPlugin } from './plugin.js';
2
+ export { getPickedConfig, getPickedConfigCollection, getPickedConfigCustomer, getPickedConfigExperiments, getPickedConfigFeatureExperiments, getPickedConfigProduct, getPickedConfigStorefrontApiToken, } from './picked-config.js';
3
+ export { getShopify } from './global-obj.js';
4
+ export type { PickedConfigCollection, PickedConfigCustomer, PickedConfigExperiment, PickedConfigProduct, PickedConfigProductCollection, PickedConfigProductVariant, Shopify, ShopifyPickedConfig, } from './types.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,87 @@
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.js';
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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,MAsGhC,CAAA"}
@@ -0,0 +1,42 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,105 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugins/shopify/types.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,CAAC,EAAE,OAAO,CAAA;KAClB;CACF;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAA;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;QACtB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;QAC7B,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE;YACL,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;YACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;SACtB,CAAA;KACF,CAAA;IACD,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,aAAa,EAAE;QACb,2BAA2B,EAAE,OAAO,CAAA;KACrC,CAAA;IACD,SAAS,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;KACzD,CAAA;CACF;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,YAAY,GACZ,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,CAAC,CAAA;CACvE;AAED,MAAM,WAAW,sBAA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,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,0BAA0B,EAAE,CAAA;IACtC,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACzC,iBAAiB,EAAE,OAAO,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,WAAW,EAAE,OAAO,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,eAAe,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC,CAAA;AAEF,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,mBAAmB;IAC1D,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,oBAAoB,CAAA;IAC/B,OAAO,CAAC,EAAE,CAAC,CAAA;IACX,UAAU,CAAC,EAAE,sBAAsB,CAAA;IACnC,WAAW,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACtC,cAAc,CAAC,EAAE;QACf,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF"}
@@ -0,0 +1,9 @@
1
+ import { createStorefrontApiClient as _createStorefrontApiClient } from '@shopify/storefront-api-client';
2
+ import type { ShopifyStorefrontApiClient, ShopifyStorefrontApiCartDiscountCodesUpdateResponse } from './types.js';
3
+ declare global {
4
+ const client: ShopifyStorefrontApiClient | undefined;
5
+ }
6
+ export declare function createStorefrontApiClient(options: Pick<Parameters<typeof _createStorefrontApiClient>[0], 'apiVersion'>): import("@shopify/storefront-api-client").StorefrontApiClient;
7
+ export declare const getStorefrontApiClient: () => ShopifyStorefrontApiClient;
8
+ export declare function cartDiscountCodesUpdate(token: string, discountCodes: string[]): Promise<ShopifyStorefrontApiCartDiscountCodesUpdateResponse>;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storefront-api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAExG,OAAO,KAAK,EACV,0BAA0B,EAC1B,mDAAmD,EACpD,MAAM,SAAS,CAAA;AAEhB,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,MAAM,EAAE,0BAA0B,GAAG,SAAS,CAAA;CACrD;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,gEAiB9E;AAED,eAAO,MAAM,sBAAsB,kCAMlC,CAAA;AAED,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,mDAAmD,CAAC,CAuC9D"}
@@ -0,0 +1,14 @@
1
+ export interface ShopifyStorefrontApiClient {
2
+ request: <T>(query: string, variables?: Record<string, object>, options?: RequestInit) => Promise<T>;
3
+ }
4
+ export interface ShopifyStorefrontApiCartDiscountCodesUpdateResponse {
5
+ data: {
6
+ cartDiscountCodesUpdate: {
7
+ userErrors: Array<{
8
+ field: string[];
9
+ message: string;
10
+ }>;
11
+ };
12
+ };
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/storefront-api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,CAAC,CAAC,EACT,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,OAAO,CAAC,EAAE,WAAW,KAClB,OAAO,CAAC,CAAC,CAAC,CAAA;CAChB;AAED,MAAM,WAAW,mDAAmD;IAClE,IAAI,EAAE;QACJ,uBAAuB,EAAE;YACvB,UAAU,EAAE,KAAK,CAAC;gBAChB,KAAK,EAAE,MAAM,EAAE,CAAA;gBACf,OAAO,EAAE,MAAM,CAAA;aAChB,CAAC,CAAA;SACH,CAAA;KACF,CAAA;CACF"}
@@ -0,0 +1,4 @@
1
+ export type * from './ajax-api/types.js';
2
+ export type * from './json-api/types.js';
3
+ export type * from './storefront-api/types.js';
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,wBAAwB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare function debounce<T extends (...args: any[]) => void>(func: T, wait: number): (...args: Parameters<T>) => void;
2
+ export declare function debounceAsync<T extends (...args: any[]) => any>(func: T, wait: number): (...args: Parameters<T>) => Promise<ReturnType<T>>;
3
+ //# sourceMappingURL=debounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../src/utils/debounce.ts"],"names":[],"mappings":"AACA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,aAG/D,UAAU,CAAC,CAAC,CAAC,KAAG,IAAI,CAStC;AAGD,wBAAgB,aAAa,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,aAInE,UAAU,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAsBxD"}
@@ -0,0 +1,2 @@
1
+ export { get as getRequest, post as postRequest } from './request.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare function get(pathname: string): Promise<any>;
2
+ export declare function post(pathname: string, data: unknown): Promise<any>;
3
+ //# sourceMappingURL=request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/utils/request.ts"],"names":[],"mappings":"AAOA,wBAAsB,GAAG,CAAC,QAAQ,EAAE,MAAM,gBAQzC;AAED,wBAAsB,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,gBAgBzD"}
@@ -1,4 +1,4 @@
1
- import type { ShopifyAjaxApiCart, ShopifyAjaxApiProduct, ShopifyAjaxApiShippingRate, ShopifyAjaxApiProductRecommendations, ShopifyAjaxApiPredictiveSearchResult } from './types';
1
+ import type { ShopifyAjaxApiCart, ShopifyAjaxApiProduct, ShopifyAjaxApiShippingRate, ShopifyAjaxApiProductRecommendations, ShopifyAjaxApiPredictiveSearchResult } from './types.js';
2
2
  export declare function getProduct<T = ShopifyAjaxApiProduct>(handle: string): Promise<T>;
3
3
  export declare function getProductRecommendations(productId: string, limit: number, intent: 'related' | 'complementary'): Promise<ShopifyAjaxApiProductRecommendations>;
4
4
  export declare function getPredictiveSearch(query: string): Promise<ShopifyAjaxApiPredictiveSearchResult>;
@@ -1,2 +1,2 @@
1
- export type * from './types';
1
+ export type * from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { ShopifyJsonApiCollection, ShopifyJsonApiCollectionProduct } from './types';
1
+ import type { ShopifyJsonApiCollection, ShopifyJsonApiCollectionProduct } from './types.js';
2
2
  export declare function getCollection(handle: string): Promise<{
3
3
  collection: ShopifyJsonApiCollection;
4
4
  }>;
@@ -1,5 +1,5 @@
1
- import type { EventPayload } from './types';
2
- export declare function getShopify(): import("./types").Shopify;
1
+ import type { EventPayload } from './types.js';
2
+ export declare function getShopify(): import("./types.js").Shopify;
3
3
  export declare function supportsShopifyAnalytics(w: Window): w is Window & {
4
4
  Shopify: {
5
5
  analytics: {
@@ -1,5 +1,5 @@
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';
1
+ export { shopifyPlugin } from './plugin.js';
2
+ export { getPickedConfig, getPickedConfigCollection, getPickedConfigCustomer, getPickedConfigExperiments, getPickedConfigFeatureExperiments, getPickedConfigProduct, getPickedConfigStorefrontApiToken, } from './picked-config.js';
3
+ export { getShopify } from './global-obj.js';
4
+ export type { PickedConfigCollection, PickedConfigCustomer, PickedConfigExperiment, PickedConfigProduct, PickedConfigProductCollection, PickedConfigProductVariant, Shopify, ShopifyPickedConfig, } from './types.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -3,7 +3,7 @@
3
3
  * experiment-to-feature transform consumed by the Picked client.
4
4
  */
5
5
  import type { CreateClientOptions } from '@picked/client';
6
- import type { MetafieldObject, PickedConfigExperiment, ShopifyPickedConfig } from './types';
6
+ import type { MetafieldObject, PickedConfigExperiment, ShopifyPickedConfig } from './types.js';
7
7
  export declare function getPickedConfig<ProductMetafields = MetafieldObject>(): Readonly<Partial<CreateClientOptions> & ShopifyPickedConfig<Partial<{
8
8
  available: boolean;
9
9
  collections: Partial<{
@@ -1,5 +1,5 @@
1
1
  import { createStorefrontApiClient as _createStorefrontApiClient } from '@shopify/storefront-api-client';
2
- import type { ShopifyStorefrontApiClient, ShopifyStorefrontApiCartDiscountCodesUpdateResponse } from './types';
2
+ import type { ShopifyStorefrontApiClient, ShopifyStorefrontApiCartDiscountCodesUpdateResponse } from './types.js';
3
3
  declare global {
4
4
  const client: ShopifyStorefrontApiClient | undefined;
5
5
  }
@@ -1,4 +1,4 @@
1
- export type * from './ajax-api/types';
2
- export type * from './json-api/types';
3
- export type * from './storefront-api/types';
1
+ export type * from './ajax-api/types.js';
2
+ export type * from './json-api/types.js';
3
+ export type * from './storefront-api/types.js';
4
4
  //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1,2 @@
1
- export { get as getRequest, post as postRequest } from './request';
1
+ export { get as getRequest, post as postRequest } from './request.js';
2
2
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@picked/shopify",
3
3
  "description": "Shopify plugin for @picked/client",
4
- "version": "0.0.117-next.2",
4
+ "version": "0.0.117-next.3",
5
5
  "devDependencies": {
6
6
  "@picked/client": "workspace:*",
7
7
  "@repo/eslint-config": "workspace:*",
@@ -23,45 +23,80 @@
23
23
  },
24
24
  "exports": {
25
25
  ".": {
26
- "types": "./dist/types/index.d.ts",
27
- "import": "./dist/esm/index.js",
28
- "require": "./dist/cjs/index.js",
26
+ "import": {
27
+ "types": "./dist/types/index.d.ts",
28
+ "default": "./dist/esm/index.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/cjs/index.d.ts",
32
+ "default": "./dist/cjs/index.js"
33
+ },
29
34
  "default": "./dist/esm/index.js"
30
35
  },
31
36
  "./utils": {
32
- "types": "./dist/types/utils/index.d.ts",
33
- "import": "./dist/esm/utils/index.js",
34
- "require": "./dist/cjs/utils/index.js",
37
+ "import": {
38
+ "types": "./dist/types/utils/index.d.ts",
39
+ "default": "./dist/esm/utils/index.js"
40
+ },
41
+ "require": {
42
+ "types": "./dist/cjs/utils/index.d.ts",
43
+ "default": "./dist/cjs/utils/index.js"
44
+ },
35
45
  "default": "./dist/esm/utils/index.js"
36
46
  },
37
47
  "./ajax-api": {
38
- "types": "./dist/types/ajax-api/index.d.ts",
39
- "import": "./dist/esm/ajax-api/index.js",
40
- "require": "./dist/cjs/ajax-api/index.js",
48
+ "import": {
49
+ "types": "./dist/types/ajax-api/index.d.ts",
50
+ "default": "./dist/esm/ajax-api/index.js"
51
+ },
52
+ "require": {
53
+ "types": "./dist/cjs/ajax-api/index.d.ts",
54
+ "default": "./dist/cjs/ajax-api/index.js"
55
+ },
41
56
  "default": "./dist/esm/ajax-api/index.js"
42
57
  },
43
58
  "./json-api": {
44
- "types": "./dist/types/json-api/index.d.ts",
45
- "import": "./dist/esm/json-api/index.js",
46
- "require": "./dist/cjs/json-api/index.js",
59
+ "import": {
60
+ "types": "./dist/types/json-api/index.d.ts",
61
+ "default": "./dist/esm/json-api/index.js"
62
+ },
63
+ "require": {
64
+ "types": "./dist/cjs/json-api/index.d.ts",
65
+ "default": "./dist/cjs/json-api/index.js"
66
+ },
47
67
  "default": "./dist/esm/json-api/index.js"
48
68
  },
49
69
  "./picked-app": {
50
- "types": "./dist/types/picked-app/index.d.ts",
51
- "import": "./dist/esm/picked-app/index.js",
52
- "require": "./dist/cjs/picked-app/index.js",
70
+ "import": {
71
+ "types": "./dist/types/picked-app/index.d.ts",
72
+ "default": "./dist/esm/picked-app/index.js"
73
+ },
74
+ "require": {
75
+ "types": "./dist/cjs/picked-app/index.d.ts",
76
+ "default": "./dist/cjs/picked-app/index.js"
77
+ },
53
78
  "default": "./dist/esm/picked-app/index.js"
54
79
  },
55
80
  "./storefront-api": {
56
- "types": "./dist/types/storefront-api/index.d.ts",
57
- "import": "./dist/esm/storefront-api/index.js",
58
- "require": "./dist/cjs/storefront-api/index.js",
81
+ "import": {
82
+ "types": "./dist/types/storefront-api/index.d.ts",
83
+ "default": "./dist/esm/storefront-api/index.js"
84
+ },
85
+ "require": {
86
+ "types": "./dist/cjs/storefront-api/index.d.ts",
87
+ "default": "./dist/cjs/storefront-api/index.js"
88
+ },
59
89
  "default": "./dist/esm/storefront-api/index.js"
60
90
  },
61
91
  "./plugins/shopify": {
62
- "types": "./dist/types/plugins/shopify/index.d.ts",
63
- "import": "./dist/esm/plugins/shopify/index.js",
64
- "require": "./dist/cjs/plugins/shopify/index.js",
92
+ "import": {
93
+ "types": "./dist/types/plugins/shopify/index.d.ts",
94
+ "default": "./dist/esm/plugins/shopify/index.js"
95
+ },
96
+ "require": {
97
+ "types": "./dist/cjs/plugins/shopify/index.d.ts",
98
+ "default": "./dist/cjs/plugins/shopify/index.js"
99
+ },
65
100
  "default": "./dist/esm/plugins/shopify/index.js"
66
101
  }
67
102
  },
@@ -83,7 +118,7 @@
83
118
  "main": "./dist/cjs/index.js",
84
119
  "module": "./dist/esm/index.js",
85
120
  "peerDependencies": {
86
- "@picked/client": "0.0.117-next.2",
121
+ "@picked/client": "0.0.117-next.3",
87
122
  "@shopify/storefront-api-client": "^1.0.10",
88
123
  "effector": "^23.4.4"
89
124
  },
@@ -92,7 +127,7 @@
92
127
  "access": "public"
93
128
  },
94
129
  "scripts": {
95
- "build": "vite build && tsgo -p tsconfig.build.json",
130
+ "build": "vite build && tsgo -p tsconfig.build.json && node ../../scripts/sdk-dist.mjs",
96
131
  "check": "pnpm type-check && pnpm lint && pnpm knip && pnpm jscpd",
97
132
  "dev": "node ../../scripts/sdk-watch-build.mjs",
98
133
  "jscpd": "jscpd src",
@@ -104,7 +139,7 @@
104
139
  "size": "size-limit",
105
140
  "test": "vitest run",
106
141
  "test:coverage": "../../scripts/vitest-coverage.sh",
107
- "test:packaged-types": "attw --pack",
142
+ "test:packaged-types": "attw --pack --profile node16",
108
143
  "test:watch": "vitest",
109
144
  "type-check": "tsgo -p . --noEmit"
110
145
  },