@rtsdk/topia 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +96 -4
- package/dist/index.d.ts +82 -4
- package/dist/index.js +96 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39926,7 +39926,7 @@ class DroppedAsset extends Asset {
|
|
|
39926
39926
|
* const { assetName } = droppedAsset;
|
|
39927
39927
|
* ```
|
|
39928
39928
|
*/
|
|
39929
|
-
updateDroppedAsset({ assetScale, clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, flipped, isTextTopLayer, layer0, layer1, position, specialType, text, textColor, textSize, textWeight, textWidth, uniqueName, yOrderAdjust, }) {
|
|
39929
|
+
updateDroppedAsset({ assetScale, clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, flipped, isInteractive, isTextTopLayer, interactivePublicKey, layer0, layer1, position, specialType, text, textColor, textSize, textWeight, textWidth, uniqueName, yOrderAdjust, }) {
|
|
39930
39930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39931
39931
|
const params = {
|
|
39932
39932
|
assetScale,
|
|
@@ -39936,7 +39936,9 @@ class DroppedAsset extends Asset {
|
|
|
39936
39936
|
clickableDisplayTextDescription,
|
|
39937
39937
|
clickableDisplayTextHeadline,
|
|
39938
39938
|
flipped,
|
|
39939
|
+
isInteractive,
|
|
39939
39940
|
isTextTopLayer,
|
|
39941
|
+
interactivePublicKey,
|
|
39940
39942
|
layer0,
|
|
39941
39943
|
layer1,
|
|
39942
39944
|
position,
|
|
@@ -40040,7 +40042,6 @@ class DroppedAsset extends Asset {
|
|
|
40040
40042
|
* });
|
|
40041
40043
|
* ```
|
|
40042
40044
|
*/
|
|
40043
|
-
// get dropped asset
|
|
40044
40045
|
updateDataObject(dataObject, options = {}) {
|
|
40045
40046
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40046
40047
|
try {
|
|
@@ -40139,6 +40140,95 @@ class DroppedAsset extends Asset {
|
|
|
40139
40140
|
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.updateClickType" });
|
|
40140
40141
|
}
|
|
40141
40142
|
}
|
|
40143
|
+
/**
|
|
40144
|
+
* @summary
|
|
40145
|
+
* Adds an array of links to an asset. Maximum is 20 links.
|
|
40146
|
+
*
|
|
40147
|
+
* @usage
|
|
40148
|
+
* ```ts
|
|
40149
|
+
* await droppedAsset.setClickableLinkMulti({
|
|
40150
|
+
* clickableLinks: [
|
|
40151
|
+
* {
|
|
40152
|
+
* clickableLink: "https://example_one.com",
|
|
40153
|
+
* clickableLinkTitle: "Example One Link",
|
|
40154
|
+
* isForceLinkInIframe: true,
|
|
40155
|
+
* isOpenLinkInDrawer: false,
|
|
40156
|
+
* },
|
|
40157
|
+
* {
|
|
40158
|
+
* clickableLink: "https://example two.com",
|
|
40159
|
+
* clickableLinkTitle: "Example Two Link",
|
|
40160
|
+
* isForceLinkInIframe: false,
|
|
40161
|
+
* isOpenLinkInDrawer: false,
|
|
40162
|
+
* },
|
|
40163
|
+
* ],
|
|
40164
|
+
* });
|
|
40165
|
+
* ```
|
|
40166
|
+
*/
|
|
40167
|
+
setClickableLinkMulti({ clickableLinks }) {
|
|
40168
|
+
const params = {
|
|
40169
|
+
clickType: exports.DroppedAssetClickType.LINK,
|
|
40170
|
+
clickableLinks,
|
|
40171
|
+
};
|
|
40172
|
+
try {
|
|
40173
|
+
return __classPrivateFieldGet(this, _DroppedAsset_updateDroppedAsset, "f").call(this, params, "set-clickable-link-multi");
|
|
40174
|
+
}
|
|
40175
|
+
catch (error) {
|
|
40176
|
+
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.setClickableLinkMulti" });
|
|
40177
|
+
}
|
|
40178
|
+
}
|
|
40179
|
+
/**
|
|
40180
|
+
* @summary
|
|
40181
|
+
* Updates multiple clickable links for a dropped asset.
|
|
40182
|
+
* Pass in an 'existingLinkId' to edit an existing link.
|
|
40183
|
+
*
|
|
40184
|
+
* @usage
|
|
40185
|
+
* ```ts
|
|
40186
|
+
* await droppedAsset.updateClickableLinkMulti({
|
|
40187
|
+
* clickableLink: "https://example.com",
|
|
40188
|
+
* clickableLinkTitle: "Example Link",
|
|
40189
|
+
* isForceLinkInIframe: true,
|
|
40190
|
+
* isOpenLinkInDrawer: false,
|
|
40191
|
+
* existingLinkId: "abcd"
|
|
40192
|
+
* });
|
|
40193
|
+
* ```
|
|
40194
|
+
*/
|
|
40195
|
+
updateClickableLinkMulti({ clickableLink, clickableLinkTitle, isForceLinkInIframe, isOpenLinkInDrawer, existingLinkId, linkSamlQueryParams, }) {
|
|
40196
|
+
const params = {
|
|
40197
|
+
clickType: exports.DroppedAssetClickType.LINK,
|
|
40198
|
+
clickableLink,
|
|
40199
|
+
clickableLinkTitle,
|
|
40200
|
+
isForceLinkInIframe,
|
|
40201
|
+
isOpenLinkInDrawer,
|
|
40202
|
+
existingLinkId,
|
|
40203
|
+
linkSamlQueryParams,
|
|
40204
|
+
};
|
|
40205
|
+
try {
|
|
40206
|
+
return __classPrivateFieldGet(this, _DroppedAsset_updateDroppedAsset, "f").call(this, params, "update-clickable-link-multi");
|
|
40207
|
+
}
|
|
40208
|
+
catch (error) {
|
|
40209
|
+
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.updateClickableLinkMulti" });
|
|
40210
|
+
}
|
|
40211
|
+
}
|
|
40212
|
+
/**
|
|
40213
|
+
* @summary
|
|
40214
|
+
* Removes a clickable link from a dropped asset.
|
|
40215
|
+
*
|
|
40216
|
+
* @usage
|
|
40217
|
+
* ```ts
|
|
40218
|
+
* await droppedAsset.removeClickableLink({ linkId: "link-id" });
|
|
40219
|
+
* ```
|
|
40220
|
+
*/
|
|
40221
|
+
removeClickableLink({ linkId }) {
|
|
40222
|
+
const params = {
|
|
40223
|
+
linkId,
|
|
40224
|
+
};
|
|
40225
|
+
try {
|
|
40226
|
+
return __classPrivateFieldGet(this, _DroppedAsset_updateDroppedAsset, "f").call(this, params, "remove-clickable-link");
|
|
40227
|
+
}
|
|
40228
|
+
catch (error) {
|
|
40229
|
+
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.removeClickableLink" });
|
|
40230
|
+
}
|
|
40231
|
+
}
|
|
40142
40232
|
/**
|
|
40143
40233
|
* @summary
|
|
40144
40234
|
* Updates text and style of a dropped asset.
|
|
@@ -40908,8 +40998,7 @@ class World extends SDKController {
|
|
|
40908
40998
|
*
|
|
40909
40999
|
* @usage
|
|
40910
41000
|
* ```ts
|
|
40911
|
-
* await world.fetchDroppedAssetsWithUniqueName();
|
|
40912
|
-
* const assets = world.droppedAssets;
|
|
41001
|
+
* const droppedAssets = await world.fetchDroppedAssetsWithUniqueName({u niqueName: "exampleUniqueName", isPartial: true });
|
|
40913
41002
|
* ```
|
|
40914
41003
|
*/
|
|
40915
41004
|
fetchDroppedAssetsWithUniqueName({ uniqueName, isPartial = false, isReversed = false, }) {
|
|
@@ -42697,6 +42786,9 @@ class DroppedAssetFactory extends SDKController {
|
|
|
42697
42786
|
* ```
|
|
42698
42787
|
* const droppedAssetInstance = await DroppedAsset.getWithUniqueName("exampleUniqueName", urlSlug, interactiveSecret, credentials);
|
|
42699
42788
|
* ```
|
|
42789
|
+
*
|
|
42790
|
+
* @notes
|
|
42791
|
+
* This method leverages the handleGetDroppedAssetByUniqueName endpoint in the Public API and assumes there is exactly one dropped asset with matching uniqueName for the given urlSlug.
|
|
42700
42792
|
*/
|
|
42701
42793
|
getWithUniqueName(uniqueName, urlSlug, interactiveSecret, credentials) {
|
|
42702
42794
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,14 @@ declare enum DroppedAssetMediaType {
|
|
|
59
59
|
NONE = "none",
|
|
60
60
|
LINK = "link"
|
|
61
61
|
}
|
|
62
|
+
type DroppedAssetLinkType = {
|
|
63
|
+
clickableLink: string;
|
|
64
|
+
clickableLinkTitle?: string;
|
|
65
|
+
isForceLinkInIframe?: boolean;
|
|
66
|
+
isOpenLinkInDrawer?: boolean;
|
|
67
|
+
existingLinkId?: string;
|
|
68
|
+
linkSamlQueryParams?: string;
|
|
69
|
+
};
|
|
62
70
|
|
|
63
71
|
type InteractiveCredentials = {
|
|
64
72
|
apiKey?: string;
|
|
@@ -193,7 +201,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
|
|
|
193
201
|
* const { assetName } = droppedAsset;
|
|
194
202
|
* ```
|
|
195
203
|
*/
|
|
196
|
-
updateDroppedAsset({ assetScale, clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, flipped, isTextTopLayer, layer0, layer1, position, specialType, text, textColor, textSize, textWeight, textWidth, uniqueName, yOrderAdjust, }: UpdateDroppedAssetInterface): Promise<void | ResponseType$1>;
|
|
204
|
+
updateDroppedAsset({ assetScale, clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, flipped, isInteractive, isTextTopLayer, interactivePublicKey, layer0, layer1, position, specialType, text, textColor, textSize, textWeight, textWidth, uniqueName, yOrderAdjust, }: UpdateDroppedAssetInterface): Promise<void | ResponseType$1>;
|
|
197
205
|
/**
|
|
198
206
|
* @summary
|
|
199
207
|
* Delete dropped asset.
|
|
@@ -319,6 +327,58 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
|
|
|
319
327
|
* ```
|
|
320
328
|
*/
|
|
321
329
|
updateClickType({ clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, isForceLinkInIframe, isOpenLinkInDrawer, portalName, position, }: UpdateClickTypeInterface): Promise<void | ResponseType$1>;
|
|
330
|
+
/**
|
|
331
|
+
* @summary
|
|
332
|
+
* Adds an array of links to an asset. Maximum is 20 links.
|
|
333
|
+
*
|
|
334
|
+
* @usage
|
|
335
|
+
* ```ts
|
|
336
|
+
* await droppedAsset.setClickableLinkMulti({
|
|
337
|
+
* clickableLinks: [
|
|
338
|
+
* {
|
|
339
|
+
* clickableLink: "https://example_one.com",
|
|
340
|
+
* clickableLinkTitle: "Example One Link",
|
|
341
|
+
* isForceLinkInIframe: true,
|
|
342
|
+
* isOpenLinkInDrawer: false,
|
|
343
|
+
* },
|
|
344
|
+
* {
|
|
345
|
+
* clickableLink: "https://example two.com",
|
|
346
|
+
* clickableLinkTitle: "Example Two Link",
|
|
347
|
+
* isForceLinkInIframe: false,
|
|
348
|
+
* isOpenLinkInDrawer: false,
|
|
349
|
+
* },
|
|
350
|
+
* ],
|
|
351
|
+
* });
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
setClickableLinkMulti({ clickableLinks }: SetClickableLinkMultiInterface): Promise<void | ResponseType$1>;
|
|
355
|
+
/**
|
|
356
|
+
* @summary
|
|
357
|
+
* Updates multiple clickable links for a dropped asset.
|
|
358
|
+
* Pass in an 'existingLinkId' to edit an existing link.
|
|
359
|
+
*
|
|
360
|
+
* @usage
|
|
361
|
+
* ```ts
|
|
362
|
+
* await droppedAsset.updateClickableLinkMulti({
|
|
363
|
+
* clickableLink: "https://example.com",
|
|
364
|
+
* clickableLinkTitle: "Example Link",
|
|
365
|
+
* isForceLinkInIframe: true,
|
|
366
|
+
* isOpenLinkInDrawer: false,
|
|
367
|
+
* existingLinkId: "abcd"
|
|
368
|
+
* });
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
updateClickableLinkMulti({ clickableLink, clickableLinkTitle, isForceLinkInIframe, isOpenLinkInDrawer, existingLinkId, linkSamlQueryParams, }: UpdateClickableLinkMultiInterface): Promise<void | ResponseType$1>;
|
|
372
|
+
/**
|
|
373
|
+
* @summary
|
|
374
|
+
* Removes a clickable link from a dropped asset.
|
|
375
|
+
*
|
|
376
|
+
* @usage
|
|
377
|
+
* ```ts
|
|
378
|
+
* await droppedAsset.removeClickableLink({ linkId: "link-id" });
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
removeClickableLink({ linkId }: RemoveClickableLinkInterface): Promise<void | ResponseType$1>;
|
|
322
382
|
/**
|
|
323
383
|
* @summary
|
|
324
384
|
* Updates text and style of a dropped asset.
|
|
@@ -620,8 +680,7 @@ declare class World extends SDKController implements WorldInterface {
|
|
|
620
680
|
*
|
|
621
681
|
* @usage
|
|
622
682
|
* ```ts
|
|
623
|
-
* await world.fetchDroppedAssetsWithUniqueName();
|
|
624
|
-
* const assets = world.droppedAssets;
|
|
683
|
+
* const droppedAssets = await world.fetchDroppedAssetsWithUniqueName({u niqueName: "exampleUniqueName", isPartial: true });
|
|
625
684
|
* ```
|
|
626
685
|
*/
|
|
627
686
|
fetchDroppedAssetsWithUniqueName({ uniqueName, isPartial, isReversed, }: {
|
|
@@ -1771,7 +1830,9 @@ interface UpdateDroppedAssetInterface {
|
|
|
1771
1830
|
clickableDisplayTextDescription?: string;
|
|
1772
1831
|
clickableDisplayTextHeadline?: string;
|
|
1773
1832
|
flipped?: boolean;
|
|
1833
|
+
isInteractive?: boolean;
|
|
1774
1834
|
isTextTopLayer?: boolean;
|
|
1835
|
+
interactivePublicKey?: string;
|
|
1775
1836
|
layer0?: string;
|
|
1776
1837
|
layer1?: string;
|
|
1777
1838
|
position?: {
|
|
@@ -1801,6 +1862,20 @@ interface UpdateClickTypeInterface {
|
|
|
1801
1862
|
y: number;
|
|
1802
1863
|
};
|
|
1803
1864
|
}
|
|
1865
|
+
interface SetClickableLinkMultiInterface {
|
|
1866
|
+
clickableLinks: DroppedAssetLinkType[];
|
|
1867
|
+
}
|
|
1868
|
+
interface UpdateClickableLinkMultiInterface {
|
|
1869
|
+
clickableLink: string;
|
|
1870
|
+
clickableLinkTitle?: string;
|
|
1871
|
+
isForceLinkInIframe?: boolean;
|
|
1872
|
+
isOpenLinkInDrawer?: boolean;
|
|
1873
|
+
existingLinkId?: string;
|
|
1874
|
+
linkSamlQueryParams?: string;
|
|
1875
|
+
}
|
|
1876
|
+
interface RemoveClickableLinkInterface {
|
|
1877
|
+
linkId: string;
|
|
1878
|
+
}
|
|
1804
1879
|
interface UpdateMediaTypeInterface {
|
|
1805
1880
|
audioRadius: number;
|
|
1806
1881
|
audioSliderVolume: number;
|
|
@@ -2468,6 +2543,9 @@ declare class DroppedAssetFactory extends SDKController {
|
|
|
2468
2543
|
* ```
|
|
2469
2544
|
* const droppedAssetInstance = await DroppedAsset.getWithUniqueName("exampleUniqueName", urlSlug, interactiveSecret, credentials);
|
|
2470
2545
|
* ```
|
|
2546
|
+
*
|
|
2547
|
+
* @notes
|
|
2548
|
+
* This method leverages the handleGetDroppedAssetByUniqueName endpoint in the Public API and assumes there is exactly one dropped asset with matching uniqueName for the given urlSlug.
|
|
2471
2549
|
*/
|
|
2472
2550
|
getWithUniqueName(uniqueName: string, urlSlug: string, interactiveSecret: string, credentials: InteractiveCredentials): Promise<DroppedAsset>;
|
|
2473
2551
|
/**
|
|
@@ -2705,4 +2783,4 @@ declare class WorldFactory extends SDKController {
|
|
|
2705
2783
|
}>;
|
|
2706
2784
|
}
|
|
2707
2785
|
|
|
2708
|
-
export { AnalyticType, AnimationMetaType, Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, AssetType, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetMediaType, DroppedAssetOptionalInterface, DroppedAssetOptions, Ecosystem, EcosystemFactory, EcosystemInterface, EcosystemOptionalInterface, FireToastInterface, FrameType, InteractiveCredentials, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, ResponseType$1 as ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateDroppedAssetInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebRTCConnector, WebRTCConnectorFactory, WebRTCConnectorInterface, WebRTCConnectorOptionalInterface, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldActivityType, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };
|
|
2786
|
+
export { AnalyticType, AnimationMetaType, Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, AssetType, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetLinkType, DroppedAssetMediaType, DroppedAssetOptionalInterface, DroppedAssetOptions, Ecosystem, EcosystemFactory, EcosystemInterface, EcosystemOptionalInterface, FireToastInterface, FrameType, InteractiveCredentials, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, RemoveClickableLinkInterface, ResponseType$1 as ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, SetClickableLinkMultiInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateClickableLinkMultiInterface, UpdateDroppedAssetInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebRTCConnector, WebRTCConnectorFactory, WebRTCConnectorInterface, WebRTCConnectorOptionalInterface, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldActivityType, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };
|
package/dist/index.js
CHANGED
|
@@ -39924,7 +39924,7 @@ class DroppedAsset extends Asset {
|
|
|
39924
39924
|
* const { assetName } = droppedAsset;
|
|
39925
39925
|
* ```
|
|
39926
39926
|
*/
|
|
39927
|
-
updateDroppedAsset({ assetScale, clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, flipped, isTextTopLayer, layer0, layer1, position, specialType, text, textColor, textSize, textWeight, textWidth, uniqueName, yOrderAdjust, }) {
|
|
39927
|
+
updateDroppedAsset({ assetScale, clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, flipped, isInteractive, isTextTopLayer, interactivePublicKey, layer0, layer1, position, specialType, text, textColor, textSize, textWeight, textWidth, uniqueName, yOrderAdjust, }) {
|
|
39928
39928
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39929
39929
|
const params = {
|
|
39930
39930
|
assetScale,
|
|
@@ -39934,7 +39934,9 @@ class DroppedAsset extends Asset {
|
|
|
39934
39934
|
clickableDisplayTextDescription,
|
|
39935
39935
|
clickableDisplayTextHeadline,
|
|
39936
39936
|
flipped,
|
|
39937
|
+
isInteractive,
|
|
39937
39938
|
isTextTopLayer,
|
|
39939
|
+
interactivePublicKey,
|
|
39938
39940
|
layer0,
|
|
39939
39941
|
layer1,
|
|
39940
39942
|
position,
|
|
@@ -40038,7 +40040,6 @@ class DroppedAsset extends Asset {
|
|
|
40038
40040
|
* });
|
|
40039
40041
|
* ```
|
|
40040
40042
|
*/
|
|
40041
|
-
// get dropped asset
|
|
40042
40043
|
updateDataObject(dataObject, options = {}) {
|
|
40043
40044
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40044
40045
|
try {
|
|
@@ -40137,6 +40138,95 @@ class DroppedAsset extends Asset {
|
|
|
40137
40138
|
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.updateClickType" });
|
|
40138
40139
|
}
|
|
40139
40140
|
}
|
|
40141
|
+
/**
|
|
40142
|
+
* @summary
|
|
40143
|
+
* Adds an array of links to an asset. Maximum is 20 links.
|
|
40144
|
+
*
|
|
40145
|
+
* @usage
|
|
40146
|
+
* ```ts
|
|
40147
|
+
* await droppedAsset.setClickableLinkMulti({
|
|
40148
|
+
* clickableLinks: [
|
|
40149
|
+
* {
|
|
40150
|
+
* clickableLink: "https://example_one.com",
|
|
40151
|
+
* clickableLinkTitle: "Example One Link",
|
|
40152
|
+
* isForceLinkInIframe: true,
|
|
40153
|
+
* isOpenLinkInDrawer: false,
|
|
40154
|
+
* },
|
|
40155
|
+
* {
|
|
40156
|
+
* clickableLink: "https://example two.com",
|
|
40157
|
+
* clickableLinkTitle: "Example Two Link",
|
|
40158
|
+
* isForceLinkInIframe: false,
|
|
40159
|
+
* isOpenLinkInDrawer: false,
|
|
40160
|
+
* },
|
|
40161
|
+
* ],
|
|
40162
|
+
* });
|
|
40163
|
+
* ```
|
|
40164
|
+
*/
|
|
40165
|
+
setClickableLinkMulti({ clickableLinks }) {
|
|
40166
|
+
const params = {
|
|
40167
|
+
clickType: DroppedAssetClickType.LINK,
|
|
40168
|
+
clickableLinks,
|
|
40169
|
+
};
|
|
40170
|
+
try {
|
|
40171
|
+
return __classPrivateFieldGet(this, _DroppedAsset_updateDroppedAsset, "f").call(this, params, "set-clickable-link-multi");
|
|
40172
|
+
}
|
|
40173
|
+
catch (error) {
|
|
40174
|
+
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.setClickableLinkMulti" });
|
|
40175
|
+
}
|
|
40176
|
+
}
|
|
40177
|
+
/**
|
|
40178
|
+
* @summary
|
|
40179
|
+
* Updates multiple clickable links for a dropped asset.
|
|
40180
|
+
* Pass in an 'existingLinkId' to edit an existing link.
|
|
40181
|
+
*
|
|
40182
|
+
* @usage
|
|
40183
|
+
* ```ts
|
|
40184
|
+
* await droppedAsset.updateClickableLinkMulti({
|
|
40185
|
+
* clickableLink: "https://example.com",
|
|
40186
|
+
* clickableLinkTitle: "Example Link",
|
|
40187
|
+
* isForceLinkInIframe: true,
|
|
40188
|
+
* isOpenLinkInDrawer: false,
|
|
40189
|
+
* existingLinkId: "abcd"
|
|
40190
|
+
* });
|
|
40191
|
+
* ```
|
|
40192
|
+
*/
|
|
40193
|
+
updateClickableLinkMulti({ clickableLink, clickableLinkTitle, isForceLinkInIframe, isOpenLinkInDrawer, existingLinkId, linkSamlQueryParams, }) {
|
|
40194
|
+
const params = {
|
|
40195
|
+
clickType: DroppedAssetClickType.LINK,
|
|
40196
|
+
clickableLink,
|
|
40197
|
+
clickableLinkTitle,
|
|
40198
|
+
isForceLinkInIframe,
|
|
40199
|
+
isOpenLinkInDrawer,
|
|
40200
|
+
existingLinkId,
|
|
40201
|
+
linkSamlQueryParams,
|
|
40202
|
+
};
|
|
40203
|
+
try {
|
|
40204
|
+
return __classPrivateFieldGet(this, _DroppedAsset_updateDroppedAsset, "f").call(this, params, "update-clickable-link-multi");
|
|
40205
|
+
}
|
|
40206
|
+
catch (error) {
|
|
40207
|
+
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.updateClickableLinkMulti" });
|
|
40208
|
+
}
|
|
40209
|
+
}
|
|
40210
|
+
/**
|
|
40211
|
+
* @summary
|
|
40212
|
+
* Removes a clickable link from a dropped asset.
|
|
40213
|
+
*
|
|
40214
|
+
* @usage
|
|
40215
|
+
* ```ts
|
|
40216
|
+
* await droppedAsset.removeClickableLink({ linkId: "link-id" });
|
|
40217
|
+
* ```
|
|
40218
|
+
*/
|
|
40219
|
+
removeClickableLink({ linkId }) {
|
|
40220
|
+
const params = {
|
|
40221
|
+
linkId,
|
|
40222
|
+
};
|
|
40223
|
+
try {
|
|
40224
|
+
return __classPrivateFieldGet(this, _DroppedAsset_updateDroppedAsset, "f").call(this, params, "remove-clickable-link");
|
|
40225
|
+
}
|
|
40226
|
+
catch (error) {
|
|
40227
|
+
throw this.errorHandler({ error, params, sdkMethod: "DroppedAsset.removeClickableLink" });
|
|
40228
|
+
}
|
|
40229
|
+
}
|
|
40140
40230
|
/**
|
|
40141
40231
|
* @summary
|
|
40142
40232
|
* Updates text and style of a dropped asset.
|
|
@@ -40906,8 +40996,7 @@ class World extends SDKController {
|
|
|
40906
40996
|
*
|
|
40907
40997
|
* @usage
|
|
40908
40998
|
* ```ts
|
|
40909
|
-
* await world.fetchDroppedAssetsWithUniqueName();
|
|
40910
|
-
* const assets = world.droppedAssets;
|
|
40999
|
+
* const droppedAssets = await world.fetchDroppedAssetsWithUniqueName({u niqueName: "exampleUniqueName", isPartial: true });
|
|
40911
41000
|
* ```
|
|
40912
41001
|
*/
|
|
40913
41002
|
fetchDroppedAssetsWithUniqueName({ uniqueName, isPartial = false, isReversed = false, }) {
|
|
@@ -42695,6 +42784,9 @@ class DroppedAssetFactory extends SDKController {
|
|
|
42695
42784
|
* ```
|
|
42696
42785
|
* const droppedAssetInstance = await DroppedAsset.getWithUniqueName("exampleUniqueName", urlSlug, interactiveSecret, credentials);
|
|
42697
42786
|
* ```
|
|
42787
|
+
*
|
|
42788
|
+
* @notes
|
|
42789
|
+
* This method leverages the handleGetDroppedAssetByUniqueName endpoint in the Public API and assumes there is exactly one dropped asset with matching uniqueName for the given urlSlug.
|
|
42698
42790
|
*/
|
|
42699
42791
|
getWithUniqueName(uniqueName, urlSlug, interactiveSecret, credentials) {
|
|
42700
42792
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED