@composable-os/pack-shop 0.1.0-beta.17 → 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 +20 -6
- package/dist/index.js +9 -6
- package/package.json +2 -2
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
|
|
49
|
-
|
|
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
|
|
133
|
-
|
|
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
|
|
404
|
-
|
|
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";
|
|
@@ -411,6 +420,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
411
420
|
readonly order: {
|
|
412
421
|
readonly type: "text";
|
|
413
422
|
readonly label: "Order";
|
|
423
|
+
readonly format: "order";
|
|
414
424
|
readonly readOnly: true;
|
|
415
425
|
readonly description: "The order that granted it, set by the host.";
|
|
416
426
|
};
|
|
@@ -612,6 +622,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
612
622
|
readonly itemVariants: {
|
|
613
623
|
readonly label: "Variants";
|
|
614
624
|
readonly on: "shop.item";
|
|
625
|
+
readonly tab: "variants";
|
|
615
626
|
readonly view: {
|
|
616
627
|
readonly type: "table";
|
|
617
628
|
readonly object: "shop.variant";
|
|
@@ -627,6 +638,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
627
638
|
readonly personShipments: {
|
|
628
639
|
readonly label: "Shipments";
|
|
629
640
|
readonly on: "person";
|
|
641
|
+
readonly tab: "payments";
|
|
630
642
|
readonly view: {
|
|
631
643
|
readonly type: "table";
|
|
632
644
|
readonly object: "shop.shipment";
|
|
@@ -642,6 +654,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
642
654
|
readonly supplierVariants: {
|
|
643
655
|
readonly label: "Supplies";
|
|
644
656
|
readonly on: "organisation";
|
|
657
|
+
readonly tab: "supplies";
|
|
645
658
|
readonly view: {
|
|
646
659
|
readonly type: "table";
|
|
647
660
|
readonly object: "shop.variant";
|
|
@@ -655,6 +668,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
655
668
|
readonly order: 40;
|
|
656
669
|
};
|
|
657
670
|
};
|
|
671
|
+
readonly settingsPlace: "shop";
|
|
658
672
|
readonly settings: {
|
|
659
673
|
readonly country: {
|
|
660
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
|
-
|
|
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
|
-
|
|
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,13 +388,13 @@ 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
|
-
|
|
393
|
-
navigationOrder: 12,
|
|
391
|
+
place: { key: "shop", order: 12 },
|
|
394
392
|
fields: {
|
|
395
393
|
name: { type: "text", label: "Name", required: true },
|
|
396
394
|
order: {
|
|
397
395
|
type: "text",
|
|
398
396
|
label: "Order",
|
|
397
|
+
format: "order",
|
|
399
398
|
readOnly: true,
|
|
400
399
|
description: "The order that granted it, set by the host.",
|
|
401
400
|
},
|
|
@@ -512,6 +511,7 @@ export default defineExtension({
|
|
|
512
511
|
itemVariants: {
|
|
513
512
|
label: "Variants",
|
|
514
513
|
on: "shop.item",
|
|
514
|
+
tab: "variants",
|
|
515
515
|
view: {
|
|
516
516
|
type: "table",
|
|
517
517
|
object: "shop.variant",
|
|
@@ -524,6 +524,7 @@ export default defineExtension({
|
|
|
524
524
|
personShipments: {
|
|
525
525
|
label: "Shipments",
|
|
526
526
|
on: "person",
|
|
527
|
+
tab: "payments",
|
|
527
528
|
view: {
|
|
528
529
|
type: "table",
|
|
529
530
|
object: "shop.shipment",
|
|
@@ -536,6 +537,7 @@ export default defineExtension({
|
|
|
536
537
|
supplierVariants: {
|
|
537
538
|
label: "Supplies",
|
|
538
539
|
on: "organisation",
|
|
540
|
+
tab: "supplies",
|
|
539
541
|
view: {
|
|
540
542
|
type: "table",
|
|
541
543
|
object: "shop.variant",
|
|
@@ -546,6 +548,7 @@ export default defineExtension({
|
|
|
546
548
|
order: 40,
|
|
547
549
|
},
|
|
548
550
|
},
|
|
551
|
+
settingsPlace: "shop",
|
|
549
552
|
settings: {
|
|
550
553
|
// The host keeps no home country (ADR 0682): a new post option posts to this one.
|
|
551
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.
|
|
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.
|
|
31
|
+
"@composable-os/sdk": "0.1.0-beta.19"
|
|
32
32
|
}
|
|
33
33
|
}
|