@composable-os/pack-offers 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 +6 -2
- package/dist/index.js +3 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
15
15
|
readonly icon: "percent";
|
|
16
16
|
readonly titleField: "name";
|
|
17
17
|
readonly description: string;
|
|
18
|
-
readonly
|
|
19
|
-
|
|
18
|
+
readonly place: {
|
|
19
|
+
readonly key: "payments";
|
|
20
|
+
readonly order: 30;
|
|
21
|
+
};
|
|
20
22
|
readonly fields: {
|
|
21
23
|
readonly name: {
|
|
22
24
|
readonly type: "text";
|
|
@@ -257,6 +259,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
257
259
|
readonly type: "text";
|
|
258
260
|
readonly label: "Code (its hash)";
|
|
259
261
|
readonly readOnly: true;
|
|
262
|
+
readonly internal: true;
|
|
260
263
|
readonly description: "What the host keeps of the code: its hash, never the code.";
|
|
261
264
|
};
|
|
262
265
|
readonly uses: {
|
|
@@ -358,6 +361,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
358
361
|
readonly discountCodes: {
|
|
359
362
|
readonly label: "Single-use codes";
|
|
360
363
|
readonly on: "offers.discount";
|
|
364
|
+
readonly tab: "singleUseCodes";
|
|
361
365
|
readonly view: {
|
|
362
366
|
readonly type: "table";
|
|
363
367
|
readonly object: "offers.code";
|
package/dist/index.js
CHANGED
|
@@ -48,8 +48,7 @@ export default defineExtension({
|
|
|
48
48
|
description: "Money off: a percentage, an amount or a set price, on what it covers, for whom, when " +
|
|
49
49
|
"and how often. Applied by a promo code or by itself (a member's price). Made as a draft " +
|
|
50
50
|
"and made live by a person.",
|
|
51
|
-
|
|
52
|
-
navigationOrder: 30,
|
|
51
|
+
place: { key: "payments", order: 30 },
|
|
53
52
|
fields: {
|
|
54
53
|
name: {
|
|
55
54
|
type: "text",
|
|
@@ -225,6 +224,7 @@ export default defineExtension({
|
|
|
225
224
|
type: "text",
|
|
226
225
|
label: "Code (its hash)",
|
|
227
226
|
readOnly: true,
|
|
227
|
+
internal: true,
|
|
228
228
|
description: "What the host keeps of the code: its hash, never the code.",
|
|
229
229
|
},
|
|
230
230
|
uses: {
|
|
@@ -291,6 +291,7 @@ export default defineExtension({
|
|
|
291
291
|
discountCodes: {
|
|
292
292
|
label: "Single-use codes",
|
|
293
293
|
on: "offers.discount",
|
|
294
|
+
tab: "singleUseCodes",
|
|
294
295
|
view: {
|
|
295
296
|
type: "table",
|
|
296
297
|
object: "offers.code",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composable-os/pack-offers",
|
|
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": "Promo codes for a campaign, single-use codes for a newsletter, and members' prices that apply by themselves, with dates, limits and a person making each one live."
|
|
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
|
}
|