@shopify/shopify-api 3.0.0-rc.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -4
- package/dist/base-rest-resource.d.ts.map +1 -1
- package/dist/base-rest-resource.js +38 -59
- package/dist/base-types.d.ts +0 -1
- package/dist/base-types.d.ts.map +1 -1
- package/dist/base-types.js +0 -1
- package/dist/clients/http_client/http_client.d.ts.map +1 -1
- package/dist/clients/http_client/http_client.js +28 -6
- package/dist/error.d.ts +46 -30
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +14 -16
- package/dist/rest-resources/2021-07/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2021-07/access_scope.js +1 -1
- package/dist/rest-resources/2021-07/android_pay_key.js +5 -5
- package/dist/rest-resources/2021-07/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2021-07/application_charge.js +6 -6
- package/dist/rest-resources/2021-07/application_credit.js +6 -6
- package/dist/rest-resources/2021-07/article.d.ts +6 -9
- package/dist/rest-resources/2021-07/article.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/article.js +36 -37
- package/dist/rest-resources/2021-07/asset.js +8 -8
- package/dist/rest-resources/2021-07/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2021-07/balance.js +1 -1
- package/dist/rest-resources/2021-07/blog.js +11 -11
- package/dist/rest-resources/2021-07/cancellation_request.js +7 -7
- package/dist/rest-resources/2021-07/carrier_service.js +7 -7
- package/dist/rest-resources/2021-07/checkout.d.ts +3 -4
- package/dist/rest-resources/2021-07/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/checkout.js +11 -13
- package/dist/rest-resources/2021-07/collect.js +9 -9
- package/dist/rest-resources/2021-07/collection.js +7 -7
- package/dist/rest-resources/2021-07/collection_listing.js +11 -11
- package/dist/rest-resources/2021-07/comment.d.ts +6 -6
- package/dist/rest-resources/2021-07/comment.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/comment.js +27 -27
- package/dist/rest-resources/2021-07/country.js +11 -11
- package/dist/rest-resources/2021-07/currency.js +1 -1
- package/dist/rest-resources/2021-07/custom_collection.js +11 -11
- package/dist/rest-resources/2021-07/customer.d.ts +12 -19
- package/dist/rest-resources/2021-07/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/customer.js +38 -61
- package/dist/rest-resources/2021-07/customer_address.d.ts +5 -5
- package/dist/rest-resources/2021-07/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/customer_address.js +26 -26
- package/dist/rest-resources/2021-07/customer_saved_search.js +14 -14
- package/dist/rest-resources/2021-07/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2021-07/discount_code.d.ts +6 -6
- package/dist/rest-resources/2021-07/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/discount_code.js +37 -37
- package/dist/rest-resources/2021-07/dispute.d.ts +1 -4
- package/dist/rest-resources/2021-07/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/dispute.js +5 -8
- package/dist/rest-resources/2021-07/draft_order.d.ts +2 -4
- package/dist/rest-resources/2021-07/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/draft_order.js +17 -19
- package/dist/rest-resources/2021-07/event.js +10 -10
- package/dist/rest-resources/2021-07/fulfillment.d.ts +2 -23
- package/dist/rest-resources/2021-07/fulfillment.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/fulfillment.js +13 -86
- package/dist/rest-resources/2021-07/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-07/fulfillment_order.js +16 -16
- package/dist/rest-resources/2021-07/fulfillment_request.js +7 -7
- package/dist/rest-resources/2021-07/fulfillment_service.js +8 -8
- package/dist/rest-resources/2021-07/gift_card.d.ts +2 -8
- package/dist/rest-resources/2021-07/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/gift_card.js +13 -18
- package/dist/rest-resources/2021-07/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2021-07/image.js +13 -13
- package/dist/rest-resources/2021-07/inventory_item.js +5 -5
- package/dist/rest-resources/2021-07/inventory_level.js +10 -10
- package/dist/rest-resources/2021-07/location.d.ts +2 -8
- package/dist/rest-resources/2021-07/location.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/location.js +7 -12
- package/dist/rest-resources/2021-07/locations_for_move.js +2 -2
- package/dist/rest-resources/2021-07/marketing_event.js +12 -12
- package/dist/rest-resources/2021-07/metafield.d.ts +54 -5
- package/dist/rest-resources/2021-07/metafield.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/metafield.js +89 -29
- package/dist/rest-resources/2021-07/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-07/order.d.ts +12 -10
- package/dist/rest-resources/2021-07/order.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/order.js +37 -37
- package/dist/rest-resources/2021-07/order_risk.js +8 -8
- package/dist/rest-resources/2021-07/page.js +12 -12
- package/dist/rest-resources/2021-07/payment.js +9 -9
- package/dist/rest-resources/2021-07/payment_gateway.js +7 -7
- package/dist/rest-resources/2021-07/payment_transaction.js +3 -3
- package/dist/rest-resources/2021-07/payout.d.ts +1 -4
- package/dist/rest-resources/2021-07/payout.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/payout.js +5 -8
- package/dist/rest-resources/2021-07/policy.js +1 -1
- package/dist/rest-resources/2021-07/price_rule.js +9 -9
- package/dist/rest-resources/2021-07/product.js +13 -13
- package/dist/rest-resources/2021-07/product_listing.d.ts +4 -4
- package/dist/rest-resources/2021-07/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/product_listing.js +25 -25
- package/dist/rest-resources/2021-07/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2021-07/province.js +9 -9
- package/dist/rest-resources/2021-07/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2021-07/redirect.js +11 -11
- package/dist/rest-resources/2021-07/refund.js +11 -11
- package/dist/rest-resources/2021-07/report.js +9 -9
- package/dist/rest-resources/2021-07/resource_feedback.js +2 -2
- package/dist/rest-resources/2021-07/script_tag.js +11 -11
- package/dist/rest-resources/2021-07/shipping_zone.js +4 -4
- package/dist/rest-resources/2021-07/shop.d.ts +4 -12
- package/dist/rest-resources/2021-07/shop.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/shop.js +3 -10
- package/dist/rest-resources/2021-07/smart_collection.js +14 -14
- package/dist/rest-resources/2021-07/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2021-07/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/storefront_access_token.js +5 -8
- package/dist/rest-resources/2021-07/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2021-07/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/tender_transaction.js +3 -6
- package/dist/rest-resources/2021-07/theme.js +9 -9
- package/dist/rest-resources/2021-07/transaction.js +9 -9
- package/dist/rest-resources/2021-07/usage_charge.js +7 -7
- package/dist/rest-resources/2021-07/user.js +5 -5
- package/dist/rest-resources/2021-07/variant.js +12 -12
- package/dist/rest-resources/2021-07/webhook.js +11 -11
- package/dist/rest-resources/2021-10/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2021-10/access_scope.js +1 -1
- package/dist/rest-resources/2021-10/android_pay_key.js +5 -5
- package/dist/rest-resources/2021-10/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2021-10/application_charge.js +6 -6
- package/dist/rest-resources/2021-10/application_credit.js +6 -6
- package/dist/rest-resources/2021-10/article.d.ts +6 -9
- package/dist/rest-resources/2021-10/article.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/article.js +36 -37
- package/dist/rest-resources/2021-10/asset.js +8 -8
- package/dist/rest-resources/2021-10/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2021-10/balance.js +1 -1
- package/dist/rest-resources/2021-10/blog.js +11 -11
- package/dist/rest-resources/2021-10/cancellation_request.js +7 -7
- package/dist/rest-resources/2021-10/carrier_service.js +7 -7
- package/dist/rest-resources/2021-10/checkout.d.ts +3 -4
- package/dist/rest-resources/2021-10/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/checkout.js +11 -13
- package/dist/rest-resources/2021-10/collect.js +9 -9
- package/dist/rest-resources/2021-10/collection.js +7 -7
- package/dist/rest-resources/2021-10/collection_listing.js +11 -11
- package/dist/rest-resources/2021-10/comment.d.ts +6 -6
- package/dist/rest-resources/2021-10/comment.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/comment.js +27 -27
- package/dist/rest-resources/2021-10/country.js +11 -11
- package/dist/rest-resources/2021-10/currency.js +1 -1
- package/dist/rest-resources/2021-10/custom_collection.js +11 -11
- package/dist/rest-resources/2021-10/customer.d.ts +12 -19
- package/dist/rest-resources/2021-10/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/customer.js +38 -61
- package/dist/rest-resources/2021-10/customer_address.d.ts +5 -5
- package/dist/rest-resources/2021-10/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/customer_address.js +26 -26
- package/dist/rest-resources/2021-10/customer_saved_search.js +14 -14
- package/dist/rest-resources/2021-10/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2021-10/discount_code.d.ts +6 -6
- package/dist/rest-resources/2021-10/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/discount_code.js +37 -37
- package/dist/rest-resources/2021-10/dispute.d.ts +1 -4
- package/dist/rest-resources/2021-10/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/dispute.js +5 -8
- package/dist/rest-resources/2021-10/draft_order.d.ts +2 -4
- package/dist/rest-resources/2021-10/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/draft_order.js +17 -19
- package/dist/rest-resources/2021-10/event.js +10 -10
- package/dist/rest-resources/2021-10/fulfillment.d.ts +2 -23
- package/dist/rest-resources/2021-10/fulfillment.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/fulfillment.js +13 -86
- package/dist/rest-resources/2021-10/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-10/fulfillment_order.d.ts +11 -11
- package/dist/rest-resources/2021-10/fulfillment_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/fulfillment_order.js +44 -44
- package/dist/rest-resources/2021-10/fulfillment_request.js +7 -7
- package/dist/rest-resources/2021-10/fulfillment_service.js +8 -8
- package/dist/rest-resources/2021-10/gift_card.d.ts +2 -8
- package/dist/rest-resources/2021-10/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/gift_card.js +13 -18
- package/dist/rest-resources/2021-10/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2021-10/image.js +13 -13
- package/dist/rest-resources/2021-10/inventory_item.js +5 -5
- package/dist/rest-resources/2021-10/inventory_level.js +10 -10
- package/dist/rest-resources/2021-10/location.d.ts +2 -8
- package/dist/rest-resources/2021-10/location.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/location.js +7 -12
- package/dist/rest-resources/2021-10/locations_for_move.js +2 -2
- package/dist/rest-resources/2021-10/marketing_event.js +12 -12
- package/dist/rest-resources/2021-10/metafield.d.ts +54 -5
- package/dist/rest-resources/2021-10/metafield.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/metafield.js +89 -29
- package/dist/rest-resources/2021-10/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-10/order.d.ts +12 -10
- package/dist/rest-resources/2021-10/order.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/order.js +37 -37
- package/dist/rest-resources/2021-10/order_risk.js +8 -8
- package/dist/rest-resources/2021-10/page.js +12 -12
- package/dist/rest-resources/2021-10/payment.js +9 -9
- package/dist/rest-resources/2021-10/payment_gateway.js +7 -7
- package/dist/rest-resources/2021-10/payment_transaction.js +3 -3
- package/dist/rest-resources/2021-10/payout.d.ts +1 -4
- package/dist/rest-resources/2021-10/payout.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/payout.js +5 -8
- package/dist/rest-resources/2021-10/policy.js +1 -1
- package/dist/rest-resources/2021-10/price_rule.js +9 -9
- package/dist/rest-resources/2021-10/product.js +13 -13
- package/dist/rest-resources/2021-10/product_listing.d.ts +4 -4
- package/dist/rest-resources/2021-10/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/product_listing.js +25 -25
- package/dist/rest-resources/2021-10/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2021-10/province.js +9 -9
- package/dist/rest-resources/2021-10/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2021-10/redirect.js +11 -11
- package/dist/rest-resources/2021-10/refund.js +11 -11
- package/dist/rest-resources/2021-10/report.js +9 -9
- package/dist/rest-resources/2021-10/resource_feedback.js +2 -2
- package/dist/rest-resources/2021-10/script_tag.js +11 -11
- package/dist/rest-resources/2021-10/shipping_zone.js +4 -4
- package/dist/rest-resources/2021-10/shop.d.ts +4 -12
- package/dist/rest-resources/2021-10/shop.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/shop.js +3 -10
- package/dist/rest-resources/2021-10/smart_collection.js +14 -14
- package/dist/rest-resources/2021-10/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2021-10/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/storefront_access_token.js +5 -8
- package/dist/rest-resources/2021-10/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2021-10/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/tender_transaction.js +3 -6
- package/dist/rest-resources/2021-10/theme.js +9 -9
- package/dist/rest-resources/2021-10/transaction.js +9 -9
- package/dist/rest-resources/2021-10/usage_charge.js +7 -7
- package/dist/rest-resources/2021-10/user.js +5 -5
- package/dist/rest-resources/2021-10/variant.js +12 -12
- package/dist/rest-resources/2021-10/webhook.js +11 -11
- package/dist/rest-resources/2022-01/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2022-01/access_scope.js +1 -1
- package/dist/rest-resources/2022-01/android_pay_key.js +5 -5
- package/dist/rest-resources/2022-01/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2022-01/application_charge.js +6 -6
- package/dist/rest-resources/2022-01/application_credit.js +6 -6
- package/dist/rest-resources/2022-01/article.d.ts +6 -9
- package/dist/rest-resources/2022-01/article.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/article.js +36 -37
- package/dist/rest-resources/2022-01/asset.js +8 -8
- package/dist/rest-resources/2022-01/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2022-01/balance.js +1 -1
- package/dist/rest-resources/2022-01/blog.js +11 -11
- package/dist/rest-resources/2022-01/cancellation_request.js +7 -7
- package/dist/rest-resources/2022-01/carrier_service.js +7 -7
- package/dist/rest-resources/2022-01/checkout.d.ts +3 -4
- package/dist/rest-resources/2022-01/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/checkout.js +11 -13
- package/dist/rest-resources/2022-01/collect.js +9 -9
- package/dist/rest-resources/2022-01/collection.js +7 -7
- package/dist/rest-resources/2022-01/collection_listing.js +11 -11
- package/dist/rest-resources/2022-01/comment.d.ts +6 -6
- package/dist/rest-resources/2022-01/comment.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/comment.js +27 -27
- package/dist/rest-resources/2022-01/country.js +11 -11
- package/dist/rest-resources/2022-01/currency.js +1 -1
- package/dist/rest-resources/2022-01/custom_collection.js +11 -11
- package/dist/rest-resources/2022-01/customer.d.ts +12 -19
- package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/customer.js +38 -61
- package/dist/rest-resources/2022-01/customer_address.d.ts +5 -5
- package/dist/rest-resources/2022-01/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/customer_address.js +26 -26
- package/dist/rest-resources/2022-01/customer_saved_search.js +14 -14
- package/dist/rest-resources/2022-01/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2022-01/discount_code.d.ts +6 -6
- package/dist/rest-resources/2022-01/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/discount_code.js +37 -37
- package/dist/rest-resources/2022-01/dispute.d.ts +1 -4
- package/dist/rest-resources/2022-01/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/dispute.js +5 -8
- package/dist/rest-resources/2022-01/draft_order.d.ts +2 -4
- package/dist/rest-resources/2022-01/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/draft_order.js +17 -19
- package/dist/rest-resources/2022-01/event.js +10 -10
- package/dist/rest-resources/2022-01/fulfillment.d.ts +2 -23
- package/dist/rest-resources/2022-01/fulfillment.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/fulfillment.js +13 -86
- package/dist/rest-resources/2022-01/fulfillment_event.js +10 -10
- package/dist/rest-resources/2022-01/fulfillment_order.d.ts +11 -11
- package/dist/rest-resources/2022-01/fulfillment_order.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/fulfillment_order.js +44 -44
- package/dist/rest-resources/2022-01/fulfillment_request.js +7 -7
- package/dist/rest-resources/2022-01/fulfillment_service.js +8 -8
- package/dist/rest-resources/2022-01/gift_card.d.ts +2 -8
- package/dist/rest-resources/2022-01/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/gift_card.js +13 -18
- package/dist/rest-resources/2022-01/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2022-01/image.js +13 -13
- package/dist/rest-resources/2022-01/inventory_item.js +5 -5
- package/dist/rest-resources/2022-01/inventory_level.js +10 -10
- package/dist/rest-resources/2022-01/location.d.ts +2 -8
- package/dist/rest-resources/2022-01/location.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/location.js +7 -12
- package/dist/rest-resources/2022-01/locations_for_move.js +2 -2
- package/dist/rest-resources/2022-01/marketing_event.js +12 -12
- package/dist/rest-resources/2022-01/metafield.d.ts +54 -5
- package/dist/rest-resources/2022-01/metafield.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/metafield.js +89 -29
- package/dist/rest-resources/2022-01/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2022-01/order.d.ts +12 -10
- package/dist/rest-resources/2022-01/order.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/order.js +37 -37
- package/dist/rest-resources/2022-01/order_risk.js +8 -8
- package/dist/rest-resources/2022-01/page.js +12 -12
- package/dist/rest-resources/2022-01/payment.js +9 -9
- package/dist/rest-resources/2022-01/payment_gateway.js +7 -7
- package/dist/rest-resources/2022-01/payment_transaction.js +3 -3
- package/dist/rest-resources/2022-01/payout.d.ts +1 -4
- package/dist/rest-resources/2022-01/payout.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/payout.js +5 -8
- package/dist/rest-resources/2022-01/policy.js +1 -1
- package/dist/rest-resources/2022-01/price_rule.js +9 -9
- package/dist/rest-resources/2022-01/product.js +13 -13
- package/dist/rest-resources/2022-01/product_listing.d.ts +4 -4
- package/dist/rest-resources/2022-01/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/product_listing.js +25 -25
- package/dist/rest-resources/2022-01/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2022-01/province.js +9 -9
- package/dist/rest-resources/2022-01/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2022-01/redirect.js +11 -11
- package/dist/rest-resources/2022-01/refund.js +11 -11
- package/dist/rest-resources/2022-01/report.js +9 -9
- package/dist/rest-resources/2022-01/resource_feedback.js +2 -2
- package/dist/rest-resources/2022-01/script_tag.js +11 -11
- package/dist/rest-resources/2022-01/shipping_zone.js +4 -4
- package/dist/rest-resources/2022-01/shop.d.ts +4 -12
- package/dist/rest-resources/2022-01/shop.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/shop.js +3 -10
- package/dist/rest-resources/2022-01/smart_collection.js +14 -14
- package/dist/rest-resources/2022-01/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2022-01/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/storefront_access_token.js +5 -8
- package/dist/rest-resources/2022-01/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2022-01/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/tender_transaction.js +3 -6
- package/dist/rest-resources/2022-01/theme.js +9 -9
- package/dist/rest-resources/2022-01/transaction.js +9 -9
- package/dist/rest-resources/2022-01/usage_charge.js +7 -7
- package/dist/rest-resources/2022-01/user.js +5 -5
- package/dist/rest-resources/2022-01/variant.js +12 -12
- package/dist/rest-resources/2022-01/webhook.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/abandoned_checkout.js +7 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/access_scope.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/android_pay_key.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/apple_pay_certificate.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/application_charge.js +7 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/application_credit.js +7 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/article.d.ts +6 -9
- package/dist/rest-resources/2022-04/article.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/article.js +37 -38
- package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/asset.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/asset.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/assigned_fulfillment_order.js +3 -3
- package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/balance.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/balance.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/blog.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/blog.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/cancellation_request.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/carrier_service.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/checkout.d.ts +3 -4
- package/dist/rest-resources/2022-04/checkout.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/checkout.js +12 -14
- package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/collect.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/collect.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/collection.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/collection.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/collection_listing.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/comment.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/comment.js +28 -28
- package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/country.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/country.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/currency.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/currency.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/custom_collection.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/customer.d.ts +18 -19
- package/dist/rest-resources/2022-04/customer.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/customer.js +39 -62
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts +5 -5
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_address.js +27 -27
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/customer_saved_search.js +15 -15
- package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/deprecated_api_call.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/discount_code.js +38 -38
- package/dist/rest-resources/{2021-04 → 2022-04}/dispute.d.ts +1 -4
- package/dist/rest-resources/2022-04/dispute.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/dispute.js +6 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.d.ts +5 -4
- package/dist/rest-resources/2022-04/draft_order.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/draft_order.js +18 -20
- package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/event.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/event.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment.d.ts +5 -23
- package/dist/rest-resources/2022-04/fulfillment.d.ts.map +1 -0
- package/dist/rest-resources/2022-04/fulfillment.js +106 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_event.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.d.ts +23 -0
- package/dist/rest-resources/2022-04/fulfillment_order.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_order.js +63 -17
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_request.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/fulfillment_service.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.d.ts +2 -8
- package/dist/rest-resources/2022-04/gift_card.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card.js +14 -19
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/gift_card_adjustment.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/image.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/image.js +14 -14
- package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/index.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/index.js +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_item.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/inventory_level.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/location.d.ts +2 -8
- package/dist/rest-resources/2022-04/location.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/location.js +8 -13
- package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/locations_for_move.js +3 -3
- package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/marketing_event.js +13 -13
- package/dist/rest-resources/2022-04/metafield.d.ts +112 -0
- package/dist/rest-resources/2022-04/metafield.d.ts.map +1 -0
- package/dist/rest-resources/2022-04/metafield.js +166 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/mobile_platform_application.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts +16 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/order.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/order.js +38 -38
- package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/order_risk.js +9 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/page.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/page.js +13 -13
- package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payment.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/payment.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_gateway.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/payment_transaction.js +4 -4
- package/dist/rest-resources/{2021-04 → 2022-04}/payout.d.ts +1 -4
- package/dist/rest-resources/2022-04/payout.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/payout.js +6 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/policy.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/policy.js +2 -2
- package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/price_rule.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/product.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/product.js +14 -14
- package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts +4 -4
- package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/product_listing.js +26 -26
- package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/product_resource_feedback.js +4 -4
- package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/province.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/province.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/recurring_application_charge.js +11 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/redirect.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/redirect.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/refund.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/refund.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/report.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/report.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/resource_feedback.js +3 -3
- package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/script_tag.js +12 -12
- package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/shipping_zone.js +5 -5
- package/dist/rest-resources/{2021-04 → 2022-04}/shop.d.ts +4 -12
- package/dist/rest-resources/2022-04/shop.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/shop.js +4 -11
- package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/smart_collection.js +15 -15
- package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2022-04/storefront_access_token.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/storefront_access_token.js +6 -9
- package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2022-04/tender_transaction.d.ts.map +1 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/tender_transaction.js +4 -7
- package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/theme.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/theme.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts +3 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/transaction.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/transaction.js +10 -10
- package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/usage_charge.js +8 -8
- package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/user.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/user.js +6 -6
- package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/variant.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/variant.js +13 -13
- package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts +0 -0
- package/dist/rest-resources/{2021-04 → 2022-04}/webhook.d.ts.map +1 -1
- package/dist/rest-resources/{2021-04 → 2022-04}/webhook.js +12 -12
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/webhooks/registry.d.ts.map +1 -1
- package/dist/webhooks/registry.js +3 -13
- package/package.json +1 -1
- package/dist/rest-resources/2021-04/article.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/checkout.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/customer.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/dispute.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/draft_order.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/fulfillment.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/fulfillment.js +0 -179
- package/dist/rest-resources/2021-04/fulfillment_order.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/gift_card.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/location.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/metafield.d.ts +0 -61
- package/dist/rest-resources/2021-04/metafield.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/metafield.js +0 -106
- package/dist/rest-resources/2021-04/payout.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/shop.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/storefront_access_token.d.ts.map +0 -1
- package/dist/rest-resources/2021-04/tender_transaction.d.ts.map +0 -1
|
@@ -10,78 +10,78 @@ var Metafield = /** @class */ (function (_super) {
|
|
|
10
10
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
11
|
}
|
|
12
12
|
Metafield.find = function (_a) {
|
|
13
|
-
var session = _a.session, id = _a.id, _b = _a.
|
|
13
|
+
var session = _a.session, id = _a.id, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l;
|
|
14
14
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
15
15
|
var result;
|
|
16
|
-
return tslib_1.__generator(this, function (
|
|
17
|
-
switch (
|
|
16
|
+
return tslib_1.__generator(this, function (_m) {
|
|
17
|
+
switch (_m.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Metafield.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
21
|
-
params: {
|
|
20
|
+
urlIds: { "id": id, "article_id": article_id, "blog_id": blog_id, "collection_id": collection_id, "customer_id": customer_id, "draft_order_id": draft_order_id, "order_id": order_id, "page_id": page_id, "product_image_id": product_image_id, "product_id": product_id, "variant_id": variant_id },
|
|
21
|
+
params: {},
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
|
-
result =
|
|
24
|
+
result = _m.sent();
|
|
25
25
|
return [2 /*return*/, result ? result[0] : null];
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Metafield.delete = function (_a) {
|
|
31
|
-
var session = _a.session, id = _a.id;
|
|
31
|
+
var session = _a.session, id = _a.id, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l;
|
|
32
32
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
33
33
|
var response;
|
|
34
|
-
return tslib_1.__generator(this, function (
|
|
35
|
-
switch (
|
|
34
|
+
return tslib_1.__generator(this, function (_m) {
|
|
35
|
+
switch (_m.label) {
|
|
36
36
|
case 0: return [4 /*yield*/, Metafield.request({
|
|
37
37
|
http_method: "delete",
|
|
38
38
|
operation: "delete",
|
|
39
39
|
session: session,
|
|
40
|
-
urlIds: { id: id },
|
|
40
|
+
urlIds: { "id": id, "article_id": article_id, "blog_id": blog_id, "collection_id": collection_id, "customer_id": customer_id, "draft_order_id": draft_order_id, "order_id": order_id, "page_id": page_id, "product_image_id": product_image_id, "product_id": product_id, "variant_id": variant_id },
|
|
41
41
|
params: {},
|
|
42
42
|
})];
|
|
43
43
|
case 1:
|
|
44
|
-
response =
|
|
44
|
+
response = _m.sent();
|
|
45
45
|
return [2 /*return*/, response ? response.body : null];
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
Metafield.all = function (_a) {
|
|
51
|
-
var session = _a.session, _b = _a.
|
|
51
|
+
var session = _a.session, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l, _m = _a.limit, limit = _m === void 0 ? null : _m, _o = _a.since_id, since_id = _o === void 0 ? null : _o, _p = _a.created_at_min, created_at_min = _p === void 0 ? null : _p, _q = _a.created_at_max, created_at_max = _q === void 0 ? null : _q, _r = _a.updated_at_min, updated_at_min = _r === void 0 ? null : _r, _s = _a.updated_at_max, updated_at_max = _s === void 0 ? null : _s, _t = _a.namespace, namespace = _t === void 0 ? null : _t, _u = _a.key, key = _u === void 0 ? null : _u, _v = _a.type, type = _v === void 0 ? null : _v, _w = _a.value_type, value_type = _w === void 0 ? null : _w, _x = _a.fields, fields = _x === void 0 ? null : _x, _y = _a.metafield, metafield = _y === void 0 ? null : _y, otherArgs = tslib_1.__rest(_a, ["session", "article_id", "blog_id", "collection_id", "customer_id", "draft_order_id", "order_id", "page_id", "product_image_id", "product_id", "variant_id", "limit", "since_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "namespace", "key", "type", "value_type", "fields", "metafield"]);
|
|
52
52
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
53
53
|
var response;
|
|
54
|
-
return tslib_1.__generator(this, function (
|
|
55
|
-
switch (
|
|
54
|
+
return tslib_1.__generator(this, function (_z) {
|
|
55
|
+
switch (_z.label) {
|
|
56
56
|
case 0: return [4 /*yield*/, Metafield.baseFind({
|
|
57
57
|
session: session,
|
|
58
|
-
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, namespace: namespace, key: key, type: type, value_type: value_type, fields: fields, metafield: metafield }, otherArgs),
|
|
58
|
+
urlIds: { "article_id": article_id, "blog_id": blog_id, "collection_id": collection_id, "customer_id": customer_id, "draft_order_id": draft_order_id, "order_id": order_id, "page_id": page_id, "product_image_id": product_image_id, "product_id": product_id, "variant_id": variant_id },
|
|
59
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "namespace": namespace, "key": key, "type": type, "value_type": value_type, "fields": fields, "metafield": metafield }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
|
-
response =
|
|
62
|
+
response = _z.sent();
|
|
63
63
|
return [2 /*return*/, response];
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
Metafield.count = function (_a) {
|
|
69
|
-
var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
|
|
69
|
+
var session = _a.session, _b = _a.article_id, article_id = _b === void 0 ? null : _b, _c = _a.blog_id, blog_id = _c === void 0 ? null : _c, _d = _a.collection_id, collection_id = _d === void 0 ? null : _d, _e = _a.customer_id, customer_id = _e === void 0 ? null : _e, _f = _a.draft_order_id, draft_order_id = _f === void 0 ? null : _f, _g = _a.order_id, order_id = _g === void 0 ? null : _g, _h = _a.page_id, page_id = _h === void 0 ? null : _h, _j = _a.product_image_id, product_image_id = _j === void 0 ? null : _j, _k = _a.product_id, product_id = _k === void 0 ? null : _k, _l = _a.variant_id, variant_id = _l === void 0 ? null : _l, otherArgs = tslib_1.__rest(_a, ["session", "article_id", "blog_id", "collection_id", "customer_id", "draft_order_id", "order_id", "page_id", "product_image_id", "product_id", "variant_id"]);
|
|
70
70
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
71
71
|
var response;
|
|
72
|
-
return tslib_1.__generator(this, function (
|
|
73
|
-
switch (
|
|
72
|
+
return tslib_1.__generator(this, function (_m) {
|
|
73
|
+
switch (_m.label) {
|
|
74
74
|
case 0: return [4 /*yield*/, Metafield.request({
|
|
75
75
|
http_method: "get",
|
|
76
76
|
operation: "count",
|
|
77
77
|
session: session,
|
|
78
|
-
urlIds: {},
|
|
78
|
+
urlIds: { "article_id": article_id, "blog_id": blog_id, "collection_id": collection_id, "customer_id": customer_id, "draft_order_id": draft_order_id, "order_id": order_id, "page_id": page_id, "product_image_id": product_image_id, "product_id": product_id, "variant_id": variant_id },
|
|
79
79
|
params: tslib_1.__assign({}, otherArgs),
|
|
80
80
|
body: {},
|
|
81
81
|
entity: null,
|
|
82
82
|
})];
|
|
83
83
|
case 1:
|
|
84
|
-
response =
|
|
84
|
+
response = _m.sent();
|
|
85
85
|
return [2 /*return*/, response ? response.body : null];
|
|
86
86
|
}
|
|
87
87
|
});
|
|
@@ -93,13 +93,73 @@ var Metafield = /** @class */ (function (_super) {
|
|
|
93
93
|
Metafield.HAS_ONE = {};
|
|
94
94
|
Metafield.HAS_MANY = {};
|
|
95
95
|
Metafield.PATHS = [
|
|
96
|
-
{ http_method: "
|
|
97
|
-
{ http_method: "
|
|
98
|
-
{ http_method: "
|
|
99
|
-
{ http_method: "
|
|
100
|
-
{ http_method: "
|
|
101
|
-
{ http_method: "
|
|
102
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "metafields/<id>.json" }
|
|
96
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["article_id", "id"], "path": "articles/<article_id>/metafields/<id>.json" },
|
|
97
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/metafields/<id>.json" },
|
|
98
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["collection_id", "id"], "path": "collections/<collection_id>/metafields/<id>.json" },
|
|
99
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/metafields/<id>.json" },
|
|
100
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["draft_order_id", "id"], "path": "draft_orders/<draft_order_id>/metafields/<id>.json" },
|
|
101
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "metafields/<id>.json" },
|
|
102
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["order_id", "id"], "path": "orders/<order_id>/metafields/<id>.json" },
|
|
103
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["page_id", "id"], "path": "pages/<page_id>/metafields/<id>.json" },
|
|
104
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["product_image_id", "id"], "path": "product_images/<product_image_id>/metafields/<id>.json" },
|
|
105
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["product_id", "id"], "path": "products/<product_id>/metafields/<id>.json" },
|
|
106
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["variant_id", "id"], "path": "variants/<variant_id>/metafields/<id>.json" },
|
|
107
|
+
{ "http_method": "get", "operation": "count", "ids": ["article_id"], "path": "articles/<article_id>/metafields/count.json" },
|
|
108
|
+
{ "http_method": "get", "operation": "count", "ids": ["blog_id"], "path": "blogs/<blog_id>/metafields/count.json" },
|
|
109
|
+
{ "http_method": "get", "operation": "count", "ids": ["collection_id"], "path": "collections/<collection_id>/metafields/count.json" },
|
|
110
|
+
{ "http_method": "get", "operation": "count", "ids": ["customer_id"], "path": "customers/<customer_id>/metafields/count.json" },
|
|
111
|
+
{ "http_method": "get", "operation": "count", "ids": ["draft_order_id"], "path": "draft_orders/<draft_order_id>/metafields/count.json" },
|
|
112
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "metafields/count.json" },
|
|
113
|
+
{ "http_method": "get", "operation": "count", "ids": ["order_id"], "path": "orders/<order_id>/metafields/count.json" },
|
|
114
|
+
{ "http_method": "get", "operation": "count", "ids": ["page_id"], "path": "pages/<page_id>/metafields/count.json" },
|
|
115
|
+
{ "http_method": "get", "operation": "count", "ids": ["product_image_id"], "path": "product_images/<product_image_id>/metafields/count.json" },
|
|
116
|
+
{ "http_method": "get", "operation": "count", "ids": ["product_id"], "path": "products/<product_id>/metafields/count.json" },
|
|
117
|
+
{ "http_method": "get", "operation": "count", "ids": ["variant_id"], "path": "variants/<variant_id>/metafields/count.json" },
|
|
118
|
+
{ "http_method": "get", "operation": "get", "ids": ["article_id"], "path": "articles/<article_id>/metafields.json" },
|
|
119
|
+
{ "http_method": "get", "operation": "get", "ids": ["article_id", "id"], "path": "articles/<article_id>/metafields/<id>.json" },
|
|
120
|
+
{ "http_method": "get", "operation": "get", "ids": ["blog_id"], "path": "blogs/<blog_id>/metafields.json" },
|
|
121
|
+
{ "http_method": "get", "operation": "get", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/metafields/<id>.json" },
|
|
122
|
+
{ "http_method": "get", "operation": "get", "ids": ["collection_id"], "path": "collections/<collection_id>/metafields.json" },
|
|
123
|
+
{ "http_method": "get", "operation": "get", "ids": ["collection_id", "id"], "path": "collections/<collection_id>/metafields/<id>.json" },
|
|
124
|
+
{ "http_method": "get", "operation": "get", "ids": ["customer_id"], "path": "customers/<customer_id>/metafields.json" },
|
|
125
|
+
{ "http_method": "get", "operation": "get", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/metafields/<id>.json" },
|
|
126
|
+
{ "http_method": "get", "operation": "get", "ids": ["draft_order_id"], "path": "draft_orders/<draft_order_id>/metafields.json" },
|
|
127
|
+
{ "http_method": "get", "operation": "get", "ids": ["draft_order_id", "id"], "path": "draft_orders/<draft_order_id>/metafields/<id>.json" },
|
|
128
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "metafields.json" },
|
|
129
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "metafields.json" },
|
|
130
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "metafields/<id>.json" },
|
|
131
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/metafields.json" },
|
|
132
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/metafields/<id>.json" },
|
|
133
|
+
{ "http_method": "get", "operation": "get", "ids": ["page_id"], "path": "pages/<page_id>/metafields.json" },
|
|
134
|
+
{ "http_method": "get", "operation": "get", "ids": ["page_id", "id"], "path": "pages/<page_id>/metafields/<id>.json" },
|
|
135
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_image_id"], "path": "product_images/<product_image_id>/metafields.json" },
|
|
136
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_image_id", "id"], "path": "product_images/<product_image_id>/metafields/<id>.json" },
|
|
137
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id"], "path": "products/<product_id>/metafields.json" },
|
|
138
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id", "id"], "path": "products/<product_id>/metafields/<id>.json" },
|
|
139
|
+
{ "http_method": "get", "operation": "get", "ids": ["variant_id"], "path": "variants/<variant_id>/metafields.json" },
|
|
140
|
+
{ "http_method": "get", "operation": "get", "ids": ["variant_id", "id"], "path": "variants/<variant_id>/metafields/<id>.json" },
|
|
141
|
+
{ "http_method": "post", "operation": "post", "ids": ["article_id"], "path": "articles/<article_id>/metafields.json" },
|
|
142
|
+
{ "http_method": "post", "operation": "post", "ids": ["blog_id"], "path": "blogs/<blog_id>/metafields.json" },
|
|
143
|
+
{ "http_method": "post", "operation": "post", "ids": ["collection_id"], "path": "collections/<collection_id>/metafields.json" },
|
|
144
|
+
{ "http_method": "post", "operation": "post", "ids": ["customer_id"], "path": "customers/<customer_id>/metafields.json" },
|
|
145
|
+
{ "http_method": "post", "operation": "post", "ids": ["draft_order_id"], "path": "draft_orders/<draft_order_id>/metafields.json" },
|
|
146
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "metafields.json" },
|
|
147
|
+
{ "http_method": "post", "operation": "post", "ids": ["order_id"], "path": "orders/<order_id>/metafields.json" },
|
|
148
|
+
{ "http_method": "post", "operation": "post", "ids": ["page_id"], "path": "pages/<page_id>/metafields.json" },
|
|
149
|
+
{ "http_method": "post", "operation": "post", "ids": ["product_image_id"], "path": "product_images/<product_image_id>/metafields.json" },
|
|
150
|
+
{ "http_method": "post", "operation": "post", "ids": ["product_id"], "path": "products/<product_id>/metafields.json" },
|
|
151
|
+
{ "http_method": "post", "operation": "post", "ids": ["variant_id"], "path": "variants/<variant_id>/metafields.json" },
|
|
152
|
+
{ "http_method": "put", "operation": "put", "ids": ["article_id", "id"], "path": "articles/<article_id>/metafields/<id>.json" },
|
|
153
|
+
{ "http_method": "put", "operation": "put", "ids": ["blog_id", "id"], "path": "blogs/<blog_id>/metafields/<id>.json" },
|
|
154
|
+
{ "http_method": "put", "operation": "put", "ids": ["collection_id", "id"], "path": "collections/<collection_id>/metafields/<id>.json" },
|
|
155
|
+
{ "http_method": "put", "operation": "put", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/metafields/<id>.json" },
|
|
156
|
+
{ "http_method": "put", "operation": "put", "ids": ["draft_order_id", "id"], "path": "draft_orders/<draft_order_id>/metafields/<id>.json" },
|
|
157
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "metafields/<id>.json" },
|
|
158
|
+
{ "http_method": "put", "operation": "put", "ids": ["order_id", "id"], "path": "orders/<order_id>/metafields/<id>.json" },
|
|
159
|
+
{ "http_method": "put", "operation": "put", "ids": ["page_id", "id"], "path": "pages/<page_id>/metafields/<id>.json" },
|
|
160
|
+
{ "http_method": "put", "operation": "put", "ids": ["product_image_id", "id"], "path": "product_images/<product_image_id>/metafields/<id>.json" },
|
|
161
|
+
{ "http_method": "put", "operation": "put", "ids": ["product_id", "id"], "path": "products/<product_id>/metafields/<id>.json" },
|
|
162
|
+
{ "http_method": "put", "operation": "put", "ids": ["variant_id", "id"], "path": "variants/<variant_id>/metafields/<id>.json" }
|
|
103
163
|
];
|
|
104
164
|
return Metafield;
|
|
105
165
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var MobilePlatformApplication = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, MobilePlatformApplication.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
21
|
params: {},
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
@@ -37,7 +37,7 @@ var MobilePlatformApplication = /** @class */ (function (_super) {
|
|
|
37
37
|
http_method: "delete",
|
|
38
38
|
operation: "delete",
|
|
39
39
|
session: session,
|
|
40
|
-
urlIds: { id: id },
|
|
40
|
+
urlIds: { "id": id },
|
|
41
41
|
params: {},
|
|
42
42
|
})];
|
|
43
43
|
case 1:
|
|
@@ -71,11 +71,11 @@ var MobilePlatformApplication = /** @class */ (function (_super) {
|
|
|
71
71
|
MobilePlatformApplication.HAS_ONE = {};
|
|
72
72
|
MobilePlatformApplication.HAS_MANY = {};
|
|
73
73
|
MobilePlatformApplication.PATHS = [
|
|
74
|
-
{ http_method: "
|
|
75
|
-
{ http_method: "
|
|
76
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "mobile_platform_applications/<id>.json" },
|
|
77
|
-
{ http_method: "
|
|
78
|
-
{ http_method: "
|
|
74
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" },
|
|
75
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "mobile_platform_applications.json" },
|
|
76
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" },
|
|
77
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "mobile_platform_applications.json" },
|
|
78
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" }
|
|
79
79
|
];
|
|
80
80
|
return MobilePlatformApplication;
|
|
81
81
|
}(base_rest_resource_1.default));
|
|
@@ -43,26 +43,26 @@ interface CountArgs {
|
|
|
43
43
|
financial_status?: unknown;
|
|
44
44
|
fulfillment_status?: unknown;
|
|
45
45
|
}
|
|
46
|
-
interface
|
|
46
|
+
interface CancelArgs {
|
|
47
47
|
[key: string]: unknown;
|
|
48
|
+
amount?: unknown;
|
|
49
|
+
currency?: unknown;
|
|
50
|
+
restock?: unknown;
|
|
51
|
+
reason?: unknown;
|
|
52
|
+
email?: unknown;
|
|
53
|
+
refund?: unknown;
|
|
48
54
|
body?: {
|
|
49
55
|
[key: string]: unknown;
|
|
50
56
|
} | null;
|
|
51
57
|
}
|
|
52
|
-
interface
|
|
58
|
+
interface CloseArgs {
|
|
53
59
|
[key: string]: unknown;
|
|
54
60
|
body?: {
|
|
55
61
|
[key: string]: unknown;
|
|
56
62
|
} | null;
|
|
57
63
|
}
|
|
58
|
-
interface
|
|
64
|
+
interface OpenArgs {
|
|
59
65
|
[key: string]: unknown;
|
|
60
|
-
amount?: unknown;
|
|
61
|
-
currency?: unknown;
|
|
62
|
-
restock?: unknown;
|
|
63
|
-
reason?: unknown;
|
|
64
|
-
email?: unknown;
|
|
65
|
-
refund?: unknown;
|
|
66
66
|
body?: {
|
|
67
67
|
[key: string]: unknown;
|
|
68
68
|
} | null;
|
|
@@ -82,9 +82,9 @@ export declare class Order extends Base {
|
|
|
82
82
|
static delete({ session, id }: DeleteArgs): Promise<unknown>;
|
|
83
83
|
static all({ session, ids, limit, since_id, created_at_min, created_at_max, updated_at_min, updated_at_max, processed_at_min, processed_at_max, attribution_app_id, status, financial_status, fulfillment_status, fields, ...otherArgs }: AllArgs): Promise<Order[]>;
|
|
84
84
|
static count({ session, created_at_min, created_at_max, updated_at_min, updated_at_max, status, financial_status, fulfillment_status, ...otherArgs }: CountArgs): Promise<unknown>;
|
|
85
|
+
cancel({ amount, currency, restock, reason, email, refund, body, ...otherArgs }: CancelArgs): Promise<unknown>;
|
|
85
86
|
close({ body, ...otherArgs }: CloseArgs): Promise<unknown>;
|
|
86
87
|
open({ body, ...otherArgs }: OpenArgs): Promise<unknown>;
|
|
87
|
-
cancel({ amount, currency, restock, reason, email, refund, body, ...otherArgs }: CancelArgs): Promise<unknown>;
|
|
88
88
|
line_items: {
|
|
89
89
|
[key: string]: unknown;
|
|
90
90
|
}[] | null;
|
|
@@ -176,7 +176,9 @@ export declare class Order extends Base {
|
|
|
176
176
|
shipping_lines: {
|
|
177
177
|
[key: string]: unknown;
|
|
178
178
|
}[] | null;
|
|
179
|
+
source_identifier: string | null;
|
|
179
180
|
source_name: string | null;
|
|
181
|
+
source_url: string | null;
|
|
180
182
|
subtotal_price: number | null;
|
|
181
183
|
subtotal_price_set: {
|
|
182
184
|
[key: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-10/order.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAA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OAAO,CAAA;KAAC,GAAG,IAAI,CAAC;IAC/C,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
|
|
@@ -21,8 +21,8 @@ var Order = /** @class */ (function (_super) {
|
|
|
21
21
|
switch (_c.label) {
|
|
22
22
|
case 0: return [4 /*yield*/, Order.baseFind({
|
|
23
23
|
session: session,
|
|
24
|
-
urlIds: { id: id },
|
|
25
|
-
params: { fields: fields },
|
|
24
|
+
urlIds: { "id": id },
|
|
25
|
+
params: { "fields": fields },
|
|
26
26
|
})];
|
|
27
27
|
case 1:
|
|
28
28
|
result = _c.sent();
|
|
@@ -41,7 +41,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
41
41
|
http_method: "delete",
|
|
42
42
|
operation: "delete",
|
|
43
43
|
session: session,
|
|
44
|
-
urlIds: { id: id },
|
|
44
|
+
urlIds: { "id": id },
|
|
45
45
|
params: {},
|
|
46
46
|
})];
|
|
47
47
|
case 1:
|
|
@@ -60,7 +60,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
60
60
|
case 0: return [4 /*yield*/, Order.baseFind({
|
|
61
61
|
session: session,
|
|
62
62
|
urlIds: {},
|
|
63
|
-
params: tslib_1.__assign({ ids: ids, limit: limit, since_id: since_id, created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, processed_at_min: processed_at_min, processed_at_max: processed_at_max, attribution_app_id: attribution_app_id, status: status, financial_status: financial_status, fulfillment_status: fulfillment_status, fields: fields }, otherArgs),
|
|
63
|
+
params: tslib_1.__assign({ "ids": ids, "limit": limit, "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "processed_at_min": processed_at_min, "processed_at_max": processed_at_max, "attribution_app_id": attribution_app_id, "status": status, "financial_status": financial_status, "fulfillment_status": fulfillment_status, "fields": fields }, otherArgs),
|
|
64
64
|
})];
|
|
65
65
|
case 1:
|
|
66
66
|
response = _r.sent();
|
|
@@ -80,7 +80,7 @@ var Order = /** @class */ (function (_super) {
|
|
|
80
80
|
operation: "count",
|
|
81
81
|
session: session,
|
|
82
82
|
urlIds: {},
|
|
83
|
-
params: tslib_1.__assign({ created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max, status: status, financial_status: financial_status, fulfillment_status: fulfillment_status }, otherArgs),
|
|
83
|
+
params: tslib_1.__assign({ "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "status": status, "financial_status": financial_status, "fulfillment_status": fulfillment_status }, otherArgs),
|
|
84
84
|
body: {},
|
|
85
85
|
entity: null,
|
|
86
86
|
})];
|
|
@@ -91,29 +91,29 @@ var Order = /** @class */ (function (_super) {
|
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
|
-
Order.prototype.
|
|
95
|
-
var _b = _a.
|
|
94
|
+
Order.prototype.cancel = function (_a) {
|
|
95
|
+
var _b = _a.amount, amount = _b === void 0 ? null : _b, _c = _a.currency, currency = _c === void 0 ? null : _c, _d = _a.restock, restock = _d === void 0 ? null : _d, _e = _a.reason, reason = _e === void 0 ? null : _e, _f = _a.email, email = _f === void 0 ? null : _f, _g = _a.refund, refund = _g === void 0 ? null : _g, _h = _a.body, body = _h === void 0 ? null : _h, otherArgs = tslib_1.__rest(_a, ["amount", "currency", "restock", "reason", "email", "refund", "body"]);
|
|
96
96
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
97
97
|
var response;
|
|
98
|
-
return tslib_1.__generator(this, function (
|
|
99
|
-
switch (
|
|
98
|
+
return tslib_1.__generator(this, function (_j) {
|
|
99
|
+
switch (_j.label) {
|
|
100
100
|
case 0: return [4 /*yield*/, Order.request({
|
|
101
101
|
http_method: "post",
|
|
102
|
-
operation: "
|
|
102
|
+
operation: "cancel",
|
|
103
103
|
session: this.session,
|
|
104
|
-
urlIds: { id: this.id },
|
|
105
|
-
params: tslib_1.__assign({}, otherArgs),
|
|
104
|
+
urlIds: { "id": this.id },
|
|
105
|
+
params: tslib_1.__assign({ "amount": amount, "currency": currency, "restock": restock, "reason": reason, "email": email, "refund": refund }, otherArgs),
|
|
106
106
|
body: body,
|
|
107
107
|
entity: this,
|
|
108
108
|
})];
|
|
109
109
|
case 1:
|
|
110
|
-
response =
|
|
110
|
+
response = _j.sent();
|
|
111
111
|
return [2 /*return*/, response ? response.body : null];
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
|
-
Order.prototype.
|
|
116
|
+
Order.prototype.close = function (_a) {
|
|
117
117
|
var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
|
|
118
118
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
119
119
|
var response;
|
|
@@ -121,9 +121,9 @@ var Order = /** @class */ (function (_super) {
|
|
|
121
121
|
switch (_c.label) {
|
|
122
122
|
case 0: return [4 /*yield*/, Order.request({
|
|
123
123
|
http_method: "post",
|
|
124
|
-
operation: "
|
|
124
|
+
operation: "close",
|
|
125
125
|
session: this.session,
|
|
126
|
-
urlIds: { id: this.id },
|
|
126
|
+
urlIds: { "id": this.id },
|
|
127
127
|
params: tslib_1.__assign({}, otherArgs),
|
|
128
128
|
body: body,
|
|
129
129
|
entity: this,
|
|
@@ -135,23 +135,23 @@ var Order = /** @class */ (function (_super) {
|
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
|
-
Order.prototype.
|
|
139
|
-
var _b = _a.
|
|
138
|
+
Order.prototype.open = function (_a) {
|
|
139
|
+
var _b = _a.body, body = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["body"]);
|
|
140
140
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
141
141
|
var response;
|
|
142
|
-
return tslib_1.__generator(this, function (
|
|
143
|
-
switch (
|
|
142
|
+
return tslib_1.__generator(this, function (_c) {
|
|
143
|
+
switch (_c.label) {
|
|
144
144
|
case 0: return [4 /*yield*/, Order.request({
|
|
145
145
|
http_method: "post",
|
|
146
|
-
operation: "
|
|
146
|
+
operation: "open",
|
|
147
147
|
session: this.session,
|
|
148
|
-
urlIds: { id: this.id },
|
|
149
|
-
params: tslib_1.__assign({
|
|
148
|
+
urlIds: { "id": this.id },
|
|
149
|
+
params: tslib_1.__assign({}, otherArgs),
|
|
150
150
|
body: body,
|
|
151
151
|
entity: this,
|
|
152
152
|
})];
|
|
153
153
|
case 1:
|
|
154
|
-
response =
|
|
154
|
+
response = _c.sent();
|
|
155
155
|
return [2 /*return*/, response ? response.body : null];
|
|
156
156
|
}
|
|
157
157
|
});
|
|
@@ -161,23 +161,23 @@ var Order = /** @class */ (function (_super) {
|
|
|
161
161
|
Order.NAME = 'order';
|
|
162
162
|
Order.PLURAL_NAME = 'orders';
|
|
163
163
|
Order.HAS_ONE = {
|
|
164
|
-
customer: customer_1.Customer
|
|
164
|
+
"customer": customer_1.Customer
|
|
165
165
|
};
|
|
166
166
|
Order.HAS_MANY = {
|
|
167
|
-
discount_codes: discount_code_1.DiscountCode,
|
|
168
|
-
fulfillments: fulfillment_1.Fulfillment,
|
|
169
|
-
refunds: refund_1.Refund
|
|
167
|
+
"discount_codes": discount_code_1.DiscountCode,
|
|
168
|
+
"fulfillments": fulfillment_1.Fulfillment,
|
|
169
|
+
"refunds": refund_1.Refund
|
|
170
170
|
};
|
|
171
171
|
Order.PATHS = [
|
|
172
|
-
{ http_method: "
|
|
173
|
-
{ http_method: "get", operation: "
|
|
174
|
-
{ http_method: "
|
|
175
|
-
{ http_method: "
|
|
176
|
-
{ http_method: "
|
|
177
|
-
{ http_method: "post", operation: "close", ids: ["id"], path: "orders/<id>/close.json" },
|
|
178
|
-
{ http_method: "post", operation: "open", ids: ["id"], path: "orders/<id>/open.json" },
|
|
179
|
-
{ http_method: "post", operation: "
|
|
180
|
-
{ http_method: "
|
|
172
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "orders/<id>.json" },
|
|
173
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "orders/count.json" },
|
|
174
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "orders.json" },
|
|
175
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "orders/<id>.json" },
|
|
176
|
+
{ "http_method": "post", "operation": "cancel", "ids": ["id"], "path": "orders/<id>/cancel.json" },
|
|
177
|
+
{ "http_method": "post", "operation": "close", "ids": ["id"], "path": "orders/<id>/close.json" },
|
|
178
|
+
{ "http_method": "post", "operation": "open", "ids": ["id"], "path": "orders/<id>/open.json" },
|
|
179
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "orders.json" },
|
|
180
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "orders/<id>.json" }
|
|
181
181
|
];
|
|
182
182
|
return Order;
|
|
183
183
|
}(base_rest_resource_1.default));
|
|
@@ -20,7 +20,7 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
20
20
|
switch (_c.label) {
|
|
21
21
|
case 0: return [4 /*yield*/, OrderRisk.baseFind({
|
|
22
22
|
session: session,
|
|
23
|
-
urlIds: { id: id, order_id: order_id },
|
|
23
|
+
urlIds: { "id": id, "order_id": order_id },
|
|
24
24
|
params: {},
|
|
25
25
|
})];
|
|
26
26
|
case 1:
|
|
@@ -40,7 +40,7 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
40
40
|
http_method: "delete",
|
|
41
41
|
operation: "delete",
|
|
42
42
|
session: session,
|
|
43
|
-
urlIds: { id: id, order_id: order_id },
|
|
43
|
+
urlIds: { "id": id, "order_id": order_id },
|
|
44
44
|
params: {},
|
|
45
45
|
})];
|
|
46
46
|
case 1:
|
|
@@ -58,7 +58,7 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
58
58
|
switch (_c.label) {
|
|
59
59
|
case 0: return [4 /*yield*/, OrderRisk.baseFind({
|
|
60
60
|
session: session,
|
|
61
|
-
urlIds: { order_id: order_id },
|
|
61
|
+
urlIds: { "order_id": order_id },
|
|
62
62
|
params: tslib_1.__assign({}, otherArgs),
|
|
63
63
|
})];
|
|
64
64
|
case 1:
|
|
@@ -74,11 +74,11 @@ var OrderRisk = /** @class */ (function (_super) {
|
|
|
74
74
|
OrderRisk.HAS_ONE = {};
|
|
75
75
|
OrderRisk.HAS_MANY = {};
|
|
76
76
|
OrderRisk.PATHS = [
|
|
77
|
-
{ http_method: "
|
|
78
|
-
{ http_method: "get", operation: "get", ids: ["order_id"], path: "orders/<order_id>/risks.json" },
|
|
79
|
-
{ http_method: "get", operation: "get", ids: ["order_id", "id"], path: "orders/<order_id>/risks/<id>.json" },
|
|
80
|
-
{ http_method: "
|
|
81
|
-
{ http_method: "
|
|
77
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["order_id", "id"], "path": "orders/<order_id>/risks/<id>.json" },
|
|
78
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/risks.json" },
|
|
79
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/risks/<id>.json" },
|
|
80
|
+
{ "http_method": "post", "operation": "post", "ids": ["order_id"], "path": "orders/<order_id>/risks.json" },
|
|
81
|
+
{ "http_method": "put", "operation": "put", "ids": ["order_id", "id"], "path": "orders/<order_id>/risks/<id>.json" }
|
|
82
82
|
];
|
|
83
83
|
return OrderRisk;
|
|
84
84
|
}(base_rest_resource_1.default));
|