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.
- package/LICENSE +21 -0
- package/README.md +93 -2
- package/bin/wetaca.js +248 -0
- package/docs/GUIA.md +118 -0
- package/docs/agent-guide.md +71 -0
- package/docs/api-operations/wetaca_bundle__Doc0.graphql +40 -0
- package/docs/api-operations/wetaca_bundle__Doc1.graphql +14 -0
- package/docs/api-operations/wetaca_bundle__Doc10.graphql +45 -0
- package/docs/api-operations/wetaca_bundle__Doc11.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__Doc2.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__Doc3.graphql +39 -0
- package/docs/api-operations/wetaca_bundle__Doc4.graphql +36 -0
- package/docs/api-operations/wetaca_bundle__Doc5.graphql +40 -0
- package/docs/api-operations/wetaca_bundle__Doc6.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__Doc7.graphql +48 -0
- package/docs/api-operations/wetaca_bundle__Doc8.graphql +92 -0
- package/docs/api-operations/wetaca_bundle__Doc9.graphql +95 -0
- package/docs/api-operations/wetaca_bundle__SaveWeeklySurveyStep.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__StartWeeklySurvey.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__SubmitWeeklySurvey.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__SubscriptionDeliveryChangePriceQueryV2.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__SuggestionDeliveryChangePriceQueryV2.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__activateSubscriptionAccount.graphql +45 -0
- package/docs/api-operations/wetaca_bundle__activeReferredReward.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__addProductsToProfileWhitelist.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__addProductsToSubscriptionProfileBlacklist.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__addProfileToSubscriptionAccount.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__addRecurrenceVoucherToCustomer.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__addSubscriptionProfileSuggestionOverwrites.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__addresses.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__addressesInManager.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__allRecommenderIngredients.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__appendNewPaymentSubscriptionMethod.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__applyOrderVoucher.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__articleQuery.graphql +22 -0
- package/docs/api-operations/wetaca_bundle__articlesByCategoryQuery.graphql +13 -0
- package/docs/api-operations/wetaca_bundle__assignNextSuggestionVoucher.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__authorizePaypalTokenGenerationPaymentIntention.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysAppApplePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysAppGooglePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysApplePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysGooglePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysPaymentIntention.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__bypassSMSValidationConfigQuery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__calculateNextProfileSuggestions.graphql +31 -0
- package/docs/api-operations/wetaca_bundle__cancelConfirmedOrder.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__cancelSubscriptionAccount.graphql +45 -0
- package/docs/api-operations/wetaca_bundle__categoriesQuery.graphql +15 -0
- package/docs/api-operations/wetaca_bundle__changeOptionsQuery.graphql +21 -0
- package/docs/api-operations/wetaca_bundle__changeOrderDelivery.graphql +27 -0
- package/docs/api-operations/wetaca_bundle__changePasswordInProfile.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__changeSubscriptionOptInMode.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__changeSubscriptionPaymentPaymentMethodsEdit.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__computeConfirmedOrderModificationPriceSummary.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__confirmDeliveryReschedule.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__confirmedOrderEditContext.graphql +95 -0
- package/docs/api-operations/wetaca_bundle__currentRecurrenceVouchers.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__customer.graphql +11 -0
- package/docs/api-operations/wetaca_bundle__customerBillingAddresses.graphql +18 -0
- package/docs/api-operations/wetaca_bundle__customerFF.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__customerFeatureFlagBySlug.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__customerFeatureFlagForAnalytics.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__customerHasReferralVouchers.graphql +11 -0
- package/docs/api-operations/wetaca_bundle__customerPaymentMethods.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__customerVouchers.graphql +224 -0
- package/docs/api-operations/wetaca_bundle__customerWalletScheduledDeposits.graphql +15 -0
- package/docs/api-operations/wetaca_bundle__customerWithSegment.graphql +61 -0
- package/docs/api-operations/wetaca_bundle__deleteCustomerAccount.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__deleteCustomerScheduledDeposit.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__deliveryOptionsByZipcode.graphql +27 -0
- package/docs/api-operations/wetaca_bundle__deliveryRescheduleWithAvailability.graphql +53 -0
- package/docs/api-operations/wetaca_bundle__dish.graphql +39 -0
- package/docs/api-operations/wetaca_bundle__editAccountBillingAddress.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__editDeliveryAccountInfo.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__editProfileSuggestionMenu.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionDelivery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileAllergens.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileDislikes.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileMenu.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileMenuAndNutrition.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileSpicy.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionTastesProfile.graphql +38 -0
- package/docs/api-operations/wetaca_bundle__editSuggestionDelivery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__featuredArticlesQuery.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__getChargingSuggestionMetadata.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationMaxQuantities.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationProductAvailability.graphql +13 -0
- package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationProductAvailabilityWithExceptions.graphql +28 -0
- package/docs/api-operations/wetaca_bundle__getSubscriptionAccountDeliveryConfigurationProductAvailability.graphql +38 -0
- package/docs/api-operations/wetaca_bundle__getUseGoogleSocialLoginInIosAppConfiguration.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__getWeeklySurveyConfig.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__giftCardsConfiguration.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__globalConfigurations.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__initNewRedsysPaymentIntention.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__initPaypalTokenGenerationPaymentIntention.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__initializePaymentProcessEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__isNextSuggestionSkiped.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__landingTemplateCollectionQuery.graphql +157 -0
- package/docs/api-operations/wetaca_bundle__landingTemplateFloatingBarQuery.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__lastUsedOrderOptions.graphql +34 -0
- package/docs/api-operations/wetaca_bundle__linkGoogleAccountByPassword.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__linkGoogleAccountBySMS.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__linkGoogleAccountPhone.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__linkPhoneNumberToAccount.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__markSuggestionAsViewedInEditableState.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__menuProductIds.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__modifyConfirmedOrderProducts.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__mostRecentZipCode.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__myDetailsAccountWithProfiles.graphql +506 -0
- package/docs/api-operations/wetaca_bundle__newBlogLeadMutation.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__nextDeliveries.graphql +190 -0
- package/docs/api-operations/wetaca_bundle__nextSubscriptionStartOfChargeTimeQuery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestion.graphql +231 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestionAddVoucherPage.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestionIdAndVoucher.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestionVoucherAndPrice.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__orderDetails.graphql +124 -0
- package/docs/api-operations/wetaca_bundle__pauseProfile.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__pauseResumeProfile.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__pauseSubscriptionQuery.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__pauseSuggestion.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__pauseSuggestionProfile.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__paySubscriptionPendingOrderWithPaymentMethod.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__payTransactionalOrder.graphql +39 -0
- package/docs/api-operations/wetaca_bundle__pendingDeliveryOrders.graphql +473 -0
- package/docs/api-operations/wetaca_bundle__pendingPaymentOrderById.graphql +63 -0
- package/docs/api-operations/wetaca_bundle__pendingTransactionalDeliveryOrders.graphql +80 -0
- package/docs/api-operations/wetaca_bundle__previousDeliveries.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__profileHasEditTastes.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__profileSuggestionBySuggestionId.graphql +190 -0
- package/docs/api-operations/wetaca_bundle__profileSuggestionWithProfileById.graphql +142 -0
- package/docs/api-operations/wetaca_bundle__purchaseGiftCard.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__rechargeCustomerWalletWithPaymentMethod.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__recommendedArticlesQuery.graphql +20 -0
- package/docs/api-operations/wetaca_bundle__recommenderIngredientsByNames.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__recoverPassword.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__recurrenceNextAssociatedVoucher.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__redeemGiftCard.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__referralConfig.graphql +61 -0
- package/docs/api-operations/wetaca_bundle__registerLogout.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__registerPaymentProcessEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__removeAddress.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__removeAddressInManager.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__removeCreditCard.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__removeCustomerBillingAddress.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__removeProfileWithSuggestions.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__requestDeliveryRescheduleSupport.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__resetPassword.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__resumeSuggestion.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__resumeSuggestionProfile.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__salesPlanCategory.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__saveAddress.graphql +13 -0
- package/docs/api-operations/wetaca_bundle__saveCustomerBillingAddress.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__saveSubscriptionShoppingCart.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__scheduleNewCustomerWalletRecharges.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__segmentBySlug.graphql +75 -0
- package/docs/api-operations/wetaca_bundle__segmentMenu.graphql +89 -0
- package/docs/api-operations/wetaca_bundle__sessionTokenByPassword.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__sessionTokenBySms.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__setPasswordInProfile.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__shoppingCart.graphql +18 -0
- package/docs/api-operations/wetaca_bundle__signUp.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__signUpWithGoogle.graphql +15 -0
- package/docs/api-operations/wetaca_bundle__someProfileHasEditTastes.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__subscribeCustomer.graphql +11 -0
- package/docs/api-operations/wetaca_bundle__subscribeToReactivationUrlVoucher.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__subscribeToVoucherAddVoucherPage.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__subscriberAccountStatus.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountByCustomerWithPayments.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountChangePricing.graphql +92 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricing.graphql +156 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingForMenu.graphql +134 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingFunnelCart.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingVoucher.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountProductsSubscriptionPricing.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAvailability.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__subscriptionIntentMenuProductsPricing.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__subscriptionMenuWithWelcomeVoucherQuery.graphql +66 -0
- package/docs/api-operations/wetaca_bundle__subscriptionSegmentMenu.graphql +48 -0
- package/docs/api-operations/wetaca_bundle__subscriptionVoucher.graphql +27 -0
- package/docs/api-operations/wetaca_bundle__subscriptionWelcomeVoucher.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__suggestioMenuProductsPricing.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__suggestionById.graphql +52 -0
- package/docs/api-operations/wetaca_bundle__suggestionByIdData.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__suggestionChangePricing.graphql +122 -0
- package/docs/api-operations/wetaca_bundle__syncFeatureFlags.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__tokenIsValid.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__totalOrdersSummaryByCustomer.graphql +21 -0
- package/docs/api-operations/wetaca_bundle__trackInternalEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__trackInternalGEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__trackInternalLPEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__trackLoginInternalEvent.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__transactionalSegmentMenu.graphql +47 -0
- package/docs/api-operations/wetaca_bundle__updateSubscriptionProfileCharacter.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__updateSubscriptionProfileName.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__updateUserProfile.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__useCaptchaConfig.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__userSessionSubscription.graphql +20 -0
- package/docs/api-operations/wetaca_bundle__validateSegment.graphql +19 -0
- package/docs/api-operations/wetaca_bundle__validateSubscriptionIntent.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__voucherCustomDisplay.graphql +22 -0
- package/docs/api-operations/wetaca_bundle__walletBalance.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__walletOperations.graphql +11 -0
- package/docs/cli-spec.md +113 -0
- package/package.json +38 -4
- package/src/commands.js +700 -0
- package/src/guide.js +73 -0
- package/src/lib.js +371 -0
- 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,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,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,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
|
+
}
|
package/docs/api-operations/wetaca_bundle__subscriptionAccountProductsSubscriptionPricing.graphql
ADDED
|
@@ -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,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
|
+
}
|