@wix/himalaya-cli 0.1648.0 → 0.1650.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 (87) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/ui/src/index.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/ui.mjs +1 -0
  3. package/dist/browser-plane/assets.json +5 -5
  4. package/dist/browser-plane/preview-deferred/{4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin → 6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555.bin} +1 -1
  5. package/dist/browser-plane/sw.js +5 -5
  6. package/dist/cli.mjs +45 -40
  7. package/dist/preview-assets.generated.bin +0 -0
  8. package/guides/sdk-reference.json +8 -1
  9. package/package.json +2 -2
  10. package/template-icons/wholesale-store.png +0 -0
  11. package/templates/beauty-salon/config.ts +16 -1
  12. package/templates/branded-lite/config.ts +16 -1
  13. package/templates/branded-lite/dev/index.ts +292 -305
  14. package/templates/branded-lite/l10n/en.json +3 -3
  15. package/templates/branded-lite/tier5-src/_shared/branded-form.ts +22 -4
  16. package/templates/branded-lite/tier5-src/himi-branded-lite-form/index.ts +250 -74
  17. package/templates/community-club/config.ts +16 -1
  18. package/templates/events-meetups/config.ts +16 -1
  19. package/templates/gym-fitness/config.ts +16 -1
  20. package/templates/nonprofit-cause/config.ts +16 -1
  21. package/templates/podcast-creator/config.ts +16 -1
  22. package/templates/portfolio-creative/config.ts +16 -1
  23. package/templates/restaurant/config.ts +16 -1
  24. package/templates/retail-store/config.ts +16 -1
  25. package/templates/wholesale-store/README.md +53 -0
  26. package/templates/wholesale-store/config.ts +247 -0
  27. package/templates/wholesale-store/dev/index.ts +12194 -0
  28. package/templates/wholesale-store/himalaya.content.json +43 -0
  29. package/templates/wholesale-store/himalaya.template.json +14 -0
  30. package/templates/wholesale-store/icon.png +0 -0
  31. package/templates/wholesale-store/platforms.json +1 -0
  32. package/templates/wholesale-store/tier5-src/_shared/app-locale.ts +61 -0
  33. package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +279 -0
  34. package/templates/wholesale-store/tier5-src/_shared/business-chat-copy.ts +40 -0
  35. package/templates/wholesale-store/tier5-src/_shared/business-chat-history.ts +51 -0
  36. package/templates/wholesale-store/tier5-src/_shared/business-chat-message-model.ts +177 -0
  37. package/templates/wholesale-store/tier5-src/_shared/business-chat-model.ts +56 -0
  38. package/templates/wholesale-store/tier5-src/_shared/business-chat-presenter.ts +576 -0
  39. package/templates/wholesale-store/tier5-src/_shared/business-chat-transport.ts +148 -0
  40. package/templates/wholesale-store/tier5-src/_shared/collection-contract.ts +228 -0
  41. package/templates/wholesale-store/tier5-src/_shared/collection-query-legacy.ts +194 -0
  42. package/templates/wholesale-store/tier5-src/_shared/collection-query.ts +252 -0
  43. package/templates/wholesale-store/tier5-src/_shared/collection-service.ts +423 -0
  44. package/templates/wholesale-store/tier5-src/_shared/detail-presence.ts +51 -0
  45. package/templates/wholesale-store/tier5-src/_shared/empty-flags.ts +33 -0
  46. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +508 -0
  47. package/templates/wholesale-store/tier5-src/_shared/exclusive-writes.ts +66 -0
  48. package/templates/wholesale-store/tier5-src/_shared/himi-account.ts +164 -0
  49. package/templates/wholesale-store/tier5-src/_shared/himi-copy.ts +89 -0
  50. package/templates/wholesale-store/tier5-src/_shared/himi-store-categories.ts +108 -0
  51. package/templates/wholesale-store/tier5-src/_shared/himi-store-collection.ts +22 -0
  52. package/templates/wholesale-store/tier5-src/_shared/himi-store-saved.ts +57 -0
  53. package/templates/wholesale-store/tier5-src/_shared/himi-store.ts +7 -0
  54. package/templates/wholesale-store/tier5-src/_shared/himi-text.ts +24 -0
  55. package/templates/wholesale-store/tier5-src/_shared/hosted-checkout.ts +70 -0
  56. package/templates/wholesale-store/tier5-src/_shared/iap-presentation.ts +207 -0
  57. package/templates/wholesale-store/tier5-src/_shared/iap-worker.ts +125 -0
  58. package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +68 -0
  59. package/templates/wholesale-store/tier5-src/_shared/live-session.ts +172 -0
  60. package/templates/wholesale-store/tier5-src/_shared/local-preferences.ts +38 -0
  61. package/templates/wholesale-store/tier5-src/_shared/member-access.ts +52 -0
  62. package/templates/wholesale-store/tier5-src/_shared/member-account-routes.ts +52 -0
  63. package/templates/wholesale-store/tier5-src/_shared/member-orders.ts +8 -0
  64. package/templates/wholesale-store/tier5-src/_shared/member-screen.ts +99 -0
  65. package/templates/wholesale-store/tier5-src/_shared/online-actions.ts +76 -0
  66. package/templates/wholesale-store/tier5-src/_shared/owner-editor-value.ts +164 -0
  67. package/templates/wholesale-store/tier5-src/_shared/owner-load-error.ts +348 -0
  68. package/templates/wholesale-store/tier5-src/_shared/payment-setup.ts +6 -0
  69. package/templates/wholesale-store/tier5-src/_shared/read-service.ts +255 -0
  70. package/templates/wholesale-store/tier5-src/_shared/restaurant-ordering.ts +201 -0
  71. package/templates/wholesale-store/tier5-src/_shared/rich-body.ts +78 -0
  72. package/templates/wholesale-store/tier5-src/_shared/rich-content-link.ts +34 -0
  73. package/templates/wholesale-store/tier5-src/_shared/sign-in-sheet.ts +18 -0
  74. package/templates/wholesale-store/tier5-src/_shared/store-order-presentation.ts +56 -0
  75. package/templates/wholesale-store/tier5-src/_shared/store-product-info.ts +50 -0
  76. package/templates/wholesale-store/tier5-src/business-chat/index.ts +724 -0
  77. package/templates/wholesale-store/tier5-src/himi-branded-lite-cart/index.ts +602 -0
  78. package/templates/wholesale-store/tier5-src/himi-branded-lite-order/index.ts +472 -0
  79. package/templates/wholesale-store/tier5-src/himi-branded-lite-orders/index.ts +327 -0
  80. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +998 -0
  81. package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +889 -0
  82. package/templates/wholesale-store/tier5-src/himi-store-saved/index.ts +68 -0
  83. package/templates/wholesale-store/tier5-src/himi-store-shop/index.ts +150 -0
  84. package/templates/wholesale-store/tier5-src/himi-wholesale-home/index.ts +507 -0
  85. package/templates/wholesale-store/tier5-src/wix-spaces-collection-detail/index.ts +195 -0
  86. package/templates/wholesale-store/tokens.json +340 -0
  87. package/templates/yoga-studio/config.ts +16 -1
