@mesh-sync/worker-backend-client 4.0.18 → 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 +129 -0
- package/dist/client.d.ts +33 -0
- package/dist/client.js +39 -0
- package/dist/types.d.ts +87 -0
- package/dist/types.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -647,6 +647,51 @@ 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
697
|
**Description:** Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
@@ -703,6 +748,12 @@ This is typically triggered after initial connection or periodically to keep mar
|
|
|
703
748
|
|
|
704
749
|
- `existingCategory` (string) [✗]: Current classification for context
|
|
705
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
|
+
|
|
706
757
|
|
|
707
758
|
|
|
708
759
|
### marketplace-listing-sync-completed
|
|
@@ -836,6 +887,12 @@ Includes bidirectional sync: - Pull: Fetch listings from marketplace to update l
|
|
|
836
887
|
|
|
837
888
|
- `tagLimit` (number) [✗]: Maximum number of tags for marketplace (e.g., 13 for Etsy)
|
|
838
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
|
+
|
|
839
896
|
|
|
840
897
|
|
|
841
898
|
### marketplace-listing-title-generation-completed
|
|
@@ -890,6 +947,54 @@ Includes bidirectional sync: - Pull: Fetch listings from marketplace to update l
|
|
|
890
947
|
|
|
891
948
|
- `characterLimit` (number) [✗]: Maximum character count for marketplace (e.g., 140 for Etsy)
|
|
892
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
|
+
|
|
893
998
|
|
|
894
999
|
|
|
895
1000
|
### marketplace-publish-listing-completed
|
|
@@ -1907,6 +2012,24 @@ This is typically triggered after initial connection or periodically to keep mar
|
|
|
1907
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
|
|
1908
2013
|
|
|
1909
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
|
+
|
|
1910
2033
|
- `marketplaceListingDescriptionGenerationCompleted(data: MarketplaceListingDescriptionGenerationCompletedMessage): Promise<JobResponse>`
|
|
1911
2034
|
- Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
1912
2035
|
|
|
@@ -1934,6 +2057,12 @@ Includes bidirectional sync: - Pull: Fetch listings from marketplace to update l
|
|
|
1934
2057
|
- `marketplaceListingTitleGenerationRequest(data: MarketplaceListingTitleGenerationRequestMessage): Promise<JobResponse>`
|
|
1935
2058
|
- Generates marketplace-optimized title for a 3D model. Worker creates concise, SEO-friendly titles following marketplace character limits and best practices.
|
|
1936
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
|
+
|
|
1937
2066
|
- `marketplacePublishListingCompleted(data: MarketplacePublishListingCompletedMessage): Promise<JobResponse>`
|
|
1938
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.).
|
|
1939
2068
|
|
package/dist/client.d.ts
CHANGED
|
@@ -174,6 +174,27 @@ export declare class WorkerClient {
|
|
|
174
174
|
* @returns Job response with job ID
|
|
175
175
|
*/
|
|
176
176
|
marketplaceCredentialRotationRequest(data: types.MarketplaceCredentialRotationRequestMessage): Promise<JobResponse>;
|
|
177
|
+
/**
|
|
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>;
|
|
177
198
|
/**
|
|
178
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
|
|
@@ -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
|
@@ -231,6 +231,29 @@ export class WorkerClient {
|
|
|
231
231
|
async marketplaceCredentialRotationRequest(data) {
|
|
232
232
|
return this.sendToQueue(types.MessageTypes.MARKETPLACE_CREDENTIAL_ROTATION_REQUEST, data);
|
|
233
233
|
}
|
|
234
|
+
/**
|
|
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
|
+
}
|
|
234
257
|
/**
|
|
235
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
|
|
@@ -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";
|
|
@@ -486,6 +489,44 @@ export interface MarketplaceCredentialRotationRequestMessage {
|
|
|
486
489
|
/** Additional request context */
|
|
487
490
|
metadata?: Record<string, string | number | boolean>;
|
|
488
491
|
}
|
|
492
|
+
/**
|
|
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
|
+
}
|
|
489
530
|
/**
|
|
490
531
|
* Notifies backend that marketplace description generation completed. Contains generated description with metadata tracking (AI model, confidence, generation timestamp) and suggested price.
|
|
491
532
|
*/
|
|
@@ -529,6 +570,12 @@ export interface MarketplaceListingDescriptionGenerationRequestMessage {
|
|
|
529
570
|
existingTags?: Array<Record<string, string | number | boolean>>;
|
|
530
571
|
/** Current classification for context */
|
|
531
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>>;
|
|
532
579
|
}
|
|
533
580
|
/**
|
|
534
581
|
* Notification that marketplace listing sync operation has completed. Contains detailed results of the sync including created/updated listings, errors encountered, and performance statistics.
|
|
@@ -634,6 +681,12 @@ export interface MarketplaceListingTagsGenerationRequestMessage {
|
|
|
634
681
|
existingCategory?: string;
|
|
635
682
|
/** Maximum number of tags for marketplace (e.g., 13 for Etsy) */
|
|
636
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>>;
|
|
637
690
|
}
|
|
638
691
|
/**
|
|
639
692
|
* Notifies backend that marketplace title generation completed. Contains generated title with metadata tracking.
|
|
@@ -674,6 +727,40 @@ export interface MarketplaceListingTitleGenerationRequestMessage {
|
|
|
674
727
|
existingCategory?: string;
|
|
675
728
|
/** Maximum character count for marketplace (e.g., 140 for Etsy) */
|
|
676
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>;
|
|
677
764
|
}
|
|
678
765
|
/**
|
|
679
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",
|