wetaca-cli 0.0.0-stage → 0.2.1

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 +42 -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,66 @@
1
+ query subscriptionMenuWithWelcomeVoucherQuery($code: String!, $menuDishesFilter: MenuDishesFilter!) {
2
+ subscriptionWelcomeVoucher {
3
+ code
4
+ subscriptionDiscount {
5
+ price
6
+ percent
7
+ maximum
8
+ }
9
+ }
10
+ segmentMenu(menuDishesFilter: $menuDishesFilter) {
11
+ id
12
+ dateFrom
13
+ dateTo
14
+ dishes {
15
+ datePublished
16
+ id
17
+ name
18
+ slug
19
+ price
20
+ subscriptionPrice
21
+ category {
22
+ _id
23
+ id: slug
24
+ name
25
+ slug
26
+ description
27
+ order
28
+ subscriptionPrice
29
+ }
30
+ tags
31
+ ingredients
32
+ ingredientsBreakdown
33
+ allergens
34
+ isNew
35
+ features
36
+ specialTemplate
37
+ isPromoted
38
+ speciality
39
+ frontPage
40
+ weight
41
+ nutritionFacts {
42
+ energy
43
+ totalFat
44
+ saturatedFat
45
+ proteins
46
+ hydrates
47
+ sugars
48
+ fiber
49
+ salt
50
+ }
51
+ }
52
+ }
53
+ voucher(code: $code) {
54
+ ... on PublicVoucher {
55
+ code
56
+ subscriptionDiscount {
57
+ price
58
+ percent
59
+ maximum
60
+ }
61
+ }
62
+ ... on GraphError {
63
+ errorCode
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,48 @@
1
+ query subscriptionSegmentMenu($segmentId: ModelId, $salesPlanPackageOptionIndex: Int, $zipcode: Int) {
2
+ segmentMenu(segmentId: $segmentId, salesPlanPackageOptionIndex: $salesPlanPackageOptionIndex, zipcode: $zipcode, isSubscriptionIntent: true) {
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
+ }
47
+ }
48
+ }
@@ -0,0 +1,27 @@
1
+ query subscriptionVoucher($voucherCode: String!) {
2
+ voucher(code: $voucherCode) {
3
+ ... on PublicVoucher {
4
+ code
5
+ subscriptionDiscount {
6
+ price
7
+ percent
8
+ maximum
9
+ }
10
+ customDisplay {
11
+ topbarText
12
+ tooltipButtonText
13
+ ctaButtonText
14
+ primarySticker
15
+ landingTemplate
16
+ alternativeLandingTemplate
17
+ promoBannerPrefix
18
+ promoBannerDiscount
19
+ promoBannerPrice
20
+ promoBannerSuffix
21
+ }
22
+ }
23
+ ... on GraphError {
24
+ errorCode
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,10 @@
1
+ query subscriptionWelcomeVoucher {
2
+ subscriptionWelcomeVoucher {
3
+ code
4
+ subscriptionDiscount {
5
+ price
6
+ percent
7
+ maximum
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,26 @@
1
+ query suggestioMenuProductsPricing($menuId: String!, $salesPlanId: ModelId!) {
2
+ menuProductsSubscriptionAccountPricing(menuId: $menuId, 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,52 @@
1
+ query suggestionById($suggestionId: ModelId!) {
2
+ suggestionById(suggestionId: $suggestionId) {
3
+ ...SuggestionEditDelivery
4
+ validUntil
5
+ }
6
+ }
7
+
8
+ fragment SuggestionEditDelivery on SuggestionGraph {
9
+ id
10
+ deliveryConfigurationId
11
+ delivery {
12
+ option {
13
+ id
14
+ start
15
+ end
16
+ price
17
+ customizedPrice
18
+ custom
19
+ exception {
20
+ start
21
+ end
22
+ from {
23
+ year
24
+ month
25
+ dayOfMonth
26
+ }
27
+ }
28
+ configurationDate {
29
+ start
30
+ end
31
+ }
32
+ }
33
+ address {
34
+ id
35
+ firstname
36
+ lastname
37
+ street
38
+ number
39
+ zipcode
40
+ city
41
+ phone
42
+ floor
43
+ notes
44
+ }
45
+ }
46
+ suggestionPricing {
47
+ shipping
48
+ }
49
+ menuMetadata {
50
+ dateFrom
51
+ }
52
+ }
@@ -0,0 +1,6 @@
1
+ query suggestionByIdData($suggestionId: ModelId!) {
2
+ suggestionById(suggestionId: $suggestionId) {
3
+ id
4
+ validUntil
5
+ }
6
+ }
@@ -0,0 +1,122 @@
1
+ query suggestionChangePricing($suggestionId: ModelId!, $accountSuggestionChange: SuggestionChangeGraph, $profileSuggestionChanges: [ProfileSuggestionChangeGraph!], $deliveryConfigurationChange: DeliveryConfigurationInput) {
2
+ suggestionChangePricing(suggestionId: $suggestionId, accountSuggestionChange: $accountSuggestionChange, profileSuggestionChanges: $profileSuggestionChanges, deliveryConfigurationChange: $deliveryConfigurationChange) {
3
+ profiles {
4
+ _id
5
+ id
6
+ profileId
7
+ transactional
8
+ subscription
9
+ toPay
10
+ }
11
+ profilesTotal {
12
+ transactional
13
+ subscription
14
+ toPay
15
+ }
16
+ shipping
17
+ salesPlanDiscount
18
+ vouchers
19
+ subscription {
20
+ subtotal
21
+ total
22
+ }
23
+ transactional {
24
+ subtotal
25
+ total
26
+ }
27
+ toPay
28
+ appliedSalesPlanDiscount {
29
+ appliedDiscount
30
+ discount {
31
+ price
32
+ percent
33
+ }
34
+ }
35
+ salesPlan {
36
+ _id
37
+ id
38
+ minProfilesPriceValidation {
39
+ minPrice
40
+ result
41
+ remainingAmount
42
+ }
43
+ packageOption {
44
+ index
45
+ categoryRestrictions {
46
+ categories
47
+ restriction {
48
+ min
49
+ max
50
+ }
51
+ }
52
+ shippingSubscriptionDiscount {
53
+ assumed
54
+ }
55
+ baseCategory
56
+ baseCategoryPrice
57
+ }
58
+ packageValidation {
59
+ result
60
+ restrictions {
61
+ categories
62
+ result
63
+ remaining
64
+ }
65
+ }
66
+ upselling {
67
+ packageOption {
68
+ index
69
+ categoryRestrictions {
70
+ categories
71
+ restriction {
72
+ min
73
+ max
74
+ }
75
+ }
76
+ shippingSubscriptionDiscount {
77
+ assumed
78
+ }
79
+ baseCategory
80
+ baseCategoryPrice
81
+ }
82
+ packageValidation {
83
+ result
84
+ restrictions {
85
+ categories
86
+ result
87
+ remaining
88
+ }
89
+ }
90
+ }
91
+ }
92
+ appliedVouchers {
93
+ code
94
+ tagNames
95
+ appliedDiscount
96
+ discount {
97
+ price
98
+ percent
99
+ }
100
+ }
101
+ voucherApplyErrors {
102
+ ... on ApplyVoucherValidationError {
103
+ errorCode
104
+ description
105
+ validationDetails {
106
+ validationIssue
107
+ voucher {
108
+ code
109
+ restrict {
110
+ maximumAmount
111
+ minimumAmount
112
+ firstOrder
113
+ }
114
+ }
115
+ }
116
+ }
117
+ ... on GraphError {
118
+ errorCode
119
+ }
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,7 @@
1
+ mutation syncFeatureFlags($featureFlags: [FeatureFlagInput!]!) {
2
+ syncFeatureFlags(featureFlags: $featureFlags) {
3
+ slug
4
+ value
5
+ isPersisted
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ query tokenIsValid($token: String!) {
2
+ tokenIsValid(token: $token)
3
+ }
@@ -0,0 +1,21 @@
1
+ query totalOrdersSummaryByCustomer {
2
+ totalOrdersSummaryByCustomer {
3
+ subscriptionOrdersMetadata {
4
+ confirmed
5
+ first {
6
+ date
7
+ }
8
+ }
9
+ transactionalOrdersMetadata {
10
+ confirmed
11
+ first {
12
+ date
13
+ }
14
+ }
15
+ totalOrders
16
+ totalDeliveredOrders
17
+ }
18
+ getChargingSuggestionMetadata {
19
+ isChargingIntervalAndSuggestionHasBeenCharged
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ mutation trackInternalEvent($validCredentials: SignupCredentials!) {
2
+ trackInternalEvent(credentials: $validCredentials)
3
+ }
@@ -0,0 +1,3 @@
1
+ mutation trackInternalGEvent($validCredentials: SignupGoogleCredentials!) {
2
+ trackInternalGEvent(credentials: $validCredentials)
3
+ }
@@ -0,0 +1,3 @@
1
+ mutation trackInternalLPEvent($validCredentials: LinkPhoneCredentials!) {
2
+ trackInternalLPEvent(credentials: $validCredentials)
3
+ }
@@ -0,0 +1,5 @@
1
+ mutation trackLoginInternalEvent($validCredentials: LoginCredentials!) {
2
+ trackLoginInternalEvent(credentials: $validCredentials) {
3
+ cutPhone
4
+ }
5
+ }
@@ -0,0 +1,47 @@
1
+ query transactionalSegmentMenu($segmentId: ModelId) {
2
+ transactionalSegmentMenu(segmentId: $segmentId) {
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
+ }
46
+ }
47
+ }
@@ -0,0 +1,6 @@
1
+ mutation updateSubscriptionProfileCharacter($profileId: ModelId!, $character: Character!) {
2
+ updateSubscriptionProfileCharacter(character: $character, profileId: $profileId) {
3
+ id
4
+ character
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ mutation updateSubscriptionProfileName($profileId: ModelId!, $name: String!) {
2
+ updateSubscriptionProfileName(profileId: $profileId, name: $name) {
3
+ id
4
+ name
5
+ }
6
+ }
@@ -0,0 +1,10 @@
1
+ mutation updateUserProfile($userProfile: UserProfileInput!) {
2
+ updateUserProfile(userProfile: $userProfile) {
3
+ id
4
+ firstname
5
+ lastname
6
+ birthdate
7
+ newsletter
8
+ pushNotifications
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ query useCaptchaConfig {
2
+ captchaTypeConfiguration
3
+ }
@@ -0,0 +1,20 @@
1
+ query userSessionSubscription {
2
+ subscriptionAccountByCustomer {
3
+ id
4
+ isActive
5
+ dateCreated
6
+ subscriptionSource
7
+ delivery {
8
+ address {
9
+ zipcode
10
+ }
11
+ }
12
+ subscriptionAccountPricing {
13
+ salesPlan {
14
+ packageOption {
15
+ index
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,19 @@
1
+ query validateSegment($segmentSlug: String!, $email: String) {
2
+ validateSegment(segmentSlug: $segmentSlug, email: $email) {
3
+ _id
4
+ slug
5
+ tag
6
+ subscription {
7
+ enabled
8
+ }
9
+ transactional {
10
+ enabled
11
+ }
12
+ activeStandardSalesPlan {
13
+ _id
14
+ }
15
+ activeEntrySalesPlan {
16
+ _id
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,6 @@
1
+ query validateSubscriptionIntent($profiles: [SubscriptionProfileInputGraph!]!, $subscriptionAccountInput: SubscriptionAccountInputGraph!, $voucherCode: String, $menuId: String) {
2
+ validateSubscriptionIntent(profiles: $profiles, subscriptionAccountInput: $subscriptionAccountInput, voucherCode: $voucherCode, menuId: $menuId) {
3
+ createdDeliveryAddressId
4
+ createdBillingAddressId
5
+ }
6
+ }
@@ -0,0 +1,22 @@
1
+ query voucherCustomDisplay($voucherCode: String!) {
2
+ voucher(code: $voucherCode) {
3
+ ... on PublicVoucher {
4
+ code
5
+ customDisplay {
6
+ topbarText
7
+ tooltipButtonText
8
+ ctaButtonText
9
+ primarySticker
10
+ landingTemplate
11
+ alternativeLandingTemplate
12
+ promoBannerPrefix
13
+ promoBannerDiscount
14
+ promoBannerPrice
15
+ promoBannerSuffix
16
+ }
17
+ }
18
+ ... on GraphError {
19
+ errorCode
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,3 @@
1
+ query walletBalance {
2
+ walletBalance
3
+ }
@@ -0,0 +1,11 @@
1
+ query walletOperations($limit: Int, $offset: Int) {
2
+ walletOperations(limit: $limit, offset: $offset) {
3
+ id
4
+ date
5
+ type
6
+ value
7
+ reference
8
+ category
9
+ }
10
+ walletBalance
11
+ }