@cimplify/sdk 0.88.0 → 0.90.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.
- package/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/{chunk-A7NODD4Q.mjs → chunk-2UDEWILL.mjs} +83 -17
- package/dist/{chunk-W5BVGAO6.js → chunk-BN4V4ONE.js} +83 -17
- package/dist/{chunk-6JA4HBBD.js → chunk-JVWFIFQ7.js} +4 -4
- package/dist/{chunk-ROBTTS3Q.js → chunk-KJP4U6L3.js} +28 -1
- package/dist/{chunk-VU5LFNEX.mjs → chunk-NGE37REW.mjs} +2 -2
- package/dist/{chunk-APBLFZ2I.mjs → chunk-NNGKC3MM.mjs} +28 -1
- package/dist/chunk-U4MW6PYU.mjs +23 -0
- package/dist/chunk-XREIZ56K.js +26 -0
- package/dist/{client-D0PrO1-Q.d.ts → client-CR1f94wY.d.ts} +97 -7
- package/dist/{client-B3FBDfTg.d.ts → client-CqpOcbin.d.ts} +2 -2
- package/dist/{client-B-8ceVyt.d.mts → client-DMttx1xk.d.mts} +2 -2
- package/dist/{client-r5VSGFRU.d.mts → client-YiSelM7x.d.mts} +97 -7
- package/dist/{index-C-Pxrzna.d.ts → index-CxTVu0HZ.d.ts} +3 -3
- package/dist/{index-DLulxmF1.d.mts → index-DD9z396M.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +17 -10
- package/dist/index.mjs +8 -2
- package/dist/mock/cli.mjs +49 -1
- package/dist/mock/library.js +49 -1
- package/dist/mock/library.mjs +49 -1
- package/dist/mock/msw.js +49 -1
- package/dist/mock/msw.mjs +49 -1
- package/dist/{payment-TnJUoHqL.d.mts → payment-5d8FTA1q.d.mts} +1 -1
- package/dist/{payment-Cfoo9MT7.d.ts → payment-BX7ccIKY.d.ts} +1 -1
- package/dist/{price-CCDSrIsc.d.ts → price-DtfP_Xfq.d.ts} +1 -1
- package/dist/{price-CM0zVSyM.d.mts → price-arl_4Rzn.d.mts} +1 -1
- package/dist/{product-DoA36Eqh.d.mts → product-DZX4QuKS.d.mts} +68 -4
- package/dist/{product-DoA36Eqh.d.ts → product-DZX4QuKS.d.ts} +68 -4
- package/dist/react.d.mts +405 -7
- package/dist/react.d.ts +405 -7
- package/dist/react.js +2345 -74
- package/dist/react.mjs +2323 -72
- package/dist/{server-CI1CUFVu.d.mts → server-BceZMxcK.d.mts} +8 -1
- package/dist/{server-CHfYeTAa.d.ts → server-DoJGSC7L.d.ts} +8 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +2 -2
- package/dist/server.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -2
- package/dist/testing/msw.mjs +2 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -22
- package/dist/testing/suite.mjs +4 -3
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +79 -78
- package/dist/testing.mjs +5 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +4 -1
- package/registry/chat-widget.json +1 -1
- package/registry/product-customizer.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-DZX4QuKS.js';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-
|
|
1
|
+
import { ad as CurrencyCode, U as ChosenPrice, bi as SaleInfo, bD as UpcomingSale } from './product-DZX4QuKS.mjs';
|
|
2
2
|
|
|
3
3
|
interface ProductWithPrice {
|
|
4
4
|
price_info?: ChosenPrice;
|
|
@@ -1686,12 +1686,18 @@ interface components {
|
|
|
1686
1686
|
id: string;
|
|
1687
1687
|
status: string;
|
|
1688
1688
|
ai_enabled: boolean;
|
|
1689
|
+
needs_human_review: boolean;
|
|
1689
1690
|
/** Format: int32 */
|
|
1690
1691
|
message_count: number;
|
|
1691
1692
|
/** Format: date-time */
|
|
1692
1693
|
created_at: string;
|
|
1693
1694
|
/** Format: date-time */
|
|
1694
1695
|
last_message_at?: string | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Format: date-time
|
|
1698
|
+
* @description Team-wide read watermark; which agent read is not on this wire.
|
|
1699
|
+
*/
|
|
1700
|
+
team_read_at?: string | null;
|
|
1695
1701
|
};
|
|
1696
1702
|
ChatConversationResponse: {
|
|
1697
1703
|
conversation: components["schemas"]["ChatConversation"];
|
|
@@ -1704,9 +1710,20 @@ interface components {
|
|
|
1704
1710
|
content_type: components["schemas"]["ContentType"];
|
|
1705
1711
|
attachments: Record<string, never>;
|
|
1706
1712
|
metadata: Record<string, never>;
|
|
1713
|
+
reply_to?: null | components["schemas"]["ChatReplyContext"];
|
|
1707
1714
|
/** Format: date-time */
|
|
1708
1715
|
created_at: string;
|
|
1709
1716
|
};
|
|
1717
|
+
/**
|
|
1718
|
+
* @description Server-resolved quote context. Self-contained on purpose: the widget's
|
|
1719
|
+
* local id space doesn't survive reloads, so a bare reference would only
|
|
1720
|
+
* resolve for same-session messages.
|
|
1721
|
+
*/
|
|
1722
|
+
ChatReplyContext: {
|
|
1723
|
+
id: string;
|
|
1724
|
+
sender_type: components["schemas"]["SenderType"];
|
|
1725
|
+
preview: string;
|
|
1726
|
+
};
|
|
1710
1727
|
CheckoutApiResponse: {
|
|
1711
1728
|
order_id: string;
|
|
1712
1729
|
order_number: string;
|
|
@@ -2264,7 +2281,7 @@ interface components {
|
|
|
2264
2281
|
};
|
|
2265
2282
|
CustomerInputEntry: {
|
|
2266
2283
|
field_id: string;
|
|
2267
|
-
value:
|
|
2284
|
+
value: unknown;
|
|
2268
2285
|
};
|
|
2269
2286
|
CustomerInputValue: {
|
|
2270
2287
|
field_id: string;
|
|
@@ -2778,6 +2795,19 @@ interface components {
|
|
|
2778
2795
|
logo?: string | null;
|
|
2779
2796
|
currency: string;
|
|
2780
2797
|
is_open: boolean;
|
|
2798
|
+
description?: string | null;
|
|
2799
|
+
phone?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
* Format: date-time
|
|
2802
|
+
* @description Next opening moment; present when the store is closed.
|
|
2803
|
+
*/
|
|
2804
|
+
opens_at?: string | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* Format: date-time
|
|
2807
|
+
* @description Current closing moment; present when the store is open.
|
|
2808
|
+
*/
|
|
2809
|
+
closes_at?: string | null;
|
|
2810
|
+
hours: components["schemas"]["LiteDayHoursView"][];
|
|
2781
2811
|
};
|
|
2782
2812
|
LiteBootstrapCategoryView: {
|
|
2783
2813
|
id: string;
|
|
@@ -2785,12 +2815,26 @@ interface components {
|
|
|
2785
2815
|
};
|
|
2786
2816
|
LiteBootstrapLocationView: {
|
|
2787
2817
|
id: string;
|
|
2818
|
+
name?: string | null;
|
|
2819
|
+
area?: string | null;
|
|
2788
2820
|
};
|
|
2789
2821
|
LiteBootstrapView: {
|
|
2790
2822
|
business: components["schemas"]["LiteBootstrapBusinessView"];
|
|
2791
2823
|
categories: components["schemas"]["LiteBootstrapCategoryView"][];
|
|
2792
2824
|
location?: null | components["schemas"]["LiteBootstrapLocationView"];
|
|
2793
2825
|
};
|
|
2826
|
+
LiteDayHoursView: {
|
|
2827
|
+
/**
|
|
2828
|
+
* Format: int32
|
|
2829
|
+
* @description Day of week, 0 = Sunday.
|
|
2830
|
+
*/
|
|
2831
|
+
day: number;
|
|
2832
|
+
ranges: components["schemas"]["LiteHoursRangeView"][];
|
|
2833
|
+
};
|
|
2834
|
+
LiteHoursRangeView: {
|
|
2835
|
+
start: string;
|
|
2836
|
+
end: string;
|
|
2837
|
+
};
|
|
2794
2838
|
LiteResourceResponseView: {
|
|
2795
2839
|
resource: components["schemas"]["LiteResourceView"];
|
|
2796
2840
|
tab?: Record<string, never> | null;
|
|
@@ -3007,6 +3051,8 @@ interface components {
|
|
|
3007
3051
|
* enable POS without enabling `tap`, and vice versa.
|
|
3008
3052
|
*/
|
|
3009
3053
|
pos?: boolean;
|
|
3054
|
+
/** @description Daily takings view + cash-drawer reconciliation (till sessions). */
|
|
3055
|
+
takings?: boolean;
|
|
3010
3056
|
customers: boolean;
|
|
3011
3057
|
locations: boolean;
|
|
3012
3058
|
tables: boolean;
|
|
@@ -3256,6 +3302,12 @@ interface components {
|
|
|
3256
3302
|
balance_due: string;
|
|
3257
3303
|
deposit_required: boolean;
|
|
3258
3304
|
deposit_amount: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* @description True when the order has a settled payment whose provider can no longer
|
|
3307
|
+
* refund it (direct-to-bank T+1), so a refund must be recorded out of band.
|
|
3308
|
+
* Computed on the single-order detail view only (false elsewhere).
|
|
3309
|
+
*/
|
|
3310
|
+
manual_refund_required?: boolean;
|
|
3259
3311
|
};
|
|
3260
3312
|
PaymentMethodPreferences: {
|
|
3261
3313
|
/** @description Cash payment settings */
|
|
@@ -3438,6 +3490,7 @@ interface components {
|
|
|
3438
3490
|
allergies?: string[] | null;
|
|
3439
3491
|
recipe: Record<string, never>;
|
|
3440
3492
|
is_active: boolean;
|
|
3493
|
+
is_archived?: boolean | null;
|
|
3441
3494
|
/** Format: date-time */
|
|
3442
3495
|
created_at: string;
|
|
3443
3496
|
/** Format: date-time */
|
|
@@ -4053,11 +4106,20 @@ interface components {
|
|
|
4053
4106
|
* is in Autopilot mode.
|
|
4054
4107
|
* `client_id` is a widget-supplied idempotency key; passed through to
|
|
4055
4108
|
* `CreateMessage.external_id`, so a retried POST with the same id
|
|
4056
|
-
* returns
|
|
4109
|
+
* returns the originally created message instead of inserting twice.
|
|
4110
|
+
* `reply_to_message_id` quotes another message by the id the customer
|
|
4111
|
+
* actually has — `ChatMessageResponse.id`.
|
|
4057
4112
|
*/
|
|
4058
4113
|
SendMessageBody: {
|
|
4059
4114
|
content: string;
|
|
4060
4115
|
client_id?: string | null;
|
|
4116
|
+
reply_to_message_id?: string | null;
|
|
4117
|
+
/**
|
|
4118
|
+
* @description Ids of image uploads made via `/api/v1/uploads` — the only way to
|
|
4119
|
+
* attach media. The server stores the durable storage reference and
|
|
4120
|
+
* presigns at read time.
|
|
4121
|
+
*/
|
|
4122
|
+
upload_ids?: string[];
|
|
4061
4123
|
};
|
|
4062
4124
|
/** @enum {string} */
|
|
4063
4125
|
SenderType: "customer" | "agent" | "system" | "bot";
|
|
@@ -4743,6 +4805,10 @@ interface Product {
|
|
|
4743
4805
|
type: ProductType;
|
|
4744
4806
|
render_hint?: ProductRenderHint;
|
|
4745
4807
|
display_mode?: DisplayMode;
|
|
4808
|
+
/** Present on list payloads too — the menu serializes these on every item. */
|
|
4809
|
+
variants?: VariantView[];
|
|
4810
|
+
variant_axes?: VariantAxisWithValues[];
|
|
4811
|
+
add_on_ids?: string[];
|
|
4746
4812
|
inventory_type: InventoryType;
|
|
4747
4813
|
variant_strategy: VariantStrategy;
|
|
4748
4814
|
inventory_status?: {
|
|
@@ -4953,9 +5019,7 @@ interface RelatedProductView {
|
|
|
4953
5019
|
}
|
|
4954
5020
|
interface ProductWithDetails extends Product {
|
|
4955
5021
|
category?: Category;
|
|
4956
|
-
variants?: VariantView[];
|
|
4957
5022
|
add_ons?: AddOnWithOptions[];
|
|
4958
|
-
variant_axes?: VariantAxisWithValues[];
|
|
4959
5023
|
location_prices?: LocationProductPrice[];
|
|
4960
5024
|
location_availability?: ProductAvailability[];
|
|
4961
5025
|
time_profiles?: ProductTimeProfile[];
|
|
@@ -1686,12 +1686,18 @@ interface components {
|
|
|
1686
1686
|
id: string;
|
|
1687
1687
|
status: string;
|
|
1688
1688
|
ai_enabled: boolean;
|
|
1689
|
+
needs_human_review: boolean;
|
|
1689
1690
|
/** Format: int32 */
|
|
1690
1691
|
message_count: number;
|
|
1691
1692
|
/** Format: date-time */
|
|
1692
1693
|
created_at: string;
|
|
1693
1694
|
/** Format: date-time */
|
|
1694
1695
|
last_message_at?: string | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Format: date-time
|
|
1698
|
+
* @description Team-wide read watermark; which agent read is not on this wire.
|
|
1699
|
+
*/
|
|
1700
|
+
team_read_at?: string | null;
|
|
1695
1701
|
};
|
|
1696
1702
|
ChatConversationResponse: {
|
|
1697
1703
|
conversation: components["schemas"]["ChatConversation"];
|
|
@@ -1704,9 +1710,20 @@ interface components {
|
|
|
1704
1710
|
content_type: components["schemas"]["ContentType"];
|
|
1705
1711
|
attachments: Record<string, never>;
|
|
1706
1712
|
metadata: Record<string, never>;
|
|
1713
|
+
reply_to?: null | components["schemas"]["ChatReplyContext"];
|
|
1707
1714
|
/** Format: date-time */
|
|
1708
1715
|
created_at: string;
|
|
1709
1716
|
};
|
|
1717
|
+
/**
|
|
1718
|
+
* @description Server-resolved quote context. Self-contained on purpose: the widget's
|
|
1719
|
+
* local id space doesn't survive reloads, so a bare reference would only
|
|
1720
|
+
* resolve for same-session messages.
|
|
1721
|
+
*/
|
|
1722
|
+
ChatReplyContext: {
|
|
1723
|
+
id: string;
|
|
1724
|
+
sender_type: components["schemas"]["SenderType"];
|
|
1725
|
+
preview: string;
|
|
1726
|
+
};
|
|
1710
1727
|
CheckoutApiResponse: {
|
|
1711
1728
|
order_id: string;
|
|
1712
1729
|
order_number: string;
|
|
@@ -2264,7 +2281,7 @@ interface components {
|
|
|
2264
2281
|
};
|
|
2265
2282
|
CustomerInputEntry: {
|
|
2266
2283
|
field_id: string;
|
|
2267
|
-
value:
|
|
2284
|
+
value: unknown;
|
|
2268
2285
|
};
|
|
2269
2286
|
CustomerInputValue: {
|
|
2270
2287
|
field_id: string;
|
|
@@ -2778,6 +2795,19 @@ interface components {
|
|
|
2778
2795
|
logo?: string | null;
|
|
2779
2796
|
currency: string;
|
|
2780
2797
|
is_open: boolean;
|
|
2798
|
+
description?: string | null;
|
|
2799
|
+
phone?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
* Format: date-time
|
|
2802
|
+
* @description Next opening moment; present when the store is closed.
|
|
2803
|
+
*/
|
|
2804
|
+
opens_at?: string | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* Format: date-time
|
|
2807
|
+
* @description Current closing moment; present when the store is open.
|
|
2808
|
+
*/
|
|
2809
|
+
closes_at?: string | null;
|
|
2810
|
+
hours: components["schemas"]["LiteDayHoursView"][];
|
|
2781
2811
|
};
|
|
2782
2812
|
LiteBootstrapCategoryView: {
|
|
2783
2813
|
id: string;
|
|
@@ -2785,12 +2815,26 @@ interface components {
|
|
|
2785
2815
|
};
|
|
2786
2816
|
LiteBootstrapLocationView: {
|
|
2787
2817
|
id: string;
|
|
2818
|
+
name?: string | null;
|
|
2819
|
+
area?: string | null;
|
|
2788
2820
|
};
|
|
2789
2821
|
LiteBootstrapView: {
|
|
2790
2822
|
business: components["schemas"]["LiteBootstrapBusinessView"];
|
|
2791
2823
|
categories: components["schemas"]["LiteBootstrapCategoryView"][];
|
|
2792
2824
|
location?: null | components["schemas"]["LiteBootstrapLocationView"];
|
|
2793
2825
|
};
|
|
2826
|
+
LiteDayHoursView: {
|
|
2827
|
+
/**
|
|
2828
|
+
* Format: int32
|
|
2829
|
+
* @description Day of week, 0 = Sunday.
|
|
2830
|
+
*/
|
|
2831
|
+
day: number;
|
|
2832
|
+
ranges: components["schemas"]["LiteHoursRangeView"][];
|
|
2833
|
+
};
|
|
2834
|
+
LiteHoursRangeView: {
|
|
2835
|
+
start: string;
|
|
2836
|
+
end: string;
|
|
2837
|
+
};
|
|
2794
2838
|
LiteResourceResponseView: {
|
|
2795
2839
|
resource: components["schemas"]["LiteResourceView"];
|
|
2796
2840
|
tab?: Record<string, never> | null;
|
|
@@ -3007,6 +3051,8 @@ interface components {
|
|
|
3007
3051
|
* enable POS without enabling `tap`, and vice versa.
|
|
3008
3052
|
*/
|
|
3009
3053
|
pos?: boolean;
|
|
3054
|
+
/** @description Daily takings view + cash-drawer reconciliation (till sessions). */
|
|
3055
|
+
takings?: boolean;
|
|
3010
3056
|
customers: boolean;
|
|
3011
3057
|
locations: boolean;
|
|
3012
3058
|
tables: boolean;
|
|
@@ -3256,6 +3302,12 @@ interface components {
|
|
|
3256
3302
|
balance_due: string;
|
|
3257
3303
|
deposit_required: boolean;
|
|
3258
3304
|
deposit_amount: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* @description True when the order has a settled payment whose provider can no longer
|
|
3307
|
+
* refund it (direct-to-bank T+1), so a refund must be recorded out of band.
|
|
3308
|
+
* Computed on the single-order detail view only (false elsewhere).
|
|
3309
|
+
*/
|
|
3310
|
+
manual_refund_required?: boolean;
|
|
3259
3311
|
};
|
|
3260
3312
|
PaymentMethodPreferences: {
|
|
3261
3313
|
/** @description Cash payment settings */
|
|
@@ -3438,6 +3490,7 @@ interface components {
|
|
|
3438
3490
|
allergies?: string[] | null;
|
|
3439
3491
|
recipe: Record<string, never>;
|
|
3440
3492
|
is_active: boolean;
|
|
3493
|
+
is_archived?: boolean | null;
|
|
3441
3494
|
/** Format: date-time */
|
|
3442
3495
|
created_at: string;
|
|
3443
3496
|
/** Format: date-time */
|
|
@@ -4053,11 +4106,20 @@ interface components {
|
|
|
4053
4106
|
* is in Autopilot mode.
|
|
4054
4107
|
* `client_id` is a widget-supplied idempotency key; passed through to
|
|
4055
4108
|
* `CreateMessage.external_id`, so a retried POST with the same id
|
|
4056
|
-
* returns
|
|
4109
|
+
* returns the originally created message instead of inserting twice.
|
|
4110
|
+
* `reply_to_message_id` quotes another message by the id the customer
|
|
4111
|
+
* actually has — `ChatMessageResponse.id`.
|
|
4057
4112
|
*/
|
|
4058
4113
|
SendMessageBody: {
|
|
4059
4114
|
content: string;
|
|
4060
4115
|
client_id?: string | null;
|
|
4116
|
+
reply_to_message_id?: string | null;
|
|
4117
|
+
/**
|
|
4118
|
+
* @description Ids of image uploads made via `/api/v1/uploads` — the only way to
|
|
4119
|
+
* attach media. The server stores the durable storage reference and
|
|
4120
|
+
* presigns at read time.
|
|
4121
|
+
*/
|
|
4122
|
+
upload_ids?: string[];
|
|
4061
4123
|
};
|
|
4062
4124
|
/** @enum {string} */
|
|
4063
4125
|
SenderType: "customer" | "agent" | "system" | "bot";
|
|
@@ -4743,6 +4805,10 @@ interface Product {
|
|
|
4743
4805
|
type: ProductType;
|
|
4744
4806
|
render_hint?: ProductRenderHint;
|
|
4745
4807
|
display_mode?: DisplayMode;
|
|
4808
|
+
/** Present on list payloads too — the menu serializes these on every item. */
|
|
4809
|
+
variants?: VariantView[];
|
|
4810
|
+
variant_axes?: VariantAxisWithValues[];
|
|
4811
|
+
add_on_ids?: string[];
|
|
4746
4812
|
inventory_type: InventoryType;
|
|
4747
4813
|
variant_strategy: VariantStrategy;
|
|
4748
4814
|
inventory_status?: {
|
|
@@ -4953,9 +5019,7 @@ interface RelatedProductView {
|
|
|
4953
5019
|
}
|
|
4954
5020
|
interface ProductWithDetails extends Product {
|
|
4955
5021
|
category?: Category;
|
|
4956
|
-
variants?: VariantView[];
|
|
4957
5022
|
add_ons?: AddOnWithOptions[];
|
|
4958
|
-
variant_axes?: VariantAxisWithValues[];
|
|
4959
5023
|
location_prices?: LocationProductPrice[];
|
|
4960
5024
|
location_availability?: ProductAvailability[];
|
|
4961
5025
|
time_profiles?: ProductTimeProfile[];
|