@sixtyninecommerce/client 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +548 -14
- package/dist/admin/http.d.ts.map +1 -1
- package/dist/admin/http.js.map +1 -1
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/build-client.d.ts +9 -0
- package/dist/build-client.d.ts.map +1 -0
- package/dist/build-client.js +58 -0
- package/dist/build-client.js.map +1 -0
- package/dist/cache-tags.d.ts +35 -1
- package/dist/cache-tags.d.ts.map +1 -1
- package/dist/cache-tags.js +39 -1
- package/dist/cache-tags.js.map +1 -1
- package/dist/client.d.ts +25 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -62
- package/dist/client.js.map +1 -1
- package/dist/commerce/age-verification.d.ts +7 -4
- package/dist/commerce/age-verification.d.ts.map +1 -1
- package/dist/commerce/age-verification.js +6 -4
- package/dist/commerce/age-verification.js.map +1 -1
- package/dist/commerce/arguments.d.ts +13 -0
- package/dist/commerce/arguments.d.ts.map +1 -0
- package/dist/commerce/arguments.js +19 -0
- package/dist/commerce/arguments.js.map +1 -0
- package/dist/commerce/branding.d.ts.map +1 -1
- package/dist/commerce/branding.js.map +1 -1
- package/dist/commerce/capabilities.d.ts +40 -0
- package/dist/commerce/capabilities.d.ts.map +1 -0
- package/dist/commerce/capabilities.js +41 -0
- package/dist/commerce/capabilities.js.map +1 -0
- package/dist/commerce/cart.d.ts +9 -12
- package/dist/commerce/cart.d.ts.map +1 -1
- package/dist/commerce/cart.js +6 -1
- package/dist/commerce/cart.js.map +1 -1
- package/dist/commerce/checkout.d.ts +95 -15
- package/dist/commerce/checkout.d.ts.map +1 -1
- package/dist/commerce/checkout.js +230 -10
- package/dist/commerce/checkout.js.map +1 -1
- package/dist/commerce/customer.d.ts +82 -38
- package/dist/commerce/customer.d.ts.map +1 -1
- package/dist/commerce/customer.js +146 -10
- package/dist/commerce/customer.js.map +1 -1
- package/dist/commerce/favorites.d.ts +2 -5
- package/dist/commerce/favorites.d.ts.map +1 -1
- package/dist/commerce/favorites.js.map +1 -1
- package/dist/commerce/index.d.ts +189 -133
- package/dist/commerce/index.d.ts.map +1 -1
- package/dist/commerce/index.js +9 -0
- package/dist/commerce/index.js.map +1 -1
- package/dist/commerce/order-states.d.ts +18 -0
- package/dist/commerce/order-states.d.ts.map +1 -0
- package/dist/commerce/order-states.js +30 -0
- package/dist/commerce/order-states.js.map +1 -0
- package/dist/commerce/parcel-pricing.d.ts +48 -0
- package/dist/commerce/parcel-pricing.d.ts.map +1 -0
- package/dist/commerce/parcel-pricing.js +39 -0
- package/dist/commerce/parcel-pricing.js.map +1 -0
- package/dist/commerce/parked-orders.d.ts +22 -0
- package/dist/commerce/parked-orders.d.ts.map +1 -0
- package/dist/commerce/parked-orders.js +47 -0
- package/dist/commerce/parked-orders.js.map +1 -0
- package/dist/commerce/payments.d.ts +12 -5
- package/dist/commerce/payments.d.ts.map +1 -1
- package/dist/commerce/payments.js +10 -1
- package/dist/commerce/payments.js.map +1 -1
- package/dist/commerce/placement-error.d.ts +17 -0
- package/dist/commerce/placement-error.d.ts.map +1 -1
- package/dist/commerce/placement-error.js.map +1 -1
- package/dist/commerce/products.d.ts +92 -38
- package/dist/commerce/products.d.ts.map +1 -1
- package/dist/commerce/products.js +157 -123
- package/dist/commerce/products.js.map +1 -1
- package/dist/commerce/queries.d.ts +197 -48
- package/dist/commerce/queries.d.ts.map +1 -1
- package/dist/commerce/queries.js +1289 -746
- package/dist/commerce/queries.js.map +1 -1
- package/dist/commerce/quotes.d.ts +5 -4
- package/dist/commerce/quotes.d.ts.map +1 -1
- package/dist/commerce/quotes.js +1 -36
- package/dist/commerce/quotes.js.map +1 -1
- package/dist/commerce/recommendations.d.ts +3 -3
- package/dist/commerce/recommendations.d.ts.map +1 -1
- package/dist/commerce/recommendations.js +3 -1
- package/dist/commerce/recommendations.js.map +1 -1
- package/dist/commerce/returns.d.ts +7 -6
- package/dist/commerce/returns.d.ts.map +1 -1
- package/dist/commerce/returns.js.map +1 -1
- package/dist/commerce/reviews.d.ts +24 -15
- package/dist/commerce/reviews.d.ts.map +1 -1
- package/dist/commerce/reviews.js +67 -50
- package/dist/commerce/reviews.js.map +1 -1
- package/dist/commerce/saved-lists.d.ts +15 -15
- package/dist/commerce/saved-lists.d.ts.map +1 -1
- package/dist/commerce/saved-lists.js +67 -56
- package/dist/commerce/saved-lists.js.map +1 -1
- package/dist/commerce/search.d.ts +3 -2
- package/dist/commerce/search.d.ts.map +1 -1
- package/dist/commerce/search.js +2 -2
- package/dist/commerce/search.js.map +1 -1
- package/dist/commerce/shipping.d.ts +11 -4
- package/dist/commerce/shipping.d.ts.map +1 -1
- package/dist/commerce/shipping.js +17 -2
- package/dist/commerce/shipping.js.map +1 -1
- package/dist/commerce/stock-notifications.d.ts +2 -0
- package/dist/commerce/stock-notifications.d.ts.map +1 -1
- package/dist/commerce/stock-notifications.js +2 -2
- package/dist/commerce/stock-notifications.js.map +1 -1
- package/dist/commerce/subscriptions.d.ts +35 -37
- package/dist/commerce/subscriptions.d.ts.map +1 -1
- package/dist/commerce/subscriptions.js +159 -120
- package/dist/commerce/subscriptions.js.map +1 -1
- package/dist/commerce/vat-validation.d.ts +6 -3
- package/dist/commerce/vat-validation.d.ts.map +1 -1
- package/dist/commerce/vat-validation.js +24 -19
- package/dist/commerce/vat-validation.js.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/content/assets.d.ts +5 -4
- package/dist/content/assets.d.ts.map +1 -1
- package/dist/content/assets.js.map +1 -1
- package/dist/content/collection-pages.d.ts +3 -2
- package/dist/content/collection-pages.d.ts.map +1 -1
- package/dist/content/collection-pages.js.map +1 -1
- package/dist/content/collections.d.ts +5 -4
- package/dist/content/collections.d.ts.map +1 -1
- package/dist/content/collections.js.map +1 -1
- package/dist/content/filtered-products.d.ts.map +1 -1
- package/dist/content/filtered-products.js.map +1 -1
- package/dist/content/form-field-types.d.ts +3 -3
- package/dist/content/form-field-types.d.ts.map +1 -1
- package/dist/content/form-field-types.js.map +1 -1
- package/dist/content/forms.d.ts +4 -3
- package/dist/content/forms.d.ts.map +1 -1
- package/dist/content/forms.js +3 -0
- package/dist/content/forms.js.map +1 -1
- package/dist/content/index.d.ts +18 -17
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/items.d.ts +5 -4
- package/dist/content/items.d.ts.map +1 -1
- package/dist/content/items.js +2 -0
- package/dist/content/items.js.map +1 -1
- package/dist/content/menus.d.ts +3 -2
- package/dist/content/menus.d.ts.map +1 -1
- package/dist/content/menus.js +7 -1
- package/dist/content/menus.js.map +1 -1
- package/dist/content/resolve.d.ts +3 -2
- package/dist/content/resolve.d.ts.map +1 -1
- package/dist/content/resolve.js +1 -1
- package/dist/content/resolve.js.map +1 -1
- package/dist/content/sitemap.d.ts +3 -2
- package/dist/content/sitemap.d.ts.map +1 -1
- package/dist/content/sitemap.js.map +1 -1
- package/dist/content/strings.d.ts +16 -2
- package/dist/content/strings.d.ts.map +1 -1
- package/dist/content/strings.js +32 -4
- package/dist/content/strings.js.map +1 -1
- package/dist/core/context.d.ts +127 -1
- package/dist/core/context.d.ts.map +1 -1
- package/dist/core/context.js +436 -45
- package/dist/core/context.js.map +1 -1
- package/dist/core/currency.d.ts +14 -0
- package/dist/core/currency.d.ts.map +1 -0
- package/dist/core/currency.js +52 -0
- package/dist/core/currency.js.map +1 -0
- package/dist/core/deprecation.d.ts +23 -0
- package/dist/core/deprecation.d.ts.map +1 -0
- package/dist/core/deprecation.js +81 -0
- package/dist/core/deprecation.js.map +1 -0
- package/dist/core/http.d.ts +15 -1
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +55 -3
- package/dist/core/http.js.map +1 -1
- package/dist/core/public-artifact.d.ts +72 -0
- package/dist/core/public-artifact.d.ts.map +1 -0
- package/dist/core/public-artifact.js +122 -0
- package/dist/core/public-artifact.js.map +1 -0
- package/dist/core/unknown-field-rejection.d.ts +18 -0
- package/dist/core/unknown-field-rejection.d.ts.map +1 -0
- package/dist/core/unknown-field-rejection.js +37 -0
- package/dist/core/unknown-field-rejection.js.map +1 -0
- package/dist/credit/credit-status.d.ts +2 -0
- package/dist/credit/credit-status.d.ts.map +1 -1
- package/dist/credit/credit-status.js +71 -19
- package/dist/credit/credit-status.js.map +1 -1
- package/dist/credit/index.d.ts +1 -1
- package/dist/credit/payment-terms.d.ts +3 -3
- package/dist/credit/payment-terms.d.ts.map +1 -1
- package/dist/credit/payment-terms.js +28 -24
- package/dist/credit/payment-terms.js.map +1 -1
- package/dist/currency/exchange.d.ts +7 -7
- package/dist/currency/exchange.d.ts.map +1 -1
- package/dist/currency/exchange.js +5 -1
- package/dist/currency/exchange.js.map +1 -1
- package/dist/errors.d.ts +17 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +13 -0
- package/dist/errors.js.map +1 -1
- package/dist/events/index.d.ts +20 -7
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +17 -5
- package/dist/events/index.js.map +1 -1
- package/dist/events/payloads.d.ts +7 -4
- package/dist/events/payloads.d.ts.map +1 -1
- package/dist/events/payloads.js +6 -3
- package/dist/events/payloads.js.map +1 -1
- package/dist/feeds/index.d.ts +5 -0
- package/dist/feeds/index.d.ts.map +1 -0
- package/dist/feeds/index.js +12 -0
- package/dist/feeds/index.js.map +1 -0
- package/dist/feeds/types.d.ts +18 -0
- package/dist/feeds/types.d.ts.map +1 -0
- package/dist/feeds/types.js +8 -0
- package/dist/feeds/types.js.map +1 -0
- package/dist/generated/cms.d.ts +2136 -0
- package/dist/generated/cms.d.ts.map +1 -0
- package/dist/generated/cms.js +4 -0
- package/dist/generated/cms.js.map +1 -0
- package/dist/generated/plugins.d.ts +550 -0
- package/dist/generated/plugins.d.ts.map +1 -0
- package/dist/generated/plugins.js +4 -0
- package/dist/generated/plugins.js.map +1 -0
- package/dist/generated/shop.d.ts +5539 -0
- package/dist/generated/shop.d.ts.map +1 -0
- package/dist/generated/shop.js +5 -0
- package/dist/generated/shop.js.map +1 -0
- package/dist/graphql-document.d.ts +29 -0
- package/dist/graphql-document.d.ts.map +1 -0
- package/dist/graphql-document.js +21 -0
- package/dist/graphql-document.js.map +1 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/media/urls.d.ts.map +1 -1
- package/dist/media/urls.js +12 -1
- package/dist/media/urls.js.map +1 -1
- package/dist/media/video.d.ts.map +1 -1
- package/dist/media/video.js.map +1 -1
- package/dist/multi-store.d.ts +200 -0
- package/dist/multi-store.d.ts.map +1 -0
- package/dist/multi-store.js +558 -0
- package/dist/multi-store.js.map +1 -0
- package/dist/navigation/routes.d.ts +4 -3
- package/dist/navigation/routes.d.ts.map +1 -1
- package/dist/navigation/routes.js.map +1 -1
- package/dist/next/artifact-handler.d.ts +21 -13
- package/dist/next/artifact-handler.d.ts.map +1 -1
- package/dist/next/artifact-handler.js +28 -66
- package/dist/next/artifact-handler.js.map +1 -1
- package/dist/next/event-revalidate-handler.d.ts +26 -6
- package/dist/next/event-revalidate-handler.d.ts.map +1 -1
- package/dist/next/event-revalidate-handler.js +126 -19
- package/dist/next/event-revalidate-handler.js.map +1 -1
- package/dist/next/feed-handler.d.ts +50 -0
- package/dist/next/feed-handler.d.ts.map +1 -0
- package/dist/next/feed-handler.js +61 -0
- package/dist/next/feed-handler.js.map +1 -0
- package/dist/next/index.d.ts +3 -1
- package/dist/next/index.d.ts.map +1 -1
- package/dist/next/index.js +1 -0
- package/dist/next/index.js.map +1 -1
- package/dist/next/metadata.d.ts.map +1 -1
- package/dist/next/metadata.js.map +1 -1
- package/dist/next/redirect-middleware.d.ts +5 -31
- package/dist/next/redirect-middleware.d.ts.map +1 -1
- package/dist/next/redirect-middleware.js +4 -46
- package/dist/next/redirect-middleware.js.map +1 -1
- package/dist/next/revalidate-handler.d.ts.map +1 -1
- package/dist/next/revalidate-handler.js.map +1 -1
- package/dist/pricing/index.d.ts.map +1 -1
- package/dist/pricing/index.js.map +1 -1
- package/dist/pricing/tax-display.js +1 -1
- package/dist/pricing/tax-display.js.map +1 -1
- package/dist/pricing/tiers.d.ts +3 -2
- package/dist/pricing/tiers.d.ts.map +1 -1
- package/dist/pricing/tiers.js.map +1 -1
- package/dist/pricing/validation.d.ts +63 -12
- package/dist/pricing/validation.d.ts.map +1 -1
- package/dist/pricing/validation.js +60 -12
- package/dist/pricing/validation.js.map +1 -1
- package/dist/redirects/index.d.ts.map +1 -1
- package/dist/redirects/index.js +2 -1
- package/dist/redirects/index.js.map +1 -1
- package/dist/redirects/store.d.ts.map +1 -1
- package/dist/redirects/store.js +6 -2
- package/dist/redirects/store.js.map +1 -1
- package/dist/redirects/types.d.ts +5 -2
- package/dist/redirects/types.d.ts.map +1 -1
- package/dist/revalidation/event-plan.d.ts +55 -4
- package/dist/revalidation/event-plan.d.ts.map +1 -1
- package/dist/revalidation/event-plan.js +115 -8
- package/dist/revalidation/event-plan.js.map +1 -1
- package/dist/revalidation/event-verify.d.ts +8 -37
- package/dist/revalidation/event-verify.d.ts.map +1 -1
- package/dist/revalidation/event-verify.js +7 -97
- package/dist/revalidation/event-verify.js.map +1 -1
- package/dist/revalidation/types.d.ts.map +1 -1
- package/dist/revalidation/url-context.d.ts +17 -0
- package/dist/revalidation/url-context.d.ts.map +1 -1
- package/dist/revalidation/url-context.js +35 -2
- package/dist/revalidation/url-context.js.map +1 -1
- package/dist/seo/ai.d.ts.map +1 -1
- package/dist/seo/ai.js.map +1 -1
- package/dist/seo/artifacts.d.ts +86 -4
- package/dist/seo/artifacts.d.ts.map +1 -1
- package/dist/seo/artifacts.js +115 -16
- package/dist/seo/artifacts.js.map +1 -1
- package/dist/seo/availability.d.ts +2 -2
- package/dist/seo/availability.d.ts.map +1 -1
- package/dist/seo/availability.js.map +1 -1
- package/dist/seo/index.d.ts +2 -0
- package/dist/seo/index.d.ts.map +1 -1
- package/dist/seo/index.js +3 -1
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/json-ld.d.ts.map +1 -1
- package/dist/seo/json-ld.js.map +1 -1
- package/dist/seo/meta-tags.d.ts.map +1 -1
- package/dist/seo/meta-tags.js.map +1 -1
- package/dist/seo/metadata-parser.d.ts.map +1 -1
- package/dist/seo/metadata-parser.js.map +1 -1
- package/dist/seo/metadata-types.d.ts.map +1 -1
- package/dist/seo/robots.d.ts.map +1 -1
- package/dist/seo/robots.js.map +1 -1
- package/dist/seo/types.d.ts +9 -2
- package/dist/seo/types.d.ts.map +1 -1
- package/dist/seo/url-builder.d.ts +5 -3
- package/dist/seo/url-builder.d.ts.map +1 -1
- package/dist/seo/url-builder.js +3 -1
- package/dist/seo/url-builder.js.map +1 -1
- package/dist/types.d.ts +1226 -2522
- package/dist/types.d.ts.map +1 -1
- package/dist/web/artifact-responder.d.ts +69 -0
- package/dist/web/artifact-responder.d.ts.map +1 -0
- package/dist/web/artifact-responder.js +90 -0
- package/dist/web/artifact-responder.js.map +1 -0
- package/dist/web/feed-responder.d.ts +72 -0
- package/dist/web/feed-responder.d.ts.map +1 -0
- package/dist/web/feed-responder.js +81 -0
- package/dist/web/feed-responder.js.map +1 -0
- package/dist/web/index.d.ts +23 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +19 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/redirect-middleware.d.ts +76 -0
- package/dist/web/redirect-middleware.d.ts.map +1 -0
- package/dist/web/redirect-middleware.js +94 -0
- package/dist/web/redirect-middleware.js.map +1 -0
- package/dist/web/respond.d.ts +20 -0
- package/dist/web/respond.d.ts.map +1 -0
- package/dist/web/respond.js +52 -0
- package/dist/web/respond.js.map +1 -0
- package/package.json +18 -2
package/dist/content/forms.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { HttpClient } from '../core/http.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PublicFormFieldTypeDto, PublicFormListResponseDto } from '../generated/cms.js';
|
|
3
|
+
import type { FormDefinition, FormFieldTypeRegistry, FormListOptions, FormSubmissionResult, RequestOptions, StoreContext } from '../types.js';
|
|
3
4
|
export declare function createFormMethods(http: HttpClient, ctx: StoreContext): {
|
|
4
5
|
/**
|
|
5
6
|
* Discover the channel's forms (public projection). Returns summaries —
|
|
6
7
|
* `fields`/`translations` are empty here; call getForm/getFormBySlug for a
|
|
7
8
|
* single form's fields.
|
|
8
9
|
*/
|
|
9
|
-
listForms(options?: FormListOptions & RequestOptions): Promise<
|
|
10
|
+
listForms(options?: FormListOptions & RequestOptions): Promise<PublicFormListResponseDto>;
|
|
10
11
|
getForm(id: string, options?: RequestOptions): Promise<FormDefinition>;
|
|
11
12
|
/** Look up a form by its stable slug instead of its UUID. */
|
|
12
13
|
getFormBySlug(slug: string, options?: RequestOptions): Promise<FormDefinition>;
|
|
@@ -14,7 +15,7 @@ export declare function createFormMethods(http: HttpClient, ctx: StoreContext):
|
|
|
14
15
|
* The field-type registry served by GET /forms/field-types. For an offline
|
|
15
16
|
* copy that needs no round-trip, import the static `FORM_FIELD_TYPES`.
|
|
16
17
|
*/
|
|
17
|
-
getFormFieldTypes(options?: RequestOptions): Promise<
|
|
18
|
+
getFormFieldTypes(options?: RequestOptions): Promise<PublicFormFieldTypeDto[]>;
|
|
18
19
|
/**
|
|
19
20
|
* Field types AND slug rules from the same request. `meta.slugRules` was
|
|
20
21
|
* added to the endpoint after the SDK shipped, so a CMS that predates it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/content/forms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EACV,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/content/forms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAEV,sBAAsB,EAEtB,yBAAyB,EAG1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,YAAY,EACb,MAAM,aAAa,CAAC;AAGrB,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY;IAcjE;;;;OAIG;wBAES,eAAe,GAAG,cAAc,GACzC,OAAO,CAAC,yBAAyB,CAAC;gBAUnB,MAAM,YAAY,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAK5E,6DAA6D;wBACnC,MAAM,YAAY,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IASpF;;;OAGG;gCAC+B,cAAc,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IASpF;;;;;OAKG;uCACsC,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC;mBAelF,MAAM,UACF,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACrB,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC;EAyCnC"}
|
package/dist/content/forms.js
CHANGED
|
@@ -56,6 +56,9 @@ export function createFormMethods(http, ctx) {
|
|
|
56
56
|
* rule an author would then have to guess at.
|
|
57
57
|
*/
|
|
58
58
|
async getFormFieldTypeRegistry(options) {
|
|
59
|
+
// The generated body says `meta` is always there — true of every CMS
|
|
60
|
+
// since the key was added, not of one that predates it, which this
|
|
61
|
+
// method still serves. Read it as possibly absent.
|
|
59
62
|
const data = await http.cmsGet('/forms/field-types', undefined, options);
|
|
60
63
|
return { fieldTypes: data.data, slugRules: data.meta?.slugRules ?? FORM_SLUG_RULES };
|
|
61
64
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/content/forms.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,eAAe,EAAE,MAAM,cAAc,CAAC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../core/http.js';
|
|
2
|
-
import type { StoreContext } from '../types.js';
|
|
2
|
+
import type { ContentModule, StoreContext } from '../types.js';
|
|
3
3
|
export declare function createContentModule(http: HttpClient, ctx: StoreContext): {
|
|
4
|
-
getCollections(options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
5
|
-
getCollection(collectionId: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
4
|
+
getCollections(options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicCollectionDto[]>;
|
|
5
|
+
getCollection(collectionId: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicCollectionDetailDto>;
|
|
6
6
|
getCollectionItems(collectionId: string, query?: import("../types.js").CollectionItemsQuery, options?: import("../types.js").RequestOptions): Promise<import("../types.js").CmsCollectionItemList>;
|
|
7
|
-
getCollectionItem(collectionId: string, itemId: string, languageCode?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
8
|
-
getCollectionPageValues(collectionId: string, languageCode?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
9
|
-
getSitemap(languageCode?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
10
|
-
getMenus(options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
7
|
+
getCollectionItem(collectionId: string, itemId: string, languageCode?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicCollectionItemDetailDto>;
|
|
8
|
+
getCollectionPageValues(collectionId: string, languageCode?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicCollectionPageValuesDto>;
|
|
9
|
+
getSitemap(languageCode?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicSitemapEntryDto[]>;
|
|
10
|
+
getMenus(options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicMenuSummaryDto[]>;
|
|
11
11
|
getMenu(slugOrId: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").Menu>;
|
|
12
|
-
getContentStrings
|
|
13
|
-
|
|
12
|
+
getContentStrings: ContentModule["getContentStrings"];
|
|
13
|
+
getContentString(id: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicContentStringDto>;
|
|
14
|
+
listForms(options?: import("../types.js").FormListOptions & import("../types.js").RequestOptions): Promise<import("../types.js").PublicFormListResponseDto>;
|
|
14
15
|
getForm(id: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").FormDefinition>;
|
|
15
16
|
getFormBySlug(slug: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").FormDefinition>;
|
|
16
|
-
getFormFieldTypes(options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
17
|
+
getFormFieldTypes(options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicFormFieldTypeDto[]>;
|
|
17
18
|
getFormFieldTypeRegistry(options?: import("../types.js").RequestOptions): Promise<import("../types.js").FormFieldTypeRegistry>;
|
|
18
19
|
submitForm(id: string, values: Record<string, unknown>, options?: import("../types.js").RequestOptions): Promise<import("../types.js").FormSubmissionResult>;
|
|
19
|
-
getAsset(id: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
20
|
-
lookupAssets(ids: string[], options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
21
|
-
lookupVendureAssetDescriptions(vendureAssetIds: string[], options?: import("../types.js").RequestOptions): Promise<Record<string, import("../types.js").
|
|
20
|
+
getAsset(id: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicAssetDto>;
|
|
21
|
+
lookupAssets(ids: string[], options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicAssetDto[]>;
|
|
22
|
+
lookupVendureAssetDescriptions(vendureAssetIds: string[], options?: import("../types.js").RequestOptions): Promise<Record<string, import("../types.js").PublicVendureAssetDescriptionDto[]>>;
|
|
22
23
|
getContent(queryOptions: import("../types.js").ContentQueryOptions, options?: import("../types.js").RequestOptions): Promise<Record<string, unknown>>;
|
|
23
|
-
searchContent(query: import("../types.js").ContentSearchQuery, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
24
|
-
lookupContentItems(ids: string[], options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
25
|
-
lookupContentItemsWithFields(ids: string[], fieldSlugs: string[], options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
26
|
-
resolvePath(path: string, locale?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").
|
|
24
|
+
searchContent(query: import("../types.js").ContentSearchQuery, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicCollectionItemSearchResultDto>;
|
|
25
|
+
lookupContentItems(ids: string[], options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicItemSummaryDto[]>;
|
|
26
|
+
lookupContentItemsWithFields(ids: string[], fieldSlugs: string[], options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicItemWithFieldsDto[]>;
|
|
27
|
+
resolvePath(path: string, locale?: string, options?: import("../types.js").RequestOptions): Promise<import("../types.js").PublicResolvedContentDto>;
|
|
27
28
|
};
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAW/D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;EAYtE"}
|
package/dist/content/items.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import type { HttpClient } from '../core/http.js';
|
|
|
4
4
|
* silently return the first 50), so every call site here splits its input.
|
|
5
5
|
*/
|
|
6
6
|
export declare const ITEM_LOOKUP_MAX_IDS = 50;
|
|
7
|
-
import type {
|
|
7
|
+
import type { PublicCollectionItemSearchResultDto, PublicItemSummaryDto, PublicItemWithFieldsDto } from '../generated/cms.js';
|
|
8
|
+
import type { ContentQueryOptions, ContentSearchQuery, RequestOptions, StoreContext } from '../types.js';
|
|
8
9
|
export declare function createContentItemMethods(http: HttpClient, ctx: StoreContext): {
|
|
9
10
|
getContent(queryOptions: ContentQueryOptions, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
10
11
|
/**
|
|
@@ -16,7 +17,7 @@ export declare function createContentItemMethods(http: HttpClient, ctx: StoreCon
|
|
|
16
17
|
* Wraps the same endpoint as `getContent`, but with a defined return
|
|
17
18
|
* shape suitable for site-wide search bars.
|
|
18
19
|
*/
|
|
19
|
-
searchContent(query: ContentSearchQuery, options?: RequestOptions): Promise<
|
|
20
|
+
searchContent(query: ContentSearchQuery, options?: RequestOptions): Promise<PublicCollectionItemSearchResultDto>;
|
|
20
21
|
/**
|
|
21
22
|
* Bulk look up CMS items by ID. Used to resolve content reference field
|
|
22
23
|
* values (`content_item`, `multi_collection_ref`, etc.) which store arrays
|
|
@@ -25,12 +26,12 @@ export declare function createContentItemMethods(http: HttpClient, ctx: StoreCon
|
|
|
25
26
|
* Any number of ids may be passed: the endpoint rejects more than
|
|
26
27
|
* {@link ITEM_LOOKUP_MAX_IDS} per call, so requests are split here.
|
|
27
28
|
*/
|
|
28
|
-
lookupContentItems(ids: string[], options?: RequestOptions): Promise<
|
|
29
|
+
lookupContentItems(ids: string[], options?: RequestOptions): Promise<PublicItemSummaryDto[]>;
|
|
29
30
|
/**
|
|
30
31
|
* Like `lookupContentItems`, but additionally returns the requested field
|
|
31
32
|
* values for each item. Useful when rendering reference field previews
|
|
32
33
|
* (e.g. show the title and featured image of every linked blog post).
|
|
33
34
|
*/
|
|
34
|
-
lookupContentItemsWithFields(ids: string[], fieldSlugs: string[], options?: RequestOptions): Promise<
|
|
35
|
+
lookupContentItemsWithFields(ids: string[], fieldSlugs: string[], options?: RequestOptions): Promise<PublicItemWithFieldsDto[]>;
|
|
35
36
|
};
|
|
36
37
|
//# sourceMappingURL=items.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/content/items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQlD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAQtC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/content/items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQlD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAQtC,OAAO,KAAK,EAEV,mCAAmC,EAGnC,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY;6BAexD,mBAAmB,YACvB,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAsBnC;;;;;;;;OAQG;yBAEM,kBAAkB,YACf,cAAc,GACvB,OAAO,CAAC,mCAAmC,CAAC;IAuB/C;;;;;;;OAOG;4BAEI,MAAM,EAAE,YACH,cAAc,GACvB,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAclC;;;;OAIG;sCAEI,MAAM,EAAE,cACD,MAAM,EAAE,YACV,cAAc,GACvB,OAAO,CAAC,uBAAuB,EAAE,CAAC;EAcxC"}
|
package/dist/content/items.js
CHANGED
|
@@ -43,6 +43,8 @@ export function createContentItemMethods(http, ctx) {
|
|
|
43
43
|
params.language_code = queryOptions.languageCode;
|
|
44
44
|
// Search hits carry the same stored values as a direct read, so they
|
|
45
45
|
// need the same resolution — Meilisearch holds `value_json` verbatim.
|
|
46
|
+
// `resolveSearchEnvelope` walks the body as a plain record: this method
|
|
47
|
+
// has always returned it untyped (`searchContent` is the typed read).
|
|
46
48
|
const envelope = await http.cmsGet('/search/collection-items', params, options);
|
|
47
49
|
return resolveSearchEnvelope(envelope, createContextAssetUrlResolver(ctx));
|
|
48
50
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../src/content/items.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC,SAAS,OAAO,CAAI,KAAU,EAAE,IAAY;IAC1C,MAAM,GAAG,GAAU,EAAE,CAAC;IACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI;QAAE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAChF,OAAO,GAAG,CAAC;AACb,CAAC;
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../src/content/items.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC,SAAS,OA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KAAK,EAAE,EAAE,CAC9C,IAAI,CAAC,MAAM,CACT,2BAA2B,EAC3B,EAAE,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAC3D,OAAO,CACR,CACF,CACF,CAAC;YACF,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3D,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/content/menus.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type HttpClient } from '../core/http.js';
|
|
2
|
+
import type { PublicMenuSummaryDto } from '../generated/cms.js';
|
|
2
3
|
import type { Menu, RequestOptions } from '../types.js';
|
|
3
4
|
export declare function createMenuMethods(http: HttpClient): {
|
|
4
|
-
getMenus(options?: RequestOptions): Promise<
|
|
5
|
+
getMenus(options?: RequestOptions): Promise<PublicMenuSummaryDto[]>;
|
|
5
6
|
getMenu(slugOrId: string, options?: RequestOptions): Promise<Menu>;
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=menus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menus.d.ts","sourceRoot":"","sources":["../../src/content/menus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menus.d.ts","sourceRoot":"","sources":["../../src/content/menus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,IAAI,EAAY,cAAc,EAAE,MAAM,aAAa,CAAC;AAkFlE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU;uBAErB,cAAc,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sBAKjD,MAAM,YAAY,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;EAuB3E"}
|
package/dist/content/menus.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { menuCacheTag } from '../cache-tags.js';
|
|
2
|
+
import { tagRequest } from '../core/http.js';
|
|
1
3
|
function pick(obj, ...keys) {
|
|
2
4
|
for (const key of keys) {
|
|
3
5
|
if (obj[key] !== undefined)
|
|
@@ -66,7 +68,11 @@ export function createMenuMethods(http) {
|
|
|
66
68
|
async getMenu(slugOrId, options) {
|
|
67
69
|
const isUuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(slugOrId);
|
|
68
70
|
const path = isUuid ? `/menus/${slugOrId}` : `/menus/by-slug/${slugOrId}`;
|
|
69
|
-
|
|
71
|
+
// Only an id read can carry the tag `menu.changed` purges: a slug read
|
|
72
|
+
// learns the id from the answer, after the fetch was already tagged.
|
|
73
|
+
const data = await http.cmsGet(path, undefined, isUuid ? tagRequest(options, 'getMenu', [menuCacheTag(slugOrId)]) : options);
|
|
74
|
+
// Read as a plain record: the items are rebuilt below from either the
|
|
75
|
+
// camelCase members the document declares or an older CMS's snake_case.
|
|
70
76
|
const menu = data.data;
|
|
71
77
|
if (Array.isArray(menu.items)) {
|
|
72
78
|
menu.items = buildMenuTree(menu.items);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menus.js","sourceRoot":"","sources":["../../src/content/menus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menus.js","sourceRoot":"","sources":["../../src/content/menus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAmB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAuB9D,SAAS,IAAI,CAAC,GAA4B,EAAE,GAAG,IAAc;IAC3D,KAAK,MAAM,GAAG,IA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;IAEtB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAgB;IAChD,OAAO;QACL,KAAK,CAAC,QAAQ,CAAC,OAAwB;YACrC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAA4B,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;YACxF,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;QAED,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,OAAwB;YACtD,MAAM,MAAM,GAAG,iEAAiE,CAAC,IAAI,CACnF,QAAQ,CACT,CAAC;YACF,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,UAAU,QAAQ,EAAE,CAAC,CAAC,CAAC,kBAAkB,QAAQ,EAAE,CAAC;YAC1E,uEAAuE;YACvE,qEAAqE;YACrE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAC5B,IAAI,EACJ,SAAS,EACT,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAC5E,CAAC;YACF,sEAAsE;YACtE,wEAAwE;YACxE,MAAM,IAAI,GAA4B,IAAI,CAAC,IAAI,CAAC;YAEhD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,KAAsB,CAAC,CAAC;YAC1D,CAAC;YAED,OAAO,IAAuB,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HttpClient } from '../core/http.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PublicResolvedContentDto } from '../generated/cms.js';
|
|
3
|
+
import type { RequestOptions, StoreContext } from '../types.js';
|
|
3
4
|
export declare function createResolveMethods(http: HttpClient, ctx: StoreContext): {
|
|
4
|
-
resolvePath(path: string, locale?: string, options?: RequestOptions): Promise<
|
|
5
|
+
resolvePath(path: string, locale?: string, options?: RequestOptions): Promise<PublicResolvedContentDto>;
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/content/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/content/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,wBAAwB,EAA4B,MAAM,qBAAqB,CAAC;AAE9F,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY;sBAO5D,MAAM,WACH,MAAM,YACL,cAAc,GACvB,OAAO,CAAC,wBAAwB,CAAC;EAcvC"}
|
package/dist/content/resolve.js
CHANGED
|
@@ -10,7 +10,7 @@ export function createResolveMethods(http, ctx) {
|
|
|
10
10
|
if (locale)
|
|
11
11
|
params.locale = locale;
|
|
12
12
|
// The CMS wraps the payload in a `{ data }` envelope (like the other CMS
|
|
13
|
-
// endpoints); unwrap it so callers receive
|
|
13
|
+
// endpoints); unwrap it so callers receive the resolved content directly.
|
|
14
14
|
const res = await http.cmsGet('/resolve', params, options);
|
|
15
15
|
const resolved = res.data;
|
|
16
16
|
// This is the documented entry point for rendering a CMS route, so its
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/content/resolve.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/content/resolve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,UAAU,oBAAoB,CAAC,IAAgB,EAAE,GAAiB;IACtE,6EAA6E;IAC7E,oCAAoC;IACpC,MAAM,OAAO,GAAG,6BAA6B,CAAC,GAAG,CAAC,CAAC;IAEnD,OAAO;QACL,KAAK,CAAC,WAAW,CACf,IAAY,EACZ,MAAe,EACf,OAAwB;YAExB,MAAM,MAAM,GAA2B,EAAE,IAAI,EAAE,CAAC;YAChD,IAAI,MAAM;gBAAE,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;YACnC,yEAAyE;YACzE,0EAA0E;YAC1E,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAA2B,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YACrF,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC;YAC1B,uEAAuE;YACvE,4DAA4D;YAC5D,OAAO,QAAQ,EAAE,MAAM;gBACrB,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,MAAM,EAAE,yBAAyB,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;gBAC9E,CAAC,CAAC,QAAQ,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { HttpClient } from '../core/http.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PublicSitemapEntryDto } from '../generated/cms.js';
|
|
3
|
+
import type { RequestOptions } from '../types.js';
|
|
3
4
|
export declare function createSitemapMethods(http: HttpClient): {
|
|
4
5
|
/**
|
|
5
6
|
* Fetch the CMS sitemap — every routable published item plus collection
|
|
6
7
|
* basePaths. Used by storefronts to generate `sitemap.xml` and pre-render
|
|
7
8
|
* routes at build time.
|
|
8
9
|
*/
|
|
9
|
-
getSitemap(languageCode?: string, options?: RequestOptions): Promise<
|
|
10
|
+
getSitemap(languageCode?: string, options?: RequestOptions): Promise<PublicSitemapEntryDto[]>;
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=sitemap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../src/content/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../src/content/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAA4B,MAAM,qBAAqB,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU;IAEjD;;;;OAIG;8BAEc,MAAM,YACX,cAAc,GACvB,OAAO,CAAC,qBAAqB,EAAE,CAAC;EAOtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sitemap.js","sourceRoot":"","sources":["../../src/content/sitemap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sitemap.js","sourceRoot":"","sources":["../../src/content/sitemap.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,oBAAoB,CAAC,IAAgB;IACnD,OAAO;QACL;;;;WAIG;QACH,KAAK,CAAC,UAAU,CACd,YAAqB,EACrB,OAAwB;YAExB,MAAM,MAAM,GAA2B,EAAE,CAAC;YAC1C,IAAI,YAAY;gBAAE,MAAM,CAAC,aAAa,GAAG,YAAY,CAAC;YACtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAA2B,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YAC1F,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import type { HttpClient } from '../core/http.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PublicContentStringDto } from '../generated/cms.js';
|
|
3
|
+
import type { ContentModule, RequestOptions } from '../types.js';
|
|
3
4
|
export declare function createStringMethods(http: HttpClient): {
|
|
4
|
-
getContentStrings
|
|
5
|
+
getContentStrings: ContentModule["getContentStrings"];
|
|
6
|
+
/**
|
|
7
|
+
* One content string by its id, with the value in every language.
|
|
8
|
+
*
|
|
9
|
+
* For rendering a page, `getContentStrings('export')` (every string, keyed
|
|
10
|
+
* `key → language → value`) is one request for all of them; this is for a
|
|
11
|
+
* string you hold the id of — from a CMS reference field or an event.
|
|
12
|
+
*
|
|
13
|
+
* @throws {StorefrontError} `VALIDATION_ERROR` before any request when `id`
|
|
14
|
+
* is not a UUID (the CMS accepts nothing else here, and a bare path segment
|
|
15
|
+
* such as `export` would reach a different route); `NOT_FOUND` (404) when
|
|
16
|
+
* the channel has no live string with that id.
|
|
17
|
+
*/
|
|
18
|
+
getContentString(id: string, options?: RequestOptions): Promise<PublicContentStringDto>;
|
|
5
19
|
};
|
|
6
20
|
//# sourceMappingURL=strings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/content/strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/content/strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EACV,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAkB,cAAc,EAAE,MAAM,aAAa,CAAC;AAKjF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU;uBAkBR,aAAa,CAAC,mBAAmB,CAAC;IAE1E;;;;;;;;;;;OAWG;yBACwB,MAAM,YAAY,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;EAehG"}
|
package/dist/content/strings.js
CHANGED
|
@@ -1,10 +1,38 @@
|
|
|
1
|
+
import { StorefrontError } from '../errors.js';
|
|
2
|
+
/** The CMS refuses anything but a UUID on this route (`ParseUUIDPipe`). */
|
|
3
|
+
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1
4
|
export function createStringMethods(http) {
|
|
5
|
+
// One implementation behind the overloads `ContentModule` declares: `'list'`
|
|
6
|
+
// answers the paginated envelope, anything else the export map.
|
|
7
|
+
async function getContentStrings(format, options) {
|
|
8
|
+
if (format === 'list') {
|
|
9
|
+
return http.cmsGet('/content-strings', undefined, options);
|
|
10
|
+
}
|
|
11
|
+
return http.cmsGet('/content-strings/export', undefined, options);
|
|
12
|
+
}
|
|
2
13
|
return {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
14
|
+
getContentStrings: getContentStrings,
|
|
15
|
+
/**
|
|
16
|
+
* One content string by its id, with the value in every language.
|
|
17
|
+
*
|
|
18
|
+
* For rendering a page, `getContentStrings('export')` (every string, keyed
|
|
19
|
+
* `key → language → value`) is one request for all of them; this is for a
|
|
20
|
+
* string you hold the id of — from a CMS reference field or an event.
|
|
21
|
+
*
|
|
22
|
+
* @throws {StorefrontError} `VALIDATION_ERROR` before any request when `id`
|
|
23
|
+
* is not a UUID (the CMS accepts nothing else here, and a bare path segment
|
|
24
|
+
* such as `export` would reach a different route); `NOT_FOUND` (404) when
|
|
25
|
+
* the channel has no live string with that id.
|
|
26
|
+
*/
|
|
27
|
+
async getContentString(id, options) {
|
|
28
|
+
if (typeof id !== 'string' || !UUID.test(id)) {
|
|
29
|
+
const message = 'getContentString needs the content string id, a UUID.';
|
|
30
|
+
throw new StorefrontError(message, 'cms', 400, 'VALIDATION_ERROR', [
|
|
31
|
+
{ field: 'id', code: 'VALIDATION_ERROR', message },
|
|
32
|
+
]);
|
|
6
33
|
}
|
|
7
|
-
|
|
34
|
+
const response = await http.cmsGet(`/content-strings/${id}`, undefined, options);
|
|
35
|
+
return response.data;
|
|
8
36
|
},
|
|
9
37
|
};
|
|
10
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/content/strings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/content/strings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQ/C,2EAA2E;AAC3E,MAAM,IAAI,GAAG,iEAAiE,CAAC;AAE/E,MAAM,UAAU,mBAAmB,CAAC,IAAgB;IAClD,6EAA6E;IAC7E,gEAAgE;IAChE,KAAK,UAAU,iBAAiB,CAC9B,MAA0B,EAC1B,OAAwB;QAExB,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC,MAAM,CAChB,kBAAkB,EAClB,SAAS,EACT,OAAO,CACR,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAiB,yBAAyB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED,OAAO;QACL,iBAAiB,EAAE,iBAAuD;QAE1E;;;;;;;;;;;WAWG;QACH,KAAK,CAAC,gBAAgB,CAAC,EAAU,EAAE,OAAwB;YACzD,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC7C,MAAM,OAAO,GAAG,uDAAuD,CAAC;gBACxE,MAAM,IAAI,eAAe,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,kBAAkB,EAAE;oBACjE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE;iBACnD,CAAC,CAAC;YACL,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAChC,oBAAoB,EAAE,EAAE,EACxB,SAAS,EACT,OAAO,CACR,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/core/context.d.ts
CHANGED
|
@@ -1,3 +1,129 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ChannelResolver, type ConditionalReadsOption, type ChannelInfo as CoreChannelInfo, type DeprecationNotice } from '@sixtyninecommerce/core';
|
|
2
|
+
import { StorefrontError } from '../errors.js';
|
|
3
|
+
import type { CacheTagResolver, ChannelInfo, MethodDeprecationNotice, OrderScope, StoreContext, StorefrontClientConfig, StoreRename } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* What every store a client serves shares: where the services are, how to talk
|
|
6
|
+
* to them, and the CDN to fall back on. Read once from the configuration; a
|
|
7
|
+
* multi-store client holds ONE of these for all of its stores.
|
|
8
|
+
*/
|
|
9
|
+
export interface ClientEndpoints {
|
|
10
|
+
readonly fetch: typeof globalThis.fetch;
|
|
11
|
+
/** The configured CDN — used for a store whose channel sets no `cdnDomain`. */
|
|
12
|
+
readonly cdnUrl: string;
|
|
13
|
+
readonly vendureUrl: string;
|
|
14
|
+
readonly cmsUrl: string;
|
|
15
|
+
readonly pluginsUrl: string;
|
|
16
|
+
readonly retry: {
|
|
17
|
+
readonly attempts: number;
|
|
18
|
+
readonly baseDelayMs: number;
|
|
19
|
+
};
|
|
20
|
+
readonly cacheTags: boolean | CacheTagResolver;
|
|
21
|
+
readonly conditionalReads: ConditionalReadsOption;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The shopper half of a context: everything one request may change and no
|
|
25
|
+
* other request may see. A single-store client takes it from its config; a
|
|
26
|
+
* multi-store client builds a fresh one for every `forRequest`/`forStore`.
|
|
27
|
+
*/
|
|
28
|
+
export interface ShopperState {
|
|
29
|
+
readonly languageCode?: string;
|
|
30
|
+
readonly currencyCode?: string;
|
|
31
|
+
readonly authToken?: string;
|
|
32
|
+
readonly privateToken?: string;
|
|
33
|
+
readonly buyerIp?: string;
|
|
34
|
+
readonly orderScope?: OrderScope;
|
|
35
|
+
readonly head?: string;
|
|
36
|
+
readonly onAuthToken?: (token: string) => void;
|
|
37
|
+
readonly onAuthExpired?: () => void;
|
|
38
|
+
readonly onAuthCleared?: () => void;
|
|
39
|
+
}
|
|
2
40
|
export declare function createStoreContext(config: StorefrontClientConfig): Promise<StoreContext>;
|
|
41
|
+
/**
|
|
42
|
+
* Who hears that a store was renamed. A configured `onStoreRenamed` is called once per client
|
|
43
|
+
* for each rename and may not throw into a request; without one the client warns ONCE PER
|
|
44
|
+
* PROCESS for each rename (several clients of one store in one process say it once).
|
|
45
|
+
* `audience` picks the warning: a single-store client follows the new code, a store router
|
|
46
|
+
* keeps the code `resolveStore` names.
|
|
47
|
+
*
|
|
48
|
+
* `instance` tells occurrences of the same pair of codes apart. A single-store client reports
|
|
49
|
+
* only when it actually switches, so it passes the alias's `renamedAt` (stamped afresh on every
|
|
50
|
+
* alias row the CMS writes): a rename undone, submitted again and undone again is heard each
|
|
51
|
+
* time. A router reports on every request that reaches an old code and never switches, so it
|
|
52
|
+
* passes the window's end, which a rewritten row keeps. A switch-back ("no longer answers") is
|
|
53
|
+
* never swallowed by another client's warning: a client says it whenever IT goes back, since
|
|
54
|
+
* its last word must not name a dead code.
|
|
55
|
+
*/
|
|
56
|
+
export declare function renameReporter(onStoreRenamed: StorefrontClientConfig['onStoreRenamed'], audience?: 'client' | 'router'): (rename: StoreRename, instance: string) => void;
|
|
57
|
+
/**
|
|
58
|
+
* What the default reporter says. The end is the exact instant, in UTC: the old code stops at
|
|
59
|
+
* the rename's time of day, and a bare date reads as "through that day" in every zone.
|
|
60
|
+
*/
|
|
61
|
+
export declare function renameWarning(rename: StoreRename, audience?: 'client' | 'router'): string;
|
|
62
|
+
/** Which rename an old-code answer belongs to (see {@link renameReporter}). */
|
|
63
|
+
export declare function renameInstance(info: {
|
|
64
|
+
renamedAt?: string | undefined;
|
|
65
|
+
previousCodeUntil?: string | undefined;
|
|
66
|
+
}): string;
|
|
67
|
+
/**
|
|
68
|
+
* Validate and normalise the parts of a config every store shares. Throws the
|
|
69
|
+
* same refusals, in the same order, a single-store client always has.
|
|
70
|
+
*/
|
|
71
|
+
export declare function readClientEndpoints(config: Pick<StorefrontClientConfig, 'cdnUrl' | 'cacheTags' | 'conditionalReads' | 'fetch' | 'vendureUrl' | 'cmsUrl' | 'pluginsUrl' | 'retry'>): ClientEndpoints;
|
|
72
|
+
/** The CMS channel resolver a client's transports re-resolve through. */
|
|
73
|
+
export declare function createClientChannelResolver(endpoints: ClientEndpoints): ChannelResolver;
|
|
74
|
+
/** The store's own CDN when its channel names one, else the configured CDN. */
|
|
75
|
+
export declare function cdnForChannel(channel: ChannelInfo, fallbackCdnUrl: string): {
|
|
76
|
+
cdnUrl: string;
|
|
77
|
+
channelCdnDomain: string | null;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* One request's context: the store's shared parts plus a NEW shopper half.
|
|
81
|
+
* Every field the modules write (`authToken`, `languageCode`, the session
|
|
82
|
+
* currency, `taxDisplay`, `orderScope`) lives on the object returned here and
|
|
83
|
+
* nowhere else, which is what keeps two requests from seeing each other's.
|
|
84
|
+
*/
|
|
85
|
+
export declare function assembleStoreContext(endpoints: ClientEndpoints, channel: ChannelInfo, channels: ChannelResolver, shopper: ShopperState, options?: {
|
|
86
|
+
readonly storeScopedCacheTags?: boolean;
|
|
87
|
+
readonly onDeprecation?: (notice: DeprecationNotice) => void;
|
|
88
|
+
readonly reportDeprecatedMethod?: (notice: MethodDeprecationNotice) => void;
|
|
89
|
+
}): StoreContext;
|
|
90
|
+
/**
|
|
91
|
+
* A customer token, refused blank. Blank would silently build an ANONYMOUS
|
|
92
|
+
* client — the opposite of what the caller asked for, discovered only when the
|
|
93
|
+
* first cart call lands elsewhere.
|
|
94
|
+
*/
|
|
95
|
+
export declare function assertCustomerToken(token: string | undefined): void;
|
|
96
|
+
/** A session currency: three upper-case letters (the engine's `CurrencyCode`). */
|
|
97
|
+
export declare function assertCurrencyCode(currencyCode: string | undefined): void;
|
|
98
|
+
export declare function assertHeadKey(head: unknown, label: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Refuse a private token in a browser: a token a page holds is a token every
|
|
101
|
+
* visitor holds. Runs before anything reaches the network.
|
|
102
|
+
*/
|
|
103
|
+
export declare function assertPrivateTokenRuntime(): void;
|
|
104
|
+
/** A private token's SHAPE; whether it is live is the platform's answer. */
|
|
105
|
+
export declare function assertPrivateTokenShape(token: string): void;
|
|
106
|
+
/** A buyer address is honoured only beside a private token, and never blank. */
|
|
107
|
+
export declare function assertBuyerIp(buyerIp: string | undefined, hasPrivateToken: boolean): void;
|
|
108
|
+
/**
|
|
109
|
+
* Resolve the channel, and say what to DO about each way it can fail.
|
|
110
|
+
*
|
|
111
|
+
* `core` reports the failure accurately (`CHANNEL_NOT_FOUND`,
|
|
112
|
+
* `CHANNEL_RESOLUTION_TIMEOUT`, …); this is the one call a storefront author
|
|
113
|
+
* makes by hand, usually while wiring the SDK up for the first time, so the
|
|
114
|
+
* three failures they are actually going to hit name the thing to check.
|
|
115
|
+
*/
|
|
116
|
+
export declare function resolveChannel(channels: ChannelResolver, storeCode: string, cmsUrl: string): Promise<ChannelInfo>;
|
|
117
|
+
/**
|
|
118
|
+
* {@link resolveChannel} without the reshaping: the resolver's own object, so
|
|
119
|
+
* a caller can tell by identity whether the answer changed since it last asked.
|
|
120
|
+
*/
|
|
121
|
+
export declare function resolveCoreChannel(channels: ChannelResolver, storeCode: string, cmsUrl: string): Promise<CoreChannelInfo>;
|
|
122
|
+
/**
|
|
123
|
+
* `core` types the bag as `Record<string, unknown>` (it only checks it is an
|
|
124
|
+
* object); the generated `PublicChannelDto` names the keys the CMS sends.
|
|
125
|
+
*/
|
|
126
|
+
export declare function toChannelInfo(resolved: CoreChannelInfo): ChannelInfo;
|
|
127
|
+
/** The refusal for a code that names no store this client may serve. */
|
|
128
|
+
export declare function channelNotFound(storeCode: string): StorefrontError;
|
|
3
129
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/core/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/core/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,IAAI,eAAe,EAEnC,KAAK,iBAAiB,EAIvB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EAAE,eAAe,EAAqB,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACZ,MAAM,aAAa,CAAC;AASrB;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IACxC,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5E,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,gBAAg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