wetaca-cli 0.0.0-stage → 0.2.0

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.
Files changed (209) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +93 -2
  3. package/bin/wetaca.js +248 -0
  4. package/docs/GUIA.md +118 -0
  5. package/docs/agent-guide.md +71 -0
  6. package/docs/api-operations/wetaca_bundle__Doc0.graphql +40 -0
  7. package/docs/api-operations/wetaca_bundle__Doc1.graphql +14 -0
  8. package/docs/api-operations/wetaca_bundle__Doc10.graphql +45 -0
  9. package/docs/api-operations/wetaca_bundle__Doc11.graphql +9 -0
  10. package/docs/api-operations/wetaca_bundle__Doc2.graphql +7 -0
  11. package/docs/api-operations/wetaca_bundle__Doc3.graphql +39 -0
  12. package/docs/api-operations/wetaca_bundle__Doc4.graphql +36 -0
  13. package/docs/api-operations/wetaca_bundle__Doc5.graphql +40 -0
  14. package/docs/api-operations/wetaca_bundle__Doc6.graphql +33 -0
  15. package/docs/api-operations/wetaca_bundle__Doc7.graphql +48 -0
  16. package/docs/api-operations/wetaca_bundle__Doc8.graphql +92 -0
  17. package/docs/api-operations/wetaca_bundle__Doc9.graphql +95 -0
  18. package/docs/api-operations/wetaca_bundle__SaveWeeklySurveyStep.graphql +3 -0
  19. package/docs/api-operations/wetaca_bundle__StartWeeklySurvey.graphql +33 -0
  20. package/docs/api-operations/wetaca_bundle__SubmitWeeklySurvey.graphql +16 -0
  21. package/docs/api-operations/wetaca_bundle__SubscriptionDeliveryChangePriceQueryV2.graphql +5 -0
  22. package/docs/api-operations/wetaca_bundle__SuggestionDeliveryChangePriceQueryV2.graphql +5 -0
  23. package/docs/api-operations/wetaca_bundle__activateSubscriptionAccount.graphql +45 -0
  24. package/docs/api-operations/wetaca_bundle__activeReferredReward.graphql +3 -0
  25. package/docs/api-operations/wetaca_bundle__addProductsToProfileWhitelist.graphql +9 -0
  26. package/docs/api-operations/wetaca_bundle__addProductsToSubscriptionProfileBlacklist.graphql +9 -0
  27. package/docs/api-operations/wetaca_bundle__addProfileToSubscriptionAccount.graphql +56 -0
  28. package/docs/api-operations/wetaca_bundle__addRecurrenceVoucherToCustomer.graphql +23 -0
  29. package/docs/api-operations/wetaca_bundle__addSubscriptionProfileSuggestionOverwrites.graphql +9 -0
  30. package/docs/api-operations/wetaca_bundle__addresses.graphql +17 -0
  31. package/docs/api-operations/wetaca_bundle__addressesInManager.graphql +17 -0
  32. package/docs/api-operations/wetaca_bundle__allRecommenderIngredients.graphql +6 -0
  33. package/docs/api-operations/wetaca_bundle__appendNewPaymentSubscriptionMethod.graphql +8 -0
  34. package/docs/api-operations/wetaca_bundle__applyOrderVoucher.graphql +33 -0
  35. package/docs/api-operations/wetaca_bundle__articleQuery.graphql +22 -0
  36. package/docs/api-operations/wetaca_bundle__articlesByCategoryQuery.graphql +13 -0
  37. package/docs/api-operations/wetaca_bundle__assignNextSuggestionVoucher.graphql +9 -0
  38. package/docs/api-operations/wetaca_bundle__authorizePaypalTokenGenerationPaymentIntention.graphql +7 -0
  39. package/docs/api-operations/wetaca_bundle__authorizeRedsysAppApplePayPayment.graphql +16 -0
  40. package/docs/api-operations/wetaca_bundle__authorizeRedsysAppGooglePayPayment.graphql +16 -0
  41. package/docs/api-operations/wetaca_bundle__authorizeRedsysApplePayPayment.graphql +16 -0
  42. package/docs/api-operations/wetaca_bundle__authorizeRedsysGooglePayPayment.graphql +16 -0
  43. package/docs/api-operations/wetaca_bundle__authorizeRedsysPaymentIntention.graphql +17 -0
  44. package/docs/api-operations/wetaca_bundle__bypassSMSValidationConfigQuery.graphql +5 -0
  45. package/docs/api-operations/wetaca_bundle__calculateNextProfileSuggestions.graphql +31 -0
  46. package/docs/api-operations/wetaca_bundle__cancelConfirmedOrder.graphql +6 -0
  47. package/docs/api-operations/wetaca_bundle__cancelSubscriptionAccount.graphql +45 -0
  48. package/docs/api-operations/wetaca_bundle__categoriesQuery.graphql +15 -0
  49. package/docs/api-operations/wetaca_bundle__changeOptionsQuery.graphql +21 -0
  50. package/docs/api-operations/wetaca_bundle__changeOrderDelivery.graphql +27 -0
  51. package/docs/api-operations/wetaca_bundle__changePasswordInProfile.graphql +3 -0
  52. package/docs/api-operations/wetaca_bundle__changeSubscriptionOptInMode.graphql +5 -0
  53. package/docs/api-operations/wetaca_bundle__changeSubscriptionPaymentPaymentMethodsEdit.graphql +8 -0
  54. package/docs/api-operations/wetaca_bundle__computeConfirmedOrderModificationPriceSummary.graphql +7 -0
  55. package/docs/api-operations/wetaca_bundle__confirmDeliveryReschedule.graphql +6 -0
  56. package/docs/api-operations/wetaca_bundle__confirmedOrderEditContext.graphql +95 -0
  57. package/docs/api-operations/wetaca_bundle__currentRecurrenceVouchers.graphql +23 -0
  58. package/docs/api-operations/wetaca_bundle__customer.graphql +11 -0
  59. package/docs/api-operations/wetaca_bundle__customerBillingAddresses.graphql +18 -0
  60. package/docs/api-operations/wetaca_bundle__customerFF.graphql +7 -0
  61. package/docs/api-operations/wetaca_bundle__customerFeatureFlagBySlug.graphql +7 -0
  62. package/docs/api-operations/wetaca_bundle__customerFeatureFlagForAnalytics.graphql +8 -0
  63. package/docs/api-operations/wetaca_bundle__customerHasReferralVouchers.graphql +11 -0
  64. package/docs/api-operations/wetaca_bundle__customerPaymentMethods.graphql +23 -0
  65. package/docs/api-operations/wetaca_bundle__customerVouchers.graphql +224 -0
  66. package/docs/api-operations/wetaca_bundle__customerWalletScheduledDeposits.graphql +15 -0
  67. package/docs/api-operations/wetaca_bundle__customerWithSegment.graphql +61 -0
  68. package/docs/api-operations/wetaca_bundle__deleteCustomerAccount.graphql +3 -0
  69. package/docs/api-operations/wetaca_bundle__deleteCustomerScheduledDeposit.graphql +3 -0
  70. package/docs/api-operations/wetaca_bundle__deliveryOptionsByZipcode.graphql +27 -0
  71. package/docs/api-operations/wetaca_bundle__deliveryRescheduleWithAvailability.graphql +53 -0
  72. package/docs/api-operations/wetaca_bundle__dish.graphql +39 -0
  73. package/docs/api-operations/wetaca_bundle__editAccountBillingAddress.graphql +5 -0
  74. package/docs/api-operations/wetaca_bundle__editDeliveryAccountInfo.graphql +5 -0
  75. package/docs/api-operations/wetaca_bundle__editProfileSuggestionMenu.graphql +9 -0
  76. package/docs/api-operations/wetaca_bundle__editSubscriptionDelivery.graphql +5 -0
  77. package/docs/api-operations/wetaca_bundle__editSubscriptionProfileAllergens.graphql +56 -0
  78. package/docs/api-operations/wetaca_bundle__editSubscriptionProfileDislikes.graphql +56 -0
  79. package/docs/api-operations/wetaca_bundle__editSubscriptionProfileMenu.graphql +56 -0
  80. package/docs/api-operations/wetaca_bundle__editSubscriptionProfileMenuAndNutrition.graphql +56 -0
  81. package/docs/api-operations/wetaca_bundle__editSubscriptionProfileSpicy.graphql +56 -0
  82. package/docs/api-operations/wetaca_bundle__editSubscriptionTastesProfile.graphql +38 -0
  83. package/docs/api-operations/wetaca_bundle__editSuggestionDelivery.graphql +5 -0
  84. package/docs/api-operations/wetaca_bundle__featuredArticlesQuery.graphql +16 -0
  85. package/docs/api-operations/wetaca_bundle__getChargingSuggestionMetadata.graphql +6 -0
  86. package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationMaxQuantities.graphql +5 -0
  87. package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationProductAvailability.graphql +13 -0
  88. package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationProductAvailabilityWithExceptions.graphql +28 -0
  89. package/docs/api-operations/wetaca_bundle__getSubscriptionAccountDeliveryConfigurationProductAvailability.graphql +38 -0
  90. package/docs/api-operations/wetaca_bundle__getUseGoogleSocialLoginInIosAppConfiguration.graphql +3 -0
  91. package/docs/api-operations/wetaca_bundle__getWeeklySurveyConfig.graphql +7 -0
  92. package/docs/api-operations/wetaca_bundle__giftCardsConfiguration.graphql +6 -0
  93. package/docs/api-operations/wetaca_bundle__globalConfigurations.graphql +10 -0
  94. package/docs/api-operations/wetaca_bundle__initNewRedsysPaymentIntention.graphql +10 -0
  95. package/docs/api-operations/wetaca_bundle__initPaypalTokenGenerationPaymentIntention.graphql +7 -0
  96. package/docs/api-operations/wetaca_bundle__initializePaymentProcessEvent.graphql +3 -0
  97. package/docs/api-operations/wetaca_bundle__isNextSuggestionSkiped.graphql +6 -0
  98. package/docs/api-operations/wetaca_bundle__landingTemplateCollectionQuery.graphql +157 -0
  99. package/docs/api-operations/wetaca_bundle__landingTemplateFloatingBarQuery.graphql +8 -0
  100. package/docs/api-operations/wetaca_bundle__lastUsedOrderOptions.graphql +34 -0
  101. package/docs/api-operations/wetaca_bundle__linkGoogleAccountByPassword.graphql +3 -0
  102. package/docs/api-operations/wetaca_bundle__linkGoogleAccountBySMS.graphql +3 -0
  103. package/docs/api-operations/wetaca_bundle__linkGoogleAccountPhone.graphql +3 -0
  104. package/docs/api-operations/wetaca_bundle__linkPhoneNumberToAccount.graphql +3 -0
  105. package/docs/api-operations/wetaca_bundle__markSuggestionAsViewedInEditableState.graphql +3 -0
  106. package/docs/api-operations/wetaca_bundle__menuProductIds.graphql +8 -0
  107. package/docs/api-operations/wetaca_bundle__modifyConfirmedOrderProducts.graphql +7 -0
  108. package/docs/api-operations/wetaca_bundle__mostRecentZipCode.graphql +9 -0
  109. package/docs/api-operations/wetaca_bundle__myDetailsAccountWithProfiles.graphql +506 -0
  110. package/docs/api-operations/wetaca_bundle__newBlogLeadMutation.graphql +3 -0
  111. package/docs/api-operations/wetaca_bundle__nextDeliveries.graphql +190 -0
  112. package/docs/api-operations/wetaca_bundle__nextSubscriptionStartOfChargeTimeQuery.graphql +5 -0
  113. package/docs/api-operations/wetaca_bundle__nextSuggestion.graphql +231 -0
  114. package/docs/api-operations/wetaca_bundle__nextSuggestionAddVoucherPage.graphql +5 -0
  115. package/docs/api-operations/wetaca_bundle__nextSuggestionIdAndVoucher.graphql +8 -0
  116. package/docs/api-operations/wetaca_bundle__nextSuggestionVoucherAndPrice.graphql +10 -0
  117. package/docs/api-operations/wetaca_bundle__orderDetails.graphql +124 -0
  118. package/docs/api-operations/wetaca_bundle__pauseProfile.graphql +56 -0
  119. package/docs/api-operations/wetaca_bundle__pauseResumeProfile.graphql +56 -0
  120. package/docs/api-operations/wetaca_bundle__pauseSubscriptionQuery.graphql +17 -0
  121. package/docs/api-operations/wetaca_bundle__pauseSuggestion.graphql +6 -0
  122. package/docs/api-operations/wetaca_bundle__pauseSuggestionProfile.graphql +6 -0
  123. package/docs/api-operations/wetaca_bundle__paySubscriptionPendingOrderWithPaymentMethod.graphql +6 -0
  124. package/docs/api-operations/wetaca_bundle__payTransactionalOrder.graphql +39 -0
  125. package/docs/api-operations/wetaca_bundle__pendingDeliveryOrders.graphql +473 -0
  126. package/docs/api-operations/wetaca_bundle__pendingPaymentOrderById.graphql +63 -0
  127. package/docs/api-operations/wetaca_bundle__pendingTransactionalDeliveryOrders.graphql +80 -0
  128. package/docs/api-operations/wetaca_bundle__previousDeliveries.graphql +33 -0
  129. package/docs/api-operations/wetaca_bundle__profileHasEditTastes.graphql +3 -0
  130. package/docs/api-operations/wetaca_bundle__profileSuggestionBySuggestionId.graphql +190 -0
  131. package/docs/api-operations/wetaca_bundle__profileSuggestionWithProfileById.graphql +142 -0
  132. package/docs/api-operations/wetaca_bundle__purchaseGiftCard.graphql +10 -0
  133. package/docs/api-operations/wetaca_bundle__rechargeCustomerWalletWithPaymentMethod.graphql +6 -0
  134. package/docs/api-operations/wetaca_bundle__recommendedArticlesQuery.graphql +20 -0
  135. package/docs/api-operations/wetaca_bundle__recommenderIngredientsByNames.graphql +6 -0
  136. package/docs/api-operations/wetaca_bundle__recoverPassword.graphql +3 -0
  137. package/docs/api-operations/wetaca_bundle__recurrenceNextAssociatedVoucher.graphql +23 -0
  138. package/docs/api-operations/wetaca_bundle__redeemGiftCard.graphql +6 -0
  139. package/docs/api-operations/wetaca_bundle__referralConfig.graphql +61 -0
  140. package/docs/api-operations/wetaca_bundle__registerLogout.graphql +3 -0
  141. package/docs/api-operations/wetaca_bundle__registerPaymentProcessEvent.graphql +3 -0
  142. package/docs/api-operations/wetaca_bundle__removeAddress.graphql +5 -0
  143. package/docs/api-operations/wetaca_bundle__removeAddressInManager.graphql +5 -0
  144. package/docs/api-operations/wetaca_bundle__removeCreditCard.graphql +3 -0
  145. package/docs/api-operations/wetaca_bundle__removeCustomerBillingAddress.graphql +3 -0
  146. package/docs/api-operations/wetaca_bundle__removeProfileWithSuggestions.graphql +3 -0
  147. package/docs/api-operations/wetaca_bundle__requestDeliveryRescheduleSupport.graphql +6 -0
  148. package/docs/api-operations/wetaca_bundle__resetPassword.graphql +3 -0
  149. package/docs/api-operations/wetaca_bundle__resumeSuggestion.graphql +6 -0
  150. package/docs/api-operations/wetaca_bundle__resumeSuggestionProfile.graphql +6 -0
  151. package/docs/api-operations/wetaca_bundle__salesPlanCategory.graphql +5 -0
  152. package/docs/api-operations/wetaca_bundle__saveAddress.graphql +13 -0
  153. package/docs/api-operations/wetaca_bundle__saveCustomerBillingAddress.graphql +5 -0
  154. package/docs/api-operations/wetaca_bundle__saveSubscriptionShoppingCart.graphql +5 -0
  155. package/docs/api-operations/wetaca_bundle__scheduleNewCustomerWalletRecharges.graphql +3 -0
  156. package/docs/api-operations/wetaca_bundle__segmentBySlug.graphql +75 -0
  157. package/docs/api-operations/wetaca_bundle__segmentMenu.graphql +89 -0
  158. package/docs/api-operations/wetaca_bundle__sessionTokenByPassword.graphql +7 -0
  159. package/docs/api-operations/wetaca_bundle__sessionTokenBySms.graphql +3 -0
  160. package/docs/api-operations/wetaca_bundle__setPasswordInProfile.graphql +3 -0
  161. package/docs/api-operations/wetaca_bundle__shoppingCart.graphql +18 -0
  162. package/docs/api-operations/wetaca_bundle__signUp.graphql +3 -0
  163. package/docs/api-operations/wetaca_bundle__signUpWithGoogle.graphql +15 -0
  164. package/docs/api-operations/wetaca_bundle__someProfileHasEditTastes.graphql +3 -0
  165. package/docs/api-operations/wetaca_bundle__subscribeCustomer.graphql +11 -0
  166. package/docs/api-operations/wetaca_bundle__subscribeToReactivationUrlVoucher.graphql +5 -0
  167. package/docs/api-operations/wetaca_bundle__subscribeToVoucherAddVoucherPage.graphql +6 -0
  168. package/docs/api-operations/wetaca_bundle__subscriberAccountStatus.graphql +8 -0
  169. package/docs/api-operations/wetaca_bundle__subscriptionAccountByCustomerWithPayments.graphql +10 -0
  170. package/docs/api-operations/wetaca_bundle__subscriptionAccountChangePricing.graphql +92 -0
  171. package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricing.graphql +156 -0
  172. package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingForMenu.graphql +134 -0
  173. package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingFunnelCart.graphql +26 -0
  174. package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingVoucher.graphql +9 -0
  175. package/docs/api-operations/wetaca_bundle__subscriptionAccountProductsSubscriptionPricing.graphql +26 -0
  176. package/docs/api-operations/wetaca_bundle__subscriptionAvailability.graphql +3 -0
  177. package/docs/api-operations/wetaca_bundle__subscriptionIntentMenuProductsPricing.graphql +26 -0
  178. package/docs/api-operations/wetaca_bundle__subscriptionMenuWithWelcomeVoucherQuery.graphql +66 -0
  179. package/docs/api-operations/wetaca_bundle__subscriptionSegmentMenu.graphql +48 -0
  180. package/docs/api-operations/wetaca_bundle__subscriptionVoucher.graphql +27 -0
  181. package/docs/api-operations/wetaca_bundle__subscriptionWelcomeVoucher.graphql +10 -0
  182. package/docs/api-operations/wetaca_bundle__suggestioMenuProductsPricing.graphql +26 -0
  183. package/docs/api-operations/wetaca_bundle__suggestionById.graphql +52 -0
  184. package/docs/api-operations/wetaca_bundle__suggestionByIdData.graphql +6 -0
  185. package/docs/api-operations/wetaca_bundle__suggestionChangePricing.graphql +122 -0
  186. package/docs/api-operations/wetaca_bundle__syncFeatureFlags.graphql +7 -0
  187. package/docs/api-operations/wetaca_bundle__tokenIsValid.graphql +3 -0
  188. package/docs/api-operations/wetaca_bundle__totalOrdersSummaryByCustomer.graphql +21 -0
  189. package/docs/api-operations/wetaca_bundle__trackInternalEvent.graphql +3 -0
  190. package/docs/api-operations/wetaca_bundle__trackInternalGEvent.graphql +3 -0
  191. package/docs/api-operations/wetaca_bundle__trackInternalLPEvent.graphql +3 -0
  192. package/docs/api-operations/wetaca_bundle__trackLoginInternalEvent.graphql +5 -0
  193. package/docs/api-operations/wetaca_bundle__transactionalSegmentMenu.graphql +47 -0
  194. package/docs/api-operations/wetaca_bundle__updateSubscriptionProfileCharacter.graphql +6 -0
  195. package/docs/api-operations/wetaca_bundle__updateSubscriptionProfileName.graphql +6 -0
  196. package/docs/api-operations/wetaca_bundle__updateUserProfile.graphql +10 -0
  197. package/docs/api-operations/wetaca_bundle__useCaptchaConfig.graphql +3 -0
  198. package/docs/api-operations/wetaca_bundle__userSessionSubscription.graphql +20 -0
  199. package/docs/api-operations/wetaca_bundle__validateSegment.graphql +19 -0
  200. package/docs/api-operations/wetaca_bundle__validateSubscriptionIntent.graphql +6 -0
  201. package/docs/api-operations/wetaca_bundle__voucherCustomDisplay.graphql +22 -0
  202. package/docs/api-operations/wetaca_bundle__walletBalance.graphql +3 -0
  203. package/docs/api-operations/wetaca_bundle__walletOperations.graphql +11 -0
  204. package/docs/cli-spec.md +113 -0
  205. package/package.json +38 -4
  206. package/src/commands.js +700 -0
  207. package/src/guide.js +73 -0
  208. package/src/lib.js +371 -0
  209. package/src/queries.js +235 -0
