@@ -7,7 +7,7 @@ import {BULK_OPERATIONS_MIN_API_VERSION} from './constants.js'
77import { resolveApiVersion } from '../graphql/common.js'
88import { BulkOperationRunQueryMutation } from '../../api/graphql/bulk-operations/generated/bulk-operation-run-query.js'
99import { BulkOperationRunMutationMutation } from '../../api/graphql/bulk-operations/generated/bulk-operation-run-mutation.js'
10- import { OrganizationApp , OrganizationSource } from '../../models/organization.js'
10+ import { OrganizationApp , OrganizationSource , OrganizationStore } from '../../models/organization.js'
1111import { renderSuccess , renderWarning , renderError , renderInfo } from '@shopify/cli-kit/node/ui'
1212import { ensureAuthenticatedAdminAsApp } from '@shopify/cli-kit/node/session'
1313import { inTemporaryDirectory , writeFile } from '@shopify/cli-kit/node/fs'
@@ -24,6 +24,7 @@ vi.mock('../graphql/common.js', async () => {
2424 return {
2525 ...actual ,
2626 resolveApiVersion : vi . fn ( ) ,
27+ validateMutationStore : vi . fn ( ) ,
2728 }
2829} )
2930vi . mock ( '@shopify/cli-kit/node/ui' )
@@ -50,15 +51,14 @@ describe('executeBulkOperation', () => {
5051 } as OrganizationApp
5152
5253 const storeFqdn = 'test-store.myshopify.com'
53- const mockStore = {
54+ const mockStore : OrganizationStore = {
5455 shopId : '123' ,
55- link : 'link ' ,
56+ link : 'https://test-store.myshopify.com/admin ' ,
5657 shopDomain : storeFqdn ,
5758 shopName : 'Test Store' ,
58- transferDisabled : true ,
59+ transferDisabled : false ,
5960 convertableToPartnerTest : false ,
6061 provisionable : true ,
61- storeType : 'APP_DEVELOPMENT' ,
6262 }
6363 const mockAdminSession = { token : 'test-token' , storeFqdn}
6464
@@ -413,7 +413,7 @@ describe('executeBulkOperation', () => {
413413 await executeBulkOperation ( {
414414 organization : mockOrganization ,
415415 remoteApp : mockRemoteApp ,
416- storeFqdn ,
416+ store : mockStore ,
417417 query,
418418 watch : false ,
419419 } )
@@ -440,7 +440,7 @@ describe('executeBulkOperation', () => {
440440 await executeBulkOperation ( {
441441 organization : mockOrganization ,
442442 remoteApp : mockRemoteApp ,
443- storeFqdn ,
443+ store : mockStore ,
444444 query,
445445 watch : false ,
446446 } )
@@ -600,7 +600,7 @@ describe('executeBulkOperation', () => {
600600 await executeBulkOperation ( {
601601 organization : mockOrganization ,
602602 remoteApp : mockRemoteApp ,
603- storeFqdn ,
603+ store : mockStore ,
604604 query,
605605 watch : true ,
606606 } )
@@ -636,7 +636,7 @@ describe('executeBulkOperation', () => {
636636 await executeBulkOperation ( {
637637 organization : mockOrganization ,
638638 remoteApp : mockRemoteApp ,
639- storeFqdn ,
639+ store : mockStore ,
640640 query,
641641 watch : true ,
642642 } )
@@ -672,7 +672,7 @@ describe('executeBulkOperation', () => {
672672 await executeBulkOperation ( {
673673 organization : mockOrganization ,
674674 remoteApp : mockRemoteApp ,
675- storeFqdn ,
675+ store : mockStore ,
676676 query,
677677 watch : true ,
678678 outputFile,
0 commit comments