@mesh-sync/worker-backend-client 4.0.17 → 4.0.19
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 +135 -2
- package/dist/client.d.ts +34 -1
- package/dist/client.js +40 -1
- package/dist/types.d.ts +92 -1
- package/dist/types.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -647,9 +647,54 @@ This is typically triggered after initial connection or periodically to keep mar
|
|
|
647
647
|
|
|
648
648
|
|
|
649
649
|
|
|
650
|
+
### marketplace-intelligence-event
|
|
651
|
+
|
|
652
|
+
**Description:** Public marketplace intelligence data scraped from external marketplaces.
|
|
653
|
+
|
|
654
|
+
This event contains:
|
|
655
|
+
- Listing details (title, price, images)
|
|
656
|
+
- Engagement metrics (views, favorites, reviews)
|
|
657
|
+
- Shop information
|
|
658
|
+
- Market positioning data
|
|
659
|
+
|
|
660
|
+
Unlike marketplace-listing-sync-request (private user data), this focuses on:
|
|
661
|
+
- Broad market trends and pricing analysis
|
|
662
|
+
- Competitive intelligence and demand signals
|
|
663
|
+
- Product popularity and sentiment
|
|
664
|
+
|
|
665
|
+
Consumed by worker-analytic-collector for Elasticsearch indexing.
|
|
666
|
+
Used for market research, pricing optimization, and trend detection.
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
**Method:** `client.marketplaceIntelligenceEvent(data)`
|
|
670
|
+
|
|
671
|
+
**Payload Type:** `MarketplaceIntelligenceEventMessage`
|
|
672
|
+
|
|
673
|
+
**Fields:**
|
|
674
|
+
|
|
675
|
+
- `marketplace` (string) [✓]: Source marketplace
|
|
676
|
+
|
|
677
|
+
- `externalId` (string) [✓]: Marketplace-native listing ID
|
|
678
|
+
|
|
679
|
+
- `listing` (object) [✓]: Core listing information
|
|
680
|
+
|
|
681
|
+
- `metrics` (object) [✗]: Public engagement and sales metrics
|
|
682
|
+
|
|
683
|
+
- `metadata` (object) [✗]: Additional listing context and categorization
|
|
684
|
+
|
|
685
|
+
- `queryContext` (object) [✗]: Search context that found this listing
|
|
686
|
+
|
|
687
|
+
- `collectedAt` (string) [✓]: ISO 8601 timestamp when data was scraped
|
|
688
|
+
|
|
689
|
+
- `collectorVersion` (string) [✗]: Version of collector that scraped this data
|
|
690
|
+
|
|
691
|
+
- `scrapingMethod` (string) [✗]: Method used for scraping
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
650
695
|
### marketplace-listing-description-generation-completed
|
|
651
696
|
|
|
652
|
-
**Description:** Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp).
|
|
697
|
+
**Description:** Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
653
698
|
|
|
654
699
|
**Method:** `client.marketplaceListingDescriptionGenerationCompleted(data)`
|
|
655
700
|
|
|
@@ -661,10 +706,14 @@ This is typically triggered after initial connection or periodically to keep mar
|
|
|
661
706
|
|
|
662
707
|
- `entityType` (string) [✓]: Type of entity processed
|
|
663
708
|
|
|
709
|
+
- `targetMarketplace` (string) [✗]: Target marketplace ID (e.g., 'etsy', 'ebay')
|
|
710
|
+
|
|
664
711
|
- `description` (string) [✓]: SEO-optimized marketplace description (3-5 sentences)
|
|
665
712
|
|
|
666
713
|
- `metadata` (object) [✓]: Content generation metadata for tracking
|
|
667
714
|
|
|
715
|
+
- `suggestedPrice` (object) [✗]: Volume-based price calculation for 3D printed item
|
|
716
|
+
|
|
668
717
|
- `error` (string) [✗]: Error message if generation failed
|
|
669
718
|
|
|
670
719
|
|
|
@@ -699,6 +748,12 @@ This is typically triggered after initial connection or periodically to keep mar
|
|
|
699
748
|
|
|
700
749
|
- `existingCategory` (string) [✗]: Current classification for context
|
|
701
750
|
|
|
751
|
+
- `brandVoice` (string) [✗]: Desired tone/voice for the listing (e.g., 'professional', 'playful')
|
|
752
|
+
|
|
753
|
+
- `targetMarket` (string) [✗]: Target geographic market (e.g., 'US', 'EU')
|
|
754
|
+
|
|
755
|
+
- `keywords` (array) [✗]: Specific keywords to include
|
|
756
|
+
|
|
702
757
|
|
|
703
758
|
|
|
704
759
|
### marketplace-listing-sync-completed
|
|
@@ -832,6 +887,12 @@ Includes bidirectional sync: - Pull: Fetch listings from marketplace to update l
|
|
|
832
887
|
|
|
833
888
|
- `tagLimit` (number) [✗]: Maximum number of tags for marketplace (e.g., 13 for Etsy)
|
|
834
889
|
|
|
890
|
+
- `targetMarket` (string) [✗]: Target geographic market (e.g., 'US', 'EU')
|
|
891
|
+
|
|
892
|
+
- `style` (string) [✗]: Artistic style of the model (e.g., 'realistic', 'low-poly')
|
|
893
|
+
|
|
894
|
+
- `useCases` (array) [✗]: Intended uses for the model
|
|
895
|
+
|
|
835
896
|
|
|
836
897
|
|
|
837
898
|
### marketplace-listing-title-generation-completed
|
|
@@ -886,6 +947,54 @@ Includes bidirectional sync: - Pull: Fetch listings from marketplace to update l
|
|
|
886
947
|
|
|
887
948
|
- `characterLimit` (number) [✗]: Maximum character count for marketplace (e.g., 140 for Etsy)
|
|
888
949
|
|
|
950
|
+
- `brandVoice` (string) [✗]: Desired tone/voice for the listing (e.g., 'professional', 'playful')
|
|
951
|
+
|
|
952
|
+
- `targetMarket` (string) [✗]: Target geographic market (e.g., 'US', 'EU')
|
|
953
|
+
|
|
954
|
+
- `keywords` (array) [✗]: Specific keywords to include
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
### marketplace-listing-update-completed
|
|
959
|
+
|
|
960
|
+
**Description:** Result of a listing update operation
|
|
961
|
+
|
|
962
|
+
**Method:** `client.marketplaceListingUpdateCompleted(data)`
|
|
963
|
+
|
|
964
|
+
**Payload Type:** `MarketplaceListingUpdateCompletedMessage`
|
|
965
|
+
|
|
966
|
+
**Fields:**
|
|
967
|
+
|
|
968
|
+
- `marketplace` (string) [✗]: Target marketplace
|
|
969
|
+
|
|
970
|
+
- `listingId` (string) [✗]: External ID of the listing
|
|
971
|
+
|
|
972
|
+
- `status` (string) [✗]: Status of the update (success, failed)
|
|
973
|
+
|
|
974
|
+
- `result` (object) [✗]: Result details from the marketplace API
|
|
975
|
+
|
|
976
|
+
- `error` (string) [✗]: Error message if failed
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
### marketplace-listing-update-request
|
|
981
|
+
|
|
982
|
+
**Description:** Request to update an existing listing on a marketplace (price, quantity, etc.)
|
|
983
|
+
|
|
984
|
+
**Method:** `client.marketplaceListingUpdateRequest(data)`
|
|
985
|
+
|
|
986
|
+
**Payload Type:** `MarketplaceListingUpdateRequestMessage`
|
|
987
|
+
|
|
988
|
+
**Fields:**
|
|
989
|
+
|
|
990
|
+
- `marketplace` (string) [✗]: Target marketplace (etsy, ebay, etc.)
|
|
991
|
+
|
|
992
|
+
- `listingId` (string) [✗]: External ID of the listing to update
|
|
993
|
+
|
|
994
|
+
- `updates` (object) [✗]: Fields to update
|
|
995
|
+
|
|
996
|
+
- `credentials` (object) [✗]: User credentials for the marketplace
|
|
997
|
+
|
|
889
998
|
|
|
890
999
|
|
|
891
1000
|
### marketplace-publish-listing-completed
|
|
@@ -1903,8 +2012,26 @@ This is typically triggered after initial connection or periodically to keep mar
|
|
|
1903
2012
|
- Requests rotation/refresh of marketplace connection credentials. This is used for: - OAuth token refresh when tokens are near expiry - API key rotation for enhanced security - Re-authentication after connection errors - Scheduled credential updates
|
|
1904
2013
|
|
|
1905
2014
|
|
|
2015
|
+
- `marketplaceIntelligenceEvent(data: MarketplaceIntelligenceEventMessage): Promise<JobResponse>`
|
|
2016
|
+
- Public marketplace intelligence data scraped from external marketplaces.
|
|
2017
|
+
|
|
2018
|
+
This event contains:
|
|
2019
|
+
- Listing details (title, price, images)
|
|
2020
|
+
- Engagement metrics (views, favorites, reviews)
|
|
2021
|
+
- Shop information
|
|
2022
|
+
- Market positioning data
|
|
2023
|
+
|
|
2024
|
+
Unlike marketplace-listing-sync-request (private user data), this focuses on:
|
|
2025
|
+
- Broad market trends and pricing analysis
|
|
2026
|
+
- Competitive intelligence and demand signals
|
|
2027
|
+
- Product popularity and sentiment
|
|
2028
|
+
|
|
2029
|
+
Consumed by worker-analytic-collector for Elasticsearch indexing.
|
|
2030
|
+
Used for market research, pricing optimization, and trend detection.
|
|
2031
|
+
|
|
2032
|
+
|
|
1906
2033
|
- `marketplaceListingDescriptionGenerationCompleted(data: MarketplaceListingDescriptionGenerationCompletedMessage): Promise<JobResponse>`
|
|
1907
|
-
- Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp).
|
|
2034
|
+
- Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
1908
2035
|
|
|
1909
2036
|
- `marketplaceListingDescriptionGenerationRequest(data: MarketplaceListingDescriptionGenerationRequestMessage): Promise<JobResponse>`
|
|
1910
2037
|
- Generates SEO-optimized marketplace description for a 3D model using LLM vision analysis. Worker receives model data, technical metadata, and thumbnail URLs to generate compelling product descriptions tailored to the target marketplace.
|
|
@@ -1930,6 +2057,12 @@ Includes bidirectional sync: - Pull: Fetch listings from marketplace to update l
|
|
|
1930
2057
|
- `marketplaceListingTitleGenerationRequest(data: MarketplaceListingTitleGenerationRequestMessage): Promise<JobResponse>`
|
|
1931
2058
|
- Generates marketplace-optimized title for a 3D model. Worker creates concise, SEO-friendly titles following marketplace character limits and best practices.
|
|
1932
2059
|
|
|
2060
|
+
- `marketplaceListingUpdateCompleted(data: MarketplaceListingUpdateCompletedMessage): Promise<JobResponse>`
|
|
2061
|
+
- Result of a listing update operation
|
|
2062
|
+
|
|
2063
|
+
- `marketplaceListingUpdateRequest(data: MarketplaceListingUpdateRequestMessage): Promise<JobResponse>`
|
|
2064
|
+
- Request to update an existing listing on a marketplace (price, quantity, etc.)
|
|
2065
|
+
|
|
1933
2066
|
- `marketplacePublishListingCompleted(data: MarketplacePublishListingCompletedMessage): Promise<JobResponse>`
|
|
1934
2067
|
- Indicates completion of marketplace listing publication. Contains external listing ID and URL, or error details if failed. Works with any marketplace provider (etsy, ebay, etc.).
|
|
1935
2068
|
|
package/dist/client.d.ts
CHANGED
|
@@ -175,7 +175,28 @@ export declare class WorkerClient {
|
|
|
175
175
|
*/
|
|
176
176
|
marketplaceCredentialRotationRequest(data: types.MarketplaceCredentialRotationRequestMessage): Promise<JobResponse>;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* Public marketplace intelligence data scraped from external marketplaces.
|
|
179
|
+
|
|
180
|
+
This event contains:
|
|
181
|
+
- Listing details (title, price, images)
|
|
182
|
+
- Engagement metrics (views, favorites, reviews)
|
|
183
|
+
- Shop information
|
|
184
|
+
- Market positioning data
|
|
185
|
+
|
|
186
|
+
Unlike marketplace-listing-sync-request (private user data), this focuses on:
|
|
187
|
+
- Broad market trends and pricing analysis
|
|
188
|
+
- Competitive intelligence and demand signals
|
|
189
|
+
- Product popularity and sentiment
|
|
190
|
+
|
|
191
|
+
Consumed by worker-analytic-collector for Elasticsearch indexing.
|
|
192
|
+
Used for market research, pricing optimization, and trend detection.
|
|
193
|
+
|
|
194
|
+
* @param data - The message payload
|
|
195
|
+
* @returns Job response with job ID
|
|
196
|
+
*/
|
|
197
|
+
marketplaceIntelligenceEvent(data: types.MarketplaceIntelligenceEventMessage): Promise<JobResponse>;
|
|
198
|
+
/**
|
|
199
|
+
* Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
179
200
|
* @param data - The message payload
|
|
180
201
|
* @returns Job response with job ID
|
|
181
202
|
*/
|
|
@@ -225,6 +246,18 @@ export declare class WorkerClient {
|
|
|
225
246
|
* @returns Job response with job ID
|
|
226
247
|
*/
|
|
227
248
|
marketplaceListingTitleGenerationRequest(data: types.MarketplaceListingTitleGenerationRequestMessage): Promise<JobResponse>;
|
|
249
|
+
/**
|
|
250
|
+
* Result of a listing update operation
|
|
251
|
+
* @param data - The message payload
|
|
252
|
+
* @returns Job response with job ID
|
|
253
|
+
*/
|
|
254
|
+
marketplaceListingUpdateCompleted(data: types.MarketplaceListingUpdateCompletedMessage): Promise<JobResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* Request to update an existing listing on a marketplace (price, quantity, etc.)
|
|
257
|
+
* @param data - The message payload
|
|
258
|
+
* @returns Job response with job ID
|
|
259
|
+
*/
|
|
260
|
+
marketplaceListingUpdateRequest(data: types.MarketplaceListingUpdateRequestMessage): Promise<JobResponse>;
|
|
228
261
|
/**
|
|
229
262
|
* Indicates completion of marketplace listing publication. Contains external listing ID and URL, or error details if failed. Works with any marketplace provider (etsy, ebay, etc.).
|
|
230
263
|
* @param data - The message payload
|
package/dist/client.js
CHANGED
|
@@ -232,7 +232,30 @@ export class WorkerClient {
|
|
|
232
232
|
return this.sendToQueue(types.MessageTypes.MARKETPLACE_CREDENTIAL_ROTATION_REQUEST, data);
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
235
|
+
* Public marketplace intelligence data scraped from external marketplaces.
|
|
236
|
+
|
|
237
|
+
This event contains:
|
|
238
|
+
- Listing details (title, price, images)
|
|
239
|
+
- Engagement metrics (views, favorites, reviews)
|
|
240
|
+
- Shop information
|
|
241
|
+
- Market positioning data
|
|
242
|
+
|
|
243
|
+
Unlike marketplace-listing-sync-request (private user data), this focuses on:
|
|
244
|
+
- Broad market trends and pricing analysis
|
|
245
|
+
- Competitive intelligence and demand signals
|
|
246
|
+
- Product popularity and sentiment
|
|
247
|
+
|
|
248
|
+
Consumed by worker-analytic-collector for Elasticsearch indexing.
|
|
249
|
+
Used for market research, pricing optimization, and trend detection.
|
|
250
|
+
|
|
251
|
+
* @param data - The message payload
|
|
252
|
+
* @returns Job response with job ID
|
|
253
|
+
*/
|
|
254
|
+
async marketplaceIntelligenceEvent(data) {
|
|
255
|
+
return this.sendToQueue(types.MessageTypes.MARKETPLACE_INTELLIGENCE_EVENT, data);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
236
259
|
* @param data - The message payload
|
|
237
260
|
* @returns Job response with job ID
|
|
238
261
|
*/
|
|
@@ -298,6 +321,22 @@ export class WorkerClient {
|
|
|
298
321
|
async marketplaceListingTitleGenerationRequest(data) {
|
|
299
322
|
return this.sendToQueue(types.MessageTypes.MARKETPLACE_LISTING_TITLE_GENERATION_REQUEST, data);
|
|
300
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Result of a listing update operation
|
|
326
|
+
* @param data - The message payload
|
|
327
|
+
* @returns Job response with job ID
|
|
328
|
+
*/
|
|
329
|
+
async marketplaceListingUpdateCompleted(data) {
|
|
330
|
+
return this.sendToQueue(types.MessageTypes.MARKETPLACE_LISTING_UPDATE_COMPLETED, data);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Request to update an existing listing on a marketplace (price, quantity, etc.)
|
|
334
|
+
* @param data - The message payload
|
|
335
|
+
* @returns Job response with job ID
|
|
336
|
+
*/
|
|
337
|
+
async marketplaceListingUpdateRequest(data) {
|
|
338
|
+
return this.sendToQueue(types.MessageTypes.MARKETPLACE_LISTING_UPDATE_REQUEST, data);
|
|
339
|
+
}
|
|
301
340
|
/**
|
|
302
341
|
* Indicates completion of marketplace listing publication. Contains external listing ID and URL, or error details if failed. Works with any marketplace provider (etsy, ebay, etc.).
|
|
303
342
|
* @param data - The message payload
|
package/dist/types.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const MessageTypes: {
|
|
|
19
19
|
readonly MARKETPLACE_CONNECTION_SYNC_REQUEST: "marketplace-connection-sync-request";
|
|
20
20
|
readonly MARKETPLACE_CREDENTIAL_ROTATION_COMPLETED: "marketplace-credential-rotation-completed";
|
|
21
21
|
readonly MARKETPLACE_CREDENTIAL_ROTATION_REQUEST: "marketplace-credential-rotation-request";
|
|
22
|
+
readonly MARKETPLACE_INTELLIGENCE_EVENT: "marketplace-intelligence-event";
|
|
22
23
|
readonly MARKETPLACE_LISTING_DESCRIPTION_GENERATION_COMPLETED: "marketplace-listing-description-generation-completed";
|
|
23
24
|
readonly MARKETPLACE_LISTING_DESCRIPTION_GENERATION_REQUEST: "marketplace-listing-description-generation-request";
|
|
24
25
|
readonly MARKETPLACE_LISTING_SYNC_COMPLETED: "marketplace-listing-sync-completed";
|
|
@@ -27,6 +28,8 @@ export declare const MessageTypes: {
|
|
|
27
28
|
readonly MARKETPLACE_LISTING_TAGS_GENERATION_REQUEST: "marketplace-listing-tags-generation-request";
|
|
28
29
|
readonly MARKETPLACE_LISTING_TITLE_GENERATION_COMPLETED: "marketplace-listing-title-generation-completed";
|
|
29
30
|
readonly MARKETPLACE_LISTING_TITLE_GENERATION_REQUEST: "marketplace-listing-title-generation-request";
|
|
31
|
+
readonly MARKETPLACE_LISTING_UPDATE_COMPLETED: "marketplace-listing-update-completed";
|
|
32
|
+
readonly MARKETPLACE_LISTING_UPDATE_REQUEST: "marketplace-listing-update-request";
|
|
30
33
|
readonly MARKETPLACE_PUBLISH_LISTING_COMPLETED: "marketplace-publish-listing-completed";
|
|
31
34
|
readonly MARKETPLACE_PUBLISH_LISTING_REQUEST: "marketplace-publish-listing-request";
|
|
32
35
|
readonly MEDIA_BATCH_DOWNLOAD_COMPLETED: "media-batch-download-completed";
|
|
@@ -487,17 +490,59 @@ export interface MarketplaceCredentialRotationRequestMessage {
|
|
|
487
490
|
metadata?: Record<string, string | number | boolean>;
|
|
488
491
|
}
|
|
489
492
|
/**
|
|
490
|
-
*
|
|
493
|
+
* Public marketplace intelligence data scraped from external marketplaces.
|
|
494
|
+
|
|
495
|
+
This event contains:
|
|
496
|
+
- Listing details (title, price, images)
|
|
497
|
+
- Engagement metrics (views, favorites, reviews)
|
|
498
|
+
- Shop information
|
|
499
|
+
- Market positioning data
|
|
500
|
+
|
|
501
|
+
Unlike marketplace-listing-sync-request (private user data), this focuses on:
|
|
502
|
+
- Broad market trends and pricing analysis
|
|
503
|
+
- Competitive intelligence and demand signals
|
|
504
|
+
- Product popularity and sentiment
|
|
505
|
+
|
|
506
|
+
Consumed by worker-analytic-collector for Elasticsearch indexing.
|
|
507
|
+
Used for market research, pricing optimization, and trend detection.
|
|
508
|
+
|
|
509
|
+
*/
|
|
510
|
+
export interface MarketplaceIntelligenceEventMessage {
|
|
511
|
+
/** Source marketplace */
|
|
512
|
+
marketplace: string;
|
|
513
|
+
/** Marketplace-native listing ID */
|
|
514
|
+
externalId: string;
|
|
515
|
+
/** Core listing information */
|
|
516
|
+
listing: Record<string, string | number | boolean>;
|
|
517
|
+
/** Public engagement and sales metrics */
|
|
518
|
+
metrics?: Record<string, string | number | boolean>;
|
|
519
|
+
/** Additional listing context and categorization */
|
|
520
|
+
metadata?: Record<string, string | number | boolean>;
|
|
521
|
+
/** Search context that found this listing */
|
|
522
|
+
queryContext?: Record<string, string | number | boolean>;
|
|
523
|
+
/** ISO 8601 timestamp when data was scraped */
|
|
524
|
+
collectedAt: string;
|
|
525
|
+
/** Version of collector that scraped this data */
|
|
526
|
+
collectorVersion?: string;
|
|
527
|
+
/** Method used for scraping */
|
|
528
|
+
scrapingMethod?: string;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
491
532
|
*/
|
|
492
533
|
export interface MarketplaceListingDescriptionGenerationCompletedMessage {
|
|
493
534
|
/** UUID of the model that was processed */
|
|
494
535
|
modelId: string;
|
|
495
536
|
/** Type of entity processed */
|
|
496
537
|
entityType: string;
|
|
538
|
+
/** Target marketplace ID (e.g., 'etsy', 'ebay') */
|
|
539
|
+
targetMarketplace?: string;
|
|
497
540
|
/** SEO-optimized marketplace description (3-5 sentences) */
|
|
498
541
|
description: string;
|
|
499
542
|
/** Content generation metadata for tracking */
|
|
500
543
|
metadata: Record<string, string | number | boolean>;
|
|
544
|
+
/** Volume-based price calculation for 3D printed item */
|
|
545
|
+
suggestedPrice?: Record<string, string | number | boolean>;
|
|
501
546
|
/** Error message if generation failed */
|
|
502
547
|
error?: string;
|
|
503
548
|
}
|
|
@@ -525,6 +570,12 @@ export interface MarketplaceListingDescriptionGenerationRequestMessage {
|
|
|
525
570
|
existingTags?: Array<Record<string, string | number | boolean>>;
|
|
526
571
|
/** Current classification for context */
|
|
527
572
|
existingCategory?: string;
|
|
573
|
+
/** Desired tone/voice for the listing (e.g., 'professional', 'playful') */
|
|
574
|
+
brandVoice?: string;
|
|
575
|
+
/** Target geographic market (e.g., 'US', 'EU') */
|
|
576
|
+
targetMarket?: string;
|
|
577
|
+
/** Specific keywords to include */
|
|
578
|
+
keywords?: Array<Record<string, string | number | boolean>>;
|
|
528
579
|
}
|
|
529
580
|
/**
|
|
530
581
|
* Notification that marketplace listing sync operation has completed. Contains detailed results of the sync including created/updated listings, errors encountered, and performance statistics.
|
|
@@ -630,6 +681,12 @@ export interface MarketplaceListingTagsGenerationRequestMessage {
|
|
|
630
681
|
existingCategory?: string;
|
|
631
682
|
/** Maximum number of tags for marketplace (e.g., 13 for Etsy) */
|
|
632
683
|
tagLimit?: number;
|
|
684
|
+
/** Target geographic market (e.g., 'US', 'EU') */
|
|
685
|
+
targetMarket?: string;
|
|
686
|
+
/** Artistic style of the model (e.g., 'realistic', 'low-poly') */
|
|
687
|
+
style?: string;
|
|
688
|
+
/** Intended uses for the model */
|
|
689
|
+
useCases?: Array<Record<string, string | number | boolean>>;
|
|
633
690
|
}
|
|
634
691
|
/**
|
|
635
692
|
* Notifies backend that marketplace title generation completed. Contains generated title with metadata tracking.
|
|
@@ -670,6 +727,40 @@ export interface MarketplaceListingTitleGenerationRequestMessage {
|
|
|
670
727
|
existingCategory?: string;
|
|
671
728
|
/** Maximum character count for marketplace (e.g., 140 for Etsy) */
|
|
672
729
|
characterLimit?: number;
|
|
730
|
+
/** Desired tone/voice for the listing (e.g., 'professional', 'playful') */
|
|
731
|
+
brandVoice?: string;
|
|
732
|
+
/** Target geographic market (e.g., 'US', 'EU') */
|
|
733
|
+
targetMarket?: string;
|
|
734
|
+
/** Specific keywords to include */
|
|
735
|
+
keywords?: Array<Record<string, string | number | boolean>>;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Result of a listing update operation
|
|
739
|
+
*/
|
|
740
|
+
export interface MarketplaceListingUpdateCompletedMessage {
|
|
741
|
+
/** Target marketplace */
|
|
742
|
+
marketplace?: string;
|
|
743
|
+
/** External ID of the listing */
|
|
744
|
+
listingId?: string;
|
|
745
|
+
/** Status of the update (success, failed) */
|
|
746
|
+
status?: string;
|
|
747
|
+
/** Result details from the marketplace API */
|
|
748
|
+
result?: Record<string, string | number | boolean>;
|
|
749
|
+
/** Error message if failed */
|
|
750
|
+
error?: string;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Request to update an existing listing on a marketplace (price, quantity, etc.)
|
|
754
|
+
*/
|
|
755
|
+
export interface MarketplaceListingUpdateRequestMessage {
|
|
756
|
+
/** Target marketplace (etsy, ebay, etc.) */
|
|
757
|
+
marketplace?: string;
|
|
758
|
+
/** External ID of the listing to update */
|
|
759
|
+
listingId?: string;
|
|
760
|
+
/** Fields to update */
|
|
761
|
+
updates?: Record<string, string | number | boolean>;
|
|
762
|
+
/** User credentials for the marketplace */
|
|
763
|
+
credentials?: Record<string, string | number | boolean>;
|
|
673
764
|
}
|
|
674
765
|
/**
|
|
675
766
|
* Indicates completion of marketplace listing publication. Contains external listing ID and URL, or error details if failed. Works with any marketplace provider (etsy, ebay, etc.).
|
package/dist/types.js
CHANGED
|
@@ -20,6 +20,7 @@ export const MessageTypes = {
|
|
|
20
20
|
MARKETPLACE_CONNECTION_SYNC_REQUEST: 'marketplace-connection-sync-request',
|
|
21
21
|
MARKETPLACE_CREDENTIAL_ROTATION_COMPLETED: 'marketplace-credential-rotation-completed',
|
|
22
22
|
MARKETPLACE_CREDENTIAL_ROTATION_REQUEST: 'marketplace-credential-rotation-request',
|
|
23
|
+
MARKETPLACE_INTELLIGENCE_EVENT: 'marketplace-intelligence-event',
|
|
23
24
|
MARKETPLACE_LISTING_DESCRIPTION_GENERATION_COMPLETED: 'marketplace-listing-description-generation-completed',
|
|
24
25
|
MARKETPLACE_LISTING_DESCRIPTION_GENERATION_REQUEST: 'marketplace-listing-description-generation-request',
|
|
25
26
|
MARKETPLACE_LISTING_SYNC_COMPLETED: 'marketplace-listing-sync-completed',
|
|
@@ -28,6 +29,8 @@ export const MessageTypes = {
|
|
|
28
29
|
MARKETPLACE_LISTING_TAGS_GENERATION_REQUEST: 'marketplace-listing-tags-generation-request',
|
|
29
30
|
MARKETPLACE_LISTING_TITLE_GENERATION_COMPLETED: 'marketplace-listing-title-generation-completed',
|
|
30
31
|
MARKETPLACE_LISTING_TITLE_GENERATION_REQUEST: 'marketplace-listing-title-generation-request',
|
|
32
|
+
MARKETPLACE_LISTING_UPDATE_COMPLETED: 'marketplace-listing-update-completed',
|
|
33
|
+
MARKETPLACE_LISTING_UPDATE_REQUEST: 'marketplace-listing-update-request',
|
|
31
34
|
MARKETPLACE_PUBLISH_LISTING_COMPLETED: 'marketplace-publish-listing-completed',
|
|
32
35
|
MARKETPLACE_PUBLISH_LISTING_REQUEST: 'marketplace-publish-listing-request',
|
|
33
36
|
MEDIA_BATCH_DOWNLOAD_COMPLETED: 'media-batch-download-completed',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mesh-sync/worker-backend-client",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.19",
|
|
4
4
|
"description": "Auto-generated TypeScript client for worker-backend - provides type-safe methods for enqueueing jobs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|