@nadohq/mobile-client 0.66.0 → 0.67.0
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 +110 -17
- package/dist/{MobileClient-M4oC4lrX.cjs → MobileClient-vuI5wlB_.cjs} +69 -29
- package/dist/MobileClient-vuI5wlB_.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +50 -25
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +50 -25
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +69 -29
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-MtS2reel.d.cts → MobileServerFailureError-BeCCNShj.d.cts} +2 -2
- package/dist/{MobileServerFailureError-MtS2reel.d.cts.map → MobileServerFailureError-BeCCNShj.d.cts.map} +1 -1
- package/dist/{MobileServerFailureError-C9iqNsxI.d.ts → MobileServerFailureError-hHv28weI.d.ts} +2 -2
- package/dist/{MobileServerFailureError-C9iqNsxI.d.ts.map → MobileServerFailureError-hHv28weI.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-DyKCK34Y.d.cts → buildSignedMobileRequest-DcEMKU_4.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-DyKCK34Y.d.cts.map → buildSignedMobileRequest-DcEMKU_4.d.cts.map} +1 -1
- package/dist/{buildSignedMobileRequest-BR-KJhIF.d.ts → buildSignedMobileRequest-DlTMvoXR.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-BR-KJhIF.d.ts.map → buildSignedMobileRequest-DlTMvoXR.d.ts.map} +1 -1
- package/dist/{canonicalize-Bv6UIAbR.d.ts → canonicalize-BOZlflI3.d.ts} +2 -2
- package/dist/canonicalize-BOZlflI3.d.ts.map +1 -0
- package/dist/{canonicalize-CWh3XZzj.d.cts → canonicalize-BvCozzvJ.d.cts} +2 -2
- package/dist/canonicalize-BvCozzvJ.d.cts.map +1 -0
- package/dist/{clientTypes-DOpUcu80.d.cts → clientTypes-KpHlCDGZ.d.cts} +75 -49
- package/dist/clientTypes-KpHlCDGZ.d.cts.map +1 -0
- package/dist/{clientTypes-BUn5_OzK.d.ts → clientTypes-XRI41VdC.d.ts} +75 -49
- package/dist/clientTypes-XRI41VdC.d.ts.map +1 -0
- package/dist/dataMappers.cjs +56 -17
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +33 -13
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +33 -13
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +53 -17
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-CJ6BoayT.d.cts → eip712MethodByType-DyAmzH7b.d.cts} +2 -2
- package/dist/eip712MethodByType-DyAmzH7b.d.cts.map +1 -0
- package/dist/{eip712MethodByType-Dx4mvgni.d.ts → eip712MethodByType-qSSAF6i2.d.ts} +2 -2
- package/dist/eip712MethodByType-qSSAF6i2.d.ts.map +1 -0
- package/dist/feed-BrgkFqP3.d.cts +23 -0
- package/dist/feed-BrgkFqP3.d.cts.map +1 -0
- package/dist/feed-DcbhLoo1.d.ts +23 -0
- package/dist/feed-DcbhLoo1.d.ts.map +1 -0
- package/dist/index-BVVgDSdq.d.cts +1 -0
- package/dist/index-BVVgDSdq.d.ts +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +2 -2
- package/dist/{mobileErrorCodes-vD6rbFuF.d.ts → mobileErrorCodes-CdwX6QTO.d.cts} +3 -3
- package/dist/{mobileErrorCodes-vD6rbFuF.d.cts.map → mobileErrorCodes-CdwX6QTO.d.cts.map} +1 -1
- package/dist/{mobileErrorCodes-vD6rbFuF.d.cts → mobileErrorCodes-CdwX6QTO.d.ts} +3 -3
- package/dist/{mobileErrorCodes-vD6rbFuF.d.ts.map → mobileErrorCodes-CdwX6QTO.d.ts.map} +1 -1
- package/dist/{payloadHash-CdkF2Ocr.d.cts → payloadHash-BgGSZock.d.cts} +2 -2
- package/dist/payloadHash-BgGSZock.d.cts.map +1 -0
- package/dist/{payloadHash-HD29K77M.d.ts → payloadHash-Bi6upCLQ.d.ts} +2 -2
- package/dist/payloadHash-Bi6upCLQ.d.ts.map +1 -0
- package/dist/{serverExecuteTypes-5JyyIXRK.d.ts → serverExecuteTypes-DuCWe_H_.d.cts} +7 -14
- package/dist/{serverExecuteTypes-CHrQ9Rtq.d.cts.map → serverExecuteTypes-DuCWe_H_.d.cts.map} +1 -1
- package/dist/{serverExecuteTypes-CHrQ9Rtq.d.cts → serverExecuteTypes-usJ6HMJv.d.ts} +7 -14
- package/dist/{serverExecuteTypes-5JyyIXRK.d.ts.map → serverExecuteTypes-usJ6HMJv.d.ts.map} +1 -1
- package/dist/{serverModelTypes-CGUZCi0y.d.ts → serverModelTypes-CTHMNIQS.d.cts} +16 -14
- package/dist/serverModelTypes-CTHMNIQS.d.cts.map +1 -0
- package/dist/{serverModelTypes-CGUZCi0y.d.cts → serverModelTypes-CTHMNIQS.d.ts} +16 -14
- package/dist/serverModelTypes-CTHMNIQS.d.ts.map +1 -0
- package/dist/{serverResponseGuards-i1njcYKN.d.cts → serverResponseGuards-CzmldAad.d.cts} +2 -2
- package/dist/{serverResponseGuards-i1njcYKN.d.cts.map → serverResponseGuards-CzmldAad.d.cts.map} +1 -1
- package/dist/{serverResponseGuards-Bvw8ltYJ.d.ts → serverResponseGuards-Dvkbjp2_.d.ts} +2 -2
- package/dist/{serverResponseGuards-Bvw8ltYJ.d.ts.map → serverResponseGuards-Dvkbjp2_.d.ts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +4 -2
- package/dist/signing/canonicalize.cjs.map +1 -1
- package/dist/signing/canonicalize.d.cts +1 -1
- package/dist/signing/canonicalize.d.ts +1 -1
- package/dist/signing/canonicalize.js +4 -2
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.d.cts +1 -1
- package/dist/signing/eip712MethodByType.d.ts +1 -1
- package/dist/signing/index.d.cts +5 -5
- package/dist/signing/index.d.ts +5 -5
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/types.d.cts +1 -1
- package/dist/signing/types.d.ts +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.d.cts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/mobileErrorCodes.cjs +2 -2
- package/dist/types/mobileErrorCodes.cjs.map +1 -1
- package/dist/types/mobileErrorCodes.d.cts +1 -1
- package/dist/types/mobileErrorCodes.d.ts +1 -1
- package/dist/types/mobileErrorCodes.js +2 -2
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.d.cts +1 -1
- package/dist/types/serverRequestTypes.d.ts +1 -1
- package/dist/{types-C9YE4EIt.d.cts → types-CByl_NyJ.d.ts} +49 -18
- package/dist/types-CByl_NyJ.d.ts.map +1 -0
- package/dist/{types-Cwy1y_9x.d.ts → types-CR5iaKR4.d.cts} +49 -18
- package/dist/types-CR5iaKR4.d.cts.map +1 -0
- package/dist/utils/feed.cjs +9 -0
- package/dist/utils/feed.cjs.map +1 -1
- package/dist/utils/feed.d.cts +2 -2
- package/dist/utils/feed.d.ts +2 -2
- package/dist/utils/feed.js +9 -1
- package/dist/utils/feed.js.map +1 -1
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/serverResponseGuards.d.cts +1 -1
- package/dist/utils/serverResponseGuards.d.ts +1 -1
- package/package.json +3 -3
- package/src/MobileClient.ts +82 -34
- package/src/dataMappers.test.ts +408 -9
- package/src/dataMappers.ts +76 -23
- package/src/signing/canonicalize.ts +6 -0
- package/src/signing/signing.test.ts +51 -0
- package/src/signing/types.ts +4 -0
- package/src/socialFeed.test.ts +53 -28
- package/src/types/clientTypes.ts +82 -47
- package/src/types/mobileErrorCodes.ts +2 -2
- package/src/types/serverExecuteTypes.ts +4 -12
- package/src/types/serverModelTypes.ts +19 -13
- package/src/types/serverQueryTypes.ts +32 -4
- package/src/types/serverRequestTypes.ts +20 -12
- package/src/utils/feed.ts +13 -0
- package/dist/MobileClient-M4oC4lrX.cjs.map +0 -1
- package/dist/canonicalize-Bv6UIAbR.d.ts.map +0 -1
- package/dist/canonicalize-CWh3XZzj.d.cts.map +0 -1
- package/dist/clientTypes-BUn5_OzK.d.ts.map +0 -1
- package/dist/clientTypes-DOpUcu80.d.cts.map +0 -1
- package/dist/eip712MethodByType-CJ6BoayT.d.cts.map +0 -1
- package/dist/eip712MethodByType-Dx4mvgni.d.ts.map +0 -1
- package/dist/feed-DErOLaoY.d.cts +0 -16
- package/dist/feed-DErOLaoY.d.cts.map +0 -1
- package/dist/feed-DErOLaoY.d.ts +0 -16
- package/dist/feed-DErOLaoY.d.ts.map +0 -1
- package/dist/payloadHash-CdkF2Ocr.d.cts.map +0 -1
- package/dist/payloadHash-HD29K77M.d.ts.map +0 -1
- package/dist/serverModelTypes-CGUZCi0y.d.cts.map +0 -1
- package/dist/serverModelTypes-CGUZCi0y.d.ts.map +0 -1
- package/dist/types-C9YE4EIt.d.cts.map +0 -1
- package/dist/types-Cwy1y_9x.d.ts.map +0 -1
package/dist/dataMappers.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { A as MobileServerNotificationSubscriptionsResponse, B as MobileServerSocialFeedCommentsResponse, E as MobileServerNotificationInboxV2Response, F as MobileServerRegisteredWalletResponse, G as MobileServerSocialFeedPositionResolutionResponse, H as MobileServerSocialFeedItemResponse, I as MobileServerSearchProfilesResponse, J as
|
|
4
|
-
import { _ as MobileServerSocialFeedPresenceResponse, c as MobileServerFollowMutationResponse, f as MobileServerSocialFeedCommentResponse, h as MobileServerSocialFeedLikeResponse, o as MobileServerFollowBatchResponse, p as MobileServerSocialFeedDrawingMutationResponse, t as MobileServerAvatarUploadResponse
|
|
1
|
+
import { $ as MobileServerSocialFeedImage, A as MobileServerNotificationPreferences, F as MobileServerSocialFeedActionCandidate, Ft as MobileSocialFeedMention, G as MobileServerSocialFeedCompactCard, I as MobileServerSocialFeedActionMarker, K as MobileServerSocialFeedContentBase, L as MobileServerSocialFeedAuthor, M as MobileServerNotificationSettings, N as MobileServerProductEvent, O as MobileServerNotificationPayloadV2, P as MobileServerProfile, Q as MobileServerSocialFeedHistoryTake, R as MobileServerSocialFeedCandle, St as MobileServerSocialFeedUploadedImage, U as MobileServerSocialFeedCommentGroup, X as MobileServerSocialFeedHistoryMetrics, _ as MobileServerAvatarPreset, _t as MobileServerSocialFeedTradeRow, at as MobileServerSocialFeedMarket, bt as MobileServerSocialFeedTradingContext, ct as MobileServerSocialFeedPositionCard, dt as MobileServerSocialFeedPost, ft as MobileServerSocialFeedPublishablePosition, gt as MobileServerSocialFeedTradeCard, ht as MobileServerSocialFeedTimelineEntry, it as MobileServerSocialFeedItemPatch, j as MobileServerNotificationRoute, mt as MobileServerSocialFeedReply, nt as MobileServerSocialFeedItem, ot as MobileServerSocialFeedPnl, pt as MobileServerSocialFeedReadSession, q as MobileServerSocialFeedDrawing, rt as MobileServerSocialFeedItemBase, st as MobileServerSocialFeedPositionAction, tt as MobileServerSocialFeedInteraction, ut as MobileServerSocialFeedPositionPatch, v as MobileServerAvatarSelection, vt as MobileServerSocialFeedTradeRowBase, xt as MobileServerSocialFeedTradingTarget, yt as MobileServerSocialFeedTraderBadge } from "./serverModelTypes-CTHMNIQS.cjs";
|
|
2
|
+
import { $ as MobileNotificationPayloadV2, $t as MobileSocialFeedItem, An as MobileSocialFeedTradeRowBase, At as MobileSocialFeedCandle, Bt as MobileSocialFeedCompactCard, Cn as MobileSocialFeedReadParams, Dn as MobileSocialFeedTopTradersPage, Dt as MobileSocialFeedActionMarker, En as MobileSocialFeedTimelineEntry, Et as MobileSocialFeedActionCandidate, Fn as MobileSocialFeedUploadedImage, G as MobileFollowListPage, Gn as SearchMobileProfilesParams, Ht as MobileSocialFeedDrawing, In as MobileSocialFeedWatchers, It as MobileSocialFeedCommentGroup, K as MobileFollowMutationResult, M as MobileAvatarSelection, Mn as MobileSocialFeedTradingContext, N as MobileAvatarUpload, Nn as MobileSocialFeedTradingTarget, On as MobileSocialFeedTradeCard, Ot as MobileSocialFeedActionResolutionResult, Pn as MobileSocialFeedUpdates, Q as MobileNotificationInboxV2, Qt as MobileSocialFeedInteraction, Rt as MobileSocialFeedCommentResult, Sn as MobileSocialFeedRankedPage, Tn as MobileSocialFeedReply, U as MobileFollowBatchResultItem, Ut as MobileSocialFeedDrawingMutationResult, V as MobileFeedPage, Vt as MobileSocialFeedContentBase, Wt as MobileSocialFeedDrawingResult, Xt as MobileSocialFeedImage, Y as MobileNotificationCapabilities, Yt as MobileSocialFeedHistoryTake, _n as MobileSocialFeedPositionThoughtsPage, _t as MobileRegisteredWallet, an as MobileSocialFeedMarket, at as MobileNotificationSettingsV2, bn as MobileSocialFeedPresence, c as GetMobileFollowListParams, cn as MobileSocialFeedPnl, dn as MobileSocialFeedPositionChart, dt as MobileProfilesInclude, en as MobileSocialFeedItemBase, fn as MobileSocialFeedPositionHistory, ft as MobilePublicProfile, gn as MobileSocialFeedPositionThought, hn as MobileSocialFeedPositionResolutionResult, in as MobileSocialFeedListParams, it as MobileNotificationSettings, j as MobileAvatarPreset, jn as MobileSocialFeedTraderBadge, kn as MobileSocialFeedTradeRow, kt as MobileSocialFeedAuthor, ln as MobileSocialFeedPositionAction, lt as MobileProductEvent, mn as MobileSocialFeedPositionPatch, nn as MobileSocialFeedItemResponse, nt as MobileNotificationRegistrationV2, on as MobileSocialFeedMentionParams, ot as MobileNotificationSubscriptions, qt as MobileSocialFeedHistoryMetrics, rn as MobileSocialFeedLikeResult, rt as MobileNotificationRoute, sn as MobileSocialFeedPage, st as MobileNotificationSubscriptionsUpdate, tn as MobileSocialFeedItemPatch, tt as MobileNotificationPreferences, un as MobileSocialFeedPositionCard, ut as MobileProfileSearchPage, vn as MobileSocialFeedPositionsPage, wn as MobileSocialFeedReadSession, xn as MobileSocialFeedPublishablePosition, yn as MobileSocialFeedPost, zt as MobileSocialFeedCommentsPage } from "./clientTypes-KpHlCDGZ.cjs";
|
|
3
|
+
import { $ as MobileServerSocialFeedWatchersResponse, A as MobileServerNotificationSubscriptionsResponse, B as MobileServerSocialFeedCommentsResponse, E as MobileServerNotificationInboxV2Response, F as MobileServerRegisteredWalletResponse, G as MobileServerSocialFeedPositionResolutionResponse, H as MobileServerSocialFeedItemResponse, I as MobileServerSearchProfilesResponse, J as MobileServerSocialFeedPositionsResponse, K as MobileServerSocialFeedPositionThought, O as MobileServerNotificationRegistrationV2Response, Q as MobileServerSocialFeedUpdatesResponse, T as MobileServerFollowListResponse, U as MobileServerSocialFeedPositionChartResponse, V as MobileServerSocialFeedDrawingResponse, W as MobileServerSocialFeedPositionHistoryResponse, X as MobileServerSocialFeedResponse, Y as MobileServerSocialFeedRankedResponse, Z as MobileServerSocialFeedTopTradersResponse, _ as MobileServerSearchProfilesRequest, b as MobileServerSocialFeedListParams, c as MobileServerNotificationSubscriptionsUpdate, h as MobileServerRegisterExpoTokenV2Params, k as MobileServerNotificationSettingsV2Response, l as MobileServerProfilesInclude, q as MobileServerSocialFeedPositionThoughtsResponse, s as MobileServerFollowListRequest, w as MobileServerFeedResponse, x as MobileServerSocialFeedReadParams, z as MobileServerSocialFeedActionResolutionResponse } from "./types-CR5iaKR4.cjs";
|
|
4
|
+
import { _ as MobileServerSocialFeedPresenceResponse, c as MobileServerFollowMutationResponse, f as MobileServerSocialFeedCommentResponse, h as MobileServerSocialFeedLikeResponse, o as MobileServerFollowBatchResponse, p as MobileServerSocialFeedDrawingMutationResponse, t as MobileServerAvatarUploadResponse } from "./serverExecuteTypes-DuCWe_H_.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/dataMappers.d.ts
|
|
7
7
|
/**
|
|
@@ -174,6 +174,12 @@ declare function mapMobileSocialFeedInteraction(server: MobileServerSocialFeedIn
|
|
|
174
174
|
* @param server - The service response.
|
|
175
175
|
* @returns The mapped feed image.
|
|
176
176
|
*/
|
|
177
|
+
declare function mapMobileSocialFeedUploadedImage(server: MobileServerSocialFeedUploadedImage): MobileSocialFeedUploadedImage;
|
|
178
|
+
/**
|
|
179
|
+
* Maps either protected upload metadata or an external URL without inventing metadata.
|
|
180
|
+
* @param server - The service response.
|
|
181
|
+
* @returns The mapped uploaded image or external URL.
|
|
182
|
+
*/
|
|
177
183
|
declare function mapMobileSocialFeedImage(server: MobileServerSocialFeedImage): MobileSocialFeedImage;
|
|
178
184
|
/**
|
|
179
185
|
* Maps common item metadata and server capabilities.
|
|
@@ -380,9 +386,15 @@ declare function mapMobileSocialFeedDrawingResult(server: MobileServerSocialFeed
|
|
|
380
386
|
*/
|
|
381
387
|
declare function mapMobileSocialFeedDrawingMutationResult(server: MobileServerSocialFeedDrawingMutationResponse): MobileSocialFeedDrawingMutationResult;
|
|
382
388
|
/**
|
|
383
|
-
* Maps
|
|
389
|
+
* Maps a top-level comment and its complete flat descendants without sorting or dropping content.
|
|
390
|
+
* @param server - A comment group from the service thread snapshot.
|
|
391
|
+
* @returns The mapped top-level comment with each descendant's original parent relationship.
|
|
392
|
+
*/
|
|
393
|
+
declare function mapMobileSocialFeedCommentGroup(server: MobileServerSocialFeedCommentGroup): MobileSocialFeedCommentGroup;
|
|
394
|
+
/**
|
|
395
|
+
* Maps complete comment groups in server order and the actual returned session.
|
|
384
396
|
* @param server - Service payload with its original wire fields.
|
|
385
|
-
* @returns Mapped
|
|
397
|
+
* @returns Mapped groups, whole-thread counts, bidirectional cursors, nullable anchor, and reading session.
|
|
386
398
|
*/
|
|
387
399
|
declare function mapMobileSocialFeedCommentsPage(server: MobileServerSocialFeedCommentsResponse): MobileSocialFeedCommentsPage;
|
|
388
400
|
/**
|
|
@@ -397,12 +409,6 @@ declare function mapMobileSocialFeedCommentResult(server: MobileServerSocialFeed
|
|
|
397
409
|
* @returns The applied like state, authoritative count, and item ID/version after the mutation.
|
|
398
410
|
*/
|
|
399
411
|
declare function mapMobileSocialFeedLikeResult(server: MobileServerSocialFeedLikeResponse): MobileSocialFeedLikeResult;
|
|
400
|
-
/**
|
|
401
|
-
* Maps exposure deduplication results without adding timestamps.
|
|
402
|
-
* @param server - Service payload with its original wire fields.
|
|
403
|
-
* @returns Newly accepted and duplicate item ID lists without inventing an observation timestamp.
|
|
404
|
-
*/
|
|
405
|
-
declare function mapMobileSocialFeedViewsResult(server: MobileServerSocialFeedViewsResponse): MobileSocialFeedViewsResult;
|
|
406
412
|
/**
|
|
407
413
|
* Maps a published history take without treating unknown kinds as posts.
|
|
408
414
|
* @param server - The published service item.
|
|
@@ -442,6 +448,20 @@ declare function mapMobileSocialFeedWatchers(server: MobileServerSocialFeedWatch
|
|
|
442
448
|
* @returns Visitor count and public previews with heartbeat/lease durations in seconds, without an observation timestamp.
|
|
443
449
|
*/
|
|
444
450
|
declare function mapMobileSocialFeedPresence(server: MobileServerSocialFeedPresenceResponse): MobileSocialFeedPresence;
|
|
451
|
+
/**
|
|
452
|
+
* Maps a published thought, keeping its guaranteed analysis flag and drawing.
|
|
453
|
+
* @param server - Service payload with its original wire fields.
|
|
454
|
+
* @returns The mapped post or trade card with a non-null drawing.
|
|
455
|
+
* @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported take kind.
|
|
456
|
+
*/
|
|
457
|
+
declare function mapMobileSocialFeedPositionThought(server: MobileServerSocialFeedPositionThought): MobileSocialFeedPositionThought;
|
|
458
|
+
/**
|
|
459
|
+
* Maps a thoughts page in server order, preserving empty pages with continuation cursors.
|
|
460
|
+
* @param server - Service payload with its original wire fields.
|
|
461
|
+
* @returns Thoughts, the next cursor, and the position reading session.
|
|
462
|
+
* @throws {MobileUnsupportedFeedItemError} If an item is not a post or trade card.
|
|
463
|
+
*/
|
|
464
|
+
declare function mapMobileSocialFeedPositionThoughts(server: MobileServerSocialFeedPositionThoughtsResponse): MobileSocialFeedPositionThoughtsPage;
|
|
445
465
|
//#endregion
|
|
446
|
-
export { mapMobileAvatarPreset, mapMobileAvatarSelectionToServer, mapMobileAvatarUpload, mapMobileFeedPage, mapMobileFollowBatchResult, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationCapabilitiesToServer, mapMobileNotificationInboxV2, mapMobileNotificationPayloadV2, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileNotificationRegistrationV2, mapMobileNotificationRoute, mapMobileNotificationSettings, mapMobileNotificationSettingsToServer, mapMobileNotificationSettingsV2, mapMobileNotificationSubscriptions, mapMobileNotificationSubscriptionsUpdateToServer, mapMobileProductEventToServer, mapMobileProfileSearchPage, mapMobileProfileSearchParamsToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet, mapMobileSocialFeedActionCandidate, mapMobileSocialFeedActionMarker, mapMobileSocialFeedActionResolutionResult, mapMobileSocialFeedAuthor, mapMobileSocialFeedCandle, mapMobileSocialFeedCommentResult, mapMobileSocialFeedCommentsPage, mapMobileSocialFeedCompactCard, mapMobileSocialFeedContentBase, mapMobileSocialFeedDrawing, mapMobileSocialFeedDrawingMutationResult, mapMobileSocialFeedDrawingResult, mapMobileSocialFeedHistoryMetrics, mapMobileSocialFeedHistoryTake, mapMobileSocialFeedImage, mapMobileSocialFeedInteraction, mapMobileSocialFeedItem, mapMobileSocialFeedItemBase, mapMobileSocialFeedItemPatch, mapMobileSocialFeedItemResponse, mapMobileSocialFeedLikeResult, mapMobileSocialFeedListParamsToServer, mapMobileSocialFeedMarket, mapMobileSocialFeedMentionToServer, mapMobileSocialFeedPage, mapMobileSocialFeedPnl, mapMobileSocialFeedPositionAction, mapMobileSocialFeedPositionCard, mapMobileSocialFeedPositionChart, mapMobileSocialFeedPositionHistory, mapMobileSocialFeedPositionPatch, mapMobileSocialFeedPositionResolutionResult, mapMobileSocialFeedPositionsPage, mapMobileSocialFeedPost, mapMobileSocialFeedPresence, mapMobileSocialFeedPublishablePosition, mapMobileSocialFeedRankedPage, mapMobileSocialFeedReadParamsToServer, mapMobileSocialFeedReadSession, mapMobileSocialFeedReply, mapMobileSocialFeedTimelineEntry, mapMobileSocialFeedTopTradersPage, mapMobileSocialFeedTradeCard, mapMobileSocialFeedTradeRow, mapMobileSocialFeedTradeRowBase, mapMobileSocialFeedTraderBadge, mapMobileSocialFeedTradingContext, mapMobileSocialFeedTradingTarget, mapMobileSocialFeedUpdates,
|
|
466
|
+
export { mapMobileAvatarPreset, mapMobileAvatarSelectionToServer, mapMobileAvatarUpload, mapMobileFeedPage, mapMobileFollowBatchResult, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationCapabilitiesToServer, mapMobileNotificationInboxV2, mapMobileNotificationPayloadV2, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileNotificationRegistrationV2, mapMobileNotificationRoute, mapMobileNotificationSettings, mapMobileNotificationSettingsToServer, mapMobileNotificationSettingsV2, mapMobileNotificationSubscriptions, mapMobileNotificationSubscriptionsUpdateToServer, mapMobileProductEventToServer, mapMobileProfileSearchPage, mapMobileProfileSearchParamsToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet, mapMobileSocialFeedActionCandidate, mapMobileSocialFeedActionMarker, mapMobileSocialFeedActionResolutionResult, mapMobileSocialFeedAuthor, mapMobileSocialFeedCandle, mapMobileSocialFeedCommentGroup, mapMobileSocialFeedCommentResult, mapMobileSocialFeedCommentsPage, mapMobileSocialFeedCompactCard, mapMobileSocialFeedContentBase, mapMobileSocialFeedDrawing, mapMobileSocialFeedDrawingMutationResult, mapMobileSocialFeedDrawingResult, mapMobileSocialFeedHistoryMetrics, mapMobileSocialFeedHistoryTake, mapMobileSocialFeedImage, mapMobileSocialFeedInteraction, mapMobileSocialFeedItem, mapMobileSocialFeedItemBase, mapMobileSocialFeedItemPatch, mapMobileSocialFeedItemResponse, mapMobileSocialFeedLikeResult, mapMobileSocialFeedListParamsToServer, mapMobileSocialFeedMarket, mapMobileSocialFeedMentionToServer, mapMobileSocialFeedPage, mapMobileSocialFeedPnl, mapMobileSocialFeedPositionAction, mapMobileSocialFeedPositionCard, mapMobileSocialFeedPositionChart, mapMobileSocialFeedPositionHistory, mapMobileSocialFeedPositionPatch, mapMobileSocialFeedPositionResolutionResult, mapMobileSocialFeedPositionThought, mapMobileSocialFeedPositionThoughts, mapMobileSocialFeedPositionsPage, mapMobileSocialFeedPost, mapMobileSocialFeedPresence, mapMobileSocialFeedPublishablePosition, mapMobileSocialFeedRankedPage, mapMobileSocialFeedReadParamsToServer, mapMobileSocialFeedReadSession, mapMobileSocialFeedReply, mapMobileSocialFeedTimelineEntry, mapMobileSocialFeedTopTradersPage, mapMobileSocialFeedTradeCard, mapMobileSocialFeedTradeRow, mapMobileSocialFeedTradeRowBase, mapMobileSocialFeedTraderBadge, mapMobileSocialFeedTradingContext, mapMobileSocialFeedTradingTarget, mapMobileSocialFeedUpdates, mapMobileSocialFeedUploadedImage, mapMobileSocialFeedWatchers };
|
|
447
467
|
//# sourceMappingURL=dataMappers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataMappers.d.cts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"dataMappers.d.cts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAqLA;;iBAAgB,qBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,kBAAkB;;;;iBAOL,qBAAA,CACd,MAAA,EAAQ,gCAAA,GACP,kBAAkB;;AATA;AAOrB;;iBAegB,mCAAA,CACd,MAAA,EAAQ,8CAAA,GACP,gCAAgC;;;;;iBAenB,yCAAA,CACd,YAAA,EAAc,8BAAA,GACb,qCAAqC;AAhCnB;AAarB;;;AAbqB,iBA4CL,6BAAA,CACd,MAAA,EAAQ,gCAAA,GACP,0BAA0B;;;;;iBAkBb,qCAAA,CACd,QAAA,EAAU,0BAAA,GACT,gCAAgC;AApCnC;;;;AAAA,iBAsDgB,+BAAA,CACd,MAAA,EAAQ,0CAAA,GACP,4BAA4B;;;;AAtDS;iBAkExB,kCAAA,CACd,MAAA,EAAQ,6CAAA,GACP,+BAA+B;;;;;iBAalB,gDAAA,CACd,MAAA,EAAQ,qCAAA,GACP,2CAA2C;;;AArEjB;AAkB7B;;iBA6EgB,0BAAA,CACd,MAAA,EAAQ,6BAAA,GACP,uBAAuB;;;;;;iBAmBV,8BAAA,CACd,MAAA,EAAQ,iCAAA,GACP,2BAA2B;AAhF9B;;;;;AAAA,iBAgGgB,4BAAA,CACd,MAAA,EAAQ,uCAAA,GACP,yBAAyB;;;AAhGG;AAY/B;iBAqGgB,6BAAA,CACd,KAAA,EAAO,kBAAA,GACN,wBAAwB;;;;iBAcX,gCAAA,CACd,MAAA,EAAQ,qBAAA,UACP,2BAA2B;;;AArHI;AAalC;;iBAuHgB,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;;;iBA4CN,uBAAA,CACd,MAAA,EA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,MAAA,EAAQ,kCAAA,GACP,4BAA4B;AAljBR;AAevB;;;;AAfuB,iBA8jBP,+BAAA,CACd,MAAA,EAAQ,sCAAA,GACP,4BAA4B;;;;AA/iBF;AAa7B;iBAmjBgB,gCAAA,CACd,MAAA,EAAQ,qCAAA,GACP,6BAA6B;;;;;;iBAYhB,6BAAA,CACd,MAAA,EAAQ,kCAAA,GACP,0BAA0B;AAjkBI;AAsBjC;;;;;AAtBiC,iBAglBjB,8BAAA,CACd,MAAA,EAAQ,iCAAA,GACP,2BAA2B;;;AA1jBC;AAY/B;;;iBAgkBgB,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;;;;;AAhkBJ;AA8E5B;iBA+gBgB,kCAAA,CACd,MAAA,EAAQ,6CAAA,GACP,+BAA+B;;;;;;iBAwBlB,gCAAA,CACd,MAAA,EAAQ,2CAAA,GACP,6BAA6B;AAziBN;AAoB1B;;;;AApB0B,iBA+jBV,2BAAA,CACd,MAAA,EAAQ,sCAAA,GACP,wBAAwB;;;;AA3iBQ;AAenC;iBAyiBgB,2BAAA,CACd,MAAA,EAAQ,sCAAA,GACP,wBAAwB;;;;;;;iBAeX,kCAAA,CACd,MAAA,EAAQ,qCAAA,GACP,+BAA+B;AA5iBlC;;;;;;AAAA,iBA0jBgB,mCAAA,CACd,MAAA,EAAQ,8CAAA,GACP,oCAAoC"}
|
package/dist/dataMappers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { A as MobileServerNotificationSubscriptionsResponse, B as MobileServerSocialFeedCommentsResponse, E as MobileServerNotificationInboxV2Response, F as MobileServerRegisteredWalletResponse, G as MobileServerSocialFeedPositionResolutionResponse, H as MobileServerSocialFeedItemResponse, I as MobileServerSearchProfilesResponse, J as
|
|
4
|
-
import { _ as MobileServerSocialFeedPresenceResponse, c as MobileServerFollowMutationResponse, f as MobileServerSocialFeedCommentResponse, h as MobileServerSocialFeedLikeResponse, o as MobileServerFollowBatchResponse, p as MobileServerSocialFeedDrawingMutationResponse, t as MobileServerAvatarUploadResponse
|
|
1
|
+
import { $ as MobileServerSocialFeedImage, A as MobileServerNotificationPreferences, F as MobileServerSocialFeedActionCandidate, Ft as MobileSocialFeedMention, G as MobileServerSocialFeedCompactCard, I as MobileServerSocialFeedActionMarker, K as MobileServerSocialFeedContentBase, L as MobileServerSocialFeedAuthor, M as MobileServerNotificationSettings, N as MobileServerProductEvent, O as MobileServerNotificationPayloadV2, P as MobileServerProfile, Q as MobileServerSocialFeedHistoryTake, R as MobileServerSocialFeedCandle, St as MobileServerSocialFeedUploadedImage, U as MobileServerSocialFeedCommentGroup, X as MobileServerSocialFeedHistoryMetrics, _ as MobileServerAvatarPreset, _t as MobileServerSocialFeedTradeRow, at as MobileServerSocialFeedMarket, bt as MobileServerSocialFeedTradingContext, ct as MobileServerSocialFeedPositionCard, dt as MobileServerSocialFeedPost, ft as MobileServerSocialFeedPublishablePosition, gt as MobileServerSocialFeedTradeCard, ht as MobileServerSocialFeedTimelineEntry, it as MobileServerSocialFeedItemPatch, j as MobileServerNotificationRoute, mt as MobileServerSocialFeedReply, nt as MobileServerSocialFeedItem, ot as MobileServerSocialFeedPnl, pt as MobileServerSocialFeedReadSession, q as MobileServerSocialFeedDrawing, rt as MobileServerSocialFeedItemBase, st as MobileServerSocialFeedPositionAction, tt as MobileServerSocialFeedInteraction, ut as MobileServerSocialFeedPositionPatch, v as MobileServerAvatarSelection, vt as MobileServerSocialFeedTradeRowBase, xt as MobileServerSocialFeedTradingTarget, yt as MobileServerSocialFeedTraderBadge } from "./serverModelTypes-CTHMNIQS.js";
|
|
2
|
+
import { $ as MobileNotificationPayloadV2, $t as MobileSocialFeedItem, An as MobileSocialFeedTradeRowBase, At as MobileSocialFeedCandle, Bt as MobileSocialFeedCompactCard, Cn as MobileSocialFeedReadParams, Dn as MobileSocialFeedTopTradersPage, Dt as MobileSocialFeedActionMarker, En as MobileSocialFeedTimelineEntry, Et as MobileSocialFeedActionCandidate, Fn as MobileSocialFeedUploadedImage, G as MobileFollowListPage, Gn as SearchMobileProfilesParams, Ht as MobileSocialFeedDrawing, In as MobileSocialFeedWatchers, It as MobileSocialFeedCommentGroup, K as MobileFollowMutationResult, M as MobileAvatarSelection, Mn as MobileSocialFeedTradingContext, N as MobileAvatarUpload, Nn as MobileSocialFeedTradingTarget, On as MobileSocialFeedTradeCard, Ot as MobileSocialFeedActionResolutionResult, Pn as MobileSocialFeedUpdates, Q as MobileNotificationInboxV2, Qt as MobileSocialFeedInteraction, Rt as MobileSocialFeedCommentResult, Sn as MobileSocialFeedRankedPage, Tn as MobileSocialFeedReply, U as MobileFollowBatchResultItem, Ut as MobileSocialFeedDrawingMutationResult, V as MobileFeedPage, Vt as MobileSocialFeedContentBase, Wt as MobileSocialFeedDrawingResult, Xt as MobileSocialFeedImage, Y as MobileNotificationCapabilities, Yt as MobileSocialFeedHistoryTake, _n as MobileSocialFeedPositionThoughtsPage, _t as MobileRegisteredWallet, an as MobileSocialFeedMarket, at as MobileNotificationSettingsV2, bn as MobileSocialFeedPresence, c as GetMobileFollowListParams, cn as MobileSocialFeedPnl, dn as MobileSocialFeedPositionChart, dt as MobileProfilesInclude, en as MobileSocialFeedItemBase, fn as MobileSocialFeedPositionHistory, ft as MobilePublicProfile, gn as MobileSocialFeedPositionThought, hn as MobileSocialFeedPositionResolutionResult, in as MobileSocialFeedListParams, it as MobileNotificationSettings, j as MobileAvatarPreset, jn as MobileSocialFeedTraderBadge, kn as MobileSocialFeedTradeRow, kt as MobileSocialFeedAuthor, ln as MobileSocialFeedPositionAction, lt as MobileProductEvent, mn as MobileSocialFeedPositionPatch, nn as MobileSocialFeedItemResponse, nt as MobileNotificationRegistrationV2, on as MobileSocialFeedMentionParams, ot as MobileNotificationSubscriptions, qt as MobileSocialFeedHistoryMetrics, rn as MobileSocialFeedLikeResult, rt as MobileNotificationRoute, sn as MobileSocialFeedPage, st as MobileNotificationSubscriptionsUpdate, tn as MobileSocialFeedItemPatch, tt as MobileNotificationPreferences, un as MobileSocialFeedPositionCard, ut as MobileProfileSearchPage, vn as MobileSocialFeedPositionsPage, wn as MobileSocialFeedReadSession, xn as MobileSocialFeedPublishablePosition, yn as MobileSocialFeedPost, zt as MobileSocialFeedCommentsPage } from "./clientTypes-XRI41VdC.js";
|
|
3
|
+
import { $ as MobileServerSocialFeedWatchersResponse, A as MobileServerNotificationSubscriptionsResponse, B as MobileServerSocialFeedCommentsResponse, E as MobileServerNotificationInboxV2Response, F as MobileServerRegisteredWalletResponse, G as MobileServerSocialFeedPositionResolutionResponse, H as MobileServerSocialFeedItemResponse, I as MobileServerSearchProfilesResponse, J as MobileServerSocialFeedPositionsResponse, K as MobileServerSocialFeedPositionThought, O as MobileServerNotificationRegistrationV2Response, Q as MobileServerSocialFeedUpdatesResponse, T as MobileServerFollowListResponse, U as MobileServerSocialFeedPositionChartResponse, V as MobileServerSocialFeedDrawingResponse, W as MobileServerSocialFeedPositionHistoryResponse, X as MobileServerSocialFeedResponse, Y as MobileServerSocialFeedRankedResponse, Z as MobileServerSocialFeedTopTradersResponse, _ as MobileServerSearchProfilesRequest, b as MobileServerSocialFeedListParams, c as MobileServerNotificationSubscriptionsUpdate, h as MobileServerRegisterExpoTokenV2Params, k as MobileServerNotificationSettingsV2Response, l as MobileServerProfilesInclude, q as MobileServerSocialFeedPositionThoughtsResponse, s as MobileServerFollowListRequest, w as MobileServerFeedResponse, x as MobileServerSocialFeedReadParams, z as MobileServerSocialFeedActionResolutionResponse } from "./types-CByl_NyJ.js";
|
|
4
|
+
import { _ as MobileServerSocialFeedPresenceResponse, c as MobileServerFollowMutationResponse, f as MobileServerSocialFeedCommentResponse, h as MobileServerSocialFeedLikeResponse, o as MobileServerFollowBatchResponse, p as MobileServerSocialFeedDrawingMutationResponse, t as MobileServerAvatarUploadResponse } from "./serverExecuteTypes-usJ6HMJv.js";
|
|
5
5
|
|
|
6
6
|
//#region src/dataMappers.d.ts
|
|
7
7
|
/**
|
|
@@ -174,6 +174,12 @@ declare function mapMobileSocialFeedInteraction(server: MobileServerSocialFeedIn
|
|
|
174
174
|
* @param server - The service response.
|
|
175
175
|
* @returns The mapped feed image.
|
|
176
176
|
*/
|
|
177
|
+
declare function mapMobileSocialFeedUploadedImage(server: MobileServerSocialFeedUploadedImage): MobileSocialFeedUploadedImage;
|
|
178
|
+
/**
|
|
179
|
+
* Maps either protected upload metadata or an external URL without inventing metadata.
|
|
180
|
+
* @param server - The service response.
|
|
181
|
+
* @returns The mapped uploaded image or external URL.
|
|
182
|
+
*/
|
|
177
183
|
declare function mapMobileSocialFeedImage(server: MobileServerSocialFeedImage): MobileSocialFeedImage;
|
|
178
184
|
/**
|
|
179
185
|
* Maps common item metadata and server capabilities.
|
|
@@ -380,9 +386,15 @@ declare function mapMobileSocialFeedDrawingResult(server: MobileServerSocialFeed
|
|
|
380
386
|
*/
|
|
381
387
|
declare function mapMobileSocialFeedDrawingMutationResult(server: MobileServerSocialFeedDrawingMutationResponse): MobileSocialFeedDrawingMutationResult;
|
|
382
388
|
/**
|
|
383
|
-
* Maps
|
|
389
|
+
* Maps a top-level comment and its complete flat descendants without sorting or dropping content.
|
|
390
|
+
* @param server - A comment group from the service thread snapshot.
|
|
391
|
+
* @returns The mapped top-level comment with each descendant's original parent relationship.
|
|
392
|
+
*/
|
|
393
|
+
declare function mapMobileSocialFeedCommentGroup(server: MobileServerSocialFeedCommentGroup): MobileSocialFeedCommentGroup;
|
|
394
|
+
/**
|
|
395
|
+
* Maps complete comment groups in server order and the actual returned session.
|
|
384
396
|
* @param server - Service payload with its original wire fields.
|
|
385
|
-
* @returns Mapped
|
|
397
|
+
* @returns Mapped groups, whole-thread counts, bidirectional cursors, nullable anchor, and reading session.
|
|
386
398
|
*/
|
|
387
399
|
declare function mapMobileSocialFeedCommentsPage(server: MobileServerSocialFeedCommentsResponse): MobileSocialFeedCommentsPage;
|
|
388
400
|
/**
|
|
@@ -397,12 +409,6 @@ declare function mapMobileSocialFeedCommentResult(server: MobileServerSocialFeed
|
|
|
397
409
|
* @returns The applied like state, authoritative count, and item ID/version after the mutation.
|
|
398
410
|
*/
|
|
399
411
|
declare function mapMobileSocialFeedLikeResult(server: MobileServerSocialFeedLikeResponse): MobileSocialFeedLikeResult;
|
|
400
|
-
/**
|
|
401
|
-
* Maps exposure deduplication results without adding timestamps.
|
|
402
|
-
* @param server - Service payload with its original wire fields.
|
|
403
|
-
* @returns Newly accepted and duplicate item ID lists without inventing an observation timestamp.
|
|
404
|
-
*/
|
|
405
|
-
declare function mapMobileSocialFeedViewsResult(server: MobileServerSocialFeedViewsResponse): MobileSocialFeedViewsResult;
|
|
406
412
|
/**
|
|
407
413
|
* Maps a published history take without treating unknown kinds as posts.
|
|
408
414
|
* @param server - The published service item.
|
|
@@ -442,6 +448,20 @@ declare function mapMobileSocialFeedWatchers(server: MobileServerSocialFeedWatch
|
|
|
442
448
|
* @returns Visitor count and public previews with heartbeat/lease durations in seconds, without an observation timestamp.
|
|
443
449
|
*/
|
|
444
450
|
declare function mapMobileSocialFeedPresence(server: MobileServerSocialFeedPresenceResponse): MobileSocialFeedPresence;
|
|
451
|
+
/**
|
|
452
|
+
* Maps a published thought, keeping its guaranteed analysis flag and drawing.
|
|
453
|
+
* @param server - Service payload with its original wire fields.
|
|
454
|
+
* @returns The mapped post or trade card with a non-null drawing.
|
|
455
|
+
* @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported take kind.
|
|
456
|
+
*/
|
|
457
|
+
declare function mapMobileSocialFeedPositionThought(server: MobileServerSocialFeedPositionThought): MobileSocialFeedPositionThought;
|
|
458
|
+
/**
|
|
459
|
+
* Maps a thoughts page in server order, preserving empty pages with continuation cursors.
|
|
460
|
+
* @param server - Service payload with its original wire fields.
|
|
461
|
+
* @returns Thoughts, the next cursor, and the position reading session.
|
|
462
|
+
* @throws {MobileUnsupportedFeedItemError} If an item is not a post or trade card.
|
|
463
|
+
*/
|
|
464
|
+
declare function mapMobileSocialFeedPositionThoughts(server: MobileServerSocialFeedPositionThoughtsResponse): MobileSocialFeedPositionThoughtsPage;
|
|
445
465
|
//#endregion
|
|
446
|
-
export { mapMobileAvatarPreset, mapMobileAvatarSelectionToServer, mapMobileAvatarUpload, mapMobileFeedPage, mapMobileFollowBatchResult, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationCapabilitiesToServer, mapMobileNotificationInboxV2, mapMobileNotificationPayloadV2, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileNotificationRegistrationV2, mapMobileNotificationRoute, mapMobileNotificationSettings, mapMobileNotificationSettingsToServer, mapMobileNotificationSettingsV2, mapMobileNotificationSubscriptions, mapMobileNotificationSubscriptionsUpdateToServer, mapMobileProductEventToServer, mapMobileProfileSearchPage, mapMobileProfileSearchParamsToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet, mapMobileSocialFeedActionCandidate, mapMobileSocialFeedActionMarker, mapMobileSocialFeedActionResolutionResult, mapMobileSocialFeedAuthor, mapMobileSocialFeedCandle, mapMobileSocialFeedCommentResult, mapMobileSocialFeedCommentsPage, mapMobileSocialFeedCompactCard, mapMobileSocialFeedContentBase, mapMobileSocialFeedDrawing, mapMobileSocialFeedDrawingMutationResult, mapMobileSocialFeedDrawingResult, mapMobileSocialFeedHistoryMetrics, mapMobileSocialFeedHistoryTake, mapMobileSocialFeedImage, mapMobileSocialFeedInteraction, mapMobileSocialFeedItem, mapMobileSocialFeedItemBase, mapMobileSocialFeedItemPatch, mapMobileSocialFeedItemResponse, mapMobileSocialFeedLikeResult, mapMobileSocialFeedListParamsToServer, mapMobileSocialFeedMarket, mapMobileSocialFeedMentionToServer, mapMobileSocialFeedPage, mapMobileSocialFeedPnl, mapMobileSocialFeedPositionAction, mapMobileSocialFeedPositionCard, mapMobileSocialFeedPositionChart, mapMobileSocialFeedPositionHistory, mapMobileSocialFeedPositionPatch, mapMobileSocialFeedPositionResolutionResult, mapMobileSocialFeedPositionsPage, mapMobileSocialFeedPost, mapMobileSocialFeedPresence, mapMobileSocialFeedPublishablePosition, mapMobileSocialFeedRankedPage, mapMobileSocialFeedReadParamsToServer, mapMobileSocialFeedReadSession, mapMobileSocialFeedReply, mapMobileSocialFeedTimelineEntry, mapMobileSocialFeedTopTradersPage, mapMobileSocialFeedTradeCard, mapMobileSocialFeedTradeRow, mapMobileSocialFeedTradeRowBase, mapMobileSocialFeedTraderBadge, mapMobileSocialFeedTradingContext, mapMobileSocialFeedTradingTarget, mapMobileSocialFeedUpdates,
|
|
466
|
+
export { mapMobileAvatarPreset, mapMobileAvatarSelectionToServer, mapMobileAvatarUpload, mapMobileFeedPage, mapMobileFollowBatchResult, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationCapabilitiesToServer, mapMobileNotificationInboxV2, mapMobileNotificationPayloadV2, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileNotificationRegistrationV2, mapMobileNotificationRoute, mapMobileNotificationSettings, mapMobileNotificationSettingsToServer, mapMobileNotificationSettingsV2, mapMobileNotificationSubscriptions, mapMobileNotificationSubscriptionsUpdateToServer, mapMobileProductEventToServer, mapMobileProfileSearchPage, mapMobileProfileSearchParamsToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet, mapMobileSocialFeedActionCandidate, mapMobileSocialFeedActionMarker, mapMobileSocialFeedActionResolutionResult, mapMobileSocialFeedAuthor, mapMobileSocialFeedCandle, mapMobileSocialFeedCommentGroup, mapMobileSocialFeedCommentResult, mapMobileSocialFeedCommentsPage, mapMobileSocialFeedCompactCard, mapMobileSocialFeedContentBase, mapMobileSocialFeedDrawing, mapMobileSocialFeedDrawingMutationResult, mapMobileSocialFeedDrawingResult, mapMobileSocialFeedHistoryMetrics, mapMobileSocialFeedHistoryTake, mapMobileSocialFeedImage, mapMobileSocialFeedInteraction, mapMobileSocialFeedItem, mapMobileSocialFeedItemBase, mapMobileSocialFeedItemPatch, mapMobileSocialFeedItemResponse, mapMobileSocialFeedLikeResult, mapMobileSocialFeedListParamsToServer, mapMobileSocialFeedMarket, mapMobileSocialFeedMentionToServer, mapMobileSocialFeedPage, mapMobileSocialFeedPnl, mapMobileSocialFeedPositionAction, mapMobileSocialFeedPositionCard, mapMobileSocialFeedPositionChart, mapMobileSocialFeedPositionHistory, mapMobileSocialFeedPositionPatch, mapMobileSocialFeedPositionResolutionResult, mapMobileSocialFeedPositionThought, mapMobileSocialFeedPositionThoughts, mapMobileSocialFeedPositionsPage, mapMobileSocialFeedPost, mapMobileSocialFeedPresence, mapMobileSocialFeedPublishablePosition, mapMobileSocialFeedRankedPage, mapMobileSocialFeedReadParamsToServer, mapMobileSocialFeedReadSession, mapMobileSocialFeedReply, mapMobileSocialFeedTimelineEntry, mapMobileSocialFeedTopTradersPage, mapMobileSocialFeedTradeCard, mapMobileSocialFeedTradeRow, mapMobileSocialFeedTradeRowBase, mapMobileSocialFeedTraderBadge, mapMobileSocialFeedTradingContext, mapMobileSocialFeedTradingTarget, mapMobileSocialFeedUpdates, mapMobileSocialFeedUploadedImage, mapMobileSocialFeedWatchers };
|
|
447
467
|
//# sourceMappingURL=dataMappers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAqLA;;iBAAgB,qBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,kBAAkB;;;;iBAOL,qBAAA,CACd,MAAA,EAAQ,gCAAA,GACP,kBAAkB;;AATA;AAOrB;;iBAegB,mCAAA,CACd,MAAA,EAAQ,8CAAA,GACP,gCAAgC;;;;;iBAenB,yCAAA,CACd,YAAA,EAAc,8BAAA,GACb,qCAAqC;AAhCnB;AAarB;;;AAbqB,iBA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A+B;;;;;;iBAwBlB,gCAAA,CACd,MAAA,EAAQ,2CAAA,GACP,6BAA6B;AAziBN;AAoB1B;;;;AApB0B,iBA+jBV,2BAAA,CACd,MAAA,EAAQ,sCAAA,GACP,wBAAwB;;;;AA3iBQ;AAenC;iBAyiBgB,2BAAA,CACd,MAAA,EAAQ,sCAAA,GACP,wBAAwB;;;;;;;iBAeX,kCAAA,CACd,MAAA,EAAQ,qCAAA,GACP,+BAA+B;AA5iBlC;;;;;;AAAA,iBA0jBgB,mCAAA,CACd,MAAA,EAAQ,8CAAA,GACP,oCAAoC"}
|
package/dist/dataMappers.js
CHANGED
|
@@ -513,7 +513,7 @@ function mapMobileSocialFeedInteraction(server) {
|
|
|
513
513
|
* @param server - The service response.
|
|
514
514
|
* @returns The mapped feed image.
|
|
515
515
|
*/
|
|
516
|
-
function
|
|
516
|
+
function mapMobileSocialFeedUploadedImage(server) {
|
|
517
517
|
return {
|
|
518
518
|
imageId: server.image_id,
|
|
519
519
|
url: server.url,
|
|
@@ -529,6 +529,15 @@ function mapMobileSocialFeedImage(server) {
|
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
531
|
/**
|
|
532
|
+
* Maps either protected upload metadata or an external URL without inventing metadata.
|
|
533
|
+
* @param server - The service response.
|
|
534
|
+
* @returns The mapped uploaded image or external URL.
|
|
535
|
+
*/
|
|
536
|
+
function mapMobileSocialFeedImage(server) {
|
|
537
|
+
if ("image_id" in server) return mapMobileSocialFeedUploadedImage(server);
|
|
538
|
+
return { url: server.url };
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
532
541
|
* Maps common item metadata and server capabilities.
|
|
533
542
|
* @param server - The service response.
|
|
534
543
|
* @returns The mapped social feed item base.
|
|
@@ -649,7 +658,6 @@ function mapMobileSocialFeedReadSession(server) {
|
|
|
649
658
|
sessionId: server.session_id,
|
|
650
659
|
mode: server.mode,
|
|
651
660
|
expiresAtMs: server.expires_at_ms,
|
|
652
|
-
viewTracking: { mode: server.view_tracking.mode },
|
|
653
661
|
updateCursor: server.update_cursor,
|
|
654
662
|
viewerToken: server.viewer_token
|
|
655
663
|
};
|
|
@@ -1055,14 +1063,26 @@ function mapMobileSocialFeedDrawingMutationResult(server) {
|
|
|
1055
1063
|
};
|
|
1056
1064
|
}
|
|
1057
1065
|
/**
|
|
1058
|
-
* Maps
|
|
1066
|
+
* Maps a top-level comment and its complete flat descendants without sorting or dropping content.
|
|
1067
|
+
* @param server - A comment group from the service thread snapshot.
|
|
1068
|
+
* @returns The mapped top-level comment with each descendant's original parent relationship.
|
|
1069
|
+
*/
|
|
1070
|
+
function mapMobileSocialFeedCommentGroup(server) {
|
|
1071
|
+
return {
|
|
1072
|
+
...mapMobileSocialFeedReply(server),
|
|
1073
|
+
replies: server.replies.map(mapMobileSocialFeedReply)
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Maps complete comment groups in server order and the actual returned session.
|
|
1059
1078
|
* @param server - Service payload with its original wire fields.
|
|
1060
|
-
* @returns Mapped
|
|
1079
|
+
* @returns Mapped groups, whole-thread counts, bidirectional cursors, nullable anchor, and reading session.
|
|
1061
1080
|
*/
|
|
1062
1081
|
function mapMobileSocialFeedCommentsPage(server) {
|
|
1063
1082
|
return {
|
|
1064
|
-
comments: server.comments.map(
|
|
1083
|
+
comments: server.comments.map(mapMobileSocialFeedCommentGroup),
|
|
1065
1084
|
totalCount: server.total_count,
|
|
1085
|
+
topLevelCount: server.top_level_count,
|
|
1066
1086
|
nextCursor: server.next_cursor,
|
|
1067
1087
|
previousCursor: server.previous_cursor,
|
|
1068
1088
|
anchorReplyId: server.anchor_reply_id,
|
|
@@ -1094,17 +1114,6 @@ function mapMobileSocialFeedLikeResult(server) {
|
|
|
1094
1114
|
};
|
|
1095
1115
|
}
|
|
1096
1116
|
/**
|
|
1097
|
-
* Maps exposure deduplication results without adding timestamps.
|
|
1098
|
-
* @param server - Service payload with its original wire fields.
|
|
1099
|
-
* @returns Newly accepted and duplicate item ID lists without inventing an observation timestamp.
|
|
1100
|
-
*/
|
|
1101
|
-
function mapMobileSocialFeedViewsResult(server) {
|
|
1102
|
-
return {
|
|
1103
|
-
acceptedItemIds: server.accepted_item_ids,
|
|
1104
|
-
duplicateItemIds: server.duplicate_item_ids
|
|
1105
|
-
};
|
|
1106
|
-
}
|
|
1107
|
-
/**
|
|
1108
1117
|
* Maps a published history take without treating unknown kinds as posts.
|
|
1109
1118
|
* @param server - The published service item.
|
|
1110
1119
|
* @returns The mapped post or trade card.
|
|
@@ -1148,6 +1157,7 @@ function mapMobileSocialFeedTimelineEntry(server) {
|
|
|
1148
1157
|
*/
|
|
1149
1158
|
function mapMobileSocialFeedPositionHistory(server) {
|
|
1150
1159
|
return {
|
|
1160
|
+
owner: mapMobileSocialFeedAuthor(server.owner),
|
|
1151
1161
|
position: {
|
|
1152
1162
|
...mapMobileSocialFeedPositionCard(server.position),
|
|
1153
1163
|
...mapMobileSocialFeedHistoryMetrics(server.position)
|
|
@@ -1206,7 +1216,33 @@ function mapMobileSocialFeedPresence(server) {
|
|
|
1206
1216
|
expiresInSeconds: server.expires_in_seconds
|
|
1207
1217
|
};
|
|
1208
1218
|
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Maps a published thought, keeping its guaranteed analysis flag and drawing.
|
|
1221
|
+
* @param server - Service payload with its original wire fields.
|
|
1222
|
+
* @returns The mapped post or trade card with a non-null drawing.
|
|
1223
|
+
* @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported take kind.
|
|
1224
|
+
*/
|
|
1225
|
+
function mapMobileSocialFeedPositionThought(server) {
|
|
1226
|
+
return {
|
|
1227
|
+
...mapMobileSocialFeedHistoryTake(server),
|
|
1228
|
+
hasAnalysis: server.has_analysis,
|
|
1229
|
+
drawing: mapMobileSocialFeedDrawing(server.drawing)
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Maps a thoughts page in server order, preserving empty pages with continuation cursors.
|
|
1234
|
+
* @param server - Service payload with its original wire fields.
|
|
1235
|
+
* @returns Thoughts, the next cursor, and the position reading session.
|
|
1236
|
+
* @throws {MobileUnsupportedFeedItemError} If an item is not a post or trade card.
|
|
1237
|
+
*/
|
|
1238
|
+
function mapMobileSocialFeedPositionThoughts(server) {
|
|
1239
|
+
return {
|
|
1240
|
+
items: server.items.map(mapMobileSocialFeedPositionThought),
|
|
1241
|
+
nextCursor: server.next_cursor,
|
|
1242
|
+
readSession: mapMobileSocialFeedReadSession(server.read_session)
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1209
1245
|
//#endregion
|
|
1210
|
-
export { mapMobileAvatarPreset, mapMobileAvatarSelectionToServer, mapMobileAvatarUpload, mapMobileFeedPage, mapMobileFollowBatchResult, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationCapabilitiesToServer, mapMobileNotificationInboxV2, mapMobileNotificationPayloadV2, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileNotificationRegistrationV2, mapMobileNotificationRoute, mapMobileNotificationSettings, mapMobileNotificationSettingsToServer, mapMobileNotificationSettingsV2, mapMobileNotificationSubscriptions, mapMobileNotificationSubscriptionsUpdateToServer, mapMobileProductEventToServer, mapMobileProfileSearchPage, mapMobileProfileSearchParamsToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet, mapMobileSocialFeedActionCandidate, mapMobileSocialFeedActionMarker, mapMobileSocialFeedActionResolutionResult, mapMobileSocialFeedAuthor, mapMobileSocialFeedCandle, mapMobileSocialFeedCommentResult, mapMobileSocialFeedCommentsPage, mapMobileSocialFeedCompactCard, mapMobileSocialFeedContentBase, mapMobileSocialFeedDrawing, mapMobileSocialFeedDrawingMutationResult, mapMobileSocialFeedDrawingResult, mapMobileSocialFeedHistoryMetrics, mapMobileSocialFeedHistoryTake, mapMobileSocialFeedImage, mapMobileSocialFeedInteraction, mapMobileSocialFeedItem, mapMobileSocialFeedItemBase, mapMobileSocialFeedItemPatch, mapMobileSocialFeedItemResponse, mapMobileSocialFeedLikeResult, mapMobileSocialFeedListParamsToServer, mapMobileSocialFeedMarket, mapMobileSocialFeedMentionToServer, mapMobileSocialFeedPage, mapMobileSocialFeedPnl, mapMobileSocialFeedPositionAction, mapMobileSocialFeedPositionCard, mapMobileSocialFeedPositionChart, mapMobileSocialFeedPositionHistory, mapMobileSocialFeedPositionPatch, mapMobileSocialFeedPositionResolutionResult, mapMobileSocialFeedPositionsPage, mapMobileSocialFeedPost, mapMobileSocialFeedPresence, mapMobileSocialFeedPublishablePosition, mapMobileSocialFeedRankedPage, mapMobileSocialFeedReadParamsToServer, mapMobileSocialFeedReadSession, mapMobileSocialFeedReply, mapMobileSocialFeedTimelineEntry, mapMobileSocialFeedTopTradersPage, mapMobileSocialFeedTradeCard, mapMobileSocialFeedTradeRow, mapMobileSocialFeedTradeRowBase, mapMobileSocialFeedTraderBadge, mapMobileSocialFeedTradingContext, mapMobileSocialFeedTradingTarget, mapMobileSocialFeedUpdates,
|
|
1246
|
+
export { mapMobileAvatarPreset, mapMobileAvatarSelectionToServer, mapMobileAvatarUpload, mapMobileFeedPage, mapMobileFollowBatchResult, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationCapabilitiesToServer, mapMobileNotificationInboxV2, mapMobileNotificationPayloadV2, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileNotificationRegistrationV2, mapMobileNotificationRoute, mapMobileNotificationSettings, mapMobileNotificationSettingsToServer, mapMobileNotificationSettingsV2, mapMobileNotificationSubscriptions, mapMobileNotificationSubscriptionsUpdateToServer, mapMobileProductEventToServer, mapMobileProfileSearchPage, mapMobileProfileSearchParamsToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet, mapMobileSocialFeedActionCandidate, mapMobileSocialFeedActionMarker, mapMobileSocialFeedActionResolutionResult, mapMobileSocialFeedAuthor, mapMobileSocialFeedCandle, mapMobileSocialFeedCommentGroup, mapMobileSocialFeedCommentResult, mapMobileSocialFeedCommentsPage, mapMobileSocialFeedCompactCard, mapMobileSocialFeedContentBase, mapMobileSocialFeedDrawing, mapMobileSocialFeedDrawingMutationResult, mapMobileSocialFeedDrawingResult, mapMobileSocialFeedHistoryMetrics, mapMobileSocialFeedHistoryTake, mapMobileSocialFeedImage, mapMobileSocialFeedInteraction, mapMobileSocialFeedItem, mapMobileSocialFeedItemBase, mapMobileSocialFeedItemPatch, mapMobileSocialFeedItemResponse, mapMobileSocialFeedLikeResult, mapMobileSocialFeedListParamsToServer, mapMobileSocialFeedMarket, mapMobileSocialFeedMentionToServer, mapMobileSocialFeedPage, mapMobileSocialFeedPnl, mapMobileSocialFeedPositionAction, mapMobileSocialFeedPositionCard, mapMobileSocialFeedPositionChart, mapMobileSocialFeedPositionHistory, mapMobileSocialFeedPositionPatch, mapMobileSocialFeedPositionResolutionResult, mapMobileSocialFeedPositionThought, mapMobileSocialFeedPositionThoughts, mapMobileSocialFeedPositionsPage, mapMobileSocialFeedPost, mapMobileSocialFeedPresence, mapMobileSocialFeedPublishablePosition, mapMobileSocialFeedRankedPage, mapMobileSocialFeedReadParamsToServer, mapMobileSocialFeedReadSession, mapMobileSocialFeedReply, mapMobileSocialFeedTimelineEntry, mapMobileSocialFeedTopTradersPage, mapMobileSocialFeedTradeCard, mapMobileSocialFeedTradeRow, mapMobileSocialFeedTradeRowBase, mapMobileSocialFeedTraderBadge, mapMobileSocialFeedTradingContext, mapMobileSocialFeedTradingTarget, mapMobileSocialFeedUpdates, mapMobileSocialFeedUploadedImage, mapMobileSocialFeedWatchers };
|
|
1211
1247
|
|
|
1212
1248
|
//# sourceMappingURL=dataMappers.js.map
|