@ominity/api-typescript 1.4.2 → 1.4.4
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/commonjs/funcs/cms/componentFields.d.ts +5 -0
- package/dist/commonjs/funcs/cms/componentFields.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/componentFields.js +43 -0
- package/dist/commonjs/funcs/cms/componentFields.js.map +1 -0
- package/dist/commonjs/funcs/cms/index.d.ts +3 -0
- package/dist/commonjs/funcs/cms/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/cms/index.js +3 -0
- package/dist/commonjs/funcs/cms/index.js.map +1 -1
- package/dist/commonjs/funcs/cms/pageComponents.d.ts +5 -0
- package/dist/commonjs/funcs/cms/pageComponents.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/pageComponents.js +43 -0
- package/dist/commonjs/funcs/cms/pageComponents.js.map +1 -0
- package/dist/commonjs/funcs/cms/routes.d.ts +5 -0
- package/dist/commonjs/funcs/cms/routes.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/routes.js +43 -0
- package/dist/commonjs/funcs/cms/routes.js.map +1 -0
- package/dist/commonjs/funcs/commerce/cartShippingMethods.d.ts +4 -0
- package/dist/commonjs/funcs/commerce/cartShippingMethods.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/cartShippingMethods.js +41 -0
- package/dist/commonjs/funcs/commerce/cartShippingMethods.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerAddresses.d.ts +8 -0
- package/dist/commonjs/funcs/commerce/customerAddresses.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerAddresses.js +49 -0
- package/dist/commonjs/funcs/commerce/customerAddresses.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerGroups.d.ts +5 -0
- package/dist/commonjs/funcs/commerce/customerGroups.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerGroups.js +43 -0
- package/dist/commonjs/funcs/commerce/customerGroups.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerInvoices.d.ts +6 -0
- package/dist/commonjs/funcs/commerce/customerInvoices.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerInvoices.js +45 -0
- package/dist/commonjs/funcs/commerce/customerInvoices.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerMandates.d.ts +8 -0
- package/dist/commonjs/funcs/commerce/customerMandates.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerMandates.js +49 -0
- package/dist/commonjs/funcs/commerce/customerMandates.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerOrders.d.ts +8 -0
- package/dist/commonjs/funcs/commerce/customerOrders.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerOrders.js +49 -0
- package/dist/commonjs/funcs/commerce/customerOrders.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerPayments.d.ts +7 -0
- package/dist/commonjs/funcs/commerce/customerPayments.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerPayments.js +47 -0
- package/dist/commonjs/funcs/commerce/customerPayments.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customerSubscriptions.d.ts +11 -0
- package/dist/commonjs/funcs/commerce/customerSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customerSubscriptions.js +55 -0
- package/dist/commonjs/funcs/commerce/customerSubscriptions.js.map +1 -0
- package/dist/commonjs/funcs/commerce/customers.d.ts +7 -0
- package/dist/commonjs/funcs/commerce/customers.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/customers.js +55 -0
- package/dist/commonjs/funcs/commerce/customers.js.map +1 -0
- package/dist/commonjs/funcs/commerce/index.d.ts +13 -0
- package/dist/commonjs/funcs/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/commerce/index.js +13 -0
- package/dist/commonjs/funcs/commerce/index.js.map +1 -1
- package/dist/commonjs/funcs/commerce/invoicesMutations.d.ts +6 -0
- package/dist/commonjs/funcs/commerce/invoicesMutations.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/invoicesMutations.js +45 -0
- package/dist/commonjs/funcs/commerce/invoicesMutations.js.map +1 -0
- package/dist/commonjs/funcs/commerce/paymentsMutations.d.ts +7 -0
- package/dist/commonjs/funcs/commerce/paymentsMutations.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/paymentsMutations.js +47 -0
- package/dist/commonjs/funcs/commerce/paymentsMutations.js.map +1 -0
- package/dist/commonjs/funcs/commerce/productsOfferGet.d.ts +4 -0
- package/dist/commonjs/funcs/commerce/productsOfferGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/productsOfferGet.js +41 -0
- package/dist/commonjs/funcs/commerce/productsOfferGet.js.map +1 -0
- package/dist/commonjs/funcs/commerce/shippingClasses.d.ts +5 -0
- package/dist/commonjs/funcs/commerce/shippingClasses.d.ts.map +1 -0
- package/dist/commonjs/funcs/commerce/shippingClasses.js +43 -0
- package/dist/commonjs/funcs/commerce/shippingClasses.js.map +1 -0
- package/dist/commonjs/funcs/commerce/subscriptionIntervalsGet.js +1 -1
- package/dist/commonjs/funcs/commerce/subscriptionIntervalsGet.js.map +1 -1
- package/dist/commonjs/funcs/commerce/subscriptionIntervalsList.js +1 -1
- package/dist/commonjs/funcs/commerce/subscriptionIntervalsList.js.map +1 -1
- package/dist/commonjs/funcs/commerce/vatValidationsGet.js +1 -1
- package/dist/commonjs/funcs/commerce/vatValidationsGet.js.map +1 -1
- package/dist/commonjs/funcs/index.d.ts +18 -0
- package/dist/commonjs/funcs/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/index.js +18 -0
- package/dist/commonjs/funcs/index.js.map +1 -1
- package/dist/commonjs/funcs/mediaLibrary.d.ts +13 -0
- package/dist/commonjs/funcs/mediaLibrary.d.ts.map +1 -0
- package/dist/commonjs/funcs/mediaLibrary.js +59 -0
- package/dist/commonjs/funcs/mediaLibrary.js.map +1 -0
- package/dist/commonjs/funcs/settings/configuredLanguages.d.ts +4 -0
- package/dist/commonjs/funcs/settings/configuredLanguages.d.ts.map +1 -0
- package/dist/commonjs/funcs/settings/configuredLanguages.js +41 -0
- package/dist/commonjs/funcs/settings/configuredLanguages.js.map +1 -0
- package/dist/commonjs/funcs/settings/customerGroups.d.ts +5 -0
- package/dist/commonjs/funcs/settings/customerGroups.d.ts.map +1 -0
- package/dist/commonjs/funcs/settings/customerGroups.js +43 -0
- package/dist/commonjs/funcs/settings/customerGroups.js.map +1 -0
- package/dist/commonjs/funcs/settings/index.d.ts +3 -0
- package/dist/commonjs/funcs/settings/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/settings/index.js +3 -0
- package/dist/commonjs/funcs/settings/index.js.map +1 -1
- package/dist/commonjs/funcs/settings/paymentMethodIssuers.d.ts +5 -0
- package/dist/commonjs/funcs/settings/paymentMethodIssuers.d.ts.map +1 -0
- package/dist/commonjs/funcs/settings/paymentMethodIssuers.js +43 -0
- package/dist/commonjs/funcs/settings/paymentMethodIssuers.js.map +1 -0
- package/dist/commonjs/funcs/translations.d.ts +4 -0
- package/dist/commonjs/funcs/translations.d.ts.map +1 -0
- package/dist/commonjs/funcs/translations.js +41 -0
- package/dist/commonjs/funcs/translations.js.map +1 -0
- package/dist/commonjs/funcs/users/usersIssueToken.js +1 -3
- package/dist/commonjs/funcs/users/usersIssueToken.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +2 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +1 -1
- package/dist/commonjs/lib/operation.d.ts +34 -0
- package/dist/commonjs/lib/operation.d.ts.map +1 -0
- package/dist/commonjs/lib/operation.js +166 -0
- package/dist/commonjs/lib/operation.js.map +1 -0
- package/dist/commonjs/models/cms/component-field.d.ts +27 -0
- package/dist/commonjs/models/cms/component-field.d.ts.map +1 -0
- package/dist/commonjs/models/cms/component-field.js +62 -0
- package/dist/commonjs/models/cms/component-field.js.map +1 -0
- package/dist/commonjs/models/cms/component.d.ts +2 -2
- package/dist/commonjs/models/cms/component.d.ts.map +1 -1
- package/dist/commonjs/models/cms/component.js +4 -6
- package/dist/commonjs/models/cms/component.js.map +1 -1
- package/dist/commonjs/models/cms/index.d.ts +2 -0
- package/dist/commonjs/models/cms/index.d.ts.map +1 -1
- package/dist/commonjs/models/cms/index.js +2 -0
- package/dist/commonjs/models/cms/index.js.map +1 -1
- package/dist/commonjs/models/cms/page-component-field.d.ts +17 -0
- package/dist/commonjs/models/cms/page-component-field.d.ts.map +1 -0
- package/dist/commonjs/models/cms/page-component-field.js +53 -0
- package/dist/commonjs/models/cms/page-component-field.js.map +1 -0
- package/dist/commonjs/models/cms/page-component.d.ts +5 -3
- package/dist/commonjs/models/cms/page-component.d.ts.map +1 -1
- package/dist/commonjs/models/cms/page-component.js +7 -7
- package/dist/commonjs/models/cms/page-component.js.map +1 -1
- package/dist/commonjs/models/commerce/address.d.ts +26 -3
- package/dist/commonjs/models/commerce/address.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/address.js +19 -5
- package/dist/commonjs/models/commerce/address.js.map +1 -1
- package/dist/commonjs/models/commerce/customer-group.d.ts +16 -0
- package/dist/commonjs/models/commerce/customer-group.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/customer-group.js +52 -0
- package/dist/commonjs/models/commerce/customer-group.js.map +1 -0
- package/dist/commonjs/models/commerce/customer.d.ts +9 -2
- package/dist/commonjs/models/commerce/customer.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/customer.js +9 -2
- package/dist/commonjs/models/commerce/customer.js.map +1 -1
- package/dist/commonjs/models/commerce/index.d.ts +4 -0
- package/dist/commonjs/models/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/index.js +4 -0
- package/dist/commonjs/models/commerce/index.js.map +1 -1
- package/dist/commonjs/models/commerce/invoice.d.ts +6 -6
- package/dist/commonjs/models/commerce/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/invoice.js +6 -6
- package/dist/commonjs/models/commerce/invoice.js.map +1 -1
- package/dist/commonjs/models/commerce/mandate.d.ts +30 -0
- package/dist/commonjs/models/commerce/mandate.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/mandate.js +65 -0
- package/dist/commonjs/models/commerce/mandate.js.map +1 -0
- package/dist/commonjs/models/commerce/order.d.ts +4 -4
- package/dist/commonjs/models/commerce/order.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/order.js +4 -4
- package/dist/commonjs/models/commerce/order.js.map +1 -1
- package/dist/commonjs/models/commerce/payment.d.ts +4 -2
- package/dist/commonjs/models/commerce/payment.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/payment.js +4 -2
- package/dist/commonjs/models/commerce/payment.js.map +1 -1
- package/dist/commonjs/models/commerce/product.d.ts +4 -4
- package/dist/commonjs/models/commerce/product.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/product.js +7 -4
- package/dist/commonjs/models/commerce/product.js.map +1 -1
- package/dist/commonjs/models/commerce/shipping-class.d.ts +14 -0
- package/dist/commonjs/models/commerce/shipping-class.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/shipping-class.js +50 -0
- package/dist/commonjs/models/commerce/shipping-class.js.map +1 -0
- package/dist/commonjs/models/commerce/shipping-method.d.ts +23 -14
- package/dist/commonjs/models/commerce/shipping-method.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/shipping-method.js +26 -24
- package/dist/commonjs/models/commerce/shipping-method.js.map +1 -1
- package/dist/commonjs/models/commerce/shipping-zone.d.ts +7 -36
- package/dist/commonjs/models/commerce/shipping-zone.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/shipping-zone.js +10 -68
- package/dist/commonjs/models/commerce/shipping-zone.js.map +1 -1
- package/dist/commonjs/models/commerce/subscription.d.ts +34 -0
- package/dist/commonjs/models/commerce/subscription.d.ts.map +1 -0
- package/dist/commonjs/models/commerce/subscription.js +78 -0
- package/dist/commonjs/models/commerce/subscription.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/media-library.d.ts +43 -0
- package/dist/commonjs/models/media-library.d.ts.map +1 -0
- package/dist/commonjs/models/media-library.js +83 -0
- package/dist/commonjs/models/media-library.js.map +1 -0
- package/dist/commonjs/models/operations/cms-components.d.ts +18 -0
- package/dist/commonjs/models/operations/cms-components.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cms-components.js +8 -1
- package/dist/commonjs/models/operations/cms-components.js.map +1 -1
- package/dist/commonjs/models/operations/cms-pages.d.ts +16 -0
- package/dist/commonjs/models/operations/cms-pages.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cms-pages.js +6 -1
- package/dist/commonjs/models/operations/cms-pages.js.map +1 -1
- package/dist/commonjs/models/operations/cms-routes.d.ts +15 -0
- package/dist/commonjs/models/operations/cms-routes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/cms-routes.js +44 -0
- package/dist/commonjs/models/operations/cms-routes.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-carts.d.ts +10 -0
- package/dist/commonjs/models/operations/commerce-carts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/commerce-carts.js +12 -1
- package/dist/commonjs/models/operations/commerce-carts.js.map +1 -1
- package/dist/commonjs/models/operations/commerce-customer-addresses.d.ts +54 -0
- package/dist/commonjs/models/operations/commerce-customer-addresses.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-addresses.js +54 -0
- package/dist/commonjs/models/operations/commerce-customer-addresses.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-groups.d.ts +19 -0
- package/dist/commonjs/models/operations/commerce-customer-groups.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-groups.js +44 -0
- package/dist/commonjs/models/operations/commerce-customer-groups.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-invoices.d.ts +26 -0
- package/dist/commonjs/models/operations/commerce-customer-invoices.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-invoices.js +46 -0
- package/dist/commonjs/models/operations/commerce-customer-invoices.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-mandates.d.ts +40 -0
- package/dist/commonjs/models/operations/commerce-customer-mandates.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-mandates.js +50 -0
- package/dist/commonjs/models/operations/commerce-customer-mandates.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-orders.d.ts +41 -0
- package/dist/commonjs/models/operations/commerce-customer-orders.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-orders.js +50 -0
- package/dist/commonjs/models/operations/commerce-customer-orders.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-payments.d.ts +62 -0
- package/dist/commonjs/models/operations/commerce-customer-payments.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-payments.js +54 -0
- package/dist/commonjs/models/operations/commerce-customer-payments.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-subscriptions.d.ts +68 -0
- package/dist/commonjs/models/operations/commerce-customer-subscriptions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customer-subscriptions.js +57 -0
- package/dist/commonjs/models/operations/commerce-customer-subscriptions.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-customers.d.ts +64 -0
- package/dist/commonjs/models/operations/commerce-customers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-customers.js +60 -0
- package/dist/commonjs/models/operations/commerce-customers.js.map +1 -0
- package/dist/commonjs/models/operations/commerce-invoices.d.ts +19 -0
- package/dist/commonjs/models/operations/commerce-invoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/commerce-invoices.js +7 -1
- package/dist/commonjs/models/operations/commerce-invoices.js.map +1 -1
- package/dist/commonjs/models/operations/commerce-payments.d.ts +22 -0
- package/dist/commonjs/models/operations/commerce-payments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/commerce-payments.js +11 -1
- package/dist/commonjs/models/operations/commerce-payments.js.map +1 -1
- package/dist/commonjs/models/operations/commerce-products.d.ts +7 -0
- package/dist/commonjs/models/operations/commerce-products.d.ts.map +1 -1
- package/dist/commonjs/models/operations/commerce-products.js +3 -1
- package/dist/commonjs/models/operations/commerce-products.js.map +1 -1
- package/dist/commonjs/models/operations/commerce-shipping-classes.d.ts +15 -0
- package/dist/commonjs/models/operations/commerce-shipping-classes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/commerce-shipping-classes.js +44 -0
- package/dist/commonjs/models/operations/commerce-shipping-classes.js.map +1 -0
- package/dist/commonjs/models/operations/helpers.d.ts +20 -0
- package/dist/commonjs/models/operations/helpers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/helpers.js +68 -0
- package/dist/commonjs/models/operations/helpers.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +15 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +15 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/media-library.d.ts +92 -0
- package/dist/commonjs/models/operations/media-library.d.ts.map +1 -0
- package/dist/commonjs/models/operations/media-library.js +60 -0
- package/dist/commonjs/models/operations/media-library.js.map +1 -0
- package/dist/commonjs/models/operations/settings-customer-groups.d.ts +16 -0
- package/dist/commonjs/models/operations/settings-customer-groups.d.ts.map +1 -0
- package/dist/commonjs/models/operations/settings-customer-groups.js +44 -0
- package/dist/commonjs/models/operations/settings-customer-groups.js.map +1 -0
- package/dist/commonjs/models/operations/settings-languages.d.ts +12 -0
- package/dist/commonjs/models/operations/settings-languages.d.ts.map +1 -0
- package/dist/commonjs/models/operations/settings-languages.js +42 -0
- package/dist/commonjs/models/operations/settings-languages.js.map +1 -0
- package/dist/commonjs/models/operations/settings-payment-method-issuers.d.ts +18 -0
- package/dist/commonjs/models/operations/settings-payment-method-issuers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/settings-payment-method-issuers.js +44 -0
- package/dist/commonjs/models/operations/settings-payment-method-issuers.js.map +1 -0
- package/dist/commonjs/models/operations/translations.d.ts +22 -0
- package/dist/commonjs/models/operations/translations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/translations.js +42 -0
- package/dist/commonjs/models/operations/translations.js.map +1 -0
- package/dist/commonjs/models/settings/configured-language.d.ts +12 -0
- package/dist/commonjs/models/settings/configured-language.d.ts.map +1 -0
- package/dist/commonjs/models/settings/configured-language.js +47 -0
- package/dist/commonjs/models/settings/configured-language.js.map +1 -0
- package/dist/commonjs/models/settings/index.d.ts +2 -0
- package/dist/commonjs/models/settings/index.d.ts.map +1 -1
- package/dist/commonjs/models/settings/index.js +2 -0
- package/dist/commonjs/models/settings/index.js.map +1 -1
- package/dist/commonjs/models/settings/payment-method-issuer.d.ts +17 -0
- package/dist/commonjs/models/settings/payment-method-issuer.d.ts.map +1 -0
- package/dist/commonjs/models/settings/payment-method-issuer.js +53 -0
- package/dist/commonjs/models/settings/payment-method-issuer.js.map +1 -0
- package/dist/commonjs/sdk/cms/components.d.ts +2 -0
- package/dist/commonjs/sdk/cms/components.d.ts.map +1 -1
- package/dist/commonjs/sdk/cms/components.js +7 -0
- package/dist/commonjs/sdk/cms/components.js.map +1 -1
- package/dist/commonjs/sdk/cms/index.d.ts +4 -0
- package/dist/commonjs/sdk/cms/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/cms/index.js +6 -1
- package/dist/commonjs/sdk/cms/index.js.map +1 -1
- package/dist/commonjs/sdk/cms/pages.d.ts +2 -0
- package/dist/commonjs/sdk/cms/pages.d.ts.map +1 -1
- package/dist/commonjs/sdk/cms/pages.js +7 -0
- package/dist/commonjs/sdk/cms/pages.js.map +1 -1
- package/dist/commonjs/sdk/cms/routes.d.ts +7 -0
- package/dist/commonjs/sdk/cms/routes.d.ts.map +1 -0
- package/dist/commonjs/sdk/cms/routes.js +12 -0
- package/dist/commonjs/sdk/cms/routes.js.map +1 -0
- package/dist/commonjs/sdk/commerce/carts.d.ts +1 -0
- package/dist/commonjs/sdk/commerce/carts.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/carts.js +4 -0
- package/dist/commonjs/sdk/commerce/carts.js.map +1 -1
- package/dist/commonjs/sdk/commerce/customer-addresses.d.ts +10 -0
- package/dist/commonjs/sdk/commerce/customer-addresses.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-addresses.js +15 -0
- package/dist/commonjs/sdk/commerce/customer-addresses.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-groups.d.ts +7 -0
- package/dist/commonjs/sdk/commerce/customer-groups.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-groups.js +12 -0
- package/dist/commonjs/sdk/commerce/customer-groups.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-invoices.d.ts +8 -0
- package/dist/commonjs/sdk/commerce/customer-invoices.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-invoices.js +13 -0
- package/dist/commonjs/sdk/commerce/customer-invoices.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-mandates.d.ts +10 -0
- package/dist/commonjs/sdk/commerce/customer-mandates.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-mandates.js +15 -0
- package/dist/commonjs/sdk/commerce/customer-mandates.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-orders.d.ts +10 -0
- package/dist/commonjs/sdk/commerce/customer-orders.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-orders.js +15 -0
- package/dist/commonjs/sdk/commerce/customer-orders.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-payments.d.ts +9 -0
- package/dist/commonjs/sdk/commerce/customer-payments.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-payments.js +14 -0
- package/dist/commonjs/sdk/commerce/customer-payments.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-subscriptions.d.ts +13 -0
- package/dist/commonjs/sdk/commerce/customer-subscriptions.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customer-subscriptions.js +18 -0
- package/dist/commonjs/sdk/commerce/customer-subscriptions.js.map +1 -0
- package/dist/commonjs/sdk/commerce/customers.d.ts +9 -0
- package/dist/commonjs/sdk/commerce/customers.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/customers.js +14 -0
- package/dist/commonjs/sdk/commerce/customers.js.map +1 -0
- package/dist/commonjs/sdk/commerce/index.d.ts +36 -0
- package/dist/commonjs/sdk/commerce/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/index.js +46 -1
- package/dist/commonjs/sdk/commerce/index.js.map +1 -1
- package/dist/commonjs/sdk/commerce/invoices.d.ts +3 -0
- package/dist/commonjs/sdk/commerce/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/invoices.js +10 -0
- package/dist/commonjs/sdk/commerce/invoices.js.map +1 -1
- package/dist/commonjs/sdk/commerce/orders.d.ts +2 -0
- package/dist/commonjs/sdk/commerce/orders.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/orders.js +7 -0
- package/dist/commonjs/sdk/commerce/orders.js.map +1 -1
- package/dist/commonjs/sdk/commerce/payments.d.ts +2 -0
- package/dist/commonjs/sdk/commerce/payments.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/payments.js +7 -0
- package/dist/commonjs/sdk/commerce/payments.js.map +1 -1
- package/dist/commonjs/sdk/commerce/products.d.ts +1 -0
- package/dist/commonjs/sdk/commerce/products.d.ts.map +1 -1
- package/dist/commonjs/sdk/commerce/products.js +4 -0
- package/dist/commonjs/sdk/commerce/products.js.map +1 -1
- package/dist/commonjs/sdk/commerce/shipping-classes.d.ts +7 -0
- package/dist/commonjs/sdk/commerce/shipping-classes.d.ts.map +1 -0
- package/dist/commonjs/sdk/commerce/shipping-classes.js +12 -0
- package/dist/commonjs/sdk/commerce/shipping-classes.js.map +1 -0
- package/dist/commonjs/sdk/media-library.d.ts +15 -0
- package/dist/commonjs/sdk/media-library.d.ts.map +1 -0
- package/dist/commonjs/sdk/media-library.js +20 -0
- package/dist/commonjs/sdk/media-library.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +10 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/settings/configured-languages.d.ts +6 -0
- package/dist/commonjs/sdk/settings/configured-languages.d.ts.map +1 -0
- package/dist/commonjs/sdk/settings/configured-languages.js +11 -0
- package/dist/commonjs/sdk/settings/configured-languages.js.map +1 -0
- package/dist/commonjs/sdk/settings/customer-groups.d.ts +7 -0
- package/dist/commonjs/sdk/settings/customer-groups.d.ts.map +1 -0
- package/dist/commonjs/sdk/settings/customer-groups.js +12 -0
- package/dist/commonjs/sdk/settings/customer-groups.js.map +1 -0
- package/dist/commonjs/sdk/settings/index.d.ts +12 -0
- package/dist/commonjs/sdk/settings/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/settings/index.js +16 -1
- package/dist/commonjs/sdk/settings/index.js.map +1 -1
- package/dist/commonjs/sdk/settings/payment-method-issuers.d.ts +7 -0
- package/dist/commonjs/sdk/settings/payment-method-issuers.d.ts.map +1 -0
- package/dist/commonjs/sdk/settings/payment-method-issuers.js +12 -0
- package/dist/commonjs/sdk/settings/payment-method-issuers.js.map +1 -0
- package/dist/commonjs/sdk/translations.d.ts +6 -0
- package/dist/commonjs/sdk/translations.d.ts.map +1 -0
- package/dist/commonjs/sdk/translations.js +11 -0
- package/dist/commonjs/sdk/translations.js.map +1 -0
- package/dist/esm/funcs/cms/componentFields.d.ts +5 -0
- package/dist/esm/funcs/cms/componentFields.d.ts.map +1 -0
- package/dist/esm/funcs/cms/componentFields.js +5 -0
- package/dist/esm/funcs/cms/componentFields.js.map +1 -0
- package/dist/esm/funcs/cms/index.d.ts +3 -0
- package/dist/esm/funcs/cms/index.d.ts.map +1 -1
- package/dist/esm/funcs/cms/index.js +3 -0
- package/dist/esm/funcs/cms/index.js.map +1 -1
- package/dist/esm/funcs/cms/pageComponents.d.ts +5 -0
- package/dist/esm/funcs/cms/pageComponents.d.ts.map +1 -0
- package/dist/esm/funcs/cms/pageComponents.js +5 -0
- package/dist/esm/funcs/cms/pageComponents.js.map +1 -0
- package/dist/esm/funcs/cms/routes.d.ts +5 -0
- package/dist/esm/funcs/cms/routes.d.ts.map +1 -0
- package/dist/esm/funcs/cms/routes.js +5 -0
- package/dist/esm/funcs/cms/routes.js.map +1 -0
- package/dist/esm/funcs/commerce/cartShippingMethods.d.ts +4 -0
- package/dist/esm/funcs/commerce/cartShippingMethods.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/cartShippingMethods.js +4 -0
- package/dist/esm/funcs/commerce/cartShippingMethods.js.map +1 -0
- package/dist/esm/funcs/commerce/customerAddresses.d.ts +8 -0
- package/dist/esm/funcs/commerce/customerAddresses.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerAddresses.js +8 -0
- package/dist/esm/funcs/commerce/customerAddresses.js.map +1 -0
- package/dist/esm/funcs/commerce/customerGroups.d.ts +5 -0
- package/dist/esm/funcs/commerce/customerGroups.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerGroups.js +5 -0
- package/dist/esm/funcs/commerce/customerGroups.js.map +1 -0
- package/dist/esm/funcs/commerce/customerInvoices.d.ts +6 -0
- package/dist/esm/funcs/commerce/customerInvoices.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerInvoices.js +6 -0
- package/dist/esm/funcs/commerce/customerInvoices.js.map +1 -0
- package/dist/esm/funcs/commerce/customerMandates.d.ts +8 -0
- package/dist/esm/funcs/commerce/customerMandates.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerMandates.js +8 -0
- package/dist/esm/funcs/commerce/customerMandates.js.map +1 -0
- package/dist/esm/funcs/commerce/customerOrders.d.ts +8 -0
- package/dist/esm/funcs/commerce/customerOrders.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerOrders.js +8 -0
- package/dist/esm/funcs/commerce/customerOrders.js.map +1 -0
- package/dist/esm/funcs/commerce/customerPayments.d.ts +7 -0
- package/dist/esm/funcs/commerce/customerPayments.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerPayments.js +7 -0
- package/dist/esm/funcs/commerce/customerPayments.js.map +1 -0
- package/dist/esm/funcs/commerce/customerSubscriptions.d.ts +11 -0
- package/dist/esm/funcs/commerce/customerSubscriptions.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customerSubscriptions.js +11 -0
- package/dist/esm/funcs/commerce/customerSubscriptions.js.map +1 -0
- package/dist/esm/funcs/commerce/customers.d.ts +7 -0
- package/dist/esm/funcs/commerce/customers.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/customers.js +15 -0
- package/dist/esm/funcs/commerce/customers.js.map +1 -0
- package/dist/esm/funcs/commerce/index.d.ts +13 -0
- package/dist/esm/funcs/commerce/index.d.ts.map +1 -1
- package/dist/esm/funcs/commerce/index.js +13 -0
- package/dist/esm/funcs/commerce/index.js.map +1 -1
- package/dist/esm/funcs/commerce/invoicesMutations.d.ts +6 -0
- package/dist/esm/funcs/commerce/invoicesMutations.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/invoicesMutations.js +6 -0
- package/dist/esm/funcs/commerce/invoicesMutations.js.map +1 -0
- package/dist/esm/funcs/commerce/paymentsMutations.d.ts +7 -0
- package/dist/esm/funcs/commerce/paymentsMutations.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/paymentsMutations.js +7 -0
- package/dist/esm/funcs/commerce/paymentsMutations.js.map +1 -0
- package/dist/esm/funcs/commerce/productsOfferGet.d.ts +4 -0
- package/dist/esm/funcs/commerce/productsOfferGet.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/productsOfferGet.js +4 -0
- package/dist/esm/funcs/commerce/productsOfferGet.js.map +1 -0
- package/dist/esm/funcs/commerce/shippingClasses.d.ts +5 -0
- package/dist/esm/funcs/commerce/shippingClasses.d.ts.map +1 -0
- package/dist/esm/funcs/commerce/shippingClasses.js +5 -0
- package/dist/esm/funcs/commerce/shippingClasses.js.map +1 -0
- package/dist/esm/funcs/commerce/subscriptionIntervalsGet.js +1 -1
- package/dist/esm/funcs/commerce/subscriptionIntervalsGet.js.map +1 -1
- package/dist/esm/funcs/commerce/subscriptionIntervalsList.js +1 -1
- package/dist/esm/funcs/commerce/subscriptionIntervalsList.js.map +1 -1
- package/dist/esm/funcs/commerce/vatValidationsGet.js +1 -1
- package/dist/esm/funcs/commerce/vatValidationsGet.js.map +1 -1
- package/dist/esm/funcs/index.d.ts +18 -0
- package/dist/esm/funcs/index.d.ts.map +1 -1
- package/dist/esm/funcs/index.js +18 -0
- package/dist/esm/funcs/index.js.map +1 -1
- package/dist/esm/funcs/mediaLibrary.d.ts +13 -0
- package/dist/esm/funcs/mediaLibrary.d.ts.map +1 -0
- package/dist/esm/funcs/mediaLibrary.js +13 -0
- package/dist/esm/funcs/mediaLibrary.js.map +1 -0
- package/dist/esm/funcs/settings/configuredLanguages.d.ts +4 -0
- package/dist/esm/funcs/settings/configuredLanguages.d.ts.map +1 -0
- package/dist/esm/funcs/settings/configuredLanguages.js +4 -0
- package/dist/esm/funcs/settings/configuredLanguages.js.map +1 -0
- package/dist/esm/funcs/settings/customerGroups.d.ts +5 -0
- package/dist/esm/funcs/settings/customerGroups.d.ts.map +1 -0
- package/dist/esm/funcs/settings/customerGroups.js +5 -0
- package/dist/esm/funcs/settings/customerGroups.js.map +1 -0
- package/dist/esm/funcs/settings/index.d.ts +3 -0
- package/dist/esm/funcs/settings/index.d.ts.map +1 -1
- package/dist/esm/funcs/settings/index.js +3 -0
- package/dist/esm/funcs/settings/index.js.map +1 -1
- package/dist/esm/funcs/settings/paymentMethodIssuers.d.ts +5 -0
- package/dist/esm/funcs/settings/paymentMethodIssuers.d.ts.map +1 -0
- package/dist/esm/funcs/settings/paymentMethodIssuers.js +5 -0
- package/dist/esm/funcs/settings/paymentMethodIssuers.js.map +1 -0
- package/dist/esm/funcs/translations.d.ts +4 -0
- package/dist/esm/funcs/translations.d.ts.map +1 -0
- package/dist/esm/funcs/translations.js +4 -0
- package/dist/esm/funcs/translations.js.map +1 -0
- package/dist/esm/funcs/users/usersIssueToken.js +1 -3
- package/dist/esm/funcs/users/usersIssueToken.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +1 -1
- package/dist/esm/lib/operation.d.ts +34 -0
- package/dist/esm/lib/operation.d.ts.map +1 -0
- package/dist/esm/lib/operation.js +129 -0
- package/dist/esm/lib/operation.js.map +1 -0
- package/dist/esm/models/cms/component-field.d.ts +27 -0
- package/dist/esm/models/cms/component-field.d.ts.map +1 -0
- package/dist/esm/models/cms/component-field.js +26 -0
- package/dist/esm/models/cms/component-field.js.map +1 -0
- package/dist/esm/models/cms/component.d.ts +2 -2
- package/dist/esm/models/cms/component.d.ts.map +1 -1
- package/dist/esm/models/cms/component.js +4 -6
- package/dist/esm/models/cms/component.js.map +1 -1
- package/dist/esm/models/cms/index.d.ts +2 -0
- package/dist/esm/models/cms/index.d.ts.map +1 -1
- package/dist/esm/models/cms/index.js +2 -0
- package/dist/esm/models/cms/index.js.map +1 -1
- package/dist/esm/models/cms/page-component-field.d.ts +17 -0
- package/dist/esm/models/cms/page-component-field.d.ts.map +1 -0
- package/dist/esm/models/cms/page-component-field.js +17 -0
- package/dist/esm/models/cms/page-component-field.js.map +1 -0
- package/dist/esm/models/cms/page-component.d.ts +5 -3
- package/dist/esm/models/cms/page-component.d.ts.map +1 -1
- package/dist/esm/models/cms/page-component.js +7 -7
- package/dist/esm/models/cms/page-component.js.map +1 -1
- package/dist/esm/models/commerce/address.d.ts +26 -3
- package/dist/esm/models/commerce/address.d.ts.map +1 -1
- package/dist/esm/models/commerce/address.js +19 -5
- package/dist/esm/models/commerce/address.js.map +1 -1
- package/dist/esm/models/commerce/customer-group.d.ts +16 -0
- package/dist/esm/models/commerce/customer-group.d.ts.map +1 -0
- package/dist/esm/models/commerce/customer-group.js +16 -0
- package/dist/esm/models/commerce/customer-group.js.map +1 -0
- package/dist/esm/models/commerce/customer.d.ts +9 -2
- package/dist/esm/models/commerce/customer.d.ts.map +1 -1
- package/dist/esm/models/commerce/customer.js +9 -2
- package/dist/esm/models/commerce/customer.js.map +1 -1
- package/dist/esm/models/commerce/index.d.ts +4 -0
- package/dist/esm/models/commerce/index.d.ts.map +1 -1
- package/dist/esm/models/commerce/index.js +4 -0
- package/dist/esm/models/commerce/index.js.map +1 -1
- package/dist/esm/models/commerce/invoice.d.ts +6 -6
- package/dist/esm/models/commerce/invoice.d.ts.map +1 -1
- package/dist/esm/models/commerce/invoice.js +6 -6
- package/dist/esm/models/commerce/invoice.js.map +1 -1
- package/dist/esm/models/commerce/mandate.d.ts +30 -0
- package/dist/esm/models/commerce/mandate.d.ts.map +1 -0
- package/dist/esm/models/commerce/mandate.js +29 -0
- package/dist/esm/models/commerce/mandate.js.map +1 -0
- package/dist/esm/models/commerce/order.d.ts +4 -4
- package/dist/esm/models/commerce/order.d.ts.map +1 -1
- package/dist/esm/models/commerce/order.js +4 -4
- package/dist/esm/models/commerce/order.js.map +1 -1
- package/dist/esm/models/commerce/payment.d.ts +4 -2
- package/dist/esm/models/commerce/payment.d.ts.map +1 -1
- package/dist/esm/models/commerce/payment.js +4 -2
- package/dist/esm/models/commerce/payment.js.map +1 -1
- package/dist/esm/models/commerce/product.d.ts +4 -4
- package/dist/esm/models/commerce/product.d.ts.map +1 -1
- package/dist/esm/models/commerce/product.js +7 -4
- package/dist/esm/models/commerce/product.js.map +1 -1
- package/dist/esm/models/commerce/shipping-class.d.ts +14 -0
- package/dist/esm/models/commerce/shipping-class.d.ts.map +1 -0
- package/dist/esm/models/commerce/shipping-class.js +14 -0
- package/dist/esm/models/commerce/shipping-class.js.map +1 -0
- package/dist/esm/models/commerce/shipping-method.d.ts +23 -14
- package/dist/esm/models/commerce/shipping-method.d.ts.map +1 -1
- package/dist/esm/models/commerce/shipping-method.js +25 -23
- package/dist/esm/models/commerce/shipping-method.js.map +1 -1
- package/dist/esm/models/commerce/shipping-zone.d.ts +7 -36
- package/dist/esm/models/commerce/shipping-zone.d.ts.map +1 -1
- package/dist/esm/models/commerce/shipping-zone.js +9 -67
- package/dist/esm/models/commerce/shipping-zone.js.map +1 -1
- package/dist/esm/models/commerce/subscription.d.ts +34 -0
- package/dist/esm/models/commerce/subscription.d.ts.map +1 -0
- package/dist/esm/models/commerce/subscription.js +42 -0
- package/dist/esm/models/commerce/subscription.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/media-library.d.ts +43 -0
- package/dist/esm/models/media-library.d.ts.map +1 -0
- package/dist/esm/models/media-library.js +47 -0
- package/dist/esm/models/media-library.js.map +1 -0
- package/dist/esm/models/operations/cms-components.d.ts +18 -0
- package/dist/esm/models/operations/cms-components.d.ts.map +1 -1
- package/dist/esm/models/operations/cms-components.js +7 -0
- package/dist/esm/models/operations/cms-components.js.map +1 -1
- package/dist/esm/models/operations/cms-pages.d.ts +16 -0
- package/dist/esm/models/operations/cms-pages.d.ts.map +1 -1
- package/dist/esm/models/operations/cms-pages.js +5 -0
- package/dist/esm/models/operations/cms-pages.js.map +1 -1
- package/dist/esm/models/operations/cms-routes.d.ts +15 -0
- package/dist/esm/models/operations/cms-routes.d.ts.map +1 -0
- package/dist/esm/models/operations/cms-routes.js +8 -0
- package/dist/esm/models/operations/cms-routes.js.map +1 -0
- package/dist/esm/models/operations/commerce-carts.d.ts +10 -0
- package/dist/esm/models/operations/commerce-carts.d.ts.map +1 -1
- package/dist/esm/models/operations/commerce-carts.js +11 -0
- package/dist/esm/models/operations/commerce-carts.js.map +1 -1
- package/dist/esm/models/operations/commerce-customer-addresses.d.ts +54 -0
- package/dist/esm/models/operations/commerce-customer-addresses.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-addresses.js +18 -0
- package/dist/esm/models/operations/commerce-customer-addresses.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-groups.d.ts +19 -0
- package/dist/esm/models/operations/commerce-customer-groups.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-groups.js +8 -0
- package/dist/esm/models/operations/commerce-customer-groups.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-invoices.d.ts +26 -0
- package/dist/esm/models/operations/commerce-customer-invoices.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-invoices.js +10 -0
- package/dist/esm/models/operations/commerce-customer-invoices.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-mandates.d.ts +40 -0
- package/dist/esm/models/operations/commerce-customer-mandates.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-mandates.js +14 -0
- package/dist/esm/models/operations/commerce-customer-mandates.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-orders.d.ts +41 -0
- package/dist/esm/models/operations/commerce-customer-orders.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-orders.js +14 -0
- package/dist/esm/models/operations/commerce-customer-orders.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-payments.d.ts +62 -0
- package/dist/esm/models/operations/commerce-customer-payments.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-payments.js +18 -0
- package/dist/esm/models/operations/commerce-customer-payments.js.map +1 -0
- package/dist/esm/models/operations/commerce-customer-subscriptions.d.ts +68 -0
- package/dist/esm/models/operations/commerce-customer-subscriptions.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customer-subscriptions.js +21 -0
- package/dist/esm/models/operations/commerce-customer-subscriptions.js.map +1 -0
- package/dist/esm/models/operations/commerce-customers.d.ts +64 -0
- package/dist/esm/models/operations/commerce-customers.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-customers.js +24 -0
- package/dist/esm/models/operations/commerce-customers.js.map +1 -0
- package/dist/esm/models/operations/commerce-invoices.d.ts +19 -0
- package/dist/esm/models/operations/commerce-invoices.d.ts.map +1 -1
- package/dist/esm/models/operations/commerce-invoices.js +6 -0
- package/dist/esm/models/operations/commerce-invoices.js.map +1 -1
- package/dist/esm/models/operations/commerce-payments.d.ts +22 -0
- package/dist/esm/models/operations/commerce-payments.d.ts.map +1 -1
- package/dist/esm/models/operations/commerce-payments.js +10 -0
- package/dist/esm/models/operations/commerce-payments.js.map +1 -1
- package/dist/esm/models/operations/commerce-products.d.ts +7 -0
- package/dist/esm/models/operations/commerce-products.d.ts.map +1 -1
- package/dist/esm/models/operations/commerce-products.js +2 -0
- package/dist/esm/models/operations/commerce-products.js.map +1 -1
- package/dist/esm/models/operations/commerce-shipping-classes.d.ts +15 -0
- package/dist/esm/models/operations/commerce-shipping-classes.d.ts.map +1 -0
- package/dist/esm/models/operations/commerce-shipping-classes.js +8 -0
- package/dist/esm/models/operations/commerce-shipping-classes.js.map +1 -0
- package/dist/esm/models/operations/helpers.d.ts +20 -0
- package/dist/esm/models/operations/helpers.d.ts.map +1 -0
- package/dist/esm/models/operations/helpers.js +31 -0
- package/dist/esm/models/operations/helpers.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +15 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +15 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/media-library.d.ts +92 -0
- package/dist/esm/models/operations/media-library.d.ts.map +1 -0
- package/dist/esm/models/operations/media-library.js +24 -0
- package/dist/esm/models/operations/media-library.js.map +1 -0
- package/dist/esm/models/operations/settings-customer-groups.d.ts +16 -0
- package/dist/esm/models/operations/settings-customer-groups.d.ts.map +1 -0
- package/dist/esm/models/operations/settings-customer-groups.js +8 -0
- package/dist/esm/models/operations/settings-customer-groups.js.map +1 -0
- package/dist/esm/models/operations/settings-languages.d.ts +12 -0
- package/dist/esm/models/operations/settings-languages.d.ts.map +1 -0
- package/dist/esm/models/operations/settings-languages.js +6 -0
- package/dist/esm/models/operations/settings-languages.js.map +1 -0
- package/dist/esm/models/operations/settings-payment-method-issuers.d.ts +18 -0
- package/dist/esm/models/operations/settings-payment-method-issuers.d.ts.map +1 -0
- package/dist/esm/models/operations/settings-payment-method-issuers.js +8 -0
- package/dist/esm/models/operations/settings-payment-method-issuers.js.map +1 -0
- package/dist/esm/models/operations/translations.d.ts +22 -0
- package/dist/esm/models/operations/translations.d.ts.map +1 -0
- package/dist/esm/models/operations/translations.js +6 -0
- package/dist/esm/models/operations/translations.js.map +1 -0
- package/dist/esm/models/settings/configured-language.d.ts +12 -0
- package/dist/esm/models/settings/configured-language.d.ts.map +1 -0
- package/dist/esm/models/settings/configured-language.js +11 -0
- package/dist/esm/models/settings/configured-language.js.map +1 -0
- package/dist/esm/models/settings/index.d.ts +2 -0
- package/dist/esm/models/settings/index.d.ts.map +1 -1
- package/dist/esm/models/settings/index.js +2 -0
- package/dist/esm/models/settings/index.js.map +1 -1
- package/dist/esm/models/settings/payment-method-issuer.d.ts +17 -0
- package/dist/esm/models/settings/payment-method-issuer.d.ts.map +1 -0
- package/dist/esm/models/settings/payment-method-issuer.js +17 -0
- package/dist/esm/models/settings/payment-method-issuer.js.map +1 -0
- package/dist/esm/sdk/cms/components.d.ts +2 -0
- package/dist/esm/sdk/cms/components.d.ts.map +1 -1
- package/dist/esm/sdk/cms/components.js +7 -0
- package/dist/esm/sdk/cms/components.js.map +1 -1
- package/dist/esm/sdk/cms/index.d.ts +4 -0
- package/dist/esm/sdk/cms/index.d.ts.map +1 -1
- package/dist/esm/sdk/cms/index.js +4 -0
- package/dist/esm/sdk/cms/index.js.map +1 -1
- package/dist/esm/sdk/cms/pages.d.ts +2 -0
- package/dist/esm/sdk/cms/pages.d.ts.map +1 -1
- package/dist/esm/sdk/cms/pages.js +7 -0
- package/dist/esm/sdk/cms/pages.js.map +1 -1
- package/dist/esm/sdk/cms/routes.d.ts +7 -0
- package/dist/esm/sdk/cms/routes.d.ts.map +1 -0
- package/dist/esm/sdk/cms/routes.js +8 -0
- package/dist/esm/sdk/cms/routes.js.map +1 -0
- package/dist/esm/sdk/commerce/carts.d.ts +1 -0
- package/dist/esm/sdk/commerce/carts.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/carts.js +4 -0
- package/dist/esm/sdk/commerce/carts.js.map +1 -1
- package/dist/esm/sdk/commerce/customer-addresses.d.ts +10 -0
- package/dist/esm/sdk/commerce/customer-addresses.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-addresses.js +11 -0
- package/dist/esm/sdk/commerce/customer-addresses.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-groups.d.ts +7 -0
- package/dist/esm/sdk/commerce/customer-groups.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-groups.js +8 -0
- package/dist/esm/sdk/commerce/customer-groups.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-invoices.d.ts +8 -0
- package/dist/esm/sdk/commerce/customer-invoices.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-invoices.js +9 -0
- package/dist/esm/sdk/commerce/customer-invoices.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-mandates.d.ts +10 -0
- package/dist/esm/sdk/commerce/customer-mandates.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-mandates.js +11 -0
- package/dist/esm/sdk/commerce/customer-mandates.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-orders.d.ts +10 -0
- package/dist/esm/sdk/commerce/customer-orders.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-orders.js +11 -0
- package/dist/esm/sdk/commerce/customer-orders.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-payments.d.ts +9 -0
- package/dist/esm/sdk/commerce/customer-payments.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-payments.js +10 -0
- package/dist/esm/sdk/commerce/customer-payments.js.map +1 -0
- package/dist/esm/sdk/commerce/customer-subscriptions.d.ts +13 -0
- package/dist/esm/sdk/commerce/customer-subscriptions.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customer-subscriptions.js +14 -0
- package/dist/esm/sdk/commerce/customer-subscriptions.js.map +1 -0
- package/dist/esm/sdk/commerce/customers.d.ts +9 -0
- package/dist/esm/sdk/commerce/customers.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/customers.js +10 -0
- package/dist/esm/sdk/commerce/customers.js.map +1 -0
- package/dist/esm/sdk/commerce/index.d.ts +36 -0
- package/dist/esm/sdk/commerce/index.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/index.js +36 -0
- package/dist/esm/sdk/commerce/index.js.map +1 -1
- package/dist/esm/sdk/commerce/invoices.d.ts +3 -0
- package/dist/esm/sdk/commerce/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/invoices.js +10 -0
- package/dist/esm/sdk/commerce/invoices.js.map +1 -1
- package/dist/esm/sdk/commerce/orders.d.ts +2 -0
- package/dist/esm/sdk/commerce/orders.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/orders.js +7 -0
- package/dist/esm/sdk/commerce/orders.js.map +1 -1
- package/dist/esm/sdk/commerce/payments.d.ts +2 -0
- package/dist/esm/sdk/commerce/payments.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/payments.js +7 -0
- package/dist/esm/sdk/commerce/payments.js.map +1 -1
- package/dist/esm/sdk/commerce/products.d.ts +1 -0
- package/dist/esm/sdk/commerce/products.d.ts.map +1 -1
- package/dist/esm/sdk/commerce/products.js +4 -0
- package/dist/esm/sdk/commerce/products.js.map +1 -1
- package/dist/esm/sdk/commerce/shipping-classes.d.ts +7 -0
- package/dist/esm/sdk/commerce/shipping-classes.d.ts.map +1 -0
- package/dist/esm/sdk/commerce/shipping-classes.js +8 -0
- package/dist/esm/sdk/commerce/shipping-classes.js.map +1 -0
- package/dist/esm/sdk/media-library.d.ts +15 -0
- package/dist/esm/sdk/media-library.d.ts.map +1 -0
- package/dist/esm/sdk/media-library.js +16 -0
- package/dist/esm/sdk/media-library.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +10 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/settings/configured-languages.d.ts +6 -0
- package/dist/esm/sdk/settings/configured-languages.d.ts.map +1 -0
- package/dist/esm/sdk/settings/configured-languages.js +7 -0
- package/dist/esm/sdk/settings/configured-languages.js.map +1 -0
- package/dist/esm/sdk/settings/customer-groups.d.ts +7 -0
- package/dist/esm/sdk/settings/customer-groups.d.ts.map +1 -0
- package/dist/esm/sdk/settings/customer-groups.js +8 -0
- package/dist/esm/sdk/settings/customer-groups.js.map +1 -0
- package/dist/esm/sdk/settings/index.d.ts +12 -0
- package/dist/esm/sdk/settings/index.d.ts.map +1 -1
- package/dist/esm/sdk/settings/index.js +12 -0
- package/dist/esm/sdk/settings/index.js.map +1 -1
- package/dist/esm/sdk/settings/payment-method-issuers.d.ts +7 -0
- package/dist/esm/sdk/settings/payment-method-issuers.d.ts.map +1 -0
- package/dist/esm/sdk/settings/payment-method-issuers.js +8 -0
- package/dist/esm/sdk/settings/payment-method-issuers.js.map +1 -0
- package/dist/esm/sdk/translations.d.ts +6 -0
- package/dist/esm/sdk/translations.d.ts.map +1 -0
- package/dist/esm/sdk/translations.js +7 -0
- package/dist/esm/sdk/translations.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +2 -1
- package/src/funcs/cms/componentFields.ts +6 -0
- package/src/funcs/cms/index.ts +3 -0
- package/src/funcs/cms/pageComponents.ts +6 -0
- package/src/funcs/cms/routes.ts +6 -0
- package/src/funcs/commerce/cartShippingMethods.ts +5 -0
- package/src/funcs/commerce/customerAddresses.ts +9 -0
- package/src/funcs/commerce/customerGroups.ts +6 -0
- package/src/funcs/commerce/customerInvoices.ts +7 -0
- package/src/funcs/commerce/customerMandates.ts +9 -0
- package/src/funcs/commerce/customerOrders.ts +9 -0
- package/src/funcs/commerce/customerPayments.ts +8 -0
- package/src/funcs/commerce/customerSubscriptions.ts +12 -0
- package/src/funcs/commerce/customers.ts +16 -0
- package/src/funcs/commerce/index.ts +13 -0
- package/src/funcs/commerce/invoicesMutations.ts +7 -0
- package/src/funcs/commerce/paymentsMutations.ts +8 -0
- package/src/funcs/commerce/productsOfferGet.ts +5 -0
- package/src/funcs/commerce/shippingClasses.ts +6 -0
- package/src/funcs/commerce/subscriptionIntervalsGet.ts +1 -2
- package/src/funcs/commerce/subscriptionIntervalsList.ts +1 -2
- package/src/funcs/commerce/vatValidationsGet.ts +1 -2
- package/src/funcs/index.ts +18 -0
- package/src/funcs/mediaLibrary.ts +14 -0
- package/src/funcs/settings/configuredLanguages.ts +5 -0
- package/src/funcs/settings/customerGroups.ts +6 -0
- package/src/funcs/settings/index.ts +3 -0
- package/src/funcs/settings/paymentMethodIssuers.ts +6 -0
- package/src/funcs/translations.ts +5 -0
- package/src/funcs/users/usersIssueToken.ts +1 -3
- package/src/index.ts +2 -0
- package/src/lib/config.ts +1 -1
- package/src/lib/operation.ts +198 -0
- package/src/models/cms/component-field.ts +49 -0
- package/src/models/cms/component.ts +6 -8
- package/src/models/cms/index.ts +2 -0
- package/src/models/cms/page-component-field.ts +30 -0
- package/src/models/cms/page-component.ts +10 -10
- package/src/models/commerce/address.ts +28 -8
- package/src/models/commerce/customer-group.ts +28 -0
- package/src/models/commerce/customer.ts +17 -4
- package/src/models/commerce/index.ts +4 -0
- package/src/models/commerce/invoice.ts +12 -12
- package/src/models/commerce/mandate.ts +55 -0
- package/src/models/commerce/order.ts +8 -8
- package/src/models/commerce/payment.ts +8 -4
- package/src/models/commerce/product.ts +11 -8
- package/src/models/commerce/shipping-class.ts +24 -0
- package/src/models/commerce/shipping-method.ts +43 -26
- package/src/models/commerce/shipping-zone.ts +24 -92
- package/src/models/commerce/subscription.ts +67 -0
- package/src/models/index.ts +1 -0
- package/src/models/media-library.ts +86 -0
- package/src/models/operations/cms-components.ts +13 -0
- package/src/models/operations/cms-pages.ts +11 -0
- package/src/models/operations/cms-routes.ts +13 -0
- package/src/models/operations/commerce-carts.ts +14 -0
- package/src/models/operations/commerce-customer-addresses.ts +47 -0
- package/src/models/operations/commerce-customer-groups.ts +13 -0
- package/src/models/operations/commerce-customer-invoices.ts +17 -0
- package/src/models/operations/commerce-customer-mandates.ts +29 -0
- package/src/models/operations/commerce-customer-orders.ts +25 -0
- package/src/models/operations/commerce-customer-payments.ts +41 -0
- package/src/models/operations/commerce-customer-subscriptions.ts +45 -0
- package/src/models/operations/commerce-customers.ts +72 -0
- package/src/models/operations/commerce-invoices.ts +15 -0
- package/src/models/operations/commerce-payments.ts +22 -0
- package/src/models/operations/commerce-products.ts +5 -0
- package/src/models/operations/commerce-shipping-classes.ts +13 -0
- package/src/models/operations/helpers.ts +43 -0
- package/src/models/operations/index.ts +15 -0
- package/src/models/operations/media-library.ts +64 -0
- package/src/models/operations/settings-customer-groups.ts +13 -0
- package/src/models/operations/settings-languages.ts +9 -0
- package/src/models/operations/settings-payment-method-issuers.ts +13 -0
- package/src/models/operations/translations.ts +9 -0
- package/src/models/settings/configured-language.ts +20 -0
- package/src/models/settings/index.ts +2 -0
- package/src/models/settings/payment-method-issuer.ts +30 -0
- package/src/sdk/cms/components.ts +9 -0
- package/src/sdk/cms/index.ts +6 -0
- package/src/sdk/cms/pages.ts +9 -0
- package/src/sdk/cms/routes.ts +8 -0
- package/src/sdk/commerce/carts.ts +5 -0
- package/src/sdk/commerce/customer-addresses.ts +12 -0
- package/src/sdk/commerce/customer-groups.ts +8 -0
- package/src/sdk/commerce/customer-invoices.ts +9 -0
- package/src/sdk/commerce/customer-mandates.ts +11 -0
- package/src/sdk/commerce/customer-orders.ts +11 -0
- package/src/sdk/commerce/customer-payments.ts +10 -0
- package/src/sdk/commerce/customer-subscriptions.ts +14 -0
- package/src/sdk/commerce/customers.ts +11 -0
- package/src/sdk/commerce/index.ts +46 -0
- package/src/sdk/commerce/invoices.ts +13 -0
- package/src/sdk/commerce/orders.ts +9 -0
- package/src/sdk/commerce/payments.ts +9 -0
- package/src/sdk/commerce/products.ts +5 -0
- package/src/sdk/commerce/shipping-classes.ts +8 -0
- package/src/sdk/media-library.ts +28 -0
- package/src/sdk/sdk.ts +14 -0
- package/src/sdk/settings/configured-languages.ts +7 -0
- package/src/sdk/settings/customer-groups.ts +8 -0
- package/src/sdk/settings/index.ts +16 -0
- package/src/sdk/settings/payment-method-issuers.ts +8 -0
- package/src/sdk/translations.ts +7 -0
- package/tests/core-operations.test.mjs +170 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
3
|
+
import { CurrencyAmount, CurrencyAmount$inboundSchema } from "../common/amount.js";
|
|
4
|
+
import { HalLinks, HalLinks$inboundSchema } from "../hal.js";
|
|
5
|
+
import { Product, Product$inboundSchema } from "./product.js";
|
|
6
|
+
import { SubscriptionInterval, SubscriptionInterval$inboundSchema } from "./subscription-interval.js";
|
|
7
|
+
|
|
8
|
+
export type SubscriptionPeriod = {
|
|
9
|
+
startedAt: string;
|
|
10
|
+
endsAt: string;
|
|
11
|
+
daysLeft: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type Subscription = {
|
|
15
|
+
resource: "subscription";
|
|
16
|
+
id: number;
|
|
17
|
+
customerId: number;
|
|
18
|
+
productId: number;
|
|
19
|
+
intervalId: number;
|
|
20
|
+
status: string;
|
|
21
|
+
firstAmount: CurrencyAmount;
|
|
22
|
+
recurringAmount: CurrencyAmount;
|
|
23
|
+
currentPeriod: SubscriptionPeriod;
|
|
24
|
+
isPausable: boolean;
|
|
25
|
+
expiresAt: string | null;
|
|
26
|
+
dueAt: string | null;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
product?: Product;
|
|
30
|
+
interval?: SubscriptionInterval;
|
|
31
|
+
links?: HalLinks;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SubscriptionPeriod$inboundSchema: z.ZodType<SubscriptionPeriod> = z.object({
|
|
36
|
+
startedAt: z.string(),
|
|
37
|
+
endsAt: z.string(),
|
|
38
|
+
daysLeft: z.number(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const Subscription$inboundSchema: z.ZodType<Subscription> = z.object({
|
|
43
|
+
resource: z.literal("subscription"),
|
|
44
|
+
id: z.number().int(),
|
|
45
|
+
customerId: z.number().int(),
|
|
46
|
+
productId: z.number().int(),
|
|
47
|
+
intervalId: z.number().int(),
|
|
48
|
+
status: z.string(),
|
|
49
|
+
firstAmount: CurrencyAmount$inboundSchema,
|
|
50
|
+
recurringAmount: CurrencyAmount$inboundSchema,
|
|
51
|
+
currentPeriod: SubscriptionPeriod$inboundSchema,
|
|
52
|
+
isPausable: z.boolean(),
|
|
53
|
+
expiresAt: z.string().nullable(),
|
|
54
|
+
dueAt: z.string().nullable(),
|
|
55
|
+
updatedAt: z.string(),
|
|
56
|
+
createdAt: z.string(),
|
|
57
|
+
_embedded: z.object({
|
|
58
|
+
product: Product$inboundSchema.optional(),
|
|
59
|
+
interval: SubscriptionInterval$inboundSchema.optional(),
|
|
60
|
+
}).optional(),
|
|
61
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
62
|
+
}).loose().transform((value) => {
|
|
63
|
+
const subscription = remap$(value, { _links: "links" }) as Subscription;
|
|
64
|
+
if (value._embedded?.product) subscription.product = value._embedded.product;
|
|
65
|
+
if (value._embedded?.interval) subscription.interval = value._embedded.interval;
|
|
66
|
+
return subscription;
|
|
67
|
+
});
|
package/src/models/index.ts
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
3
|
+
import { HalLinks, HalLinks$inboundSchema } from "./hal.js";
|
|
4
|
+
|
|
5
|
+
export type MediaFolder = {
|
|
6
|
+
type: "folder";
|
|
7
|
+
name: string;
|
|
8
|
+
path: string;
|
|
9
|
+
locked: boolean;
|
|
10
|
+
links?: HalLinks;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type MediaItem = {
|
|
14
|
+
type: "file";
|
|
15
|
+
name: string;
|
|
16
|
+
path: string;
|
|
17
|
+
mime_type: string | null;
|
|
18
|
+
size: number | null;
|
|
19
|
+
url: string | null;
|
|
20
|
+
thumbnail_url: string | null;
|
|
21
|
+
meta: Record<string, unknown>;
|
|
22
|
+
links?: HalLinks;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type MediaList = {
|
|
26
|
+
path: string;
|
|
27
|
+
folders: Array<MediaFolder>;
|
|
28
|
+
files: Array<MediaItem>;
|
|
29
|
+
links?: HalLinks;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type PresignedMediaUpload = {
|
|
33
|
+
key: string;
|
|
34
|
+
url: string;
|
|
35
|
+
headers: Record<string, string>;
|
|
36
|
+
publicUrl: string;
|
|
37
|
+
path: string;
|
|
38
|
+
filename: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const MediaFolder$inboundSchema: z.ZodType<MediaFolder> = z.object({
|
|
43
|
+
type: z.literal("folder"),
|
|
44
|
+
name: z.string(),
|
|
45
|
+
path: z.string(),
|
|
46
|
+
locked: z.boolean(),
|
|
47
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
48
|
+
}).transform((value) => remap$(value, { _links: "links" }) as MediaFolder);
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const MediaItem$inboundSchema: z.ZodType<MediaItem> = z.object({
|
|
52
|
+
type: z.literal("file"),
|
|
53
|
+
name: z.string(),
|
|
54
|
+
path: z.string(),
|
|
55
|
+
mime_type: z.string().nullable(),
|
|
56
|
+
size: z.number().int().nullable(),
|
|
57
|
+
url: z.string().nullable(),
|
|
58
|
+
thumbnail_url: z.string().nullable().optional().default(null),
|
|
59
|
+
meta: z.record(z.string(), z.unknown()).optional().default({}),
|
|
60
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
61
|
+
}).transform((value) => remap$(value, { _links: "links" }) as MediaItem);
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const MediaList$inboundSchema: z.ZodType<MediaList> = z.object({
|
|
65
|
+
path: z.string(),
|
|
66
|
+
_embedded: z.object({
|
|
67
|
+
folders: z.array(MediaFolder$inboundSchema),
|
|
68
|
+
files: z.array(MediaItem$inboundSchema),
|
|
69
|
+
}),
|
|
70
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
71
|
+
}).transform((value) => ({
|
|
72
|
+
path: value.path,
|
|
73
|
+
folders: value._embedded.folders,
|
|
74
|
+
files: value._embedded.files,
|
|
75
|
+
...(value._links ? { links: value._links } : {}),
|
|
76
|
+
}));
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const PresignedMediaUpload$inboundSchema: z.ZodType<PresignedMediaUpload> = z.object({
|
|
80
|
+
key: z.string(),
|
|
81
|
+
url: z.string(),
|
|
82
|
+
headers: z.record(z.string(), z.string()),
|
|
83
|
+
publicUrl: z.string(),
|
|
84
|
+
path: z.string(),
|
|
85
|
+
filename: z.string(),
|
|
86
|
+
});
|
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { buildPaginated, Paginated } from "../pagination.js";
|
|
8
8
|
import { Component, Component$inboundSchema } from "../cms/component.js";
|
|
9
9
|
import { HalLinks$inboundSchema } from "../hal.js";
|
|
10
|
+
import { ComponentField, ComponentField$inboundSchema } from "../cms/component-field.js";
|
|
10
11
|
|
|
11
12
|
export type ListComponentsRequest = {
|
|
12
13
|
/**
|
|
@@ -102,3 +103,15 @@ export const GetComponentRequest$outboundSchema: z.ZodType<
|
|
|
102
103
|
export const GetComponentResponse$inboundSchema: z.ZodType<
|
|
103
104
|
GetComponentResponse
|
|
104
105
|
> = Component$inboundSchema;
|
|
106
|
+
|
|
107
|
+
export type ListComponentFieldsRequest = { componentId: number; filter?: Record<string, unknown> | undefined; sort?: string | undefined; page?: number | undefined; limit?: number | undefined };
|
|
108
|
+
export type ListComponentFieldsResponse = Paginated<ComponentField>;
|
|
109
|
+
export const ListComponentFieldsRequest$outboundSchema: z.ZodType<ListComponentFieldsRequest> = z.object({ componentId: z.number().int(), filter: z.record(z.string(), z.unknown()).optional(), sort: z.string().optional(), page: z.number().int().positive().optional(), limit: z.number().int().positive().max(250).optional() });
|
|
110
|
+
export const ListComponentFieldsResponse$inboundSchema: z.ZodType<ListComponentFieldsResponse> = z.object({
|
|
111
|
+
_embedded: z.object({ component_fields: z.array(ComponentField$inboundSchema) }), count: z.number(), _links: HalLinks$inboundSchema.optional(),
|
|
112
|
+
}).transform((value) => buildPaginated(value._embedded.component_fields, value.count, value._links));
|
|
113
|
+
|
|
114
|
+
export type GetComponentFieldRequest = { componentId: number; id: number };
|
|
115
|
+
export type GetComponentFieldResponse = ComponentField;
|
|
116
|
+
export const GetComponentFieldRequest$outboundSchema: z.ZodType<GetComponentFieldRequest> = z.object({ componentId: z.number().int(), id: z.number().int() });
|
|
117
|
+
export const GetComponentFieldResponse$inboundSchema = ComponentField$inboundSchema;
|
|
@@ -8,6 +8,7 @@ import { buildPaginated, Paginated } from "../pagination.js";
|
|
|
8
8
|
import { Page, Page$inboundSchema } from "../cms/page.js";
|
|
9
9
|
import { PageComponent, PageComponent$inboundSchema } from "../cms/page-component.js";
|
|
10
10
|
import { HalLinks$inboundSchema } from "../hal.js";
|
|
11
|
+
import { PageComponentField, PageComponentField$inboundSchema } from "../cms/page-component-field.js";
|
|
11
12
|
|
|
12
13
|
export type ListPagesRequest = {
|
|
13
14
|
/**
|
|
@@ -135,3 +136,13 @@ export const ListPageComponentsResponse$inboundSchema: z.ZodType<
|
|
|
135
136
|
v._links,
|
|
136
137
|
)
|
|
137
138
|
);
|
|
139
|
+
|
|
140
|
+
export type GetPageComponentRequest = { pageId: number; id: number };
|
|
141
|
+
export type GetPageComponentResponse = PageComponent;
|
|
142
|
+
export const GetPageComponentRequest$outboundSchema: z.ZodType<GetPageComponentRequest> = z.object({ pageId: z.number().int(), id: z.number().int() });
|
|
143
|
+
export const GetPageComponentResponse$inboundSchema = PageComponent$inboundSchema;
|
|
144
|
+
|
|
145
|
+
export type GetPageComponentFieldRequest = { pageId: number; pageComponentId: number; id: number };
|
|
146
|
+
export type GetPageComponentFieldResponse = PageComponentField;
|
|
147
|
+
export const GetPageComponentFieldRequest$outboundSchema: z.ZodType<GetPageComponentFieldRequest> = z.object({ pageId: z.number().int(), pageComponentId: z.number().int(), id: z.number().int() });
|
|
148
|
+
export const GetPageComponentFieldResponse$inboundSchema = PageComponentField$inboundSchema;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Route, Route$inboundSchema } from "../commerce/route.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type ListCmsRoutesRequest = ListRequest;
|
|
7
|
+
export type ListCmsRoutesResponse = Paginated<Route>;
|
|
8
|
+
export const ListCmsRoutesRequest$outboundSchema: z.ZodType<ListCmsRoutesRequest> = ListRequest$outboundSchema;
|
|
9
|
+
export const ListCmsRoutesResponse$inboundSchema = paginatedSchema("routes", Route$inboundSchema);
|
|
10
|
+
export type GetCmsRouteRequest = { id: number };
|
|
11
|
+
export type GetCmsRouteResponse = Route;
|
|
12
|
+
export const GetCmsRouteRequest$outboundSchema: z.ZodType<GetCmsRouteRequest> = z.object({ id: z.number().int() });
|
|
13
|
+
export const GetCmsRouteResponse$inboundSchema = Route$inboundSchema;
|
|
@@ -6,6 +6,8 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { buildPaginated, Paginated } from "../pagination.js";
|
|
7
7
|
import { Cart, Cart$inboundSchema } from "../commerce/cart.js";
|
|
8
8
|
import { HalLinks$inboundSchema } from "../hal.js";
|
|
9
|
+
import { ShippingMethod, ShippingMethod$inboundSchema } from "../commerce/shipping-method.js";
|
|
10
|
+
import { ShippingZone, ShippingZone$inboundSchema } from "../commerce/shipping-zone.js";
|
|
9
11
|
|
|
10
12
|
export type ListCartsRequest = {
|
|
11
13
|
/**
|
|
@@ -107,3 +109,15 @@ export const UpdateCartRequest$outboundSchema: z.ZodType<UpdateCartRequest> = z.
|
|
|
107
109
|
});
|
|
108
110
|
/** @internal */
|
|
109
111
|
export const UpdateCartResponse$inboundSchema: z.ZodType<UpdateCartResponse> = Cart$inboundSchema;
|
|
112
|
+
|
|
113
|
+
export type ListCartShippingMethodsRequest = { cartId: string };
|
|
114
|
+
export type ListCartShippingMethodsResponse = Paginated<ShippingMethod> & { shippingZone?: ShippingZone };
|
|
115
|
+
export const ListCartShippingMethodsRequest$outboundSchema: z.ZodType<ListCartShippingMethodsRequest> = z.object({ cartId: z.string() });
|
|
116
|
+
export const ListCartShippingMethodsResponse$inboundSchema: z.ZodType<ListCartShippingMethodsResponse> = z.object({
|
|
117
|
+
_embedded: z.object({ shipping_methods: z.array(ShippingMethod$inboundSchema), shipping_zone: ShippingZone$inboundSchema.optional() }),
|
|
118
|
+
count: z.number(),
|
|
119
|
+
_links: HalLinks$inboundSchema.optional(),
|
|
120
|
+
}).transform((value) => ({
|
|
121
|
+
...buildPaginated(value._embedded.shipping_methods, value.count, value._links),
|
|
122
|
+
...(value._embedded.shipping_zone ? { shippingZone: value._embedded.shipping_zone } : {}),
|
|
123
|
+
}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Address, Address$inboundSchema } from "../commerce/address.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type AddressInput = {
|
|
7
|
+
firstName?: string | null | undefined;
|
|
8
|
+
lastName?: string | null | undefined;
|
|
9
|
+
street: string;
|
|
10
|
+
number: string;
|
|
11
|
+
additional?: string | null | undefined;
|
|
12
|
+
postalCode: string;
|
|
13
|
+
city: string;
|
|
14
|
+
region?: string | null | undefined;
|
|
15
|
+
country: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const AddressInputSchema = z.object({
|
|
19
|
+
firstName: z.string().nullable().optional(), lastName: z.string().nullable().optional(), street: z.string(), number: z.string(),
|
|
20
|
+
additional: z.string().nullable().optional(), postalCode: z.string(), city: z.string(), region: z.string().nullable().optional(), country: z.string(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export type ListCustomerAddressesRequest = ListRequest & { customerId: number };
|
|
24
|
+
export type ListCustomerAddressesResponse = Paginated<Address>;
|
|
25
|
+
export const ListCustomerAddressesRequest$outboundSchema: z.ZodType<ListCustomerAddressesRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
26
|
+
export const ListCustomerAddressesResponse$inboundSchema: z.ZodType<ListCustomerAddressesResponse> = paginatedSchema("addresses", Address$inboundSchema);
|
|
27
|
+
|
|
28
|
+
export type GetCustomerAddressRequest = { customerId: number; id: number };
|
|
29
|
+
export type GetCustomerAddressResponse = Address;
|
|
30
|
+
export const GetCustomerAddressRequest$outboundSchema: z.ZodType<GetCustomerAddressRequest> = z.object({ customerId: z.number().int(), id: z.number().int() });
|
|
31
|
+
export const GetCustomerAddressResponse$inboundSchema = Address$inboundSchema;
|
|
32
|
+
|
|
33
|
+
export type CreateCustomerAddressRequest = { customerId: number; data: AddressInput };
|
|
34
|
+
export type CreateCustomerAddressResponse = Address;
|
|
35
|
+
export const CreateCustomerAddressRequest$outboundSchema: z.ZodType<CreateCustomerAddressRequest> = z.object({ customerId: z.number().int(), data: AddressInputSchema });
|
|
36
|
+
export const CreateCustomerAddressResponse$inboundSchema = Address$inboundSchema;
|
|
37
|
+
|
|
38
|
+
export type AddressUpdateInput = { [Key in keyof AddressInput]?: AddressInput[Key] | undefined };
|
|
39
|
+
export type UpdateCustomerAddressRequest = { customerId: number; id: number; data: AddressUpdateInput };
|
|
40
|
+
export type UpdateCustomerAddressResponse = Address;
|
|
41
|
+
export const UpdateCustomerAddressRequest$outboundSchema: z.ZodType<UpdateCustomerAddressRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), data: AddressInputSchema.partial() });
|
|
42
|
+
export const UpdateCustomerAddressResponse$inboundSchema = Address$inboundSchema;
|
|
43
|
+
|
|
44
|
+
export type DeleteCustomerAddressRequest = { customerId: number; id: number };
|
|
45
|
+
export type DeleteCustomerAddressResponse = void;
|
|
46
|
+
export const DeleteCustomerAddressRequest$outboundSchema: z.ZodType<DeleteCustomerAddressRequest> = GetCustomerAddressRequest$outboundSchema;
|
|
47
|
+
export const DeleteCustomerAddressResponse$inboundSchema: z.ZodType<void> = z.void();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { CustomerGroup, CustomerGroup$inboundSchema } from "../commerce/customer-group.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type ListCustomerGroupsRequest = ListRequest & { customerId: number };
|
|
7
|
+
export type ListCustomerGroupsResponse = Paginated<CustomerGroup>;
|
|
8
|
+
export const ListCustomerGroupsRequest$outboundSchema: z.ZodType<ListCustomerGroupsRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
9
|
+
export const ListCustomerGroupsResponse$inboundSchema = paginatedSchema("customer_groups", CustomerGroup$inboundSchema);
|
|
10
|
+
export type GetCustomerGroupRequest = { customerId: number; id: number; include?: string | undefined };
|
|
11
|
+
export type GetCustomerGroupResponse = CustomerGroup;
|
|
12
|
+
export const GetCustomerGroupRequest$outboundSchema: z.ZodType<GetCustomerGroupRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), include: z.string().optional() });
|
|
13
|
+
export const GetCustomerGroupResponse$inboundSchema = CustomerGroup$inboundSchema;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Invoice, Invoice$inboundSchema } from "../commerce/invoice.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type ListCustomerInvoicesRequest = ListRequest & { customerId: number };
|
|
7
|
+
export type ListCustomerInvoicesResponse = Paginated<Invoice>;
|
|
8
|
+
export const ListCustomerInvoicesRequest$outboundSchema: z.ZodType<ListCustomerInvoicesRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
9
|
+
export const ListCustomerInvoicesResponse$inboundSchema = paginatedSchema("invoices", Invoice$inboundSchema);
|
|
10
|
+
export type GetCustomerInvoiceRequest = { customerId: number; id: number; include?: string | undefined };
|
|
11
|
+
export type GetCustomerInvoiceResponse = Invoice;
|
|
12
|
+
export const GetCustomerInvoiceRequest$outboundSchema: z.ZodType<GetCustomerInvoiceRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), include: z.string().optional() });
|
|
13
|
+
export const GetCustomerInvoiceResponse$inboundSchema = Invoice$inboundSchema;
|
|
14
|
+
export type DownloadCustomerInvoicePdfRequest = { customerId: number; id: number };
|
|
15
|
+
export type DownloadCustomerInvoicePdfResponse = Uint8Array;
|
|
16
|
+
export const DownloadCustomerInvoicePdfRequest$outboundSchema: z.ZodType<DownloadCustomerInvoicePdfRequest> = z.object({ customerId: z.number().int(), id: z.number().int() });
|
|
17
|
+
export const DownloadCustomerInvoicePdfResponse$inboundSchema: z.ZodType<Uint8Array> = z.instanceof(Uint8Array);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Mandate, Mandate$inboundSchema } from "../commerce/mandate.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type ListCustomerMandatesRequest = ListRequest & { customerId: number };
|
|
7
|
+
export type ListCustomerMandatesResponse = Paginated<Mandate>;
|
|
8
|
+
export const ListCustomerMandatesRequest$outboundSchema: z.ZodType<ListCustomerMandatesRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
9
|
+
export const ListCustomerMandatesResponse$inboundSchema = paginatedSchema("mandates", Mandate$inboundSchema);
|
|
10
|
+
|
|
11
|
+
export type GetCustomerMandateRequest = { customerId: number; id: number };
|
|
12
|
+
export type GetCustomerMandateResponse = Mandate;
|
|
13
|
+
export const GetCustomerMandateRequest$outboundSchema: z.ZodType<GetCustomerMandateRequest> = z.object({ customerId: z.number().int(), id: z.number().int() });
|
|
14
|
+
export const GetCustomerMandateResponse$inboundSchema = Mandate$inboundSchema;
|
|
15
|
+
|
|
16
|
+
export type CreateCustomerMandateRequest = { customerId: number; data: Record<string, unknown> };
|
|
17
|
+
export type CreateCustomerMandateResponse = Mandate;
|
|
18
|
+
export const CreateCustomerMandateRequest$outboundSchema: z.ZodType<CreateCustomerMandateRequest> = z.object({ customerId: z.number().int(), data: z.record(z.string(), z.unknown()) });
|
|
19
|
+
export const CreateCustomerMandateResponse$inboundSchema = Mandate$inboundSchema;
|
|
20
|
+
|
|
21
|
+
export type UpdateCustomerMandateRequest = { customerId: number; id: number; data: Record<string, unknown> };
|
|
22
|
+
export type UpdateCustomerMandateResponse = Mandate;
|
|
23
|
+
export const UpdateCustomerMandateRequest$outboundSchema: z.ZodType<UpdateCustomerMandateRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), data: z.record(z.string(), z.unknown()) });
|
|
24
|
+
export const UpdateCustomerMandateResponse$inboundSchema = Mandate$inboundSchema;
|
|
25
|
+
|
|
26
|
+
export type DeleteCustomerMandateRequest = { customerId: number; id: number };
|
|
27
|
+
export type DeleteCustomerMandateResponse = void;
|
|
28
|
+
export const DeleteCustomerMandateRequest$outboundSchema: z.ZodType<DeleteCustomerMandateRequest> = GetCustomerMandateRequest$outboundSchema;
|
|
29
|
+
export const DeleteCustomerMandateResponse$inboundSchema: z.ZodType<void> = z.void();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Order, Order$inboundSchema } from "../commerce/order.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type ListCustomerOrdersRequest = ListRequest & { customerId: number };
|
|
7
|
+
export type ListCustomerOrdersResponse = Paginated<Order>;
|
|
8
|
+
export const ListCustomerOrdersRequest$outboundSchema: z.ZodType<ListCustomerOrdersRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
9
|
+
export const ListCustomerOrdersResponse$inboundSchema = paginatedSchema("orders", Order$inboundSchema);
|
|
10
|
+
export type GetCustomerOrderRequest = { customerId: number; id: number; include?: string | undefined };
|
|
11
|
+
export type GetCustomerOrderResponse = Order;
|
|
12
|
+
export const GetCustomerOrderRequest$outboundSchema: z.ZodType<GetCustomerOrderRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), include: z.string().optional() });
|
|
13
|
+
export const GetCustomerOrderResponse$inboundSchema = Order$inboundSchema;
|
|
14
|
+
export type CreateCustomerOrderRequest = { customerId: number; data: Record<string, unknown> };
|
|
15
|
+
export type CreateCustomerOrderResponse = Order;
|
|
16
|
+
export const CreateCustomerOrderRequest$outboundSchema: z.ZodType<CreateCustomerOrderRequest> = z.object({ customerId: z.number().int(), data: z.record(z.string(), z.unknown()) });
|
|
17
|
+
export const CreateCustomerOrderResponse$inboundSchema = Order$inboundSchema;
|
|
18
|
+
export type UpdateCustomerOrderRequest = { customerId: number; id: number; data: Record<string, unknown> };
|
|
19
|
+
export type UpdateCustomerOrderResponse = Order;
|
|
20
|
+
export const UpdateCustomerOrderRequest$outboundSchema: z.ZodType<UpdateCustomerOrderRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), data: z.record(z.string(), z.unknown()) });
|
|
21
|
+
export const UpdateCustomerOrderResponse$inboundSchema = Order$inboundSchema;
|
|
22
|
+
export type DeleteCustomerOrderRequest = { customerId: number; id: number };
|
|
23
|
+
export type DeleteCustomerOrderResponse = void;
|
|
24
|
+
export const DeleteCustomerOrderRequest$outboundSchema: z.ZodType<DeleteCustomerOrderRequest> = z.object({ customerId: z.number().int(), id: z.number().int() });
|
|
25
|
+
export const DeleteCustomerOrderResponse$inboundSchema: z.ZodType<void> = z.void();
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { CurrencyAmount$outboundSchema } from "../common/amount.js";
|
|
3
|
+
import { Payment, Payment$inboundSchema } from "../commerce/payment.js";
|
|
4
|
+
import { Paginated } from "../pagination.js";
|
|
5
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
6
|
+
|
|
7
|
+
export type PaymentInput = {
|
|
8
|
+
type?: string | undefined;
|
|
9
|
+
paymentmethodId: number;
|
|
10
|
+
issuerId?: number | null | undefined;
|
|
11
|
+
redirectUrl: string;
|
|
12
|
+
customerId?: number | null | undefined;
|
|
13
|
+
orderId?: number | undefined;
|
|
14
|
+
mandateId?: number | null | undefined;
|
|
15
|
+
amount?: z.infer<typeof CurrencyAmount$outboundSchema> | undefined;
|
|
16
|
+
invoiceId?: number | null | undefined;
|
|
17
|
+
details?: { cardToken?: string | undefined } | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const PaymentInput$outboundSchema = z.object({
|
|
21
|
+
type: z.string().optional(), paymentmethodId: z.number().int(), issuerId: z.number().int().nullable().optional(), redirectUrl: z.string().url(),
|
|
22
|
+
customerId: z.number().int().nullable().optional(), orderId: z.number().int().optional(), mandateId: z.number().int().nullable().optional(),
|
|
23
|
+
amount: CurrencyAmount$outboundSchema.optional(), invoiceId: z.number().int().nullable().optional(), details: z.object({ cardToken: z.string().optional() }).optional(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type ListCustomerPaymentsRequest = ListRequest & { customerId: number };
|
|
27
|
+
export type ListCustomerPaymentsResponse = Paginated<Payment>;
|
|
28
|
+
export const ListCustomerPaymentsRequest$outboundSchema: z.ZodType<ListCustomerPaymentsRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
29
|
+
export const ListCustomerPaymentsResponse$inboundSchema = paginatedSchema("payments", Payment$inboundSchema);
|
|
30
|
+
export type GetCustomerPaymentRequest = { customerId: number; id: number };
|
|
31
|
+
export type GetCustomerPaymentResponse = Payment;
|
|
32
|
+
export const GetCustomerPaymentRequest$outboundSchema: z.ZodType<GetCustomerPaymentRequest> = z.object({ customerId: z.number().int(), id: z.number().int() });
|
|
33
|
+
export const GetCustomerPaymentResponse$inboundSchema = Payment$inboundSchema;
|
|
34
|
+
export type CreateCustomerPaymentRequest = { customerId: number; include?: string | undefined; data: Omit<PaymentInput, "customerId"> };
|
|
35
|
+
export type CreateCustomerPaymentResponse = Payment;
|
|
36
|
+
export const CreateCustomerPaymentRequest$outboundSchema: z.ZodType<CreateCustomerPaymentRequest> = z.object({ customerId: z.number().int(), include: z.string().optional(), data: PaymentInput$outboundSchema.omit({ customerId: true }) });
|
|
37
|
+
export const CreateCustomerPaymentResponse$inboundSchema = Payment$inboundSchema;
|
|
38
|
+
export type DeleteCustomerPaymentRequest = { customerId: number; id: number };
|
|
39
|
+
export type DeleteCustomerPaymentResponse = void;
|
|
40
|
+
export const DeleteCustomerPaymentRequest$outboundSchema: z.ZodType<DeleteCustomerPaymentRequest> = GetCustomerPaymentRequest$outboundSchema;
|
|
41
|
+
export const DeleteCustomerPaymentResponse$inboundSchema: z.ZodType<void> = z.void();
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Product, Product$inboundSchema } from "../commerce/product.js";
|
|
3
|
+
import { Subscription, Subscription$inboundSchema } from "../commerce/subscription.js";
|
|
4
|
+
import { Paginated } from "../pagination.js";
|
|
5
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
6
|
+
|
|
7
|
+
export type ListCustomerSubscriptionsRequest = ListRequest & { customerId: number };
|
|
8
|
+
export type ListCustomerSubscriptionsResponse = Paginated<Subscription>;
|
|
9
|
+
export const ListCustomerSubscriptionsRequest$outboundSchema: z.ZodType<ListCustomerSubscriptionsRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int() });
|
|
10
|
+
export const ListCustomerSubscriptionsResponse$inboundSchema = paginatedSchema("subscriptions", Subscription$inboundSchema);
|
|
11
|
+
|
|
12
|
+
export type GetCustomerSubscriptionRequest = { customerId: number; id: number; include?: string | undefined };
|
|
13
|
+
export type GetCustomerSubscriptionResponse = Subscription;
|
|
14
|
+
export const GetCustomerSubscriptionRequest$outboundSchema: z.ZodType<GetCustomerSubscriptionRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), include: z.string().optional() });
|
|
15
|
+
export const GetCustomerSubscriptionResponse$inboundSchema = Subscription$inboundSchema;
|
|
16
|
+
|
|
17
|
+
export type CreateCustomerSubscriptionRequest = { customerId: number; data: Record<string, unknown> };
|
|
18
|
+
export type CreateCustomerSubscriptionResponse = Subscription;
|
|
19
|
+
export const CreateCustomerSubscriptionRequest$outboundSchema: z.ZodType<CreateCustomerSubscriptionRequest> = z.object({ customerId: z.number().int(), data: z.record(z.string(), z.unknown()) });
|
|
20
|
+
export const CreateCustomerSubscriptionResponse$inboundSchema = Subscription$inboundSchema;
|
|
21
|
+
|
|
22
|
+
export type UpdateCustomerSubscriptionRequest = { customerId: number; id: number; data: { paused?: boolean | undefined } };
|
|
23
|
+
export type UpdateCustomerSubscriptionResponse = Subscription;
|
|
24
|
+
export const UpdateCustomerSubscriptionRequest$outboundSchema: z.ZodType<UpdateCustomerSubscriptionRequest> = z.object({ customerId: z.number().int(), id: z.number().int(), data: z.object({ paused: z.boolean().optional() }) });
|
|
25
|
+
export const UpdateCustomerSubscriptionResponse$inboundSchema = Subscription$inboundSchema;
|
|
26
|
+
|
|
27
|
+
export type DeleteCustomerSubscriptionRequest = { customerId: number; id: number };
|
|
28
|
+
export type DeleteCustomerSubscriptionResponse = void;
|
|
29
|
+
export const DeleteCustomerSubscriptionRequest$outboundSchema: z.ZodType<DeleteCustomerSubscriptionRequest> = z.object({ customerId: z.number().int(), id: z.number().int() });
|
|
30
|
+
export const DeleteCustomerSubscriptionResponse$inboundSchema: z.ZodType<void> = z.void();
|
|
31
|
+
|
|
32
|
+
export type RenewCustomerSubscriptionRequest = { customerId: number; id: number; include?: string | undefined };
|
|
33
|
+
export type RenewCustomerSubscriptionResponse = Subscription;
|
|
34
|
+
export const RenewCustomerSubscriptionRequest$outboundSchema: z.ZodType<RenewCustomerSubscriptionRequest> = GetCustomerSubscriptionRequest$outboundSchema;
|
|
35
|
+
export const RenewCustomerSubscriptionResponse$inboundSchema = Subscription$inboundSchema;
|
|
36
|
+
|
|
37
|
+
export type ListCustomerSubscriptionTransitionProductsRequest = ListRequest & { customerId: number; subscriptionId: number };
|
|
38
|
+
export type ListCustomerSubscriptionTransitionProductsResponse = Paginated<Product>;
|
|
39
|
+
export const ListCustomerSubscriptionTransitionProductsRequest$outboundSchema: z.ZodType<ListCustomerSubscriptionTransitionProductsRequest> = ListRequest$outboundSchema.extend({ customerId: z.number().int(), subscriptionId: z.number().int() });
|
|
40
|
+
export const ListCustomerSubscriptionTransitionProductsResponse$inboundSchema = paginatedSchema("products", Product$inboundSchema);
|
|
41
|
+
|
|
42
|
+
export type GetCustomerSubscriptionTransitionProductRequest = { customerId: number; subscriptionId: number; productId: number; include?: string | undefined };
|
|
43
|
+
export type GetCustomerSubscriptionTransitionProductResponse = Product;
|
|
44
|
+
export const GetCustomerSubscriptionTransitionProductRequest$outboundSchema: z.ZodType<GetCustomerSubscriptionTransitionProductRequest> = z.object({ customerId: z.number().int(), subscriptionId: z.number().int(), productId: z.number().int(), include: z.string().optional() });
|
|
45
|
+
export const GetCustomerSubscriptionTransitionProductResponse$inboundSchema = Product$inboundSchema;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Customer, Customer$inboundSchema } from "../commerce/customer.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type CustomerOwnerInput = {
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
email: string;
|
|
10
|
+
password: string;
|
|
11
|
+
avatar?: string | null | undefined;
|
|
12
|
+
language?: string | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type CustomerInput = {
|
|
16
|
+
type: string;
|
|
17
|
+
name?: string | null | undefined;
|
|
18
|
+
email?: string | null | undefined;
|
|
19
|
+
phone?: string | null | undefined;
|
|
20
|
+
companyVat?: string | null | undefined;
|
|
21
|
+
ownerId?: number | null | undefined;
|
|
22
|
+
owner?: CustomerOwnerInput | undefined;
|
|
23
|
+
billingAddressId?: number | null | undefined;
|
|
24
|
+
billingAddress?: CustomerAddressInput | undefined;
|
|
25
|
+
shippingAddressId?: number | "billingAddress" | null | undefined;
|
|
26
|
+
shippingAddress?: CustomerAddressInput | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type CustomerAddressInput = {
|
|
30
|
+
firstName?: string | null | undefined;
|
|
31
|
+
lastName?: string | null | undefined;
|
|
32
|
+
street: string;
|
|
33
|
+
number: string;
|
|
34
|
+
additional: string;
|
|
35
|
+
postalCode: string;
|
|
36
|
+
city: string;
|
|
37
|
+
region?: string | null | undefined;
|
|
38
|
+
country: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type ListCustomersRequest = ListRequest;
|
|
42
|
+
export type ListCustomersResponse = Paginated<Customer>;
|
|
43
|
+
export const ListCustomersRequest$outboundSchema: z.ZodType<ListCustomersRequest> = ListRequest$outboundSchema;
|
|
44
|
+
export const ListCustomersResponse$inboundSchema: z.ZodType<ListCustomersResponse> = paginatedSchema("customers", Customer$inboundSchema);
|
|
45
|
+
|
|
46
|
+
export type GetCustomerRequest = { id: number; include?: string | undefined };
|
|
47
|
+
export type GetCustomerResponse = Customer;
|
|
48
|
+
export const GetCustomerRequest$outboundSchema: z.ZodType<GetCustomerRequest> = z.object({ id: z.number().int(), include: z.string().optional() });
|
|
49
|
+
export const GetCustomerResponse$inboundSchema: z.ZodType<GetCustomerResponse> = Customer$inboundSchema;
|
|
50
|
+
|
|
51
|
+
export type CreateCustomerRequest = { data: CustomerInput };
|
|
52
|
+
export type CreateCustomerResponse = Customer;
|
|
53
|
+
const CustomerInput$outboundSchema = z.object({
|
|
54
|
+
type: z.string(), name: z.string().nullable().optional(), email: z.string().email().nullable().optional(),
|
|
55
|
+
phone: z.string().nullable().optional(), companyVat: z.string().nullable().optional(), ownerId: z.number().int().nullable().optional(),
|
|
56
|
+
owner: z.object({ firstName: z.string(), lastName: z.string(), email: z.string().email(), password: z.string(), avatar: z.string().url().nullable().optional(), language: z.string().length(2).nullable().optional() }).optional(),
|
|
57
|
+
billingAddressId: z.number().int().nullable().optional(), billingAddress: z.object({ firstName: z.string().nullable().optional(), lastName: z.string().nullable().optional(), street: z.string(), number: z.string(), additional: z.string(), postalCode: z.string(), city: z.string(), region: z.string().nullable().optional(), country: z.string() }).optional(),
|
|
58
|
+
shippingAddressId: z.union([z.number().int(), z.literal("billingAddress"), z.null()]).optional(), shippingAddress: z.object({ firstName: z.string().nullable().optional(), lastName: z.string().nullable().optional(), street: z.string(), number: z.string(), additional: z.string(), postalCode: z.string(), city: z.string(), region: z.string().nullable().optional(), country: z.string() }).optional(),
|
|
59
|
+
});
|
|
60
|
+
export const CreateCustomerRequest$outboundSchema: z.ZodType<CreateCustomerRequest> = z.object({
|
|
61
|
+
data: CustomerInput$outboundSchema,
|
|
62
|
+
});
|
|
63
|
+
export const CreateCustomerResponse$inboundSchema: z.ZodType<CreateCustomerResponse> = Customer$inboundSchema;
|
|
64
|
+
|
|
65
|
+
export type CustomerUpdateInput = { [Key in keyof Omit<CustomerInput, "owner" | "billingAddress" | "shippingAddress">]?: CustomerInput[Key] | undefined };
|
|
66
|
+
export type UpdateCustomerRequest = { id: number; data: CustomerUpdateInput };
|
|
67
|
+
export type UpdateCustomerResponse = Customer;
|
|
68
|
+
export const UpdateCustomerRequest$outboundSchema: z.ZodType<UpdateCustomerRequest> = z.object({
|
|
69
|
+
id: z.number().int(),
|
|
70
|
+
data: CustomerInput$outboundSchema.partial().omit({ owner: true, billingAddress: true, shippingAddress: true }),
|
|
71
|
+
});
|
|
72
|
+
export const UpdateCustomerResponse$inboundSchema: z.ZodType<UpdateCustomerResponse> = Customer$inboundSchema;
|
|
@@ -85,3 +85,18 @@ export const GetInvoiceRequest$outboundSchema: z.ZodType<
|
|
|
85
85
|
export const GetInvoiceResponse$inboundSchema: z.ZodType<
|
|
86
86
|
GetInvoiceResponse
|
|
87
87
|
> = Invoice$inboundSchema;
|
|
88
|
+
|
|
89
|
+
export type CreateInvoiceRequest = { data: Record<string, unknown> };
|
|
90
|
+
export type CreateInvoiceResponse = Invoice;
|
|
91
|
+
export const CreateInvoiceRequest$outboundSchema: z.ZodType<CreateInvoiceRequest> = z.object({ data: z.record(z.string(), z.unknown()) });
|
|
92
|
+
export const CreateInvoiceResponse$inboundSchema = Invoice$inboundSchema;
|
|
93
|
+
|
|
94
|
+
export type UpdateInvoiceRequest = { id: number; data: Record<string, unknown> };
|
|
95
|
+
export type UpdateInvoiceResponse = Invoice;
|
|
96
|
+
export const UpdateInvoiceRequest$outboundSchema: z.ZodType<UpdateInvoiceRequest> = z.object({ id: z.number().int(), data: z.record(z.string(), z.unknown()) });
|
|
97
|
+
export const UpdateInvoiceResponse$inboundSchema = Invoice$inboundSchema;
|
|
98
|
+
|
|
99
|
+
export type DownloadInvoicePdfRequest = { id: number };
|
|
100
|
+
export type DownloadInvoicePdfResponse = Uint8Array;
|
|
101
|
+
export const DownloadInvoicePdfRequest$outboundSchema: z.ZodType<DownloadInvoicePdfRequest> = z.object({ id: z.number().int() });
|
|
102
|
+
export const DownloadInvoicePdfResponse$inboundSchema: z.ZodType<Uint8Array> = z.instanceof(Uint8Array);
|
|
@@ -6,6 +6,7 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { buildPaginated, Paginated } from "../pagination.js";
|
|
7
7
|
import { Payment, Payment$inboundSchema } from "../commerce/payment.js";
|
|
8
8
|
import { HalLinks$inboundSchema } from "../hal.js";
|
|
9
|
+
import { PaymentInput, PaymentInput$outboundSchema } from "./commerce-customer-payments.js";
|
|
9
10
|
|
|
10
11
|
export type ListOrderPaymentsRequest = {
|
|
11
12
|
/**
|
|
@@ -134,3 +135,24 @@ export const GetPaymentRequest$outboundSchema: z.ZodType<
|
|
|
134
135
|
export const GetPaymentResponse$inboundSchema: z.ZodType<
|
|
135
136
|
GetPaymentResponse
|
|
136
137
|
> = Payment$inboundSchema;
|
|
138
|
+
|
|
139
|
+
export type CreatePaymentRequest = { include?: string | undefined; data: PaymentInput };
|
|
140
|
+
export type CreatePaymentResponse = Payment;
|
|
141
|
+
export const CreatePaymentRequest$outboundSchema: z.ZodType<CreatePaymentRequest> = z.object({ include: z.string().optional(), data: PaymentInput$outboundSchema });
|
|
142
|
+
export const CreatePaymentResponse$inboundSchema = Payment$inboundSchema;
|
|
143
|
+
|
|
144
|
+
export type CreateOrderPaymentRequest = {
|
|
145
|
+
orderId: string;
|
|
146
|
+
data: Pick<PaymentInput, "type" | "paymentmethodId" | "issuerId" | "mandateId" | "redirectUrl" | "details">;
|
|
147
|
+
};
|
|
148
|
+
export type CreateOrderPaymentResponse = Payment;
|
|
149
|
+
export const CreateOrderPaymentRequest$outboundSchema: z.ZodType<CreateOrderPaymentRequest> = z.object({
|
|
150
|
+
orderId: z.string(),
|
|
151
|
+
data: PaymentInput$outboundSchema.pick({ type: true, paymentmethodId: true, issuerId: true, mandateId: true, redirectUrl: true, details: true }),
|
|
152
|
+
});
|
|
153
|
+
export const CreateOrderPaymentResponse$inboundSchema = Payment$inboundSchema;
|
|
154
|
+
|
|
155
|
+
export type GetOrderPaymentRequest = { orderId: string; id: number };
|
|
156
|
+
export type GetOrderPaymentResponse = Payment;
|
|
157
|
+
export const GetOrderPaymentRequest$outboundSchema: z.ZodType<GetOrderPaymentRequest> = z.object({ orderId: z.string(), id: z.number().int() });
|
|
158
|
+
export const GetOrderPaymentResponse$inboundSchema = Payment$inboundSchema;
|
|
@@ -144,3 +144,8 @@ export const ListProductOffersResponse$inboundSchema: z.ZodType<
|
|
|
144
144
|
v._links,
|
|
145
145
|
)
|
|
146
146
|
);
|
|
147
|
+
|
|
148
|
+
export type GetProductOfferRequest = { productId: number; id: number };
|
|
149
|
+
export type GetProductOfferResponse = ProductOffer;
|
|
150
|
+
export const GetProductOfferRequest$outboundSchema: z.ZodType<GetProductOfferRequest> = z.object({ productId: z.number().int(), id: z.number().int() });
|
|
151
|
+
export const GetProductOfferResponse$inboundSchema = ProductOffer$inboundSchema;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ShippingClass, ShippingClass$inboundSchema } from "../commerce/shipping-class.js";
|
|
3
|
+
import { Paginated } from "../pagination.js";
|
|
4
|
+
import { ListRequest, ListRequest$outboundSchema, paginatedSchema } from "./helpers.js";
|
|
5
|
+
|
|
6
|
+
export type ListShippingClassesRequest = ListRequest;
|
|
7
|
+
export type ListShippingClassesResponse = Paginated<ShippingClass>;
|
|
8
|
+
export const ListShippingClassesRequest$outboundSchema: z.ZodType<ListShippingClassesRequest> = ListRequest$outboundSchema;
|
|
9
|
+
export const ListShippingClassesResponse$inboundSchema = paginatedSchema("shipping_classes", ShippingClass$inboundSchema);
|
|
10
|
+
export type GetShippingClassRequest = { id: number };
|
|
11
|
+
export type GetShippingClassResponse = ShippingClass;
|
|
12
|
+
export const GetShippingClassRequest$outboundSchema: z.ZodType<GetShippingClassRequest> = z.object({ id: z.number().int() });
|
|
13
|
+
export const GetShippingClassResponse$inboundSchema = ShippingClass$inboundSchema;
|