@wix/auto_sdk_instagram_accounts 1.0.15 → 1.0.16
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/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-account-accounts.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,6BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,gDACP,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;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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AAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["disconnectAccount","getInstagramAccount","initiateAccountConnection","listInstagramAccounts","import_rest_modules","WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-account-accounts.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";;;;;;;;;;;;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M,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACyC,oBAAoB,OAAO;AAE1E,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["disconnectAccount","getInstagramAccount","initiateAccountConnection","listInstagramAccounts","import_rest_modules","WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-fe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;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACyC,oBAAoB,OAAO;AAE1E,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
|
1
|
+
{"version":3,"sources":["../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,gDACP,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,MACp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AU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
|
@@ -172,8 +172,18 @@ interface DomainEventBodyOneOf {
|
|
|
172
172
|
}
|
|
173
173
|
interface EntityCreatedEvent {
|
|
174
174
|
entityAsJson?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
triggeredByUndelete?: boolean | null;
|
|
175
180
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
176
181
|
restoreInfo?: RestoreInfo;
|
|
182
|
+
/**
|
|
183
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
additionalMetadataAsJson?: string | null;
|
|
177
187
|
}
|
|
178
188
|
interface RestoreInfo {
|
|
179
189
|
deletedDate?: Date | null;
|
|
@@ -185,10 +195,42 @@ interface EntityUpdatedEvent {
|
|
|
185
195
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
186
196
|
*/
|
|
187
197
|
currentEntityAsJson?: string;
|
|
198
|
+
/**
|
|
199
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
200
|
+
* wont populate it / have any reference to it in the API.
|
|
201
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
202
|
+
* the developer should send only the new (current) entity.
|
|
203
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
204
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
205
|
+
* @internal
|
|
206
|
+
* @deprecated
|
|
207
|
+
*/
|
|
208
|
+
previousEntityAsJson?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
211
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
modifiedFields?: Record<string, any>;
|
|
215
|
+
/**
|
|
216
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
additionalMetadataAsJson?: string | null;
|
|
188
220
|
}
|
|
189
221
|
interface EntityDeletedEvent {
|
|
222
|
+
/**
|
|
223
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
movedToTrash?: boolean | null;
|
|
190
227
|
/** Entity that was deleted. */
|
|
191
228
|
deletedEntityAsJson?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
231
|
+
* @internal
|
|
232
|
+
*/
|
|
233
|
+
additionalMetadataAsJson?: string | null;
|
|
192
234
|
}
|
|
193
235
|
interface ActionEvent {
|
|
194
236
|
bodyAsJson?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../meta.ts","../../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-account-accounts.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";;;;;;;;;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UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACyC,oBAAoB,OAAO;AAE1E,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["disconnectAccount","getInstagramAccount","initiateAccountConnection","listInstagramAccounts","import_rest_modules","WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
|
1
|
+
{"version":3,"sources":["../../../meta.ts","../../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["export * from './src/instagram-feed-v1-instagram-account-accounts.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,6BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,gDACP,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,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E1E,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["disconnectAccount","getInstagramAccount","initiateAccountConnection","listInstagramAccounts","import_rest_modules","WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
|
@@ -172,8 +172,18 @@ interface DomainEventBodyOneOf {
|
|
|
172
172
|
}
|
|
173
173
|
interface EntityCreatedEvent {
|
|
174
174
|
entityAsJson?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
triggeredByUndelete?: boolean | null;
|
|
175
180
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
176
181
|
restoreInfo?: RestoreInfo;
|
|
182
|
+
/**
|
|
183
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
additionalMetadataAsJson?: string | null;
|
|
177
187
|
}
|
|
178
188
|
interface RestoreInfo {
|
|
179
189
|
deletedDate?: Date | null;
|
|
@@ -185,10 +195,42 @@ interface EntityUpdatedEvent {
|
|
|
185
195
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
186
196
|
*/
|
|
187
197
|
currentEntityAsJson?: string;
|
|
198
|
+
/**
|
|
199
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
200
|
+
* wont populate it / have any reference to it in the API.
|
|
201
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
202
|
+
* the developer should send only the new (current) entity.
|
|
203
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
204
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
205
|
+
* @internal
|
|
206
|
+
* @deprecated
|
|
207
|
+
*/
|
|
208
|
+
previousEntityAsJson?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
211
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
modifiedFields?: Record<string, any>;
|
|
215
|
+
/**
|
|
216
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
additionalMetadataAsJson?: string | null;
|
|
188
220
|
}
|
|
189
221
|
interface EntityDeletedEvent {
|
|
222
|
+
/**
|
|
223
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
movedToTrash?: boolean | null;
|
|
190
227
|
/** Entity that was deleted. */
|
|
191
228
|
deletedEntityAsJson?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
231
|
+
* @internal
|
|
232
|
+
*/
|
|
233
|
+
additionalMetadataAsJson?: string | null;
|
|
192
234
|
}
|
|
193
235
|
interface ActionEvent {
|
|
194
236
|
bodyAsJson?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,gDACP,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;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA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BAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACyC,kBAAkB,OAAO;AAExE,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACyC,oBAAoB,OAAO;AAE1E,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/instagram-feed-v1-instagram-account-accounts.http.ts","../../../src/instagram-feed-v1-instagram-account-accounts.types.ts","../../../src/instagram-feed-v1-instagram-account-accounts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixInstagramV1InstagramAccountServiceUrl(\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 'www.wixapis.com': [\n {\n srcPath: '/_api/instagram-accounts/v1',\n destPath: '/v1',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_instagram_accounts';\n\n/** Retrieve hash needed for connection of instagram account to a site. */\nexport function initiateAccountConnection(\n payload: object\n): RequestOptionsFactory<any> {\n function __initiateAccountConnection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.InitiateAccountConnection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/initiate-connection',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __initiateAccountConnection;\n}\n\n/**\n * Disconnect instagram account from a site.\n *\n * Removes stored Long-life token corresponding to the instagram user id.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n function __disconnectAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'DELETE' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.DisconnectAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __disconnectAccount;\n}\n\n/**\n * Get instagram account profile.\n *\n * Returns instagram account profile corresponding to account id.\n */\nexport function getInstagramAccount(\n payload: object\n): RequestOptionsFactory<any> {\n function __getInstagramAccount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn: 'wix.instagram.v1.InstagramAccountService.GetInstagramAccount',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts/{connectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getInstagramAccount;\n}\n\n/**\n * List instagram accounts connected to the site.\n *\n * Returns list of instagram user ids connected to app instance.\n */\nexport function listInstagramAccounts(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInstagramAccounts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.instagram_feed.v1.instagram_account',\n method: 'GET' as any,\n methodFqn:\n 'wix.instagram.v1.InstagramAccountService.ListInstagramAccounts',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixInstagramV1InstagramAccountServiceUrl({\n protoPath: '/v1/instagram-accounts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listInstagramAccounts;\n}\n","export interface InstagramAccount {\n /**\n * The id of the connection\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The revision of the connection\n * @readonly\n */\n revision?: string | null;\n /** The instagram info connected to */\n instagramInfo?: InstagramInfo;\n /** True - account is synchronized with the Meta API. False - in last successful state */\n synchronized?: boolean | null;\n}\n\nexport interface InstagramInfo {\n /**\n * The id of the instagram user\n * @immutable\n * @maxLength 30\n */\n instagramId?: string;\n /**\n * The username of the instagram user\n * @readonly\n * @maxLength 500\n */\n instagramUsername?: string;\n /**\n * Profile picture URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n profilePictureUrl?: string;\n /**\n * Follower count from Instagram\n * @readonly\n */\n followersCount?: number | null;\n /**\n * Media count from Instagram\n * @readonly\n */\n mediaCount?: number | null;\n /**\n * Profile biography from Instagram\n * @readonly\n * @maxLength 500\n */\n biography?: string | null;\n /**\n * Number of accounts this user follows\n * @readonly\n */\n followsCount?: number | null;\n /**\n * Profile name from Instagram\n * @readonly\n * @maxLength 500\n */\n name?: string | null;\n /**\n * Profile website URL from Instagram\n * @readonly\n * @maxLength 2000\n */\n website?: string | null;\n}\n\nexport interface InitiateAccountConnectionRequest {}\n\nexport interface InitiateAccountConnectionResponse {\n /**\n * State parameter for authorization callback\n * @maxLength 256\n */\n connectionParams?: string[];\n}\n\nexport interface CreateAccountRequest {\n /**\n * connection id\n * @readonly\n * @maxLength 256\n */\n authorizationCode?: string;\n /**\n * redirect url\n * @maxLength 256\n */\n redirectUrl?: string;\n}\n\nexport interface CreateAccountResponse {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface DisconnectAccountRequest {\n /**\n * connection id to be disconnected\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface GetInstagramAccountRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId: string;\n}\n\nexport interface GetInstagramAccountResponse {\n /** instagram account information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ListInstagramAccountsRequest {}\n\nexport interface ListInstagramAccountsResponse {\n /** instagram account profile information */\n instagramAccounts?: InstagramAccount[];\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 /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\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 * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\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\nexport interface ConnectAccountByTokenRequest {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n accessToken?: string;\n}\n\nexport interface ConnectAccountByTokenResponse {\n /** instagram account profile information */\n instagramAccount?: InstagramAccount;\n}\n\nexport interface ChangeTokenExpirationDateRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n /** new expiration date */\n expirationDate?: Date | null;\n}\n\nexport interface ChangeTokenExpirationDateResponse {}\n\nexport interface GetLongLivedTokenRequest {\n /**\n * connection id\n * @readonly\n * @format GUID\n */\n connectionId?: string;\n}\n\nexport interface GetLongLivedTokenResponse {\n /**\n * access token received from instagram api\n * @maxLength 255\n */\n token?: string;\n}\n","import * as ambassadorWixInstagramFeedV1InstagramAccount from './instagram-feed-v1-instagram-account-accounts.http.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountTypes from './instagram-feed-v1-instagram-account-accounts.types.js';\nimport * as ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes from './instagram-feed-v1-instagram-account-accounts.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 initiateAccountConnection(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.InitiateAccountConnectionResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.InitiateAccountConnectionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.initiateAccountConnection(\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/initiate-connection',\n pathParams: {},\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 disconnectAccount(): __PublicMethodMetaInfo<\n 'DELETE',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.DisconnectAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.DisconnectAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.disconnectAccount(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/instagram-accounts/{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 getInstagramAccount(): __PublicMethodMetaInfo<\n 'GET',\n { connectionId: string },\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.GetInstagramAccountResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.GetInstagramAccountResponse\n> {\n const payload = { connectionId: ':connectionId' } as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.getInstagramAccount(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/{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 listInstagramAccounts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsRequest,\n ambassadorWixInstagramFeedV1InstagramAccountUniversalTypes.ListInstagramAccountsResponse,\n ambassadorWixInstagramFeedV1InstagramAccountTypes.ListInstagramAccountsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixInstagramFeedV1InstagramAccount.listInstagramAccounts(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',\n pathParams: {},\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 InstagramAccount as InstagramAccountOriginal,\n InstagramInfo as InstagramInfoOriginal,\n InitiateAccountConnectionRequest as InitiateAccountConnectionRequestOriginal,\n InitiateAccountConnectionResponse as InitiateAccountConnectionResponseOriginal,\n CreateAccountRequest as CreateAccountRequestOriginal,\n CreateAccountResponse as CreateAccountResponseOriginal,\n DisconnectAccountRequest as DisconnectAccountRequestOriginal,\n DisconnectAccountResponse as DisconnectAccountResponseOriginal,\n GetInstagramAccountRequest as GetInstagramAccountRequestOriginal,\n GetInstagramAccountResponse as GetInstagramAccountResponseOriginal,\n ListInstagramAccountsRequest as ListInstagramAccountsRequestOriginal,\n ListInstagramAccountsResponse as ListInstagramAccountsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n ConnectAccountByTokenRequest as ConnectAccountByTokenRequestOriginal,\n ConnectAccountByTokenResponse as ConnectAccountByTokenResponseOriginal,\n ChangeTokenExpirationDateRequest as ChangeTokenExpirationDateRequestOriginal,\n ChangeTokenExpirationDateResponse as ChangeTokenExpirationDateResponseOriginal,\n GetLongLivedTokenRequest as GetLongLivedTokenRequestOriginal,\n GetLongLivedTokenResponse as GetLongLivedTokenResponseOriginal,\n} from './instagram-feed-v1-instagram-account-accounts.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,gDACP,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,IAC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AM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,sBAAsB,OAAO;AAE5E,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["WebhookIdentityType","initiateAccountConnection","disconnectAccount","getInstagramAccount","listInstagramAccounts"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_instagram_accounts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"schemas"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.19",
|
|
39
|
+
"@wix/sdk-types": "^1.17.11",
|
|
40
40
|
"zod": "^4.3.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"fqdn": "wix.instagram_feed.v1.instagram_account"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "c9b43adeb9c27c4d67472d36c2a9cfc6b7cb89b265ec78e2f9da3215"
|
|
61
61
|
}
|