@wix/auto_sdk_instagram_media 1.0.11 → 1.0.12
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/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +2 -2
- package/build/cjs/schemas.js +6 -6
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +2 -2
- package/build/es/schemas.mjs +6 -6
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +4 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +2 -2
- package/build/internal/cjs/schemas.js +6 -6
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +4 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +2 -2
- package/build/internal/es/schemas.mjs +6 -6
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/instagram-feed-v1-instagram-media-media.universal.ts","../../src/instagram-feed-v1-instagram-media-media.http.ts","../../src/instagram-feed-v1-instagram-media-media.public.ts","../../src/instagram-feed-v1-instagram-media-media.context.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-media-media.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixInstagramFeedV1InstagramMedia from './instagram-feed-v1-instagram-media-media.http.js';\n\nexport interface Media {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /**\n * 2200 is the max length of a caption in Instagram\n * @maxLength 2200\n */\n caption?: string;\n /** The type of the media can be one of [Unknown, Image, Video, CarouselAlbum] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n /** Timestamp of the media */\n timestamp?: Date | null;\n /**\n * Children for CarouselAlbum\n * @maxSize 10\n */\n children?: Children[];\n /**\n * Like count from Instagram\n * @readonly\n */\n likeCount?: string | null;\n /**\n * Comments count from Instagram\n * @readonly\n */\n commentsCount?: string | null;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n CAROUSEL_ALBUM = 'CAROUSEL_ALBUM',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'CAROUSEL_ALBUM';\n\nexport interface Children {\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /** The type of the child media can be one of [Unknown, Image, Video] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface ETagVerificationEvent {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** cursor query */\n cursorQuery?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListInstagramAccountMediaRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListInstagramAccountMediaResponse {\n /** instagram media */\n media?: Media[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface ListMediaCommentsRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListMediaCommentsResponse {\n /** list of comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface Comment {\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n _id?: string;\n /**\n * Commenter username\n * @readonly\n * @maxLength 500\n */\n username?: string;\n /**\n * Comment text\n * @maxLength 2200\n */\n text?: string;\n /**\n * Like count on the comment\n * @readonly\n */\n likeCount?: string | null;\n /** When the comment was posted */\n timestamp?: Date | null;\n /**\n * Number of replies (if available)\n * @readonly\n */\n replyCount?: string | null;\n /**\n * Replies to this comment\n * @readonly\n */\n replies?: Comment[];\n}\n\nexport interface ListCommentRepliesRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListCommentRepliesResponse {\n /** list of reply comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n * @param connectionId - connection id\n * @public\n * @documentationMaturity preview\n * @requiredField connectionId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia\n */\nexport async function listInstagramAccountMedia(\n connectionId: string,\n options?: ListInstagramAccountMediaOptions\n): Promise<\n NonNullablePaths<\n ListInstagramAccountMediaResponse,\n | `media`\n | `media.${number}._id`\n | `media.${number}.mediaId`\n | `media.${number}.caption`\n | `media.${number}.mediaType`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: connectionId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listInstagramAccountMedia(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0]',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['connectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListInstagramAccountMediaOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List top-level comments for a media item.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListMediaComments\n */\nexport async function listMediaComments(\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n): Promise<\n NonNullablePaths<\n ListMediaCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listMediaComments(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListMediaCommentsIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n}\n\nexport interface ListMediaCommentsOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List replies to a comment.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListCommentReplies\n */\nexport async function listCommentReplies(\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n): Promise<\n NonNullablePaths<\n ListCommentRepliesResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n commentId: identifiers?.commentId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listCommentReplies(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n commentId: '$[0].commentId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCommentRepliesIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n}\n\nexport interface ListCommentRepliesOptions {\n /** paging */\n paging?: CursorQuery;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'instagram_integration.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n {\n srcPath: '/_api/instagram-accounts',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_media';\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n */\nexport function listInstagramAccountMedia(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccountMedia({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath: '/v1/instagram-accounts/media/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'media.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listInstagramAccountMedia;\n}\n\n/** List top-level comments for a media item. */\nexport function listMediaComments(payload: object): RequestOptionsFactory<any> {\n function __listMediaComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListMediaComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMediaComments;\n}\n\n/** List replies to a comment. */\nexport function listCommentReplies(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCommentReplies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListCommentReplies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCommentReplies;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ListCommentRepliesIdentifiers,\n ListCommentRepliesOptions,\n ListCommentRepliesResponse,\n ListInstagramAccountMediaOptions,\n ListInstagramAccountMediaResponse,\n ListMediaCommentsIdentifiers,\n ListMediaCommentsOptions,\n ListMediaCommentsResponse,\n listCommentReplies as universalListCommentReplies,\n listInstagramAccountMedia as universalListInstagramAccountMedia,\n listMediaComments as universalListMediaComments,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/instagram' };\n\nexport function listInstagramAccountMedia(\n httpClient: HttpClient\n): ListInstagramAccountMediaSignature {\n return (connectionId: string, options?: ListInstagramAccountMediaOptions) =>\n universalListInstagramAccountMedia(\n connectionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListInstagramAccountMediaSignature {\n /**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n * @param - connection id\n */\n (connectionId: string, options?: ListInstagramAccountMediaOptions): Promise<\n NonNullablePaths<\n ListInstagramAccountMediaResponse,\n | `media`\n | `media.${number}._id`\n | `media.${number}.mediaId`\n | `media.${number}.caption`\n | `media.${number}.mediaType`,\n 4\n >\n >;\n}\n\nexport function listMediaComments(\n httpClient: HttpClient\n): ListMediaCommentsSignature {\n return (\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n ) =>\n universalListMediaComments(\n identifiers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListMediaCommentsSignature {\n /**\n * List top-level comments for a media item.\n */\n (\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n ): Promise<\n NonNullablePaths<\n ListMediaCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n >;\n}\n\nexport function listCommentReplies(\n httpClient: HttpClient\n): ListCommentRepliesSignature {\n return (\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n ) =>\n universalListCommentReplies(\n identifiers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListCommentRepliesSignature {\n /**\n * List replies to a comment.\n */\n (\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n ): Promise<\n NonNullablePaths<\n ListCommentRepliesResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n App,\n Children,\n Comment,\n CursorPaging,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomTag,\n DomainEvent,\n DomainEventBodyOneOf,\n ETagVerificationEvent,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n File,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n ListCommentRepliesIdentifiers,\n ListCommentRepliesOptions,\n ListCommentRepliesRequest,\n ListCommentRepliesResponse,\n ListInstagramAccountMediaOptions,\n ListInstagramAccountMediaRequest,\n ListInstagramAccountMediaResponse,\n ListMediaCommentsIdentifiers,\n ListMediaCommentsOptions,\n ListMediaCommentsRequest,\n ListMediaCommentsResponse,\n Media,\n MediaType,\n MessageEnvelope,\n Page,\n Pages,\n PagingMetadataV2,\n RestoreInfo,\n URI,\n URIs,\n WebhookIdentityType,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\n","import {\n listInstagramAccountMedia as publicListInstagramAccountMedia,\n listMediaComments as publicListMediaComments,\n listCommentReplies as publicListCommentReplies,\n} from './instagram-feed-v1-instagram-media-media.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const listInstagramAccountMedia: MaybeContext<\n BuildRESTFunction<typeof publicListInstagramAccountMedia> &\n typeof publicListInstagramAccountMedia\n> = /*#__PURE__*/ createRESTModule(publicListInstagramAccountMedia);\nexport const listMediaComments: MaybeContext<\n BuildRESTFunction<typeof publicListMediaComments> &\n typeof publicListMediaComments\n> = /*#__PURE__*/ createRESTModule(publicListMediaComments);\nexport const listCommentReplies: MaybeContext<\n BuildRESTFunction<typeof publicListCommentReplies> &\n typeof publicListCommentReplies\n> = /*#__PURE__*/ createRESTModule(publicListCommentReplies);\n\nexport {\n MediaType,\n WebhookIdentityType,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\nexport {\n Media,\n Children,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n Pages,\n URIs,\n ETagVerificationEvent,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n ListInstagramAccountMediaRequest,\n ListInstagramAccountMediaResponse,\n PagingMetadataV2,\n Cursors,\n ListMediaCommentsRequest,\n ListMediaCommentsResponse,\n Comment,\n ListCommentRepliesRequest,\n ListCommentRepliesResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n ListInstagramAccountMediaOptions,\n ListMediaCommentsIdentifiers,\n ListMediaCommentsOptions,\n ListCommentRepliesIdentifiers,\n ListCommentRepliesOptions,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\nexport {\n MediaTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qCAAqC;AAAA,MACnC;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AA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,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACvGA,IAAAC,uBAAiC;AAG1B,IAAMC,6BAGK,2DAAiBA,0BAA+B;AAC3D,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,sBAGK,2DAAiBA,mBAAwB;","names":["listCommentReplies","listInstagramAccountMedia","listMediaComments","import_rest_modules","payload","MediaType","WebhookIdentityType","listInstagramAccountMedia","sdkTransformError","listMediaComments","listCommentReplies","listInstagramAccountMedia","listMediaComments","listCommentReplies","import_rest_modules","listInstagramAccountMedia","listMediaComments","listCommentReplies"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/instagram-feed-v1-instagram-media-media.universal.ts","../../src/instagram-feed-v1-instagram-media-media.http.ts","../../src/instagram-feed-v1-instagram-media-media.public.ts","../../src/instagram-feed-v1-instagram-media-media.context.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-media-media.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixInstagramFeedV1InstagramMedia from './instagram-feed-v1-instagram-media-media.http.js';\n\nexport interface Media {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /**\n * 2200 is the max length of a caption in Instagram\n * @maxLength 2200\n */\n caption?: string;\n /** The type of the media can be one of [Unknown, Image, Video, CarouselAlbum] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n /** Timestamp of the media */\n timestamp?: Date | null;\n /**\n * Children for CarouselAlbum\n * @maxSize 10\n */\n children?: Children[];\n /**\n * Like count from Instagram\n * @readonly\n */\n likeCount?: number | null;\n /**\n * Comments count from Instagram\n * @readonly\n */\n commentsCount?: number | null;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n CAROUSEL_ALBUM = 'CAROUSEL_ALBUM',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'CAROUSEL_ALBUM';\n\nexport interface Children {\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /** The type of the child media can be one of [Unknown, Image, Video] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface ETagVerificationEvent {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** cursor query */\n cursorQuery?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListInstagramAccountMediaRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListInstagramAccountMediaResponse {\n /** instagram media */\n media?: Media[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface ListMediaCommentsRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListMediaCommentsResponse {\n /** list of comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface Comment {\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n _id?: string;\n /**\n * Commenter username\n * @readonly\n * @maxLength 500\n */\n username?: string;\n /**\n * Comment text\n * @maxLength 2200\n */\n text?: string;\n /**\n * Like count on the comment\n * @readonly\n */\n likeCount?: number | null;\n /** When the comment was posted */\n timestamp?: Date | null;\n /**\n * Number of replies (if available)\n * @readonly\n */\n replyCount?: number | null;\n /**\n * Replies to this comment\n * @readonly\n */\n replies?: Comment[];\n}\n\nexport interface ListCommentRepliesRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListCommentRepliesResponse {\n /** list of reply comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n * @param connectionId - connection id\n * @public\n * @documentationMaturity preview\n * @requiredField connectionId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia\n */\nexport async function listInstagramAccountMedia(\n connectionId: string,\n options?: ListInstagramAccountMediaOptions\n): Promise<\n NonNullablePaths<\n ListInstagramAccountMediaResponse,\n | `media`\n | `media.${number}._id`\n | `media.${number}.mediaId`\n | `media.${number}.caption`\n | `media.${number}.mediaType`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: connectionId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listInstagramAccountMedia(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0]',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['connectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListInstagramAccountMediaOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List top-level comments for a media item.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListMediaComments\n */\nexport async function listMediaComments(\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n): Promise<\n NonNullablePaths<\n ListMediaCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listMediaComments(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListMediaCommentsIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n}\n\nexport interface ListMediaCommentsOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List replies to a comment.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListCommentReplies\n */\nexport async function listCommentReplies(\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n): Promise<\n NonNullablePaths<\n ListCommentRepliesResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n commentId: identifiers?.commentId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listCommentReplies(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n commentId: '$[0].commentId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCommentRepliesIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n}\n\nexport interface ListCommentRepliesOptions {\n /** paging */\n paging?: CursorQuery;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'instagram_integration.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n {\n srcPath: '/_api/instagram-accounts',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_media';\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n */\nexport function listInstagramAccountMedia(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccountMedia({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath: '/v1/instagram-accounts/media/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'media.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listInstagramAccountMedia;\n}\n\n/** List top-level comments for a media item. */\nexport function listMediaComments(payload: object): RequestOptionsFactory<any> {\n function __listMediaComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListMediaComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMediaComments;\n}\n\n/** List replies to a comment. */\nexport function listCommentReplies(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCommentReplies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListCommentReplies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCommentReplies;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ListCommentRepliesIdentifiers,\n ListCommentRepliesOptions,\n ListCommentRepliesResponse,\n ListInstagramAccountMediaOptions,\n ListInstagramAccountMediaResponse,\n ListMediaCommentsIdentifiers,\n ListMediaCommentsOptions,\n ListMediaCommentsResponse,\n listCommentReplies as universalListCommentReplies,\n listInstagramAccountMedia as universalListInstagramAccountMedia,\n listMediaComments as universalListMediaComments,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/instagram' };\n\nexport function listInstagramAccountMedia(\n httpClient: HttpClient\n): ListInstagramAccountMediaSignature {\n return (connectionId: string, options?: ListInstagramAccountMediaOptions) =>\n universalListInstagramAccountMedia(\n connectionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListInstagramAccountMediaSignature {\n /**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n * @param - connection id\n */\n (connectionId: string, options?: ListInstagramAccountMediaOptions): Promise<\n NonNullablePaths<\n ListInstagramAccountMediaResponse,\n | `media`\n | `media.${number}._id`\n | `media.${number}.mediaId`\n | `media.${number}.caption`\n | `media.${number}.mediaType`,\n 4\n >\n >;\n}\n\nexport function listMediaComments(\n httpClient: HttpClient\n): ListMediaCommentsSignature {\n return (\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n ) =>\n universalListMediaComments(\n identifiers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListMediaCommentsSignature {\n /**\n * List top-level comments for a media item.\n */\n (\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n ): Promise<\n NonNullablePaths<\n ListMediaCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n >;\n}\n\nexport function listCommentReplies(\n httpClient: HttpClient\n): ListCommentRepliesSignature {\n return (\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n ) =>\n universalListCommentReplies(\n identifiers,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListCommentRepliesSignature {\n /**\n * List replies to a comment.\n */\n (\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n ): Promise<\n NonNullablePaths<\n ListCommentRepliesResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n App,\n Children,\n Comment,\n CursorPaging,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomTag,\n DomainEvent,\n DomainEventBodyOneOf,\n ETagVerificationEvent,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n File,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n ListCommentRepliesIdentifiers,\n ListCommentRepliesOptions,\n ListCommentRepliesRequest,\n ListCommentRepliesResponse,\n ListInstagramAccountMediaOptions,\n ListInstagramAccountMediaRequest,\n ListInstagramAccountMediaResponse,\n ListMediaCommentsIdentifiers,\n ListMediaCommentsOptions,\n ListMediaCommentsRequest,\n ListMediaCommentsResponse,\n Media,\n MediaType,\n MessageEnvelope,\n Page,\n Pages,\n PagingMetadataV2,\n RestoreInfo,\n URI,\n URIs,\n WebhookIdentityType,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\n","import {\n listInstagramAccountMedia as publicListInstagramAccountMedia,\n listMediaComments as publicListMediaComments,\n listCommentReplies as publicListCommentReplies,\n} from './instagram-feed-v1-instagram-media-media.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const listInstagramAccountMedia: MaybeContext<\n BuildRESTFunction<typeof publicListInstagramAccountMedia> &\n typeof publicListInstagramAccountMedia\n> = /*#__PURE__*/ createRESTModule(publicListInstagramAccountMedia);\nexport const listMediaComments: MaybeContext<\n BuildRESTFunction<typeof publicListMediaComments> &\n typeof publicListMediaComments\n> = /*#__PURE__*/ createRESTModule(publicListMediaComments);\nexport const listCommentReplies: MaybeContext<\n BuildRESTFunction<typeof publicListCommentReplies> &\n typeof publicListCommentReplies\n> = /*#__PURE__*/ createRESTModule(publicListCommentReplies);\n\nexport {\n MediaType,\n WebhookIdentityType,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\nexport {\n Media,\n Children,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n Pages,\n URIs,\n ETagVerificationEvent,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n ListInstagramAccountMediaRequest,\n ListInstagramAccountMediaResponse,\n PagingMetadataV2,\n Cursors,\n ListMediaCommentsRequest,\n ListMediaCommentsResponse,\n Comment,\n ListCommentRepliesRequest,\n ListCommentRepliesResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n ListInstagramAccountMediaOptions,\n ListMediaCommentsIdentifiers,\n ListMediaCommentsOptions,\n ListCommentRepliesIdentifiers,\n ListCommentRepliesOptions,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\nexport {\n MediaTypeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './instagram-feed-v1-instagram-media-media.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS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,QACzB,0BAA0B;AAAA,UACxB,cAAc;AAAA,UACd,SAAS;AAAA,UACT,WAAW;AAAA,UACX,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,eAAe,SAAS;AAAA,IAC3B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AErzBO,SAASG,2BACd,YACoC;AACpC,SAAO,CAAC,cAAsB,YAC5BA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAsBO,SAASC,mBACd,YAC4B;AAC5B,SAAO,CACL,aAKA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAyBO,SAASC,oBACd,YAC6B;AAC7B,SAAO,CACL,aAKA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACvGA,IAAAC,uBAAiC;AAG1B,IAAMC,6BAGK,2DAAiBA,0BAA+B;AAC3D,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,sBAGK,2DAAiBA,mBAAwB;","names":["listCommentReplies","listInstagramAccountMedia","listMediaComments","import_rest_modules","payload","MediaType","WebhookIdentityType","listInstagramAccountMedia","sdkTransformError","listMediaComments","listCommentReplies","listInstagramAccountMedia","listMediaComments","listCommentReplies","import_rest_modules","listInstagramAccountMedia","listMediaComments","listCommentReplies"]}
|
|
@@ -44,12 +44,12 @@ interface Media {
|
|
|
44
44
|
* Like count from Instagram
|
|
45
45
|
* @readonly
|
|
46
46
|
*/
|
|
47
|
-
likeCount?:
|
|
47
|
+
likeCount?: number | null;
|
|
48
48
|
/**
|
|
49
49
|
* Comments count from Instagram
|
|
50
50
|
* @readonly
|
|
51
51
|
*/
|
|
52
|
-
commentsCount?:
|
|
52
|
+
commentsCount?: number | null;
|
|
53
53
|
}
|
|
54
54
|
declare enum MediaType {
|
|
55
55
|
UNKNOWN = "UNKNOWN",
|
|
@@ -352,14 +352,14 @@ interface Comment {
|
|
|
352
352
|
* Like count on the comment
|
|
353
353
|
* @readonly
|
|
354
354
|
*/
|
|
355
|
-
likeCount?:
|
|
355
|
+
likeCount?: number | null;
|
|
356
356
|
/** When the comment was posted */
|
|
357
357
|
timestamp?: Date | null;
|
|
358
358
|
/**
|
|
359
359
|
* Number of replies (if available)
|
|
360
360
|
* @readonly
|
|
361
361
|
*/
|
|
362
|
-
replyCount?:
|
|
362
|
+
replyCount?: number | null;
|
|
363
363
|
/**
|
|
364
364
|
* Replies to this comment
|
|
365
365
|
* @readonly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.typings.ts","../../src/instagram-feed-v1-instagram-media-media.universal.ts","../../src/instagram-feed-v1-instagram-media-media.http.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-media-media.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixInstagramFeedV1InstagramMedia from './instagram-feed-v1-instagram-media-media.http.js';\n\nexport interface Media {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /**\n * 2200 is the max length of a caption in Instagram\n * @maxLength 2200\n */\n caption?: string;\n /** The type of the media can be one of [Unknown, Image, Video, CarouselAlbum] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n /** Timestamp of the media */\n timestamp?: Date | null;\n /**\n * Children for CarouselAlbum\n * @maxSize 10\n */\n children?: Children[];\n /**\n * Like count from Instagram\n * @readonly\n */\n likeCount?: string | null;\n /**\n * Comments count from Instagram\n * @readonly\n */\n commentsCount?: string | null;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n CAROUSEL_ALBUM = 'CAROUSEL_ALBUM',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'CAROUSEL_ALBUM';\n\nexport interface Children {\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /** The type of the child media can be one of [Unknown, Image, Video] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface ETagVerificationEvent {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** cursor query */\n cursorQuery?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListInstagramAccountMediaRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListInstagramAccountMediaResponse {\n /** instagram media */\n media?: Media[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface ListMediaCommentsRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListMediaCommentsResponse {\n /** list of comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface Comment {\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n _id?: string;\n /**\n * Commenter username\n * @readonly\n * @maxLength 500\n */\n username?: string;\n /**\n * Comment text\n * @maxLength 2200\n */\n text?: string;\n /**\n * Like count on the comment\n * @readonly\n */\n likeCount?: string | null;\n /** When the comment was posted */\n timestamp?: Date | null;\n /**\n * Number of replies (if available)\n * @readonly\n */\n replyCount?: string | null;\n /**\n * Replies to this comment\n * @readonly\n */\n replies?: Comment[];\n}\n\nexport interface ListCommentRepliesRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListCommentRepliesResponse {\n /** list of reply comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n * @param connectionId - connection id\n * @public\n * @documentationMaturity preview\n * @requiredField connectionId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia\n */\nexport async function listInstagramAccountMedia(\n connectionId: string,\n options?: ListInstagramAccountMediaOptions\n): Promise<\n NonNullablePaths<\n ListInstagramAccountMediaResponse,\n | `media`\n | `media.${number}._id`\n | `media.${number}.mediaId`\n | `media.${number}.caption`\n | `media.${number}.mediaType`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: connectionId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listInstagramAccountMedia(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0]',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['connectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListInstagramAccountMediaOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List top-level comments for a media item.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListMediaComments\n */\nexport async function listMediaComments(\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n): Promise<\n NonNullablePaths<\n ListMediaCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listMediaComments(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListMediaCommentsIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n}\n\nexport interface ListMediaCommentsOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List replies to a comment.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListCommentReplies\n */\nexport async function listCommentReplies(\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n): Promise<\n NonNullablePaths<\n ListCommentRepliesResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n commentId: identifiers?.commentId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listCommentReplies(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n commentId: '$[0].commentId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCommentRepliesIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n}\n\nexport interface ListCommentRepliesOptions {\n /** paging */\n paging?: CursorQuery;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'instagram_integration.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n {\n srcPath: '/_api/instagram-accounts',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_media';\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n */\nexport function listInstagramAccountMedia(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccountMedia({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath: '/v1/instagram-accounts/media/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'media.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listInstagramAccountMedia;\n}\n\n/** List top-level comments for a media item. */\nexport function listMediaComments(payload: object): RequestOptionsFactory<any> {\n function __listMediaComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListMediaComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMediaComments;\n}\n\n/** List replies to a comment. */\nexport function listCommentReplies(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCommentReplies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListCommentReplies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCommentReplies;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAA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AAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,cAAc;AAAA,UACd,SAAS;AAAA,UACT,WAAW;AAAA,UACX,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,eAAe,SAAS;AAAA,IAC3B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["listCommentReplies","listInstagramAccountMedia","listMediaComments","import_rest_modules","payload","MediaType","WebhookIdentityType","listInstagramAccountMedia","sdkTransformError","listMediaComments","listCommentReplies"]}
|
|
1
|
+
{"version":3,"sources":["../../index.typings.ts","../../src/instagram-feed-v1-instagram-media-media.universal.ts","../../src/instagram-feed-v1-instagram-media-media.http.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-media-media.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixInstagramFeedV1InstagramMedia from './instagram-feed-v1-instagram-media-media.http.js';\n\nexport interface Media {\n /**\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /**\n * 2200 is the max length of a caption in Instagram\n * @maxLength 2200\n */\n caption?: string;\n /** The type of the media can be one of [Unknown, Image, Video, CarouselAlbum] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n /** Timestamp of the media */\n timestamp?: Date | null;\n /**\n * Children for CarouselAlbum\n * @maxSize 10\n */\n children?: Children[];\n /**\n * Like count from Instagram\n * @readonly\n */\n likeCount?: number | null;\n /**\n * Comments count from Instagram\n * @readonly\n */\n commentsCount?: number | null;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n CAROUSEL_ALBUM = 'CAROUSEL_ALBUM',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'CAROUSEL_ALBUM';\n\nexport interface Children {\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /** The type of the child media can be one of [Unknown, Image, Video] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface ETagVerificationEvent {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** cursor query */\n cursorQuery?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListInstagramAccountMediaRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListInstagramAccountMediaResponse {\n /** instagram media */\n media?: Media[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface ListMediaCommentsRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListMediaCommentsResponse {\n /** list of comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface Comment {\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n _id?: string;\n /**\n * Commenter username\n * @readonly\n * @maxLength 500\n */\n username?: string;\n /**\n * Comment text\n * @maxLength 2200\n */\n text?: string;\n /**\n * Like count on the comment\n * @readonly\n */\n likeCount?: number | null;\n /** When the comment was posted */\n timestamp?: Date | null;\n /**\n * Number of replies (if available)\n * @readonly\n */\n replyCount?: number | null;\n /**\n * Replies to this comment\n * @readonly\n */\n replies?: Comment[];\n}\n\nexport interface ListCommentRepliesRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListCommentRepliesResponse {\n /** list of reply comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n * @param connectionId - connection id\n * @public\n * @documentationMaturity preview\n * @requiredField connectionId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia\n */\nexport async function listInstagramAccountMedia(\n connectionId: string,\n options?: ListInstagramAccountMediaOptions\n): Promise<\n NonNullablePaths<\n ListInstagramAccountMediaResponse,\n | `media`\n | `media.${number}._id`\n | `media.${number}.mediaId`\n | `media.${number}.caption`\n | `media.${number}.mediaType`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: connectionId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listInstagramAccountMedia(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0]',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['connectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListInstagramAccountMediaOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List top-level comments for a media item.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListMediaComments\n */\nexport async function listMediaComments(\n identifiers: NonNullablePaths<\n ListMediaCommentsIdentifiers,\n `connectionId` | `mediaId`,\n 2\n >,\n options?: ListMediaCommentsOptions\n): Promise<\n NonNullablePaths<\n ListMediaCommentsResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listMediaComments(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListMediaCommentsIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n}\n\nexport interface ListMediaCommentsOptions {\n /** paging */\n paging?: CursorQuery;\n}\n\n/**\n * List replies to a comment.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.commentId\n * @requiredField identifiers.connectionId\n * @requiredField identifiers.mediaId\n * @permissionId INSTAGRAM_ACCOUNTS.GET_MEDIA\n * @applicableIdentity APP\n * @fqn wix.instagram.v1.InstagramMediaService.ListCommentReplies\n */\nexport async function listCommentReplies(\n identifiers: NonNullablePaths<\n ListCommentRepliesIdentifiers,\n `commentId` | `connectionId` | `mediaId`,\n 2\n >,\n options?: ListCommentRepliesOptions\n): Promise<\n NonNullablePaths<\n ListCommentRepliesResponse,\n | `comments`\n | `comments.${number}._id`\n | `comments.${number}.username`\n | `comments.${number}.text`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n connectionId: identifiers?.connectionId,\n mediaId: identifiers?.mediaId,\n commentId: identifiers?.commentId,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixInstagramFeedV1InstagramMedia.listCommentReplies(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n connectionId: '$[0].connectionId',\n mediaId: '$[0].mediaId',\n commentId: '$[0].commentId',\n paging: '$[1].paging',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCommentRepliesIdentifiers {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n}\n\nexport interface ListCommentRepliesOptions {\n /** paging */\n paging?: CursorQuery;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'instagram_integration.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n {\n srcPath: '/_api/instagram-accounts',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_media';\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n */\nexport function listInstagramAccountMedia(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccountMedia({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath: '/v1/instagram-accounts/media/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'media.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listInstagramAccountMedia;\n}\n\n/** List top-level comments for a media item. */\nexport function listMediaComments(payload: object): RequestOptionsFactory<any> {\n function __listMediaComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListMediaComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMediaComments;\n}\n\n/** List replies to a comment. */\nexport function listCommentReplies(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCommentReplies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListCommentReplies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCommentReplies;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,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AAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,cAAc;AAAA,UACd,SAAS;AAAA,UACT,WAAW;AAAA,UACX,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,eAAe,SAAS;AAAA,IAC3B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["listCommentReplies","listInstagramAccountMedia","listMediaComments","import_rest_modules","payload","MediaType","WebhookIdentityType","listInstagramAccountMedia","sdkTransformError","listMediaComments","listCommentReplies"]}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -45,12 +45,12 @@ interface Media {
|
|
|
45
45
|
* Like count from Instagram
|
|
46
46
|
* @readonly
|
|
47
47
|
*/
|
|
48
|
-
likeCount?:
|
|
48
|
+
likeCount?: number | null;
|
|
49
49
|
/**
|
|
50
50
|
* Comments count from Instagram
|
|
51
51
|
* @readonly
|
|
52
52
|
*/
|
|
53
|
-
commentsCount?:
|
|
53
|
+
commentsCount?: number | null;
|
|
54
54
|
}
|
|
55
55
|
declare enum MediaType {
|
|
56
56
|
UNKNOWN = "UNKNOWN",
|
|
@@ -353,14 +353,14 @@ interface Comment {
|
|
|
353
353
|
* Like count on the comment
|
|
354
354
|
* @readonly
|
|
355
355
|
*/
|
|
356
|
-
likeCount?:
|
|
356
|
+
likeCount?: number | null;
|
|
357
357
|
/** When the comment was posted */
|
|
358
358
|
timestamp?: Date | null;
|
|
359
359
|
/**
|
|
360
360
|
* Number of replies (if available)
|
|
361
361
|
* @readonly
|
|
362
362
|
*/
|
|
363
|
-
replyCount?:
|
|
363
|
+
replyCount?: number | null;
|
|
364
364
|
/**
|
|
365
365
|
* Replies to this comment
|
|
366
366
|
* @readonly
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/instagram-feed-v1-instagram-media-media.http.ts","../../src/instagram-feed-v1-instagram-media-media.types.ts","../../src/instagram-feed-v1-instagram-media-media.meta.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-media-media.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'instagram_integration.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n {\n srcPath: '/_api/instagram-accounts',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_media';\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n */\nexport function listInstagramAccountMedia(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccountMedia({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath: '/v1/instagram-accounts/media/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'media.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listInstagramAccountMedia;\n}\n\n/** List top-level comments for a media item. */\nexport function listMediaComments(payload: object): RequestOptionsFactory<any> {\n function __listMediaComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListMediaComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMediaComments;\n}\n\n/** List replies to a comment. */\nexport function listCommentReplies(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCommentReplies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListCommentReplies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCommentReplies;\n}\n","export interface Media {\n /**\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /**\n * 2200 is the max length of a caption in Instagram\n * @maxLength 2200\n */\n caption?: string;\n /** The type of the media can be one of [Unknown, Image, Video, CarouselAlbum] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n /** Timestamp of the media */\n timestamp?: Date | null;\n /**\n * Children for CarouselAlbum\n * @maxSize 10\n */\n children?: Children[];\n /**\n * Like count from Instagram\n * @readonly\n */\n likeCount?: string | null;\n /**\n * Comments count from Instagram\n * @readonly\n */\n commentsCount?: string | null;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n CAROUSEL_ALBUM = 'CAROUSEL_ALBUM',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'CAROUSEL_ALBUM';\n\nexport interface Children {\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /** The type of the child media can be one of [Unknown, Image, Video] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface ETagVerificationEvent {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** cursor query */\n cursorQuery?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListInstagramAccountMediaRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListInstagramAccountMediaResponse {\n /** instagram media */\n media?: Media[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface ListMediaCommentsRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListMediaCommentsResponse {\n /** list of comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface Comment {\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n id?: string;\n /**\n * Commenter username\n * @readonly\n * @maxLength 500\n */\n username?: string;\n /**\n * Comment text\n * @maxLength 2200\n */\n text?: string;\n /**\n * Like count on the comment\n * @readonly\n */\n likeCount?: string | null;\n /** When the comment was posted */\n timestamp?: Date | null;\n /**\n * Number of replies (if available)\n * @readonly\n */\n replyCount?: string | null;\n /**\n * Replies to this comment\n * @readonly\n */\n replies?: Comment[];\n}\n\nexport interface ListCommentRepliesRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListCommentRepliesResponse {\n /** list of reply comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramMedia from './instagram-feed-v1-instagram-media-media.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramMediaTypes from './instagram-feed-v1-instagram-media-media.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes from './instagram-feed-v1-instagram-media-media.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listInstagramAccountMedia(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListInstagramAccountMediaRequest,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListInstagramAccountMediaRequest,\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListInstagramAccountMediaResponse,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListInstagramAccountMediaResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramMedia.listInstagramAccountMedia(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instagram-accounts/media/{connectionId}',\n pathParams: { connectionId: 'connectionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listMediaComments(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string; mediaId: string },\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListMediaCommentsRequest,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListMediaCommentsRequest,\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListMediaCommentsResponse,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListMediaCommentsResponse\n> {\n const payload = { connectionId: ':connectionId', mediaId: ':mediaId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramMedia.listMediaComments(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n pathParams: { connectionId: 'connectionId', mediaId: 'mediaId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listCommentReplies(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string; mediaId: string; commentId: string },\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListCommentRepliesRequest,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListCommentRepliesRequest,\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListCommentRepliesResponse,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListCommentRepliesResponse\n> {\n const payload = {\n connectionId: ':connectionId',\n mediaId: ':mediaId',\n commentId: ':commentId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramMedia.listCommentReplies(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n pathParams: {\n connectionId: 'connectionId',\n mediaId: 'mediaId',\n commentId: 'commentId',\n },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Media as MediaOriginal,\n MediaType as MediaTypeOriginal,\n MediaTypeWithLiterals as MediaTypeWithLiteralsOriginal,\n Children as ChildrenOriginal,\n InvalidateCache as InvalidateCacheOriginal,\n InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal,\n App as AppOriginal,\n Page as PageOriginal,\n URI as URIOriginal,\n File as FileOriginal,\n CustomTag as CustomTagOriginal,\n Pages as PagesOriginal,\n URIs as URIsOriginal,\n ETagVerificationEvent as ETagVerificationEventOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n CursorPaging as CursorPagingOriginal,\n ListInstagramAccountMediaRequest as ListInstagramAccountMediaRequestOriginal,\n ListInstagramAccountMediaResponse as ListInstagramAccountMediaResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n ListMediaCommentsRequest as ListMediaCommentsRequestOriginal,\n ListMediaCommentsResponse as ListMediaCommentsResponseOriginal,\n Comment as CommentOriginal,\n ListCommentRepliesRequest as ListCommentRepliesRequestOriginal,\n ListCommentRepliesResponse as ListCommentRepliesResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './instagram-feed-v1-instagram-media-media.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qCAAqC;AAAA,MACnC;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MAC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S;AAAA,MACT,WAAW;AAAA,IACb;AAAA,IACA,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["listCommentReplies","listInstagramAccountMedia","listMediaComments","import_rest_modules","payload","MediaType","WebhookIdentityType","listInstagramAccountMedia","listMediaComments","listCommentReplies"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/instagram-feed-v1-instagram-media-media.http.ts","../../src/instagram-feed-v1-instagram-media-media.types.ts","../../src/instagram-feed-v1-instagram-media-media.meta.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-media-media.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramMediaServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'instagram_integration.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/instagram-accounts',\n destPath: '',\n },\n {\n srcPath: '/_api/instagram-accounts',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_media';\n\n/**\n * Get media from instagram account.\n *\n * Returns list of instagram media including all albums content.\n */\nexport function listInstagramAccountMedia(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccountMedia({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramMediaService.ListInstagramAccountMedia',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath: '/v1/instagram-accounts/media/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'media.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listInstagramAccountMedia;\n}\n\n/** List top-level comments for a media item. */\nexport function listMediaComments(payload: object): RequestOptionsFactory<any> {\n function __listMediaComments({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListMediaComments',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listMediaComments;\n}\n\n/** List replies to a comment. */\nexport function listCommentReplies(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCommentReplies({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_media',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramMediaService.ListCommentReplies',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramMediaServiceUrl({\n protoPath:\n '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'comments.timestamp' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCommentReplies;\n}\n","export interface Media {\n /**\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /**\n * 2200 is the max length of a caption in Instagram\n * @maxLength 2200\n */\n caption?: string;\n /** The type of the media can be one of [Unknown, Image, Video, CarouselAlbum] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n /** Timestamp of the media */\n timestamp?: Date | null;\n /**\n * Children for CarouselAlbum\n * @maxSize 10\n */\n children?: Children[];\n /**\n * Like count from Instagram\n * @readonly\n */\n likeCount?: number | null;\n /**\n * Comments count from Instagram\n * @readonly\n */\n commentsCount?: number | null;\n}\n\nexport enum MediaType {\n UNKNOWN = 'UNKNOWN',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n CAROUSEL_ALBUM = 'CAROUSEL_ALBUM',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'UNKNOWN'\n | 'IMAGE'\n | 'VIDEO'\n | 'CAROUSEL_ALBUM';\n\nexport interface Children {\n /**\n * The id of the media\n * @maxLength 30\n */\n mediaId?: string;\n /** The type of the child media can be one of [Unknown, Image, Video] */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Base media url\n * @maxLength 2000\n */\n mediaUrl?: string | null;\n /**\n * Permalink to post\n * @maxLength 2000\n */\n permalink?: string | null;\n /**\n * Thumbnail url\n * @maxLength 2000\n */\n thumbnailUrl?: string | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n /**\n * Optional caller-provided ID for tracking this invalidation through the system.\n * When set, the corresponding CDN purge completion event will include this ID,\n * allowing you to confirm when the invalidation has fully propagated.\n * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n * @maxLength 256\n */\n correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /** Invalidate by multiple page ids */\n pages?: Pages;\n /** Invalidate by multiple URI paths */\n uris?: URIs;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface Pages {\n /**\n * the msid the pages are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by multiple Page IDs in a single message\n * @maxSize 100\n * @minLength 1\n */\n pageIds?: string[];\n}\n\nexport interface URIs {\n /**\n * the msid the URIs are on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @maxSize 100\n * @minLength 1\n */\n uriPaths?: string[];\n}\n\nexport interface ETagVerificationEvent {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** cursor query */\n cursorQuery?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListInstagramAccountMediaRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListInstagramAccountMediaResponse {\n /** instagram media */\n media?: Media[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface ListMediaCommentsRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListMediaCommentsResponse {\n /** list of comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface Comment {\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n id?: string;\n /**\n * Commenter username\n * @readonly\n * @maxLength 500\n */\n username?: string;\n /**\n * Comment text\n * @maxLength 2200\n */\n text?: string;\n /**\n * Like count on the comment\n * @readonly\n */\n likeCount?: number | null;\n /** When the comment was posted */\n timestamp?: Date | null;\n /**\n * Number of replies (if available)\n * @readonly\n */\n replyCount?: number | null;\n /**\n * Replies to this comment\n * @readonly\n */\n replies?: Comment[];\n}\n\nexport interface ListCommentRepliesRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n /**\n * Instagram media id\n * @readonly\n * @maxLength 30\n */\n mediaId: string;\n /**\n * Instagram comment id\n * @readonly\n * @maxLength 30\n */\n commentId: string;\n /** paging */\n paging?: CursorQuery;\n}\n\nexport interface ListCommentRepliesResponse {\n /** list of reply comments */\n comments?: Comment[];\n /** paging metadata */\n paging?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramMedia from './instagram-feed-v1-instagram-media-media.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramMediaTypes from './instagram-feed-v1-instagram-media-media.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes from './instagram-feed-v1-instagram-media-media.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listInstagramAccountMedia(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListInstagramAccountMediaRequest,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListInstagramAccountMediaRequest,\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListInstagramAccountMediaResponse,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListInstagramAccountMediaResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramMedia.listInstagramAccountMedia(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instagram-accounts/media/{connectionId}',\n pathParams: { connectionId: 'connectionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listMediaComments(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string; mediaId: string },\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListMediaCommentsRequest,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListMediaCommentsRequest,\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListMediaCommentsResponse,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListMediaCommentsResponse\n> {\n const payload = { connectionId: ':connectionId', mediaId: ':mediaId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramMedia.listMediaComments(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}',\n pathParams: { connectionId: 'connectionId', mediaId: 'mediaId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listCommentReplies(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string; mediaId: string; commentId: string },\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListCommentRepliesRequest,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListCommentRepliesRequest,\n ambassadorWixInstagramFeedV1InstagramMediaUniversalTypes.ListCommentRepliesResponse,\n ambassadorWixInstagramFeedV1InstagramMediaTypes.ListCommentRepliesResponse\n> {\n const payload = {\n connectionId: ':connectionId',\n mediaId: ':mediaId',\n commentId: ':commentId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramMedia.listCommentReplies(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/instagram-accounts/media/{connectionId}/comments/{mediaId}/replies/{commentId}',\n pathParams: {\n connectionId: 'connectionId',\n mediaId: 'mediaId',\n commentId: 'commentId',\n },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Media as MediaOriginal,\n MediaType as MediaTypeOriginal,\n MediaTypeWithLiterals as MediaTypeWithLiteralsOriginal,\n Children as ChildrenOriginal,\n InvalidateCache as InvalidateCacheOriginal,\n InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal,\n App as AppOriginal,\n Page as PageOriginal,\n URI as URIOriginal,\n File as FileOriginal,\n CustomTag as CustomTagOriginal,\n Pages as PagesOriginal,\n URIs as URIsOriginal,\n ETagVerificationEvent as ETagVerificationEventOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n CursorPaging as CursorPagingOriginal,\n ListInstagramAccountMediaRequest as ListInstagramAccountMediaRequestOriginal,\n ListInstagramAccountMediaResponse as ListInstagramAccountMediaResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n ListMediaCommentsRequest as ListMediaCommentsRequestOriginal,\n ListMediaCommentsResponse as ListMediaCommentsResponseOriginal,\n Comment as CommentOriginal,\n ListCommentRepliesRequest as ListCommentRepliesRequestOriginal,\n ListCommentRepliesResponse as ListCommentRepliesResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './instagram-feed-v1-instagram-media-media.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;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AAEO,SAASC,sBAOd;AACA,QAAM,UAAU;AAAA,IACd,cAAc;AAAA,IACd,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAEA,QAAM,oBACuC,mBAAmB,OAAO;AAEvE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY;AAAA,MACV,cAAc;AAAA,MACd,SAAS;AAAA,MACT,WAAW;AAAA,IACb;AAAA,IACA,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["listCommentReplies","listInstagramAccountMedia","listMediaComments","import_rest_modules","payload","MediaType","WebhookIdentityType","listInstagramAccountMedia","listMediaComments","listCommentReplies"]}
|