@oxyfoo/whymeet-types 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Models/Badge.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export type BadgeCategory = 'verification' | 'seniority' | 'hosting' | 'participation';
|
|
2
2
|
export type BadgeKey = 'verified_profile' | 'veteran' | 'first_event_joined' | 'first_event_hosted' | 'host_5' | 'participant_10' | 'host_10' | 'host_25' | 'participant_50' | 'host_50' | 'host_100';
|
|
3
|
+
export type BadgeRewardType = 'promotional_offer';
|
|
4
|
+
export type BadgePlatform = 'ios' | 'android';
|
|
3
5
|
export interface BadgeDefinition {
|
|
4
6
|
key: BadgeKey;
|
|
5
7
|
emoji: string;
|
|
6
8
|
category: BadgeCategory;
|
|
7
9
|
threshold: number | null;
|
|
8
10
|
displayOrder: number;
|
|
9
|
-
rewardType:
|
|
11
|
+
rewardType: BadgeRewardType | null;
|
|
10
12
|
rewardOfferIdApple: string | null;
|
|
11
13
|
rewardOfferIdGoogle: string | null;
|
|
12
14
|
rewardDescription: string | null;
|
|
@@ -14,11 +16,14 @@ export interface BadgeDefinition {
|
|
|
14
16
|
export interface UserBadge {
|
|
15
17
|
key: BadgeKey;
|
|
16
18
|
emoji: string;
|
|
19
|
+
category: BadgeCategory;
|
|
20
|
+
displayOrder: number;
|
|
17
21
|
earned: boolean;
|
|
18
22
|
earnedAt: string | null;
|
|
19
23
|
progress: number;
|
|
20
24
|
threshold: number | null;
|
|
21
|
-
rewardType:
|
|
25
|
+
rewardType: BadgeRewardType | null;
|
|
22
26
|
rewardDescription: string | null;
|
|
23
27
|
rewardClaimedAt: string | null;
|
|
28
|
+
rewardPendingAt: string | null;
|
|
24
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User } from './User.js';
|
|
2
|
-
export type MessageType = 'text' | 'user_joined' | 'user_left';
|
|
2
|
+
export type MessageType = 'text' | 'user_joined' | 'user_left' | 'shared_activity';
|
|
3
3
|
export interface Conversation {
|
|
4
4
|
id: string;
|
|
5
5
|
participant: User;
|
|
@@ -21,4 +21,5 @@ export interface Message {
|
|
|
21
21
|
timestamp: string;
|
|
22
22
|
read: boolean;
|
|
23
23
|
type: MessageType;
|
|
24
|
+
activityId?: string | null;
|
|
24
25
|
}
|
package/dist/Models/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type { PreferredPeriod } from './Availability.js';
|
|
|
21
21
|
export { PREFERRED_PERIODS } from './Availability.js';
|
|
22
22
|
export type { SubscriptionPlan, SubscriptionStatus, SubscriptionPlatform, UserSubscription, BoostPack, BoostSource, UserBoost, QuotaInfo, SearchQuotaInfo, SwipeQuotaInfo, ActivityQuotaInfo, UsageLimitConfig, PurchaseErrorCode } from './Subscription.js';
|
|
23
23
|
export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS, APP_CONFIG_KEYS } from './Subscription.js';
|
|
24
|
-
export type { BadgeCategory, BadgeKey, BadgeDefinition, UserBadge } from './Badge.js';
|
|
24
|
+
export type { BadgeCategory, BadgeKey, BadgeDefinition, UserBadge, BadgePlatform, BadgeRewardType } from './Badge.js';
|
|
25
25
|
export type { HostLevelKey, HostLevel, HostLevelDefinition } from './TrustScore.js';
|
|
26
26
|
export { HOST_LEVEL_KEYS, HOST_LEVELS, getHostLevel } from './TrustScore.js';
|
|
27
27
|
export type { EmailTypeKey, EmailTypeDescriptor, EmailScope, EmailDelivery, EmailLogStatus } from './EmailType.js';
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { BlockedUser } from '../Models/Block.js';
|
|
|
12
12
|
import type { Activity, ActivitySummary, ActivitySearchFilters } from '../Models/Activity.js';
|
|
13
13
|
import type { InterestCategoryKey } from '../Models/InterestCategory.js';
|
|
14
14
|
import type { Intention, IntentionSelection, IntentionCategory, IntentionCategoryKey, IntentionKey } from '../Models/Intention.js';
|
|
15
|
-
import type { UserBadge } from '../Models/Badge.js';
|
|
15
|
+
import type { BadgeKey, BadgePlatform, UserBadge } from '../Models/Badge.js';
|
|
16
16
|
import type { PlaceSuggestion, PlaceSuggestionLite } from '../Models/Place.js';
|
|
17
17
|
import type { AnalyticsClientEvent, AnalyticsEventName } from '../Models/Analytics.js';
|
|
18
18
|
export interface WSRequest_Handshake {
|
|
@@ -117,6 +117,14 @@ export interface WSRequest_SendMessage {
|
|
|
117
117
|
text: string;
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
+
export interface WSRequest_ShareActivity {
|
|
121
|
+
command: 'share-activity';
|
|
122
|
+
payload: {
|
|
123
|
+
activityId: string;
|
|
124
|
+
conversationIds: string[];
|
|
125
|
+
text?: string;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
120
128
|
export interface WSRequest_GetRequests {
|
|
121
129
|
command: 'get-requests';
|
|
122
130
|
payload: {
|
|
@@ -439,8 +447,17 @@ export interface WSRequest_GetUserBadges {
|
|
|
439
447
|
export interface WSRequest_ClaimBadgeReward {
|
|
440
448
|
command: 'claim-badge-reward';
|
|
441
449
|
payload: {
|
|
442
|
-
badgeKey:
|
|
443
|
-
platform:
|
|
450
|
+
badgeKey: BadgeKey;
|
|
451
|
+
platform: BadgePlatform;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
export interface WSRequest_ConfirmBadgeReward {
|
|
455
|
+
command: 'confirm-badge-reward';
|
|
456
|
+
payload: {
|
|
457
|
+
badgeKey: BadgeKey;
|
|
458
|
+
platform: BadgePlatform;
|
|
459
|
+
purchaseToken?: string;
|
|
460
|
+
success: boolean;
|
|
444
461
|
};
|
|
445
462
|
}
|
|
446
463
|
export interface WSRequest_ConfirmHostAttendance {
|
|
@@ -470,7 +487,7 @@ export interface WSRequest_AnalyticsIngest {
|
|
|
470
487
|
events: AnalyticsClientEvent<AnalyticsEventName>[];
|
|
471
488
|
};
|
|
472
489
|
}
|
|
473
|
-
export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetIntentionCatalog | WSRequest_GetIntentionCounts | WSRequest_GetIntentionPopularTags | WSRequest_Like | WSRequest_Skip | WSRequest_Search | WSRequest_GetConversations | WSRequest_GetMessages | WSRequest_SendMessage | WSRequest_GetRequests | WSRequest_AcceptRequest | WSRequest_DeclineRequest | WSRequest_GetNotifications | WSRequest_GetCounters | WSRequest_SubmitFeedback | WSRequest_MarkNotificationRead | WSRequest_BlockUser | WSRequest_ReportUser | WSRequest_Unmatch | WSRequest_GetSettings | WSRequest_UpdateSettings | WSRequest_TagSuggest | WSRequest_GetPreferences | WSRequest_UpdatePreferences | WSRequest_DeleteAccount | WSRequest_RegisterPushToken | WSRequest_GetSubscription | WSRequest_ValidateReceipt | WSRequest_GetSearchQuota | WSRequest_SearchWithToken | WSRequest_PreviewSearch | WSRequest_PurchaseBoost | WSRequest_GetBoostStatus | WSRequest_MarkRead | WSRequest_GetUserProfile | WSRequest_CreateActivity | WSRequest_UpdateActivity | WSRequest_CancelActivity | WSRequest_GetActivity | WSRequest_JoinActivity | WSRequest_LeaveActivity | WSRequest_GetActivities | WSRequest_GetActivityCounts | WSRequest_SearchActivities | WSRequest_SearchActivitiesWithToken | WSRequest_PreviewSearchActivities | WSRequest_GetCandidateActivities | WSRequest_GetPopularActivityTags | WSRequest_ReportActivity | WSRequest_GetMyActivities | WSRequest_GetBlockedUsers | WSRequest_UnblockUser | WSRequest_GetProfilePopularTags | WSRequest_GetRefinePopularTags | WSRequest_GetBadges | WSRequest_GetUserBadges | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve | WSRequest_AnalyticsIngest;
|
|
490
|
+
export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetIntentionCatalog | WSRequest_GetIntentionCounts | WSRequest_GetIntentionPopularTags | WSRequest_Like | WSRequest_Skip | WSRequest_Search | WSRequest_GetConversations | WSRequest_GetMessages | WSRequest_SendMessage | WSRequest_ShareActivity | WSRequest_GetRequests | WSRequest_AcceptRequest | WSRequest_DeclineRequest | WSRequest_GetNotifications | WSRequest_GetCounters | WSRequest_SubmitFeedback | WSRequest_MarkNotificationRead | WSRequest_BlockUser | WSRequest_ReportUser | WSRequest_Unmatch | WSRequest_GetSettings | WSRequest_UpdateSettings | WSRequest_TagSuggest | WSRequest_GetPreferences | WSRequest_UpdatePreferences | WSRequest_DeleteAccount | WSRequest_RegisterPushToken | WSRequest_GetSubscription | WSRequest_ValidateReceipt | WSRequest_GetSearchQuota | WSRequest_SearchWithToken | WSRequest_PreviewSearch | WSRequest_PurchaseBoost | WSRequest_GetBoostStatus | WSRequest_MarkRead | WSRequest_GetUserProfile | WSRequest_CreateActivity | WSRequest_UpdateActivity | WSRequest_CancelActivity | WSRequest_GetActivity | WSRequest_JoinActivity | WSRequest_LeaveActivity | WSRequest_GetActivities | WSRequest_GetActivityCounts | WSRequest_SearchActivities | WSRequest_SearchActivitiesWithToken | WSRequest_PreviewSearchActivities | WSRequest_GetCandidateActivities | WSRequest_GetPopularActivityTags | WSRequest_ReportActivity | WSRequest_GetMyActivities | WSRequest_GetBlockedUsers | WSRequest_UnblockUser | WSRequest_GetProfilePopularTags | WSRequest_GetRefinePopularTags | WSRequest_GetBadges | WSRequest_GetUserBadges | WSRequest_ConfirmBadgeReward | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve | WSRequest_AnalyticsIngest;
|
|
474
491
|
export type WSClientCommand = WSClientRequest['command'];
|
|
475
492
|
export interface WSResponse_Handshake {
|
|
476
493
|
command: 'handshake';
|
|
@@ -608,6 +625,15 @@ export interface WSResponse_SendMessage {
|
|
|
608
625
|
error: string;
|
|
609
626
|
};
|
|
610
627
|
}
|
|
628
|
+
export interface WSResponse_ShareActivity {
|
|
629
|
+
command: 'share-activity';
|
|
630
|
+
payload: {
|
|
631
|
+
messages: Message[];
|
|
632
|
+
failedConversationIds: string[];
|
|
633
|
+
} | {
|
|
634
|
+
error: string;
|
|
635
|
+
};
|
|
636
|
+
}
|
|
611
637
|
export interface WSResponse_GetRequests {
|
|
612
638
|
command: 'get-requests';
|
|
613
639
|
payload: {
|
|
@@ -1011,7 +1037,7 @@ export interface WSResponse_ClaimBadgeReward {
|
|
|
1011
1037
|
command: 'claim-badge-reward';
|
|
1012
1038
|
payload: {
|
|
1013
1039
|
offerId: string;
|
|
1014
|
-
platform:
|
|
1040
|
+
platform: BadgePlatform;
|
|
1015
1041
|
keyIdentifier?: string;
|
|
1016
1042
|
nonce?: string;
|
|
1017
1043
|
signature?: string;
|
|
@@ -1020,6 +1046,13 @@ export interface WSResponse_ClaimBadgeReward {
|
|
|
1020
1046
|
error: string;
|
|
1021
1047
|
};
|
|
1022
1048
|
}
|
|
1049
|
+
export interface WSResponse_ConfirmBadgeReward {
|
|
1050
|
+
command: 'confirm-badge-reward';
|
|
1051
|
+
payload: {
|
|
1052
|
+
confirmed: boolean;
|
|
1053
|
+
error?: string;
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1023
1056
|
export interface WSResponse_ConfirmHostAttendance {
|
|
1024
1057
|
command: 'confirm-host-attendance';
|
|
1025
1058
|
payload: {
|
|
@@ -1069,7 +1102,7 @@ export interface WSResponse_AnalyticsIngest {
|
|
|
1069
1102
|
error: string;
|
|
1070
1103
|
};
|
|
1071
1104
|
}
|
|
1072
|
-
export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetIntentionCatalog | WSResponse_GetIntentionCounts | WSResponse_GetIntentionPopularTags | WSResponse_Like | WSResponse_Skip | WSResponse_Search | WSResponse_GetConversations | WSResponse_GetMessages | WSResponse_SendMessage | WSResponse_GetRequests | WSResponse_AcceptRequest | WSResponse_DeclineRequest | WSResponse_SubmitFeedback | WSResponse_GetNotifications | WSResponse_GetCounters | WSResponse_MarkNotificationRead | WSResponse_BlockUser | WSResponse_ReportUser | WSResponse_Unmatch | WSResponse_GetSettings | WSResponse_UpdateSettings | WSResponse_TagSuggest | WSResponse_GetPreferences | WSResponse_UpdatePreferences | WSResponse_DeleteAccount | WSResponse_RegisterPushToken | WSResponse_GetSubscription | WSResponse_ValidateReceipt | WSResponse_GetSearchQuota | WSResponse_SearchWithToken | WSResponse_PreviewSearch | WSResponse_PurchaseBoost | WSResponse_GetBoostStatus | WSResponse_CreateActivity | WSResponse_UpdateActivity | WSResponse_CancelActivity | WSResponse_GetActivity | WSResponse_JoinActivity | WSResponse_LeaveActivity | WSResponse_GetActivities | WSResponse_GetActivityCounts | WSResponse_SearchActivities | WSResponse_SearchActivitiesWithToken | WSResponse_PreviewSearchActivities | WSResponse_GetCandidateActivities | WSResponse_GetPopularActivityTags | WSResponse_ReportActivity | WSResponse_GetMyActivities | WSResponse_MarkRead | WSResponse_GetUserProfile | WSResponse_GetBlockedUsers | WSResponse_UnblockUser | WSResponse_GetProfilePopularTags | WSResponse_GetRefinePopularTags | WSResponse_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve | WSResponse_AnalyticsIngest;
|
|
1105
|
+
export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetIntentionCatalog | WSResponse_GetIntentionCounts | WSResponse_GetIntentionPopularTags | WSResponse_Like | WSResponse_Skip | WSResponse_Search | WSResponse_GetConversations | WSResponse_GetMessages | WSResponse_SendMessage | WSResponse_ShareActivity | WSResponse_GetRequests | WSResponse_AcceptRequest | WSResponse_DeclineRequest | WSResponse_SubmitFeedback | WSResponse_GetNotifications | WSResponse_GetCounters | WSResponse_MarkNotificationRead | WSResponse_BlockUser | WSResponse_ReportUser | WSResponse_Unmatch | WSResponse_GetSettings | WSResponse_UpdateSettings | WSResponse_TagSuggest | WSResponse_GetPreferences | WSResponse_UpdatePreferences | WSResponse_DeleteAccount | WSResponse_RegisterPushToken | WSResponse_GetSubscription | WSResponse_ValidateReceipt | WSResponse_GetSearchQuota | WSResponse_SearchWithToken | WSResponse_PreviewSearch | WSResponse_PurchaseBoost | WSResponse_GetBoostStatus | WSResponse_CreateActivity | WSResponse_UpdateActivity | WSResponse_CancelActivity | WSResponse_GetActivity | WSResponse_JoinActivity | WSResponse_LeaveActivity | WSResponse_GetActivities | WSResponse_GetActivityCounts | WSResponse_SearchActivities | WSResponse_SearchActivitiesWithToken | WSResponse_PreviewSearchActivities | WSResponse_GetCandidateActivities | WSResponse_GetPopularActivityTags | WSResponse_ReportActivity | WSResponse_GetMyActivities | WSResponse_MarkRead | WSResponse_GetUserProfile | WSResponse_GetBlockedUsers | WSResponse_UnblockUser | WSResponse_GetProfilePopularTags | WSResponse_GetRefinePopularTags | WSResponse_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve | WSResponse_AnalyticsIngest;
|
|
1073
1106
|
export interface WSEvent_NewMessage {
|
|
1074
1107
|
event: 'new-message';
|
|
1075
1108
|
payload: {
|
|
@@ -1110,7 +1143,13 @@ export interface WSEvent_RateLimited {
|
|
|
1110
1143
|
message: string;
|
|
1111
1144
|
};
|
|
1112
1145
|
}
|
|
1113
|
-
export
|
|
1146
|
+
export interface WSEvent_BadgeUnlocked {
|
|
1147
|
+
event: 'badge-unlocked';
|
|
1148
|
+
payload: {
|
|
1149
|
+
badge: UserBadge;
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
export type WSServerEvent = WSEvent_NewMessage | WSEvent_NewMatch | WSEvent_Notification | WSEvent_Counters | WSEvent_MarkRead | WSEvent_Suspended | WSEvent_Banned | WSEvent_RateLimited | WSEvent_BadgeUnlocked;
|
|
1114
1153
|
export interface WSEnvelope<T = WSClientRequest | WSServerResponse | WSServerEvent> {
|
|
1115
1154
|
id: string;
|
|
1116
1155
|
timestamp: number;
|