@joai/core 1.6.0 → 1.6.1
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.mts +18 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -297,7 +297,7 @@ type AffiliateStatus = 'pending' | 'approved' | 'rejected' | 'suspended' | 'demo
|
|
|
297
297
|
declare const teamCategories: readonly ["general", "food-drink", "retail", "beauty-wellness", "health", "sports-fitness", "trades-services", "professional-services", "education-culture", "clubs-organizations", "leisure-tourism"];
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region src/team/types.d.ts
|
|
300
|
-
type TeamCategory = typeof teamCategories[number];
|
|
300
|
+
type TeamCategory = (typeof teamCategories)[number];
|
|
301
301
|
type TeamFeature = 'shop' | 'appointments';
|
|
302
302
|
type TeamMember = User & {
|
|
303
303
|
role: UserRole | null;
|
|
@@ -307,7 +307,7 @@ type TeamMember = User & {
|
|
|
307
307
|
type TeamMeta = {
|
|
308
308
|
'extra.messages'?: number;
|
|
309
309
|
'limit.spending'?: number | null;
|
|
310
|
-
|
|
310
|
+
currency?: string;
|
|
311
311
|
'extra.usage.enabled'?: boolean;
|
|
312
312
|
'auto.reload.enabled'?: boolean;
|
|
313
313
|
'auto.reload.threshold_cents'?: number | null;
|
|
@@ -317,9 +317,10 @@ type TeamMeta = {
|
|
|
317
317
|
'board.auto.enabled'?: boolean;
|
|
318
318
|
'payments.online'?: boolean;
|
|
319
319
|
'payments.coupons'?: boolean;
|
|
320
|
+
'kiosk.enabled'?: boolean;
|
|
320
321
|
'stock.enabled'?: boolean;
|
|
321
|
-
|
|
322
|
-
|
|
322
|
+
contactPropertyMaskWarp?: string;
|
|
323
|
+
branding?: TeamBrand | null;
|
|
323
324
|
settings: Record<string, unknown>;
|
|
324
325
|
};
|
|
325
326
|
type Team = {
|
|
@@ -340,6 +341,7 @@ type Team = {
|
|
|
340
341
|
createdAt: string;
|
|
341
342
|
blueprints?: Blueprint[];
|
|
342
343
|
flows?: Flow[];
|
|
344
|
+
coupons?: Coupon[];
|
|
343
345
|
};
|
|
344
346
|
type TeamBrand = {
|
|
345
347
|
bg?: string;
|
|
@@ -403,7 +405,7 @@ type ByokProviderName = keyof ByokProviders;
|
|
|
403
405
|
type TeamSettings = {
|
|
404
406
|
'extra.messages': number;
|
|
405
407
|
'limit.spending': number | null;
|
|
406
|
-
|
|
408
|
+
currency: string;
|
|
407
409
|
'extra.usage.enabled'?: boolean;
|
|
408
410
|
'auto.reload.enabled'?: boolean;
|
|
409
411
|
'auto.reload.threshold_cents'?: number | null;
|
|
@@ -413,8 +415,9 @@ type TeamSettings = {
|
|
|
413
415
|
'board.auto.enabled'?: boolean;
|
|
414
416
|
'payments.online'?: boolean;
|
|
415
417
|
'payments.coupons'?: boolean;
|
|
418
|
+
'kiosk.enabled'?: boolean;
|
|
416
419
|
'stock.enabled'?: boolean;
|
|
417
|
-
|
|
420
|
+
branding?: TeamBrand | null;
|
|
418
421
|
};
|
|
419
422
|
type TeamUsage = Partial<Record<PlanFeature, TeamFeatureUsage>> & {
|
|
420
423
|
extraUsageEnabled?: boolean;
|
|
@@ -842,11 +845,17 @@ type CouponCondition = 'none' | 'onetime-use' | 'previous-purchase';
|
|
|
842
845
|
type Coupon = {
|
|
843
846
|
id: string;
|
|
844
847
|
code: string;
|
|
848
|
+
name: TranslatableValue;
|
|
845
849
|
amount: number | null;
|
|
846
850
|
percent: number | null;
|
|
851
|
+
price: number | null;
|
|
847
852
|
condition: CouponCondition;
|
|
848
853
|
usesLeft: number | null;
|
|
849
854
|
expiresAt: string | null;
|
|
855
|
+
active: boolean;
|
|
856
|
+
public: boolean;
|
|
857
|
+
sellable: boolean;
|
|
858
|
+
media: Media[];
|
|
850
859
|
};
|
|
851
860
|
type PurchaseResult = {
|
|
852
861
|
order_id?: string;
|
|
@@ -904,7 +913,7 @@ type Skill = {
|
|
|
904
913
|
};
|
|
905
914
|
//#endregion
|
|
906
915
|
//#region src/integration/types.d.ts
|
|
907
|
-
type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'sms' | 'n8n' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'sentry' | 'readwise';
|
|
916
|
+
type IntegrationType = 'none' | 'webhook' | 'api-token' | 'telegram' | 'slack' | 'whatsapp' | 'twilio' | 'sms' | 'n8n' | 'apple-health' | 'mcp' | 'x' | 'email' | 'calendar' | 'embed' | 'discord' | 'github' | 'push' | 'sentry' | 'readwise';
|
|
908
917
|
type IntegrationDetails = {
|
|
909
918
|
type: IntegrationType;
|
|
910
919
|
name: string;
|
|
@@ -3286,7 +3295,7 @@ type LoyaltyMember = {
|
|
|
3286
3295
|
};
|
|
3287
3296
|
//#endregion
|
|
3288
3297
|
//#region src/segment/types.d.ts
|
|
3289
|
-
type SegmentConditionType = 'tag' | 'has_email' | 'has_phone' | 'created_after' | 'created_before' | 'email_contains';
|
|
3298
|
+
type SegmentConditionType = 'tag' | 'has_email' | 'has_phone' | 'has_user' | 'last_purchase_after' | 'last_purchase_before' | 'total_order_amount' | 'order_count_at_least' | 'never_purchased' | 'avg_order_value_at_least' | 'last_contact_after' | 'last_contact_before' | 'created_after' | 'created_before' | 'email_contains';
|
|
3290
3299
|
type SegmentCondition = {
|
|
3291
3300
|
type: SegmentConditionType;
|
|
3292
3301
|
value: string | boolean;
|
|
@@ -3318,7 +3327,7 @@ type SegmentCountResult = {
|
|
|
3318
3327
|
};
|
|
3319
3328
|
//#endregion
|
|
3320
3329
|
//#region src/campaign/types.d.ts
|
|
3321
|
-
type CampaignChannel = 'email' | 'whatsapp' | 'sms';
|
|
3330
|
+
type CampaignChannel = 'email' | 'whatsapp' | 'sms' | 'push';
|
|
3322
3331
|
type CampaignStatus = 'draft' | 'sending' | 'completed' | 'failed';
|
|
3323
3332
|
type Campaign = {
|
|
3324
3333
|
id: string;
|