@shopify/shop-minis-cli 0.0.37 → 0.0.82
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/.eslintrc.cjs +78 -0
- package/.vscode/extensions.json +3 -0
- package/.vscode/launch.json +29 -0
- package/.vscode/settings.json +8 -0
- package/.vscode/shop-minis-cli.code-workspace +8 -0
- package/build/commands/cancel-submission/cancel-submission.d.ts +1 -0
- package/build/commands/cancel-submission/cancel-submission.js +57 -0
- package/build/commands/cancel-submission/cancel-submission.js.map +1 -0
- package/build/commands/cancel-submission/index.d.ts +2 -0
- package/build/commands/cancel-submission/index.js +18 -0
- package/build/commands/cancel-submission/index.js.map +1 -0
- package/build/commands/cancel-submission/types.d.ts +3 -0
- package/build/commands/cancel-submission/types.js +2 -0
- package/build/commands/cancel-submission/types.js.map +1 -0
- package/build/commands/check-submission/index.d.ts +2 -0
- package/build/commands/check-submission/index.js +55 -0
- package/build/commands/check-submission/index.js.map +1 -0
- package/build/commands/check-submission/types.d.ts +3 -0
- package/build/commands/check-submission/types.js +2 -0
- package/build/commands/check-submission/types.js.map +1 -0
- package/build/commands/codemod/index.d.ts +3 -0
- package/build/commands/codemod/index.js +47 -0
- package/build/commands/codemod/index.js.map +1 -0
- package/build/commands/codemod/releases/index.d.ts +7 -0
- package/build/commands/codemod/releases/index.js +58 -0
- package/build/commands/codemod/releases/index.js.map +1 -0
- package/build/commands/codemod/releases/types.d.ts +9 -0
- package/build/commands/codemod/releases/types.js +2 -0
- package/build/commands/codemod/releases/types.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-42/index.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-42/index.js +46 -0
- package/build/commands/codemod/releases/v0-0-42/index.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-42/reset-files.d.ts +7 -0
- package/build/commands/codemod/releases/v0-0-42/reset-files.js +83 -0
- package/build/commands/codemod/releases/v0-0-42/reset-files.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-43.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-43.js +32 -0
- package/build/commands/codemod/releases/v0-0-43.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-44.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-44.js +214 -0
- package/build/commands/codemod/releases/v0-0-44.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-45.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-45.js +23 -0
- package/build/commands/codemod/releases/v0-0-45.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-50.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-50.js +34 -0
- package/build/commands/codemod/releases/v0-0-50.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-54.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-54.js +70 -0
- package/build/commands/codemod/releases/v0-0-54.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-56.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-56.js +48 -0
- package/build/commands/codemod/releases/v0-0-56.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-57.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-57.js +41 -0
- package/build/commands/codemod/releases/v0-0-57.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-58.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-58.js +68 -0
- package/build/commands/codemod/releases/v0-0-58.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-61.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-61.js +30 -0
- package/build/commands/codemod/releases/v0-0-61.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-63.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-63.js +42 -0
- package/build/commands/codemod/releases/v0-0-63.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-64.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-64.js +47 -0
- package/build/commands/codemod/releases/v0-0-64.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-75.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-75.js +30 -0
- package/build/commands/codemod/releases/v0-0-75.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-76.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-76.js +32 -0
- package/build/commands/codemod/releases/v0-0-76.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-77.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-77.js +39 -0
- package/build/commands/codemod/releases/v0-0-77.js.map +1 -0
- package/build/commands/codemod/releases/v0-0-79.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-79.js +35 -0
- package/build/commands/codemod/releases/v0-0-79.js.map +1 -0
- package/build/commands/config.d.ts +14 -0
- package/build/commands/config.js +42 -0
- package/build/commands/config.js.map +1 -0
- package/build/commands/create-mini/index.js +84 -68
- package/build/commands/create-mini/index.js.map +1 -1
- package/build/commands/create-mini/utils/template-app.d.ts +1 -1
- package/build/commands/create-mini/utils/template-app.js +38 -38
- package/build/commands/create-mini/utils/template-app.js.map +1 -1
- package/build/commands/dev/index.d.ts +3 -0
- package/build/commands/dev/index.js +51 -22
- package/build/commands/dev/index.js.map +1 -1
- package/build/commands/dev/utils/android.d.ts +6 -4
- package/build/commands/dev/utils/android.js +55 -67
- package/build/commands/dev/utils/android.js.map +1 -1
- package/build/commands/dev/utils/binaries.d.ts +2 -80
- package/build/commands/dev/utils/binaries.js +10 -166
- package/build/commands/dev/utils/binaries.js.map +1 -1
- package/build/commands/dev/utils/build-type.d.ts +2 -0
- package/build/commands/dev/utils/build-type.js +14 -0
- package/build/commands/dev/utils/build-type.js.map +1 -0
- package/build/commands/dev/utils/deeplink.d.ts +3 -3
- package/build/commands/dev/utils/deeplink.js +13 -18
- package/build/commands/dev/utils/deeplink.js.map +1 -1
- package/build/commands/dev/utils/interactive-terminal.d.ts +4 -2
- package/build/commands/dev/utils/interactive-terminal.js +66 -107
- package/build/commands/dev/utils/interactive-terminal.js.map +1 -1
- package/build/commands/dev/utils/metro/metro-config.js +17 -20
- package/build/commands/dev/utils/metro/metro-config.js.map +1 -1
- package/build/commands/dev/utils/metro/metro-reporter.d.ts +3 -4
- package/build/commands/dev/utils/metro/metro-reporter.js +6 -13
- package/build/commands/dev/utils/metro/metro-reporter.js.map +1 -1
- package/build/commands/dev/utils/metro/metro-server-middleware.d.ts +1 -0
- package/build/commands/dev/utils/metro/metro-server-middleware.js +11 -12
- package/build/commands/dev/utils/metro/metro-server-middleware.js.map +1 -1
- package/build/commands/dev/utils/metro/metro-server.d.ts +2 -2
- package/build/commands/dev/utils/metro/metro-server.js +7 -14
- package/build/commands/dev/utils/metro/metro-server.js.map +1 -1
- package/build/commands/dev/utils/network.d.ts +20 -0
- package/build/commands/dev/utils/network.js +122 -0
- package/build/commands/dev/utils/network.js.map +1 -0
- package/build/commands/dev/utils/platform.d.ts +18 -0
- package/build/commands/dev/utils/platform.js +41 -0
- package/build/commands/dev/utils/platform.js.map +1 -0
- package/build/commands/dev/utils/prompt-binary-upgrade.d.ts +1 -0
- package/build/commands/dev/utils/prompt-binary-upgrade.js +12 -0
- package/build/commands/dev/utils/prompt-binary-upgrade.js.map +1 -0
- package/build/commands/dev/utils/qr-code.js +3 -10
- package/build/commands/dev/utils/qr-code.js.map +1 -1
- package/build/commands/dev/utils/simulator.d.ts +5 -2
- package/build/commands/dev/utils/simulator.js +43 -37
- package/build/commands/dev/utils/simulator.js.map +1 -1
- package/build/commands/dev/utils/start-app/config.d.ts +5 -0
- package/build/commands/dev/utils/start-app/config.js +25 -0
- package/build/commands/dev/utils/start-app/config.js.map +1 -0
- package/build/commands/dev/utils/start-app/start-app-with-options.d.ts +2 -0
- package/build/commands/dev/utils/start-app/start-app-with-options.js +94 -0
- package/build/commands/dev/utils/start-app/start-app-with-options.js.map +1 -0
- package/build/commands/dev/utils/start-app/start-app.d.ts +2 -0
- package/build/commands/dev/utils/start-app/start-app.js +10 -0
- package/build/commands/dev/utils/start-app/start-app.js.map +1 -0
- package/build/commands/dev/utils/start-app/types.d.ts +20 -0
- package/build/commands/dev/utils/start-app/types.js +2 -0
- package/build/commands/dev/utils/start-app/types.js.map +1 -0
- package/build/commands/dev/utils/types.d.ts +24 -0
- package/build/commands/dev/utils/types.js +7 -0
- package/build/commands/dev/utils/types.js.map +1 -0
- package/build/commands/dev/utils/version.d.ts +64 -0
- package/build/commands/dev/utils/version.js +101 -0
- package/build/commands/dev/utils/version.js.map +1 -0
- package/build/commands/dev/utils/with-retries.js +1 -5
- package/build/commands/dev/utils/with-retries.js.map +1 -1
- package/build/commands/doctor/index.d.ts +6 -0
- package/build/commands/doctor/index.js +21 -0
- package/build/commands/doctor/index.js.map +1 -0
- package/build/commands/doctor/utils/diagnose-dependencies.d.ts +7 -0
- package/build/commands/doctor/utils/diagnose-dependencies.js +108 -0
- package/build/commands/doctor/utils/diagnose-dependencies.js.map +1 -0
- package/build/commands/generate-graphql-types/index.d.ts +1 -0
- package/build/commands/generate-graphql-types/index.js +43 -27
- package/build/commands/generate-graphql-types/index.js.map +1 -1
- package/build/commands/info/index.d.ts +3 -0
- package/build/commands/info/index.js +42 -0
- package/build/commands/info/index.js.map +1 -0
- package/build/commands/setup/index.d.ts +2 -0
- package/build/commands/setup/index.js +81 -0
- package/build/commands/setup/index.js.map +1 -0
- package/build/commands/submit/config.d.ts +9 -0
- package/build/commands/submit/config.js +18 -0
- package/build/commands/submit/config.js.map +1 -0
- package/build/commands/submit/errors.d.ts +19 -0
- package/build/commands/submit/errors.js +87 -0
- package/build/commands/submit/errors.js.map +1 -0
- package/build/commands/submit/gcs.d.ts +6 -0
- package/build/commands/submit/gcs.js +10 -0
- package/build/commands/submit/gcs.js.map +1 -0
- package/build/commands/submit/index.d.ts +2 -0
- package/build/commands/submit/index.js +25 -0
- package/build/commands/submit/index.js.map +1 -0
- package/build/commands/submit/submit.d.ts +5 -0
- package/build/commands/submit/submit.js +222 -0
- package/build/commands/submit/submit.js.map +1 -0
- package/build/commands/submit/tasks.d.ts +37 -0
- package/build/commands/submit/tasks.js +91 -0
- package/build/commands/submit/tasks.js.map +1 -0
- package/build/commands/submit/types.d.ts +14 -0
- package/build/commands/submit/types.js +2 -0
- package/build/commands/submit/types.js.map +1 -0
- package/build/commands/submit/utils/assert-core-dependencies-version.d.ts +1 -0
- package/build/commands/submit/utils/assert-core-dependencies-version.js +58 -0
- package/build/commands/submit/utils/assert-core-dependencies-version.js.map +1 -0
- package/build/commands/submit/utils/request-entry-point-params.d.ts +1 -0
- package/build/commands/submit/utils/request-entry-point-params.js +41 -0
- package/build/commands/submit/utils/request-entry-point-params.js.map +1 -0
- package/build/commands/submit/validation.d.ts +1 -0
- package/build/commands/submit/validation.js +11 -0
- package/build/commands/submit/validation.js.map +1 -0
- package/build/commands/upgrade/index.d.ts +13 -0
- package/build/commands/upgrade/index.js +53 -0
- package/build/commands/upgrade/index.js.map +1 -0
- package/build/commands/upgrade/utils/cli.d.ts +1 -0
- package/build/commands/upgrade/utils/cli.js +15 -0
- package/build/commands/upgrade/utils/cli.js.map +1 -0
- package/build/commands/validate-manifest/index.d.ts +3 -0
- package/build/commands/validate-manifest/index.js +29 -0
- package/build/commands/validate-manifest/index.js.map +1 -0
- package/build/data/accept-invitation.d.ts +4 -0
- package/build/data/accept-invitation.js +16 -0
- package/build/data/accept-invitation.js.map +1 -0
- package/build/data/cancel-submission.d.ts +22 -0
- package/build/data/cancel-submission.js +26 -0
- package/build/data/cancel-submission.js.map +1 -0
- package/build/data/create-submission.d.ts +20 -0
- package/build/data/create-submission.js +27 -0
- package/build/data/create-submission.js.map +1 -0
- package/build/data/create-upload.d.ts +21 -0
- package/build/data/create-upload.js +40 -0
- package/build/data/create-upload.js.map +1 -0
- package/build/data/get-submissions.d.ts +27 -0
- package/build/data/get-submissions.js +33 -0
- package/build/data/get-submissions.js.map +1 -0
- package/build/data/gql-client.d.ts +8 -0
- package/build/data/gql-client.js +9 -0
- package/build/data/gql-client.js.map +1 -0
- package/build/data/mini.d.ts +5 -0
- package/build/data/mini.js +14 -0
- package/build/data/mini.js.map +1 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/fragment-masking.d.ts +13 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/fragment-masking.js +7 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/fragment-masking.js.map +1 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.d.ts +75 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.js +24 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.js.map +1 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.d.ts +1570 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js +1062 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/index.d.ts +2 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/index.js +3 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/index.js.map +1 -0
- package/build/dev-panel/asset-manifest.json +6 -9
- package/build/dev-panel/index.html +1 -1
- package/build/dev-panel/static/css/{main.31436fe3.css → main.7f1ee407.css} +2 -2
- package/build/dev-panel/static/css/main.7f1ee407.css.map +1 -0
- package/build/dev-panel/static/js/{main.27f47095.js → main.6625699c.js} +3 -3
- package/build/dev-panel/static/js/main.6625699c.js.map +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +30 -15
- package/build/index.js.map +1 -1
- package/build/schemas/manifest.schema.json +198 -0
- package/build/utils/archive.d.ts +30 -0
- package/build/utils/archive.js +38 -0
- package/build/utils/archive.js.map +1 -0
- package/build/utils/common-tasks.d.ts +1 -0
- package/build/utils/common-tasks.js +49 -0
- package/build/utils/common-tasks.js.map +1 -0
- package/build/utils/development-params.d.ts +13 -0
- package/build/utils/development-params.js +42 -0
- package/build/utils/development-params.js.map +1 -0
- package/build/{commands/utils → utils}/exec-async-child-process.d.ts +1 -1
- package/build/{commands/utils → utils}/exec-async-child-process.js +6 -13
- package/build/utils/exec-async-child-process.js.map +1 -0
- package/build/utils/file.d.ts +1 -0
- package/build/utils/file.js +7 -0
- package/build/utils/file.js.map +1 -0
- package/build/utils/minis-manifest.d.ts +6 -0
- package/build/utils/minis-manifest.js +56 -0
- package/build/utils/minis-manifest.js.map +1 -0
- package/build/utils/package-manager.d.ts +38 -0
- package/build/utils/package-manager.js +98 -0
- package/build/utils/package-manager.js.map +1 -0
- package/build/utils/patch-package.d.ts +5 -0
- package/build/utils/patch-package.js +76 -0
- package/build/utils/patch-package.js.map +1 -0
- package/build/utils/replace-strings-in-template.d.ts +1 -0
- package/build/utils/replace-strings-in-template.js +15 -0
- package/build/utils/replace-strings-in-template.js.map +1 -0
- package/build/utils/semver.d.ts +1 -0
- package/build/utils/semver.js +19 -0
- package/build/utils/semver.js.map +1 -0
- package/build/{commands/utils → utils}/wrap-with-loading-indicator.d.ts +1 -1
- package/build/utils/wrap-with-loading-indicator.js +16 -0
- package/build/utils/wrap-with-loading-indicator.js.map +1 -0
- package/package.json +35 -28
- package/scripts/graphql-codegen.ts +23 -0
- package/scripts/test-template.ts +63 -0
- package/shipit.alpha.yml +3 -0
- package/templates/__template_blank/src/index.tsx +5 -4
- package/templates/__template_blank/src/types.ts +1 -1
- package/templates/__template_common/.eslintrc.js +16 -0
- package/templates/__template_common/assets.d.ts +14 -0
- package/templates/__template_common/babel.config.js +3 -17
- package/templates/__template_common/gitignore +2 -0
- package/templates/__template_common/index.tsx +3 -6
- package/templates/__template_common/metro.config.js +4 -30
- package/templates/__template_common/package.json +17 -47
- package/templates/__template_common/src/manifest.json +1 -27
- package/templates/__template_hello_world/src/components/ComponentLink.ts +31 -19
- package/templates/__template_hello_world/src/components/ComponentListItem.tsx +1 -0
- package/templates/__template_hello_world/src/components/FeaturedComponents.tsx +4 -2
- package/templates/__template_hello_world/src/components/quiz/ImageCarouselSlide.tsx +54 -0
- package/templates/__template_hello_world/src/components/quiz/MultipleChoiceSlide.tsx +77 -0
- package/templates/__template_hello_world/src/components/quiz/QuizProvider.tsx +64 -0
- package/templates/__template_hello_world/src/components/quiz/QuizSlide.tsx +79 -0
- package/templates/__template_hello_world/src/components/quiz/QuizSlideCommander.tsx +35 -0
- package/templates/__template_hello_world/src/components/quiz/TextFieldSlide.tsx +84 -0
- package/templates/__template_hello_world/src/components/quiz/TextSlide.tsx +6 -0
- package/templates/__template_hello_world/src/components/quiz/types.ts +72 -0
- package/templates/__template_hello_world/src/data/Test.graphql.d.ts +69 -76
- package/templates/__template_hello_world/src/data/TestProducts.graphql +30 -0
- package/templates/__template_hello_world/src/data/TestProducts.graphql.d.ts +159 -81
- package/templates/__template_hello_world/src/fixtures/mocked-products-with-variants.ts +274 -0
- package/templates/__template_hello_world/src/hooks/useQuizData.ts +26 -0
- package/templates/__template_hello_world/src/hooks/useQuizState.ts +27 -0
- package/templates/__template_hello_world/src/index.tsx +6 -5
- package/templates/__template_hello_world/src/routes.tsx +46 -22
- package/templates/__template_hello_world/src/screens/AccordionScreen.tsx +73 -0
- package/templates/__template_hello_world/src/screens/BottomSheetScreen.tsx +6 -5
- package/templates/__template_hello_world/src/screens/HomeScreen.tsx +14 -3
- package/templates/__template_hello_world/src/screens/{ImageCarouselScreen.tsx → ImageMultipleChoiceScreen.tsx} +4 -6
- package/templates/__template_hello_world/src/screens/InputScreen.tsx +13 -70
- package/templates/__template_hello_world/src/screens/QuizResultScreen.tsx +82 -0
- package/templates/__template_hello_world/src/screens/QuizScreen.tsx +40 -0
- package/templates/__template_hello_world/src/screens/QuizSlideScreen.tsx +150 -0
- package/templates/__template_hello_world/src/screens/ShopActionsScreen.tsx +48 -0
- package/templates/__template_hello_world/src/screens/VariantPickerScreen.tsx +120 -0
- package/templates/__template_hello_world/src/types.ts +27 -24
- package/templates/__template_hello_world/src/utils/mockQuizData.ts +330 -0
- package/templates/__template_hello_world/src/utils/quizUtils.ts +75 -0
- package/templates/__template_snowboardz/src/components/SkillLevelIcon.tsx +1 -4
- package/templates/__template_snowboardz/src/components/SkillLevelPicker.tsx +7 -1
- package/templates/__template_snowboardz/src/data/TestProducts.graphql +1 -1
- package/templates/__template_snowboardz/src/data/TestProducts.graphql.d.ts +84 -74
- package/templates/__template_snowboardz/src/index.tsx +6 -5
- package/templates/__template_snowboardz/src/routes.tsx +2 -2
- package/templates/__template_snowboardz/src/types.ts +3 -3
- package/build/commands/check/index.d.ts +0 -5
- package/build/commands/check/index.js +0 -77
- package/build/commands/check/index.js.map +0 -1
- package/build/commands/check/utils/versions.d.ts +0 -1
- package/build/commands/check/utils/versions.js +0 -14
- package/build/commands/check/utils/versions.js.map +0 -1
- package/build/commands/dev/utils/binaries.test.d.ts +0 -1
- package/build/commands/dev/utils/binaries.test.js +0 -275
- package/build/commands/dev/utils/binaries.test.js.map +0 -1
- package/build/commands/dev/utils/minis-manifest.d.ts +0 -1
- package/build/commands/dev/utils/minis-manifest.js +0 -24
- package/build/commands/dev/utils/minis-manifest.js.map +0 -1
- package/build/commands/utils/exec-async-child-process.js.map +0 -1
- package/build/commands/utils/wrap-with-loading-indicator.js +0 -23
- package/build/commands/utils/wrap-with-loading-indicator.js.map +0 -1
- package/build/dev-panel/middleware.d.ts +0 -4
- package/build/dev-panel/middleware.js +0 -11
- package/build/dev-panel/middleware.js.map +0 -1
- package/build/dev-panel/static/css/main.31436fe3.css.map +0 -1
- package/build/dev-panel/static/js/main.27f47095.js.map +0 -1
- package/build/dev-panel/static/media/bottomsheet.fe525b8722f6d504a185.png +0 -0
- package/build/dev-panel/static/media/navigation.597434370a97c328a970.png +0 -0
- package/build/dev-panel/static/media/stories.a425b6972a5338fabdad.png +0 -0
- package/templates/__template_blank/src/custom.d.ts +0 -4
- package/templates/__template_common/.eslintrc.json +0 -132
- package/templates/__template_common/patches/react-native+0.68.5.patch +0 -173
- package/templates/__template_hello_world/src/utils/getFlagEmoji.spec.tsx +0 -19
- /package/build/dev-panel/static/js/{main.27f47095.js.LICENSE.txt → main.6625699c.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,1570 @@
|
|
|
1
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
16
|
+
export type Scalars = {
|
|
17
|
+
ID: string;
|
|
18
|
+
String: string;
|
|
19
|
+
Boolean: boolean;
|
|
20
|
+
Int: number;
|
|
21
|
+
Float: number;
|
|
22
|
+
/** A signed decimal number serialized as a string. Example value: `"29.99"`. */
|
|
23
|
+
Decimal: any;
|
|
24
|
+
/** An ISO 8601-encoded datetime */
|
|
25
|
+
ISO8601DateTime: any;
|
|
26
|
+
/**
|
|
27
|
+
* Represents an [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986) and [RFC 3987](https://datatracker.ietf.org/doc/html/rfc3987)-compliant URI string.
|
|
28
|
+
*
|
|
29
|
+
* For example, `"https://johns-apparel.myshopify.com"` is a valid URL. It includes a scheme (`https`) and a host (`johns-apparel.myshopify.com`).
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
URL: any;
|
|
33
|
+
};
|
|
34
|
+
/** Represents attribution details for a line item in an order. */
|
|
35
|
+
export type Attribution = {
|
|
36
|
+
__typename?: 'Attribution';
|
|
37
|
+
/** The fields associated with this attribution. */
|
|
38
|
+
fields: Array<AttributionField>;
|
|
39
|
+
/** The LineItem ID associated with this attribution. */
|
|
40
|
+
lineItemId: Scalars['ID'];
|
|
41
|
+
/** The Order ID associated with this attribution. */
|
|
42
|
+
orderId: Scalars['ID'];
|
|
43
|
+
/** The Shop domain ({store_name}.myshopify.com) associated with this attribution. */
|
|
44
|
+
shopDomain: Scalars['String'];
|
|
45
|
+
/**
|
|
46
|
+
* The Shop ID associated with this attribution.
|
|
47
|
+
* @deprecated DEPRECATED - Please use shopDomain instead.
|
|
48
|
+
*/
|
|
49
|
+
shopId: Scalars['ID'];
|
|
50
|
+
};
|
|
51
|
+
/** The connection type for Attribution. */
|
|
52
|
+
export type AttributionConnection = {
|
|
53
|
+
__typename?: 'AttributionConnection';
|
|
54
|
+
/** A list of edges. */
|
|
55
|
+
edges: Array<AttributionEdge>;
|
|
56
|
+
/** A list of nodes. */
|
|
57
|
+
nodes: Array<Attribution>;
|
|
58
|
+
/** Information to aid in pagination. */
|
|
59
|
+
pageInfo: PageInfo;
|
|
60
|
+
};
|
|
61
|
+
/** An edge in a connection. */
|
|
62
|
+
export type AttributionEdge = {
|
|
63
|
+
__typename?: 'AttributionEdge';
|
|
64
|
+
/** A cursor for use in pagination. */
|
|
65
|
+
cursor: Scalars['String'];
|
|
66
|
+
/** The item at the end of the edge. */
|
|
67
|
+
node?: Maybe<Attribution>;
|
|
68
|
+
};
|
|
69
|
+
/** Represents a single attribution detail. */
|
|
70
|
+
export type AttributionField = {
|
|
71
|
+
__typename?: 'AttributionField';
|
|
72
|
+
/** The key of the field. */
|
|
73
|
+
key: Scalars['String'];
|
|
74
|
+
/** The value of the field. */
|
|
75
|
+
value: Scalars['String'];
|
|
76
|
+
};
|
|
77
|
+
/** This is a content creator that may appear next to a Mini entry point. */
|
|
78
|
+
export type ContentCreator = {
|
|
79
|
+
__typename?: 'ContentCreator';
|
|
80
|
+
/** The avatar of the content creator. */
|
|
81
|
+
avatar?: Maybe<Image>;
|
|
82
|
+
/** The name of the content creator. */
|
|
83
|
+
name: Scalars['String'];
|
|
84
|
+
};
|
|
85
|
+
/** Content creator that may appear next to a Mini entry point. */
|
|
86
|
+
export type ContentCreatorInput = {
|
|
87
|
+
/** The avatar of the content creator. */
|
|
88
|
+
avatar?: InputMaybe<ImageInput>;
|
|
89
|
+
/** The name of the content creator. */
|
|
90
|
+
name: Scalars['String'];
|
|
91
|
+
};
|
|
92
|
+
/** ISO currency code. */
|
|
93
|
+
export declare enum CurrencyCode {
|
|
94
|
+
/** United Arab Emirates Dirham. */
|
|
95
|
+
Aed = "AED",
|
|
96
|
+
/** Afghan Afghani. */
|
|
97
|
+
Afn = "AFN",
|
|
98
|
+
/** Albanian Lek. */
|
|
99
|
+
All = "ALL",
|
|
100
|
+
/** Armenian Dram. */
|
|
101
|
+
Amd = "AMD",
|
|
102
|
+
/** Netherlands Antillean Gulden. */
|
|
103
|
+
Ang = "ANG",
|
|
104
|
+
/** Angolan Kwanza. */
|
|
105
|
+
Aoa = "AOA",
|
|
106
|
+
/** Argentine Peso. */
|
|
107
|
+
Ars = "ARS",
|
|
108
|
+
/** Australian Dollar. */
|
|
109
|
+
Aud = "AUD",
|
|
110
|
+
/** Aruban Florin. */
|
|
111
|
+
Awg = "AWG",
|
|
112
|
+
/** Azerbaijani Manat. */
|
|
113
|
+
Azn = "AZN",
|
|
114
|
+
/** Bosnia and Herzegovina Convertible Mark. */
|
|
115
|
+
Bam = "BAM",
|
|
116
|
+
/** Barbadian Dollar. */
|
|
117
|
+
Bbd = "BBD",
|
|
118
|
+
/** Bangladeshi Taka. */
|
|
119
|
+
Bdt = "BDT",
|
|
120
|
+
/** Bulgarian Lev. */
|
|
121
|
+
Bgn = "BGN",
|
|
122
|
+
/** Bahraini Dinar. */
|
|
123
|
+
Bhd = "BHD",
|
|
124
|
+
/** Burundian Franc. */
|
|
125
|
+
Bif = "BIF",
|
|
126
|
+
/** Bermudian Dollar. */
|
|
127
|
+
Bmd = "BMD",
|
|
128
|
+
/** Brunei Dollar. */
|
|
129
|
+
Bnd = "BND",
|
|
130
|
+
/** Bolivian Boliviano. */
|
|
131
|
+
Bob = "BOB",
|
|
132
|
+
/** Brazilian Real. */
|
|
133
|
+
Brl = "BRL",
|
|
134
|
+
/** Bahamian Dollar. */
|
|
135
|
+
Bsd = "BSD",
|
|
136
|
+
/** Bhutanese Ngultrum. */
|
|
137
|
+
Btn = "BTN",
|
|
138
|
+
/** Botswana Pula. */
|
|
139
|
+
Bwp = "BWP",
|
|
140
|
+
/** Belarusian Ruble. */
|
|
141
|
+
Byn = "BYN",
|
|
142
|
+
/** Belarusian Ruble. */
|
|
143
|
+
Byr = "BYR",
|
|
144
|
+
/** Belize Dollar. */
|
|
145
|
+
Bzd = "BZD",
|
|
146
|
+
/** Canadian Dollar. */
|
|
147
|
+
Cad = "CAD",
|
|
148
|
+
/** Congolese Franc. */
|
|
149
|
+
Cdf = "CDF",
|
|
150
|
+
/** Swiss Franc. */
|
|
151
|
+
Chf = "CHF",
|
|
152
|
+
/** Unidad de Fomento. */
|
|
153
|
+
Clf = "CLF",
|
|
154
|
+
/** Chilean Peso. */
|
|
155
|
+
Clp = "CLP",
|
|
156
|
+
/** Chinese Renminbi Yuan. */
|
|
157
|
+
Cny = "CNY",
|
|
158
|
+
/** Colombian Peso. */
|
|
159
|
+
Cop = "COP",
|
|
160
|
+
/** Costa Rican Colón. */
|
|
161
|
+
Crc = "CRC",
|
|
162
|
+
/** Cuban Convertible Peso. */
|
|
163
|
+
Cuc = "CUC",
|
|
164
|
+
/** Cuban Peso. */
|
|
165
|
+
Cup = "CUP",
|
|
166
|
+
/** Cape Verdean Escudo. */
|
|
167
|
+
Cve = "CVE",
|
|
168
|
+
/** Cypriot pound. */
|
|
169
|
+
Cyp = "CYP",
|
|
170
|
+
/** Czech Koruna. */
|
|
171
|
+
Czk = "CZK",
|
|
172
|
+
/** Djiboutian Franc. */
|
|
173
|
+
Djf = "DJF",
|
|
174
|
+
/** Danish Krone. */
|
|
175
|
+
Dkk = "DKK",
|
|
176
|
+
/** Dominican Peso. */
|
|
177
|
+
Dop = "DOP",
|
|
178
|
+
/** Algerian Dinar. */
|
|
179
|
+
Dzd = "DZD",
|
|
180
|
+
/** Estonian Kroon. */
|
|
181
|
+
Eek = "EEK",
|
|
182
|
+
/** Egyptian Pound. */
|
|
183
|
+
Egp = "EGP",
|
|
184
|
+
/** Eritrean Nakfa. */
|
|
185
|
+
Ern = "ERN",
|
|
186
|
+
/** Ethiopian Birr. */
|
|
187
|
+
Etb = "ETB",
|
|
188
|
+
/** Euro. */
|
|
189
|
+
Eur = "EUR",
|
|
190
|
+
/** Fijian Dollar. */
|
|
191
|
+
Fjd = "FJD",
|
|
192
|
+
/** Falkland Pound. */
|
|
193
|
+
Fkp = "FKP",
|
|
194
|
+
/** British Pound. */
|
|
195
|
+
Gbp = "GBP",
|
|
196
|
+
/** British Penny. */
|
|
197
|
+
Gbx = "GBX",
|
|
198
|
+
/** Georgian Lari. */
|
|
199
|
+
Gel = "GEL",
|
|
200
|
+
/** Guernsey Pound. */
|
|
201
|
+
Ggp = "GGP",
|
|
202
|
+
/** Ghanaian Cedi. */
|
|
203
|
+
Ghc = "GHC",
|
|
204
|
+
/** Ghanaian Cedi. */
|
|
205
|
+
Ghs = "GHS",
|
|
206
|
+
/** Gibraltar Pound. */
|
|
207
|
+
Gip = "GIP",
|
|
208
|
+
/** Gambian Dalasi. */
|
|
209
|
+
Gmd = "GMD",
|
|
210
|
+
/** Guinean Franc. */
|
|
211
|
+
Gnf = "GNF",
|
|
212
|
+
/** Guatemalan Quetzal. */
|
|
213
|
+
Gtq = "GTQ",
|
|
214
|
+
/** Guyanese Dollar. */
|
|
215
|
+
Gyd = "GYD",
|
|
216
|
+
/** Hong Kong Dollar. */
|
|
217
|
+
Hkd = "HKD",
|
|
218
|
+
/** Honduran Lempira. */
|
|
219
|
+
Hnl = "HNL",
|
|
220
|
+
/** Croatian Kuna. */
|
|
221
|
+
Hrk = "HRK",
|
|
222
|
+
/** Haitian Gourde. */
|
|
223
|
+
Htg = "HTG",
|
|
224
|
+
/** Hungarian Forint. */
|
|
225
|
+
Huf = "HUF",
|
|
226
|
+
/** Indonesian Rupiah. */
|
|
227
|
+
Idr = "IDR",
|
|
228
|
+
/** Israeli New Sheqel. */
|
|
229
|
+
Ils = "ILS",
|
|
230
|
+
/** Isle of Man Pound. */
|
|
231
|
+
Imp = "IMP",
|
|
232
|
+
/** Indian Rupee. */
|
|
233
|
+
Inr = "INR",
|
|
234
|
+
/** Iraqi Dinar. */
|
|
235
|
+
Iqd = "IQD",
|
|
236
|
+
/** Iranian Rial. */
|
|
237
|
+
Irr = "IRR",
|
|
238
|
+
/** Icelandic Króna. */
|
|
239
|
+
Isk = "ISK",
|
|
240
|
+
/** Jersey Pound. */
|
|
241
|
+
Jep = "JEP",
|
|
242
|
+
/** Jamaican Dollar. */
|
|
243
|
+
Jmd = "JMD",
|
|
244
|
+
/** Jordanian Dinar. */
|
|
245
|
+
Jod = "JOD",
|
|
246
|
+
/** Japanese Yen. */
|
|
247
|
+
Jpy = "JPY",
|
|
248
|
+
/** Kenyan Shilling. */
|
|
249
|
+
Kes = "KES",
|
|
250
|
+
/** Kyrgyzstani Som. */
|
|
251
|
+
Kgs = "KGS",
|
|
252
|
+
/** Cambodian Riel. */
|
|
253
|
+
Khr = "KHR",
|
|
254
|
+
/** Kiribati Dollar. */
|
|
255
|
+
Kid = "KID",
|
|
256
|
+
/** Comorian Franc. */
|
|
257
|
+
Kmf = "KMF",
|
|
258
|
+
/** North Korean Won. */
|
|
259
|
+
Kpw = "KPW",
|
|
260
|
+
/** South Korean Won. */
|
|
261
|
+
Krw = "KRW",
|
|
262
|
+
/** Kuwaiti Dinar. */
|
|
263
|
+
Kwd = "KWD",
|
|
264
|
+
/** Cayman Islands Dollar. */
|
|
265
|
+
Kyd = "KYD",
|
|
266
|
+
/** Kazakhstani Tenge. */
|
|
267
|
+
Kzt = "KZT",
|
|
268
|
+
/** Lao Kip. */
|
|
269
|
+
Lak = "LAK",
|
|
270
|
+
/** Lebanese Pound. */
|
|
271
|
+
Lbp = "LBP",
|
|
272
|
+
/** Sri Lankan Rupee. */
|
|
273
|
+
Lkr = "LKR",
|
|
274
|
+
/** Liberian Dollar. */
|
|
275
|
+
Lrd = "LRD",
|
|
276
|
+
/** Lesotho Loti. */
|
|
277
|
+
Lsl = "LSL",
|
|
278
|
+
/** Lithuanian Litas. */
|
|
279
|
+
Ltl = "LTL",
|
|
280
|
+
/** Latvian Lats. */
|
|
281
|
+
Lvl = "LVL",
|
|
282
|
+
/** Libyan Dinar. */
|
|
283
|
+
Lyd = "LYD",
|
|
284
|
+
/** Moroccan Dirham. */
|
|
285
|
+
Mad = "MAD",
|
|
286
|
+
/** Moldovan Leu. */
|
|
287
|
+
Mdl = "MDL",
|
|
288
|
+
/** Malagasy Ariary. */
|
|
289
|
+
Mga = "MGA",
|
|
290
|
+
/** Macedonian Denar. */
|
|
291
|
+
Mkd = "MKD",
|
|
292
|
+
/** Myanmar Kyat. */
|
|
293
|
+
Mmk = "MMK",
|
|
294
|
+
/** Mongolian Tögrög. */
|
|
295
|
+
Mnt = "MNT",
|
|
296
|
+
/** Macanese Pataca. */
|
|
297
|
+
Mop = "MOP",
|
|
298
|
+
/** Mauritanian Ouguiya. */
|
|
299
|
+
Mro = "MRO",
|
|
300
|
+
/** Mauritanian New Ouguiya. */
|
|
301
|
+
Mru = "MRU",
|
|
302
|
+
/** Maltese Lira. */
|
|
303
|
+
Mtl = "MTL",
|
|
304
|
+
/** Mauritian Rupee. */
|
|
305
|
+
Mur = "MUR",
|
|
306
|
+
/** Maldivian Rufiyaa. */
|
|
307
|
+
Mvr = "MVR",
|
|
308
|
+
/** Malawian Kwacha. */
|
|
309
|
+
Mwk = "MWK",
|
|
310
|
+
/** Mexican Peso. */
|
|
311
|
+
Mxn = "MXN",
|
|
312
|
+
/** Malaysian Ringgit. */
|
|
313
|
+
Myr = "MYR",
|
|
314
|
+
/** Mozambican Metical. */
|
|
315
|
+
Mzn = "MZN",
|
|
316
|
+
/** Namibian Dollar. */
|
|
317
|
+
Nad = "NAD",
|
|
318
|
+
/** Nigerian Naira. */
|
|
319
|
+
Ngn = "NGN",
|
|
320
|
+
/** Nicaraguan Córdoba. */
|
|
321
|
+
Nio = "NIO",
|
|
322
|
+
/** Norwegian Krone. */
|
|
323
|
+
Nok = "NOK",
|
|
324
|
+
/** Nepalese Rupee. */
|
|
325
|
+
Npr = "NPR",
|
|
326
|
+
/** New Zealand Dollar. */
|
|
327
|
+
Nzd = "NZD",
|
|
328
|
+
/** Omani Rial. */
|
|
329
|
+
Omr = "OMR",
|
|
330
|
+
/** Panamanian Balboa. */
|
|
331
|
+
Pab = "PAB",
|
|
332
|
+
/** Peruvian Sol. */
|
|
333
|
+
Pen = "PEN",
|
|
334
|
+
/** Papua New Guinean Kina. */
|
|
335
|
+
Pgk = "PGK",
|
|
336
|
+
/** Philippine Peso. */
|
|
337
|
+
Php = "PHP",
|
|
338
|
+
/** Pakistani Rupee. */
|
|
339
|
+
Pkr = "PKR",
|
|
340
|
+
/** Polish Złoty. */
|
|
341
|
+
Pln = "PLN",
|
|
342
|
+
/** Paraguayan Guaraní. */
|
|
343
|
+
Pyg = "PYG",
|
|
344
|
+
/** Qatari Riyal. */
|
|
345
|
+
Qar = "QAR",
|
|
346
|
+
/** Romanian Leu. */
|
|
347
|
+
Ron = "RON",
|
|
348
|
+
/** Serbian Dinar. */
|
|
349
|
+
Rsd = "RSD",
|
|
350
|
+
/** Russian Ruble. */
|
|
351
|
+
Rub = "RUB",
|
|
352
|
+
/** Rwandan Franc. */
|
|
353
|
+
Rwf = "RWF",
|
|
354
|
+
/** Saudi Riyal. */
|
|
355
|
+
Sar = "SAR",
|
|
356
|
+
/** Solomon Islands Dollar. */
|
|
357
|
+
Sbd = "SBD",
|
|
358
|
+
/** Seychellois Rupee. */
|
|
359
|
+
Scr = "SCR",
|
|
360
|
+
/** Sudanese Pound. */
|
|
361
|
+
Sdg = "SDG",
|
|
362
|
+
/** Swedish Krona. */
|
|
363
|
+
Sek = "SEK",
|
|
364
|
+
/** Singapore Dollar. */
|
|
365
|
+
Sgd = "SGD",
|
|
366
|
+
/** Saint Helenian Pound. */
|
|
367
|
+
Shp = "SHP",
|
|
368
|
+
/** Slovak Koruna. */
|
|
369
|
+
Skk = "SKK",
|
|
370
|
+
/** Sierra Leonean Leone. */
|
|
371
|
+
Sll = "SLL",
|
|
372
|
+
/** Somali Shilling. */
|
|
373
|
+
Sos = "SOS",
|
|
374
|
+
/** Surinamese Dollar. */
|
|
375
|
+
Srd = "SRD",
|
|
376
|
+
/** South Sudanese Pound. */
|
|
377
|
+
Ssp = "SSP",
|
|
378
|
+
/** São Tomé and Príncipe Dobra. */
|
|
379
|
+
Std = "STD",
|
|
380
|
+
/** São Tomé and Príncipe Dobra. */
|
|
381
|
+
Stn = "STN",
|
|
382
|
+
/** Salvadoran Colón. */
|
|
383
|
+
Svc = "SVC",
|
|
384
|
+
/** Syrian Pound. */
|
|
385
|
+
Syp = "SYP",
|
|
386
|
+
/** Swazi Lilangeni. */
|
|
387
|
+
Szl = "SZL",
|
|
388
|
+
/** Thai Baht. */
|
|
389
|
+
Thb = "THB",
|
|
390
|
+
/** Tajikistani Somoni. */
|
|
391
|
+
Tjs = "TJS",
|
|
392
|
+
/** Turkmenistani Manat. */
|
|
393
|
+
Tmm = "TMM",
|
|
394
|
+
/** Turkmenistani Manat. */
|
|
395
|
+
Tmt = "TMT",
|
|
396
|
+
/** Tunisian Dinar. */
|
|
397
|
+
Tnd = "TND",
|
|
398
|
+
/** Tongan Paʻanga. */
|
|
399
|
+
Top = "TOP",
|
|
400
|
+
/** Turkish Lira. */
|
|
401
|
+
Try = "TRY",
|
|
402
|
+
/** Trinidad and Tobago Dollar. */
|
|
403
|
+
Ttd = "TTD",
|
|
404
|
+
/** New Taiwan Dollar. */
|
|
405
|
+
Twd = "TWD",
|
|
406
|
+
/** Tanzanian Shilling. */
|
|
407
|
+
Tzs = "TZS",
|
|
408
|
+
/** Ukrainian Hryvnia. */
|
|
409
|
+
Uah = "UAH",
|
|
410
|
+
/** Ugandan Shilling. */
|
|
411
|
+
Ugx = "UGX",
|
|
412
|
+
/** United States Dollar. */
|
|
413
|
+
Usd = "USD",
|
|
414
|
+
/** Uruguayan Peso. */
|
|
415
|
+
Uyu = "UYU",
|
|
416
|
+
/** Uzbekistan Som. */
|
|
417
|
+
Uzs = "UZS",
|
|
418
|
+
/** Venezuelan Bolívar. */
|
|
419
|
+
Veb = "VEB",
|
|
420
|
+
/** Venezuelan Bolívar soberano. */
|
|
421
|
+
Ved = "VED",
|
|
422
|
+
/** Venezuelan Bolívar fuerte. */
|
|
423
|
+
Vef = "VEF",
|
|
424
|
+
/** Venezuelan Bolívar soberano. */
|
|
425
|
+
Ves = "VES",
|
|
426
|
+
/** Vietnamese Đồng. */
|
|
427
|
+
Vnd = "VND",
|
|
428
|
+
/** Vanuatu Vatu. */
|
|
429
|
+
Vuv = "VUV",
|
|
430
|
+
/** Samoan Tala. */
|
|
431
|
+
Wst = "WST",
|
|
432
|
+
/** Central African Cfa Franc. */
|
|
433
|
+
Xaf = "XAF",
|
|
434
|
+
/** Silver (Troy Ounce). */
|
|
435
|
+
Xag = "XAG",
|
|
436
|
+
/** Gold (Troy Ounce). */
|
|
437
|
+
Xau = "XAU",
|
|
438
|
+
/** European Composite Unit. */
|
|
439
|
+
Xba = "XBA",
|
|
440
|
+
/** European Monetary Unit. */
|
|
441
|
+
Xbb = "XBB",
|
|
442
|
+
/** European Unit of Account 9. */
|
|
443
|
+
Xbc = "XBC",
|
|
444
|
+
/** European Unit of Account 17. */
|
|
445
|
+
Xbd = "XBD",
|
|
446
|
+
/** East Caribbean Dollar. */
|
|
447
|
+
Xcd = "XCD",
|
|
448
|
+
/** Special Drawing Rights. */
|
|
449
|
+
Xdr = "XDR",
|
|
450
|
+
/** UIC Franc. */
|
|
451
|
+
Xfu = "XFU",
|
|
452
|
+
/** West African Cfa Franc. */
|
|
453
|
+
Xof = "XOF",
|
|
454
|
+
/** Palladium. */
|
|
455
|
+
Xpd = "XPD",
|
|
456
|
+
/** Cfp Franc. */
|
|
457
|
+
Xpf = "XPF",
|
|
458
|
+
/** Platinum. */
|
|
459
|
+
Xpt = "XPT",
|
|
460
|
+
/** Codes specifically reserved for testing purposes. */
|
|
461
|
+
Xts = "XTS",
|
|
462
|
+
/** Yemeni Rial. */
|
|
463
|
+
Yer = "YER",
|
|
464
|
+
/** South African Rand. */
|
|
465
|
+
Zar = "ZAR",
|
|
466
|
+
/** Zambian Kwacha. */
|
|
467
|
+
Zmk = "ZMK",
|
|
468
|
+
/** Zambian Kwacha. */
|
|
469
|
+
Zmw = "ZMW",
|
|
470
|
+
/** Zimbabwean Dollar. */
|
|
471
|
+
Zwd = "ZWD",
|
|
472
|
+
/** Zimbabwean Dollar. */
|
|
473
|
+
Zwl = "ZWL",
|
|
474
|
+
/** Zimbabwean Dollar. */
|
|
475
|
+
Zwn = "ZWN",
|
|
476
|
+
/** Zimbabwean Dollar. */
|
|
477
|
+
Zwr = "ZWR"
|
|
478
|
+
}
|
|
479
|
+
/** This is a default card entry point for the Minis Admin API. */
|
|
480
|
+
export type DefaultCardEntryPoint = EntryPoint & {
|
|
481
|
+
__typename?: 'DefaultCardEntryPoint';
|
|
482
|
+
/** The action text of the entry point. */
|
|
483
|
+
actionText?: Maybe<Scalars['String']>;
|
|
484
|
+
/** The ID of the entry point. */
|
|
485
|
+
id?: Maybe<Scalars['ID']>;
|
|
486
|
+
/** The image for the entry point. */
|
|
487
|
+
image?: Maybe<Image>;
|
|
488
|
+
/** The location of the entry point. */
|
|
489
|
+
location?: Maybe<EntryPointLocation>;
|
|
490
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
491
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
492
|
+
/** The text of the entry point. */
|
|
493
|
+
text?: Maybe<Scalars['String']>;
|
|
494
|
+
/** The title of the entry point. */
|
|
495
|
+
title: Scalars['String'];
|
|
496
|
+
/** The date and time when the entry point was updated. */
|
|
497
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
498
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
499
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
500
|
+
};
|
|
501
|
+
/** The information needed to create a new default card entry point. */
|
|
502
|
+
export type DefaultCardEntryPointSetInput = {
|
|
503
|
+
/** The action text of the entry point. */
|
|
504
|
+
actionText?: InputMaybe<Scalars['String']>;
|
|
505
|
+
/** The image for the entry point. */
|
|
506
|
+
image?: InputMaybe<ImageInput>;
|
|
507
|
+
/** The text of the entry point. */
|
|
508
|
+
text?: InputMaybe<Scalars['String']>;
|
|
509
|
+
/** The title of the entry point. */
|
|
510
|
+
title: Scalars['String'];
|
|
511
|
+
};
|
|
512
|
+
export type EntryPoint = {
|
|
513
|
+
/** The ID of the entry point. */
|
|
514
|
+
id?: Maybe<Scalars['ID']>;
|
|
515
|
+
/** The location of the entry point. */
|
|
516
|
+
location?: Maybe<EntryPointLocation>;
|
|
517
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
518
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
519
|
+
/** The date and time when the entry point was updated. */
|
|
520
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
521
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
522
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
523
|
+
};
|
|
524
|
+
/** The connection type for EntryPoint. */
|
|
525
|
+
export type EntryPointConnection = {
|
|
526
|
+
__typename?: 'EntryPointConnection';
|
|
527
|
+
/** A list of edges. */
|
|
528
|
+
edges?: Maybe<Array<Maybe<EntryPointEdge>>>;
|
|
529
|
+
/** A list of nodes. */
|
|
530
|
+
nodes?: Maybe<Array<Maybe<EntryPoint>>>;
|
|
531
|
+
/** Information to aid in pagination. */
|
|
532
|
+
pageInfo: PageInfo;
|
|
533
|
+
};
|
|
534
|
+
/** Return type for the `entryPointDeleteByOwner` mutation. */
|
|
535
|
+
export type EntryPointDeleteByOwnerPayload = {
|
|
536
|
+
__typename?: 'EntryPointDeleteByOwnerPayload';
|
|
537
|
+
/** List of errors that occured while executing the mutation. */
|
|
538
|
+
userErrors: Array<EntryPointDeleteByOwnerUserError>;
|
|
539
|
+
};
|
|
540
|
+
/** A user or client error that could occur during the execution of the `entryPointDeleteByOwner` mutation. */
|
|
541
|
+
export type EntryPointDeleteByOwnerUserError = {
|
|
542
|
+
__typename?: 'EntryPointDeleteByOwnerUserError';
|
|
543
|
+
/** Error code associated with the error. */
|
|
544
|
+
code: EntryPointDeleteByOwnerUserErrorCode;
|
|
545
|
+
/** Which input value this error came from. */
|
|
546
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
547
|
+
/** A description of the error. */
|
|
548
|
+
message: Scalars['String'];
|
|
549
|
+
};
|
|
550
|
+
/** Possible error codes that can be returned by EntryPointDeleteByOwnerUserError. */
|
|
551
|
+
export declare enum EntryPointDeleteByOwnerUserErrorCode {
|
|
552
|
+
/** Error code when the entry point definition is not found from the manifest. */
|
|
553
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
554
|
+
/** Error code when the entry point to be deleted is not found. */
|
|
555
|
+
EntryPointNotFound = "ENTRY_POINT_NOT_FOUND",
|
|
556
|
+
/** Error code when the shop is not found. */
|
|
557
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
558
|
+
}
|
|
559
|
+
/** Return type for the `entryPointDeleteByRule` mutation. */
|
|
560
|
+
export type EntryPointDeleteByRulePayload = {
|
|
561
|
+
__typename?: 'EntryPointDeleteByRulePayload';
|
|
562
|
+
/** List of errors that occured while executing the mutation. */
|
|
563
|
+
userErrors: Array<EntryPointDeleteByRuleUserError>;
|
|
564
|
+
};
|
|
565
|
+
/** A user or client error that could occur during the execution of the `entryPointDeleteByRule` mutation. */
|
|
566
|
+
export type EntryPointDeleteByRuleUserError = {
|
|
567
|
+
__typename?: 'EntryPointDeleteByRuleUserError';
|
|
568
|
+
/** Error code associated with the error. */
|
|
569
|
+
code: EntryPointDeleteByRuleUserErrorCode;
|
|
570
|
+
/** Which input value this error came from. */
|
|
571
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
572
|
+
/** A description of the error. */
|
|
573
|
+
message: Scalars['String'];
|
|
574
|
+
};
|
|
575
|
+
/** Possible error codes that can be returned by EntryPointDeleteByRuleUserError. */
|
|
576
|
+
export declare enum EntryPointDeleteByRuleUserErrorCode {
|
|
577
|
+
/** Error code when the entry point definition is not found from the manifest. */
|
|
578
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
579
|
+
/** Error code when the entry point to be deleted is not found. */
|
|
580
|
+
EntryPointNotFound = "ENTRY_POINT_NOT_FOUND",
|
|
581
|
+
/** Error code when the shop is not found. */
|
|
582
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
583
|
+
}
|
|
584
|
+
/** An edge in a connection. */
|
|
585
|
+
export type EntryPointEdge = {
|
|
586
|
+
__typename?: 'EntryPointEdge';
|
|
587
|
+
/** A cursor for use in pagination. */
|
|
588
|
+
cursor: Scalars['String'];
|
|
589
|
+
/** The item at the end of the edge. */
|
|
590
|
+
node?: Maybe<EntryPoint>;
|
|
591
|
+
};
|
|
592
|
+
/** The event status enum for an entry point. */
|
|
593
|
+
export declare enum EntryPointEventStatus {
|
|
594
|
+
/** The active status for Mini entry point event type. */
|
|
595
|
+
Active = "ACTIVE",
|
|
596
|
+
/** The post active status for Mini entry point event type. */
|
|
597
|
+
PostActive = "POST_ACTIVE",
|
|
598
|
+
/** The pre active status for Mini entry point event type. */
|
|
599
|
+
PreActive = "PRE_ACTIVE"
|
|
600
|
+
}
|
|
601
|
+
/** Return type for the `entryPointEventStatusUpdate` mutation. */
|
|
602
|
+
export type EntryPointEventStatusUpdatePayload = {
|
|
603
|
+
__typename?: 'EntryPointEventStatusUpdatePayload';
|
|
604
|
+
/** List of errors that occured while executing the mutation. */
|
|
605
|
+
userErrors: Array<EntryPointEventStatusUpdateUserError>;
|
|
606
|
+
};
|
|
607
|
+
/** A user or client error that could occur during the execution of the `entryPointEventStatusUpdate` mutation. */
|
|
608
|
+
export type EntryPointEventStatusUpdateUserError = {
|
|
609
|
+
__typename?: 'EntryPointEventStatusUpdateUserError';
|
|
610
|
+
/** Error code associated with the error. */
|
|
611
|
+
code: EntryPointEventStatusUpdateUserErrorCode;
|
|
612
|
+
/** Which input value this error came from. */
|
|
613
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
614
|
+
/** A description of the error. */
|
|
615
|
+
message: Scalars['String'];
|
|
616
|
+
};
|
|
617
|
+
/** Possible error codes that can be returned by EntryPointEventStatusUpdateUserError. */
|
|
618
|
+
export declare enum EntryPointEventStatusUpdateUserErrorCode {
|
|
619
|
+
/** Error code when the product is not found. */
|
|
620
|
+
ProductNotFound = "PRODUCT_NOT_FOUND",
|
|
621
|
+
/** Error code when the shop is not found. */
|
|
622
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
623
|
+
}
|
|
624
|
+
/** The entry point location of a Mini. */
|
|
625
|
+
export declare enum EntryPointLocation {
|
|
626
|
+
/** The Mini should be displayed on the order confirmation page. */
|
|
627
|
+
OrderConfirmationPage = "ORDER_CONFIRMATION_PAGE",
|
|
628
|
+
/** The Mini should be displayed on the product page. */
|
|
629
|
+
ProductPage = "PRODUCT_PAGE",
|
|
630
|
+
/** The Mini should be displayed on the product details page context menu. */
|
|
631
|
+
ProductPageContextMenu = "PRODUCT_PAGE_CONTEXT_MENU",
|
|
632
|
+
/** The Mini should be displayed on the store page. */
|
|
633
|
+
StorePage = "STORE_PAGE",
|
|
634
|
+
/** The Mini should be displayed on the store page context menu. */
|
|
635
|
+
StorePageContextMenu = "STORE_PAGE_CONTEXT_MENU"
|
|
636
|
+
}
|
|
637
|
+
/** Return type for the `entryPointSetByOwner` mutation. */
|
|
638
|
+
export type EntryPointSetByOwnerPayload = {
|
|
639
|
+
__typename?: 'EntryPointSetByOwnerPayload';
|
|
640
|
+
/** The entry point that was created or updated. */
|
|
641
|
+
entryPoint?: Maybe<EntryPoint>;
|
|
642
|
+
/** List of errors that occured while executing the mutation. */
|
|
643
|
+
userErrors: Array<EntryPointSetByOwnerUserError>;
|
|
644
|
+
};
|
|
645
|
+
/** A user or client error that could occur during the execution of the `entryPointSetByOwner` mutation. */
|
|
646
|
+
export type EntryPointSetByOwnerUserError = {
|
|
647
|
+
__typename?: 'EntryPointSetByOwnerUserError';
|
|
648
|
+
/** Error code associated with the error. */
|
|
649
|
+
code: EntryPointSetByOwnerUserErrorCode;
|
|
650
|
+
/** Which input value this error came from. */
|
|
651
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
652
|
+
/** A description of the error. */
|
|
653
|
+
message: Scalars['String'];
|
|
654
|
+
};
|
|
655
|
+
/** Possible error codes that can be returned by EntryPointSetByOwnerUserError. */
|
|
656
|
+
export declare enum EntryPointSetByOwnerUserErrorCode {
|
|
657
|
+
/** Error code when the entry point definition is not found from the manifest. */
|
|
658
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
659
|
+
/** Error code when the product is not eligible for Shop Minis. */
|
|
660
|
+
ProductNotEligible = "PRODUCT_NOT_ELIGIBLE",
|
|
661
|
+
/** Error code when the shop does not have any Shopify App installed for the associated Shop Mini. */
|
|
662
|
+
ShopifyAppNotInstalled = "SHOPIFY_APP_NOT_INSTALLED",
|
|
663
|
+
/** Error code when the shop is not eligible for Shop Minis. */
|
|
664
|
+
ShopNotEligible = "SHOP_NOT_ELIGIBLE",
|
|
665
|
+
/** Error code when the shop is not found. */
|
|
666
|
+
ShopNotFound = "SHOP_NOT_FOUND",
|
|
667
|
+
/** Error code when the entry point owner is not the expected type for the given entry point location. */
|
|
668
|
+
UnexpectedOwnerId = "UNEXPECTED_OWNER_ID"
|
|
669
|
+
}
|
|
670
|
+
/** Return type for the `entryPointSetByRule` mutation. */
|
|
671
|
+
export type EntryPointSetByRulePayload = {
|
|
672
|
+
__typename?: 'EntryPointSetByRulePayload';
|
|
673
|
+
/** The entry point that was created or updated. */
|
|
674
|
+
entryPoint?: Maybe<EntryPoint>;
|
|
675
|
+
/** List of errors that occured while executing the mutation. */
|
|
676
|
+
userErrors: Array<EntryPointSetByRuleUserError>;
|
|
677
|
+
};
|
|
678
|
+
/** A user or client error that could occur during the execution of the `entryPointSetByRule` mutation. */
|
|
679
|
+
export type EntryPointSetByRuleUserError = {
|
|
680
|
+
__typename?: 'EntryPointSetByRuleUserError';
|
|
681
|
+
/** Error code associated with the error. */
|
|
682
|
+
code: EntryPointSetByRuleUserErrorCode;
|
|
683
|
+
/** Which input value this error came from. */
|
|
684
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
685
|
+
/** A description of the error. */
|
|
686
|
+
message: Scalars['String'];
|
|
687
|
+
};
|
|
688
|
+
/** Possible error codes that can be returned by EntryPointSetByRuleUserError. */
|
|
689
|
+
export declare enum EntryPointSetByRuleUserErrorCode {
|
|
690
|
+
/** The entry point definition is not found from the manifest. */
|
|
691
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
692
|
+
/** The visibility rule is invalid. */
|
|
693
|
+
InvalidVisibilityRule = "INVALID_VISIBILITY_RULE",
|
|
694
|
+
/** Error code when the shop does not have any Shopify App installed for the associated Shop Mini. */
|
|
695
|
+
ShopifyAppNotInstalled = "SHOPIFY_APP_NOT_INSTALLED",
|
|
696
|
+
/** The shop is not eligible for Shop Minis. */
|
|
697
|
+
ShopNotEligible = "SHOP_NOT_ELIGIBLE",
|
|
698
|
+
/** The shop is not found. */
|
|
699
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
700
|
+
}
|
|
701
|
+
/** The information needed to create a new entry point. */
|
|
702
|
+
export type EntryPointSetInput = {
|
|
703
|
+
/** The default card entry point set input. */
|
|
704
|
+
defaultCard?: InputMaybe<DefaultCardEntryPointSetInput>;
|
|
705
|
+
/** The event card entry point set input. */
|
|
706
|
+
eventCardV2?: InputMaybe<EventCardV2EntryPointSetInput>;
|
|
707
|
+
/** The image collection entry point set input. */
|
|
708
|
+
imageCollection?: InputMaybe<ImageCollectionEntryPointSetInput>;
|
|
709
|
+
/** The link entry point set input. */
|
|
710
|
+
link?: InputMaybe<LinkEntryPointSetInput>;
|
|
711
|
+
/** The product offer card entry point set input. */
|
|
712
|
+
productOfferCard?: InputMaybe<ProductOfferCardEntryPointSetInput>;
|
|
713
|
+
/** The video collection entry point set input. */
|
|
714
|
+
videoCollection?: InputMaybe<VideoCollectionEntryPointSetInput>;
|
|
715
|
+
};
|
|
716
|
+
/** The entry point type of a Mini. */
|
|
717
|
+
export declare enum EntryPointType {
|
|
718
|
+
/** The Mini should be displayed as an action button. */
|
|
719
|
+
ActionButton = "ACTION_BUTTON",
|
|
720
|
+
/** The Mini should be displayed as a call to action. */
|
|
721
|
+
CallToAction = "CALL_TO_ACTION",
|
|
722
|
+
/** The Mini should be displayed as a card with content. */
|
|
723
|
+
ContentCard = "CONTENT_CARD",
|
|
724
|
+
/** The Mini should be displayed as a card with content. */
|
|
725
|
+
DefaultCard = "DEFAULT_CARD",
|
|
726
|
+
/** The Mini should be displayed as a card with a reminder button. */
|
|
727
|
+
EventCard = "EVENT_CARD",
|
|
728
|
+
/** The Mini should be displayed as a card with a reminder button. */
|
|
729
|
+
EventCardV2 = "EVENT_CARD_V2",
|
|
730
|
+
/** The Mini should be displayed as a collection of images. */
|
|
731
|
+
ImageCollection = "IMAGE_COLLECTION",
|
|
732
|
+
/** The Mini should be displayed as a card with an image and content. */
|
|
733
|
+
ImageContentCard = "IMAGE_CONTENT_CARD",
|
|
734
|
+
/** The Mini should be displayed as a link. */
|
|
735
|
+
Link = "LINK",
|
|
736
|
+
/** The Mini should be displayed as a live event. */
|
|
737
|
+
LiveEvent = "LIVE_EVENT",
|
|
738
|
+
/** The Mini should be displayed as a collection of images. */
|
|
739
|
+
ProductImageCollection = "PRODUCT_IMAGE_COLLECTION",
|
|
740
|
+
/** The Mini should be displayed as a product offer card. */
|
|
741
|
+
ProductOfferCard = "PRODUCT_OFFER_CARD",
|
|
742
|
+
/** The Mini should be displayed as a collection of videos. */
|
|
743
|
+
ProductVideoCollection = "PRODUCT_VIDEO_COLLECTION",
|
|
744
|
+
/** The Mini should be displayed as a collection of videos. */
|
|
745
|
+
VideoCollection = "VIDEO_COLLECTION"
|
|
746
|
+
}
|
|
747
|
+
/** Represents the validity of an entry point visibility rule. */
|
|
748
|
+
export type EntryPointVisibilityRuleValidity = {
|
|
749
|
+
__typename?: 'EntryPointVisibilityRuleValidity';
|
|
750
|
+
/** The validity status of the rule. */
|
|
751
|
+
status: EntryPointVisibilityRuleValidityStatus;
|
|
752
|
+
/** The errors that occurred when validating the rule. */
|
|
753
|
+
userErrors: Array<EntryPointVisibilityRuleValidityUserError>;
|
|
754
|
+
};
|
|
755
|
+
/** The error code for an entry point visibility rule error. */
|
|
756
|
+
export declare enum EntryPointVisibilityRuleValidityErrorCode {
|
|
757
|
+
/** Rules cannot be applied to all fields. Please specify the field name. */
|
|
758
|
+
FieldsUnspecified = "FIELDS_UNSPECIFIED",
|
|
759
|
+
/** Incompatible comparator found for the given fields. */
|
|
760
|
+
IncompatibleComparators = "INCOMPATIBLE_COMPARATORS",
|
|
761
|
+
/** Incompatible values given to the fields. Please refer to https://shopify.dev/api/usage/search-syntax for more information. */
|
|
762
|
+
IncompatibleQueryTypes = "INCOMPATIBLE_QUERY_TYPES",
|
|
763
|
+
/** Rule is not parseable. Please refer to https://shopify.dev/api/usage/search-syntax for more information. */
|
|
764
|
+
IncorrectSyntax = "INCORRECT_SYNTAX",
|
|
765
|
+
/** Unsupported fields given. Please refer to https://github.com/Shopify/shop-minis/blob/main/docs/ENTRY_POINT_VISIBILITY_RULE_FOR_PRODUCT_DETAILS_PAGES.md for more information. */
|
|
766
|
+
UnsupportedFields = "UNSUPPORTED_FIELDS"
|
|
767
|
+
}
|
|
768
|
+
/** The validity status of an entry point visibility rule. */
|
|
769
|
+
export declare enum EntryPointVisibilityRuleValidityStatus {
|
|
770
|
+
/** The rule is not valid. */
|
|
771
|
+
Invalid = "INVALID",
|
|
772
|
+
/** The rule is valid. */
|
|
773
|
+
Valid = "VALID"
|
|
774
|
+
}
|
|
775
|
+
/** An error that occurred when validating an entry point visibility rule. */
|
|
776
|
+
export type EntryPointVisibilityRuleValidityUserError = {
|
|
777
|
+
__typename?: 'EntryPointVisibilityRuleValidityUserError';
|
|
778
|
+
/** The code of the error that occurred. */
|
|
779
|
+
code: EntryPointVisibilityRuleValidityErrorCode;
|
|
780
|
+
/** The path to the field that the error occurred on. */
|
|
781
|
+
field: Array<Scalars['String']>;
|
|
782
|
+
/** The message describing the error. */
|
|
783
|
+
message: Scalars['String'];
|
|
784
|
+
};
|
|
785
|
+
/** An Event Card entry point. */
|
|
786
|
+
export type EventCardV2EntryPoint = EntryPoint & {
|
|
787
|
+
__typename?: 'EventCardV2EntryPoint';
|
|
788
|
+
/** The start time of the event. */
|
|
789
|
+
eventLiveAt?: Maybe<Scalars['ISO8601DateTime']>;
|
|
790
|
+
/** The status of the event. */
|
|
791
|
+
eventStatus: Scalars['String'];
|
|
792
|
+
/** The ID of the entry point. */
|
|
793
|
+
id?: Maybe<Scalars['ID']>;
|
|
794
|
+
/** The image for the card when the event is active. */
|
|
795
|
+
image: Image;
|
|
796
|
+
/** The location of the entry point. */
|
|
797
|
+
location?: Maybe<EntryPointLocation>;
|
|
798
|
+
/** The topic to subscribe to for notifications. */
|
|
799
|
+
notificationTopic: Scalars['String'];
|
|
800
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
801
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
802
|
+
/** The image for the card before the event is active. */
|
|
803
|
+
preActiveImage: Image;
|
|
804
|
+
/** The text of the card. */
|
|
805
|
+
text?: Maybe<Scalars['String']>;
|
|
806
|
+
/** The title of the card. */
|
|
807
|
+
title: Scalars['String'];
|
|
808
|
+
/** The date and time when the entry point was updated. */
|
|
809
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
810
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
811
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
812
|
+
};
|
|
813
|
+
/** The event status of the Mini event card entry point. */
|
|
814
|
+
export declare enum EventCardV2EntryPointEventStatus {
|
|
815
|
+
/** The active status for Mini entry point event type. */
|
|
816
|
+
Active = "ACTIVE",
|
|
817
|
+
/** The post active status for Mini entry point event type. */
|
|
818
|
+
PostActive = "POST_ACTIVE",
|
|
819
|
+
/** The pre active status for Mini entry point event type. */
|
|
820
|
+
PreActive = "PRE_ACTIVE"
|
|
821
|
+
}
|
|
822
|
+
/** The information needed to create a new event card entry point. */
|
|
823
|
+
export type EventCardV2EntryPointSetInput = {
|
|
824
|
+
/** The event start time for the event card entry point. */
|
|
825
|
+
eventLiveAt?: InputMaybe<Scalars['ISO8601DateTime']>;
|
|
826
|
+
/** The event status for the event card entry point. */
|
|
827
|
+
eventStatus: EventCardV2EntryPointEventStatus;
|
|
828
|
+
/** The image for the event card entry point when the event is active. */
|
|
829
|
+
image: ImageInput;
|
|
830
|
+
/** The notification topic for the event card entry point. */
|
|
831
|
+
notificationTopic: Scalars['String'];
|
|
832
|
+
/** The image for the event card entry point before the event is active. */
|
|
833
|
+
preActiveImage: ImageInput;
|
|
834
|
+
/** The text for the event card entry point. */
|
|
835
|
+
text?: InputMaybe<Scalars['String']>;
|
|
836
|
+
/** The title for the event card entry point. */
|
|
837
|
+
title: Scalars['String'];
|
|
838
|
+
};
|
|
839
|
+
/** Represents a video hosted outside of Shopify. */
|
|
840
|
+
export type ExternalVideo = {
|
|
841
|
+
__typename?: 'ExternalVideo';
|
|
842
|
+
/** The alt text for the media. */
|
|
843
|
+
alt?: Maybe<Scalars['String']>;
|
|
844
|
+
/** The embed URL of the video for the respective host. */
|
|
845
|
+
embedUrl: Scalars['URL'];
|
|
846
|
+
/** The preview image for the media. */
|
|
847
|
+
previewImage?: Maybe<Image>;
|
|
848
|
+
};
|
|
849
|
+
/** Represents a video hosted outside of Shopify. */
|
|
850
|
+
export type ExternalVideoInput = {
|
|
851
|
+
/** A word or phrase to share the nature or contents of a media. */
|
|
852
|
+
alt?: InputMaybe<Scalars['String']>;
|
|
853
|
+
/** The embed URL of the video for the respective host. */
|
|
854
|
+
embedUrl: Scalars['URL'];
|
|
855
|
+
/** The preview image for the media. */
|
|
856
|
+
previewImage?: InputMaybe<ImageInput>;
|
|
857
|
+
};
|
|
858
|
+
/** The image for the entry point. */
|
|
859
|
+
export type Image = {
|
|
860
|
+
__typename?: 'Image';
|
|
861
|
+
/** URL of the image. */
|
|
862
|
+
url: Scalars['URL'];
|
|
863
|
+
};
|
|
864
|
+
/** This is a Mini Image Collection entry point. */
|
|
865
|
+
export type ImageCollectionEntryPoint = EntryPoint & {
|
|
866
|
+
__typename?: 'ImageCollectionEntryPoint';
|
|
867
|
+
/** The ID of the entry point. */
|
|
868
|
+
id?: Maybe<Scalars['ID']>;
|
|
869
|
+
/** The items for the entry point. */
|
|
870
|
+
items: Array<ImageCollectionEntryPointItem>;
|
|
871
|
+
/** The layout for the entry point. */
|
|
872
|
+
layout: ImageCollectionEntryPointLayout;
|
|
873
|
+
/** The location of the entry point. */
|
|
874
|
+
location?: Maybe<EntryPointLocation>;
|
|
875
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
876
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
877
|
+
/** The date and time when the entry point was updated. */
|
|
878
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
879
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
880
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
881
|
+
};
|
|
882
|
+
/** This is a Mini image collection entry point item. */
|
|
883
|
+
export type ImageCollectionEntryPointItem = {
|
|
884
|
+
__typename?: 'ImageCollectionEntryPointItem';
|
|
885
|
+
/** The external ID for the item. Provided by the partner and opaque to the Shop app. */
|
|
886
|
+
externalId?: Maybe<Scalars['ID']>;
|
|
887
|
+
/** The image for the item. */
|
|
888
|
+
image: Image;
|
|
889
|
+
};
|
|
890
|
+
/** This is a Mini Image Collection entry point item. */
|
|
891
|
+
export type ImageCollectionEntryPointItemInput = {
|
|
892
|
+
/** The external ID for the item. Provided by the partner and opaque to the Shop app. */
|
|
893
|
+
externalId?: InputMaybe<Scalars['String']>;
|
|
894
|
+
/** The image for the item. */
|
|
895
|
+
image: ImageInput;
|
|
896
|
+
};
|
|
897
|
+
/** The layout of the Mini Image Collection entry point. */
|
|
898
|
+
export declare enum ImageCollectionEntryPointLayout {
|
|
899
|
+
/** The layout is a carousel. */
|
|
900
|
+
Carousel = "CAROUSEL",
|
|
901
|
+
/** The layout is a grid. */
|
|
902
|
+
Grid = "GRID"
|
|
903
|
+
}
|
|
904
|
+
/** The information needed to create a new image collection entry point. */
|
|
905
|
+
export type ImageCollectionEntryPointSetInput = {
|
|
906
|
+
/** The items for the entry point. It can't be empty. */
|
|
907
|
+
items: Array<ImageCollectionEntryPointItemInput>;
|
|
908
|
+
};
|
|
909
|
+
/** The information needed to create a new image. */
|
|
910
|
+
export type ImageInput = {
|
|
911
|
+
/** The URL of the Shopify hosted image. */
|
|
912
|
+
url: Scalars['URL'];
|
|
913
|
+
};
|
|
914
|
+
/** Return type for the `invitationAccept` mutation. */
|
|
915
|
+
export type InvitationAcceptPayload = {
|
|
916
|
+
__typename?: 'InvitationAcceptPayload';
|
|
917
|
+
/** The API key token that was created. */
|
|
918
|
+
token?: Maybe<Scalars['String']>;
|
|
919
|
+
/** List of errors that occured while executing the mutation. */
|
|
920
|
+
userErrors: Array<InvitationAcceptUserError>;
|
|
921
|
+
};
|
|
922
|
+
/** A user or client error that could occur during the execution of the `invitationAccept` mutation. */
|
|
923
|
+
export type InvitationAcceptUserError = {
|
|
924
|
+
__typename?: 'InvitationAcceptUserError';
|
|
925
|
+
/** Error code associated with the error. */
|
|
926
|
+
code: InvitationAcceptUserErrorCode;
|
|
927
|
+
/** Which input value this error came from. */
|
|
928
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
929
|
+
/** A description of the error. */
|
|
930
|
+
message: Scalars['String'];
|
|
931
|
+
};
|
|
932
|
+
/** Possible error codes that can be returned by InvitationAcceptUserError. */
|
|
933
|
+
export declare enum InvitationAcceptUserErrorCode {
|
|
934
|
+
/** Error code when the invitation is not found. */
|
|
935
|
+
InvitationNotFound = "INVITATION_NOT_FOUND"
|
|
936
|
+
}
|
|
937
|
+
/** A Link entry point to a Shop Mini. */
|
|
938
|
+
export type LinkEntryPoint = EntryPoint & {
|
|
939
|
+
__typename?: 'LinkEntryPoint';
|
|
940
|
+
/** The call to action text of the link entry point. */
|
|
941
|
+
actionText: Scalars['String'];
|
|
942
|
+
/** The ID of the entry point. */
|
|
943
|
+
id?: Maybe<Scalars['ID']>;
|
|
944
|
+
/** The location of the entry point. */
|
|
945
|
+
location?: Maybe<EntryPointLocation>;
|
|
946
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
947
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
948
|
+
/** The date and time when the entry point was updated. */
|
|
949
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
950
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
951
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
952
|
+
};
|
|
953
|
+
/** The information needed to create a new link entry point. */
|
|
954
|
+
export type LinkEntryPointSetInput = {
|
|
955
|
+
/** The call to action text of the link entry point. */
|
|
956
|
+
actionText: Scalars['String'];
|
|
957
|
+
};
|
|
958
|
+
/** Information about a Shop Mini. */
|
|
959
|
+
export type Mini = {
|
|
960
|
+
__typename?: 'Mini';
|
|
961
|
+
/** The mini handle. */
|
|
962
|
+
handle: Scalars['ID'];
|
|
963
|
+
};
|
|
964
|
+
/** The information needed to create a new money. */
|
|
965
|
+
export type MoneyInput = {
|
|
966
|
+
/** Decimal money amount. */
|
|
967
|
+
amount: Scalars['Decimal'];
|
|
968
|
+
/** Currency code of the money. */
|
|
969
|
+
currencyCode: CurrencyCode;
|
|
970
|
+
};
|
|
971
|
+
/** A money object capturing an amount and its currency. */
|
|
972
|
+
export type MoneyV2 = {
|
|
973
|
+
__typename?: 'MoneyV2';
|
|
974
|
+
/** The decimal amount. */
|
|
975
|
+
amount: Scalars['Decimal'];
|
|
976
|
+
/**
|
|
977
|
+
* Approximate conversion of price to currencyCodeConvertedTo.
|
|
978
|
+
* @deprecated DEPRECATED - No longer implemented
|
|
979
|
+
*/
|
|
980
|
+
approximateConvertedAmount?: Maybe<Scalars['Decimal']>;
|
|
981
|
+
/** The currency code. */
|
|
982
|
+
currencyCode: Scalars['String'];
|
|
983
|
+
/**
|
|
984
|
+
* Currency code that price was converted to.
|
|
985
|
+
* @deprecated DEPRECATED - No longer implemented
|
|
986
|
+
*/
|
|
987
|
+
currencyCodeConvertedTo?: Maybe<Scalars['String']>;
|
|
988
|
+
};
|
|
989
|
+
export type Mutation = {
|
|
990
|
+
__typename?: 'Mutation';
|
|
991
|
+
/** Deletes an entry point by using its ownerId. */
|
|
992
|
+
entryPointDeleteByOwner: EntryPointDeleteByOwnerPayload;
|
|
993
|
+
/** Deletes an entry point with a visibility rule. */
|
|
994
|
+
entryPointDeleteByRule: EntryPointDeleteByRulePayload;
|
|
995
|
+
/** Updates the status of an event entry point. */
|
|
996
|
+
entryPointEventStatusUpdate: EntryPointEventStatusUpdatePayload;
|
|
997
|
+
/** Creates or updates an entry point. */
|
|
998
|
+
entryPointSetByOwner: EntryPointSetByOwnerPayload;
|
|
999
|
+
/** Creates or updates entry point by setting a visibility rule. */
|
|
1000
|
+
entryPointSetByRule: EntryPointSetByRulePayload;
|
|
1001
|
+
/** Swap an invitation code for an API key. */
|
|
1002
|
+
invitationAccept: InvitationAcceptPayload;
|
|
1003
|
+
/** Triggers a notification. */
|
|
1004
|
+
notificationTrigger: NotificationTriggerPayload;
|
|
1005
|
+
/** Cancels a pending submission. */
|
|
1006
|
+
submissionCancel: SubmissionCancelPayload;
|
|
1007
|
+
/** Creates a new submission. */
|
|
1008
|
+
submissionCreate: SubmissionCreatePayload;
|
|
1009
|
+
/** Creates a new staged upload for a submission. */
|
|
1010
|
+
submissionUploadCreate: SubmissionUploadCreatePayload;
|
|
1011
|
+
};
|
|
1012
|
+
export type MutationEntryPointDeleteByOwnerArgs = {
|
|
1013
|
+
location: EntryPointLocation;
|
|
1014
|
+
ownerId: Scalars['ID'];
|
|
1015
|
+
shopDomain: Scalars['String'];
|
|
1016
|
+
type: EntryPointType;
|
|
1017
|
+
};
|
|
1018
|
+
export type MutationEntryPointDeleteByRuleArgs = {
|
|
1019
|
+
location: EntryPointLocation;
|
|
1020
|
+
shopDomain: Scalars['String'];
|
|
1021
|
+
type: EntryPointType;
|
|
1022
|
+
};
|
|
1023
|
+
export type MutationEntryPointEventStatusUpdateArgs = {
|
|
1024
|
+
productId?: InputMaybe<Scalars['ID']>;
|
|
1025
|
+
shopDomain?: InputMaybe<Scalars['String']>;
|
|
1026
|
+
status: EntryPointEventStatus;
|
|
1027
|
+
};
|
|
1028
|
+
export type MutationEntryPointSetByOwnerArgs = {
|
|
1029
|
+
input: EntryPointSetInput;
|
|
1030
|
+
location: EntryPointLocation;
|
|
1031
|
+
ownerId: Scalars['ID'];
|
|
1032
|
+
shopDomain: Scalars['String'];
|
|
1033
|
+
};
|
|
1034
|
+
export type MutationEntryPointSetByRuleArgs = {
|
|
1035
|
+
input: EntryPointSetInput;
|
|
1036
|
+
location: EntryPointLocation;
|
|
1037
|
+
shopDomain: Scalars['String'];
|
|
1038
|
+
visibilityRule: Scalars['String'];
|
|
1039
|
+
};
|
|
1040
|
+
export type MutationInvitationAcceptArgs = {
|
|
1041
|
+
code: Scalars['String'];
|
|
1042
|
+
};
|
|
1043
|
+
export type MutationNotificationTriggerArgs = {
|
|
1044
|
+
scopedEntityId: Scalars['ID'];
|
|
1045
|
+
shopDomain?: InputMaybe<Scalars['String']>;
|
|
1046
|
+
templateHandle: Scalars['String'];
|
|
1047
|
+
};
|
|
1048
|
+
export type MutationSubmissionCancelArgs = {
|
|
1049
|
+
reference: Scalars['String'];
|
|
1050
|
+
};
|
|
1051
|
+
export type MutationSubmissionCreateArgs = {
|
|
1052
|
+
description: Scalars['String'];
|
|
1053
|
+
uploadId: Scalars['ID'];
|
|
1054
|
+
};
|
|
1055
|
+
export type MutationSubmissionUploadCreateArgs = {
|
|
1056
|
+
input: StagedUploadInput;
|
|
1057
|
+
};
|
|
1058
|
+
/** Return type for the `notificationTrigger` mutation. */
|
|
1059
|
+
export type NotificationTriggerPayload = {
|
|
1060
|
+
__typename?: 'NotificationTriggerPayload';
|
|
1061
|
+
/** List of errors that occured while executing the mutation. */
|
|
1062
|
+
userErrors: Array<NotificationTriggerUserError>;
|
|
1063
|
+
/** The warnings related to the notification trigger. */
|
|
1064
|
+
warnings?: Maybe<Array<Warning>>;
|
|
1065
|
+
};
|
|
1066
|
+
/** A user or client error that could occur during the execution of the `notificationTrigger` mutation. */
|
|
1067
|
+
export type NotificationTriggerUserError = {
|
|
1068
|
+
__typename?: 'NotificationTriggerUserError';
|
|
1069
|
+
/** Error code associated with the error. */
|
|
1070
|
+
code: NotificationTriggerUserErrorCode;
|
|
1071
|
+
/** Which input value this error came from. */
|
|
1072
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1073
|
+
/** A description of the error. */
|
|
1074
|
+
message: Scalars['String'];
|
|
1075
|
+
};
|
|
1076
|
+
/** Possible error codes that can be returned by NotificationTriggerUserError. */
|
|
1077
|
+
export declare enum NotificationTriggerUserErrorCode {
|
|
1078
|
+
/** Error code when the scoped entity is not found. */
|
|
1079
|
+
ScopedEntityNotFound = "SCOPED_ENTITY_NOT_FOUND",
|
|
1080
|
+
/** Error code when the shop is not found. */
|
|
1081
|
+
ShopNotFound = "SHOP_NOT_FOUND",
|
|
1082
|
+
/** Error code when the template handle is not found in the Mini's manifest. */
|
|
1083
|
+
TemplateNotFound = "TEMPLATE_NOT_FOUND",
|
|
1084
|
+
/** Error code when the template's topic_handle is invalid. */
|
|
1085
|
+
TopicNotFound = "TOPIC_NOT_FOUND",
|
|
1086
|
+
/** Error code when scopedEntityId object does not match topic scope. */
|
|
1087
|
+
TopicScopeNotMatchingEntity = "TOPIC_SCOPE_NOT_MATCHING_ENTITY"
|
|
1088
|
+
}
|
|
1089
|
+
/** Information about pagination in a connection. */
|
|
1090
|
+
export type PageInfo = {
|
|
1091
|
+
__typename?: 'PageInfo';
|
|
1092
|
+
/** When paginating forwards, the cursor to continue. */
|
|
1093
|
+
endCursor?: Maybe<Scalars['String']>;
|
|
1094
|
+
/** When paginating forwards, are there more items? */
|
|
1095
|
+
hasNextPage: Scalars['Boolean'];
|
|
1096
|
+
/** When paginating backwards, are there more items? */
|
|
1097
|
+
hasPreviousPage: Scalars['Boolean'];
|
|
1098
|
+
/** When paginating backwards, the cursor to continue. */
|
|
1099
|
+
startCursor?: Maybe<Scalars['String']>;
|
|
1100
|
+
};
|
|
1101
|
+
/** Represents the eligibility of a product within Shop. */
|
|
1102
|
+
export type ProductEligibility = {
|
|
1103
|
+
__typename?: 'ProductEligibility';
|
|
1104
|
+
/** The ID of the product. */
|
|
1105
|
+
productId: Scalars['ID'];
|
|
1106
|
+
/** The eligibility status of the product. */
|
|
1107
|
+
status: ProductEligibilityStatus;
|
|
1108
|
+
};
|
|
1109
|
+
/** The eligibility status of a product. */
|
|
1110
|
+
export declare enum ProductEligibilityStatus {
|
|
1111
|
+
/** The product is eligible to appear in Shop. */
|
|
1112
|
+
Eligible = "ELIGIBLE",
|
|
1113
|
+
/** The product is ineligible to appear in Shop. */
|
|
1114
|
+
Ineligible = "INELIGIBLE"
|
|
1115
|
+
}
|
|
1116
|
+
/** An Product Offer Card entry point. */
|
|
1117
|
+
export type ProductOfferCardEntryPoint = EntryPoint & {
|
|
1118
|
+
__typename?: 'ProductOfferCardEntryPoint';
|
|
1119
|
+
/** The discounted price of the offered product. */
|
|
1120
|
+
discountedPrice: MoneyV2;
|
|
1121
|
+
/** The product offer expiration time. */
|
|
1122
|
+
expiresAt?: Maybe<Scalars['ISO8601DateTime']>;
|
|
1123
|
+
/** The ID of the entry point. */
|
|
1124
|
+
id?: Maybe<Scalars['ID']>;
|
|
1125
|
+
/** The image for the offered product. */
|
|
1126
|
+
image?: Maybe<Image>;
|
|
1127
|
+
/** The location of the entry point. */
|
|
1128
|
+
location?: Maybe<EntryPointLocation>;
|
|
1129
|
+
/** The original price of the offered product. */
|
|
1130
|
+
originalPrice: MoneyV2;
|
|
1131
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
1132
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
1133
|
+
/** The product ID of the offered product on the card. */
|
|
1134
|
+
productId: Scalars['ID'];
|
|
1135
|
+
/** The title of the offered product. */
|
|
1136
|
+
title?: Maybe<Scalars['String']>;
|
|
1137
|
+
/** The date and time when the entry point was updated. */
|
|
1138
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
1139
|
+
/** The variant ID of the offered product's variant on the card. */
|
|
1140
|
+
variantId?: Maybe<Scalars['ID']>;
|
|
1141
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
1142
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
1143
|
+
};
|
|
1144
|
+
/** The information needed to create a new product offer card entry point. */
|
|
1145
|
+
export type ProductOfferCardEntryPointSetInput = {
|
|
1146
|
+
/** The text for the product offer card entry point. */
|
|
1147
|
+
discountedPrice: MoneyInput;
|
|
1148
|
+
/** The event start time for the product offer card entry point. */
|
|
1149
|
+
expiresAt?: InputMaybe<Scalars['ISO8601DateTime']>;
|
|
1150
|
+
/** The image for the product offer card entry point. */
|
|
1151
|
+
image?: InputMaybe<ImageInput>;
|
|
1152
|
+
/** The text for the product offer card entry point. */
|
|
1153
|
+
originalPrice: MoneyInput;
|
|
1154
|
+
/** The product ID for the product offer card entry point. */
|
|
1155
|
+
productId: Scalars['ID'];
|
|
1156
|
+
/** The title for the product offer card entry point. */
|
|
1157
|
+
title?: InputMaybe<Scalars['String']>;
|
|
1158
|
+
/** The variant ID for the product offer card entry point. */
|
|
1159
|
+
variantId?: InputMaybe<Scalars['ID']>;
|
|
1160
|
+
};
|
|
1161
|
+
export type Query = {
|
|
1162
|
+
__typename?: 'Query';
|
|
1163
|
+
/** Returns attributions for orders made through a Mini within Shop. */
|
|
1164
|
+
attributions: AttributionConnection;
|
|
1165
|
+
/** Returns whether a given entry point visibility rule is valid. */
|
|
1166
|
+
entryPointVisibilityRuleValidity: EntryPointVisibilityRuleValidity;
|
|
1167
|
+
/** Returns a list of entry points given the filters. */
|
|
1168
|
+
entryPoints: EntryPointConnection;
|
|
1169
|
+
/** Returns information about a Mini based on the provided API key. */
|
|
1170
|
+
mini?: Maybe<Mini>;
|
|
1171
|
+
/** Returns eligibilities for products within Shop. */
|
|
1172
|
+
productEligibilities: Array<ProductEligibility>;
|
|
1173
|
+
/** Returns eligibilities for shops within Shop. */
|
|
1174
|
+
shopEligibilities: Array<ShopEligibility>;
|
|
1175
|
+
/** Returns submissions for the Shop Mini. */
|
|
1176
|
+
submissions: SubmissionConnection;
|
|
1177
|
+
};
|
|
1178
|
+
export type QueryAttributionsArgs = {
|
|
1179
|
+
after?: InputMaybe<Scalars['String']>;
|
|
1180
|
+
before?: InputMaybe<Scalars['String']>;
|
|
1181
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
1182
|
+
last?: InputMaybe<Scalars['Int']>;
|
|
1183
|
+
orderId?: InputMaybe<Scalars['ID']>;
|
|
1184
|
+
shopDomain?: InputMaybe<Scalars['String']>;
|
|
1185
|
+
};
|
|
1186
|
+
export type QueryEntryPointVisibilityRuleValidityArgs = {
|
|
1187
|
+
rule: Scalars['String'];
|
|
1188
|
+
};
|
|
1189
|
+
export type QueryEntryPointsArgs = {
|
|
1190
|
+
after?: InputMaybe<Scalars['String']>;
|
|
1191
|
+
before?: InputMaybe<Scalars['String']>;
|
|
1192
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
1193
|
+
last?: InputMaybe<Scalars['Int']>;
|
|
1194
|
+
location?: InputMaybe<EntryPointLocation>;
|
|
1195
|
+
shopDomain: Scalars['String'];
|
|
1196
|
+
type?: InputMaybe<EntryPointType>;
|
|
1197
|
+
updatedAt?: InputMaybe<TimeRangeFilter>;
|
|
1198
|
+
};
|
|
1199
|
+
export type QueryProductEligibilitiesArgs = {
|
|
1200
|
+
productIds: Array<Scalars['ID']>;
|
|
1201
|
+
};
|
|
1202
|
+
export type QueryShopEligibilitiesArgs = {
|
|
1203
|
+
shopDomains?: InputMaybe<Array<Scalars['String']>>;
|
|
1204
|
+
};
|
|
1205
|
+
export type QuerySubmissionsArgs = {
|
|
1206
|
+
after?: InputMaybe<Scalars['String']>;
|
|
1207
|
+
before?: InputMaybe<Scalars['String']>;
|
|
1208
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
1209
|
+
last?: InputMaybe<Scalars['Int']>;
|
|
1210
|
+
};
|
|
1211
|
+
/** Represents the eligibility of a shop within Shop. */
|
|
1212
|
+
export type ShopEligibility = {
|
|
1213
|
+
__typename?: 'ShopEligibility';
|
|
1214
|
+
/** The domain of the shop. */
|
|
1215
|
+
shopDomain?: Maybe<Scalars['String']>;
|
|
1216
|
+
/**
|
|
1217
|
+
* The ID of the shop.
|
|
1218
|
+
* @deprecated DEPRECATED - Please use shopDomain instead.
|
|
1219
|
+
*/
|
|
1220
|
+
shopId?: Maybe<Scalars['ID']>;
|
|
1221
|
+
/** The eligibility status of the shop. */
|
|
1222
|
+
status: ShopEligibilityStatus;
|
|
1223
|
+
};
|
|
1224
|
+
/** The eligibility status of a shop. */
|
|
1225
|
+
export declare enum ShopEligibilityStatus {
|
|
1226
|
+
/** The shop is eligible to appear in Shop. */
|
|
1227
|
+
Eligible = "ELIGIBLE",
|
|
1228
|
+
/** The shop is ineligible to appear in Shop. */
|
|
1229
|
+
Ineligible = "INELIGIBLE"
|
|
1230
|
+
}
|
|
1231
|
+
/** A staged upload where the file can be uploaded to and an id to identify it. */
|
|
1232
|
+
export type StagedUpload = {
|
|
1233
|
+
__typename?: 'StagedUpload';
|
|
1234
|
+
/** The headers to send with the upload request. */
|
|
1235
|
+
headers: Scalars['String'];
|
|
1236
|
+
/** The ID of the staged upload. */
|
|
1237
|
+
id: Scalars['ID'];
|
|
1238
|
+
/** The URL to upload the file to. */
|
|
1239
|
+
url: Scalars['URL'];
|
|
1240
|
+
};
|
|
1241
|
+
/** The information needed to create a new staged upload. */
|
|
1242
|
+
export type StagedUploadInput = {
|
|
1243
|
+
/** The base64-encoded md5 hash of the file contents. */
|
|
1244
|
+
checksum: Scalars['String'];
|
|
1245
|
+
/** The size of the file in bytes. */
|
|
1246
|
+
fileSize: Scalars['Int'];
|
|
1247
|
+
/** The name of the file. */
|
|
1248
|
+
filename: Scalars['String'];
|
|
1249
|
+
/** The MIME of the file. */
|
|
1250
|
+
mimeType: Scalars['String'];
|
|
1251
|
+
};
|
|
1252
|
+
/** A submission for a Shop Mini. */
|
|
1253
|
+
export type Submission = {
|
|
1254
|
+
__typename?: 'Submission';
|
|
1255
|
+
/** A description of the Shop Mini and any changes since the last released version. */
|
|
1256
|
+
description: Scalars['String'];
|
|
1257
|
+
/** The unique reference for the submission. */
|
|
1258
|
+
reference: Scalars['String'];
|
|
1259
|
+
/** The status of the submission. */
|
|
1260
|
+
status: SubmissionStatus;
|
|
1261
|
+
/** The date and time the submission was submitted. */
|
|
1262
|
+
submittedAt: Scalars['ISO8601DateTime'];
|
|
1263
|
+
};
|
|
1264
|
+
/** Return type for the `submissionCancel` mutation. */
|
|
1265
|
+
export type SubmissionCancelPayload = {
|
|
1266
|
+
__typename?: 'SubmissionCancelPayload';
|
|
1267
|
+
/** The cancelled submission. */
|
|
1268
|
+
submission?: Maybe<Submission>;
|
|
1269
|
+
/** List of errors that occured while executing the mutation. */
|
|
1270
|
+
userErrors: Array<SubmissionCancelUserError>;
|
|
1271
|
+
};
|
|
1272
|
+
/** A user or client error that could occur during the execution of the `submissionCancel` mutation. */
|
|
1273
|
+
export type SubmissionCancelUserError = {
|
|
1274
|
+
__typename?: 'SubmissionCancelUserError';
|
|
1275
|
+
/** Error code associated with the error. */
|
|
1276
|
+
code: SubmissionCancelUserErrorCode;
|
|
1277
|
+
/** Which input value this error came from. */
|
|
1278
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1279
|
+
/** A description of the error. */
|
|
1280
|
+
message: Scalars['String'];
|
|
1281
|
+
};
|
|
1282
|
+
/** Possible error codes that can be returned by SubmissionCancelUserError. */
|
|
1283
|
+
export declare enum SubmissionCancelUserErrorCode {
|
|
1284
|
+
/** Error code when the submission is not found. */
|
|
1285
|
+
NotFound = "NOT_FOUND",
|
|
1286
|
+
/** Error code when the submission does not have a pending status. */
|
|
1287
|
+
NotPending = "NOT_PENDING"
|
|
1288
|
+
}
|
|
1289
|
+
/** The connection type for Submission. */
|
|
1290
|
+
export type SubmissionConnection = {
|
|
1291
|
+
__typename?: 'SubmissionConnection';
|
|
1292
|
+
/** A list of edges. */
|
|
1293
|
+
edges: Array<SubmissionEdge>;
|
|
1294
|
+
/** A list of nodes. */
|
|
1295
|
+
nodes: Array<Submission>;
|
|
1296
|
+
/** Information to aid in pagination. */
|
|
1297
|
+
pageInfo: PageInfo;
|
|
1298
|
+
};
|
|
1299
|
+
/** Return type for the `submissionCreate` mutation. */
|
|
1300
|
+
export type SubmissionCreatePayload = {
|
|
1301
|
+
__typename?: 'SubmissionCreatePayload';
|
|
1302
|
+
/** The submission that was created. */
|
|
1303
|
+
submission?: Maybe<Submission>;
|
|
1304
|
+
/** List of errors that occured while executing the mutation. */
|
|
1305
|
+
userErrors: Array<SubmissionCreateUserError>;
|
|
1306
|
+
};
|
|
1307
|
+
/** A user or client error that could occur during the execution of the `submissionCreate` mutation. */
|
|
1308
|
+
export type SubmissionCreateUserError = {
|
|
1309
|
+
__typename?: 'SubmissionCreateUserError';
|
|
1310
|
+
/** Error code associated with the error. */
|
|
1311
|
+
code: SubmissionCreateUserErrorCode;
|
|
1312
|
+
/** Which input value this error came from. */
|
|
1313
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1314
|
+
/** A description of the error. */
|
|
1315
|
+
message: Scalars['String'];
|
|
1316
|
+
};
|
|
1317
|
+
/** Possible error codes that can be returned by SubmissionCreateUserError. */
|
|
1318
|
+
export declare enum SubmissionCreateUserErrorCode {
|
|
1319
|
+
/** Error code when there is already a pending submission. */
|
|
1320
|
+
AlreadyPendingSubmission = "ALREADY_PENDING_SUBMISSION",
|
|
1321
|
+
/** Error code when the file does not exist in the storage service. */
|
|
1322
|
+
FileNotFound = "FILE_NOT_FOUND",
|
|
1323
|
+
/** Error code when the upload ID is not valid. Either it is does not point to a blob or is not signed correctly. */
|
|
1324
|
+
UploadNotFound = "UPLOAD_NOT_FOUND"
|
|
1325
|
+
}
|
|
1326
|
+
/** An edge in a connection. */
|
|
1327
|
+
export type SubmissionEdge = {
|
|
1328
|
+
__typename?: 'SubmissionEdge';
|
|
1329
|
+
/** A cursor for use in pagination. */
|
|
1330
|
+
cursor: Scalars['String'];
|
|
1331
|
+
/** The item at the end of the edge. */
|
|
1332
|
+
node?: Maybe<Submission>;
|
|
1333
|
+
};
|
|
1334
|
+
/** The status of a submission. */
|
|
1335
|
+
export declare enum SubmissionStatus {
|
|
1336
|
+
/** The submission has been approved. */
|
|
1337
|
+
Approved = "APPROVED",
|
|
1338
|
+
/** The submission has been cancelled. */
|
|
1339
|
+
Cancelled = "CANCELLED",
|
|
1340
|
+
/** The submission is pending review. */
|
|
1341
|
+
Pending = "PENDING",
|
|
1342
|
+
/** The submission has been rejected. */
|
|
1343
|
+
Rejected = "REJECTED"
|
|
1344
|
+
}
|
|
1345
|
+
/** Return type for the `submissionUploadCreate` mutation. */
|
|
1346
|
+
export type SubmissionUploadCreatePayload = {
|
|
1347
|
+
__typename?: 'SubmissionUploadCreatePayload';
|
|
1348
|
+
/** The staged upload that was created. */
|
|
1349
|
+
upload?: Maybe<StagedUpload>;
|
|
1350
|
+
/** List of errors that occured while executing the mutation. */
|
|
1351
|
+
userErrors: Array<SubmissionUploadCreateUserError>;
|
|
1352
|
+
};
|
|
1353
|
+
/** A user or client error that could occur during the execution of the `submissionUploadCreate` mutation. */
|
|
1354
|
+
export type SubmissionUploadCreateUserError = {
|
|
1355
|
+
__typename?: 'SubmissionUploadCreateUserError';
|
|
1356
|
+
/** Error code associated with the error. */
|
|
1357
|
+
code: SubmissionUploadCreateUserErrorCode;
|
|
1358
|
+
/** Which input value this error came from. */
|
|
1359
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1360
|
+
/** A description of the error. */
|
|
1361
|
+
message: Scalars['String'];
|
|
1362
|
+
};
|
|
1363
|
+
/** Possible error codes that can be returned by SubmissionUploadCreateUserError. */
|
|
1364
|
+
export declare enum SubmissionUploadCreateUserErrorCode {
|
|
1365
|
+
/** Error code when an invalid checksum is provided. */
|
|
1366
|
+
InvalidChecksum = "INVALID_CHECKSUM",
|
|
1367
|
+
/** Error code when the file size is less than 0 or exceeds 1048576 bytes. */
|
|
1368
|
+
InvalidFileSize = "INVALID_FILE_SIZE",
|
|
1369
|
+
/** Error code when an invalid MIME type is provided. */
|
|
1370
|
+
InvalidMimeType = "INVALID_MIME_TYPE"
|
|
1371
|
+
}
|
|
1372
|
+
/** This filter selects objects that were updated within a specified time range. */
|
|
1373
|
+
export type TimeRangeFilter = {
|
|
1374
|
+
/** The maximum updated at date and time in the range. */
|
|
1375
|
+
max?: InputMaybe<Scalars['ISO8601DateTime']>;
|
|
1376
|
+
/** The minimum updated at date and time in the range. */
|
|
1377
|
+
min?: InputMaybe<Scalars['ISO8601DateTime']>;
|
|
1378
|
+
};
|
|
1379
|
+
/** This is a Mini video collection entry point. */
|
|
1380
|
+
export type VideoCollectionEntryPoint = EntryPoint & {
|
|
1381
|
+
__typename?: 'VideoCollectionEntryPoint';
|
|
1382
|
+
/** The ID of the entry point. */
|
|
1383
|
+
id?: Maybe<Scalars['ID']>;
|
|
1384
|
+
/** The items for the entry point. */
|
|
1385
|
+
items: Array<VideoCollectionEntryPointItem>;
|
|
1386
|
+
/** The location of the entry point. */
|
|
1387
|
+
location?: Maybe<EntryPointLocation>;
|
|
1388
|
+
/** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
|
|
1389
|
+
ownerId?: Maybe<Scalars['ID']>;
|
|
1390
|
+
/** The date and time when the entry point was updated. */
|
|
1391
|
+
updatedAt: Scalars['ISO8601DateTime'];
|
|
1392
|
+
/** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
|
|
1393
|
+
visibilityRule?: Maybe<Scalars['String']>;
|
|
1394
|
+
};
|
|
1395
|
+
/** This is a Mini video collection entry point item. */
|
|
1396
|
+
export type VideoCollectionEntryPointItem = {
|
|
1397
|
+
__typename?: 'VideoCollectionEntryPointItem';
|
|
1398
|
+
/** The content creator for the item. */
|
|
1399
|
+
contentCreator?: Maybe<ContentCreator>;
|
|
1400
|
+
/** The external ID for the item. Provided by the partner and opaque to the Shop app. */
|
|
1401
|
+
externalId?: Maybe<Scalars['ID']>;
|
|
1402
|
+
/** The fallback image for the item. */
|
|
1403
|
+
fallbackImage: Image;
|
|
1404
|
+
/** The product ID for the item. */
|
|
1405
|
+
productId?: Maybe<Scalars['ID']>;
|
|
1406
|
+
/** The video for the item. */
|
|
1407
|
+
video?: Maybe<ExternalVideo>;
|
|
1408
|
+
};
|
|
1409
|
+
/** This is a Mini Video Collection entry point item. */
|
|
1410
|
+
export type VideoCollectionEntryPointItemInput = {
|
|
1411
|
+
/** The content creator for the entry point. */
|
|
1412
|
+
contentCreator?: InputMaybe<ContentCreatorInput>;
|
|
1413
|
+
/** The external ID for the item. Provided by the partner and opaque to the Shop app. */
|
|
1414
|
+
externalId?: InputMaybe<Scalars['String']>;
|
|
1415
|
+
/** The fallback image for the entry point. */
|
|
1416
|
+
fallbackImage: ImageInput;
|
|
1417
|
+
/** The product ID for the entry point. */
|
|
1418
|
+
productId?: InputMaybe<Scalars['ID']>;
|
|
1419
|
+
/** The product variant ID for the entry point. */
|
|
1420
|
+
productVariantId?: InputMaybe<Scalars['ID']>;
|
|
1421
|
+
/** The video for the entry point. */
|
|
1422
|
+
video: ExternalVideoInput;
|
|
1423
|
+
};
|
|
1424
|
+
/** The information needed to create or update a video collection entry point. */
|
|
1425
|
+
export type VideoCollectionEntryPointSetInput = {
|
|
1426
|
+
/** The items for the entry point. It can't be empty. */
|
|
1427
|
+
items: Array<VideoCollectionEntryPointItemInput>;
|
|
1428
|
+
};
|
|
1429
|
+
/** Informs API user about non critical casualties during the execution of a query or a mutation. */
|
|
1430
|
+
export type Warning = {
|
|
1431
|
+
__typename?: 'Warning';
|
|
1432
|
+
/** Text identifier of the warning. */
|
|
1433
|
+
code: Scalars['String'];
|
|
1434
|
+
/** Description of the warning. */
|
|
1435
|
+
message: Scalars['String'];
|
|
1436
|
+
};
|
|
1437
|
+
export type AcceptInvitationMutationVariables = Exact<{
|
|
1438
|
+
code: Scalars['String'];
|
|
1439
|
+
}>;
|
|
1440
|
+
export type AcceptInvitationMutation = {
|
|
1441
|
+
__typename?: 'Mutation';
|
|
1442
|
+
invitationAccept: {
|
|
1443
|
+
__typename?: 'InvitationAcceptPayload';
|
|
1444
|
+
token?: string | null;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1447
|
+
export type CancelSubmissionMutationVariables = Exact<{
|
|
1448
|
+
reference: Scalars['String'];
|
|
1449
|
+
}>;
|
|
1450
|
+
export type CancelSubmissionMutation = {
|
|
1451
|
+
__typename?: 'Mutation';
|
|
1452
|
+
submissionCancel: {
|
|
1453
|
+
__typename?: 'SubmissionCancelPayload';
|
|
1454
|
+
submission?: {
|
|
1455
|
+
__typename?: 'Submission';
|
|
1456
|
+
reference: string;
|
|
1457
|
+
description: string;
|
|
1458
|
+
status: SubmissionStatus;
|
|
1459
|
+
submittedAt: any;
|
|
1460
|
+
} | null;
|
|
1461
|
+
userErrors: Array<{
|
|
1462
|
+
__typename?: 'SubmissionCancelUserError';
|
|
1463
|
+
code: SubmissionCancelUserErrorCode;
|
|
1464
|
+
message: string;
|
|
1465
|
+
field?: Array<string> | null;
|
|
1466
|
+
}>;
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
export type CreateSubmissionMutationVariables = Exact<{
|
|
1470
|
+
description: Scalars['String'];
|
|
1471
|
+
uploadId: Scalars['ID'];
|
|
1472
|
+
}>;
|
|
1473
|
+
export type CreateSubmissionMutation = {
|
|
1474
|
+
__typename?: 'Mutation';
|
|
1475
|
+
submissionCreate: {
|
|
1476
|
+
__typename?: 'SubmissionCreatePayload';
|
|
1477
|
+
submission?: {
|
|
1478
|
+
__typename?: 'Submission';
|
|
1479
|
+
reference: string;
|
|
1480
|
+
description: string;
|
|
1481
|
+
status: SubmissionStatus;
|
|
1482
|
+
submittedAt: any;
|
|
1483
|
+
} | null;
|
|
1484
|
+
userErrors: Array<{
|
|
1485
|
+
__typename?: 'SubmissionCreateUserError';
|
|
1486
|
+
code: SubmissionCreateUserErrorCode;
|
|
1487
|
+
message: string;
|
|
1488
|
+
field?: Array<string> | null;
|
|
1489
|
+
}>;
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
export type CreateUploadMutationVariables = Exact<{
|
|
1493
|
+
filename: Scalars['String'];
|
|
1494
|
+
fileSize: Scalars['Int'];
|
|
1495
|
+
checksum: Scalars['String'];
|
|
1496
|
+
mimeType: Scalars['String'];
|
|
1497
|
+
}>;
|
|
1498
|
+
export type CreateUploadMutation = {
|
|
1499
|
+
__typename?: 'Mutation';
|
|
1500
|
+
submissionUploadCreate: {
|
|
1501
|
+
__typename?: 'SubmissionUploadCreatePayload';
|
|
1502
|
+
upload?: {
|
|
1503
|
+
__typename?: 'StagedUpload';
|
|
1504
|
+
url: any;
|
|
1505
|
+
headers: string;
|
|
1506
|
+
id: string;
|
|
1507
|
+
} | null;
|
|
1508
|
+
userErrors: Array<{
|
|
1509
|
+
__typename?: 'SubmissionUploadCreateUserError';
|
|
1510
|
+
code: SubmissionUploadCreateUserErrorCode;
|
|
1511
|
+
message: string;
|
|
1512
|
+
field?: Array<string> | null;
|
|
1513
|
+
}>;
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
export type SubmissionsQueryVariables = Exact<{
|
|
1517
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
1518
|
+
}>;
|
|
1519
|
+
export type SubmissionsQuery = {
|
|
1520
|
+
__typename?: 'Query';
|
|
1521
|
+
submissions: {
|
|
1522
|
+
__typename?: 'SubmissionConnection';
|
|
1523
|
+
nodes: Array<{
|
|
1524
|
+
__typename?: 'Submission';
|
|
1525
|
+
reference: string;
|
|
1526
|
+
description: string;
|
|
1527
|
+
status: SubmissionStatus;
|
|
1528
|
+
submittedAt: any;
|
|
1529
|
+
}>;
|
|
1530
|
+
pageInfo: {
|
|
1531
|
+
__typename?: 'PageInfo';
|
|
1532
|
+
hasNextPage: boolean;
|
|
1533
|
+
hasPreviousPage: boolean;
|
|
1534
|
+
startCursor?: string | null;
|
|
1535
|
+
endCursor?: string | null;
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
export type MiniQueryVariables = Exact<{
|
|
1540
|
+
[key: string]: never;
|
|
1541
|
+
}>;
|
|
1542
|
+
export type MiniQuery = {
|
|
1543
|
+
__typename?: 'Query';
|
|
1544
|
+
mini?: {
|
|
1545
|
+
__typename?: 'Mini';
|
|
1546
|
+
handle: string;
|
|
1547
|
+
} | null;
|
|
1548
|
+
};
|
|
1549
|
+
export declare const AcceptInvitationDocument: DocumentNode<AcceptInvitationMutation, Exact<{
|
|
1550
|
+
code: Scalars['String'];
|
|
1551
|
+
}>>;
|
|
1552
|
+
export declare const CancelSubmissionDocument: DocumentNode<CancelSubmissionMutation, Exact<{
|
|
1553
|
+
reference: Scalars['String'];
|
|
1554
|
+
}>>;
|
|
1555
|
+
export declare const CreateSubmissionDocument: DocumentNode<CreateSubmissionMutation, Exact<{
|
|
1556
|
+
description: Scalars['String'];
|
|
1557
|
+
uploadId: Scalars['ID'];
|
|
1558
|
+
}>>;
|
|
1559
|
+
export declare const CreateUploadDocument: DocumentNode<CreateUploadMutation, Exact<{
|
|
1560
|
+
filename: Scalars['String'];
|
|
1561
|
+
fileSize: Scalars['Int'];
|
|
1562
|
+
checksum: Scalars['String'];
|
|
1563
|
+
mimeType: Scalars['String'];
|
|
1564
|
+
}>>;
|
|
1565
|
+
export declare const SubmissionsDocument: DocumentNode<SubmissionsQuery, Exact<{
|
|
1566
|
+
first?: InputMaybe<number> | undefined;
|
|
1567
|
+
}>>;
|
|
1568
|
+
export declare const MiniDocument: DocumentNode<MiniQuery, Exact<{
|
|
1569
|
+
[key: string]: never;
|
|
1570
|
+
}>>;
|