@scalemule/sdk 0.0.72 → 0.0.74
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/index.d.mts +97 -1
- package/dist/index.d.ts +97 -1
- package/dist/index.js +43 -3
- package/dist/index.mjs +43 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5154,6 +5154,8 @@ interface CommunityMapReactionDefinition {
|
|
|
5154
5154
|
icon: string;
|
|
5155
5155
|
}
|
|
5156
5156
|
interface CommunityMapCollectionConfig {
|
|
5157
|
+
voting_enabled?: boolean;
|
|
5158
|
+
comments_enabled?: boolean;
|
|
5157
5159
|
title: string;
|
|
5158
5160
|
description: string;
|
|
5159
5161
|
kind: string;
|
|
@@ -5172,7 +5174,17 @@ interface CommunityMapCollectionConfig {
|
|
|
5172
5174
|
map_style_url?: string | null;
|
|
5173
5175
|
};
|
|
5174
5176
|
}
|
|
5177
|
+
interface CommunityMapSubmissionPolicy {
|
|
5178
|
+
version: string;
|
|
5179
|
+
text: string;
|
|
5180
|
+
guidelines: string;
|
|
5181
|
+
}
|
|
5182
|
+
interface CommunityMapConsent extends CommunityMapSubmissionPolicy {
|
|
5183
|
+
accepted: true;
|
|
5184
|
+
accepted_at: string;
|
|
5185
|
+
}
|
|
5175
5186
|
interface CommunityMapCollection {
|
|
5187
|
+
submission_policy?: CommunityMapSubmissionPolicy;
|
|
5176
5188
|
id: string;
|
|
5177
5189
|
slug: string;
|
|
5178
5190
|
revision: number;
|
|
@@ -5197,6 +5209,7 @@ interface CommunityMapPublicContent {
|
|
|
5197
5209
|
metadata: Record<string, string | number | boolean | null>;
|
|
5198
5210
|
}
|
|
5199
5211
|
interface CommunityMapMedia {
|
|
5212
|
+
content_type?: string;
|
|
5200
5213
|
id: string;
|
|
5201
5214
|
caption: string;
|
|
5202
5215
|
attribution: string;
|
|
@@ -5219,6 +5232,48 @@ interface CommunityMapPage<T> {
|
|
|
5219
5232
|
items: T[];
|
|
5220
5233
|
next_cursor: string | null;
|
|
5221
5234
|
}
|
|
5235
|
+
interface CommunityMapVote {
|
|
5236
|
+
value: -1 | 0 | 1;
|
|
5237
|
+
up_count: number;
|
|
5238
|
+
down_count: number;
|
|
5239
|
+
score: number;
|
|
5240
|
+
can_vote: boolean;
|
|
5241
|
+
}
|
|
5242
|
+
interface CommunityMapComment {
|
|
5243
|
+
id: string;
|
|
5244
|
+
body: string;
|
|
5245
|
+
author_name: string | null;
|
|
5246
|
+
parent_comment_id: string | null;
|
|
5247
|
+
depth: number;
|
|
5248
|
+
status: 'approved';
|
|
5249
|
+
created_at: string;
|
|
5250
|
+
updated_at: string;
|
|
5251
|
+
}
|
|
5252
|
+
interface CommunityMapCommentInput {
|
|
5253
|
+
body: string;
|
|
5254
|
+
author_name: string;
|
|
5255
|
+
parent_comment_id?: string | null;
|
|
5256
|
+
consent: {
|
|
5257
|
+
version: string;
|
|
5258
|
+
accepted: boolean;
|
|
5259
|
+
};
|
|
5260
|
+
}
|
|
5261
|
+
interface CommunityMapCommentPage<T = CommunityMapComment> {
|
|
5262
|
+
items: T[];
|
|
5263
|
+
next_page: number | null;
|
|
5264
|
+
}
|
|
5265
|
+
interface CommunityMapEditorialComment extends Omit<CommunityMapComment, 'status'> {
|
|
5266
|
+
status: 'pending' | 'approved' | 'spam' | 'deleted';
|
|
5267
|
+
revision: number;
|
|
5268
|
+
thread_id: string;
|
|
5269
|
+
target_type: 'community_map_collection' | 'community_map_feature';
|
|
5270
|
+
target_id: string;
|
|
5271
|
+
scope_type: 'community_map_collection';
|
|
5272
|
+
scope_id: string;
|
|
5273
|
+
author_user_id: string | null;
|
|
5274
|
+
author_email: string | null;
|
|
5275
|
+
consent?: CommunityMapConsent | null;
|
|
5276
|
+
}
|
|
5222
5277
|
interface CommunityMapFeatureQuery {
|
|
5223
5278
|
after?: string;
|
|
5224
5279
|
limit?: number;
|
|
@@ -5245,6 +5300,10 @@ interface CommunityMapProposal {
|
|
|
5245
5300
|
correction_for?: string | null;
|
|
5246
5301
|
}
|
|
5247
5302
|
interface CommunityMapSubmissionInput {
|
|
5303
|
+
consent: {
|
|
5304
|
+
version: string;
|
|
5305
|
+
accepted: boolean;
|
|
5306
|
+
};
|
|
5248
5307
|
area_id: string;
|
|
5249
5308
|
idempotency_key: string;
|
|
5250
5309
|
proposal: CommunityMapProposal;
|
|
@@ -5284,6 +5343,7 @@ interface CommunityMapEditorialFeature extends Omit<CommunityMapFeature, 'media'
|
|
|
5284
5343
|
}
|
|
5285
5344
|
/** Returned only by editorial endpoints after server-side authorization. */
|
|
5286
5345
|
interface CommunityMapPrivateSubmission {
|
|
5346
|
+
consent?: CommunityMapConsent | null;
|
|
5287
5347
|
id: string;
|
|
5288
5348
|
area_id: string;
|
|
5289
5349
|
feature_id: string | null;
|
|
@@ -5329,6 +5389,7 @@ interface CommunityMapPrivateReport {
|
|
|
5329
5389
|
created_at: string;
|
|
5330
5390
|
}
|
|
5331
5391
|
interface CommunityMapEditorialMedia extends CommunityMapMedia {
|
|
5392
|
+
consent?: CommunityMapConsent | null;
|
|
5332
5393
|
submission_id: string | null;
|
|
5333
5394
|
feature_id: string | null;
|
|
5334
5395
|
status: string;
|
|
@@ -5350,14 +5411,38 @@ declare class CommunityMapsService extends ServiceModule {
|
|
|
5350
5411
|
listFeatures(slug: string, query?: CommunityMapFeatureQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapFeature>>>;
|
|
5351
5412
|
getFeature(slug: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapFeature>>;
|
|
5352
5413
|
createSubmission(slug: string, data: CommunityMapSubmissionInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
|
|
5414
|
+
uploadMedia(slug: string, submission: string, file: File | Blob, fields: {
|
|
5415
|
+
caption: string;
|
|
5416
|
+
attribution: string;
|
|
5417
|
+
rights_confirmed: boolean;
|
|
5418
|
+
consent_version: string;
|
|
5419
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5420
|
+
id: string;
|
|
5421
|
+
status: string;
|
|
5422
|
+
}>>;
|
|
5423
|
+
/** @deprecated Use uploadMedia for photos, video and audio. Explicit publication permission is required. */
|
|
5353
5424
|
uploadPhoto(slug: string, submission: string, file: File | Blob, fields: {
|
|
5354
5425
|
caption: string;
|
|
5355
5426
|
attribution: string;
|
|
5356
5427
|
rights_confirmed: boolean;
|
|
5428
|
+
consent_version?: string;
|
|
5357
5429
|
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5358
5430
|
id: string;
|
|
5359
5431
|
status: string;
|
|
5360
5432
|
}>>;
|
|
5433
|
+
/** Read public totals and the signed-in reader's current vote. */
|
|
5434
|
+
getVote(slug: string, feature: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapVote>>;
|
|
5435
|
+
/** One vote per signed-in reader: 1 up, -1 down, 0 clear. */
|
|
5436
|
+
vote(slug: string, feature: string, value: -1 | 0 | 1, options?: RequestOptions): Promise<ApiResponse<CommunityMapVote>>;
|
|
5437
|
+
listComments(slug: string, query?: {
|
|
5438
|
+
feature_id?: string;
|
|
5439
|
+
page?: number;
|
|
5440
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapCommentPage>>;
|
|
5441
|
+
/** All Community Maps comments require editorial review, including authenticated replies. */
|
|
5442
|
+
createComment(slug: string, data: CommunityMapCommentInput, featureId?: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
5443
|
+
id: string;
|
|
5444
|
+
status: 'pending';
|
|
5445
|
+
}>>;
|
|
5361
5446
|
react(slug: string, feature: string, reaction: string, active?: boolean, options?: RequestOptions): Promise<ApiResponse<{
|
|
5362
5447
|
reaction: string;
|
|
5363
5448
|
active: boolean;
|
|
@@ -5374,6 +5459,16 @@ declare class CommunityMapsEditorialService extends ServiceModule {
|
|
|
5374
5459
|
constructor(client: ScaleMuleClient, applicationId?: string | undefined);
|
|
5375
5460
|
forApplication(id: string): CommunityMapsEditorialService;
|
|
5376
5461
|
private path;
|
|
5462
|
+
listComments(collection: string, query?: {
|
|
5463
|
+
feature_id?: string;
|
|
5464
|
+
page?: number;
|
|
5465
|
+
status?: CommunityMapEditorialComment['status'];
|
|
5466
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapCommentPage<CommunityMapEditorialComment>>>;
|
|
5467
|
+
reviewComment(collection: string, comment: string, data: {
|
|
5468
|
+
status: CommunityMapEditorialComment['status'];
|
|
5469
|
+
expected_revision: number;
|
|
5470
|
+
guidelines_reviewed?: boolean;
|
|
5471
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialComment>>;
|
|
5377
5472
|
listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialCollection>>>;
|
|
5378
5473
|
getCollection(id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialCollection>>;
|
|
5379
5474
|
createCollection(data: {
|
|
@@ -5424,6 +5519,7 @@ declare class CommunityMapsEditorialService extends ServiceModule {
|
|
|
5424
5519
|
reviewMedia(collection: string, id: string, data: {
|
|
5425
5520
|
expected_revision: number;
|
|
5426
5521
|
status: 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'REMOVED';
|
|
5522
|
+
guidelines_reviewed?: boolean;
|
|
5427
5523
|
feature_id?: string | null;
|
|
5428
5524
|
caption: string;
|
|
5429
5525
|
attribution: string;
|
|
@@ -8184,4 +8280,4 @@ declare class ScaleMule {
|
|
|
8184
8280
|
getClient(): ScaleMuleClient;
|
|
8185
8281
|
}
|
|
8186
8282
|
|
|
8187
|
-
export { type AcceptQuoteInput, type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapEditorialCollection, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionStatus, type CommunityMapView, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateLeadInput, type CreatePollInput, type CreateQuoteInput, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, type Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdatePollInput, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type VoteState, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
|
8283
|
+
export { type AcceptQuoteInput, type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapComment, type CommunityMapCommentInput, type CommunityMapCommentPage, type CommunityMapConsent, type CommunityMapEditorialCollection, type CommunityMapEditorialComment, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionPolicy, type CommunityMapSubmissionStatus, type CommunityMapView, type CommunityMapVote, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateLeadInput, type CreatePollInput, type CreateQuoteInput, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, type Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdatePollInput, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type VoteState, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
package/dist/index.d.ts
CHANGED
|
@@ -5154,6 +5154,8 @@ interface CommunityMapReactionDefinition {
|
|
|
5154
5154
|
icon: string;
|
|
5155
5155
|
}
|
|
5156
5156
|
interface CommunityMapCollectionConfig {
|
|
5157
|
+
voting_enabled?: boolean;
|
|
5158
|
+
comments_enabled?: boolean;
|
|
5157
5159
|
title: string;
|
|
5158
5160
|
description: string;
|
|
5159
5161
|
kind: string;
|
|
@@ -5172,7 +5174,17 @@ interface CommunityMapCollectionConfig {
|
|
|
5172
5174
|
map_style_url?: string | null;
|
|
5173
5175
|
};
|
|
5174
5176
|
}
|
|
5177
|
+
interface CommunityMapSubmissionPolicy {
|
|
5178
|
+
version: string;
|
|
5179
|
+
text: string;
|
|
5180
|
+
guidelines: string;
|
|
5181
|
+
}
|
|
5182
|
+
interface CommunityMapConsent extends CommunityMapSubmissionPolicy {
|
|
5183
|
+
accepted: true;
|
|
5184
|
+
accepted_at: string;
|
|
5185
|
+
}
|
|
5175
5186
|
interface CommunityMapCollection {
|
|
5187
|
+
submission_policy?: CommunityMapSubmissionPolicy;
|
|
5176
5188
|
id: string;
|
|
5177
5189
|
slug: string;
|
|
5178
5190
|
revision: number;
|
|
@@ -5197,6 +5209,7 @@ interface CommunityMapPublicContent {
|
|
|
5197
5209
|
metadata: Record<string, string | number | boolean | null>;
|
|
5198
5210
|
}
|
|
5199
5211
|
interface CommunityMapMedia {
|
|
5212
|
+
content_type?: string;
|
|
5200
5213
|
id: string;
|
|
5201
5214
|
caption: string;
|
|
5202
5215
|
attribution: string;
|
|
@@ -5219,6 +5232,48 @@ interface CommunityMapPage<T> {
|
|
|
5219
5232
|
items: T[];
|
|
5220
5233
|
next_cursor: string | null;
|
|
5221
5234
|
}
|
|
5235
|
+
interface CommunityMapVote {
|
|
5236
|
+
value: -1 | 0 | 1;
|
|
5237
|
+
up_count: number;
|
|
5238
|
+
down_count: number;
|
|
5239
|
+
score: number;
|
|
5240
|
+
can_vote: boolean;
|
|
5241
|
+
}
|
|
5242
|
+
interface CommunityMapComment {
|
|
5243
|
+
id: string;
|
|
5244
|
+
body: string;
|
|
5245
|
+
author_name: string | null;
|
|
5246
|
+
parent_comment_id: string | null;
|
|
5247
|
+
depth: number;
|
|
5248
|
+
status: 'approved';
|
|
5249
|
+
created_at: string;
|
|
5250
|
+
updated_at: string;
|
|
5251
|
+
}
|
|
5252
|
+
interface CommunityMapCommentInput {
|
|
5253
|
+
body: string;
|
|
5254
|
+
author_name: string;
|
|
5255
|
+
parent_comment_id?: string | null;
|
|
5256
|
+
consent: {
|
|
5257
|
+
version: string;
|
|
5258
|
+
accepted: boolean;
|
|
5259
|
+
};
|
|
5260
|
+
}
|
|
5261
|
+
interface CommunityMapCommentPage<T = CommunityMapComment> {
|
|
5262
|
+
items: T[];
|
|
5263
|
+
next_page: number | null;
|
|
5264
|
+
}
|
|
5265
|
+
interface CommunityMapEditorialComment extends Omit<CommunityMapComment, 'status'> {
|
|
5266
|
+
status: 'pending' | 'approved' | 'spam' | 'deleted';
|
|
5267
|
+
revision: number;
|
|
5268
|
+
thread_id: string;
|
|
5269
|
+
target_type: 'community_map_collection' | 'community_map_feature';
|
|
5270
|
+
target_id: string;
|
|
5271
|
+
scope_type: 'community_map_collection';
|
|
5272
|
+
scope_id: string;
|
|
5273
|
+
author_user_id: string | null;
|
|
5274
|
+
author_email: string | null;
|
|
5275
|
+
consent?: CommunityMapConsent | null;
|
|
5276
|
+
}
|
|
5222
5277
|
interface CommunityMapFeatureQuery {
|
|
5223
5278
|
after?: string;
|
|
5224
5279
|
limit?: number;
|
|
@@ -5245,6 +5300,10 @@ interface CommunityMapProposal {
|
|
|
5245
5300
|
correction_for?: string | null;
|
|
5246
5301
|
}
|
|
5247
5302
|
interface CommunityMapSubmissionInput {
|
|
5303
|
+
consent: {
|
|
5304
|
+
version: string;
|
|
5305
|
+
accepted: boolean;
|
|
5306
|
+
};
|
|
5248
5307
|
area_id: string;
|
|
5249
5308
|
idempotency_key: string;
|
|
5250
5309
|
proposal: CommunityMapProposal;
|
|
@@ -5284,6 +5343,7 @@ interface CommunityMapEditorialFeature extends Omit<CommunityMapFeature, 'media'
|
|
|
5284
5343
|
}
|
|
5285
5344
|
/** Returned only by editorial endpoints after server-side authorization. */
|
|
5286
5345
|
interface CommunityMapPrivateSubmission {
|
|
5346
|
+
consent?: CommunityMapConsent | null;
|
|
5287
5347
|
id: string;
|
|
5288
5348
|
area_id: string;
|
|
5289
5349
|
feature_id: string | null;
|
|
@@ -5329,6 +5389,7 @@ interface CommunityMapPrivateReport {
|
|
|
5329
5389
|
created_at: string;
|
|
5330
5390
|
}
|
|
5331
5391
|
interface CommunityMapEditorialMedia extends CommunityMapMedia {
|
|
5392
|
+
consent?: CommunityMapConsent | null;
|
|
5332
5393
|
submission_id: string | null;
|
|
5333
5394
|
feature_id: string | null;
|
|
5334
5395
|
status: string;
|
|
@@ -5350,14 +5411,38 @@ declare class CommunityMapsService extends ServiceModule {
|
|
|
5350
5411
|
listFeatures(slug: string, query?: CommunityMapFeatureQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapFeature>>>;
|
|
5351
5412
|
getFeature(slug: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapFeature>>;
|
|
5352
5413
|
createSubmission(slug: string, data: CommunityMapSubmissionInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
|
|
5414
|
+
uploadMedia(slug: string, submission: string, file: File | Blob, fields: {
|
|
5415
|
+
caption: string;
|
|
5416
|
+
attribution: string;
|
|
5417
|
+
rights_confirmed: boolean;
|
|
5418
|
+
consent_version: string;
|
|
5419
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5420
|
+
id: string;
|
|
5421
|
+
status: string;
|
|
5422
|
+
}>>;
|
|
5423
|
+
/** @deprecated Use uploadMedia for photos, video and audio. Explicit publication permission is required. */
|
|
5353
5424
|
uploadPhoto(slug: string, submission: string, file: File | Blob, fields: {
|
|
5354
5425
|
caption: string;
|
|
5355
5426
|
attribution: string;
|
|
5356
5427
|
rights_confirmed: boolean;
|
|
5428
|
+
consent_version?: string;
|
|
5357
5429
|
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5358
5430
|
id: string;
|
|
5359
5431
|
status: string;
|
|
5360
5432
|
}>>;
|
|
5433
|
+
/** Read public totals and the signed-in reader's current vote. */
|
|
5434
|
+
getVote(slug: string, feature: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapVote>>;
|
|
5435
|
+
/** One vote per signed-in reader: 1 up, -1 down, 0 clear. */
|
|
5436
|
+
vote(slug: string, feature: string, value: -1 | 0 | 1, options?: RequestOptions): Promise<ApiResponse<CommunityMapVote>>;
|
|
5437
|
+
listComments(slug: string, query?: {
|
|
5438
|
+
feature_id?: string;
|
|
5439
|
+
page?: number;
|
|
5440
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapCommentPage>>;
|
|
5441
|
+
/** All Community Maps comments require editorial review, including authenticated replies. */
|
|
5442
|
+
createComment(slug: string, data: CommunityMapCommentInput, featureId?: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
5443
|
+
id: string;
|
|
5444
|
+
status: 'pending';
|
|
5445
|
+
}>>;
|
|
5361
5446
|
react(slug: string, feature: string, reaction: string, active?: boolean, options?: RequestOptions): Promise<ApiResponse<{
|
|
5362
5447
|
reaction: string;
|
|
5363
5448
|
active: boolean;
|
|
@@ -5374,6 +5459,16 @@ declare class CommunityMapsEditorialService extends ServiceModule {
|
|
|
5374
5459
|
constructor(client: ScaleMuleClient, applicationId?: string | undefined);
|
|
5375
5460
|
forApplication(id: string): CommunityMapsEditorialService;
|
|
5376
5461
|
private path;
|
|
5462
|
+
listComments(collection: string, query?: {
|
|
5463
|
+
feature_id?: string;
|
|
5464
|
+
page?: number;
|
|
5465
|
+
status?: CommunityMapEditorialComment['status'];
|
|
5466
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapCommentPage<CommunityMapEditorialComment>>>;
|
|
5467
|
+
reviewComment(collection: string, comment: string, data: {
|
|
5468
|
+
status: CommunityMapEditorialComment['status'];
|
|
5469
|
+
expected_revision: number;
|
|
5470
|
+
guidelines_reviewed?: boolean;
|
|
5471
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialComment>>;
|
|
5377
5472
|
listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialCollection>>>;
|
|
5378
5473
|
getCollection(id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialCollection>>;
|
|
5379
5474
|
createCollection(data: {
|
|
@@ -5424,6 +5519,7 @@ declare class CommunityMapsEditorialService extends ServiceModule {
|
|
|
5424
5519
|
reviewMedia(collection: string, id: string, data: {
|
|
5425
5520
|
expected_revision: number;
|
|
5426
5521
|
status: 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'REMOVED';
|
|
5522
|
+
guidelines_reviewed?: boolean;
|
|
5427
5523
|
feature_id?: string | null;
|
|
5428
5524
|
caption: string;
|
|
5429
5525
|
attribution: string;
|
|
@@ -8184,4 +8280,4 @@ declare class ScaleMule {
|
|
|
8184
8280
|
getClient(): ScaleMuleClient;
|
|
8185
8281
|
}
|
|
8186
8282
|
|
|
8187
|
-
export { type AcceptQuoteInput, type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapEditorialCollection, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionStatus, type CommunityMapView, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateLeadInput, type CreatePollInput, type CreateQuoteInput, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, type Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdatePollInput, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type VoteState, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
|
8283
|
+
export { type AcceptQuoteInput, type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapComment, type CommunityMapCommentInput, type CommunityMapCommentPage, type CommunityMapConsent, type CommunityMapEditorialCollection, type CommunityMapEditorialComment, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionPolicy, type CommunityMapSubmissionStatus, type CommunityMapView, type CommunityMapVote, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateLeadInput, type CreatePollInput, type CreateQuoteInput, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, type Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdatePollInput, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type VoteState, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
package/dist/index.js
CHANGED
|
@@ -1690,7 +1690,7 @@ function asString(parent, key) {
|
|
|
1690
1690
|
return typeof value === "string" ? value : void 0;
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
// node_modules/@scalemule/ui/dist/phone/index.mjs
|
|
1693
|
+
// ../sdk/node_modules/@scalemule/ui/dist/phone/index.mjs
|
|
1694
1694
|
var PHONE_COUNTRIES = [
|
|
1695
1695
|
{ code: "US", name: "United States", dialCode: "+1" },
|
|
1696
1696
|
{ code: "CA", name: "Canada", dialCode: "+1" },
|
|
@@ -6951,11 +6951,45 @@ var CommunityMapsService = class extends ServiceModule {
|
|
|
6951
6951
|
createSubmission(slug, data, options) {
|
|
6952
6952
|
return this.post("/collections/" + segment(slug) + "/submissions", data, options);
|
|
6953
6953
|
}
|
|
6954
|
-
|
|
6954
|
+
uploadMedia(slug, submission, file, fields, options) {
|
|
6955
6955
|
return this._upload(
|
|
6956
6956
|
"/collections/" + segment(slug) + "/submissions/" + segment(submission) + "/media",
|
|
6957
6957
|
file,
|
|
6958
|
-
{
|
|
6958
|
+
{
|
|
6959
|
+
caption: fields.caption,
|
|
6960
|
+
attribution: fields.attribution,
|
|
6961
|
+
rights_confirmed: String(fields.rights_confirmed),
|
|
6962
|
+
consent_version: fields.consent_version
|
|
6963
|
+
},
|
|
6964
|
+
options
|
|
6965
|
+
);
|
|
6966
|
+
}
|
|
6967
|
+
/** @deprecated Use uploadMedia for photos, video and audio. Explicit publication permission is required. */
|
|
6968
|
+
uploadPhoto(slug, submission, file, fields, options) {
|
|
6969
|
+
return this.uploadMedia(
|
|
6970
|
+
slug,
|
|
6971
|
+
submission,
|
|
6972
|
+
file,
|
|
6973
|
+
{ ...fields, consent_version: fields.consent_version || "" },
|
|
6974
|
+
options
|
|
6975
|
+
);
|
|
6976
|
+
}
|
|
6977
|
+
/** Read public totals and the signed-in reader's current vote. */
|
|
6978
|
+
getVote(slug, feature, options) {
|
|
6979
|
+
return this._get("/collections/" + segment(slug) + "/features/" + segment(feature) + "/vote", options);
|
|
6980
|
+
}
|
|
6981
|
+
/** One vote per signed-in reader: 1 up, -1 down, 0 clear. */
|
|
6982
|
+
vote(slug, feature, value, options) {
|
|
6983
|
+
return this.post("/collections/" + segment(slug) + "/features/" + segment(feature) + "/vote", { value }, options);
|
|
6984
|
+
}
|
|
6985
|
+
listComments(slug, query = {}, options) {
|
|
6986
|
+
return this._get(this.withQuery("/collections/" + segment(slug) + "/comments", query), options);
|
|
6987
|
+
}
|
|
6988
|
+
/** All Community Maps comments require editorial review, including authenticated replies. */
|
|
6989
|
+
createComment(slug, data, featureId, options) {
|
|
6990
|
+
return this.post(
|
|
6991
|
+
this.withQuery("/collections/" + segment(slug) + "/comments", { feature_id: featureId }),
|
|
6992
|
+
data,
|
|
6959
6993
|
options
|
|
6960
6994
|
);
|
|
6961
6995
|
}
|
|
@@ -6986,6 +7020,12 @@ var CommunityMapsEditorialService = class _CommunityMapsEditorialService extends
|
|
|
6986
7020
|
path(path, query = {}) {
|
|
6987
7021
|
return this.withQuery(path, { ...query, ...this.applicationId ? { application_id: this.applicationId } : {} });
|
|
6988
7022
|
}
|
|
7023
|
+
listComments(collection, query = {}, options) {
|
|
7024
|
+
return this._get(this.path("/collections/" + segment(collection) + "/comments", query), options);
|
|
7025
|
+
}
|
|
7026
|
+
reviewComment(collection, comment, data, options) {
|
|
7027
|
+
return this.put(this.path("/collections/" + segment(collection) + "/comments/" + segment(comment)), data, options);
|
|
7028
|
+
}
|
|
6989
7029
|
listCollections(query = {}, options) {
|
|
6990
7030
|
return this._get(this.path("/collections", { ...query }), options);
|
|
6991
7031
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1578,7 +1578,7 @@ function asString(parent, key) {
|
|
|
1578
1578
|
return typeof value === "string" ? value : void 0;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
// node_modules/@scalemule/ui/dist/phone/index.mjs
|
|
1581
|
+
// ../sdk/node_modules/@scalemule/ui/dist/phone/index.mjs
|
|
1582
1582
|
var PHONE_COUNTRIES = [
|
|
1583
1583
|
{ code: "US", name: "United States", dialCode: "+1" },
|
|
1584
1584
|
{ code: "CA", name: "Canada", dialCode: "+1" },
|
|
@@ -6839,11 +6839,45 @@ var CommunityMapsService = class extends ServiceModule {
|
|
|
6839
6839
|
createSubmission(slug, data, options) {
|
|
6840
6840
|
return this.post("/collections/" + segment(slug) + "/submissions", data, options);
|
|
6841
6841
|
}
|
|
6842
|
-
|
|
6842
|
+
uploadMedia(slug, submission, file, fields, options) {
|
|
6843
6843
|
return this._upload(
|
|
6844
6844
|
"/collections/" + segment(slug) + "/submissions/" + segment(submission) + "/media",
|
|
6845
6845
|
file,
|
|
6846
|
-
{
|
|
6846
|
+
{
|
|
6847
|
+
caption: fields.caption,
|
|
6848
|
+
attribution: fields.attribution,
|
|
6849
|
+
rights_confirmed: String(fields.rights_confirmed),
|
|
6850
|
+
consent_version: fields.consent_version
|
|
6851
|
+
},
|
|
6852
|
+
options
|
|
6853
|
+
);
|
|
6854
|
+
}
|
|
6855
|
+
/** @deprecated Use uploadMedia for photos, video and audio. Explicit publication permission is required. */
|
|
6856
|
+
uploadPhoto(slug, submission, file, fields, options) {
|
|
6857
|
+
return this.uploadMedia(
|
|
6858
|
+
slug,
|
|
6859
|
+
submission,
|
|
6860
|
+
file,
|
|
6861
|
+
{ ...fields, consent_version: fields.consent_version || "" },
|
|
6862
|
+
options
|
|
6863
|
+
);
|
|
6864
|
+
}
|
|
6865
|
+
/** Read public totals and the signed-in reader's current vote. */
|
|
6866
|
+
getVote(slug, feature, options) {
|
|
6867
|
+
return this._get("/collections/" + segment(slug) + "/features/" + segment(feature) + "/vote", options);
|
|
6868
|
+
}
|
|
6869
|
+
/** One vote per signed-in reader: 1 up, -1 down, 0 clear. */
|
|
6870
|
+
vote(slug, feature, value, options) {
|
|
6871
|
+
return this.post("/collections/" + segment(slug) + "/features/" + segment(feature) + "/vote", { value }, options);
|
|
6872
|
+
}
|
|
6873
|
+
listComments(slug, query = {}, options) {
|
|
6874
|
+
return this._get(this.withQuery("/collections/" + segment(slug) + "/comments", query), options);
|
|
6875
|
+
}
|
|
6876
|
+
/** All Community Maps comments require editorial review, including authenticated replies. */
|
|
6877
|
+
createComment(slug, data, featureId, options) {
|
|
6878
|
+
return this.post(
|
|
6879
|
+
this.withQuery("/collections/" + segment(slug) + "/comments", { feature_id: featureId }),
|
|
6880
|
+
data,
|
|
6847
6881
|
options
|
|
6848
6882
|
);
|
|
6849
6883
|
}
|
|
@@ -6874,6 +6908,12 @@ var CommunityMapsEditorialService = class _CommunityMapsEditorialService extends
|
|
|
6874
6908
|
path(path, query = {}) {
|
|
6875
6909
|
return this.withQuery(path, { ...query, ...this.applicationId ? { application_id: this.applicationId } : {} });
|
|
6876
6910
|
}
|
|
6911
|
+
listComments(collection, query = {}, options) {
|
|
6912
|
+
return this._get(this.path("/collections/" + segment(collection) + "/comments", query), options);
|
|
6913
|
+
}
|
|
6914
|
+
reviewComment(collection, comment, data, options) {
|
|
6915
|
+
return this.put(this.path("/collections/" + segment(collection) + "/comments/" + segment(comment)), data, options);
|
|
6916
|
+
}
|
|
6877
6917
|
listCollections(query = {}, options) {
|
|
6878
6918
|
return this._get(this.path("/collections", { ...query }), options);
|
|
6879
6919
|
}
|