feeef 0.8.0 → 0.8.2
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.
|
@@ -48,6 +48,8 @@ export interface ImageGenerationGalleryOptions {
|
|
|
48
48
|
limit?: number;
|
|
49
49
|
params?: Record<string, unknown>;
|
|
50
50
|
}
|
|
51
|
+
/** Output image size (generated image dimensions). Distinct from resolution (input). */
|
|
52
|
+
export type ImageGenerationImageSize = '1K' | '2K' | '4K';
|
|
51
53
|
export interface ImageGenerationGenerateInput {
|
|
52
54
|
id?: string | null;
|
|
53
55
|
storeId?: string | null;
|
|
@@ -55,6 +57,9 @@ export interface ImageGenerationGenerateInput {
|
|
|
55
57
|
prompt?: string | null;
|
|
56
58
|
imageFile?: File | Blob | Uint8Array | ArrayBuffer | null;
|
|
57
59
|
aspectRatio?: ImageGenerationAspectRatio;
|
|
60
|
+
/** Output image size (1K/2K/4K). Backend default 2K when omitted. */
|
|
61
|
+
imageSize?: ImageGenerationImageSize;
|
|
62
|
+
/** Input resolution (how reference images are processed). Default MEDIA_RESOLUTION_HIGH. */
|
|
58
63
|
resolution?: ImageGenerationResolution;
|
|
59
64
|
systemInstructions?: string | null;
|
|
60
65
|
attachments?: AttachmentPayload[];
|
|
@@ -111,6 +111,7 @@ export interface PublicMetaPixelIntegration {
|
|
|
111
111
|
active: boolean;
|
|
112
112
|
objective?: MetaPixelEvent | null;
|
|
113
113
|
draftObjective?: MetaPixelEvent | null;
|
|
114
|
+
mode?: PixelReportMode | null;
|
|
114
115
|
}
|
|
115
116
|
export interface PublicTiktokPixelIntegration {
|
|
116
117
|
pixels: {
|
|
@@ -119,6 +120,7 @@ export interface PublicTiktokPixelIntegration {
|
|
|
119
120
|
active: boolean;
|
|
120
121
|
objective?: TiktokPixelEvent | null;
|
|
121
122
|
draftObjective?: TiktokPixelEvent | null;
|
|
123
|
+
mode?: PixelReportMode | null;
|
|
122
124
|
}
|
|
123
125
|
export interface PublicGoogleAnalyticsIntegration {
|
|
124
126
|
id: string;
|
|
@@ -200,6 +202,36 @@ export interface StoreMember {
|
|
|
200
202
|
active: boolean;
|
|
201
203
|
metadata: Record<string, any>;
|
|
202
204
|
}
|
|
205
|
+
export declare enum StoreInviteStatus {
|
|
206
|
+
pending = "pending",
|
|
207
|
+
accepted = "accepted",
|
|
208
|
+
revoked = "revoked",
|
|
209
|
+
expired = "expired"
|
|
210
|
+
}
|
|
211
|
+
export interface StoreInvite {
|
|
212
|
+
id: string;
|
|
213
|
+
storeId: string;
|
|
214
|
+
email: string;
|
|
215
|
+
role: StoreMemberRole;
|
|
216
|
+
invitedBy: string;
|
|
217
|
+
status: StoreInviteStatus;
|
|
218
|
+
acceptedAt: any | null;
|
|
219
|
+
expiresAt: any;
|
|
220
|
+
metadata: Record<string, any>;
|
|
221
|
+
createdAt: any;
|
|
222
|
+
updatedAt: any;
|
|
223
|
+
store?: {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
iconUrl?: string;
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
export interface CreateStoreInviteInput {
|
|
230
|
+
email: string;
|
|
231
|
+
role: StoreMemberRole;
|
|
232
|
+
expiresAt?: string;
|
|
233
|
+
metadata?: Record<string, any>;
|
|
234
|
+
}
|
|
203
235
|
export interface StoreConfigs {
|
|
204
236
|
currencies: StoreCurrencyConfig[];
|
|
205
237
|
selectedCurrency: string;
|
|
@@ -282,6 +314,15 @@ export declare enum StoreActionType {
|
|
|
282
314
|
telegram = "telegram",
|
|
283
315
|
phone = "phone"
|
|
284
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* Controls where pixel conversion events are sent: server-only (CAPI), client-only (store frontend), or both.
|
|
319
|
+
* When unset (auto), server is used if an API key is configured; otherwise client-only.
|
|
320
|
+
*/
|
|
321
|
+
export declare enum PixelReportMode {
|
|
322
|
+
server = "server",
|
|
323
|
+
client = "client",
|
|
324
|
+
both = "both"
|
|
325
|
+
}
|
|
285
326
|
export interface MetaPixel {
|
|
286
327
|
name?: string;
|
|
287
328
|
id: string;
|
|
@@ -312,6 +353,8 @@ export interface MetaPixelIntegration {
|
|
|
312
353
|
metadata: Record<string, any>;
|
|
313
354
|
/** Facebook Marketing OAuth data - for accessing pixels via API */
|
|
314
355
|
oauth2?: FacebookMarketingOAuth | null;
|
|
356
|
+
/** Where to send events: server (CAPI), client (store frontend), or both. Omit for auto (prefer server if key set). */
|
|
357
|
+
mode?: PixelReportMode | null;
|
|
315
358
|
}
|
|
316
359
|
export interface TiktokPixelIntegration {
|
|
317
360
|
id: string;
|
|
@@ -320,6 +363,8 @@ export interface TiktokPixelIntegration {
|
|
|
320
363
|
draftObjective?: TiktokPixelEvent | null;
|
|
321
364
|
active: boolean;
|
|
322
365
|
metadata: Record<string, any>;
|
|
366
|
+
/** Where to send events: server, client, or both. Omit for auto (prefer server if accessToken set). */
|
|
367
|
+
mode?: PixelReportMode | null;
|
|
323
368
|
}
|
|
324
369
|
export interface GoogleAnalyticsIntegration {
|
|
325
370
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { ModelRepository, ListResponse } from './repository.js';
|
|
3
|
-
import { StoreEntity, StoreSummary, StoreMember, StoreSubscriptionType, AddStoreMemberInput, UpdateStoreMemberInput, StoreCreateInput, StoreUpdateInput } from '../../core/entities/store.js';
|
|
3
|
+
import { StoreEntity, StoreSummary, StoreMember, StoreInvite, CreateStoreInviteInput, StoreSubscriptionType, AddStoreMemberInput, UpdateStoreMemberInput, StoreCreateInput, StoreUpdateInput } from '../../core/entities/store.js';
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing stores
|
|
6
6
|
*/
|
|
@@ -77,6 +77,43 @@ export declare class StoreRepository extends ModelRepository<StoreEntity, StoreC
|
|
|
77
77
|
* @returns A Promise that resolves when the member is removed.
|
|
78
78
|
*/
|
|
79
79
|
removeMember(storeId: string, memberId: string): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Creates a store invite (sends email to invitee).
|
|
82
|
+
* @param storeId - The store ID.
|
|
83
|
+
* @param data - The invite data.
|
|
84
|
+
* @returns A Promise that resolves to the created invite.
|
|
85
|
+
*/
|
|
86
|
+
createInvite(storeId: string, data: CreateStoreInviteInput): Promise<StoreInvite>;
|
|
87
|
+
/**
|
|
88
|
+
* Lists invites for a store.
|
|
89
|
+
* @param storeId - The store ID.
|
|
90
|
+
* @param params - Optional filters (e.g. status).
|
|
91
|
+
* @returns A Promise that resolves to the list of invites.
|
|
92
|
+
*/
|
|
93
|
+
listInvites(storeId: string, params?: {
|
|
94
|
+
status?: string;
|
|
95
|
+
}): Promise<StoreInvite[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Revokes a pending invite.
|
|
98
|
+
* @param storeId - The store ID.
|
|
99
|
+
* @param inviteId - The invite ID.
|
|
100
|
+
*/
|
|
101
|
+
revokeInvite(storeId: string, inviteId: string): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Gets invite details (public or full if authorized).
|
|
104
|
+
* @param storeId - The store ID.
|
|
105
|
+
* @param inviteId - The invite ID.
|
|
106
|
+
* @returns A Promise that resolves to the invite.
|
|
107
|
+
*/
|
|
108
|
+
getInvite(storeId: string, inviteId: string): Promise<StoreInvite>;
|
|
109
|
+
/**
|
|
110
|
+
* Accepts an invite (authenticated user's email must match invite email).
|
|
111
|
+
* @param storeId - The store ID.
|
|
112
|
+
* @param inviteId - The invite ID.
|
|
113
|
+
* @param token - The invite token from the email link.
|
|
114
|
+
* @returns A Promise that resolves to the created store member.
|
|
115
|
+
*/
|
|
116
|
+
acceptInvite(storeId: string, inviteId: string, token: string): Promise<StoreMember>;
|
|
80
117
|
/**
|
|
81
118
|
* Upgrades or renews a store's subscription plan.
|
|
82
119
|
* @param id - The store ID.
|