@scalemule/sdk 0.0.69 → 0.0.71
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 +49 -0
- package/dist/index.d.mts +408 -1
- package/dist/index.d.ts +408 -1
- package/dist/index.js +175 -0
- package/dist/index.mjs +172 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2682,6 +2682,33 @@ interface SocialPost {
|
|
|
2682
2682
|
shares_count: number;
|
|
2683
2683
|
created_at: string;
|
|
2684
2684
|
}
|
|
2685
|
+
/** A canonical app record projected into Social after the app's moderation workflow. */
|
|
2686
|
+
interface SocialContentProjectionInput {
|
|
2687
|
+
author_user_id: string;
|
|
2688
|
+
source_kind: string;
|
|
2689
|
+
source_id: string;
|
|
2690
|
+
distribution_state: 'published' | 'hidden' | 'unpublished' | 'moderated_removed' | 'deleted';
|
|
2691
|
+
access_policy?: 'public' | 'followers' | 'premium' | 'private' | 'subscribers';
|
|
2692
|
+
content_type?: 'image' | 'video' | 'audio' | 'mixed' | 'text';
|
|
2693
|
+
preview_mode?: 'clear' | 'blurred' | 'none';
|
|
2694
|
+
title?: string;
|
|
2695
|
+
caption?: string;
|
|
2696
|
+
preview_photo_id?: string;
|
|
2697
|
+
published_at?: string;
|
|
2698
|
+
}
|
|
2699
|
+
interface SocialContentProjection extends SocialContentProjectionInput {
|
|
2700
|
+
id: string;
|
|
2701
|
+
created_at: string;
|
|
2702
|
+
updated_at: string;
|
|
2703
|
+
}
|
|
2704
|
+
interface SocialDiscoveryCreatorInput {
|
|
2705
|
+
creator_user_id: string;
|
|
2706
|
+
username: string;
|
|
2707
|
+
display_name?: string;
|
|
2708
|
+
primary_category?: string;
|
|
2709
|
+
avatar_asset_ref?: string;
|
|
2710
|
+
is_discoverable: boolean;
|
|
2711
|
+
}
|
|
2685
2712
|
interface Comment {
|
|
2686
2713
|
id: string;
|
|
2687
2714
|
post_id: string;
|
|
@@ -2739,6 +2766,9 @@ interface ViewState {
|
|
|
2739
2766
|
}
|
|
2740
2767
|
declare class SocialService extends ServiceModule {
|
|
2741
2768
|
protected basePath: string;
|
|
2769
|
+
/** Client API-key route; never send an internal platform token from an app. */
|
|
2770
|
+
upsertContentPost(input: SocialContentProjectionInput, options?: RequestOptions): Promise<ApiResponse<SocialContentProjection>>;
|
|
2771
|
+
upsertDiscoveryCreator(input: SocialDiscoveryCreatorInput, options?: RequestOptions): Promise<ApiResponse<unknown>>;
|
|
2742
2772
|
follow(userId: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
2743
2773
|
followed: boolean;
|
|
2744
2774
|
}>>;
|
|
@@ -5091,6 +5121,382 @@ declare class ListingsService extends ServiceModule {
|
|
|
5091
5121
|
getListing(id: string): Promise<ApiResponse<Listing>>;
|
|
5092
5122
|
}
|
|
5093
5123
|
|
|
5124
|
+
type CommunityMapPosition = [longitude: number, latitude: number];
|
|
5125
|
+
type CommunityMapGeometry = {
|
|
5126
|
+
type: 'Point';
|
|
5127
|
+
coordinates: CommunityMapPosition;
|
|
5128
|
+
} | {
|
|
5129
|
+
type: 'LineString';
|
|
5130
|
+
coordinates: CommunityMapPosition[];
|
|
5131
|
+
} | {
|
|
5132
|
+
type: 'Polygon';
|
|
5133
|
+
coordinates: CommunityMapPosition[][];
|
|
5134
|
+
};
|
|
5135
|
+
type CommunityMapPrecision = 'CITY' | 'NEIGHBORHOOD' | 'STREET' | 'INTERSECTION' | 'GENERALIZED' | 'EXACT_PUBLIC';
|
|
5136
|
+
interface CommunityMapSource {
|
|
5137
|
+
title: string;
|
|
5138
|
+
url: string | null;
|
|
5139
|
+
attribution: string;
|
|
5140
|
+
}
|
|
5141
|
+
interface CommunityMapArea {
|
|
5142
|
+
id: string;
|
|
5143
|
+
slug: string;
|
|
5144
|
+
name: string;
|
|
5145
|
+
kind: string;
|
|
5146
|
+
country_code: string | null;
|
|
5147
|
+
geometry: CommunityMapGeometry | null;
|
|
5148
|
+
}
|
|
5149
|
+
interface CommunityMapReactionDefinition {
|
|
5150
|
+
key: string;
|
|
5151
|
+
label: string;
|
|
5152
|
+
icon: string;
|
|
5153
|
+
}
|
|
5154
|
+
interface CommunityMapCollectionConfig {
|
|
5155
|
+
title: string;
|
|
5156
|
+
description: string;
|
|
5157
|
+
kind: string;
|
|
5158
|
+
timezone: string;
|
|
5159
|
+
starts_at: string | null;
|
|
5160
|
+
ends_at: string | null;
|
|
5161
|
+
submissions_open: boolean;
|
|
5162
|
+
categories: {
|
|
5163
|
+
key: string;
|
|
5164
|
+
label: string;
|
|
5165
|
+
}[];
|
|
5166
|
+
reactions: CommunityMapReactionDefinition[];
|
|
5167
|
+
presentation: {
|
|
5168
|
+
accent?: string | null;
|
|
5169
|
+
season?: string | null;
|
|
5170
|
+
map_style_url?: string | null;
|
|
5171
|
+
};
|
|
5172
|
+
}
|
|
5173
|
+
interface CommunityMapCollection {
|
|
5174
|
+
id: string;
|
|
5175
|
+
slug: string;
|
|
5176
|
+
revision: number;
|
|
5177
|
+
config: CommunityMapCollectionConfig;
|
|
5178
|
+
areas: CommunityMapArea[];
|
|
5179
|
+
}
|
|
5180
|
+
/** Explicit public projection; submitted addresses, contacts and notes are absent. */
|
|
5181
|
+
interface CommunityMapPublicContent {
|
|
5182
|
+
title: string;
|
|
5183
|
+
description: string;
|
|
5184
|
+
location_label: string;
|
|
5185
|
+
precision: CommunityMapPrecision;
|
|
5186
|
+
residential: boolean;
|
|
5187
|
+
geometry: CommunityMapGeometry;
|
|
5188
|
+
external_url: string | null;
|
|
5189
|
+
hours: string | null;
|
|
5190
|
+
admission: string | null;
|
|
5191
|
+
accessibility: string | null;
|
|
5192
|
+
family_friendly: boolean | null;
|
|
5193
|
+
sources: CommunityMapSource[];
|
|
5194
|
+
related_story_urls: string[];
|
|
5195
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
5196
|
+
}
|
|
5197
|
+
interface CommunityMapMedia {
|
|
5198
|
+
id: string;
|
|
5199
|
+
caption: string;
|
|
5200
|
+
attribution: string;
|
|
5201
|
+
}
|
|
5202
|
+
interface CommunityMapFeature {
|
|
5203
|
+
id: string;
|
|
5204
|
+
slug: string;
|
|
5205
|
+
area_id: string;
|
|
5206
|
+
category: string;
|
|
5207
|
+
revision: number;
|
|
5208
|
+
featured: boolean;
|
|
5209
|
+
verified: boolean;
|
|
5210
|
+
content: CommunityMapPublicContent;
|
|
5211
|
+
starts_at: string | null;
|
|
5212
|
+
ends_at: string | null;
|
|
5213
|
+
media: CommunityMapMedia[];
|
|
5214
|
+
reactions: Record<string, number>;
|
|
5215
|
+
}
|
|
5216
|
+
interface CommunityMapPage<T> {
|
|
5217
|
+
items: T[];
|
|
5218
|
+
next_cursor: string | null;
|
|
5219
|
+
}
|
|
5220
|
+
interface CommunityMapFeatureQuery {
|
|
5221
|
+
after?: string;
|
|
5222
|
+
limit?: number;
|
|
5223
|
+
area_id?: string;
|
|
5224
|
+
category?: string;
|
|
5225
|
+
geometry_type?: CommunityMapGeometry['type'];
|
|
5226
|
+
featured?: boolean;
|
|
5227
|
+
verified?: boolean;
|
|
5228
|
+
active_at?: string;
|
|
5229
|
+
bbox?: string;
|
|
5230
|
+
}
|
|
5231
|
+
interface CommunityMapProposal {
|
|
5232
|
+
title: string;
|
|
5233
|
+
description: string;
|
|
5234
|
+
location_text: string;
|
|
5235
|
+
exact_geometry?: CommunityMapGeometry | null;
|
|
5236
|
+
contact_email?: string | null;
|
|
5237
|
+
contact_name?: string | null;
|
|
5238
|
+
contributor_claim: 'resident' | 'owner' | 'visitor' | 'organizer' | 'other';
|
|
5239
|
+
category: string;
|
|
5240
|
+
hours?: string | null;
|
|
5241
|
+
starts_at?: string | null;
|
|
5242
|
+
ends_at?: string | null;
|
|
5243
|
+
correction_for?: string | null;
|
|
5244
|
+
}
|
|
5245
|
+
interface CommunityMapSubmissionInput {
|
|
5246
|
+
area_id: string;
|
|
5247
|
+
idempotency_key: string;
|
|
5248
|
+
proposal: CommunityMapProposal;
|
|
5249
|
+
}
|
|
5250
|
+
type CommunityMapReportReason = 'no-longer-exists' | 'incorrect-location' | 'incorrect-information' | 'inappropriate-media' | 'duplicate' | 'safety' | 'privacy-removal' | 'other';
|
|
5251
|
+
interface CommunityMapReportInput {
|
|
5252
|
+
reason: CommunityMapReportReason;
|
|
5253
|
+
details: string;
|
|
5254
|
+
contact_email?: string | null;
|
|
5255
|
+
idempotency_key: string;
|
|
5256
|
+
}
|
|
5257
|
+
interface CommunityMapReceipt {
|
|
5258
|
+
id: string;
|
|
5259
|
+
received: boolean;
|
|
5260
|
+
}
|
|
5261
|
+
type CommunityMapFeatureStatus = 'DRAFT' | 'APPROVED' | 'PUBLISHED' | 'ARCHIVED' | 'REMOVED';
|
|
5262
|
+
type CommunityMapSubmissionStatus = 'SUBMITTED' | 'REVIEWING' | 'NEEDS_INFO' | 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'ARCHIVED' | 'REMOVED';
|
|
5263
|
+
interface CommunityMapRevision {
|
|
5264
|
+
id: string;
|
|
5265
|
+
revision: number;
|
|
5266
|
+
status: string;
|
|
5267
|
+
}
|
|
5268
|
+
interface CommunityMapFeatureDraft {
|
|
5269
|
+
expected_revision?: number;
|
|
5270
|
+
area_id: string;
|
|
5271
|
+
slug: string;
|
|
5272
|
+
category: string;
|
|
5273
|
+
featured: boolean;
|
|
5274
|
+
verified: boolean;
|
|
5275
|
+
content: CommunityMapPublicContent;
|
|
5276
|
+
starts_at: string | null;
|
|
5277
|
+
ends_at: string | null;
|
|
5278
|
+
}
|
|
5279
|
+
interface CommunityMapEditorialFeature extends Omit<CommunityMapFeature, 'media' | 'reactions'> {
|
|
5280
|
+
status: CommunityMapFeatureStatus;
|
|
5281
|
+
merged_into: string | null;
|
|
5282
|
+
}
|
|
5283
|
+
/** Returned only by editorial endpoints after server-side authorization. */
|
|
5284
|
+
interface CommunityMapPrivateSubmission {
|
|
5285
|
+
id: string;
|
|
5286
|
+
area_id: string;
|
|
5287
|
+
feature_id: string | null;
|
|
5288
|
+
status: CommunityMapSubmissionStatus;
|
|
5289
|
+
revision: number;
|
|
5290
|
+
proposal: CommunityMapProposal;
|
|
5291
|
+
created_at: string;
|
|
5292
|
+
notes: {
|
|
5293
|
+
actor_id: string;
|
|
5294
|
+
note: string;
|
|
5295
|
+
created_at: string;
|
|
5296
|
+
}[];
|
|
5297
|
+
}
|
|
5298
|
+
interface CommunityMapEditorialCollection {
|
|
5299
|
+
id: string;
|
|
5300
|
+
publication_id: string | null;
|
|
5301
|
+
slug: string;
|
|
5302
|
+
status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
5303
|
+
revision: number;
|
|
5304
|
+
config: CommunityMapCollectionConfig;
|
|
5305
|
+
area_ids?: string[];
|
|
5306
|
+
areas?: CommunityMapArea[];
|
|
5307
|
+
}
|
|
5308
|
+
interface CommunityMapView {
|
|
5309
|
+
id: string;
|
|
5310
|
+
collection_id: string;
|
|
5311
|
+
publication_id: string | null;
|
|
5312
|
+
slug: string;
|
|
5313
|
+
enabled: boolean;
|
|
5314
|
+
revision: number;
|
|
5315
|
+
allow_submissions: boolean;
|
|
5316
|
+
}
|
|
5317
|
+
interface CommunityMapPrivateReport {
|
|
5318
|
+
id: string;
|
|
5319
|
+
feature_id: string;
|
|
5320
|
+
reason: CommunityMapReportReason;
|
|
5321
|
+
priority: number;
|
|
5322
|
+
status: string;
|
|
5323
|
+
revision: number;
|
|
5324
|
+
report: CommunityMapReportInput & {
|
|
5325
|
+
resolution_note?: string;
|
|
5326
|
+
};
|
|
5327
|
+
created_at: string;
|
|
5328
|
+
}
|
|
5329
|
+
interface CommunityMapEditorialMedia extends CommunityMapMedia {
|
|
5330
|
+
submission_id: string | null;
|
|
5331
|
+
feature_id: string | null;
|
|
5332
|
+
status: string;
|
|
5333
|
+
revision: number;
|
|
5334
|
+
}
|
|
5335
|
+
interface CommunityMapQueueQuery {
|
|
5336
|
+
after?: string;
|
|
5337
|
+
limit?: number;
|
|
5338
|
+
status?: string;
|
|
5339
|
+
}
|
|
5340
|
+
/** Reusable collection APIs; use your application's normal SDK credential/context. */
|
|
5341
|
+
declare class CommunityMapsService extends ServiceModule {
|
|
5342
|
+
protected basePath: string;
|
|
5343
|
+
readonly editorial: CommunityMapsEditorialService;
|
|
5344
|
+
readonly geography: CommunityMapsGeographyService;
|
|
5345
|
+
constructor(client: ScaleMuleClient);
|
|
5346
|
+
listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapCollection>>>;
|
|
5347
|
+
getCollection(slug: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapCollection>>;
|
|
5348
|
+
listFeatures(slug: string, query?: CommunityMapFeatureQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapFeature>>>;
|
|
5349
|
+
getFeature(slug: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapFeature>>;
|
|
5350
|
+
createSubmission(slug: string, data: CommunityMapSubmissionInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
|
|
5351
|
+
uploadPhoto(slug: string, submission: string, file: File | Blob, fields: {
|
|
5352
|
+
caption: string;
|
|
5353
|
+
attribution: string;
|
|
5354
|
+
rights_confirmed: boolean;
|
|
5355
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5356
|
+
id: string;
|
|
5357
|
+
status: string;
|
|
5358
|
+
}>>;
|
|
5359
|
+
react(slug: string, feature: string, reaction: string, active?: boolean, options?: RequestOptions): Promise<ApiResponse<{
|
|
5360
|
+
reaction: string;
|
|
5361
|
+
active: boolean;
|
|
5362
|
+
count: number;
|
|
5363
|
+
}>>;
|
|
5364
|
+
report(slug: string, feature: string, data: CommunityMapReportInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
|
|
5365
|
+
/** Proxy this path through your server; never append a secret API key to an image URL. */
|
|
5366
|
+
mediaPath(slug: string, media: string): string;
|
|
5367
|
+
}
|
|
5368
|
+
/** Editorial identity is required. Selecting a scope never grants permission. */
|
|
5369
|
+
declare class CommunityMapsEditorialService extends ServiceModule {
|
|
5370
|
+
private readonly applicationId?;
|
|
5371
|
+
protected basePath: string;
|
|
5372
|
+
constructor(client: ScaleMuleClient, applicationId?: string | undefined);
|
|
5373
|
+
forApplication(id: string): CommunityMapsEditorialService;
|
|
5374
|
+
private path;
|
|
5375
|
+
listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialCollection>>>;
|
|
5376
|
+
getCollection(id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialCollection>>;
|
|
5377
|
+
createCollection(data: {
|
|
5378
|
+
slug: string;
|
|
5379
|
+
publication_id?: string | null;
|
|
5380
|
+
config: CommunityMapCollectionConfig;
|
|
5381
|
+
area_ids: string[];
|
|
5382
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5383
|
+
updateCollection(id: string, data: {
|
|
5384
|
+
expected_revision: number;
|
|
5385
|
+
config: CommunityMapCollectionConfig;
|
|
5386
|
+
status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
5387
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5388
|
+
listFeatures(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialFeature>>>;
|
|
5389
|
+
getFeature(collection: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialFeature>>;
|
|
5390
|
+
createFeature(collection: string, data: CommunityMapFeatureDraft, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5391
|
+
updateFeature(collection: string, id: string, data: CommunityMapFeatureDraft & {
|
|
5392
|
+
expected_revision: number;
|
|
5393
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5394
|
+
featureCommand(collection: string, id: string, data: {
|
|
5395
|
+
expected_revision: number;
|
|
5396
|
+
action: 'approve' | 'publish' | 'unpublish' | 'archive' | 'remove' | 'merge';
|
|
5397
|
+
public_location_reviewed?: boolean;
|
|
5398
|
+
merge_into?: string;
|
|
5399
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5400
|
+
listSubmissions(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapPrivateSubmission>>>;
|
|
5401
|
+
reviewSubmission(collection: string, id: string, data: {
|
|
5402
|
+
expected_revision: number;
|
|
5403
|
+
status: Exclude<CommunityMapSubmissionStatus, 'PUBLISHED'>;
|
|
5404
|
+
feature_id?: string;
|
|
5405
|
+
note?: string;
|
|
5406
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5407
|
+
duplicates(collection: string, submission: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
5408
|
+
items: {
|
|
5409
|
+
id: string;
|
|
5410
|
+
content: CommunityMapPublicContent;
|
|
5411
|
+
reasons: string[];
|
|
5412
|
+
}[];
|
|
5413
|
+
automatic_merge: false;
|
|
5414
|
+
}>>;
|
|
5415
|
+
listReports(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapPrivateReport>>>;
|
|
5416
|
+
reviewReport(collection: string, id: string, data: {
|
|
5417
|
+
expected_revision: number;
|
|
5418
|
+
status: 'REVIEWING' | 'RESOLVED' | 'REJECTED';
|
|
5419
|
+
note: string;
|
|
5420
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5421
|
+
listMedia(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialMedia>>>;
|
|
5422
|
+
reviewMedia(collection: string, id: string, data: {
|
|
5423
|
+
expected_revision: number;
|
|
5424
|
+
status: 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'REMOVED';
|
|
5425
|
+
feature_id?: string | null;
|
|
5426
|
+
caption: string;
|
|
5427
|
+
attribution: string;
|
|
5428
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
|
|
5429
|
+
inviteView(collection: string, data: {
|
|
5430
|
+
recipient_application_id: string;
|
|
5431
|
+
publication_id?: string | null;
|
|
5432
|
+
slug: string;
|
|
5433
|
+
allow_submissions: boolean;
|
|
5434
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5435
|
+
id: string;
|
|
5436
|
+
enabled: boolean;
|
|
5437
|
+
revision: number;
|
|
5438
|
+
}>>;
|
|
5439
|
+
listViews(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapView>>>;
|
|
5440
|
+
acceptView(id: string, data: {
|
|
5441
|
+
expected_revision: number;
|
|
5442
|
+
enabled: boolean;
|
|
5443
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5444
|
+
id: string;
|
|
5445
|
+
revision: number;
|
|
5446
|
+
enabled: boolean;
|
|
5447
|
+
}>>;
|
|
5448
|
+
revokeView(collection: string, view: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
5449
|
+
revoked: boolean;
|
|
5450
|
+
}>>;
|
|
5451
|
+
getCoverage(publication: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
5452
|
+
publication_id: string;
|
|
5453
|
+
area_ids: string[];
|
|
5454
|
+
revision: number;
|
|
5455
|
+
}>>;
|
|
5456
|
+
setCoverage(publication: string, areaIds: string[], expectedRevision: number, options?: RequestOptions): Promise<ApiResponse<{
|
|
5457
|
+
publication_id: string;
|
|
5458
|
+
area_ids: string[];
|
|
5459
|
+
}>>;
|
|
5460
|
+
}
|
|
5461
|
+
interface CommunityMapCanonicalArea extends CommunityMapArea {
|
|
5462
|
+
source_key: string;
|
|
5463
|
+
provenance: CommunityMapSource;
|
|
5464
|
+
revision: number;
|
|
5465
|
+
}
|
|
5466
|
+
/** Platform administrators maintain shared canonical references. Public areas are in getCollection(). */
|
|
5467
|
+
declare class CommunityMapsGeographyService extends ServiceModule {
|
|
5468
|
+
protected basePath: string;
|
|
5469
|
+
list(query?: {
|
|
5470
|
+
q?: string;
|
|
5471
|
+
after?: string;
|
|
5472
|
+
limit?: number;
|
|
5473
|
+
}, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapCanonicalArea>>>;
|
|
5474
|
+
save(data: Omit<CommunityMapCanonicalArea, 'id' | 'revision'> & {
|
|
5475
|
+
expected_revision?: number;
|
|
5476
|
+
relationships?: {
|
|
5477
|
+
related_area_id: string;
|
|
5478
|
+
relationship: 'WITHIN' | 'REGION_MEMBER' | 'AFFILIATED';
|
|
5479
|
+
}[];
|
|
5480
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5481
|
+
id: string;
|
|
5482
|
+
revision: number;
|
|
5483
|
+
}>>;
|
|
5484
|
+
referencePlaces(query: {
|
|
5485
|
+
q: string;
|
|
5486
|
+
region: string;
|
|
5487
|
+
}, options?: RequestOptions): Promise<ApiResponse<{
|
|
5488
|
+
items: {
|
|
5489
|
+
country: string;
|
|
5490
|
+
geoid: string;
|
|
5491
|
+
region: string;
|
|
5492
|
+
name: string;
|
|
5493
|
+
lsad: string;
|
|
5494
|
+
latitude: number;
|
|
5495
|
+
longitude: number;
|
|
5496
|
+
}[];
|
|
5497
|
+
}>>;
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5094
5500
|
/**
|
|
5095
5501
|
* Polls Service Module
|
|
5096
5502
|
*
|
|
@@ -7693,6 +8099,7 @@ declare class ScaleMule {
|
|
|
7693
8099
|
readonly webhooks: WebhooksService;
|
|
7694
8100
|
readonly leaderboard: LeaderboardService;
|
|
7695
8101
|
readonly listings: ListingsService;
|
|
8102
|
+
readonly communityMaps: CommunityMapsService;
|
|
7696
8103
|
readonly polls: PollsService;
|
|
7697
8104
|
readonly events: EventsService;
|
|
7698
8105
|
readonly graph: GraphService;
|
|
@@ -7775,4 +8182,4 @@ declare class ScaleMule {
|
|
|
7775
8182
|
getClient(): ScaleMuleClient;
|
|
7776
8183
|
}
|
|
7777
8184
|
|
|
7778
|
-
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 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 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 };
|
|
8185
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -309,6 +309,9 @@ __export(index_exports, {
|
|
|
309
309
|
CatalogService: () => CatalogService,
|
|
310
310
|
ChatService: () => ChatService,
|
|
311
311
|
CommunicationService: () => CommunicationService,
|
|
312
|
+
CommunityMapsEditorialService: () => CommunityMapsEditorialService,
|
|
313
|
+
CommunityMapsGeographyService: () => CommunityMapsGeographyService,
|
|
314
|
+
CommunityMapsService: () => CommunityMapsService,
|
|
312
315
|
ComplianceService: () => ComplianceService,
|
|
313
316
|
ConferenceService: () => ConferenceService,
|
|
314
317
|
CreatorMakerService: () => CreatorMakerService,
|
|
@@ -5166,6 +5169,13 @@ var SocialService = class extends ServiceModule {
|
|
|
5166
5169
|
super(...arguments);
|
|
5167
5170
|
this.basePath = "/v1/social";
|
|
5168
5171
|
}
|
|
5172
|
+
/** Client API-key route; never send an internal platform token from an app. */
|
|
5173
|
+
async upsertContentPost(input, options) {
|
|
5174
|
+
return this.post("/client/content-posts/upsert", input, options);
|
|
5175
|
+
}
|
|
5176
|
+
async upsertDiscoveryCreator(input, options) {
|
|
5177
|
+
return this.post("/client/discovery/creators/upsert", input, options);
|
|
5178
|
+
}
|
|
5169
5179
|
// --------------------------------------------------------------------------
|
|
5170
5180
|
// Follow / Unfollow
|
|
5171
5181
|
// --------------------------------------------------------------------------
|
|
@@ -6907,6 +6917,167 @@ var ListingsService = class extends ServiceModule {
|
|
|
6907
6917
|
}
|
|
6908
6918
|
};
|
|
6909
6919
|
|
|
6920
|
+
// src/services/community-maps.ts
|
|
6921
|
+
var segment = (value) => encodeURIComponent(value);
|
|
6922
|
+
var CommunityMapsService = class extends ServiceModule {
|
|
6923
|
+
constructor(client) {
|
|
6924
|
+
super(client);
|
|
6925
|
+
this.basePath = "/v1/knowledge/community-maps";
|
|
6926
|
+
this.editorial = new CommunityMapsEditorialService(client);
|
|
6927
|
+
this.geography = new CommunityMapsGeographyService(client);
|
|
6928
|
+
}
|
|
6929
|
+
listCollections(query = {}, options) {
|
|
6930
|
+
return this._get(this.withQuery("/collections", { ...query }), options);
|
|
6931
|
+
}
|
|
6932
|
+
getCollection(slug, options) {
|
|
6933
|
+
return this._get("/collections/" + segment(slug), options);
|
|
6934
|
+
}
|
|
6935
|
+
listFeatures(slug, query = {}, options) {
|
|
6936
|
+
return this._get(this.withQuery("/collections/" + segment(slug) + "/features", { ...query }), options);
|
|
6937
|
+
}
|
|
6938
|
+
getFeature(slug, id, options) {
|
|
6939
|
+
return this._get("/collections/" + segment(slug) + "/features/" + segment(id), options);
|
|
6940
|
+
}
|
|
6941
|
+
createSubmission(slug, data, options) {
|
|
6942
|
+
return this.post("/collections/" + segment(slug) + "/submissions", data, options);
|
|
6943
|
+
}
|
|
6944
|
+
uploadPhoto(slug, submission, file, fields, options) {
|
|
6945
|
+
return this._upload(
|
|
6946
|
+
"/collections/" + segment(slug) + "/submissions/" + segment(submission) + "/media",
|
|
6947
|
+
file,
|
|
6948
|
+
{ caption: fields.caption, attribution: fields.attribution, rights_confirmed: String(fields.rights_confirmed) },
|
|
6949
|
+
options
|
|
6950
|
+
);
|
|
6951
|
+
}
|
|
6952
|
+
react(slug, feature, reaction, active = true, options) {
|
|
6953
|
+
return this.post(
|
|
6954
|
+
"/collections/" + segment(slug) + "/features/" + segment(feature) + "/reactions",
|
|
6955
|
+
{ reaction, active },
|
|
6956
|
+
options
|
|
6957
|
+
);
|
|
6958
|
+
}
|
|
6959
|
+
report(slug, feature, data, options) {
|
|
6960
|
+
return this.post("/collections/" + segment(slug) + "/features/" + segment(feature) + "/reports", data, options);
|
|
6961
|
+
}
|
|
6962
|
+
/** Proxy this path through your server; never append a secret API key to an image URL. */
|
|
6963
|
+
mediaPath(slug, media) {
|
|
6964
|
+
return this.basePath + "/collections/" + segment(slug) + "/media/" + segment(media);
|
|
6965
|
+
}
|
|
6966
|
+
};
|
|
6967
|
+
var CommunityMapsEditorialService = class _CommunityMapsEditorialService extends ServiceModule {
|
|
6968
|
+
constructor(client, applicationId) {
|
|
6969
|
+
super(client);
|
|
6970
|
+
this.applicationId = applicationId;
|
|
6971
|
+
this.basePath = "/v1/knowledge/community-maps/manage";
|
|
6972
|
+
}
|
|
6973
|
+
forApplication(id) {
|
|
6974
|
+
return new _CommunityMapsEditorialService(this.client, id);
|
|
6975
|
+
}
|
|
6976
|
+
path(path, query = {}) {
|
|
6977
|
+
return this.withQuery(path, { ...query, ...this.applicationId ? { application_id: this.applicationId } : {} });
|
|
6978
|
+
}
|
|
6979
|
+
listCollections(query = {}, options) {
|
|
6980
|
+
return this._get(this.path("/collections", { ...query }), options);
|
|
6981
|
+
}
|
|
6982
|
+
getCollection(id, options) {
|
|
6983
|
+
return this._get(this.path("/collections/" + segment(id)), options);
|
|
6984
|
+
}
|
|
6985
|
+
createCollection(data, options) {
|
|
6986
|
+
return this.post(this.path("/collections"), data, options);
|
|
6987
|
+
}
|
|
6988
|
+
updateCollection(id, data, options) {
|
|
6989
|
+
return this.put(this.path("/collections/" + segment(id)), data, options);
|
|
6990
|
+
}
|
|
6991
|
+
listFeatures(collection, query = {}, options) {
|
|
6992
|
+
return this._get(this.path("/collections/" + segment(collection) + "/features", { ...query }), options);
|
|
6993
|
+
}
|
|
6994
|
+
getFeature(collection, id, options) {
|
|
6995
|
+
return this._get(this.path("/collections/" + segment(collection) + "/features/" + segment(id)), options);
|
|
6996
|
+
}
|
|
6997
|
+
createFeature(collection, data, options) {
|
|
6998
|
+
return this.post(this.path("/collections/" + segment(collection) + "/features"), data, options);
|
|
6999
|
+
}
|
|
7000
|
+
updateFeature(collection, id, data, options) {
|
|
7001
|
+
return this.put(this.path("/collections/" + segment(collection) + "/features/" + segment(id)), data, options);
|
|
7002
|
+
}
|
|
7003
|
+
featureCommand(collection, id, data, options) {
|
|
7004
|
+
return this.post(
|
|
7005
|
+
this.path("/collections/" + segment(collection) + "/features/" + segment(id) + "/commands"),
|
|
7006
|
+
data,
|
|
7007
|
+
options
|
|
7008
|
+
);
|
|
7009
|
+
}
|
|
7010
|
+
listSubmissions(collection, query = {}, options) {
|
|
7011
|
+
return this._get(this.path("/collections/" + segment(collection) + "/submissions", { ...query }), options);
|
|
7012
|
+
}
|
|
7013
|
+
reviewSubmission(collection, id, data, options) {
|
|
7014
|
+
return this.post(
|
|
7015
|
+
this.path("/collections/" + segment(collection) + "/submissions/" + segment(id) + "/commands"),
|
|
7016
|
+
data,
|
|
7017
|
+
options
|
|
7018
|
+
);
|
|
7019
|
+
}
|
|
7020
|
+
duplicates(collection, submission, options) {
|
|
7021
|
+
return this._get(
|
|
7022
|
+
this.path("/collections/" + segment(collection) + "/submissions/" + segment(submission) + "/duplicates"),
|
|
7023
|
+
options
|
|
7024
|
+
);
|
|
7025
|
+
}
|
|
7026
|
+
listReports(collection, query = {}, options) {
|
|
7027
|
+
return this._get(this.path("/collections/" + segment(collection) + "/reports", { ...query }), options);
|
|
7028
|
+
}
|
|
7029
|
+
reviewReport(collection, id, data, options) {
|
|
7030
|
+
return this.post(
|
|
7031
|
+
this.path("/collections/" + segment(collection) + "/reports/" + segment(id) + "/commands"),
|
|
7032
|
+
data,
|
|
7033
|
+
options
|
|
7034
|
+
);
|
|
7035
|
+
}
|
|
7036
|
+
listMedia(collection, query = {}, options) {
|
|
7037
|
+
return this._get(this.path("/collections/" + segment(collection) + "/media", { ...query }), options);
|
|
7038
|
+
}
|
|
7039
|
+
reviewMedia(collection, id, data, options) {
|
|
7040
|
+
return this.put(this.path("/collections/" + segment(collection) + "/media/" + segment(id)), data, options);
|
|
7041
|
+
}
|
|
7042
|
+
inviteView(collection, data, options) {
|
|
7043
|
+
return this.post(this.path("/collections/" + segment(collection) + "/views"), data, options);
|
|
7044
|
+
}
|
|
7045
|
+
listViews(query = {}, options) {
|
|
7046
|
+
return this._get(this.path("/views", { ...query }), options);
|
|
7047
|
+
}
|
|
7048
|
+
acceptView(id, data, options) {
|
|
7049
|
+
return this.put(this.path("/views/" + segment(id)), data, options);
|
|
7050
|
+
}
|
|
7051
|
+
revokeView(collection, view, options) {
|
|
7052
|
+
return this.del(this.path("/collections/" + segment(collection) + "/views/" + segment(view)), options);
|
|
7053
|
+
}
|
|
7054
|
+
getCoverage(publication, options) {
|
|
7055
|
+
return this._get(this.path("/coverage/" + segment(publication)), options);
|
|
7056
|
+
}
|
|
7057
|
+
setCoverage(publication, areaIds, expectedRevision, options) {
|
|
7058
|
+
return this.put(
|
|
7059
|
+
this.path("/coverage/" + segment(publication)),
|
|
7060
|
+
{ area_ids: areaIds, expected_revision: expectedRevision },
|
|
7061
|
+
options
|
|
7062
|
+
);
|
|
7063
|
+
}
|
|
7064
|
+
};
|
|
7065
|
+
var CommunityMapsGeographyService = class extends ServiceModule {
|
|
7066
|
+
constructor() {
|
|
7067
|
+
super(...arguments);
|
|
7068
|
+
this.basePath = "/v1/knowledge/community-maps/admin/geography";
|
|
7069
|
+
}
|
|
7070
|
+
list(query = {}, options) {
|
|
7071
|
+
return this._get(this.withQuery("", { ...query }), options);
|
|
7072
|
+
}
|
|
7073
|
+
save(data, options) {
|
|
7074
|
+
return this.post("", data, options);
|
|
7075
|
+
}
|
|
7076
|
+
referencePlaces(query, options) {
|
|
7077
|
+
return this._get(this.withQuery("/reference-places", query), options);
|
|
7078
|
+
}
|
|
7079
|
+
};
|
|
7080
|
+
|
|
6910
7081
|
// src/services/polls.ts
|
|
6911
7082
|
var PollsService = class extends ServiceModule {
|
|
6912
7083
|
constructor() {
|
|
@@ -8932,6 +9103,7 @@ var ScaleMule = class {
|
|
|
8932
9103
|
this.webhooks = new WebhooksService(this._client);
|
|
8933
9104
|
this.leaderboard = new LeaderboardService(this._client);
|
|
8934
9105
|
this.listings = new ListingsService(this._client);
|
|
9106
|
+
this.communityMaps = new CommunityMapsService(this._client);
|
|
8935
9107
|
this.polls = new PollsService(this._client);
|
|
8936
9108
|
this.events = new EventsService(this._client);
|
|
8937
9109
|
this.graph = new GraphService(this._client);
|
|
@@ -9091,6 +9263,9 @@ var index_default = ScaleMule;
|
|
|
9091
9263
|
CatalogService,
|
|
9092
9264
|
ChatService,
|
|
9093
9265
|
CommunicationService,
|
|
9266
|
+
CommunityMapsEditorialService,
|
|
9267
|
+
CommunityMapsGeographyService,
|
|
9268
|
+
CommunityMapsService,
|
|
9094
9269
|
ComplianceService,
|
|
9095
9270
|
ConferenceService,
|
|
9096
9271
|
CreatorMakerService,
|