@@ -0,0 +1,89 @@
1
+ query segmentMenu($segmentId: ModelId, $menuId: ModelId, $salesPlanPackageOptionIndex: Int, $zipcode: Int, $includeDishes: [Int!], $menuDishesFilter: MenuDishesFilter, $dateTo: DateTime, $isSubscriptionIntent: Boolean) {
2
+ segmentMenu(segmentId: $segmentId, menuId: $menuId, salesPlanPackageOptionIndex: $salesPlanPackageOptionIndex, zipcode: $zipcode, includeDishes: $includeDishes, menuDishesFilter: $menuDishesFilter, dateTo: $dateTo, isSubscriptionIntent: $isSubscriptionIntent) {
3
+ id
4
+ dateFrom
5
+ dateTo
6
+ week
7
+ year
8
+ dishes {
9
+ datePublished
10
+ id
11
+ name
12
+ slug
13
+ price
14
+ subscriptionPrice
15
+ category {
16
+ _id
17
+ id: slug
18
+ name
19
+ slug
20
+ description
21
+ order
22
+ subscriptionPrice
23
+ }
24
+ tags
25
+ ingredients
26
+ ingredientsBreakdown
27
+ allergens
28
+ isNew
29
+ features
30
+ specialTemplate
31
+ isPromoted
32
+ speciality
33
+ frontPage
34
+ weight
35
+ nutritionFacts {
36
+ energy
37
+ totalFat
38
+ saturatedFat
39
+ proteins
40
+ hydrates
41
+ sugars
42
+ fiber
43
+ salt
44
+ }
45
+ suitableForProfile
46
+ suitableForProfileLikes
47
+ }
48
+ otherDishes {
49
+ datePublished
50
+ id
51
+ name
52
+ slug
53
+ price
54
+ subscriptionPrice
55
+ category {
56
+ _id
57
+ id: slug
58
+ name
59
+ slug
60
+ description
61
+ order
62
+ subscriptionPrice
63
+ }
64
+ tags
65
+ ingredients
66
+ ingredientsBreakdown
67
+ allergens
68
+ isNew
69
+ features
70
+ specialTemplate
71
+ isPromoted
72
+ speciality
73
+ frontPage
74
+ weight
75
+ nutritionFacts {
76
+ energy
77
+ totalFat
78
+ saturatedFat
79
+ proteins
80
+ hydrates
81
+ sugars
82
+ fiber
83
+ salt
84
+ }
85
+ suitableForProfile
86
+ suitableForProfileLikes
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,7 @@
1
+ query sessionTokenByPassword($login: String!, $password: String!, $segmentSlug: String) {
2
+ sessionTokenData: sessionTokenByPassword(username: $login, password: $password, segmentSlug: $segmentSlug) {
3
+ customerId
4
+ jwtToken
5
+ requirePhoneNumber
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ query sessionTokenBySms($login: String!, $code: String!, $segmentSlug: String) {
2
+ apiToken: sessionTokenBySms(username: $login, code: $code, segmentSlug: $segmentSlug)
3
+ }
@@ -0,0 +1,3 @@
1
+ mutation setPasswordInProfile($newPassword: String!) {
2
+ success: setPassword(newPassword: $newPassword)
3
+ }
@@ -0,0 +1,18 @@
1
+ query shoppingCart {
2
+ shoppingCart {
3
+ dateUpdated
4
+ products {
5
+ id
6
+ name
7
+ price
8
+ slug
9
+ quantity
10
+ isPromoted
11
+ category {
12
+ id: slug
13
+ name
14
+ slug
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,3 @@
1
+ mutation signUp($validCredentials: SignupCredentialsWithCode!, $signUpWithoutPasswordMode: Boolean) {
2
+ apiToken: signUp(credentialsWithCode: $validCredentials, signUpWithoutPasswordMode: $signUpWithoutPasswordMode)
3
+ }
@@ -0,0 +1,15 @@
1
+ mutation signUpWithGoogle($code: String!, $redirectUri: String!, $segmentSlug: String, $locale: String) {
2
+ signUpWithGoogle(code: $code, redirectUri: $redirectUri, segmentSlug: $segmentSlug, locale: $locale) {
3
+ ... on GoogleSignupSuccess {
4
+ jwtToken
5
+ isNewCustomer
6
+ }
7
+ ... on GoogleNeedsLinkage {
8
+ email
9
+ tokenId
10
+ requireLinkAccounts
11
+ requirePhoneNumber
12
+ passSet
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ query someProfileHasEditTastes($profileIds: [ModelId!]!) {
2
+ someProfileHasEditTastes(profileIds: $profileIds)
3
+ }
@@ -0,0 +1,11 @@
1
+ mutation subscribeCustomer($profiles: [SubscriptionProfileInputGraph!]!, $subscriptionAccountInput: SubscriptionAccountInputGraph!, $voucherCode: String, $menuId: String, $paymentProcessEventId: ModelId) {
2
+ subscribeCustomer(subscriptionAccountInput: $subscriptionAccountInput, profiles: $profiles, voucherCode: $voucherCode, menuId: $menuId, paymentProcessEventId: $paymentProcessEventId) {
3
+ profilesCreated {
4
+ name
5
+ }
6
+ profileCreationErrors
7
+ account {
8
+ id
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ mutation subscribeToReactivationUrlVoucher($code: String!, $deviceFingerprint: String, $mode: String) {
2
+ subscribeToVoucher(code: $code, deviceFingerprint: $deviceFingerprint, mode: $mode) {
3
+ code
4
+ }
5
+ }
@@ -0,0 +1,6 @@
1
+ mutation subscribeToVoucherAddVoucherPage($code: String!, $deviceFingerprint: String) {
2
+ subscribeToVoucher(code: $code, deviceFingerprint: $deviceFingerprint) {
3
+ code
4
+ tagNames
5
+ }
6
+ }
@@ -0,0 +1,8 @@
1
+ query subscriberAccountStatus {
2
+ subscriptionAccountByCustomer {
3
+ id
4
+ isActive
5
+ cancelled
6
+ nextSuggestionSkipped
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ query subscriptionAccountByCustomerWithPayments {
2
+ subscriptionAccountByCustomer {
3
+ id
4
+ isActive
5
+ pausedUntil
6
+ payments {
7
+ reference
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,92 @@
1
+ query subscriptionAccountChangePricing($subscriptionAccountId: ModelId!, $profileChanges: [ProfileChangeGraph!], $deliveryConfigurationChange: DeliveryConfigurationInput) {
2
+ subscriptionAccountChangePricing(subscriptionAccountId: $subscriptionAccountId, profileChanges: $profileChanges, deliveryConfigurationChange: $deliveryConfigurationChange) {
3
+ profiles {
4
+ _id
5
+ id
6
+ transactional
7
+ subscription
8
+ toPay
9
+ }
10
+ profilesTotal {
11
+ transactional
12
+ subscription
13
+ toPay
14
+ }
15
+ shipping
16
+ salesPlanDiscount
17
+ vouchers
18
+ subscription {
19
+ subtotal
20
+ total
21
+ }
22
+ transactional {
23
+ subtotal
24
+ total
25
+ }
26
+ toPay
27
+ appliedSalesPlanDiscount {
28
+ appliedDiscount
29
+ discount {
30
+ price
31
+ percent
32
+ }
33
+ }
34
+ salesPlan {
35
+ _id
36
+ id
37
+ minProfilesPriceValidation {
38
+ minPrice
39
+ result
40
+ remainingAmount
41
+ }
42
+ packageOption {
43
+ index
44
+ categoryRestrictions {
45
+ categories
46
+ restriction {
47
+ min
48
+ max
49
+ }
50
+ }
51
+ shippingSubscriptionDiscount {
52
+ assumed
53
+ }
54
+ baseCategory
55
+ baseCategoryPrice
56
+ }
57
+ packageValidation {
58
+ result
59
+ restrictions {
60
+ categories
61
+ result
62
+ remaining
63
+ }
64
+ }
65
+ upselling {
66
+ packageOption {
67
+ index
68
+ categoryRestrictions {
69
+ categories
70
+ restriction {
71
+ min
72
+ max
73
+ }
74
+ }
75
+ shippingSubscriptionDiscount {
76
+ assumed
77
+ }
78
+ baseCategory
79
+ baseCategoryPrice
80
+ }
81
+ packageValidation {
82
+ result
83
+ restrictions {
84
+ categories
85
+ result
86
+ remaining
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,156 @@
1
+ query subscriptionAccountIntentPricing($subscriptionAccountInput: SubscriptionAccountInputGraphWithoutPayments!, $profiles: [SubscriptionProfileInputGraph!]!, $voucherCode: String) {
2
+ subscriptionAccountIntentPricing(subscriptionAccountInput: $subscriptionAccountInput, profiles: $profiles, voucherCode: $voucherCode) {
3
+ partialIntentPrices {
4
+ appliedVouchers {
5
+ code
6
+ tagNames
7
+ appliedDiscount
8
+ discount {
9
+ price
10
+ percent
11
+ }
12
+ }
13
+ voucherApplyErrors {
14
+ ... on ApplyVoucherValidationError {
15
+ errorCode
16
+ description
17
+ validationDetails {
18
+ validationIssue
19
+ voucher {
20
+ code
21
+ restrict {
22
+ maximumAmount
23
+ minimumAmount
24
+ firstOrder
25
+ }
26
+ }
27
+ }
28
+ }
29
+ ... on GraphError {
30
+ errorCode
31
+ }
32
+ }
33
+ }
34
+ ...SubscriptionAcccountIntentPricing
35
+ }
36
+ }
37
+
38
+ fragment SubscriptionAcccountIntentPricing on SubscriptionAccountIntentPricing {
39
+ profiles {
40
+ name
41
+ transactional
42
+ subscription
43
+ toPay
44
+ }
45
+ profilesTotal {
46
+ transactional
47
+ subscription
48
+ toPay
49
+ }
50
+ shipping
51
+ shippingBreakdown {
52
+ discount
53
+ }
54
+ salesPlanDiscount
55
+ vouchers
56
+ subscription {
57
+ subtotal
58
+ total
59
+ }
60
+ transactional {
61
+ subtotal
62
+ total
63
+ }
64
+ toPay
65
+ segment {
66
+ _id
67
+ name
68
+ slug
69
+ tag
70
+ }
71
+ salesPlan {
72
+ _id
73
+ id
74
+ minProfilesPriceValidation {
75
+ minPrice
76
+ result
77
+ remainingAmount
78
+ }
79
+ packageOption {
80
+ index
81
+ categoryRestrictions {
82
+ categories
83
+ restriction {
84
+ min
85
+ max
86
+ }
87
+ }
88
+ baseCategoryPrice
89
+ }
90
+ upselling {
91
+ packageOption {
92
+ index
93
+ categoryRestrictions {
94
+ categories
95
+ restriction {
96
+ min
97
+ max
98
+ }
99
+ }
100
+ baseCategoryPrice
101
+ }
102
+ packageValidation {
103
+ result
104
+ restrictions {
105
+ categories
106
+ result
107
+ remaining
108
+ }
109
+ }
110
+ }
111
+ packageValidation {
112
+ result
113
+ restrictions {
114
+ categories
115
+ result
116
+ remaining
117
+ }
118
+ }
119
+ }
120
+ appliedSalesPlanDiscount {
121
+ appliedDiscount
122
+ discount {
123
+ price
124
+ percent
125
+ }
126
+ }
127
+ appliedVouchers {
128
+ code
129
+ tagNames
130
+ appliedDiscount
131
+ discount {
132
+ price
133
+ percent
134
+ }
135
+ }
136
+ voucherApplyErrors {
137
+ ... on ApplyVoucherValidationError {
138
+ errorCode
139
+ description
140
+ validationDetails {
141
+ validationIssue
142
+ voucher {
143
+ code
144
+ restrict {
145
+ maximumAmount
146
+ minimumAmount
147
+ firstOrder
148
+ }
149
+ }
150
+ }
151
+ }
152
+ ... on GraphError {
153
+ errorCode
154
+ }
155
+ }
156
+ }
@@ -0,0 +1,134 @@
1
+ query subscriptionAccountIntentPricingForMenu($subscriptionAccountInput: SubscriptionAccountInputGraphWithoutPayments!, $profiles: [SubscriptionProfileInputGraph!]!, $voucherCode: String) {
2
+ subscriptionAccountIntentPricing(subscriptionAccountInput: $subscriptionAccountInput, profiles: $profiles, voucherCode: $voucherCode) {
3
+ partialIntentPrices {
4
+ profiles {
5
+ name
6
+ transactional
7
+ subscription
8
+ toPay
9
+ }
10
+ profilesTotal {
11
+ transactional
12
+ subscription
13
+ toPay
14
+ }
15
+ shipping
16
+ shippingBreakdown {
17
+ discount
18
+ customDifference
19
+ toPay
20
+ }
21
+ salesPlanDiscount
22
+ vouchers
23
+ subscription {
24
+ subtotal
25
+ total
26
+ }
27
+ transactional {
28
+ subtotal
29
+ total
30
+ }
31
+ toPay
32
+ appliedSalesPlanDiscount {
33
+ appliedDiscount
34
+ discount {
35
+ price
36
+ percent
37
+ maximum
38
+ }
39
+ }
40
+ appliedVouchers {
41
+ code
42
+ tagNames
43
+ appliedDiscount
44
+ discount {
45
+ price
46
+ percent
47
+ }
48
+ }
49
+ voucherApplyErrors {
50
+ ... on ApplyVoucherValidationError {
51
+ errorCode
52
+ description
53
+ validationDetails {
54
+ validationIssue
55
+ voucher {
56
+ code
57
+ restrict {
58
+ maximumAmount
59
+ minimumAmount
60
+ firstOrder
61
+ }
62
+ }
63
+ }
64
+ }
65
+ ... on GraphError {
66
+ errorCode
67
+ }
68
+ }
69
+ }
70
+ segment {
71
+ _id
72
+ name
73
+ slug
74
+ tag
75
+ }
76
+ salesPlan {
77
+ _id
78
+ id
79
+ minProfilesPriceValidation {
80
+ minPrice
81
+ result
82
+ remainingAmount
83
+ }
84
+ packageOption {
85
+ index
86
+ categoryRestrictions {
87
+ categories
88
+ restriction {
89
+ min
90
+ max
91
+ }
92
+ }
93
+ shippingSubscriptionDiscount {
94
+ assumed
95
+ }
96
+ baseCategory
97
+ baseCategoryPrice
98
+ }
99
+ packageValidation {
100
+ result
101
+ restrictions {
102
+ categories
103
+ result
104
+ remaining
105
+ }
106
+ }
107
+ upselling {
108
+ packageOption {
109
+ index
110
+ categoryRestrictions {
111
+ categories
112
+ restriction {
113
+ min
114
+ max
115
+ }
116
+ }
117
+ shippingSubscriptionDiscount {
118
+ assumed
119
+ }
120
+ baseCategory
121
+ baseCategoryPrice
122
+ }
123
+ packageValidation {
124
+ result
125
+ restrictions {
126
+ categories
127
+ result
128
+ remaining
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,26 @@
1
+ query subscriptionAccountIntentPricingFunnelCart($subscriptionAccountInput: SubscriptionAccountInputGraphWithoutPayments!, $profiles: [SubscriptionProfileInputGraph!]!, $voucherCode: String) {
2
+ subscriptionAccountIntentPricing(subscriptionAccountInput: $subscriptionAccountInput, profiles: $profiles, voucherCode: $voucherCode) {
3
+ toPay
4
+ transactional {
5
+ subtotal
6
+ }
7
+ subscription {
8
+ subtotal
9
+ }
10
+ appliedSalesPlanDiscount {
11
+ appliedDiscount
12
+ }
13
+ appliedVouchers {
14
+ code
15
+ tagNames
16
+ appliedDiscount
17
+ }
18
+ salesPlan {
19
+ minProfilesPriceValidation {
20
+ minPrice
21
+ result
22
+ remainingAmount
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,9 @@
1
+ query subscriptionAccountIntentPricingVoucher($subscriptionAccountInput: SubscriptionAccountInputGraphWithoutPayments!, $profiles: [SubscriptionProfileInputGraph!]!, $voucherCode: String) {
2
+ subscriptionAccountIntentPricing(subscriptionAccountInput: $subscriptionAccountInput, profiles: $profiles, voucherCode: $voucherCode) {
3
+ partialIntentPrices {
4
+ appliedVouchers {
5
+ code
6
+ }
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,26 @@
1
+ query subscriptionAccountProductsSubscriptionPricing($productIds: [Int!]!, $salesPlanId: ModelId!) {
2
+ productsSubscriptionAccountPricing(productIds: $productIds, salesPlanId: $salesPlanId) {
3
+ salesPlanId
4
+ salesPlanPrices {
5
+ default {
6
+ productId
7
+ productPrice {
8
+ price
9
+ categoryPrice
10
+ subscriptionPrice
11
+ }
12
+ }
13
+ packages {
14
+ packageOptionIndex
15
+ productsPrices {
16
+ productId
17
+ productPrice {
18
+ price
19
+ categoryPrice
20
+ subscriptionPrice
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,3 @@
1
+ query subscriptionAvailability($allergens: [String!], $dislikes: [String!], $dietType: Diet, $spicyLevel: SpicyLevel) {
2
+ subscriptionAvailability(allergens: $allergens, dislikes: $dislikes, dietType: $dietType, spicyLevel: $spicyLevel)
3
+ }
@@ -0,0 +1,26 @@
1
+ query subscriptionIntentMenuProductsPricing($menuId: String!, $segmentId: ModelId) {
2
+ menuProductsSubscriptionIntentPricing(menuId: $menuId, segmentId: $segmentId) {
3
+ salesPlanId
4
+ salesPlanPrices {
5
+ default {
6
+ productId
7
+ productPrice {
8
+ price
9
+ categoryPrice
10
+ subscriptionPrice
11
+ }
12
+ }
13
+ packages {
14
+ packageOptionIndex
15
+ productsPrices {
16
+ productId
17
+ productPrice {
18
+ price
19
+ categoryPrice
20
+ subscriptionPrice
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }