@flowio/api-factories 0.0.23 → 0.0.25
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/dist/cjs/api.js +36 -18
- package/dist/esm/api.js +16 -1
- package/dist/types/api.d.ts +3 -0
- package/package.json +2 -2
- package/src/api.ts +19 -1
package/dist/cjs/api.js
CHANGED
|
@@ -18,23 +18,23 @@ exports.makeImage = exports.makeIdentifierForm = exports.makeHs6CodeUpserted = e
|
|
|
18
18
|
exports.makeInvitationError = exports.makeInvitation = exports.makeInventoryUpdateVersion = exports.makeInventoryUpdateForm = exports.makeInventoryUpdate = exports.makeInventoryUnlimited = exports.makeInventoryStrategy = exports.makeInventoryStock = exports.makeInventoryStatus = exports.makeInventorySnapshotVersion = exports.makeInventorySnapshot = exports.makeInventoryRuleVersion = exports.makeInventoryRuleForm = exports.makeInventoryRule = exports.makeInventoryRequestItem = exports.makeInventoryRequest = exports.makeInventoryItemReference = exports.makeInventoryFollowEcommercePlatform = exports.makeInventoryExperienceReference = exports.makeInventoryCheckResponseItem = exports.makeInventoryCheckResponse = exports.makeInventoryCenterReference = exports.makeInventoryBackorder = exports.makeInputSpecificationType = exports.makeInputSpecificationLimitations = exports.makeInputSpecificationLimitationMax = exports.makeInputSpecificationLimitation = exports.makeInputSpecification = exports.makeInputFormSpecification = exports.makeInputForm = exports.makeInlineWindowViewportSize = exports.makeInlineAuthorizationForm = exports.makeInlineAuthorizationDetails = exports.makeInlineActionConfiguration = exports.makeIncoterm = exports.makeIncludedLevyKey = exports.makeIncludedLevies = exports.makeInboundCartonFee = exports.makeImportVersion = exports.makeImportType = exports.makeImportTemplateForm = exports.makeImportTemplateExample = exports.makeImportTemplate = exports.makeImportResults = exports.makeImportForm = exports.makeImportFailedV2 = exports.makeImportCompletedV2 = exports.makeImport = exports.makeImageTag = exports.makeImageForm = void 0;
|
|
19
19
|
exports.makeLaneStrategy = exports.makeLanePreselectPreference = exports.makeLaneLandedCost = exports.makeLaneDirection = exports.makeLandedCostItem = exports.makeLabelUpsertedV2 = exports.makeLabelUpserted = exports.makeLabelOrderSummary = exports.makeLabelFormatUpserted = exports.makeLabelFormatDeleted = exports.makeLabelDeletedV2 = exports.makeKlaviyoOrderPrices = exports.makeKlaviyoOrderContent = exports.makeKlaviyoLineItem = exports.makeKlarnaSdkAuthorizationResultActionDetails = exports.makeKlarnaPaymentMethodCategory = exports.makeKlarnaPaymentCategory = exports.makeJsonpResponse = exports.makeItemVersion = exports.makeItemStatistics = exports.makeItemShippingPricing = exports.makeItemSalesMarginUpserted = exports.makeItemSalesMarginDeleted = exports.makeItemReference = exports.makeItemQuerySuggestion = exports.makeItemPriceUpdatePutForm = exports.makeItemPriceUpdateForm = exports.makeItemOriginUpserted = exports.makeItemOriginDeleted = exports.makeItemMarginVersion = exports.makeItemMarginUpsertedV2 = exports.makeItemMarginPutForm = exports.makeItemMarginPostForm = exports.makeItemMarginDeletedV2 = exports.makeItemMargin = exports.makeItemIdentifier = exports.makeItemFormOverlayForm = exports.makeItemFormOverlay = exports.makeItemForm = exports.makeItemAvailabilityStatus = exports.makeItemAttributesPatchForm = exports.makeItem = exports.makeIssuerV1 = exports.makeIssuerSummary = exports.makeIssuerReference = exports.makeInvoiceExportForm = exports.makeInvoiceExport = exports.makeInvitationVersion = exports.makeInvitationForm = exports.makeInvitationErrorCode = void 0;
|
|
20
20
|
exports.makeMerchantApplication = exports.makeMembershipVersion = exports.makeMembershipUpsertedV2 = exports.makeMembershipPutForm = exports.makeMembershipForm = exports.makeMembershipDeletedV2 = exports.makeMembership = exports.makeMeasurementSystem = exports.makeMeasurement = exports.makeMarketingFeedsExportType = exports.makeMarginType = exports.makeMargin = exports.makeManifestedLabelUpserted = exports.makeManifestedLabelDeleted = exports.makeManifestForm = exports.makeManifest = exports.makeLogisticsSettings = exports.makeLocationErrorCode = exports.makeLocationError = exports.makeLocalizedTranslation = exports.makeLocalizedTotal = exports.makeLocalizedPrice = exports.makeLocalizedLineItemDiscount = exports.makeLocalizedLineItem = exports.makeLocalizedItemVat = exports.makeLocalizedItemPricesExportType = exports.makeLocalizedItemPrice = exports.makeLocalizedItemDuty = exports.makeLocalizedAdjustment = exports.makeLocaleNumbers = exports.makeLocale = exports.makeLocalSession = exports.makeLocalPriceDetails = exports.makeLocalItemUpserted = exports.makeLocalItemPricing = exports.makeLocalItemDeleted = exports.makeLocalItemAttributePricing = exports.makeLocalItem = exports.makeLocal = exports.makeLink = exports.makeLineItemQuantityForm = exports.makeLineItemForm = exports.makeLineItemAttributesForm = exports.makeLineItem = exports.makeLine = exports.makeLevyStrategy = exports.makeLevyInclusion = exports.makeLevyComponent = exports.makeLanguage = exports.makeLaneSummary = void 0;
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = exports.makeWebhookReference = exports.makeWebhookForm = exports.makeWebhookDelivery = exports.makeWebhook = exports.makeVisibility = exports.makeVirtualCardVersion = void 0;
|
|
21
|
+
exports.makeOrderBuilderCustomerForm = exports.makeOrderBuilderAttributesForm = exports.makeOrderBuilder = exports.makeOrderAddress = exports.makeOrder = exports.makeOptions = exports.makeOptionWeightEstimates = exports.makeOptinResponseType = exports.makeOptinResponse = exports.makeOperationsContact = exports.makeOnlinePaymentAuthorizationForm = exports.makeOnlineAuthorizationUpsertedV2 = exports.makeOnlineAuthorizationDetails = exports.makeOnlineAuthorizationDeletedV2 = exports.makeOnlineAuthorization = exports.makeOnboardingTradeSector = exports.makeOnboardingMerchantTime = exports.makeOnboardingMerchantScheduledPickup = exports.makeOnboardingMerchantPickupWindow = exports.makeOnboardingApplicationStatus = exports.makeNumberRange = exports.makeNotificationUpsertedV2 = exports.makeNotificationDeletedV2 = exports.makeNoInventoryReservationErrorItem = exports.makeNoInventoryReservationError = exports.makeNameForm = exports.makeName = exports.makeMonthlyAverageVolume = exports.makeMonthlyAverage = exports.makeMoneyWithOptionalBase = exports.makeMoneyWithBase = exports.makeMoney = exports.makeMethod = exports.makeMerchantOnboardingAddress = exports.makeMerchantOfRecordPaymentForm = exports.makeMerchantOfRecordEntityRegistration = exports.makeMerchantOfRecordEntity = exports.makeMerchantOfRecordAuthorizationForm = exports.makeMerchantOfRecord = exports.makeMerchantInfo = exports.makeMerchantGiftCardReversalForm = exports.makeMerchantGiftCardReversal = exports.makeMerchantGiftCardRedemptionForm = exports.makeMerchantGiftCardRedemption = exports.makeMerchantGiftCardErrorCode = exports.makeMerchantGiftCardError = exports.makeMerchantGiftCardBalanceForm = exports.makeMerchantGiftCardBalance = exports.makeMerchantApplicationPutForm = exports.makeMerchantApplicationForm = void 0;
|
|
22
|
+
exports.makeOrderPriceDetailComponentKey = exports.makeOrderPriceDetailComponent = exports.makeOrderPriceDetail = exports.makeOrderPlacedV2 = exports.makeOrderPlacedDetails = exports.makeOrderPlaced = exports.makeOrderPaymentType = exports.makeOrderPayment = exports.makeOrderOptions = exports.makeOrderNumberReference = exports.makeOrderNumberGeneratorUuid = exports.makeOrderNumberGeneratorPrefixSuffix = exports.makeOrderNumberGeneratorHexadecimal = exports.makeOrderNumberGeneratorGeneratedNumber = exports.makeOrderNumberGeneratorFixedLength = exports.makeOrderNumberGeneratorDefaults = exports.makeOrderNumberGenerator = exports.makeOrderMerchantOfRecord = exports.makeOrderInformationFlow = exports.makeOrderInformationDetails = exports.makeOrderInformation = exports.makeOrderIdentifierVersion = exports.makeOrderIdentifierUpsertedV3 = exports.makeOrderIdentifierUpsertedV2 = exports.makeOrderIdentifierUpserted = exports.makeOrderIdentifierPutForm = exports.makeOrderIdentifierForm = exports.makeOrderIdentifierDeletedV2 = exports.makeOrderIdentifierDeleted = exports.makeOrderIdentifier = exports.makeOrderGeo = exports.makeOrderFraudStatus = exports.makeOrderForm = exports.makeOrderExportType = exports.makeOrderEstimateForm = exports.makeOrderEstimate = exports.makeOrderErrorCode = exports.makeOrderError = exports.makeOrderDetails = exports.makeOrderDestinationPutForm = exports.makeOrderDeletedV2 = exports.makeOrderDeleted = exports.makeOrderCustomerForm = exports.makeOrderCustomer = exports.makeOrderChangeSource = exports.makeOrderBuilderSelectionsForm = exports.makeOrderBuilderDestinationForm = exports.makeOrderBuilderDestinationCountryForm = exports.makeOrderBuilderDeliveredDutyForm = exports.makeOrderBuilderCustomerInvoiceAddressForm = void 0;
|
|
23
|
+
exports.makeOrderServiceChange = exports.makeOrderRulesSummary = exports.makeOrderRuleReference = exports.makeOrderReplacementUpserted = exports.makeOrderReplacementForm = exports.makeOrderReplacementDeleted = exports.makeOrderReplacement = exports.makeOrderRefundSummaryPartialIncludes = exports.makeOrderRefundSummaryPartialForm = exports.makeOrderRefundSummaryPartialCharged = exports.makeOrderRefundSummaryItem = exports.makeOrderRefundSummaryIncludes = exports.makeOrderRefundSummaryFullForm = exports.makeOrderRefundSummaryForm = exports.makeOrderRefundSummaryAmounts = exports.makeOrderRefundSummary = exports.makeOrderReference = exports.makeOrderQuoteSummaryTotal = exports.makeOrderQuoteSummaryTax = exports.makeOrderQuoteSummaryShippingSurcharges = exports.makeOrderQuoteSummaryShippingFreight = exports.makeOrderQuoteSummaryShipping = exports.makeOrderQuoteSummaryItems = exports.makeOrderQuoteSummaryDuty = exports.makeOrderQuoteSummary = exports.makeOrderQuoteReference = exports.makeOrderQuotePutForm = exports.makeOrderQuotePriceStandard = exports.makeOrderQuotePriceNotYetKnown = exports.makeOrderQuotePriceIncluded = exports.makeOrderQuotePriceFree = exports.makeOrderQuotePriceEstimated = exports.makeOrderQuotePrice = exports.makeOrderQuoteLineErrorCode = exports.makeOrderQuoteLineError = exports.makeOrderQuoteLineDiscount = exports.makeOrderQuoteLine = exports.makeOrderQuoteGeoPutForm = exports.makeOrderQuoteErrorDetails = exports.makeOrderQuoteErrorCode = exports.makeOrderQuoteError = exports.makeOrderQuoteContact = exports.makeOrderQuoteAddressType = exports.makeOrderQuoteAddress = exports.makeOrderQuote = exports.makeOrderPutForm = exports.makeOrderPromotionTrigger = exports.makeOrderPromotionForm = exports.makeOrderPromotion = exports.makeOrderPriceDetailKey = void 0;
|
|
24
|
+
exports.makeOutboundCartonFee = exports.makeOriginalPrices = exports.makeOrganizationVersion = exports.makeOrganizationUpsertedV2 = exports.makeOrganizationUpserted = exports.makeOrganizationTokenV2Reference = exports.makeOrganizationTokenV2 = exports.makeOrganizationTokenReference = exports.makeOrganizationTokenFormV2 = exports.makeOrganizationTokenForm = exports.makeOrganizationToken = exports.makeOrganizationSummary = exports.makeOrganizationStatus = exports.makeOrganizationSessionAuthorization = exports.makeOrganizationSession = exports.makeOrganizationReference = exports.makeOrganizationRatesPublished = exports.makeOrganizationRatesData = exports.makeOrganizationPutForm = exports.makeOrganizationPaymentMethodTag = exports.makeOrganizationForm = exports.makeOrganizationDeletedV2 = exports.makeOrganizationDeleted = exports.makeOrganizationDefaults = exports.makeOrganizationDefaultConfigurationsUpserted = exports.makeOrganizationDefaultConfigurationsForm = exports.makeOrganizationDefaultConfigurationsDeleted = exports.makeOrganizationDefaultConfigurations = exports.makeOrganizationConfigurationReference = exports.makeOrganizationAuthorizationForm = exports.makeOrganizationAuthorization = exports.makeOrganization = exports.makeOrderWithDiscountsForm = exports.makeOrderVersion = exports.makeOrderUpsertedV2 = exports.makeOrderUpserted = exports.makeOrderType = exports.makeOrderSummaryPriceDetail = exports.makeOrderSummaryLineItem = exports.makeOrderSummaryLevy = exports.makeOrderSummaryItem = exports.makeOrderSummaryImage = exports.makeOrderSummary = exports.makeOrderSubmissionIdentifierForm = exports.makeOrderSubmissionForm = exports.makeOrderStorage = exports.makeOrderStatus = exports.makeOrderServiceChangeRequestData = exports.makeOrderServiceChangeRequest = exports.makeOrderServiceChangeForm = void 0;
|
|
25
|
+
exports.makePaymentMethodDataAuthorizeKlarna = exports.makePaymentMethodDataAuthorizeGooglepay = exports.makePaymentMethodDataAuthorizeCard = exports.makePaymentMethodDataAuthorizeApplepay = exports.makePaymentMethodData = exports.makePaymentMethodCardToken = exports.makePaymentMethodCardPciDetails = exports.makePaymentMethodCardNumberCleartext = exports.makePaymentMethodCardNumberCipher = exports.makePaymentMethodCard = exports.makePaymentMethodCapability = exports.makePaymentMethodBrand = exports.makePaymentMethod = exports.makePaymentInformation = exports.makePaymentForm = exports.makePaymentFailureCode = exports.makePaymentFailure = exports.makePaymentErrorCode = exports.makePaymentError = exports.makePaymentDuty = exports.makePaymentDiscount = exports.makePaymentDeleted = exports.makePaymentCryptopay = exports.makePaymentContactShipping = exports.makePaymentContactBilling = exports.makePaymentCaptureStatus = exports.makePaymentCaptureOptionManual = exports.makePaymentCaptureOptionAutomaticImmediate = exports.makePaymentCaptureOption = exports.makePaymentCaptureForm = exports.makePaymentCapture = exports.makePaymentAuthorizationStatus = exports.makePaymentAuthorization = exports.makePaymentAddressShipping = exports.makePaymentAddressBilling = exports.makePaymentAddress = exports.makePaymentActionType = exports.makePayment = exports.makePasswordResetRequestForm = exports.makePasswordResetForm = exports.makePasswordChangeForm = exports.makePartnerTokenReference = exports.makePartnerTokenForm = exports.makePartnerToken = exports.makePartnerReference = exports.makePartnerCenterForm = exports.makePartnerCenterFee = exports.makePartnerCenter = exports.makePackaging = exports.makeOversizedShipmentRatecardFee = void 0;
|
|
26
|
+
exports.makePaymentRefundForm = exports.makePaymentRefund = exports.makePaymentReference = exports.makePaymentProcessorReference = exports.makePaymentProcessorIdentifier = exports.makePaymentProcessorAccountReference = exports.makePaymentProcessorAccount = exports.makePaymentProcessor = exports.makePaymentPaypal = exports.makePaymentPaymentRequestReference = exports.makePaymentPaymentMethod = exports.makePaymentOrderReference = exports.makePaymentOrderDetailsLineItem = exports.makePaymentMethodType = exports.makePaymentMethodTag = exports.makePaymentMethodSummarySofort = exports.makePaymentMethodSummaryPaypal = exports.makePaymentMethodSummaryKlarna = exports.makePaymentMethodSummaryIdeal = exports.makePaymentMethodSummaryGooglepay = exports.makePaymentMethodSummaryCard = exports.makePaymentMethodSummaryBancontact = exports.makePaymentMethodSummaryApplepay = exports.makePaymentMethodSummaryAfterpay = exports.makePaymentMethodSummary = exports.makePaymentMethodRuleContentKey = exports.makePaymentMethodRuleContent = exports.makePaymentMethodRule = exports.makePaymentMethodIssuer = exports.makePaymentMethodImages = exports.makePaymentMethodImage = exports.makePaymentMethodDataValidateApplepay = exports.makePaymentMethodDataSelectedPaymentOption = exports.makePaymentMethodDataPaymentOption = exports.makePaymentMethodDataOptionType = exports.makePaymentMethodDataOptionLogoSvg = exports.makePaymentMethodDataOptionLogo = exports.makePaymentMethodDataInitSofort = exports.makePaymentMethodDataInitPaypal = exports.makePaymentMethodDataInitKlarna = exports.makePaymentMethodDataInitIdeal = exports.makePaymentMethodDataInitGooglepay = exports.makePaymentMethodDataInitBancontact = exports.makePaymentMethodDataInitApplepay = exports.makePaymentMethodDataInitAfterpay = exports.makePaymentMethodDataCompleteAuthorizationCard = exports.makePaymentMethodDataAuthorizePaypal = exports.makePaymentMethodDataAuthorizeKlarnaResultSuccess = exports.makePaymentMethodDataAuthorizeKlarnaResultFailure = exports.makePaymentMethodDataAuthorizeKlarnaResult = void 0;
|
|
27
|
+
exports.makePriceBookItemExportType = exports.makePriceBookItemExportOptions = exports.makePriceBookItemDeleted = exports.makePriceBookItem = exports.makePriceBookForm = exports.makePriceBookDeleted = exports.makePriceBook = exports.makePriceAccuracy = exports.makePrice = exports.makePostalType = exports.makePostPaymentRedirectUrls = exports.makePhysicalDeliverySpecialSerivce = exports.makePhysicalDelivery = exports.makePfsInventoryStatus = exports.makePfsInventoryCheckResponseItem = exports.makePfsInventoryCheckResponse = exports.makePermittedRoute = exports.makePermittedHttpMethod = exports.makePermissionCheck = exports.makePermissionAudit = exports.makePercentMargin = exports.makePeakSurchargeServiceFee = exports.makePeakSurchargeRatecardFee = exports.makePeakSurchargeByWeightServiceFee = exports.makePaypalAuthorizationForm = exports.makePaypalAuthorizationDetails = exports.makePayoutStatusCode = exports.makePayoutStatus = exports.makePayout = exports.makePaymentVersion = exports.makePaymentUpserted = exports.makePaymentType = exports.makePaymentTax = exports.makePaymentStatus = exports.makePaymentSourceForm = exports.makePaymentSourceConfirmationActionType = exports.makePaymentSourceConfirmationAction = exports.makePaymentSource = exports.makePaymentReversalStatus = exports.makePaymentReversalForm = exports.makePaymentReversal = exports.makePaymentRequestUpserted = exports.makePaymentRequestReference = exports.makePaymentRequestForm = exports.makePaymentRequestBundleForm = exports.makePaymentRequestBundle = exports.makePaymentRequestBillingFees = exports.makePaymentRequestBilling = exports.makePaymentRequest = exports.makePaymentRefundStatus = void 0;
|
|
28
|
+
exports.makeQueryFilterStructuredForm = exports.makeQueryFilterStructured = exports.makeQueryFilterForm = exports.makeQueryFilter = exports.makeQueryBuilderQueryForm = exports.makeQueryBuilderForm = exports.makeQueryBuilderFilterForm = exports.makeQueryBuilder = exports.makeQuery = exports.makePublicKey = exports.makeProvinceType = exports.makeProvince = exports.makePromotions = exports.makePromotionTriggerType = exports.makePromotionTriggerForm = exports.makePromotionTrigger = exports.makePromotion = exports.makeProductRestrictionResultUpserted = exports.makeProductRestrictionResultDeleted = exports.makeProductRestrictionResult = exports.makeProcessingEstimate = exports.makePricingVersion = exports.makePricingUpserted = exports.makePricingSettings = exports.makePricingLevySetting = exports.makePricingDeleted = exports.makePricing = exports.makePriceWithBaseAndDetails = exports.makePriceWithBase = exports.makePriceSourceProvided = exports.makePriceSourcePriceBookReference = exports.makePriceSourcePriceBook = exports.makePriceSourceCatalog = exports.makePriceSource = exports.makePriceForm = exports.makePriceFacetBoundary = exports.makePriceEquation = exports.makePriceDetails = exports.makePriceDetailKey = exports.makePriceDetailComponentKey = exports.makePriceDetailComponent = exports.makePriceDetail = exports.makePriceCheck = exports.makePriceBookUpserted = exports.makePriceBookStatus = exports.makePriceBookReference = exports.makePriceBookItemUpserted = exports.makePriceBookItemSchedule = exports.makePriceBookItemQueryForm = exports.makePriceBookItemForm = void 0;
|
|
29
|
+
exports.makeRedirectAuthorizationForm = exports.makeRedirectAuthorizationDetails = exports.makeReadyToFulfillV2 = exports.makeReadyToFulfillDetails = exports.makeReadyToFulfill = exports.makeRatecardVersion = exports.makeRatecardUpserted = exports.makeRatecardSummary = exports.makeRatecardServiceSummary = exports.makeRatecardRegionReference = exports.makeRatecardReference = exports.makeRatecardRateVersion = exports.makeRatecardRateForm = exports.makeRatecardRate = exports.makeRatecardOwner = exports.makeRatecardLanesImportRequestData = exports.makeRatecardLaneVersion = exports.makeRatecardLaneUpserted = exports.makeRatecardLaneImportForm = exports.makeRatecardLaneForm = exports.makeRatecardLaneDeleted = exports.makeRatecardLane = exports.makeRatecardForm = exports.makeRatecardFee = exports.makeRatecardEstimateV4 = exports.makeRatecardEstimateV3 = exports.makeRatecardEstimateV2 = exports.makeRatecardEstimateV1 = exports.makeRatecardEstimateSummaryForm = exports.makeRatecardEstimateForm = exports.makeRatecardEstimate = exports.makeRatecardDeleted = exports.makeRatecardCarrierSummary = exports.makeRatecard = exports.makeRateVersion = exports.makeRateUpsertedV3 = exports.makeRateUpserted = exports.makeRateForm = exports.makeRateDeletedV3 = exports.makeRateDeleted = exports.makeRate = exports.makeQuoteVersion = exports.makeQuoteSummary = exports.makeQuoteLineItemForm = exports.makeQuoteForm = exports.makeQuoteErrorCode = exports.makeQuoteError = exports.makeQuote = exports.makeQueryFilterUnstructuredForm = exports.makeQueryFilterUnstructured = void 0;
|
|
30
|
+
exports.makeReturnPolicyStatistic = exports.makeReturnPolicyState = exports.makeReturnPolicyItemResult = exports.makeReturnPolicyForm = exports.makeReturnPolicy = exports.makeReturnPackageRatecardFee = exports.makeReturnOrderReference = exports.makeReturnLineItem = exports.makeReturnItemStatus = exports.makeReturnItemReference = exports.makeReturnForm = exports.makeReturnDeletedV2 = exports.makeReturnDeleted = exports.makeReturn = exports.makeReservationOrderReference = exports.makeReservationItemReference = exports.makeReservationItemForm = exports.makeReservationItem = exports.makeReservationForm = exports.makeReservationError = exports.makeReservation = exports.makeRepeatWeekly = exports.makeRepeatSchedule = exports.makeRepeatMonthly = exports.makeRepeatHourly = exports.makeRepeatDaily = exports.makeRemoteAreaServiceFee = exports.makeRemoteAreaRatecardFee = exports.makeRegionType = exports.makeRegionSettingForm = exports.makeRegionSetting = exports.makeRegionReference = exports.makeRegion = exports.makeRefundVersion = exports.makeRefundUpsertedV2 = exports.makeRefundStatus = exports.makeRefundReference = exports.makeRefundOrderSummaryAmounts = exports.makeRefundOrderSummary = exports.makeRefundIdentifierUpserted = exports.makeRefundIdentifierDeleted = exports.makeRefundIdentifier = exports.makeRefundForm = exports.makeRefundError = exports.makeRefundDeletedV2 = exports.makeRefundDeclineCode = exports.makeRefundCaptureUpsertedV2 = exports.makeRefundCaptureSummary = exports.makeRefundCapture = exports.makeRefund = void 0;
|
|
31
|
+
exports.makeSessionExpirationConfig = exports.makeSessionExperimentVariantForm = exports.makeSessionExperimentVariant = exports.makeSessionExperimentForm = exports.makeSessionExperiment = exports.makeSessionCurrencyFormat = exports.makeSessionContextExperiment = exports.makeSessionAuthorizationForm = exports.makeSessionAuthorization = exports.makeSession = exports.makeServiceSummary = exports.makeServiceReference = exports.makeServiceFee = exports.makeSelectIssuerOptionActionDetails = exports.makeSdkAdyenV3AuthenticationToken = exports.makeScheduledPickup = exports.makeScheduledExportForm = exports.makeScheduledExport = exports.makeScheduleExceptionStatus = exports.makeSchedule = exports.makeRuleUpserted = exports.makeRuleDeleted = exports.makeRouteAudit = exports.makeRoundingType = exports.makeRoundingMethod = exports.makeRounding = exports.makeRomanizationForm = exports.makeRomanization = exports.makeRole = exports.makeReversalVersion = exports.makeReversalUpserted = exports.makeReversalStatus = exports.makeReversalPutForm = exports.makeReversalForm = exports.makeReversalErrorCode = exports.makeReversalError = exports.makeReversalDeleted = exports.makeReversal = exports.makeReturnVersion = exports.makeReturnUpsertedV2 = exports.makeReturnUpserted = exports.makeReturnTrackingStatus = exports.makeReturnStatus = exports.makeReturnSourceFlow = exports.makeReturnSourceExternalVendor = exports.makeReturnSource = exports.makeReturnReasonPutForm = exports.makeReturnReasonForm = exports.makeReturnReason = exports.makeReturnPolicyVersion = void 0;
|
|
32
|
+
exports.makeShopifyCartAddForm = exports.makeShopifyCart = exports.makeShippingNotificationVersion = exports.makeShippingNotificationForm = exports.makeShippingNotification = exports.makeShippingLaneVersion = exports.makeShippingLaneUpserted = exports.makeShippingLaneSummary = exports.makeShippingLaneForm = exports.makeShippingLaneDeleted = exports.makeShippingLaneDefaultTierForm = exports.makeShippingLaneDefaultTier = exports.makeShippingLane = exports.makeShippingLabelVersion = exports.makeShippingLabelSummary = exports.makeShippingLabelRatecardSummary = exports.makeShippingLabelPackage = exports.makeShippingLabelLaneSummary = exports.makeShippingLabelHopSummary = exports.makeShippingLabelForm = exports.makeShippingLabelDocument = exports.makeShippingLabel = exports.makeShippingConfigurationVersion = exports.makeShippingConfigurationUpserted = exports.makeShippingConfigurationType = exports.makeShippingConfigurationSummary = exports.makeShippingConfigurationReference = exports.makeShippingConfigurationItemShippingPricingUpserted = exports.makeShippingConfigurationItemShippingPricingDeleted = exports.makeShippingConfigurationItemShippingPricing = exports.makeShippingConfigurationItemAvailabilityUpserted = exports.makeShippingConfigurationItemAvailabilityDeleted = exports.makeShippingConfigurationItemAvailability = exports.makeShippingConfigurationForm = exports.makeShippingConfigurationDeleted = exports.makeShippingConfigurationCopyForm = exports.makeShippingConfigurationCopy = exports.makeShippingConfiguration = exports.makeShippingAddress = exports.makeShipping = exports.makeShipmentWindow = exports.makeShipmentRecipient = exports.makeShipmentIntegrationType = exports.makeSessionVisitor = exports.makeSessionVisit = exports.makeSessionReference = exports.makeSessionPutForm = exports.makeSessionGeo = exports.makeSessionFormat = exports.makeSessionForm = void 0;
|
|
33
|
+
exports.makeStatement = exports.makeSortDirection = exports.makeSolidusVariantExportType = exports.makeSolidusProductExportType = exports.makeSnapshotUpserted = exports.makeSnapshotDeleted = exports.makeSinglePackageShippingNotificationForm = exports.makeSimplePermissionCheck = exports.makeShopifyVariantInventoryMetafield = exports.makeShopifyVariantFlowMetafield = exports.makeShopifySyncStatus = exports.makeShopifySyncCheck = exports.makeShopifyPrivateAppForm = exports.makeShopifyPrivateApp = exports.makeShopifyPrice = exports.makeShopifyOrderRomanizationMetafield = exports.makeShopifyOrderPriceAttributesMetafield = exports.makeShopifyOrderDeliveryMetafieldItem = exports.makeShopifyOrderDeliveryMetafield = exports.makeShopifyOrderAttributesForm = exports.makeShopifyMerchantApplicationPutForm = exports.makeShopifyMerchantApplicationForm = exports.makeShopifyMerchantApplication = exports.makeShopifyLocationReference = exports.makeShopifyLocationFlowCenterMappingForm = exports.makeShopifyLocationFlowCenterMapping = exports.makeShopifyLocalizedVariantPrices = exports.makeShopifyLocalizedVariant = exports.makeShopifyLocalizedOrder = exports.makeShopifyLocalizationSettingUpserted = exports.makeShopifyLocalizationSettingForm = exports.makeShopifyLocalizationSettingDeleted = exports.makeShopifyLocalizationSetting = exports.makeShopifyLocalizationMethod = exports.makeShopifyLocalPriceMetadata = exports.makeShopifyLocalCartMetadata = exports.makeShopifyLocalCartItemMetadata = exports.makeShopifyLine = exports.makeShopifyItemEventData = exports.makeShopifyItemEventBucket = exports.makeShopifyGrant = exports.makeShopifyEventBucket = exports.makeShopifyCustomerMetafieldValue = exports.makeShopifyCartItem = exports.makeShopifyCartConversionShopifyCart = exports.makeShopifyCartConversionFlowOrder = exports.makeShopifyCartConversion = exports.makeShopifyCartChangeForm = exports.makeShopifyCartAddSingleForm = exports.makeShopifyCartAddMultipleForm = void 0;
|
|
34
|
+
exports.makeTaxDutyQuoteLevyValue = exports.makeTaxDutyQuoteForm = exports.makeTaxDutyQuoteFeeValue = exports.makeTaxDutyQuote = exports.makeTaxDutyCalculatorValidationErrorCode = exports.makeTaxDutyCalculatorValidationError = exports.makeTaxApplicability = exports.makeTax = exports.makeSyncUnitOfTime = exports.makeSyncStreamType = exports.makeSyncStreamSettingsForm = exports.makeSyncStreamSettings = exports.makeSyncStreamReference = exports.makeSyncStreamForm = exports.makeSyncStream = exports.makeSyncRecordForm = exports.makeSyncRecordFailureReason = exports.makeSyncRecordFailureForm = exports.makeSyncRecordFailure = exports.makeSyncRecord = exports.makeSyncPendingRecord = exports.makeSyncDuration = exports.makeSurchargeSettingDisplay = exports.makeSurchargeSetting = exports.makeSurchargeResponsiblePartyDisplay = exports.makeSurchargeResponsibleParty = exports.makeSummaryShippingNotificationForm = exports.makeSummaryShippingLabelForm = exports.makeSuggestion = exports.makeSubcatalogVersion = exports.makeSubcatalogUpserted = exports.makeSubcatalogStatistics = exports.makeSubcatalogSettingsForm = exports.makeSubcatalogSettings = exports.makeSubcatalogReference = exports.makeSubcatalogItemVersion = exports.makeSubcatalogItemUpserted = exports.makeSubcatalogItemStatus = exports.makeSubcatalogItemDeleted = exports.makeSubcatalogItem = exports.makeSubcatalogForm = exports.makeSubcatalogDeleted = exports.makeSubcatalog = exports.makeStripeAuthorizationResultActionDetails = exports.makeStripeAuthenticationDataForm = exports.makeStripeAuthenticationData = exports.makeStreetAddress = exports.makeStrategy = exports.makeStatementUpserted = exports.makeStatementDeleted = void 0;
|
|
35
|
+
exports.makeTokenType = exports.makeTokenReference = exports.makeTokenRbacAuthenticationForm = exports.makeTokenPartnerReference = exports.makeTokenAuthenticationForm = exports.makeToken = exports.makeTimezone = exports.makeTierVersion = exports.makeTierUpsertedV2 = exports.makeTierSummary = exports.makeTierStrategy = exports.makeTierSettings = exports.makeTierRuleVersion = exports.makeTierRuleOutcomeForm = exports.makeTierRuleOutcome = exports.makeTierRuleForm = exports.makeTierRule = exports.makeTierReference = exports.makeTierForm = exports.makeTierEstimateType = exports.makeTierEstimate = exports.makeTierDisplayForm = exports.makeTierDisplay = exports.makeTierDeletedV2 = exports.makeTierAvailability = exports.makeTier = exports.makeThreedsTwoMethod = exports.makeThreedsTwoChallengeViewport = exports.makeThreedsTwoChallengeRequest = exports.makeThreedsIdentifyActionDetails = exports.makeThreedsIdentifyAction = exports.makeThreedsChallengeActionDetails = exports.makeThreedsChallengeAction = exports.makeThreeDSecureCode = exports.makeThreeDSecure = exports.makeThirdPartyLogisticsPartner = exports.makeTaxabilityValue = exports.makeTaxabilityType = exports.makeTaxVerificationResult = exports.makeTaxSetting = exports.makeTaxReportType = exports.makeTaxReport = exports.makeTaxRegistrationForm = exports.makeTaxRegistration = exports.makeTaxDutyQuoteValues = exports.makeTaxDutyQuoteSimpleShippingForm = exports.makeTaxDutyQuoteSimpleShipping = exports.makeTaxDutyQuoteSimpleLevyValue = exports.makeTaxDutyQuoteLineItemForm = exports.makeTaxDutyQuoteLineItem = void 0;
|
|
36
|
+
exports.makeVirtualCardRefund = exports.makeVirtualCardReference = exports.makeVirtualCardForm = exports.makeVirtualCardCaptureVersion = exports.makeVirtualCardCaptureUpserted = exports.makeVirtualCardCaptureDeleted = exports.makeVirtualCardCapture = exports.makeVirtualCard = exports.makeValueThresholdExceededDetails = exports.makeValueAddedService = exports.makeUserVersion = exports.makeUserStatus = exports.makeUserReference = exports.makeUserPutForm = exports.makeUserForm = exports.makeUser = exports.makeUpload = exports.makeUpdateType = exports.makeUpdatePolicy = exports.makeUnitOfTime = exports.makeUnitOfMeasurement = exports.makeUnharmonizedItemExportType = exports.makeTransitWindow = exports.makeTransitEstimate = exports.makeTransactionUpserted = exports.makeTransactionSource = exports.makeTransactionDeleted = exports.makeTransaction = exports.makeTradeAgreementStatus = exports.makeTradeAgreementName = exports.makeTradeAgreementDuty = exports.makeTradeAgreementCertifier = exports.makeTradeAgreement = exports.makeTrackingVersion = exports.makeTrackingSummary = exports.makeTrackingStatus = exports.makeTrackingNumberType = exports.makeTrackingLabelVersion = exports.makeTrackingLabelSummary = exports.makeTrackingLabelForm = exports.makeTrackingLabelEventUpserted = exports.makeTrackingLabel = exports.makeTrackingForm = exports.makeTrackingEventVersion = exports.makeTrackingEventSummary = exports.makeTrackingEventForm = exports.makeTrackingEvent = exports.makeTracking = exports.makeTokenValidationForm = exports.makeTokenValidation = void 0;
|
|
37
|
+
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = exports.makeWebhookReference = exports.makeWebhookForm = exports.makeWebhookDelivery = exports.makeWebhook = exports.makeVisibility = exports.makeVirtualCardVersion = exports.makeVirtualCardRefundVersion = exports.makeVirtualCardRefundUpserted = exports.makeVirtualCardRefundDeleted = void 0;
|
|
38
38
|
var faker_1 = __importDefault(require("@faker-js/faker"));
|
|
39
39
|
var arrayOf = function (f) {
|
|
40
40
|
var length = 3;
|
|
@@ -2380,6 +2380,7 @@ var factories = {
|
|
|
2380
2380
|
]); },
|
|
2381
2381
|
'io.flow.v0.enums.merchant_of_record': function () { return faker_1.default.random.arrayElement(['flow', 'organization']); },
|
|
2382
2382
|
'io.flow.v0.enums.method': function () { return faker_1.default.random.arrayElement(['post']); },
|
|
2383
|
+
'io.flow.v0.enums.onboarding_application_status': function () { return faker_1.default.random.arrayElement(['to_do', 'in_progress', 'on_hold', 'rejected', 'accepted']); },
|
|
2383
2384
|
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker_1.default.random.arrayElement([
|
|
2384
2385
|
'accessories',
|
|
2385
2386
|
'animals_and_pet_supplies',
|
|
@@ -3456,6 +3457,7 @@ var factories = {
|
|
|
3456
3457
|
}); },
|
|
3457
3458
|
'io.flow.v0.models.billing_channel_payment_request_reference': function () { return ({
|
|
3458
3459
|
id: factories.string(),
|
|
3460
|
+
reference: factories.string(),
|
|
3459
3461
|
}); },
|
|
3460
3462
|
'io.flow.v0.models.billing_channel_statement_reference': function () { return ({
|
|
3461
3463
|
id: factories.string(),
|
|
@@ -9741,6 +9743,7 @@ var factories = {
|
|
|
9741
9743
|
discriminator: 'shopify_merchant_application',
|
|
9742
9744
|
id: factories.string(),
|
|
9743
9745
|
organization_id: factories.string(),
|
|
9746
|
+
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
9744
9747
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
9745
9748
|
indirect_tax_number: factories.string(),
|
|
9746
9749
|
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
@@ -9790,6 +9793,10 @@ var factories = {
|
|
|
9790
9793
|
ratecard_id: factories.string(),
|
|
9791
9794
|
rate_card: factories.string(),
|
|
9792
9795
|
}); },
|
|
9796
|
+
'io.flow.v0.models.shopify_merchant_application_put_form': function () { return ({
|
|
9797
|
+
discriminator: 'shopify_merchant_application_put_form',
|
|
9798
|
+
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
9799
|
+
}); },
|
|
9793
9800
|
'io.flow.v0.models.shopify_order_attributes_form': function () { return ({
|
|
9794
9801
|
attributes: objectOf(function () { return factories.string(); }),
|
|
9795
9802
|
}); },
|
|
@@ -10486,7 +10493,6 @@ var factories = {
|
|
|
10486
10493
|
}); },
|
|
10487
10494
|
'io.flow.v0.models.transaction': function () { return ({
|
|
10488
10495
|
id: factories.string(),
|
|
10489
|
-
external_transaction_id: factories.string(),
|
|
10490
10496
|
order: factories['io.flow.v0.models.billing_channel_order_reference'](),
|
|
10491
10497
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
10492
10498
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
@@ -11228,6 +11234,12 @@ var factories = {
|
|
|
11228
11234
|
var f = faker_1.default.random.arrayElement([function () { return factories['io.flow.v0.models.shopify_merchant_application_form'](); }]);
|
|
11229
11235
|
return f();
|
|
11230
11236
|
},
|
|
11237
|
+
'io.flow.v0.unions.merchant_application_put_form': function () {
|
|
11238
|
+
var f = faker_1.default.random.arrayElement([
|
|
11239
|
+
function () { return factories['io.flow.v0.models.shopify_merchant_application_put_form'](); },
|
|
11240
|
+
]);
|
|
11241
|
+
return f();
|
|
11242
|
+
},
|
|
11231
11243
|
'io.flow.v0.unions.online_authorization_details': function () {
|
|
11232
11244
|
var f = faker_1.default.random.arrayElement([
|
|
11233
11245
|
function () { return factories['io.flow.v0.models.cryptopay_authorization_details'](); },
|
|
@@ -13075,6 +13087,8 @@ var makeMerchantApplication = function () { return factories['io.flow.v0.unions.
|
|
|
13075
13087
|
exports.makeMerchantApplication = makeMerchantApplication;
|
|
13076
13088
|
var makeMerchantApplicationForm = function () { return factories['io.flow.v0.unions.merchant_application_form'](); };
|
|
13077
13089
|
exports.makeMerchantApplicationForm = makeMerchantApplicationForm;
|
|
13090
|
+
var makeMerchantApplicationPutForm = function () { return factories['io.flow.v0.unions.merchant_application_put_form'](); };
|
|
13091
|
+
exports.makeMerchantApplicationPutForm = makeMerchantApplicationPutForm;
|
|
13078
13092
|
var makeMerchantGiftCardBalance = function () { return factories['io.flow.v0.models.merchant_gift_card_balance'](); };
|
|
13079
13093
|
exports.makeMerchantGiftCardBalance = makeMerchantGiftCardBalance;
|
|
13080
13094
|
var makeMerchantGiftCardBalanceForm = function () { return factories['io.flow.v0.models.merchant_gift_card_balance_form'](); };
|
|
@@ -13131,6 +13145,8 @@ var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.mode
|
|
|
13131
13145
|
exports.makeNotificationUpsertedV2 = makeNotificationUpsertedV2;
|
|
13132
13146
|
var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
13133
13147
|
exports.makeNumberRange = makeNumberRange;
|
|
13148
|
+
var makeOnboardingApplicationStatus = function () { return factories['io.flow.v0.enums.onboarding_application_status'](); };
|
|
13149
|
+
exports.makeOnboardingApplicationStatus = makeOnboardingApplicationStatus;
|
|
13134
13150
|
var makeOnboardingMerchantPickupWindow = function () { return factories['io.flow.v0.models.onboarding_merchant_pickup_window'](); };
|
|
13135
13151
|
exports.makeOnboardingMerchantPickupWindow = makeOnboardingMerchantPickupWindow;
|
|
13136
13152
|
var makeOnboardingMerchantScheduledPickup = function () { return factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup'](); };
|
|
@@ -14327,6 +14343,8 @@ var makeShopifyMerchantApplication = function () { return factories['io.flow.v0.
|
|
|
14327
14343
|
exports.makeShopifyMerchantApplication = makeShopifyMerchantApplication;
|
|
14328
14344
|
var makeShopifyMerchantApplicationForm = function () { return factories['io.flow.v0.models.shopify_merchant_application_form'](); };
|
|
14329
14345
|
exports.makeShopifyMerchantApplicationForm = makeShopifyMerchantApplicationForm;
|
|
14346
|
+
var makeShopifyMerchantApplicationPutForm = function () { return factories['io.flow.v0.models.shopify_merchant_application_put_form'](); };
|
|
14347
|
+
exports.makeShopifyMerchantApplicationPutForm = makeShopifyMerchantApplicationPutForm;
|
|
14330
14348
|
var makeShopifyOrderAttributesForm = function () { return factories['io.flow.v0.models.shopify_order_attributes_form'](); };
|
|
14331
14349
|
exports.makeShopifyOrderAttributesForm = makeShopifyOrderAttributesForm;
|
|
14332
14350
|
var makeShopifyOrderDeliveryMetafield = function () { return factories['io.flow.v0.models.shopify_order_delivery_metafield'](); };
|
package/dist/esm/api.js
CHANGED
|
@@ -2343,6 +2343,7 @@ var factories = {
|
|
|
2343
2343
|
]); },
|
|
2344
2344
|
'io.flow.v0.enums.merchant_of_record': function () { return faker.random.arrayElement(['flow', 'organization']); },
|
|
2345
2345
|
'io.flow.v0.enums.method': function () { return faker.random.arrayElement(['post']); },
|
|
2346
|
+
'io.flow.v0.enums.onboarding_application_status': function () { return faker.random.arrayElement(['to_do', 'in_progress', 'on_hold', 'rejected', 'accepted']); },
|
|
2346
2347
|
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.random.arrayElement([
|
|
2347
2348
|
'accessories',
|
|
2348
2349
|
'animals_and_pet_supplies',
|
|
@@ -3419,6 +3420,7 @@ var factories = {
|
|
|
3419
3420
|
}); },
|
|
3420
3421
|
'io.flow.v0.models.billing_channel_payment_request_reference': function () { return ({
|
|
3421
3422
|
id: factories.string(),
|
|
3423
|
+
reference: factories.string(),
|
|
3422
3424
|
}); },
|
|
3423
3425
|
'io.flow.v0.models.billing_channel_statement_reference': function () { return ({
|
|
3424
3426
|
id: factories.string(),
|
|
@@ -9704,6 +9706,7 @@ var factories = {
|
|
|
9704
9706
|
discriminator: 'shopify_merchant_application',
|
|
9705
9707
|
id: factories.string(),
|
|
9706
9708
|
organization_id: factories.string(),
|
|
9709
|
+
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
9707
9710
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
9708
9711
|
indirect_tax_number: factories.string(),
|
|
9709
9712
|
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
@@ -9753,6 +9756,10 @@ var factories = {
|
|
|
9753
9756
|
ratecard_id: factories.string(),
|
|
9754
9757
|
rate_card: factories.string(),
|
|
9755
9758
|
}); },
|
|
9759
|
+
'io.flow.v0.models.shopify_merchant_application_put_form': function () { return ({
|
|
9760
|
+
discriminator: 'shopify_merchant_application_put_form',
|
|
9761
|
+
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
9762
|
+
}); },
|
|
9756
9763
|
'io.flow.v0.models.shopify_order_attributes_form': function () { return ({
|
|
9757
9764
|
attributes: objectOf(function () { return factories.string(); }),
|
|
9758
9765
|
}); },
|
|
@@ -10449,7 +10456,6 @@ var factories = {
|
|
|
10449
10456
|
}); },
|
|
10450
10457
|
'io.flow.v0.models.transaction': function () { return ({
|
|
10451
10458
|
id: factories.string(),
|
|
10452
|
-
external_transaction_id: factories.string(),
|
|
10453
10459
|
order: factories['io.flow.v0.models.billing_channel_order_reference'](),
|
|
10454
10460
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
10455
10461
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
@@ -11191,6 +11197,12 @@ var factories = {
|
|
|
11191
11197
|
var f = faker.random.arrayElement([function () { return factories['io.flow.v0.models.shopify_merchant_application_form'](); }]);
|
|
11192
11198
|
return f();
|
|
11193
11199
|
},
|
|
11200
|
+
'io.flow.v0.unions.merchant_application_put_form': function () {
|
|
11201
|
+
var f = faker.random.arrayElement([
|
|
11202
|
+
function () { return factories['io.flow.v0.models.shopify_merchant_application_put_form'](); },
|
|
11203
|
+
]);
|
|
11204
|
+
return f();
|
|
11205
|
+
},
|
|
11194
11206
|
'io.flow.v0.unions.online_authorization_details': function () {
|
|
11195
11207
|
var f = faker.random.arrayElement([
|
|
11196
11208
|
function () { return factories['io.flow.v0.models.cryptopay_authorization_details'](); },
|
|
@@ -12287,6 +12299,7 @@ export var makeMembershipUpsertedV2 = function () { return factories['io.flow.v0
|
|
|
12287
12299
|
export var makeMembershipVersion = function () { return factories['io.flow.v0.models.membership_version'](); };
|
|
12288
12300
|
export var makeMerchantApplication = function () { return factories['io.flow.v0.unions.merchant_application'](); };
|
|
12289
12301
|
export var makeMerchantApplicationForm = function () { return factories['io.flow.v0.unions.merchant_application_form'](); };
|
|
12302
|
+
export var makeMerchantApplicationPutForm = function () { return factories['io.flow.v0.unions.merchant_application_put_form'](); };
|
|
12290
12303
|
export var makeMerchantGiftCardBalance = function () { return factories['io.flow.v0.models.merchant_gift_card_balance'](); };
|
|
12291
12304
|
export var makeMerchantGiftCardBalanceForm = function () { return factories['io.flow.v0.models.merchant_gift_card_balance_form'](); };
|
|
12292
12305
|
export var makeMerchantGiftCardError = function () { return factories['io.flow.v0.models.merchant_gift_card_error'](); };
|
|
@@ -12315,6 +12328,7 @@ export var makeNoInventoryReservationErrorItem = function () { return factories[
|
|
|
12315
12328
|
export var makeNotificationDeletedV2 = function () { return factories['io.flow.v0.models.notification_deleted_v2'](); };
|
|
12316
12329
|
export var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.models.notification_upserted_v2'](); };
|
|
12317
12330
|
export var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
12331
|
+
export var makeOnboardingApplicationStatus = function () { return factories['io.flow.v0.enums.onboarding_application_status'](); };
|
|
12318
12332
|
export var makeOnboardingMerchantPickupWindow = function () { return factories['io.flow.v0.models.onboarding_merchant_pickup_window'](); };
|
|
12319
12333
|
export var makeOnboardingMerchantScheduledPickup = function () { return factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup'](); };
|
|
12320
12334
|
export var makeOnboardingMerchantTime = function () { return factories['io.flow.v0.models.onboarding_merchant_time'](); };
|
|
@@ -12913,6 +12927,7 @@ export var makeShopifyLocationFlowCenterMappingForm = function () { return facto
|
|
|
12913
12927
|
export var makeShopifyLocationReference = function () { return factories['io.flow.v0.models.shopify_location_reference'](); };
|
|
12914
12928
|
export var makeShopifyMerchantApplication = function () { return factories['io.flow.v0.models.shopify_merchant_application'](); };
|
|
12915
12929
|
export var makeShopifyMerchantApplicationForm = function () { return factories['io.flow.v0.models.shopify_merchant_application_form'](); };
|
|
12930
|
+
export var makeShopifyMerchantApplicationPutForm = function () { return factories['io.flow.v0.models.shopify_merchant_application_put_form'](); };
|
|
12916
12931
|
export var makeShopifyOrderAttributesForm = function () { return factories['io.flow.v0.models.shopify_order_attributes_form'](); };
|
|
12917
12932
|
export var makeShopifyOrderDeliveryMetafield = function () { return factories['io.flow.v0.models.shopify_order_delivery_metafield'](); };
|
|
12918
12933
|
export var makeShopifyOrderDeliveryMetafieldItem = function () { return factories['io.flow.v0.models.shopify_order_delivery_metafield_item'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -750,6 +750,7 @@ export declare const makeMembershipUpsertedV2: () => io.flow.v0.models.Membershi
|
|
|
750
750
|
export declare const makeMembershipVersion: () => io.flow.v0.models.MembershipVersion;
|
|
751
751
|
export declare const makeMerchantApplication: () => io.flow.v0.models.ShopifyMerchantApplication;
|
|
752
752
|
export declare const makeMerchantApplicationForm: () => io.flow.v0.models.ShopifyMerchantApplicationForm;
|
|
753
|
+
export declare const makeMerchantApplicationPutForm: () => io.flow.v0.models.ShopifyMerchantApplicationPutForm;
|
|
753
754
|
export declare const makeMerchantGiftCardBalance: () => io.flow.v0.models.MerchantGiftCardBalance;
|
|
754
755
|
export declare const makeMerchantGiftCardBalanceForm: () => io.flow.v0.models.MerchantGiftCardBalanceForm;
|
|
755
756
|
export declare const makeMerchantGiftCardError: () => io.flow.v0.models.MerchantGiftCardError;
|
|
@@ -778,6 +779,7 @@ export declare const makeNoInventoryReservationErrorItem: () => io.flow.v0.model
|
|
|
778
779
|
export declare const makeNotificationDeletedV2: () => io.flow.v0.models.NotificationDeletedV2;
|
|
779
780
|
export declare const makeNotificationUpsertedV2: () => io.flow.v0.models.NotificationUpsertedV2;
|
|
780
781
|
export declare const makeNumberRange: () => io.flow.v0.models.NumberRange;
|
|
782
|
+
export declare const makeOnboardingApplicationStatus: () => io.flow.v0.enums.OnboardingApplicationStatus;
|
|
781
783
|
export declare const makeOnboardingMerchantPickupWindow: () => io.flow.v0.models.OnboardingMerchantPickupWindow;
|
|
782
784
|
export declare const makeOnboardingMerchantScheduledPickup: () => io.flow.v0.models.OnboardingMerchantScheduledPickup;
|
|
783
785
|
export declare const makeOnboardingMerchantTime: () => io.flow.v0.models.OnboardingMerchantTime;
|
|
@@ -1376,6 +1378,7 @@ export declare const makeShopifyLocationFlowCenterMappingForm: () => io.flow.v0.
|
|
|
1376
1378
|
export declare const makeShopifyLocationReference: () => io.flow.v0.models.ShopifyLocationReference;
|
|
1377
1379
|
export declare const makeShopifyMerchantApplication: () => io.flow.v0.models.ShopifyMerchantApplication;
|
|
1378
1380
|
export declare const makeShopifyMerchantApplicationForm: () => io.flow.v0.models.ShopifyMerchantApplicationForm;
|
|
1381
|
+
export declare const makeShopifyMerchantApplicationPutForm: () => io.flow.v0.models.ShopifyMerchantApplicationPutForm;
|
|
1379
1382
|
export declare const makeShopifyOrderAttributesForm: () => io.flow.v0.models.ShopifyOrderAttributesForm;
|
|
1380
1383
|
export declare const makeShopifyOrderDeliveryMetafield: () => io.flow.v0.models.ShopifyOrderDeliveryMetafield;
|
|
1381
1384
|
export declare const makeShopifyOrderDeliveryMetafieldItem: () => io.flow.v0.models.ShopifyOrderDeliveryMetafieldItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "file:../api-types"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "5e6ef8a81693add34f418c62ddd07ac7bfc2b360"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -2674,6 +2674,7 @@ const factories = {
|
|
|
2674
2674
|
|
|
2675
2675
|
'io.flow.v0.enums.merchant_of_record': (): io.flow.v0.enums.MerchantOfRecord => faker.random.arrayElement(['flow', 'organization']),
|
|
2676
2676
|
'io.flow.v0.enums.method': (): io.flow.v0.enums.Method => faker.random.arrayElement(['post']),
|
|
2677
|
+
'io.flow.v0.enums.onboarding_application_status': (): io.flow.v0.enums.OnboardingApplicationStatus => faker.random.arrayElement(['to_do', 'in_progress', 'on_hold', 'rejected', 'accepted']),
|
|
2677
2678
|
|
|
2678
2679
|
'io.flow.v0.enums.onboarding_trade_sector': (): io.flow.v0.enums.OnboardingTradeSector => faker.random.arrayElement([
|
|
2679
2680
|
'accessories',
|
|
@@ -3890,6 +3891,7 @@ const factories = {
|
|
|
3890
3891
|
|
|
3891
3892
|
'io.flow.v0.models.billing_channel_payment_request_reference': (): io.flow.v0.models.BillingChannelPaymentRequestReference => ({
|
|
3892
3893
|
id: factories.string(),
|
|
3894
|
+
reference: factories.string(),
|
|
3893
3895
|
}),
|
|
3894
3896
|
|
|
3895
3897
|
'io.flow.v0.models.billing_channel_statement_reference': (): io.flow.v0.models.BillingChannelStatementReference => ({
|
|
@@ -11211,6 +11213,7 @@ const factories = {
|
|
|
11211
11213
|
discriminator: 'shopify_merchant_application',
|
|
11212
11214
|
id: factories.string(),
|
|
11213
11215
|
organization_id: factories.string(),
|
|
11216
|
+
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
11214
11217
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
11215
11218
|
indirect_tax_number: factories.string(),
|
|
11216
11219
|
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
@@ -11262,6 +11265,11 @@ const factories = {
|
|
|
11262
11265
|
rate_card: factories.string(),
|
|
11263
11266
|
}),
|
|
11264
11267
|
|
|
11268
|
+
'io.flow.v0.models.shopify_merchant_application_put_form': (): io.flow.v0.models.ShopifyMerchantApplicationPutForm => ({
|
|
11269
|
+
discriminator: 'shopify_merchant_application_put_form',
|
|
11270
|
+
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
11271
|
+
}),
|
|
11272
|
+
|
|
11265
11273
|
'io.flow.v0.models.shopify_order_attributes_form': (): io.flow.v0.models.ShopifyOrderAttributesForm => ({
|
|
11266
11274
|
attributes: objectOf(() => factories.string()),
|
|
11267
11275
|
}),
|
|
@@ -12076,7 +12084,6 @@ const factories = {
|
|
|
12076
12084
|
|
|
12077
12085
|
'io.flow.v0.models.transaction': (): io.flow.v0.models.Transaction => ({
|
|
12078
12086
|
id: factories.string(),
|
|
12079
|
-
external_transaction_id: factories.string(),
|
|
12080
12087
|
order: factories['io.flow.v0.models.billing_channel_order_reference'](),
|
|
12081
12088
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
12082
12089
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
@@ -12944,6 +12951,14 @@ const factories = {
|
|
|
12944
12951
|
return f();
|
|
12945
12952
|
},
|
|
12946
12953
|
|
|
12954
|
+
'io.flow.v0.unions.merchant_application_put_form': (): io.flow.v0.unions.MerchantApplicationPutForm => {
|
|
12955
|
+
const f = faker.random.arrayElement([
|
|
12956
|
+
() => factories['io.flow.v0.models.shopify_merchant_application_put_form'](),
|
|
12957
|
+
]);
|
|
12958
|
+
|
|
12959
|
+
return f();
|
|
12960
|
+
},
|
|
12961
|
+
|
|
12947
12962
|
'io.flow.v0.unions.online_authorization_details': (): io.flow.v0.unions.OnlineAuthorizationDetails => {
|
|
12948
12963
|
const f = faker.random.arrayElement([
|
|
12949
12964
|
() => factories['io.flow.v0.models.cryptopay_authorization_details'](),
|
|
@@ -14129,6 +14144,7 @@ export const makeMembershipUpsertedV2 = () => factories['io.flow.v0.models.membe
|
|
|
14129
14144
|
export const makeMembershipVersion = () => factories['io.flow.v0.models.membership_version']();
|
|
14130
14145
|
export const makeMerchantApplication = () => factories['io.flow.v0.unions.merchant_application']();
|
|
14131
14146
|
export const makeMerchantApplicationForm = () => factories['io.flow.v0.unions.merchant_application_form']();
|
|
14147
|
+
export const makeMerchantApplicationPutForm = () => factories['io.flow.v0.unions.merchant_application_put_form']();
|
|
14132
14148
|
export const makeMerchantGiftCardBalance = () => factories['io.flow.v0.models.merchant_gift_card_balance']();
|
|
14133
14149
|
export const makeMerchantGiftCardBalanceForm = () => factories['io.flow.v0.models.merchant_gift_card_balance_form']();
|
|
14134
14150
|
export const makeMerchantGiftCardError = () => factories['io.flow.v0.models.merchant_gift_card_error']();
|
|
@@ -14157,6 +14173,7 @@ export const makeNoInventoryReservationErrorItem = () => factories['io.flow.v0.m
|
|
|
14157
14173
|
export const makeNotificationDeletedV2 = () => factories['io.flow.v0.models.notification_deleted_v2']();
|
|
14158
14174
|
export const makeNotificationUpsertedV2 = () => factories['io.flow.v0.models.notification_upserted_v2']();
|
|
14159
14175
|
export const makeNumberRange = () => factories['io.flow.v0.models.number_range']();
|
|
14176
|
+
export const makeOnboardingApplicationStatus = () => factories['io.flow.v0.enums.onboarding_application_status']();
|
|
14160
14177
|
export const makeOnboardingMerchantPickupWindow = () => factories['io.flow.v0.models.onboarding_merchant_pickup_window']();
|
|
14161
14178
|
export const makeOnboardingMerchantScheduledPickup = () => factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup']();
|
|
14162
14179
|
export const makeOnboardingMerchantTime = () => factories['io.flow.v0.models.onboarding_merchant_time']();
|
|
@@ -14755,6 +14772,7 @@ export const makeShopifyLocationFlowCenterMappingForm = () => factories['io.flow
|
|
|
14755
14772
|
export const makeShopifyLocationReference = () => factories['io.flow.v0.models.shopify_location_reference']();
|
|
14756
14773
|
export const makeShopifyMerchantApplication = () => factories['io.flow.v0.models.shopify_merchant_application']();
|
|
14757
14774
|
export const makeShopifyMerchantApplicationForm = () => factories['io.flow.v0.models.shopify_merchant_application_form']();
|
|
14775
|
+
export const makeShopifyMerchantApplicationPutForm = () => factories['io.flow.v0.models.shopify_merchant_application_put_form']();
|
|
14758
14776
|
export const makeShopifyOrderAttributesForm = () => factories['io.flow.v0.models.shopify_order_attributes_form']();
|
|
14759
14777
|
export const makeShopifyOrderDeliveryMetafield = () => factories['io.flow.v0.models.shopify_order_delivery_metafield']();
|
|
14760
14778
|
export const makeShopifyOrderDeliveryMetafieldItem = () => factories['io.flow.v0.models.shopify_order_delivery_metafield_item']();
|