product.resolvers.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. package product
  2. // This file will be automatically regenerated based on the schema, any resolver implementations
  3. // will be copied through when generating and any unknown code will be moved to the end.
  4. // Code generated by github.com/99designs/gqlgen version v0.17.21 DO NOT EDIT.
  5. import (
  6. "context"
  7. "fmt"
  8. "gshopper.com/gshopify/admin-api/graph/product/generated"
  9. )
  10. // ProductAppendImages is the resolver for the productAppendImages field.
  11. func (r *mutationResolver) ProductAppendImages(ctx context.Context, input generated.ProductAppendImagesInput) (*generated.ProductAppendImagesPayload, error) {
  12. panic(fmt.Errorf("not implemented: ProductAppendImages - productAppendImages"))
  13. }
  14. // ProductChangeStatus is the resolver for the productChangeStatus field.
  15. func (r *mutationResolver) ProductChangeStatus(ctx context.Context, productID string, status generated.ProductStatus) (*generated.ProductChangeStatusPayload, error) {
  16. panic(fmt.Errorf("not implemented: ProductChangeStatus - productChangeStatus"))
  17. }
  18. // ProductCreate is the resolver for the productCreate field.
  19. func (r *mutationResolver) ProductCreate(ctx context.Context, input generated.ProductInput, media []*generated.CreateMediaInput) (*generated.ProductCreatePayload, error) {
  20. panic(fmt.Errorf("not implemented: ProductCreate - productCreate"))
  21. }
  22. // ProductCreateMedia is the resolver for the productCreateMedia field.
  23. func (r *mutationResolver) ProductCreateMedia(ctx context.Context, productID string, media []*generated.CreateMediaInput) (*generated.ProductCreateMediaPayload, error) {
  24. panic(fmt.Errorf("not implemented: ProductCreateMedia - productCreateMedia"))
  25. }
  26. // ProductDelete is the resolver for the productDelete field.
  27. func (r *mutationResolver) ProductDelete(ctx context.Context, input generated.ProductDeleteInput) (*generated.ProductDeletePayload, error) {
  28. panic(fmt.Errorf("not implemented: ProductDelete - productDelete"))
  29. }
  30. // ProductDeleteImages is the resolver for the productDeleteImages field.
  31. func (r *mutationResolver) ProductDeleteImages(ctx context.Context, id string, imageIds []string) (*generated.ProductDeleteImagesPayload, error) {
  32. panic(fmt.Errorf("not implemented: ProductDeleteImages - productDeleteImages"))
  33. }
  34. // ProductDeleteMedia is the resolver for the productDeleteMedia field.
  35. func (r *mutationResolver) ProductDeleteMedia(ctx context.Context, productID string, mediaIds []string) (*generated.ProductDeleteMediaPayload, error) {
  36. panic(fmt.Errorf("not implemented: ProductDeleteMedia - productDeleteMedia"))
  37. }
  38. // ProductDuplicate is the resolver for the productDuplicate field.
  39. func (r *mutationResolver) ProductDuplicate(ctx context.Context, productID string, newTitle string, newStatus *generated.ProductStatus, includeImages *bool) (*generated.ProductDuplicatePayload, error) {
  40. panic(fmt.Errorf("not implemented: ProductDuplicate - productDuplicate"))
  41. }
  42. // ProductImageUpdate is the resolver for the productImageUpdate field.
  43. func (r *mutationResolver) ProductImageUpdate(ctx context.Context, productID string, image generated.ImageInput) (*generated.ProductImageUpdatePayload, error) {
  44. panic(fmt.Errorf("not implemented: ProductImageUpdate - productImageUpdate"))
  45. }
  46. // ProductJoinSellingPlanGroups is the resolver for the productJoinSellingPlanGroups field.
  47. func (r *mutationResolver) ProductJoinSellingPlanGroups(ctx context.Context, id string, sellingPlanGroupIds []string) (*generated.ProductJoinSellingPlanGroupsPayload, error) {
  48. panic(fmt.Errorf("not implemented: ProductJoinSellingPlanGroups - productJoinSellingPlanGroups"))
  49. }
  50. // ProductLeaveSellingPlanGroups is the resolver for the productLeaveSellingPlanGroups field.
  51. func (r *mutationResolver) ProductLeaveSellingPlanGroups(ctx context.Context, id string, sellingPlanGroupIds []string) (*generated.ProductLeaveSellingPlanGroupsPayload, error) {
  52. panic(fmt.Errorf("not implemented: ProductLeaveSellingPlanGroups - productLeaveSellingPlanGroups"))
  53. }
  54. // ProductReorderImages is the resolver for the productReorderImages field.
  55. func (r *mutationResolver) ProductReorderImages(ctx context.Context, id string, moves []*generated.MoveInput) (*generated.ProductReorderImagesPayload, error) {
  56. panic(fmt.Errorf("not implemented: ProductReorderImages - productReorderImages"))
  57. }
  58. // ProductReorderMedia is the resolver for the productReorderMedia field.
  59. func (r *mutationResolver) ProductReorderMedia(ctx context.Context, id string, moves []*generated.MoveInput) (*generated.ProductReorderMediaPayload, error) {
  60. panic(fmt.Errorf("not implemented: ProductReorderMedia - productReorderMedia"))
  61. }
  62. // ProductUpdate is the resolver for the productUpdate field.
  63. func (r *mutationResolver) ProductUpdate(ctx context.Context, input generated.ProductInput) (*generated.ProductUpdatePayload, error) {
  64. panic(fmt.Errorf("not implemented: ProductUpdate - productUpdate"))
  65. }
  66. // ProductUpdateMedia is the resolver for the productUpdateMedia field.
  67. func (r *mutationResolver) ProductUpdateMedia(ctx context.Context, productID string, media []*generated.UpdateMediaInput) (*generated.ProductUpdateMediaPayload, error) {
  68. panic(fmt.Errorf("not implemented: ProductUpdateMedia - productUpdateMedia"))
  69. }
  70. // ProductVariantAppendMedia is the resolver for the productVariantAppendMedia field.
  71. func (r *mutationResolver) ProductVariantAppendMedia(ctx context.Context, productID string, variantMedia []*generated.ProductVariantAppendMediaInput) (*generated.ProductVariantAppendMediaPayload, error) {
  72. panic(fmt.Errorf("not implemented: ProductVariantAppendMedia - productVariantAppendMedia"))
  73. }
  74. // ProductVariantCreate is the resolver for the productVariantCreate field.
  75. func (r *mutationResolver) ProductVariantCreate(ctx context.Context, input generated.ProductVariantInput) (*generated.ProductVariantCreatePayload, error) {
  76. panic(fmt.Errorf("not implemented: ProductVariantCreate - productVariantCreate"))
  77. }
  78. // ProductVariantDelete is the resolver for the productVariantDelete field.
  79. func (r *mutationResolver) ProductVariantDelete(ctx context.Context, id string) (*generated.ProductVariantDeletePayload, error) {
  80. panic(fmt.Errorf("not implemented: ProductVariantDelete - productVariantDelete"))
  81. }
  82. // ProductVariantDetachMedia is the resolver for the productVariantDetachMedia field.
  83. func (r *mutationResolver) ProductVariantDetachMedia(ctx context.Context, productID string, variantMedia []*generated.ProductVariantDetachMediaInput) (*generated.ProductVariantDetachMediaPayload, error) {
  84. panic(fmt.Errorf("not implemented: ProductVariantDetachMedia - productVariantDetachMedia"))
  85. }
  86. // ProductVariantJoinSellingPlanGroups is the resolver for the productVariantJoinSellingPlanGroups field.
  87. func (r *mutationResolver) ProductVariantJoinSellingPlanGroups(ctx context.Context, id string, sellingPlanGroupIds []string) (*generated.ProductVariantJoinSellingPlanGroupsPayload, error) {
  88. panic(fmt.Errorf("not implemented: ProductVariantJoinSellingPlanGroups - productVariantJoinSellingPlanGroups"))
  89. }
  90. // ProductVariantLeaveSellingPlanGroups is the resolver for the productVariantLeaveSellingPlanGroups field.
  91. func (r *mutationResolver) ProductVariantLeaveSellingPlanGroups(ctx context.Context, id string, sellingPlanGroupIds []string) (*generated.ProductVariantLeaveSellingPlanGroupsPayload, error) {
  92. panic(fmt.Errorf("not implemented: ProductVariantLeaveSellingPlanGroups - productVariantLeaveSellingPlanGroups"))
  93. }
  94. // ProductVariantUpdate is the resolver for the productVariantUpdate field.
  95. func (r *mutationResolver) ProductVariantUpdate(ctx context.Context, input generated.ProductVariantInput) (*generated.ProductVariantUpdatePayload, error) {
  96. panic(fmt.Errorf("not implemented: ProductVariantUpdate - productVariantUpdate"))
  97. }
  98. // ProductVariantsBulkCreate is the resolver for the productVariantsBulkCreate field.
  99. func (r *mutationResolver) ProductVariantsBulkCreate(ctx context.Context, variants []*generated.ProductVariantsBulkInput, productID string) (*generated.ProductVariantsBulkCreatePayload, error) {
  100. panic(fmt.Errorf("not implemented: ProductVariantsBulkCreate - productVariantsBulkCreate"))
  101. }
  102. // ProductVariantsBulkDelete is the resolver for the productVariantsBulkDelete field.
  103. func (r *mutationResolver) ProductVariantsBulkDelete(ctx context.Context, variantsIds []string, productID string) (*generated.ProductVariantsBulkDeletePayload, error) {
  104. panic(fmt.Errorf("not implemented: ProductVariantsBulkDelete - productVariantsBulkDelete"))
  105. }
  106. // ProductVariantsBulkReorder is the resolver for the productVariantsBulkReorder field.
  107. func (r *mutationResolver) ProductVariantsBulkReorder(ctx context.Context, productID string, positions []*generated.ProductVariantPositionInput) (*generated.ProductVariantsBulkReorderPayload, error) {
  108. panic(fmt.Errorf("not implemented: ProductVariantsBulkReorder - productVariantsBulkReorder"))
  109. }
  110. // ProductVariantsBulkUpdate is the resolver for the productVariantsBulkUpdate field.
  111. func (r *mutationResolver) ProductVariantsBulkUpdate(ctx context.Context, variants []*generated.ProductVariantsBulkInput, productID string) (*generated.ProductVariantsBulkUpdatePayload, error) {
  112. panic(fmt.Errorf("not implemented: ProductVariantsBulkUpdate - productVariantsBulkUpdate"))
  113. }
  114. // Product is the resolver for the product field.
  115. func (r *queryResolver) Product(ctx context.Context, id string) (*generated.Product, error) {
  116. panic(fmt.Errorf("not implemented: Product - product"))
  117. }
  118. // ProductByHandle is the resolver for the productByHandle field.
  119. func (r *queryResolver) ProductByHandle(ctx context.Context, handle string) (*generated.Product, error) {
  120. panic(fmt.Errorf("not implemented: ProductByHandle - productByHandle"))
  121. }
  122. // ProductResourceFeedback is the resolver for the productResourceFeedback field.
  123. func (r *queryResolver) ProductResourceFeedback(ctx context.Context, id string) (*generated.ProductResourceFeedback, error) {
  124. panic(fmt.Errorf("not implemented: ProductResourceFeedback - productResourceFeedback"))
  125. }
  126. // ProductSavedSearches is the resolver for the productSavedSearches field.
  127. func (r *queryResolver) ProductSavedSearches(ctx context.Context, after *string, before *string, first *int, last *int, reverse *bool) (*generated.SavedSearchConnection, error) {
  128. panic(fmt.Errorf("not implemented: ProductSavedSearches - productSavedSearches"))
  129. }
  130. // ProductVariant is the resolver for the productVariant field.
  131. func (r *queryResolver) ProductVariant(ctx context.Context, id string) (*generated.ProductVariant, error) {
  132. panic(fmt.Errorf("not implemented: ProductVariant - productVariant"))
  133. }
  134. // ProductVariants is the resolver for the productVariants field.
  135. func (r *queryResolver) ProductVariants(ctx context.Context, after *string, before *string, first *int, last *int, query *string, reverse *bool, savedSearchID *string, sortKey *generated.ProductVariantSortKeys) (*generated.ProductVariantConnection, error) {
  136. panic(fmt.Errorf("not implemented: ProductVariants - productVariants"))
  137. }
  138. // Products is the resolver for the products field.
  139. func (r *queryResolver) Products(ctx context.Context, after *string, before *string, first *int, last *int, query *string, reverse *bool, savedSearchID *string, sortKey *generated.ProductSortKeys) (*generated.ProductConnection, error) {
  140. panic(fmt.Errorf("not implemented: Products - products"))
  141. }
  142. // Mutation returns generated.MutationResolver implementation.
  143. func (r *Resolver) Mutation() generated.MutationResolver { return &mutationResolver{r} }
  144. // Query returns generated.QueryResolver implementation.
  145. func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} }
  146. type mutationResolver struct{ *Resolver }
  147. type queryResolver struct{ *Resolver }