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,190 @@
1
+ query profileSuggestionBySuggestionId($profileSuggestionId: ModelId!, $suggestionId: ModelId!) {
2
+ profileSuggestionWithProfileById(profileSuggestionId: $profileSuggestionId) {
3
+ id
4
+ suggestionId
5
+ profile {
6
+ _id
7
+ id
8
+ customerId
9
+ dateCreated
10
+ dateUpdated
11
+ isActive
12
+ otherAllergens
13
+ otherDislikes {
14
+ name
15
+ flavor
16
+ texture
17
+ }
18
+ productMap {
19
+ id
20
+ quantity
21
+ day
22
+ nutrition
23
+ }
24
+ productsBlacklist
25
+ subscriptionAccountId
26
+ allergens {
27
+ id
28
+ name
29
+ }
30
+ diet
31
+ dislikes {
32
+ name
33
+ id
34
+ flavor
35
+ texture
36
+ }
37
+ name
38
+ spicyLevel
39
+ nutrition {
40
+ goal
41
+ preferences {
42
+ energy {
43
+ min
44
+ max
45
+ }
46
+ proteins
47
+ hydrates
48
+ fats
49
+ }
50
+ }
51
+ products {
52
+ id
53
+ quantity
54
+ allergens
55
+ category {
56
+ _id
57
+ id: slug
58
+ name
59
+ slug
60
+ description
61
+ order
62
+ subscriptionPrice
63
+ }
64
+ ingredients
65
+ isPromoted
66
+ speciality
67
+ name
68
+ nutritionFacts {
69
+ energy
70
+ fiber
71
+ hydrates
72
+ proteins
73
+ salt
74
+ saturatedFat
75
+ sugars
76
+ totalFat
77
+ }
78
+ price
79
+ slug
80
+ tags
81
+ }
82
+ price
83
+ productsWhitelist
84
+ }
85
+ productMap {
86
+ id
87
+ quantity
88
+ day
89
+ nutrition
90
+ }
91
+ products {
92
+ id
93
+ name
94
+ quantity
95
+ slug
96
+ price
97
+ subscriptionPrice
98
+ tags
99
+ category {
100
+ _id
101
+ id: slug
102
+ name
103
+ slug
104
+ description
105
+ order
106
+ subscriptionPrice
107
+ }
108
+ allergens
109
+ ingredients
110
+ isPromoted
111
+ speciality
112
+ nutritionFacts {
113
+ energy
114
+ fiber
115
+ hydrates
116
+ proteins
117
+ salt
118
+ saturatedFat
119
+ sugars
120
+ totalFat
121
+ }
122
+ }
123
+ maxPriceWithoutChanges
124
+ hasChanges
125
+ }
126
+ suggestionById(suggestionId: $suggestionId) {
127
+ id
128
+ delivery {
129
+ type
130
+ address {
131
+ id
132
+ firstname
133
+ lastname
134
+ street
135
+ number
136
+ zipcode
137
+ city
138
+ phone
139
+ floor
140
+ notes
141
+ }
142
+ option {
143
+ start
144
+ end
145
+ price
146
+ customizedPrice
147
+ custom
148
+ }
149
+ }
150
+ salesPlanId
151
+ isOptIn
152
+ validUntil
153
+ }
154
+ getNextSuggestionDeliveryConfigurationProductAvailability {
155
+ optionsWithRestrictions {
156
+ _id
157
+ id
158
+ maxQuantity
159
+ configurationDay
160
+ deliveryDateDay
161
+ start
162
+ end
163
+ configurationDate {
164
+ start
165
+ end
166
+ }
167
+ exception {
168
+ start
169
+ end
170
+ day
171
+ from {
172
+ year
173
+ month
174
+ dayOfMonth
175
+ }
176
+ }
177
+ }
178
+ exceptions {
179
+ day
180
+ start
181
+ end
182
+ from {
183
+ year
184
+ month
185
+ dayOfMonth
186
+ }
187
+ }
188
+ maxTotalQuantityRestriction
189
+ }
190
+ }
@@ -0,0 +1,142 @@
1
+ query profileSuggestionWithProfileById($profileSuggestionId: ModelId!) {
2
+ profileSuggestionWithProfileById(profileSuggestionId: $profileSuggestionId) {
3
+ id
4
+ suggestionId
5
+ profile {
6
+ _id
7
+ id
8
+ customerId
9
+ dateCreated
10
+ dateUpdated
11
+ isActive
12
+ otherAllergens
13
+ otherDislikes {
14
+ name
15
+ flavor
16
+ texture
17
+ }
18
+ productMap {
19
+ id
20
+ quantity
21
+ }
22
+ productsBlacklist
23
+ subscriptionAccountId
24
+ allergens {
25
+ id
26
+ name
27
+ }
28
+ diet
29
+ dislikes {
30
+ name
31
+ id
32
+ flavor
33
+ texture
34
+ }
35
+ name
36
+ spicyLevel
37
+ nutrition {
38
+ goal
39
+ preferences {
40
+ energy {
41
+ min
42
+ max
43
+ }
44
+ proteins
45
+ hydrates
46
+ fats
47
+ }
48
+ }
49
+ products {
50
+ id
51
+ quantity
52
+ allergens
53
+ category {
54
+ _id
55
+ id: slug
56
+ name
57
+ slug
58
+ description
59
+ order
60
+ subscriptionPrice
61
+ }
62
+ ingredients
63
+ isPromoted
64
+ speciality
65
+ name
66
+ nutritionFacts {
67
+ energy
68
+ fiber
69
+ hydrates
70
+ proteins
71
+ salt
72
+ saturatedFat
73
+ sugars
74
+ totalFat
75
+ }
76
+ price
77
+ slug
78
+ tags
79
+ }
80
+ price
81
+ productsWhitelist
82
+ }
83
+ products {
84
+ id
85
+ name
86
+ quantity
87
+ slug
88
+ price
89
+ subscriptionPrice
90
+ tags
91
+ category {
92
+ _id
93
+ id: slug
94
+ name
95
+ slug
96
+ description
97
+ order
98
+ subscriptionPrice
99
+ }
100
+ }
101
+ maxPriceWithoutChanges
102
+ hasChanges
103
+ validUntil
104
+ }
105
+ nextSuggestion {
106
+ id
107
+ delivery {
108
+ type
109
+ address {
110
+ id
111
+ firstname
112
+ lastname
113
+ street
114
+ number
115
+ zipcode
116
+ city
117
+ phone
118
+ floor
119
+ notes
120
+ }
121
+ option {
122
+ start
123
+ end
124
+ price
125
+ customizedPrice
126
+ custom
127
+ }
128
+ exceptions {
129
+ day
130
+ start
131
+ end
132
+ from {
133
+ year
134
+ month
135
+ dayOfMonth
136
+ }
137
+ }
138
+ }
139
+ salesPlanId
140
+ isOptIn
141
+ }
142
+ }
@@ -0,0 +1,10 @@
1
+ mutation purchaseGiftCard($amount: Int!, $paymentMethodId: ModelId!) {
2
+ purchaseGiftCard(amount: $amount, paymentMethodId: $paymentMethodId) {
3
+ ok
4
+ error
5
+ giftCard {
6
+ code
7
+ amount
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ mutation rechargeCustomerWalletWithPaymentMethod($amount: Int!, $paymentMethodId: ModelId!) {
2
+ rechargeCustomerWalletWithPaymentMethod(amount: $amount, paymentMethodId: $paymentMethodId) {
3
+ ok
4
+ error
5
+ }
6
+ }
@@ -0,0 +1,20 @@
1
+ query recommendedArticlesQuery($limit: Int!, $categories: [String]!, $currentSlug: String!) {
2
+ sameCategory: articleCollection(limit: $limit, where: {slug_not: $currentSlug, categories: {name_in: $categories}}, order: sys_firstPublishedAt_DESC) {
3
+ total
4
+ items {
5
+ title
6
+ subtitle
7
+ imageUrl
8
+ slug
9
+ }
10
+ }
11
+ otherCategory: articleCollection(limit: $limit, where: {slug_not: $currentSlug}, order: sys_firstPublishedAt_DESC) {
12
+ total
13
+ items {
14
+ title
15
+ subtitle
16
+ imageUrl
17
+ slug
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ query recommenderIngredientsByNames($names: [String!]!) {
2
+ recommenderIngredientsByNames(names: $names) {
3
+ id
4
+ names
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ mutation recoverPassword($email: String!) {
2
+ expiration: recoverPassword(email: $email)
3
+ }
@@ -0,0 +1,23 @@
1
+ query recurrenceNextAssociatedVoucher {
2
+ recurrenceVouchers: recurrenceNextAssociatedVoucher {
3
+ recurrenceVoucher {
4
+ code
5
+ dateTo
6
+ subscriptionDiscount {
7
+ price
8
+ percent
9
+ maximum
10
+ }
11
+ }
12
+ nextAssociatedVoucher {
13
+ code
14
+ dateTo
15
+ dateFrom
16
+ subscriptionDiscount {
17
+ price
18
+ percent
19
+ maximum
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,6 @@
1
+ mutation redeemGiftCard($code: String!) {
2
+ redeemGiftCard(code: $code) {
3
+ code
4
+ amount
5
+ }
6
+ }
@@ -0,0 +1,61 @@
1
+ query referralConfig {
2
+ myReferralConfig {
3
+ voucherTag
4
+ referral {
5
+ discount {
6
+ price
7
+ percent
8
+ maximum
9
+ }
10
+ subscriptionDiscount {
11
+ price
12
+ percent
13
+ maximum
14
+ }
15
+ customDisplay {
16
+ referralBannerTitleLine1Text
17
+ referralBannerTitleLine2Text
18
+ referralBannerSubtitleText
19
+ }
20
+ }
21
+ referred {
22
+ transactional {
23
+ discount {
24
+ price
25
+ percent
26
+ maximum
27
+ }
28
+ subscriptionDiscount {
29
+ price
30
+ percent
31
+ maximum
32
+ }
33
+ }
34
+ subscription {
35
+ discount {
36
+ price
37
+ percent
38
+ maximum
39
+ }
40
+ subscriptionDiscount {
41
+ price
42
+ percent
43
+ maximum
44
+ }
45
+ }
46
+ }
47
+ referredRewardLimits {
48
+ total
49
+ perWeek
50
+ }
51
+ }
52
+ customer {
53
+ id
54
+ firstname
55
+ referralCode
56
+ segment {
57
+ _id
58
+ allowReferralBenefits
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,3 @@
1
+ mutation registerLogout {
2
+ registerLogout
3
+ }
@@ -0,0 +1,3 @@
1
+ mutation registerPaymentProcessEvent($input: PaymentProcessEventInput!, $markAsPaymentCompleted: Boolean, $markAsSubscribed: Boolean) {
2
+ registerPaymentProcessEvent(input: $input, markAsPaymentCompleted: $markAsPaymentCompleted, markAsSubscribed: $markAsSubscribed)
3
+ }
@@ -0,0 +1,5 @@
1
+ mutation removeAddress($addressId: Int!) {
2
+ removeAddress(addressId: $addressId) {
3
+ id
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ mutation removeAddressInManager($addressId: Int!) {
2
+ removeAddress(addressId: $addressId) {
3
+ id
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ mutation removeCreditCard($cardId: String!, $isScheduledDeposit: Boolean!) {
2
+ removed: removeCreditCard(cardId: $cardId, isScheduledDeposit: $isScheduledDeposit)
3
+ }
@@ -0,0 +1,3 @@
1
+ mutation removeCustomerBillingAddress($billingAddressId: ModelId!) {
2
+ removeCustomerBillingAddress(billingAddressId: $billingAddressId)
3
+ }
@@ -0,0 +1,3 @@
1
+ mutation removeProfileWithSuggestions($profileId: ModelId!) {
2
+ removeProfileWithSuggestions(profileId: $profileId)
3
+ }
@@ -0,0 +1,6 @@
1
+ mutation requestDeliveryRescheduleSupport($id: Int!, $address: DeliveryRescheduleAddressInput!) {
2
+ requestDeliveryRescheduleSupport(id: $id, address: $address) {
3
+ id
4
+ status
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ mutation resetPassword($password: String!, $token: String!, $locale: String) {
2
+ newToken: resetPassword(password: $password, token: $token, locale: $locale)
3
+ }
@@ -0,0 +1,6 @@
1
+ mutation resumeSuggestion($suggestionId: ModelId!) {
2
+ resumed: resumeSuggestion(suggestionId: $suggestionId) {
3
+ id
4
+ skip
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ mutation resumeSuggestionProfile($profileSuggestionId: ModelId!) {
2
+ resumed: resumeSuggestionProfile(profileSuggestionId: $profileSuggestionId) {
3
+ id
4
+ skip
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ query salesPlanCategory($categoryId: ModelId!, $salesPlanId: ModelId) {
2
+ salesPlanCategory(categoryId: $categoryId, salesPlanId: $salesPlanId) {
3
+ subscriptionPrice
4
+ }
5
+ }
@@ -0,0 +1,13 @@
1
+ mutation saveAddress($address: AddressInput!) {
2
+ saveAddress(address: $address) {
3
+ id
4
+ firstname
5
+ lastname
6
+ street
7
+ number
8
+ zipcode
9
+ city
10
+ phone
11
+ floor
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ mutation saveCustomerBillingAddress($billingAddress: BillingAddressInput!) {
2
+ saveCustomerBillingAddress(billingAddress: $billingAddress) {
3
+ id
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ mutation saveSubscriptionShoppingCart($products: [CartProductInput!]!, $total: Int!, $shipping: Int!, $vouchers: [CartVoucherInput!]!) {
2
+ saveSubscriptionShoppingCart(products: $products, total: $total, shipping: $shipping, vouchers: $vouchers) {
3
+ id
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ mutation scheduleNewCustomerWalletRecharges($amount: Int!, $paymentMethodId: ModelId!, $schedules: [WalletDepositScheduleInput!]!) {
2
+ scheduleNewCustomerWalletRecharges(amount: $amount, paymentMethodId: $paymentMethodId, schedules: $schedules)
3
+ }
@@ -0,0 +1,75 @@
1
+ query segmentBySlug($slug: String) {
2
+ getSegmentBySlug(slug: $slug) {
3
+ _id
4
+ dateCreated
5
+ dateUpdated
6
+ name
7
+ slug
8
+ description
9
+ subscription {
10
+ enabled
11
+ optInSuggestions
12
+ isOptInMutable
13
+ disableProfileMaxPriceLimitation
14
+ invalidateUseOfPublicVouchers
15
+ allowMultiprofile
16
+ noPaymentMethodRequired
17
+ dnpProductsRatioValidationEnabled
18
+ }
19
+ transactional {
20
+ enabled
21
+ invalidateUseOfPublicVouchers
22
+ }
23
+ validations {
24
+ ignoreDuplicatedPhones
25
+ }
26
+ tag
27
+ targetRules {
28
+ priority
29
+ }
30
+ allowReferralBenefits
31
+ entryDeliveryConfiguration {
32
+ _id
33
+ price
34
+ name
35
+ type
36
+ address {
37
+ id
38
+ street
39
+ number
40
+ floor
41
+ city
42
+ zipcode
43
+ firstname
44
+ lastname
45
+ phone
46
+ }
47
+ }
48
+ activeStandardSalesPlan {
49
+ _id
50
+ id
51
+ name
52
+ description
53
+ specification {
54
+ minPrice
55
+ }
56
+ applications {
57
+ active
58
+ applicableTo
59
+ }
60
+ }
61
+ activeEntrySalesPlan {
62
+ _id
63
+ id
64
+ name
65
+ description
66
+ specification {
67
+ minPrice
68
+ }
69
+ applications {
70
+ active
71
+ applicableTo
72
+ }
73
+ }
74
+ }
75
+ }