@levo-so/core 0.3.8 → 0.3.10

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 (2) hide show
  1. package/dist/index.d.ts +6 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1480,6 +1480,8 @@ export declare interface IMe {
1480
1480
  export declare interface IMedia {
1481
1481
  id: string;
1482
1482
  workspace_id: string;
1483
+ /** Folder the file sits in; null at the root. Optional — older responses omit it. */
1484
+ folder_id?: string | null;
1483
1485
  filename: string;
1484
1486
  kind: (typeof MediaKindList)[number];
1485
1487
  location: string;
@@ -1858,6 +1860,8 @@ export declare interface ISection {
1858
1860
  helper_text: string;
1859
1861
  /** Whether the section is hidden from the UI. */
1860
1862
  hidden: boolean;
1863
+ /** 1-based position used by the collection API to persist section order. */
1864
+ sort_order?: number;
1861
1865
  /** Fields contained within this section. */
1862
1866
  fields: IField[];
1863
1867
  }
@@ -2097,7 +2101,7 @@ export declare namespace LevoEvent {
2097
2101
  tax_inclusive?: boolean;
2098
2102
  taxes?: Tax[] | string[];
2099
2103
  }
2100
- export type Create = Pick<Root, "title" | "description" | "quantity" | "starts_at" | "ends_at" | "waitlist_enabled" | "hidden" | "enforce_max_quantity" | "offerings" | "coupons">;
2104
+ export type Create = Pick<Root, "title" | "description" | "quantity" | "starts_at" | "ends_at" | "waitlist_enabled" | "hidden" | "enforce_max_quantity" | "offerings" | "coupons"> & Partial<Pick<Root, "currency" | "unit_amount" | "base_price">>;
2101
2105
  }
2102
2106
  export namespace Coupon {
2103
2107
  export interface Root {
@@ -2126,7 +2130,7 @@ export declare namespace LevoEvent {
2126
2130
  status: string;
2127
2131
  tickets: string[];
2128
2132
  }
2129
- export type Create = Pick<Root, "code" | "description" | "kind" | "percent_off" | "amount_off" | "currency" | "starts_at" | "expires_at" | "max_redemptions" | "minimum_amount" | "is_public" | "tickets">;
2133
+ export type Create = Pick<Root, "code" | "description" | "kind" | "percent_off" | "amount_off" | "currency" | "starts_at" | "expires_at" | "max_redemptions" | "minimum_amount" | "is_public" | "tickets"> & Partial<Pick<Root, "max_amount_off" | "min_trnx_amount">>;
2130
2134
  export type CreateBulk = Pick<Root, "description" | "kind" | "percent_off" | "amount_off" | "currency" | "starts_at" | "expires_at" | "max_redemptions" | "minimum_amount" | "is_public" | "tickets"> & {
2131
2135
  coupon_count: number;
2132
2136
  code_length: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@levo-so/core",
3
3
  "description": "Levo common utilities",
4
- "version": "0.3.8",
4
+ "version": "0.3.10",
5
5
  "author": "Levo Engineering <devs@theinternetfolks.com>",
6
6
  "dependencies": {
7
7
  "wretch": "2.9.0"