@@ -371,7 +371,7 @@ export default defineApp({
371
371
  // Your on-device database. It must declare every entity a worker reads or writes,
372
372
  // or those calls fail closed — keep it in step with `local_database` above.
373
373
  dataSchema: {
374
- "version": 3,
374
+ "version": 4,
375
375
  "entities": [
376
376
  {
377
377
  "name": "products",
@@ -555,6 +555,21 @@ export default defineApp({
555
555
  "type": "string"
556
556
  }
557
557
  ]
558
+ },
559
+ {
560
+ "name": "form_drafts",
561
+ "encrypted": true,
562
+ "fields": [
563
+ {
564
+ "name": "id",
565
+ "type": "string",
566
+ "required": true
567
+ },
568
+ {
569
+ "name": "values",
570
+ "type": "string"
571
+ }
572
+ ]
558
573
  }
559
574
  ]
560
575
  },
@@ -513,7 +513,7 @@ export default defineApp({
513
513
  // Your on-device database. It must declare every entity a worker reads or writes,
514
514
  // or those calls fail closed — keep it in step with `local_database` above.
515
515
  dataSchema: {
516
- "version": 3,
516
+ "version": 4,
517
517
  "entities": [
518
518
  {
519
519
  "name": "products",
@@ -697,6 +697,21 @@ export default defineApp({
697
697
  "type": "string"
698
698
  }
699
699
  ]
700
+ },
701
+ {
702
+ "name": "form_drafts",
703
+ "encrypted": true,
704
+ "fields": [
705
+ {
706
+ "name": "id",
707
+ "type": "string",
708
+ "required": true
709
+ },
710
+ {
711
+ "name": "values",
712
+ "type": "string"
713
+ }
714
+ ]
700
715
  }
701
716
  ]
702
717
  },
@@ -416,7 +416,7 @@ export default defineApp({
416
416
  // Your on-device database. It must declare every entity a worker reads or writes,
417
417
  // or those calls fail closed — keep it in step with `local_database` above.
418
418
  dataSchema: {
419
- "version": 3,
419
+ "version": 4,
420
420
  "entities": [
421
421
  {
422
422
  "name": "products",
@@ -600,6 +600,21 @@ export default defineApp({
600
600
  "type": "string"
601
601
  }
602
602
  ]
603
+ },
604
+ {
605
+ "name": "form_drafts",
606
+ "encrypted": true,
607
+ "fields": [
608
+ {
609
+ "name": "id",
610
+ "type": "string",
611
+ "required": true
612
+ },
613
+ {
614
+ "name": "values",
615
+ "type": "string"
616
+ }
617
+ ]
603
618
  }
604
619
  ]
605
620
  },
@@ -406,7 +406,7 @@ export default defineApp({
406
406
  // Your on-device database. It must declare every entity a worker reads or writes,
407
407
  // or those calls fail closed — keep it in step with `local_database` above.
408
408
  dataSchema: {
409
- "version": 3,
409
+ "version": 4,
410
410
  "entities": [
411
411
  {
412
412
  "name": "products",
@@ -590,6 +590,21 @@ export default defineApp({
590
590
  "type": "string"
591
591
  }
592
592
  ]
593
+ },
594
+ {
595
+ "name": "form_drafts",
596
+ "encrypted": true,
597
+ "fields": [
598
+ {
599
+ "name": "id",
600
+ "type": "string",
601
+ "required": true
602
+ },
603
+ {
604
+ "name": "values",
605
+ "type": "string"
606
+ }
607
+ ]
593
608
  }
594
609
  ]
595
610
  },
@@ -439,7 +439,7 @@ export default defineApp({
439
439
  // Your on-device database. It must declare every entity a worker reads or writes,
440
440
  // or those calls fail closed — keep it in step with `local_database` above.
441
441
  dataSchema: {
442
- "version": 3,
442
+ "version": 4,
443
443
  "entities": [
444
444
  {
445
445
  "name": "products",
@@ -623,6 +623,21 @@ export default defineApp({
623
623
  "type": "string"
624
624
  }
625
625
  ]
626
+ },
627
+ {
628
+ "name": "form_drafts",
629
+ "encrypted": true,
630
+ "fields": [
631
+ {
632
+ "name": "id",
633
+ "type": "string",
634
+ "required": true
635
+ },
636
+ {
637
+ "name": "values",
638
+ "type": "string"
639
+ }
640
+ ]
626
641
  }
627
642
  ]
628
643
  },
@@ -394,7 +394,7 @@ export default defineApp({
394
394
  // Your on-device database. It must declare every entity a worker reads or writes,
395
395
  // or those calls fail closed — keep it in step with `local_database` above.
396
396
  dataSchema: {
397
- "version": 3,
397
+ "version": 4,
398
398
  "entities": [
399
399
  {
400
400
  "name": "products",
@@ -578,6 +578,21 @@ export default defineApp({
578
578
  "type": "string"
579
579
  }
580
580
  ]
581
+ },
582
+ {
583
+ "name": "form_drafts",
584
+ "encrypted": true,
585
+ "fields": [
586
+ {
587
+ "name": "id",
588
+ "type": "string",
589
+ "required": true
590
+ },
591
+ {
592
+ "name": "values",
593
+ "type": "string"
594
+ }
595
+ ]
581
596
  }
582
597
  ]
583
598
  },
@@ -359,7 +359,7 @@ export default defineApp({
359
359
  // Your on-device database. It must declare every entity a worker reads or writes,
360
360
  // or those calls fail closed — keep it in step with `local_database` above.
361
361
  dataSchema: {
362
- "version": 3,
362
+ "version": 4,
363
363
  "entities": [
364
364
  {
365
365
  "name": "products",
@@ -543,6 +543,21 @@ export default defineApp({
543
543
  "type": "string"
544
544
  }
545
545
  ]
546
+ },
547
+ {
548
+ "name": "form_drafts",
549
+ "encrypted": true,
550
+ "fields": [
551
+ {
552
+ "name": "id",
553
+ "type": "string",
554
+ "required": true
555
+ },
556
+ {
557
+ "name": "values",
558
+ "type": "string"
559
+ }
560
+ ]
546
561
  }
547
562
  ]
548
563
  },
@@ -0,0 +1,53 @@
1
+ # __HIMI_APP_NAME__ — from the `wholesale-store` template
2
+
3
+ A wholesale / distributor store app over a real Wix Stores site: a home with the newest arrival, round category tiles, Deals (real % off from compare-at prices) and Best sellers; Categories with a catalog search; All products; the shared Branded Lite product screen in a wholesaler's words, with quantity and a Request a bulk quote card; Saved; a cart with quantity steppers and the Wix checkout; My orders with Order These Again; Bulk quotes & help (the Wix Inbox chat). Boots as a VISITOR (catalog and cart work with no login); orders and the chat open Branded Lite's sign-in form as a sheet.
4
+
5
+ Everything here is now yours to edit — screens in `dev/`, logic in `tier5-src/`,
6
+ identity and navigation in `config.ts`, look and feel in `tokens.json`.
7
+
8
+ ## Point at your Wix site
9
+
10
+ Your **Wix Headless `clientId` binds the data** — the visitor token minted from it already
11
+ names your site, so reads need nothing else. Set these before `himi build` / preview so calls
12
+ hit YOUR site (the placeholders are not a real backend):
13
+
14
+ export WIX_CLIENT_ID="<headless-oauth-client-id>"
15
+ export WIX_SITE_URL="https://your-site.wixsite.com/…"
16
+ export WIX_SITE_ID="<metasite-id>"
17
+
18
+ `WIX_SITE_ID` is the site that client belongs to. The member login takes it from the environment
19
+ while `WIX_CLIENT_ID` is the client the config uses. A native build needs it for member sign-up on
20
+ a CAPTCHA-protected site, push registration and in-app purchases.
21
+
22
+ Full details, including how to ship a binary a customer can install against their own
23
+ site: `himi docs branded-lite-site-binding`.
24
+
25
+ ## The loop
26
+
27
+ himi build # compile tier5-src/* -> dist/bundles
28
+ himi validate # screens, bindings and worker boot
29
+ himi render <screenId> --tree # render a screen right here, no device needed
30
+ himi test # exercise every action your screens declare
31
+ himi login --browser --target wix # sign in with your Wix account (once)
32
+ # no browser? export WIX_API_KEY, then himi login --wix --target wix
33
+ himi push --draft # publish a DRAFT release + get preview links
34
+
35
+ Build, validate, render and test run entirely on your machine. Only `login` and
36
+ `push` reach Wix. No per-app install is needed: the CLI ships the `@wix/himalaya`
37
+ runtime it compiles against.
38
+
39
+ ## Pattern index — where to look for each recipe
40
+
41
+ | Pattern | Screens |
42
+ |---|---|
43
+ | Data-derived category tiles (own image, else a product photo) | wholesale_home categories, himi_collections |
44
+ | Deals from compare-at prices (% OFF badge) | wholesale_home deals |
45
+ | Horizontal rails (bound LazyList) | wholesale_home deals, best sellers |
46
+ | Reusing a shared screen in your own words (stock-string copy rewrite) | himi_product, himi_collection, himi_saved_products |
47
+ | Adding a card to a shared screen by node id | himi_product bulk-quote card |
48
+ | A paged list Android recycles (plain root column) | himi_shop, himi_orders |
49
+ | Your own design over a shared worker | himi_cart, himi_account, himi_orders, himi_order |
50
+ | Member chat with the business (Wix Inbox) | himi_business_chat |
51
+
52
+ Guides: `himi docs recipe-dynamic-list`, `himi docs tier-5-add-a-screen`,
53
+ `himi docs designing-himi-screens`. Seed references: `himi agent-init`.
@@ -0,0 +1,247 @@
1
+ // Your app's configuration — identity, auth, navigation, capabilities and tokens.
2
+ // Inspect the live values any time with `himi context`; see `himi docs app-config`.
3
+ import { defineApp } from "@himalaya/core";
4
+ import { WixConsumerAuthProvider } from "@himalaya/wix-auth";
5
+ import { ConsoleTelemetrySink } from "@himalaya/telemetry-console";
6
+
7
+ export default defineApp({
8
+ id: "__HIMI_APP_DOTID__",
9
+ name: "__HIMI_APP_NAME__",
10
+ bundleId: "__HIMI_APP_DOTID__",
11
+ applicationId: "__HIMI_APP_DOTID__",
12
+ // Placeholders — an over-the-air app never consumes these. Leave as-is.
13
+ schemaPackage: "@example/__HIMI_APP_SLUG__-schema",
14
+ schemaPackageRange: { min: 9900, max: 9909 },
15
+ // Placeholders — only a local server would read these. Leave as-is.
16
+ ports: { devServer: 8190, web: 5390 },
17
+ auth: WixConsumerAuthProvider({
18
+ // POINT THESE AT YOUR SITE — set WIX_CLIENT_ID (a public headless OAuth client id)
19
+ // and WIX_SITE_URL (your live site URL). The placeholders below are NOT a real
20
+ // backend; the app boots but reads nothing until you set them. The site needs
21
+ // Wix Stores; the Wix Inbox chat (bulk quotes) is optional.
22
+ clientId: process.env.WIX_CLIENT_ID ?? "YOUR_WIX_CLIENT_ID",
23
+ siteUrl: process.env.WIX_SITE_URL ?? "https://your-site.example.com",
24
+ // The OAuth redirect must be ALLOWLISTED on the headless client in `clientId`.
25
+ redirectUri: process.env.WIX_REDIRECT_URI ?? "himalaya-__HIMI_APP_SLUG__://oauth/callback",
26
+ bootAsVisitor: true,
27
+ preserveVisitorOnSignOut: true,
28
+ }),
29
+ telemetry: ConsoleTelemetrySink(),
30
+ serverUrls: {
31
+ screen: "http://localhost:8190/v1",
32
+ actions: "http://localhost:8190/v1/actions",
33
+ sync: "http://localhost:8190/v1/sync",
34
+ },
35
+ capabilities: ["wix_api","local_database","open_url","share","secure_storage","wix_platform","app_info","iap","wix_chat","live_activity","wix_cashier"],
36
+ designTokensPath: "./tokens.json",
37
+ navigation: {
38
+ "navKind": "responsive",
39
+ "scheme": "himalaya-__HIMI_APP_SLUG__",
40
+ "deepLinkPatterns": [],
41
+ "linkableScreens": [
42
+ {
43
+ "screenId": "wholesale_home",
44
+ "isPublic": true,
45
+ "paramKeys": [],
46
+ "parentScreenId": "",
47
+ "tabId": "home"
48
+ },
49
+ {
50
+ "screenId": "himi_collections",
51
+ "isPublic": true,
52
+ "paramKeys": [
53
+ "focus"
54
+ ],
55
+ "parentScreenId": "",
56
+ "tabId": "categories"
57
+ },
58
+ {
59
+ "screenId": "himi_collection",
60
+ "isPublic": true,
61
+ "paramKeys": [
62
+ "id"
63
+ ],
64
+ "parentScreenId": "himi_collections",
65
+ "tabId": "categories"
66
+ },
67
+ {
68
+ "screenId": "himi_shop",
69
+ "isPublic": true,
70
+ "paramKeys": [],
71
+ "parentScreenId": "himi_collections",
72
+ "tabId": "categories"
73
+ },
74
+ {
75
+ "screenId": "himi_product",
76
+ "isPublic": true,
77
+ "paramKeys": [
78
+ "id"
79
+ ],
80
+ "parentScreenId": "himi_shop",
81
+ "tabId": "home"
82
+ },
83
+ {
84
+ "screenId": "himi_cart",
85
+ "isPublic": true,
86
+ "paramKeys": [],
87
+ "parentScreenId": "",
88
+ "tabId": "cart"
89
+ },
90
+ {
91
+ "screenId": "himi_saved_products",
92
+ "isPublic": true,
93
+ "paramKeys": [],
94
+ "parentScreenId": "",
95
+ "tabId": "saved"
96
+ },
97
+ {
98
+ "screenId": "himi_account",
99
+ "isPublic": true,
100
+ "paramKeys": [],
101
+ "parentScreenId": "",
102
+ "tabId": "account"
103
+ },
104
+ {
105
+ "screenId": "himi_sign_in",
106
+ "isPublic": true,
107
+ "paramKeys": [
108
+ "mode",
109
+ "intent",
110
+ "modal",
111
+ "returnTab",
112
+ "contextName",
113
+ "returnScreenId",
114
+ "returnId",
115
+ "returnChannelId",
116
+ "authContinuation"
117
+ ],
118
+ "parentScreenId": "himi_account",
119
+ "tabId": "account"
120
+ },
121
+ {
122
+ "screenId": "himi_orders",
123
+ "isPublic": false,
124
+ "paramKeys": [],
125
+ "parentScreenId": "himi_account",
126
+ "tabId": "account"
127
+ },
128
+ {
129
+ "screenId": "himi_order",
130
+ "isPublic": false,
131
+ "paramKeys": [
132
+ "id"
133
+ ],
134
+ "parentScreenId": "himi_orders",
135
+ "tabId": "account"
136
+ },
137
+ {
138
+ "screenId": "himi_business_chat",
139
+ "isPublic": false,
140
+ "paramKeys": [],
141
+ "parentScreenId": "wholesale_home",
142
+ "tabId": "home"
143
+ }
144
+ ],
145
+ "tabBar": {
146
+ "presentation": "native",
147
+ "items": [
148
+ {
149
+ "id": "home",
150
+ "screenId": "wholesale_home",
151
+ "label": "Home",
152
+ "icon": "home",
153
+ "selectedIcon": "home_fill"
154
+ },
155
+ {
156
+ "id": "categories",
157
+ "screenId": "himi_collections",
158
+ "label": "Categories",
159
+ "icon": "grid"
160
+ },
161
+ {
162
+ "id": "cart",
163
+ "screenId": "himi_cart",
164
+ "label": "Cart",
165
+ "icon": "cart"
166
+ },
167
+ {
168
+ "id": "saved",
169
+ "screenId": "himi_saved_products",
170
+ "label": "Saved",
171
+ "icon": "heart",
172
+ "selectedIcon": "heart_fill"
173
+ },
174
+ {
175
+ "id": "account",
176
+ "screenId": "himi_account",
177
+ "label": "Account",
178
+ "icon": "person",
179
+ "selectedIcon": "person_fill"
180
+ }
181
+ ]
182
+ }
183
+ },
184
+ // This app talks to a language model (dual LLM / remote model).
185
+ agent: {
186
+ "onDevice": {
187
+ "ios": "foundation_models",
188
+ "android": "mediapipe"
189
+ },
190
+ "remote": {
191
+ "providerId": "anthropic",
192
+ "config": {
193
+ "model": "claude-haiku-4-5"
194
+ }
195
+ },
196
+ "privateModeToggle": false
197
+ },
198
+ entities: {},
199
+ // Your on-device database. It must declare every entity a worker reads or writes,
200
+ // or those calls fail closed — keep it in step with `local_database` above.
201
+ dataSchema: {
202
+ "version": 1,
203
+ "entities": [
204
+ {
205
+ "name": "products",
206
+ "encrypted": false,
207
+ "fields": [
208
+ {
209
+ "name": "id",
210
+ "type": "string",
211
+ "required": true
212
+ },
213
+ {
214
+ "name": "name",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "subtitle",
219
+ "type": "string"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "name": "cart",
225
+ "encrypted": true,
226
+ "fields": [
227
+ {
228
+ "name": "id",
229
+ "type": "string",
230
+ "required": true
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "name": "orders",
236
+ "encrypted": true,
237
+ "fields": [
238
+ {
239
+ "name": "id",
240
+ "type": "string",
241
+ "required": true
242
+ }
243
+ ]
244
+ }
245
+ ]
246
+ },
247
+ });