| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- import {
- assetFragment,
- collectionFragment,
- countryFragment,
- orderWithModificationsFragment,
- } from './fragments-admin';
- import { graphql } from './graphql-admin';
- export const searchProductsAdminDocument = graphql(`
- query SearchProductsAdmin($input: SearchInput!) {
- search(input: $input) {
- totalItems
- items {
- enabled
- productId
- productName
- slug
- description
- productVariantId
- productVariantName
- sku
- }
- }
- }
- `);
- export const getOrderWithSellerOrdersDocument = graphql(`
- query GetOrderWithSellerOrders($id: ID!) {
- order(id: $id) {
- id
- code
- state
- sellerOrders {
- id
- aggregateOrderId
- lines {
- id
- productVariant {
- id
- name
- }
- }
- shippingLines {
- id
- shippingMethod {
- id
- code
- }
- }
- }
- lines {
- id
- productVariant {
- id
- name
- }
- }
- shippingLines {
- id
- shippingMethod {
- id
- code
- }
- }
- }
- }
- `);
- export const disableProductDocument = graphql(`
- mutation DisableProduct($id: ID!) {
- updateProduct(input: { id: $id, enabled: false }) {
- id
- }
- }
- `);
- export const modifyOrderDocument = graphql(
- `
- mutation ModifyOrder($input: ModifyOrderInput!) {
- modifyOrder(input: $input) {
- ...OrderWithModifications
- ... on ErrorResult {
- errorCode
- message
- }
- }
- }
- `,
- [orderWithModificationsFragment],
- );
- export const getTagListDocument = graphql(`
- query GetTagList($options: TagListOptions) {
- tags(options: $options) {
- items {
- id
- value
- }
- totalItems
- }
- }
- `);
- export const getTagDocument = graphql(`
- query GetTag($id: ID!) {
- tag(id: $id) {
- id
- value
- }
- }
- `);
- export const createTagDocument = graphql(`
- mutation CreateTag($input: CreateTagInput!) {
- createTag(input: $input) {
- id
- value
- }
- }
- `);
- export const updateTagDocument = graphql(`
- mutation UpdateTag($input: UpdateTagInput!) {
- updateTag(input: $input) {
- id
- value
- }
- }
- `);
- export const deleteTagDocument = graphql(`
- mutation DeleteTag($id: ID!) {
- deleteTag(id: $id) {
- message
- result
- }
- }
- `);
- export const getCountryDocument = graphql(
- `
- query GetCountry($id: ID!) {
- country(id: $id) {
- ...Country
- }
- }
- `,
- [countryFragment],
- );
- export const createCountryDocument = graphql(
- `
- mutation CreateCountry($input: CreateCountryInput!) {
- createCountry(input: $input) {
- ...Country
- }
- }
- `,
- [countryFragment],
- );
- export const deleteCountryDocument = graphql(`
- mutation DeleteCountry($id: ID!) {
- deleteCountry(id: $id) {
- result
- message
- }
- }
- `);
- export const reindexDocument = graphql(`
- mutation Reindex {
- reindex {
- id
- }
- }
- `);
- export const searchGetAssetsDocument = graphql(`
- query SearchGetAssets($input: SearchInput!) {
- search(input: $input) {
- totalItems
- items {
- productId
- productVariantId
- productName
- productVariantName
- productAsset {
- id
- preview
- focalPoint {
- x
- y
- }
- }
- productVariantAsset {
- id
- preview
- focalPoint {
- x
- y
- }
- }
- }
- }
- }
- `);
- export const searchGetPricesDocument = graphql(`
- query SearchGetPrices($input: SearchInput!) {
- search(input: $input) {
- items {
- price {
- ... on PriceRange {
- min
- max
- }
- ... on SinglePrice {
- value
- }
- }
- priceWithTax {
- ... on PriceRange {
- min
- max
- }
- ... on SinglePrice {
- value
- }
- }
- }
- }
- }
- `);
- export const syncCustomPermissionsDocument = graphql(`
- mutation Sync {
- syncWishlist
- }
- `);
- export const crudReadDocument = graphql(`
- query CrudRead {
- wishlist
- }
- `);
- export const crudCreateDocument = graphql(`
- mutation CrudCreate {
- createWishlist
- }
- `);
- export const crudUpdateDocument = graphql(`
- mutation CrudUpdate {
- updateWishlist
- }
- `);
- export const crudDeleteDocument = graphql(`
- mutation CrudDelete {
- deleteWishlist
- }
- `);
- export const getTaxCategoryListDocument = graphql(`
- query GetTaxCategoryList {
- taxCategories {
- items {
- id
- name
- isDefault
- }
- }
- }
- `);
- export const getTaxCategoryDocument = graphql(`
- query GetTaxCategory($id: ID!) {
- taxCategory(id: $id) {
- id
- name
- isDefault
- }
- }
- `);
- export const createTaxCategoryDocument = graphql(`
- mutation CreateTaxCategory($input: CreateTaxCategoryInput!) {
- createTaxCategory(input: $input) {
- id
- name
- isDefault
- }
- }
- `);
- export const updateTaxCategoryDocument = graphql(`
- mutation UpdateTaxCategory($input: UpdateTaxCategoryInput!) {
- updateTaxCategory(input: $input) {
- id
- name
- isDefault
- }
- }
- `);
- export const deleteTaxCategoryDocument = graphql(`
- mutation DeleteTaxCategory($id: ID!) {
- deleteTaxCategory(id: $id) {
- result
- message
- }
- }
- `);
- export const getFulfillmentHandlersDocument = graphql(`
- query GetFulfillmentHandlers {
- fulfillmentHandlers {
- code
- description
- args {
- name
- type
- description
- label
- ui
- }
- }
- }
- `);
- export const getCollectionWithAssetsDocument = graphql(
- `
- query GetCollectionWithAssets($id: ID!) {
- collection(id: $id) {
- ...Collection
- }
- }
- `,
- [collectionFragment],
- );
- export const assignAssetsToChannelDocument = graphql(
- `
- mutation assignAssetsToChannel($input: AssignAssetsToChannelInput!) {
- assignAssetsToChannel(input: $input) {
- ...Asset
- }
- }
- `,
- [assetFragment],
- );
- export const canCreateCustomerDocument = graphql(`
- mutation CanCreateCustomer($input: CreateCustomerInput!) {
- createCustomer(input: $input) {
- ... on Customer {
- id
- }
- }
- }
- `);
- export const getCustomerCountDocument = graphql(`
- query GetCustomerCount {
- customers {
- totalItems
- }
- }
- `);
- export const getProductWithTransactionsDocument = graphql(`
- query GetProductWithTransactions($id: ID!) {
- product(id: $id) {
- id
- transactions {
- id
- amount
- description
- }
- }
- }
- `);
- export const deepFieldResolutionTestQueryDocument = graphql(`
- query DeepFieldResolutionTestQuery {
- product(id: "T_1") {
- variants {
- taxRateApplied {
- customerGroup {
- customers {
- items {
- id
- emailAddress
- }
- }
- }
- }
- }
- }
- }
- `);
- export const issue2097QueryDocument = graphql(`
- query Issue2097 {
- ownerProtectedThing
- publicThing
- }
- `);
- export const testGetStockLocationsListDocument = graphql(`
- query TestGetStockLocationsList($options: StockLocationListOptions) {
- stockLocations(options: $options) {
- items {
- id
- name
- description
- }
- totalItems
- }
- }
- `);
- export const testCreateStockLocationDocument = graphql(`
- mutation TestCreateStockLocation($input: CreateStockLocationInput!) {
- createStockLocation(input: $input) {
- id
- name
- description
- }
- }
- `);
- export const testUpdateStockLocationDocument = graphql(`
- mutation TestUpdateStockLocation($input: UpdateStockLocationInput!) {
- updateStockLocation(input: $input) {
- id
- name
- description
- }
- }
- `);
- export const testDeleteStockLocationDocument = graphql(`
- mutation TestDeleteStockLocation($input: DeleteStockLocationInput!) {
- deleteStockLocation(input: $input) {
- result
- message
- }
- }
- `);
- export const testGetStockLevelsForVariantDocument = graphql(`
- query TestGetStockLevelsForVariant($id: ID!) {
- productVariant(id: $id) {
- id
- stockLevels {
- stockOnHand
- stockAllocated
- stockLocationId
- }
- }
- }
- `);
- export const testSetStockLevelInLocationDocument = graphql(`
- mutation TestSetStockLevelInLocation($input: UpdateProductVariantInput!) {
- updateProductVariants(input: [$input]) {
- id
- stockLevels {
- stockOnHand
- stockAllocated
- stockLocationId
- }
- }
- }
- `);
- export const testAssignStockLocationToChannelDocument = graphql(`
- mutation TestAssignStockLocationToChannel($input: AssignStockLocationsToChannelInput!) {
- assignStockLocationsToChannel(input: $input) {
- id
- name
- }
- }
- `);
- export const testRemoveStockLocationsFromChannelDocument = graphql(`
- mutation TestRemoveStockLocationsFromChannel($input: RemoveStockLocationsFromChannelInput!) {
- removeStockLocationsFromChannel(input: $input) {
- id
- name
- }
- }
- `);
|