arky-sdk 0.7.93 → 0.7.95
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/README.md +19 -19
- package/dist/admin.cjs +2324 -0
- package/dist/admin.cjs.map +1 -0
- package/dist/admin.d.cts +3 -0
- package/dist/admin.d.ts +3 -0
- package/dist/admin.js +2322 -0
- package/dist/admin.js.map +1 -0
- package/dist/index.cjs +518 -523
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -86
- package/dist/index.d.ts +55 -86
- package/dist/index.js +518 -523
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +1359 -0
- package/dist/storefront.cjs.map +1 -0
- package/dist/storefront.d.cts +3 -0
- package/dist/storefront.d.ts +3 -0
- package/dist/storefront.js +1356 -0
- package/dist/storefront.js.map +1 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +164 -164
- package/dist/types.d.ts +164 -164
- package/dist/types.js.map +1 -1
- package/package.json +12 -5
package/dist/types.d.ts
CHANGED
|
@@ -379,7 +379,7 @@ type IntegrationProvider = {
|
|
|
379
379
|
};
|
|
380
380
|
interface Integration {
|
|
381
381
|
id: string;
|
|
382
|
-
|
|
382
|
+
store_id: string;
|
|
383
383
|
key: string;
|
|
384
384
|
provider: IntegrationProvider;
|
|
385
385
|
created_at: number;
|
|
@@ -405,7 +405,7 @@ interface ShippingMethod {
|
|
|
405
405
|
}
|
|
406
406
|
interface Location {
|
|
407
407
|
id: string;
|
|
408
|
-
|
|
408
|
+
store_id: string;
|
|
409
409
|
key: string;
|
|
410
410
|
address: Address;
|
|
411
411
|
is_pickup_location: boolean;
|
|
@@ -419,7 +419,7 @@ interface InventoryLevel {
|
|
|
419
419
|
}
|
|
420
420
|
interface Zone {
|
|
421
421
|
id: string;
|
|
422
|
-
|
|
422
|
+
store_id: string;
|
|
423
423
|
market_id: string;
|
|
424
424
|
countries: string[];
|
|
425
425
|
states: string[];
|
|
@@ -429,7 +429,7 @@ interface Zone {
|
|
|
429
429
|
}
|
|
430
430
|
interface Market {
|
|
431
431
|
id: string;
|
|
432
|
-
|
|
432
|
+
store_id: string;
|
|
433
433
|
key: string;
|
|
434
434
|
currency: string;
|
|
435
435
|
tax_mode: "exclusive" | "inclusive";
|
|
@@ -441,7 +441,7 @@ interface Market {
|
|
|
441
441
|
interface Language {
|
|
442
442
|
id: string;
|
|
443
443
|
}
|
|
444
|
-
interface
|
|
444
|
+
interface StoreEmails {
|
|
445
445
|
billing: string;
|
|
446
446
|
support: string;
|
|
447
447
|
}
|
|
@@ -521,11 +521,11 @@ type WebhookEventSubscription = {
|
|
|
521
521
|
} | {
|
|
522
522
|
event: 'media.deleted';
|
|
523
523
|
} | {
|
|
524
|
-
event: '
|
|
524
|
+
event: 'store.created';
|
|
525
525
|
} | {
|
|
526
|
-
event: '
|
|
526
|
+
event: 'store.updated';
|
|
527
527
|
} | {
|
|
528
|
-
event: '
|
|
528
|
+
event: 'store.deleted';
|
|
529
529
|
} | {
|
|
530
530
|
event: 'audience.created';
|
|
531
531
|
} | {
|
|
@@ -535,7 +535,7 @@ type WebhookEventSubscription = {
|
|
|
535
535
|
};
|
|
536
536
|
interface Webhook {
|
|
537
537
|
id: string;
|
|
538
|
-
|
|
538
|
+
store_id: string;
|
|
539
539
|
key: string;
|
|
540
540
|
url: string;
|
|
541
541
|
events: WebhookEventSubscription[];
|
|
@@ -545,30 +545,30 @@ interface Webhook {
|
|
|
545
545
|
created_at: number;
|
|
546
546
|
updated_at: number;
|
|
547
547
|
}
|
|
548
|
-
type
|
|
549
|
-
type
|
|
550
|
-
type
|
|
548
|
+
type StoreSubscriptionStatus = 'pending' | 'active' | 'cancellation_scheduled' | 'cancelled' | 'expired';
|
|
549
|
+
type StoreSubscriptionSource = 'signup' | 'admin' | 'import';
|
|
550
|
+
type StoreSubscriptionProvider = {
|
|
551
551
|
type: 'stripe';
|
|
552
552
|
customer_id: string;
|
|
553
553
|
subscription_id?: string;
|
|
554
554
|
price_id?: string;
|
|
555
555
|
};
|
|
556
|
-
interface
|
|
556
|
+
interface StoreSubscriptionPayment {
|
|
557
557
|
currency: string;
|
|
558
558
|
market: string;
|
|
559
|
-
provider?:
|
|
559
|
+
provider?: StoreSubscriptionProvider;
|
|
560
560
|
}
|
|
561
|
-
interface
|
|
561
|
+
interface StoreSubscription {
|
|
562
562
|
id: string;
|
|
563
563
|
target: string;
|
|
564
564
|
plan_id: string;
|
|
565
565
|
pending_plan_id: string | null;
|
|
566
|
-
payment:
|
|
567
|
-
status:
|
|
566
|
+
payment: StoreSubscriptionPayment;
|
|
567
|
+
status: StoreSubscriptionStatus;
|
|
568
568
|
start_date: number;
|
|
569
569
|
end_date: number;
|
|
570
570
|
token: string;
|
|
571
|
-
source:
|
|
571
|
+
source: StoreSubscriptionSource;
|
|
572
572
|
}
|
|
573
573
|
type AudienceSubscriptionStatus = 'pending' | 'active' | 'cancellation_scheduled' | 'cancelled' | 'expired';
|
|
574
574
|
type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';
|
|
@@ -585,7 +585,7 @@ interface AudienceSubscriptionPayment {
|
|
|
585
585
|
}
|
|
586
586
|
interface AudienceSubscription {
|
|
587
587
|
id: string;
|
|
588
|
-
|
|
588
|
+
store_id: string;
|
|
589
589
|
customer_id: string;
|
|
590
590
|
audience_id: string;
|
|
591
591
|
plan_id: string;
|
|
@@ -599,17 +599,17 @@ interface AudienceSubscription {
|
|
|
599
599
|
created_at: number;
|
|
600
600
|
updated_at: number;
|
|
601
601
|
}
|
|
602
|
-
interface
|
|
602
|
+
interface Store {
|
|
603
603
|
id: string;
|
|
604
604
|
key: string;
|
|
605
605
|
timezone: string;
|
|
606
606
|
languages?: Language[];
|
|
607
|
-
emails?:
|
|
608
|
-
subscription?:
|
|
607
|
+
emails?: StoreEmails;
|
|
608
|
+
subscription?: StoreSubscription;
|
|
609
609
|
counts?: Record<string, number>;
|
|
610
610
|
}
|
|
611
611
|
interface EshopStoreState {
|
|
612
|
-
|
|
612
|
+
store_id: string;
|
|
613
613
|
selected_shipping_method_id: string | null;
|
|
614
614
|
user_token: string | null;
|
|
615
615
|
processing_checkout: boolean;
|
|
@@ -743,11 +743,11 @@ interface BookingStoreState {
|
|
|
743
743
|
end_date: string | null;
|
|
744
744
|
guest_token: string | null;
|
|
745
745
|
service: any | null;
|
|
746
|
-
|
|
746
|
+
store: Store | null;
|
|
747
747
|
currency: string;
|
|
748
748
|
booking_forms: FormEntry[];
|
|
749
749
|
api_url: string;
|
|
750
|
-
|
|
750
|
+
store_id: string;
|
|
751
751
|
timezone: string;
|
|
752
752
|
tz_groups: any;
|
|
753
753
|
items: BookingCartItem[];
|
|
@@ -837,7 +837,7 @@ interface BookingItem {
|
|
|
837
837
|
id: string;
|
|
838
838
|
service_id: string;
|
|
839
839
|
provider_id: string;
|
|
840
|
-
|
|
840
|
+
store_id: string;
|
|
841
841
|
booking_id: string;
|
|
842
842
|
from: number;
|
|
843
843
|
to: number;
|
|
@@ -851,11 +851,11 @@ interface Booking {
|
|
|
851
851
|
customer_id: string;
|
|
852
852
|
verified: boolean;
|
|
853
853
|
forms: FormEntry[];
|
|
854
|
-
|
|
854
|
+
store_id: string;
|
|
855
855
|
service_ids: string[];
|
|
856
856
|
provider_ids: string[];
|
|
857
857
|
payment: BookingPayment;
|
|
858
|
-
|
|
858
|
+
store?: Store;
|
|
859
859
|
account?: any;
|
|
860
860
|
items: BookingItem[];
|
|
861
861
|
audience_id?: string;
|
|
@@ -871,7 +871,7 @@ interface Booking {
|
|
|
871
871
|
interface Node {
|
|
872
872
|
id: string;
|
|
873
873
|
key: string;
|
|
874
|
-
|
|
874
|
+
store_id: string;
|
|
875
875
|
parent_id?: string | null;
|
|
876
876
|
blocks: Block[];
|
|
877
877
|
taxonomies: TaxonomyEntry[];
|
|
@@ -884,7 +884,7 @@ interface Node {
|
|
|
884
884
|
interface EmailTemplate {
|
|
885
885
|
id: string;
|
|
886
886
|
key: string;
|
|
887
|
-
|
|
887
|
+
store_id: string;
|
|
888
888
|
subject: Record<string, string>;
|
|
889
889
|
body: string;
|
|
890
890
|
from_name: string;
|
|
@@ -898,7 +898,7 @@ interface EmailTemplate {
|
|
|
898
898
|
interface Form {
|
|
899
899
|
id: string;
|
|
900
900
|
key: string;
|
|
901
|
-
|
|
901
|
+
store_id: string;
|
|
902
902
|
schema: FormSchema[];
|
|
903
903
|
status: FormStatus;
|
|
904
904
|
created_at: number;
|
|
@@ -907,14 +907,14 @@ interface Form {
|
|
|
907
907
|
interface FormSubmission {
|
|
908
908
|
id: string;
|
|
909
909
|
form_id: string;
|
|
910
|
-
|
|
910
|
+
store_id: string;
|
|
911
911
|
fields: FormField[];
|
|
912
912
|
created_at: number;
|
|
913
913
|
}
|
|
914
914
|
interface Taxonomy {
|
|
915
915
|
id: string;
|
|
916
916
|
key: string;
|
|
917
|
-
|
|
917
|
+
store_id: string;
|
|
918
918
|
parent_id?: string | null;
|
|
919
919
|
schema?: TaxonomySchema[];
|
|
920
920
|
status: TaxonomyStatus;
|
|
@@ -955,7 +955,7 @@ interface Service {
|
|
|
955
955
|
id: string;
|
|
956
956
|
key: string;
|
|
957
957
|
slug: Record<string, string>;
|
|
958
|
-
|
|
958
|
+
store_id: string;
|
|
959
959
|
blocks: Block[];
|
|
960
960
|
taxonomies: TaxonomyEntry[];
|
|
961
961
|
created_at: number;
|
|
@@ -970,7 +970,7 @@ interface Provider {
|
|
|
970
970
|
id: string;
|
|
971
971
|
key: string;
|
|
972
972
|
slug: Record<string, string>;
|
|
973
|
-
|
|
973
|
+
store_id: string;
|
|
974
974
|
status: BookingProviderStatus;
|
|
975
975
|
audience_ids: string[];
|
|
976
976
|
blocks: Block[];
|
|
@@ -988,7 +988,7 @@ interface WorkflowEdge {
|
|
|
988
988
|
interface Workflow {
|
|
989
989
|
id: string;
|
|
990
990
|
key: string;
|
|
991
|
-
|
|
991
|
+
store_id: string;
|
|
992
992
|
secret: string;
|
|
993
993
|
status: WorkflowStatus;
|
|
994
994
|
nodes: Record<string, WorkflowNode>;
|
|
@@ -1048,7 +1048,7 @@ interface NodeResult {
|
|
|
1048
1048
|
interface WorkflowExecution {
|
|
1049
1049
|
id: string;
|
|
1050
1050
|
workflow_id: string;
|
|
1051
|
-
|
|
1051
|
+
store_id: string;
|
|
1052
1052
|
status: ExecutionStatus;
|
|
1053
1053
|
input: Record<string, any>;
|
|
1054
1054
|
results: Record<string, NodeResult>;
|
|
@@ -1071,7 +1071,7 @@ type AudienceType = {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
interface Audience {
|
|
1073
1073
|
id: string;
|
|
1074
|
-
|
|
1074
|
+
store_id: string;
|
|
1075
1075
|
key: string;
|
|
1076
1076
|
status: AudienceStatus;
|
|
1077
1077
|
type: AudienceType;
|
|
@@ -1219,11 +1219,11 @@ type EventAction = {
|
|
|
1219
1219
|
} | {
|
|
1220
1220
|
action: 'media_deleted';
|
|
1221
1221
|
} | {
|
|
1222
|
-
action: '
|
|
1222
|
+
action: 'store_created';
|
|
1223
1223
|
} | {
|
|
1224
|
-
action: '
|
|
1224
|
+
action: 'store_updated';
|
|
1225
1225
|
} | {
|
|
1226
|
-
action: '
|
|
1226
|
+
action: 'store_deleted';
|
|
1227
1227
|
} | {
|
|
1228
1228
|
action: 'audience_created';
|
|
1229
1229
|
} | {
|
|
@@ -1395,7 +1395,7 @@ interface OrderCheckoutParams {
|
|
|
1395
1395
|
billing_address?: Address;
|
|
1396
1396
|
}
|
|
1397
1397
|
interface GetProductsParams {
|
|
1398
|
-
|
|
1398
|
+
store_id?: string;
|
|
1399
1399
|
ids?: string[];
|
|
1400
1400
|
taxonomy_query?: any[];
|
|
1401
1401
|
status?: string;
|
|
@@ -1409,7 +1409,7 @@ interface GetProductsParams {
|
|
|
1409
1409
|
created_at_to?: number | null;
|
|
1410
1410
|
}
|
|
1411
1411
|
interface GetNodesParams {
|
|
1412
|
-
|
|
1412
|
+
store_id?: string;
|
|
1413
1413
|
parent_id?: string;
|
|
1414
1414
|
limit?: number;
|
|
1415
1415
|
cursor?: string;
|
|
@@ -1424,7 +1424,7 @@ interface GetNodesParams {
|
|
|
1424
1424
|
created_at_to?: string;
|
|
1425
1425
|
}
|
|
1426
1426
|
interface CreateNodeParams {
|
|
1427
|
-
|
|
1427
|
+
store_id?: string;
|
|
1428
1428
|
key: string;
|
|
1429
1429
|
parent_id?: string | null;
|
|
1430
1430
|
blocks?: any[];
|
|
@@ -1435,7 +1435,7 @@ interface CreateNodeParams {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
interface UpdateNodeParams {
|
|
1437
1437
|
id: string;
|
|
1438
|
-
|
|
1438
|
+
store_id?: string;
|
|
1439
1439
|
key?: string;
|
|
1440
1440
|
parent_id?: string | null;
|
|
1441
1441
|
blocks?: any[];
|
|
@@ -1448,38 +1448,38 @@ interface GetNodeParams {
|
|
|
1448
1448
|
id?: string;
|
|
1449
1449
|
slug?: string;
|
|
1450
1450
|
key?: string;
|
|
1451
|
-
|
|
1451
|
+
store_id?: string;
|
|
1452
1452
|
}
|
|
1453
1453
|
interface DeleteNodeParams {
|
|
1454
1454
|
id: string;
|
|
1455
|
-
|
|
1455
|
+
store_id?: string;
|
|
1456
1456
|
}
|
|
1457
1457
|
interface GetNodeChildrenParams {
|
|
1458
1458
|
id: string;
|
|
1459
|
-
|
|
1459
|
+
store_id?: string;
|
|
1460
1460
|
limit?: number;
|
|
1461
1461
|
cursor?: string;
|
|
1462
1462
|
}
|
|
1463
|
-
interface
|
|
1464
|
-
|
|
1463
|
+
interface UploadStoreMediaParams {
|
|
1464
|
+
store_id?: string;
|
|
1465
1465
|
files?: File[];
|
|
1466
1466
|
urls?: string[];
|
|
1467
1467
|
}
|
|
1468
|
-
interface
|
|
1468
|
+
interface DeleteStoreMediaParams {
|
|
1469
1469
|
id: string;
|
|
1470
1470
|
media_id: string;
|
|
1471
1471
|
}
|
|
1472
1472
|
interface GetMediaParams {
|
|
1473
1473
|
media_id: string;
|
|
1474
|
-
|
|
1474
|
+
store_id?: string;
|
|
1475
1475
|
}
|
|
1476
1476
|
interface UpdateMediaParams {
|
|
1477
1477
|
media_id: string;
|
|
1478
|
-
|
|
1478
|
+
store_id?: string;
|
|
1479
1479
|
slug?: Record<string, string>;
|
|
1480
1480
|
}
|
|
1481
|
-
interface
|
|
1482
|
-
|
|
1481
|
+
interface GetStoreMediaParams {
|
|
1482
|
+
store_id?: string;
|
|
1483
1483
|
cursor?: string | null;
|
|
1484
1484
|
limit: number;
|
|
1485
1485
|
ids?: string[];
|
|
@@ -1495,14 +1495,14 @@ interface LoginAccountParams {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
interface MagicLinkRequestParams {
|
|
1497
1497
|
email: string;
|
|
1498
|
-
|
|
1498
|
+
store_id?: string;
|
|
1499
1499
|
}
|
|
1500
1500
|
interface MagicLinkVerifyParams {
|
|
1501
1501
|
email: string;
|
|
1502
1502
|
code: string;
|
|
1503
1503
|
}
|
|
1504
1504
|
interface GetServicesParams {
|
|
1505
|
-
|
|
1505
|
+
store_id?: string;
|
|
1506
1506
|
provider_id?: string;
|
|
1507
1507
|
taxonomy_query?: any[];
|
|
1508
1508
|
limit?: number;
|
|
@@ -1514,7 +1514,7 @@ interface GetServicesParams {
|
|
|
1514
1514
|
sort_direction?: string;
|
|
1515
1515
|
}
|
|
1516
1516
|
interface BookingCheckoutParams {
|
|
1517
|
-
|
|
1517
|
+
store_id?: string;
|
|
1518
1518
|
items: any[];
|
|
1519
1519
|
payment_method_id?: string;
|
|
1520
1520
|
forms?: any[];
|
|
@@ -1530,7 +1530,7 @@ interface BookingQuoteItem {
|
|
|
1530
1530
|
slots: SlotRange[];
|
|
1531
1531
|
}
|
|
1532
1532
|
interface GetBookingQuoteParams {
|
|
1533
|
-
|
|
1533
|
+
store_id?: string;
|
|
1534
1534
|
items: BookingQuoteItem[];
|
|
1535
1535
|
payment_method_id?: string;
|
|
1536
1536
|
promo_code?: string;
|
|
@@ -1554,7 +1554,7 @@ interface SpecificDate {
|
|
|
1554
1554
|
interface ProviderWithTimeline {
|
|
1555
1555
|
id: string;
|
|
1556
1556
|
key: string;
|
|
1557
|
-
|
|
1557
|
+
store_id: string;
|
|
1558
1558
|
seo: any;
|
|
1559
1559
|
status: BookingProviderStatus;
|
|
1560
1560
|
audience_ids: string[];
|
|
@@ -1576,7 +1576,7 @@ interface GetAnalyticsHealthParams {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
interface GetDeliveryStatsParams {
|
|
1578
1578
|
}
|
|
1579
|
-
type
|
|
1579
|
+
type StoreRole = 'admin' | 'owner' | 'super';
|
|
1580
1580
|
interface Discount {
|
|
1581
1581
|
type: "items_percentage" | "items_fixed" | "shipping_percentage";
|
|
1582
1582
|
market_id: string;
|
|
@@ -1591,14 +1591,14 @@ interface Condition {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
1593
|
interface CreatePromoCodeParams {
|
|
1594
|
-
|
|
1594
|
+
store_id?: string;
|
|
1595
1595
|
code: string;
|
|
1596
1596
|
discounts: Discount[];
|
|
1597
1597
|
conditions: Condition[];
|
|
1598
1598
|
}
|
|
1599
1599
|
interface UpdatePromoCodeParams {
|
|
1600
1600
|
id: string;
|
|
1601
|
-
|
|
1601
|
+
store_id?: string;
|
|
1602
1602
|
code: string;
|
|
1603
1603
|
discounts: Discount[];
|
|
1604
1604
|
conditions: Condition[];
|
|
@@ -1606,14 +1606,14 @@ interface UpdatePromoCodeParams {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
interface DeletePromoCodeParams {
|
|
1608
1608
|
id: string;
|
|
1609
|
-
|
|
1609
|
+
store_id?: string;
|
|
1610
1610
|
}
|
|
1611
1611
|
interface GetPromoCodeParams {
|
|
1612
1612
|
id: string;
|
|
1613
|
-
|
|
1613
|
+
store_id?: string;
|
|
1614
1614
|
}
|
|
1615
1615
|
interface GetPromoCodesParams {
|
|
1616
|
-
|
|
1616
|
+
store_id?: string;
|
|
1617
1617
|
statuses?: string[];
|
|
1618
1618
|
query?: string;
|
|
1619
1619
|
limit?: number;
|
|
@@ -1627,7 +1627,7 @@ interface GetPromoCodesParams {
|
|
|
1627
1627
|
expires_at_from?: string;
|
|
1628
1628
|
expires_at_to?: string;
|
|
1629
1629
|
}
|
|
1630
|
-
interface
|
|
1630
|
+
interface CreateStoreParams {
|
|
1631
1631
|
key: string;
|
|
1632
1632
|
slug?: string;
|
|
1633
1633
|
description?: string;
|
|
@@ -1638,30 +1638,30 @@ interface CreateBusinessParams {
|
|
|
1638
1638
|
settings?: any;
|
|
1639
1639
|
[key: string]: any;
|
|
1640
1640
|
}
|
|
1641
|
-
interface
|
|
1641
|
+
interface UpdateStoreParams {
|
|
1642
1642
|
id: string;
|
|
1643
1643
|
key: string;
|
|
1644
1644
|
timezone: string;
|
|
1645
1645
|
configs: any;
|
|
1646
1646
|
}
|
|
1647
|
-
interface
|
|
1647
|
+
interface DeleteStoreParams {
|
|
1648
1648
|
id: string;
|
|
1649
1649
|
}
|
|
1650
|
-
interface
|
|
1650
|
+
interface GetStoreParams {
|
|
1651
1651
|
}
|
|
1652
1652
|
interface SubscribeParams {
|
|
1653
|
-
|
|
1653
|
+
store_id?: string;
|
|
1654
1654
|
plan_id: string;
|
|
1655
1655
|
success_url: string;
|
|
1656
1656
|
cancel_url: string;
|
|
1657
1657
|
}
|
|
1658
1658
|
interface CreatePortalSessionParams {
|
|
1659
|
-
|
|
1659
|
+
store_id?: string;
|
|
1660
1660
|
return_url: string;
|
|
1661
1661
|
}
|
|
1662
1662
|
interface InviteUserParams {
|
|
1663
1663
|
email: string;
|
|
1664
|
-
role?:
|
|
1664
|
+
role?: StoreRole;
|
|
1665
1665
|
}
|
|
1666
1666
|
interface RemoveMemberParams {
|
|
1667
1667
|
account_id: string;
|
|
@@ -1669,13 +1669,13 @@ interface RemoveMemberParams {
|
|
|
1669
1669
|
interface HandleInvitationParams {
|
|
1670
1670
|
token: string;
|
|
1671
1671
|
action: string;
|
|
1672
|
-
|
|
1672
|
+
store_id?: string;
|
|
1673
1673
|
}
|
|
1674
1674
|
interface TestWebhookParams {
|
|
1675
1675
|
webhook: any;
|
|
1676
1676
|
}
|
|
1677
1677
|
interface CreateProductParams {
|
|
1678
|
-
|
|
1678
|
+
store_id?: string;
|
|
1679
1679
|
key: string;
|
|
1680
1680
|
description?: string;
|
|
1681
1681
|
audience_ids?: string[];
|
|
@@ -1687,7 +1687,7 @@ interface CreateProductParams {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
interface UpdateProductParams {
|
|
1689
1689
|
id: string;
|
|
1690
|
-
|
|
1690
|
+
store_id?: string;
|
|
1691
1691
|
key?: string;
|
|
1692
1692
|
description?: string;
|
|
1693
1693
|
audience_ids?: string[];
|
|
@@ -1700,14 +1700,14 @@ interface UpdateProductParams {
|
|
|
1700
1700
|
interface GetProductParams {
|
|
1701
1701
|
id?: string;
|
|
1702
1702
|
slug?: string;
|
|
1703
|
-
|
|
1703
|
+
store_id?: string;
|
|
1704
1704
|
}
|
|
1705
1705
|
interface GetOrderParams {
|
|
1706
1706
|
id: string;
|
|
1707
|
-
|
|
1707
|
+
store_id?: string;
|
|
1708
1708
|
}
|
|
1709
1709
|
interface GetOrdersParams {
|
|
1710
|
-
|
|
1710
|
+
store_id?: string;
|
|
1711
1711
|
item_statuses?: string[] | null;
|
|
1712
1712
|
product_ids?: string[];
|
|
1713
1713
|
verified?: boolean;
|
|
@@ -1721,7 +1721,7 @@ interface GetOrdersParams {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
interface UpdateOrderParams {
|
|
1723
1723
|
id: string;
|
|
1724
|
-
|
|
1724
|
+
store_id?: string;
|
|
1725
1725
|
status: string;
|
|
1726
1726
|
blocks: any[];
|
|
1727
1727
|
items: any[];
|
|
@@ -1732,11 +1732,11 @@ interface UpdateOrderParams {
|
|
|
1732
1732
|
cancel?: boolean;
|
|
1733
1733
|
}
|
|
1734
1734
|
interface CreateOrderParams {
|
|
1735
|
-
|
|
1735
|
+
store_id?: string;
|
|
1736
1736
|
[key: string]: any;
|
|
1737
1737
|
}
|
|
1738
1738
|
interface CreateBookingParams {
|
|
1739
|
-
|
|
1739
|
+
store_id?: string;
|
|
1740
1740
|
[key: string]: any;
|
|
1741
1741
|
}
|
|
1742
1742
|
interface UpdateBookingParams {
|
|
@@ -1748,7 +1748,7 @@ interface UpdateBookingParams {
|
|
|
1748
1748
|
[key: string]: any;
|
|
1749
1749
|
}
|
|
1750
1750
|
interface CreateProviderParams {
|
|
1751
|
-
|
|
1751
|
+
store_id?: string;
|
|
1752
1752
|
key: string;
|
|
1753
1753
|
audience_ids?: string[];
|
|
1754
1754
|
blocks?: any[];
|
|
@@ -1758,7 +1758,7 @@ interface CreateProviderParams {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
interface UpdateProviderParams {
|
|
1760
1760
|
id: string;
|
|
1761
|
-
|
|
1761
|
+
store_id?: string;
|
|
1762
1762
|
key?: string;
|
|
1763
1763
|
audience_ids?: string[];
|
|
1764
1764
|
blocks?: any[];
|
|
@@ -1768,18 +1768,18 @@ interface UpdateProviderParams {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
interface DeleteProviderParams {
|
|
1770
1770
|
id: string;
|
|
1771
|
-
|
|
1771
|
+
store_id?: string;
|
|
1772
1772
|
}
|
|
1773
1773
|
interface ServiceProviderInput {
|
|
1774
1774
|
provider_id: string;
|
|
1775
|
-
|
|
1775
|
+
store_id?: string;
|
|
1776
1776
|
prices?: any[];
|
|
1777
1777
|
durations?: any[];
|
|
1778
1778
|
working_days: WorkingDay[];
|
|
1779
1779
|
specific_dates: SpecificDate[];
|
|
1780
1780
|
}
|
|
1781
1781
|
interface CreateServiceParams {
|
|
1782
|
-
|
|
1782
|
+
store_id?: string;
|
|
1783
1783
|
key: string;
|
|
1784
1784
|
blocks?: any[];
|
|
1785
1785
|
taxonomies?: any[];
|
|
@@ -1788,7 +1788,7 @@ interface CreateServiceParams {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
interface UpdateServiceParams {
|
|
1790
1790
|
id: string;
|
|
1791
|
-
|
|
1791
|
+
store_id?: string;
|
|
1792
1792
|
key?: string;
|
|
1793
1793
|
blocks?: any[];
|
|
1794
1794
|
taxonomies?: any[];
|
|
@@ -1796,7 +1796,7 @@ interface UpdateServiceParams {
|
|
|
1796
1796
|
[key: string]: any;
|
|
1797
1797
|
}
|
|
1798
1798
|
interface CreateServiceProviderParams {
|
|
1799
|
-
|
|
1799
|
+
store_id?: string;
|
|
1800
1800
|
service_id: string;
|
|
1801
1801
|
provider_id: string;
|
|
1802
1802
|
working_days: WorkingDay[];
|
|
@@ -1809,7 +1809,7 @@ interface CreateServiceProviderParams {
|
|
|
1809
1809
|
reminders?: number[];
|
|
1810
1810
|
}
|
|
1811
1811
|
interface UpdateServiceProviderParams {
|
|
1812
|
-
|
|
1812
|
+
store_id?: string;
|
|
1813
1813
|
id: string;
|
|
1814
1814
|
working_days: WorkingDay[];
|
|
1815
1815
|
specific_dates: SpecificDate[];
|
|
@@ -1821,25 +1821,25 @@ interface UpdateServiceProviderParams {
|
|
|
1821
1821
|
reminders?: number[];
|
|
1822
1822
|
}
|
|
1823
1823
|
interface DeleteServiceProviderParams {
|
|
1824
|
-
|
|
1824
|
+
store_id?: string;
|
|
1825
1825
|
id: string;
|
|
1826
1826
|
}
|
|
1827
1827
|
interface FindServiceProvidersParams {
|
|
1828
|
-
|
|
1828
|
+
store_id?: string;
|
|
1829
1829
|
service_id?: string;
|
|
1830
1830
|
provider_id?: string;
|
|
1831
1831
|
}
|
|
1832
1832
|
interface DeleteServiceParams {
|
|
1833
1833
|
id: string;
|
|
1834
|
-
|
|
1834
|
+
store_id?: string;
|
|
1835
1835
|
}
|
|
1836
1836
|
interface GetServiceParams {
|
|
1837
1837
|
id?: string;
|
|
1838
1838
|
slug?: string;
|
|
1839
|
-
|
|
1839
|
+
store_id?: string;
|
|
1840
1840
|
}
|
|
1841
1841
|
interface GetProvidersParams {
|
|
1842
|
-
|
|
1842
|
+
store_id?: string;
|
|
1843
1843
|
service_id?: string;
|
|
1844
1844
|
taxonomy_query?: any[];
|
|
1845
1845
|
ids?: string[];
|
|
@@ -1855,20 +1855,20 @@ interface GetProvidersParams {
|
|
|
1855
1855
|
interface GetProviderParams {
|
|
1856
1856
|
id?: string;
|
|
1857
1857
|
slug?: string;
|
|
1858
|
-
|
|
1858
|
+
store_id?: string;
|
|
1859
1859
|
}
|
|
1860
1860
|
interface GetBookingParams {
|
|
1861
1861
|
id: string;
|
|
1862
|
-
|
|
1862
|
+
store_id?: string;
|
|
1863
1863
|
}
|
|
1864
1864
|
interface CancelBookingItemParams {
|
|
1865
|
-
|
|
1865
|
+
store_id?: string;
|
|
1866
1866
|
booking_id: string;
|
|
1867
1867
|
item_id: string;
|
|
1868
1868
|
reason?: string;
|
|
1869
1869
|
}
|
|
1870
1870
|
interface SearchBookingsParams {
|
|
1871
|
-
|
|
1871
|
+
store_id?: string;
|
|
1872
1872
|
query?: string;
|
|
1873
1873
|
service_ids?: string[];
|
|
1874
1874
|
provider_ids?: string[];
|
|
@@ -1902,14 +1902,14 @@ interface TrackEmailOpenParams {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
interface TriggerNotificationParams {
|
|
1904
1904
|
channel: string;
|
|
1905
|
-
|
|
1905
|
+
store_id: string;
|
|
1906
1906
|
email_template_id?: string;
|
|
1907
1907
|
recipients?: string[];
|
|
1908
1908
|
audience_id?: string;
|
|
1909
1909
|
vars?: Record<string, any>;
|
|
1910
1910
|
}
|
|
1911
1911
|
interface GetEmailTemplatesParams {
|
|
1912
|
-
|
|
1912
|
+
store_id?: string;
|
|
1913
1913
|
limit?: number;
|
|
1914
1914
|
cursor?: string;
|
|
1915
1915
|
ids?: string[];
|
|
@@ -1922,7 +1922,7 @@ interface GetEmailTemplatesParams {
|
|
|
1922
1922
|
created_at_to?: number;
|
|
1923
1923
|
}
|
|
1924
1924
|
interface CreateEmailTemplateParams {
|
|
1925
|
-
|
|
1925
|
+
store_id?: string;
|
|
1926
1926
|
key: string;
|
|
1927
1927
|
subject?: Record<string, string>;
|
|
1928
1928
|
body?: string;
|
|
@@ -1933,7 +1933,7 @@ interface CreateEmailTemplateParams {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
interface UpdateEmailTemplateParams {
|
|
1935
1935
|
id: string;
|
|
1936
|
-
|
|
1936
|
+
store_id?: string;
|
|
1937
1937
|
key?: string;
|
|
1938
1938
|
subject?: Record<string, string>;
|
|
1939
1939
|
body?: string;
|
|
@@ -1946,14 +1946,14 @@ interface UpdateEmailTemplateParams {
|
|
|
1946
1946
|
interface GetEmailTemplateParams {
|
|
1947
1947
|
id?: string;
|
|
1948
1948
|
key?: string;
|
|
1949
|
-
|
|
1949
|
+
store_id?: string;
|
|
1950
1950
|
}
|
|
1951
1951
|
interface DeleteEmailTemplateParams {
|
|
1952
1952
|
id: string;
|
|
1953
|
-
|
|
1953
|
+
store_id?: string;
|
|
1954
1954
|
}
|
|
1955
1955
|
interface GetFormsParams {
|
|
1956
|
-
|
|
1956
|
+
store_id?: string;
|
|
1957
1957
|
limit?: number;
|
|
1958
1958
|
cursor?: string;
|
|
1959
1959
|
ids?: string[];
|
|
@@ -1966,13 +1966,13 @@ interface GetFormsParams {
|
|
|
1966
1966
|
created_at_to?: number;
|
|
1967
1967
|
}
|
|
1968
1968
|
interface CreateFormParams {
|
|
1969
|
-
|
|
1969
|
+
store_id?: string;
|
|
1970
1970
|
key: string;
|
|
1971
1971
|
schema?: any[];
|
|
1972
1972
|
}
|
|
1973
1973
|
interface UpdateFormParams {
|
|
1974
1974
|
id: string;
|
|
1975
|
-
|
|
1975
|
+
store_id?: string;
|
|
1976
1976
|
key?: string;
|
|
1977
1977
|
schema?: any[];
|
|
1978
1978
|
status?: string;
|
|
@@ -1980,20 +1980,20 @@ interface UpdateFormParams {
|
|
|
1980
1980
|
interface GetFormParams {
|
|
1981
1981
|
id?: string;
|
|
1982
1982
|
key?: string;
|
|
1983
|
-
|
|
1983
|
+
store_id?: string;
|
|
1984
1984
|
}
|
|
1985
1985
|
interface DeleteFormParams {
|
|
1986
1986
|
id: string;
|
|
1987
|
-
|
|
1987
|
+
store_id?: string;
|
|
1988
1988
|
}
|
|
1989
1989
|
interface SubmitFormParams {
|
|
1990
1990
|
form_id: string;
|
|
1991
|
-
|
|
1991
|
+
store_id?: string;
|
|
1992
1992
|
fields: any[];
|
|
1993
1993
|
}
|
|
1994
1994
|
interface GetFormSubmissionsParams {
|
|
1995
1995
|
form_id: string;
|
|
1996
|
-
|
|
1996
|
+
store_id?: string;
|
|
1997
1997
|
query?: string;
|
|
1998
1998
|
limit?: number;
|
|
1999
1999
|
cursor?: string;
|
|
@@ -2005,16 +2005,16 @@ interface GetFormSubmissionsParams {
|
|
|
2005
2005
|
interface GetFormSubmissionParams {
|
|
2006
2006
|
id: string;
|
|
2007
2007
|
form_id: string;
|
|
2008
|
-
|
|
2008
|
+
store_id?: string;
|
|
2009
2009
|
}
|
|
2010
2010
|
interface UpdateFormSubmissionParams {
|
|
2011
2011
|
id: string;
|
|
2012
2012
|
form_id: string;
|
|
2013
|
-
|
|
2013
|
+
store_id?: string;
|
|
2014
2014
|
fields: any[];
|
|
2015
2015
|
}
|
|
2016
2016
|
interface GetTaxonomiesParams {
|
|
2017
|
-
|
|
2017
|
+
store_id?: string;
|
|
2018
2018
|
parent_id?: string;
|
|
2019
2019
|
limit?: number;
|
|
2020
2020
|
cursor?: string;
|
|
@@ -2028,14 +2028,14 @@ interface GetTaxonomiesParams {
|
|
|
2028
2028
|
created_at_to?: number;
|
|
2029
2029
|
}
|
|
2030
2030
|
interface CreateTaxonomyParams {
|
|
2031
|
-
|
|
2031
|
+
store_id?: string;
|
|
2032
2032
|
key: string;
|
|
2033
2033
|
parent_id?: string | null;
|
|
2034
2034
|
schema?: any[];
|
|
2035
2035
|
}
|
|
2036
2036
|
interface UpdateTaxonomyParams {
|
|
2037
2037
|
id: string;
|
|
2038
|
-
|
|
2038
|
+
store_id?: string;
|
|
2039
2039
|
key?: string;
|
|
2040
2040
|
parent_id?: string | null;
|
|
2041
2041
|
schema?: any[];
|
|
@@ -2044,21 +2044,21 @@ interface UpdateTaxonomyParams {
|
|
|
2044
2044
|
interface GetTaxonomyParams {
|
|
2045
2045
|
id?: string;
|
|
2046
2046
|
key?: string;
|
|
2047
|
-
|
|
2047
|
+
store_id?: string;
|
|
2048
2048
|
}
|
|
2049
2049
|
interface DeleteTaxonomyParams {
|
|
2050
2050
|
id: string;
|
|
2051
|
-
|
|
2051
|
+
store_id?: string;
|
|
2052
2052
|
}
|
|
2053
2053
|
interface GetTaxonomyChildrenParams {
|
|
2054
2054
|
id: string;
|
|
2055
|
-
|
|
2055
|
+
store_id?: string;
|
|
2056
2056
|
}
|
|
2057
2057
|
interface GetMeParams {
|
|
2058
2058
|
}
|
|
2059
2059
|
interface LogoutParams {
|
|
2060
2060
|
}
|
|
2061
|
-
interface
|
|
2061
|
+
interface GetStoresParams {
|
|
2062
2062
|
query?: string;
|
|
2063
2063
|
limit?: number;
|
|
2064
2064
|
cursor?: string;
|
|
@@ -2070,7 +2070,7 @@ interface GetSubscriptionPlansParams {
|
|
|
2070
2070
|
interface SetupAnalyticsParams {
|
|
2071
2071
|
[key: string]: any;
|
|
2072
2072
|
}
|
|
2073
|
-
interface
|
|
2073
|
+
interface GetStoreMediaParams2 {
|
|
2074
2074
|
id: string;
|
|
2075
2075
|
cursor?: string | null;
|
|
2076
2076
|
limit: number;
|
|
@@ -2082,7 +2082,7 @@ interface GetBusinessMediaParams2 {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
interface DeleteProductParams {
|
|
2084
2084
|
id: string;
|
|
2085
|
-
|
|
2085
|
+
store_id?: string;
|
|
2086
2086
|
}
|
|
2087
2087
|
interface DeleteProductParams {
|
|
2088
2088
|
id: string;
|
|
@@ -2095,9 +2095,9 @@ interface ProcessOrderRefundParams {
|
|
|
2095
2095
|
id: string;
|
|
2096
2096
|
amount: number;
|
|
2097
2097
|
}
|
|
2098
|
-
type SystemTemplateKey = "system:booking-
|
|
2098
|
+
type SystemTemplateKey = "system:booking-store-update" | "system:booking-customer-update" | "system:user-invitation" | "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
|
|
2099
2099
|
interface GetAvailabilityParams {
|
|
2100
|
-
|
|
2100
|
+
store_id?: string;
|
|
2101
2101
|
service_id: string;
|
|
2102
2102
|
from: number;
|
|
2103
2103
|
to: number;
|
|
@@ -2132,7 +2132,7 @@ interface Slot {
|
|
|
2132
2132
|
date_text: string;
|
|
2133
2133
|
}
|
|
2134
2134
|
interface CreateWorkflowParams {
|
|
2135
|
-
|
|
2135
|
+
store_id?: string;
|
|
2136
2136
|
key: string;
|
|
2137
2137
|
status?: WorkflowStatus;
|
|
2138
2138
|
nodes: Record<string, WorkflowNode>;
|
|
@@ -2141,7 +2141,7 @@ interface CreateWorkflowParams {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
interface UpdateWorkflowParams {
|
|
2143
2143
|
id: string;
|
|
2144
|
-
|
|
2144
|
+
store_id?: string;
|
|
2145
2145
|
key: string;
|
|
2146
2146
|
status?: WorkflowStatus;
|
|
2147
2147
|
nodes: Record<string, WorkflowNode>;
|
|
@@ -2150,14 +2150,14 @@ interface UpdateWorkflowParams {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
interface DeleteWorkflowParams {
|
|
2152
2152
|
id: string;
|
|
2153
|
-
|
|
2153
|
+
store_id?: string;
|
|
2154
2154
|
}
|
|
2155
2155
|
interface GetWorkflowParams {
|
|
2156
2156
|
id: string;
|
|
2157
|
-
|
|
2157
|
+
store_id?: string;
|
|
2158
2158
|
}
|
|
2159
2159
|
interface GetWorkflowsParams {
|
|
2160
|
-
|
|
2160
|
+
store_id?: string;
|
|
2161
2161
|
ids?: string[];
|
|
2162
2162
|
query?: string;
|
|
2163
2163
|
statuses?: string[];
|
|
@@ -2174,7 +2174,7 @@ interface TriggerWorkflowParams {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
interface GetWorkflowExecutionsParams {
|
|
2176
2176
|
workflow_id: string;
|
|
2177
|
-
|
|
2177
|
+
store_id?: string;
|
|
2178
2178
|
status?: string;
|
|
2179
2179
|
limit?: number;
|
|
2180
2180
|
cursor?: string;
|
|
@@ -2182,7 +2182,7 @@ interface GetWorkflowExecutionsParams {
|
|
|
2182
2182
|
interface GetWorkflowExecutionParams {
|
|
2183
2183
|
workflow_id: string;
|
|
2184
2184
|
execution_id: string;
|
|
2185
|
-
|
|
2185
|
+
store_id?: string;
|
|
2186
2186
|
}
|
|
2187
2187
|
interface CreateAudienceParams {
|
|
2188
2188
|
key: string;
|
|
@@ -2242,42 +2242,42 @@ interface AddAudienceSubscriberResponse {
|
|
|
2242
2242
|
skipped: boolean;
|
|
2243
2243
|
}
|
|
2244
2244
|
interface OAuthConnectParams {
|
|
2245
|
-
|
|
2245
|
+
store_id: string;
|
|
2246
2246
|
provider: string;
|
|
2247
2247
|
code: string;
|
|
2248
2248
|
redirect_uri: string;
|
|
2249
2249
|
}
|
|
2250
2250
|
interface OAuthDisconnectParams {
|
|
2251
|
-
|
|
2251
|
+
store_id: string;
|
|
2252
2252
|
provider: string;
|
|
2253
2253
|
}
|
|
2254
2254
|
interface ListIntegrationsParams {
|
|
2255
|
-
|
|
2255
|
+
store_id: string;
|
|
2256
2256
|
}
|
|
2257
2257
|
interface GetIntegrationParams {
|
|
2258
|
-
|
|
2258
|
+
store_id: string;
|
|
2259
2259
|
id: string;
|
|
2260
2260
|
}
|
|
2261
2261
|
interface CreateIntegrationParams {
|
|
2262
|
-
|
|
2262
|
+
store_id: string;
|
|
2263
2263
|
key: string;
|
|
2264
2264
|
provider: IntegrationProvider;
|
|
2265
2265
|
}
|
|
2266
2266
|
interface UpdateIntegrationParams {
|
|
2267
|
-
|
|
2267
|
+
store_id: string;
|
|
2268
2268
|
id: string;
|
|
2269
2269
|
key?: string;
|
|
2270
2270
|
provider?: IntegrationProvider;
|
|
2271
2271
|
}
|
|
2272
2272
|
interface DeleteIntegrationParams {
|
|
2273
|
-
|
|
2273
|
+
store_id: string;
|
|
2274
2274
|
id: string;
|
|
2275
2275
|
}
|
|
2276
2276
|
interface ListWebhooksParams {
|
|
2277
|
-
|
|
2277
|
+
store_id: string;
|
|
2278
2278
|
}
|
|
2279
2279
|
interface CreateWebhookParams {
|
|
2280
|
-
|
|
2280
|
+
store_id: string;
|
|
2281
2281
|
key: string;
|
|
2282
2282
|
url: string;
|
|
2283
2283
|
events: WebhookEventSubscription[];
|
|
@@ -2286,7 +2286,7 @@ interface CreateWebhookParams {
|
|
|
2286
2286
|
enabled: boolean;
|
|
2287
2287
|
}
|
|
2288
2288
|
interface UpdateWebhookParams {
|
|
2289
|
-
|
|
2289
|
+
store_id: string;
|
|
2290
2290
|
id: string;
|
|
2291
2291
|
key: string;
|
|
2292
2292
|
url: string;
|
|
@@ -2296,7 +2296,7 @@ interface UpdateWebhookParams {
|
|
|
2296
2296
|
enabled: boolean;
|
|
2297
2297
|
}
|
|
2298
2298
|
interface DeleteWebhookParams {
|
|
2299
|
-
|
|
2299
|
+
store_id: string;
|
|
2300
2300
|
id: string;
|
|
2301
2301
|
}
|
|
2302
2302
|
interface GetShippingRatesParams {
|
|
@@ -2317,7 +2317,7 @@ interface ShipParams {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
type AgentStatus = 'active' | 'draft' | 'archived';
|
|
2319
2319
|
interface CreateAgentParams {
|
|
2320
|
-
|
|
2320
|
+
store_id?: string;
|
|
2321
2321
|
key: string;
|
|
2322
2322
|
prompt: string;
|
|
2323
2323
|
status?: AgentStatus;
|
|
@@ -2326,7 +2326,7 @@ interface CreateAgentParams {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
interface UpdateAgentParams {
|
|
2328
2328
|
id: string;
|
|
2329
|
-
|
|
2329
|
+
store_id?: string;
|
|
2330
2330
|
key: string;
|
|
2331
2331
|
prompt: string;
|
|
2332
2332
|
status: AgentStatus;
|
|
@@ -2335,32 +2335,32 @@ interface UpdateAgentParams {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
interface DeleteAgentParams {
|
|
2337
2337
|
id: string;
|
|
2338
|
-
|
|
2338
|
+
store_id?: string;
|
|
2339
2339
|
}
|
|
2340
2340
|
interface GetAgentParams {
|
|
2341
2341
|
id: string;
|
|
2342
|
-
|
|
2342
|
+
store_id?: string;
|
|
2343
2343
|
}
|
|
2344
2344
|
interface GetAgentsParams {
|
|
2345
|
-
|
|
2345
|
+
store_id?: string;
|
|
2346
2346
|
limit?: number;
|
|
2347
2347
|
cursor?: string;
|
|
2348
2348
|
}
|
|
2349
2349
|
interface RunAgentParams {
|
|
2350
2350
|
id: string;
|
|
2351
|
-
|
|
2351
|
+
store_id?: string;
|
|
2352
2352
|
message: string;
|
|
2353
2353
|
chat_id?: string;
|
|
2354
2354
|
direct?: boolean;
|
|
2355
2355
|
}
|
|
2356
2356
|
interface GetAgentChatsParams {
|
|
2357
2357
|
id: string;
|
|
2358
|
-
|
|
2358
|
+
store_id?: string;
|
|
2359
2359
|
limit?: number;
|
|
2360
2360
|
cursor?: string;
|
|
2361
2361
|
}
|
|
2362
|
-
interface
|
|
2363
|
-
|
|
2362
|
+
interface GetStoreChatsParams {
|
|
2363
|
+
store_id?: string;
|
|
2364
2364
|
agent_id?: string;
|
|
2365
2365
|
status?: string;
|
|
2366
2366
|
query?: string;
|
|
@@ -2371,18 +2371,18 @@ interface GetBusinessChatsParams {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
interface GetAgentChatParams {
|
|
2373
2373
|
id: string;
|
|
2374
|
-
|
|
2374
|
+
store_id?: string;
|
|
2375
2375
|
chat_id: string;
|
|
2376
2376
|
}
|
|
2377
2377
|
interface UpdateAgentChatParams {
|
|
2378
2378
|
id: string;
|
|
2379
|
-
|
|
2379
|
+
store_id?: string;
|
|
2380
2380
|
chat_id: string;
|
|
2381
2381
|
status: 'active' | 'archived';
|
|
2382
2382
|
}
|
|
2383
2383
|
interface RateAgentChatParams {
|
|
2384
2384
|
id: string;
|
|
2385
|
-
|
|
2385
|
+
store_id?: string;
|
|
2386
2386
|
chat_id: string;
|
|
2387
2387
|
rating: number;
|
|
2388
2388
|
comment?: string;
|
|
@@ -2416,7 +2416,7 @@ interface CustomerVerificationCode {
|
|
|
2416
2416
|
code: string;
|
|
2417
2417
|
created_at: number;
|
|
2418
2418
|
used: boolean;
|
|
2419
|
-
|
|
2419
|
+
store_id?: string | null;
|
|
2420
2420
|
}
|
|
2421
2421
|
interface PromoUsage {
|
|
2422
2422
|
promo_code_id: string;
|
|
@@ -2424,7 +2424,7 @@ interface PromoUsage {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
interface Customer {
|
|
2426
2426
|
id: string;
|
|
2427
|
-
|
|
2427
|
+
store_id: string;
|
|
2428
2428
|
emails: string[];
|
|
2429
2429
|
status: 'active' | 'archived';
|
|
2430
2430
|
promo_usage: PromoUsage[];
|
|
@@ -2439,17 +2439,17 @@ interface Customer {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
interface ConnectCustomerParams {
|
|
2441
2441
|
email: string;
|
|
2442
|
-
|
|
2442
|
+
store_id?: string;
|
|
2443
2443
|
}
|
|
2444
2444
|
interface CreateCustomerParams {
|
|
2445
|
-
|
|
2445
|
+
store_id?: string;
|
|
2446
2446
|
email: string;
|
|
2447
2447
|
blocks?: Block[];
|
|
2448
2448
|
taxonomies?: TaxonomyEntry[];
|
|
2449
2449
|
}
|
|
2450
2450
|
interface UpdateCustomerParams {
|
|
2451
2451
|
id: string;
|
|
2452
|
-
|
|
2452
|
+
store_id?: string;
|
|
2453
2453
|
emails?: string[];
|
|
2454
2454
|
blocks?: Block[];
|
|
2455
2455
|
taxonomies?: TaxonomyEntry[];
|
|
@@ -2458,10 +2458,10 @@ interface UpdateCustomerParams {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
interface GetCustomerParams {
|
|
2460
2460
|
id: string;
|
|
2461
|
-
|
|
2461
|
+
store_id?: string;
|
|
2462
2462
|
}
|
|
2463
2463
|
interface FindCustomersParams {
|
|
2464
|
-
|
|
2464
|
+
store_id?: string;
|
|
2465
2465
|
query?: string;
|
|
2466
2466
|
limit?: number;
|
|
2467
2467
|
cursor?: string;
|
|
@@ -2471,7 +2471,7 @@ interface FindCustomersParams {
|
|
|
2471
2471
|
interface MergeCustomersParams {
|
|
2472
2472
|
target_id: string;
|
|
2473
2473
|
source_id: string;
|
|
2474
|
-
|
|
2474
|
+
store_id?: string;
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
|
-
export { type Access, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type Address, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Booking, type BookingCancellationReason, type BookingCartItem, type BookingCheckoutParams, type BookingItem, type BookingItemSnapshot, type BookingItemStatus, type BookingPayment, type BookingPaymentPromoCode, type BookingPaymentProvider, type BookingPaymentRefund, type BookingPaymentStatus, type BookingPaymentTax, type BookingPaymentTaxLine, type BookingProviderStatus, type BookingQuote, type BookingQuoteItem, type BookingServiceStatus, type BookingStoreState, type
|
|
2477
|
+
export { type Access, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type Address, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Booking, type BookingCancellationReason, type BookingCartItem, type BookingCheckoutParams, type BookingItem, type BookingItemSnapshot, type BookingItemStatus, type BookingPayment, type BookingPaymentPromoCode, type BookingPaymentProvider, type BookingPaymentRefund, type BookingPaymentStatus, type BookingPaymentTax, type BookingPaymentTaxLine, type BookingProviderStatus, type BookingQuote, type BookingQuoteItem, type BookingServiceStatus, type BookingStoreState, type CancelBookingItemParams, type Condition, type ConnectCustomerParams, type CreateAgentParams, type CreateAudienceParams, type CreateBookingParams, type CreateCustomerParams, type CreateEmailTemplateParams, type CreateFormParams, type CreateIntegrationParams, type CreateLocationParams, type CreateMarketParams, type CreateNodeParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateServiceParams, type CreateServiceProviderParams, type CreateStoreParams, type CreateTaxonomyParams, type CreateWebhookParams, type CreateWorkflowParams, type Customer, type CustomerAuthToken, type CustomerInfo, type CustomerStatus, type CustomerVerificationCode, type CustomsDeclaration, type CustomsItem, type DaySlots, type DeleteAccountParams, type DeleteAgentParams, type DeleteAudienceParams, type DeleteEmailTemplateParams, type DeleteFormParams, type DeleteIntegrationParams, type DeleteLocationParams, type DeleteMarketParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteServiceParams, type DeleteServiceProviderParams, type DeleteStoreMediaParams, type DeleteStoreParams, type DeleteTaxonomyParams, type DeleteWebhookParams, type DeleteWorkflowParams, type Discount, type EmailTemplate, type EmailTemplateStatus, type EshopCartItem, type EshopItem, type EshopStoreState, type Event, type EventAction, type ExecutionStatus, type FindCustomersParams, type FindServiceProvidersParams, type Form, type FormEntry, type FormField, type FormFieldType, type FormSchema, type FormSchemaType, type FormStatus, type FormSubmission, type GeoLocation, type GeoLocationBlock, type GeoLocationBlockProperties, type GeoLocationValue, type GetAgentChatParams, type GetAgentChatsParams, type GetAgentParams, type GetAgentsParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAudienceParams, type GetAudienceSubscribersParams, type GetAudiencesParams, type GetAvailabilityParams, type GetBookingParams, type GetBookingQuoteParams, type GetCustomerParams, type GetDeliveryStatsParams, type GetEmailTemplateParams, type GetEmailTemplatesParams, type GetFormParams, type GetFormSubmissionParams, type GetFormSubmissionsParams, type GetFormsParams, type GetIntegrationParams, type GetMeParams, type GetMediaParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetServiceParams, type GetServicesParams, type GetShippingRatesParams, type GetStoreChatsParams, type GetStoreMediaParams, type GetStoreMediaParams2, type GetStoreParams, type GetStoresParams, type GetSubscriptionPlansParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type GetWorkflowExecutionParams, type GetWorkflowExecutionsParams, type GetWorkflowParams, type GetWorkflowsParams, type HandleInvitationParams, type Integration, type IntegrationProvider, type IntervalPeriod, type InventoryLevel, type InviteUserParams, type Language, type ListIntegrationsParams, type ListWebhooksParams, type Location, type LoginAccountParams, type LogoutParams, type MagicLinkRequestParams, type MagicLinkVerifyParams, type Market, type Media, type MediaResolution, type MergeCustomersParams, type Node, type NodeResult, type NodeStatus, type OAuthConnectParams, type OAuthDisconnectParams, type OrderCancellationReason, type OrderCheckoutParams, type OrderItemStatus, type OrderPayment, type OrderPaymentPromoCode, type OrderPaymentProvider, type OrderPaymentRefund, type OrderPaymentStatus, type OrderPaymentTax, type OrderPaymentTaxLine, type OrderQuote, type OrderShipping, type PaginatedResponse, type Parcel, type PaymentMethod, PaymentMethodType, type PaymentTaxLine, type Price, type PriceProvider, type ProcessBookingRefundParams, type ProcessOrderRefundParams, type ProductStatus, type PromoCodeStatus, type PromoCodeValidation, type PromoUsage, type Provider, type ProviderAvailability, type ProviderTimelinePoint, type ProviderWithTimeline, type PurchaseLabelResult, type RateAgentChatParams, type RemoveAudienceSubscriberParams, type RemoveMemberParams, type RequestOptions, type RunAgentParams, type SearchAccountsParams, type SearchBookingsParams, type Service, type ServiceDuration, type ServiceProvider, type ServiceProviderInput, type SetupAnalyticsParams, type ShipParams, type ShipResult, type Shipment, type ShipmentLine, type ShippingAddress, type ShippingMethod, type ShippingRate, type ShippingStatus, type ShippingWeightTier, type Slot, type SlotRange, type SpecificDate, type Store, type StoreEmails, type StoreRole, type StoreSubscription, type StoreSubscriptionPayment, type StoreSubscriptionProvider, type StoreSubscriptionSource, type StoreSubscriptionStatus, type SubmitFormParams, type SubscribeAudienceParams, type SubscribeParams, type SubscriptionInterval, type SubscriptionPrice, type SystemTemplateKey, type Taxonomy, type TaxonomyEntry, type TaxonomyField, type TaxonomyFieldQuery, type TaxonomyQuery, type TaxonomySchema, type TaxonomySchemaType, type TaxonomyStatus, type TestWebhookParams, type TimeRange, type TimelinePoint, type TrackEmailOpenParams, type TriggerNotificationParams, type TriggerWorkflowParams, type UpdateAccountProfileParams, type UpdateAgentChatParams, type UpdateAgentParams, type UpdateAudienceParams, type UpdateBookingParams, type UpdateCustomerParams, type UpdateEmailTemplateParams, type UpdateFormParams, type UpdateFormSubmissionParams, type UpdateIntegrationParams, type UpdateLocationParams, type UpdateMarketParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateServiceParams, type UpdateServiceProviderParams, type UpdateStoreParams, type UpdateTaxonomyParams, type UpdateWebhookParams, type UpdateWorkflowParams, type UploadStoreMediaParams, type Webhook, type WebhookEventSubscription, type Workflow, type WorkflowEdge, type WorkflowExecution, type WorkflowHttpMethod, type WorkflowHttpNode, type WorkflowLoopNode, type WorkflowNode, type WorkflowStatus, type WorkflowSwitchNode, type WorkflowSwitchRule, type WorkflowTransformNode, type WorkflowTriggerNode, type WorkingDay, type WorkingHour, type Zone, type ZoneLocation };
|