@wix/himalaya-cli 0.1099.0 → 0.1101.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.
Files changed (55) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/extensions.d.ts +13 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/_shared/runtime.generated.d.ts +27 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/_shared/types.generated.d.ts +829 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/categories.generated.d.ts +113 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/commentContexts.generated.d.ts +43 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/comments.generated.d.ts +553 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/contentRevisions.generated.d.ts +100 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/index.generated.d.ts +7 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/ratings.generated.d.ts +72 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/widgets.generated.d.ts +138 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +280 -7
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +1 -1
  13. package/dist/cli.mjs +16 -1
  14. package/guides/release-notes.md +9 -0
  15. package/guides/sdk-reference.json +291 -1
  16. package/guides/wix-api-usage.md +34 -1
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/dev/index.ts +394 -514
  19. package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +8 -1
  20. package/templates/beauty-salon/tier5-src/himi-blog-post/index.ts +14 -4
  21. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +8 -1
  22. package/templates/branded-lite/dev/index.ts +394 -514
  23. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +8 -1
  24. package/templates/branded-lite/tier5-src/himi-blog-post/index.ts +14 -4
  25. package/templates/community-club/tier5-src/_shared/collection-contract.ts +8 -1
  26. package/templates/community-club/tier5-src/himi-blog-post/index.ts +14 -4
  27. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +8 -1
  28. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +8 -1
  29. package/templates/events-meetups/tier5-src/himi-blog-post/index.ts +14 -4
  30. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +8 -1
  31. package/templates/gym-fitness/dev/index.ts +394 -514
  32. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +8 -1
  33. package/templates/gym-fitness/tier5-src/himi-blog-post/index.ts +14 -4
  34. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +8 -1
  35. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +8 -1
  36. package/templates/nonprofit-cause/tier5-src/himi-blog-post/index.ts +14 -4
  37. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +8 -1
  38. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +8 -1
  39. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +8 -1
  40. package/templates/podcast-creator/tier5-src/himi-blog-post/index.ts +14 -4
  41. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +8 -1
  42. package/templates/portfolio-creative/dev/index.ts +396 -516
  43. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +8 -1
  44. package/templates/portfolio-creative/tier5-src/himi-blog-post/index.ts +14 -4
  45. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +8 -1
  46. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +8 -1
  47. package/templates/restaurant/tier5-src/himi-blog-post/index.ts +14 -4
  48. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +8 -1
  49. package/templates/retail-store/dev/index.ts +396 -516
  50. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +8 -1
  51. package/templates/retail-store/tier5-src/himi-blog-post/index.ts +14 -4
  52. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +8 -1
  53. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +8 -1
  54. package/templates/yoga-studio/tier5-src/himi-blog-post/index.ts +14 -4
  55. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +8 -1
@@ -1,8 +1,21 @@
1
+ export declare const BLOG_COMMENTS_APP_ID = "14bcded7-0066-7c35-14d7-466cb3f09103";
1
2
  export type WixBlogCommentRow = {
2
3
  id: string;
3
4
  authorName: string;
4
5
  text: string;
5
6
  createdDate: string;
6
7
  };
8
+ type BlogCommentLike = {
9
+ id?: string;
10
+ createdDate?: string;
11
+ author?: unknown;
12
+ content?: {
13
+ richContent?: unknown;
14
+ };
15
+ };
16
+ /** A created or listed comment as the blog screen's row. Accepts the curated and the auto-tier
17
+ * (`comments.createComment`) response shapes alike — both are the same REST wire object. */
18
+ export declare function blogCommentRow(comment: BlogCommentLike | undefined): WixBlogCommentRow;
7
19
  export declare function createBlogComment(postId: string, text: string): Promise<WixBlogCommentRow>;
8
20
  export declare function listBlogComments(postId: string): Promise<WixBlogCommentRow[]>;
21
+ export {};
@@ -0,0 +1,27 @@
1
+ /** Per-call options. `site` addresses ONE call at a business other than the app's active
2
+ * one (`site.forSite(msid)` from `@himalaya/wix-platform` returns this shape). */
3
+ export interface WixCallOptions {
4
+ site?: string;
5
+ }
6
+ /** How a request reaches the wire: the request field behind each `{…}` in the path, in
7
+ * order, and whether the request travels in the query string (GET/DELETE) or the body. */
8
+ export interface WixRoute {
9
+ pathFields?: readonly string[];
10
+ query?: boolean;
11
+ }
12
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
13
+ * DELETE request from. A nested object flattens to dotted field paths
14
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
15
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
16
+ * so an empty request yields the bare path. A field whose value is an array of
17
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
18
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
19
+ *
20
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
21
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
22
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
23
+ * before the request went out rather than degrade.
24
+ *
25
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
26
+ export declare function wixQueryPath(path: string, req: unknown): string;
27
+ export declare function wixCall<T>(verb: string, template: string, req: unknown, opts?: WixCallOptions, route?: WixRoute): Promise<T>;