@composable-os/pack-shop 0.1.0-beta.18 → 0.1.0-beta.19

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/dist/index.d.ts CHANGED
@@ -45,8 +45,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
45
45
  readonly icon: "shopping-bag";
46
46
  readonly titleField: "name";
47
47
  readonly description: string;
48
- readonly navigation: "main";
49
- readonly navigationOrder: 10;
48
+ readonly place: {
49
+ readonly key: "shop";
50
+ readonly order: 10;
51
+ };
50
52
  readonly fields: {
51
53
  readonly name: {
52
54
  readonly type: "text";
@@ -129,8 +131,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
129
131
  readonly icon: "tag";
130
132
  readonly titleField: "name";
131
133
  readonly description: string;
132
- readonly navigation: "main";
133
- readonly navigationOrder: 11;
134
+ readonly place: {
135
+ readonly key: "shop";
136
+ readonly order: 11;
137
+ };
134
138
  readonly fields: {
135
139
  readonly item: {
136
140
  readonly type: "relation";
@@ -284,6 +288,9 @@ declare const _default: import("@composable-os/sdk").Extension<{
284
288
  readonly titleField: "name";
285
289
  readonly description: string;
286
290
  readonly navigation: "settings";
291
+ readonly place: {
292
+ readonly key: "shop";
293
+ };
287
294
  readonly fields: {
288
295
  readonly name: {
289
296
  readonly type: "text";
@@ -400,8 +407,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
400
407
  readonly icon: "package";
401
408
  readonly titleField: "name";
402
409
  readonly description: string;
403
- readonly navigation: "main";
404
- readonly navigationOrder: 12;
410
+ readonly place: {
411
+ readonly key: "shop";
412
+ readonly order: 12;
413
+ };
405
414
  readonly fields: {
406
415
  readonly name: {
407
416
  readonly type: "text";
@@ -613,6 +622,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
613
622
  readonly itemVariants: {
614
623
  readonly label: "Variants";
615
624
  readonly on: "shop.item";
625
+ readonly tab: "variants";
616
626
  readonly view: {
617
627
  readonly type: "table";
618
628
  readonly object: "shop.variant";
@@ -628,6 +638,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
628
638
  readonly personShipments: {
629
639
  readonly label: "Shipments";
630
640
  readonly on: "person";
641
+ readonly tab: "payments";
631
642
  readonly view: {
632
643
  readonly type: "table";
633
644
  readonly object: "shop.shipment";
@@ -643,6 +654,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
643
654
  readonly supplierVariants: {
644
655
  readonly label: "Supplies";
645
656
  readonly on: "organisation";
657
+ readonly tab: "supplies";
646
658
  readonly view: {
647
659
  readonly type: "table";
648
660
  readonly object: "shop.variant";
@@ -656,6 +668,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
656
668
  readonly order: 40;
657
669
  };
658
670
  };
671
+ readonly settingsPlace: "shop";
659
672
  readonly settings: {
660
673
  readonly country: {
661
674
  readonly type: "text";
package/dist/index.js CHANGED
@@ -95,8 +95,7 @@ export default defineExtension({
95
95
  titleField: "name",
96
96
  description: "A thing in the shop (a club hoodie, a protein bar), with its pictures and where it is " +
97
97
  "sold. What is bought and counted is its variants: an item with one version has one.",
98
- navigation: "main",
99
- navigationOrder: 10,
98
+ place: { key: "shop", order: 10 },
100
99
  fields: {
101
100
  name: { type: "text", label: "Name", required: true },
102
101
  slug: { type: "slug", label: "Address" },
@@ -179,8 +178,7 @@ export default defineExtension({
179
178
  titleField: "name",
180
179
  description: "One version of an item that is bought and counted (large, black), with its price, " +
181
180
  "stock, reorder level and usual supplier.",
182
- navigation: "main",
183
- navigationOrder: 11,
181
+ place: { key: "shop", order: 11 },
184
182
  fields: {
185
183
  // Pointing a variant at another item changes where it is sold and whether the public
186
184
  // sees it (its item's published state), so an AI's change of it waits for a person.
@@ -295,6 +293,7 @@ export default defineExtension({
295
293
  description: "A way an order's goods reach the buyer: posted, collected, or taken now at the gym. Its " +
296
294
  "price is the host's postage; a paid post or collect order gets a shipment to pack.",
297
295
  navigation: "settings",
296
+ place: { key: "shop" },
298
297
  fields: {
299
298
  name: { type: "text", label: "Name", required: true },
300
299
  kind: {
@@ -389,8 +388,7 @@ export default defineExtension({
389
388
  titleField: "name",
390
389
  description: "What a paid order to post or collect gives staff to do: pack it, then send it or have it " +
391
390
  "ready to collect. Made by the host when the order is paid; the buyer sees their own.",
392
- navigation: "main",
393
- navigationOrder: 12,
391
+ place: { key: "shop", order: 12 },
394
392
  fields: {
395
393
  name: { type: "text", label: "Name", required: true },
396
394
  order: {
@@ -513,6 +511,7 @@ export default defineExtension({
513
511
  itemVariants: {
514
512
  label: "Variants",
515
513
  on: "shop.item",
514
+ tab: "variants",
516
515
  view: {
517
516
  type: "table",
518
517
  object: "shop.variant",
@@ -525,6 +524,7 @@ export default defineExtension({
525
524
  personShipments: {
526
525
  label: "Shipments",
527
526
  on: "person",
527
+ tab: "payments",
528
528
  view: {
529
529
  type: "table",
530
530
  object: "shop.shipment",
@@ -537,6 +537,7 @@ export default defineExtension({
537
537
  supplierVariants: {
538
538
  label: "Supplies",
539
539
  on: "organisation",
540
+ tab: "supplies",
540
541
  view: {
541
542
  type: "table",
542
543
  object: "shop.variant",
@@ -547,6 +548,7 @@ export default defineExtension({
547
548
  order: 40,
548
549
  },
549
550
  },
551
+ settingsPlace: "shop",
550
552
  settings: {
551
553
  // The host keeps no home country (ADR 0682): a new post option posts to this one.
552
554
  country: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composable-os/pack-shop",
3
- "version": "0.1.0-beta.18",
3
+ "version": "0.1.0-beta.19",
4
4
  "license": "FSL-1.1-ALv2",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,6 +28,6 @@
28
28
  "description": "One list of what the business sells, in its sizes and flavours, sold online and at the gym, with stock kept by the host, posting or collecting, and the shipments to pack and send."
29
29
  },
30
30
  "dependencies": {
31
- "@composable-os/sdk": "0.1.0-beta.18"
31
+ "@composable-os/sdk": "0.1.0-beta.19"
32
32
  }
33
33
  }