@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
|
@@ -17,7 +17,7 @@ var PriceRule = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, PriceRule.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 PriceRule = /** @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:
|
|
@@ -56,7 +56,7 @@ var PriceRule = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, PriceRule.baseFind({
|
|
57
57
|
session: session,
|
|
58
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, starts_at_min: starts_at_min, starts_at_max: starts_at_max, ends_at_min: ends_at_min, ends_at_max: ends_at_max, times_used: times_used }, otherArgs),
|
|
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, "starts_at_min": starts_at_min, "starts_at_max": starts_at_max, "ends_at_min": ends_at_min, "ends_at_max": ends_at_max, "times_used": times_used }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _o.sent();
|
|
@@ -93,12 +93,12 @@ var PriceRule = /** @class */ (function (_super) {
|
|
|
93
93
|
PriceRule.HAS_ONE = {};
|
|
94
94
|
PriceRule.HAS_MANY = {};
|
|
95
95
|
PriceRule.PATHS = [
|
|
96
|
-
{ http_method: "
|
|
97
|
-
{ http_method: "get", operation: "
|
|
98
|
-
{ http_method: "
|
|
99
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "price_rules/<id>.json" },
|
|
100
|
-
{ http_method: "
|
|
101
|
-
{ http_method: "
|
|
96
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "price_rules/<id>.json" },
|
|
97
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "price_rules/count.json" },
|
|
98
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "price_rules.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "price_rules/<id>.json" },
|
|
100
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "price_rules.json" },
|
|
101
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "price_rules/<id>.json" }
|
|
102
102
|
];
|
|
103
103
|
return PriceRule;
|
|
104
104
|
}(base_rest_resource_1.default));
|
|
@@ -19,8 +19,8 @@ var Product = /** @class */ (function (_super) {
|
|
|
19
19
|
switch (_c.label) {
|
|
20
20
|
case 0: return [4 /*yield*/, Product.baseFind({
|
|
21
21
|
session: session,
|
|
22
|
-
urlIds: { id: id },
|
|
23
|
-
params: { fields: fields },
|
|
22
|
+
urlIds: { "id": id },
|
|
23
|
+
params: { "fields": fields },
|
|
24
24
|
})];
|
|
25
25
|
case 1:
|
|
26
26
|
result = _c.sent();
|
|
@@ -39,7 +39,7 @@ var Product = /** @class */ (function (_super) {
|
|
|
39
39
|
http_method: "delete",
|
|
40
40
|
operation: "delete",
|
|
41
41
|
session: session,
|
|
42
|
-
urlIds: { id: id },
|
|
42
|
+
urlIds: { "id": id },
|
|
43
43
|
params: {},
|
|
44
44
|
})];
|
|
45
45
|
case 1:
|
|
@@ -58,7 +58,7 @@ var Product = /** @class */ (function (_super) {
|
|
|
58
58
|
case 0: return [4 /*yield*/, Product.baseFind({
|
|
59
59
|
session: session,
|
|
60
60
|
urlIds: {},
|
|
61
|
-
params: tslib_1.__assign({ ids: ids, limit: limit, since_id: since_id, title: title, vendor: vendor, handle: handle, product_type: product_type, status: status, collection_id: collection_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, published_at_min: published_at_min, published_at_max: published_at_max, published_status: published_status, fields: fields, presentment_currencies: presentment_currencies }, otherArgs),
|
|
61
|
+
params: tslib_1.__assign({ "ids": ids, "limit": limit, "since_id": since_id, "title": title, "vendor": vendor, "handle": handle, "product_type": product_type, "status": status, "collection_id": collection_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, "published_at_min": published_at_min, "published_at_max": published_at_max, "published_status": published_status, "fields": fields, "presentment_currencies": presentment_currencies }, otherArgs),
|
|
62
62
|
})];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _v.sent();
|
|
@@ -78,7 +78,7 @@ var Product = /** @class */ (function (_super) {
|
|
|
78
78
|
operation: "count",
|
|
79
79
|
session: session,
|
|
80
80
|
urlIds: {},
|
|
81
|
-
params: tslib_1.__assign({ vendor: vendor, product_type: product_type, collection_id: collection_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, published_at_min: published_at_min, published_at_max: published_at_max, published_status: published_status }, otherArgs),
|
|
81
|
+
params: tslib_1.__assign({ "vendor": vendor, "product_type": product_type, "collection_id": collection_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, "published_at_min": published_at_min, "published_at_max": published_at_max, "published_status": published_status }, otherArgs),
|
|
82
82
|
body: {},
|
|
83
83
|
entity: null,
|
|
84
84
|
})];
|
|
@@ -94,16 +94,16 @@ var Product = /** @class */ (function (_super) {
|
|
|
94
94
|
Product.PLURAL_NAME = 'products';
|
|
95
95
|
Product.HAS_ONE = {};
|
|
96
96
|
Product.HAS_MANY = {
|
|
97
|
-
images: image_1.Image,
|
|
98
|
-
variants: variant_1.Variant
|
|
97
|
+
"images": image_1.Image,
|
|
98
|
+
"variants": variant_1.Variant
|
|
99
99
|
};
|
|
100
100
|
Product.PATHS = [
|
|
101
|
-
{ http_method: "
|
|
102
|
-
{ http_method: "
|
|
103
|
-
{ http_method: "get", operation: "
|
|
104
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "products/<id>.json" },
|
|
105
|
-
{ http_method: "
|
|
106
|
-
{ http_method: "
|
|
101
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "products/<id>.json" },
|
|
102
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "products/count.json" },
|
|
103
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "products.json" },
|
|
104
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "products/<id>.json" },
|
|
105
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "products.json" },
|
|
106
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "products/<id>.json" }
|
|
107
107
|
];
|
|
108
108
|
return Product;
|
|
109
109
|
}(base_rest_resource_1.default));
|
|
@@ -20,14 +20,14 @@ interface AllArgs {
|
|
|
20
20
|
updated_at_min?: unknown;
|
|
21
21
|
handle?: unknown;
|
|
22
22
|
}
|
|
23
|
-
interface
|
|
23
|
+
interface CountArgs {
|
|
24
24
|
[key: string]: unknown;
|
|
25
25
|
session: SessionInterface;
|
|
26
|
-
limit?: unknown;
|
|
27
26
|
}
|
|
28
|
-
interface
|
|
27
|
+
interface ProductIdsArgs {
|
|
29
28
|
[key: string]: unknown;
|
|
30
29
|
session: SessionInterface;
|
|
30
|
+
limit?: unknown;
|
|
31
31
|
}
|
|
32
32
|
export declare class ProductListing extends Base {
|
|
33
33
|
static API_VERSION: ApiVersion;
|
|
@@ -44,8 +44,8 @@ export declare class ProductListing extends Base {
|
|
|
44
44
|
static find({ session, product_id }: FindArgs): Promise<ProductListing | null>;
|
|
45
45
|
static delete({ session, product_id }: DeleteArgs): Promise<unknown>;
|
|
46
46
|
static all({ session, product_ids, limit, collection_id, updated_at_min, handle, ...otherArgs }: AllArgs): Promise<ProductListing[]>;
|
|
47
|
-
static product_ids({ session, limit, ...otherArgs }: ProductIdsArgs): Promise<unknown>;
|
|
48
47
|
static count({ session, ...otherArgs }: CountArgs): Promise<unknown>;
|
|
48
|
+
static product_ids({ session, limit, ...otherArgs }: ProductIdsArgs): Promise<unknown>;
|
|
49
49
|
body_html: string | null;
|
|
50
50
|
created_at: string | null;
|
|
51
51
|
handle: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product_listing.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-07/product_listing.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AACD,UAAU,UAAU;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,
|
|
1
|
+
{"version":3,"file":"product_listing.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2021-07/product_listing.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,UAAU,QAAQ;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AACD,UAAU,UAAU;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AACD,UAAU,OAAO;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,UAAU,SAAS;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AACD,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,cAAe,SAAQ,IAAI;IACtC,OAAc,WAAW,aAAqB;IAE9C,SAAS,CAAC,MAAM,CAAC,IAAI,SAAqB;IAC1C,SAAS,CAAC,MAAM,CAAC,WAAW,SAAsB;IAClD,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAC5D,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAGrD;IACF,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAOpC;IACF,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAgB;WAEhC,IAAI,CACtB,EACE,OAAO,EACP,UAAU,EACX,EAAE,QAAQ,GACV,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;WASb,MAAM,CACxB,EACE,OAAO,EACP,UAAU,EACX,EAAE,UAAU,GACZ,OAAO,CAAC,OAAO,CAAC;WAYC,GAAG,CACrB,EACE,OAAO,EACP,WAAkB,EAClB,KAAY,EACZ,aAAoB,EACpB,cAAqB,EACrB,MAAa,EACb,GAAG,SAAS,EACb,EAAE,OAAO,GACT,OAAO,CAAC,cAAc,EAAE,CAAC;WAUR,KAAK,CACvB,EACE,OAAO,EACP,GAAG,SAAS,EACb,EAAE,SAAS,GACX,OAAO,CAAC,OAAO,CAAC;WAcC,WAAW,CAC7B,EACE,OAAO,EACP,KAAY,EACZ,GAAG,SAAS,EACb,EAAE,cAAc,GAChB,OAAO,CAAC,OAAO,CAAC;IAcZ,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC9C,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,EAAE,GAAG,IAAI,CAAC;IAC3C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAClD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -19,7 +19,7 @@ var ProductListing = /** @class */ (function (_super) {
|
|
|
19
19
|
switch (_b.label) {
|
|
20
20
|
case 0: return [4 /*yield*/, ProductListing.baseFind({
|
|
21
21
|
session: session,
|
|
22
|
-
urlIds: { product_id: product_id },
|
|
22
|
+
urlIds: { "product_id": product_id },
|
|
23
23
|
params: {},
|
|
24
24
|
})];
|
|
25
25
|
case 1:
|
|
@@ -39,7 +39,7 @@ var ProductListing = /** @class */ (function (_super) {
|
|
|
39
39
|
http_method: "delete",
|
|
40
40
|
operation: "delete",
|
|
41
41
|
session: session,
|
|
42
|
-
urlIds: { product_id: product_id },
|
|
42
|
+
urlIds: { "product_id": product_id },
|
|
43
43
|
params: {},
|
|
44
44
|
})];
|
|
45
45
|
case 1:
|
|
@@ -58,7 +58,7 @@ var ProductListing = /** @class */ (function (_super) {
|
|
|
58
58
|
case 0: return [4 /*yield*/, ProductListing.baseFind({
|
|
59
59
|
session: session,
|
|
60
60
|
urlIds: {},
|
|
61
|
-
params: tslib_1.__assign({ product_ids: product_ids, limit: limit, collection_id: collection_id, updated_at_min: updated_at_min, handle: handle }, otherArgs),
|
|
61
|
+
params: tslib_1.__assign({ "product_ids": product_ids, "limit": limit, "collection_id": collection_id, "updated_at_min": updated_at_min, "handle": handle }, otherArgs),
|
|
62
62
|
})];
|
|
63
63
|
case 1:
|
|
64
64
|
response = _g.sent();
|
|
@@ -67,45 +67,45 @@ var ProductListing = /** @class */ (function (_super) {
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
-
ProductListing.
|
|
71
|
-
var session = _a.session,
|
|
70
|
+
ProductListing.count = function (_a) {
|
|
71
|
+
var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
|
|
72
72
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
73
73
|
var response;
|
|
74
|
-
return tslib_1.__generator(this, function (
|
|
75
|
-
switch (
|
|
74
|
+
return tslib_1.__generator(this, function (_b) {
|
|
75
|
+
switch (_b.label) {
|
|
76
76
|
case 0: return [4 /*yield*/, ProductListing.request({
|
|
77
77
|
http_method: "get",
|
|
78
|
-
operation: "
|
|
78
|
+
operation: "count",
|
|
79
79
|
session: session,
|
|
80
80
|
urlIds: {},
|
|
81
|
-
params: tslib_1.__assign({
|
|
81
|
+
params: tslib_1.__assign({}, otherArgs),
|
|
82
82
|
body: {},
|
|
83
83
|
entity: null,
|
|
84
84
|
})];
|
|
85
85
|
case 1:
|
|
86
|
-
response =
|
|
86
|
+
response = _b.sent();
|
|
87
87
|
return [2 /*return*/, response ? response.body : null];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
ProductListing.
|
|
93
|
-
var session = _a.session, otherArgs = tslib_1.__rest(_a, ["session"]);
|
|
92
|
+
ProductListing.product_ids = function (_a) {
|
|
93
|
+
var session = _a.session, _b = _a.limit, limit = _b === void 0 ? null : _b, otherArgs = tslib_1.__rest(_a, ["session", "limit"]);
|
|
94
94
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
95
95
|
var response;
|
|
96
|
-
return tslib_1.__generator(this, function (
|
|
97
|
-
switch (
|
|
96
|
+
return tslib_1.__generator(this, function (_c) {
|
|
97
|
+
switch (_c.label) {
|
|
98
98
|
case 0: return [4 /*yield*/, ProductListing.request({
|
|
99
99
|
http_method: "get",
|
|
100
|
-
operation: "
|
|
100
|
+
operation: "product_ids",
|
|
101
101
|
session: session,
|
|
102
102
|
urlIds: {},
|
|
103
|
-
params: tslib_1.__assign({}, otherArgs),
|
|
103
|
+
params: tslib_1.__assign({ "limit": limit }, otherArgs),
|
|
104
104
|
body: {},
|
|
105
105
|
entity: null,
|
|
106
106
|
})];
|
|
107
107
|
case 1:
|
|
108
|
-
response =
|
|
108
|
+
response = _c.sent();
|
|
109
109
|
return [2 /*return*/, response ? response.body : null];
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -116,16 +116,16 @@ var ProductListing = /** @class */ (function (_super) {
|
|
|
116
116
|
ProductListing.PLURAL_NAME = 'product_listings';
|
|
117
117
|
ProductListing.HAS_ONE = {};
|
|
118
118
|
ProductListing.HAS_MANY = {
|
|
119
|
-
images: image_1.Image,
|
|
120
|
-
variants: variant_1.Variant
|
|
119
|
+
"images": image_1.Image,
|
|
120
|
+
"variants": variant_1.Variant
|
|
121
121
|
};
|
|
122
122
|
ProductListing.PATHS = [
|
|
123
|
-
{ http_method: "
|
|
124
|
-
{ http_method: "get", operation: "
|
|
125
|
-
{ http_method: "get", operation: "
|
|
126
|
-
{ http_method: "get", operation: "get", ids: ["product_id"], path: "product_listings/<product_id>.json" },
|
|
127
|
-
{ http_method: "
|
|
128
|
-
{ http_method: "
|
|
123
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["product_id"], "path": "product_listings/<product_id>.json" },
|
|
124
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "product_listings/count.json" },
|
|
125
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "product_listings.json" },
|
|
126
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id"], "path": "product_listings/<product_id>.json" },
|
|
127
|
+
{ "http_method": "get", "operation": "product_ids", "ids": [], "path": "product_listings/product_ids.json" },
|
|
128
|
+
{ "http_method": "put", "operation": "put", "ids": ["product_id"], "path": "product_listings/<product_id>.json" }
|
|
129
129
|
];
|
|
130
130
|
ProductListing.PRIMARY_KEY = "product_id";
|
|
131
131
|
return ProductListing;
|
|
@@ -20,7 +20,7 @@ var ProductResourceFeedback = /** @class */ (function (_super) {
|
|
|
20
20
|
switch (_c.label) {
|
|
21
21
|
case 0: return [4 /*yield*/, ProductResourceFeedback.baseFind({
|
|
22
22
|
session: session,
|
|
23
|
-
urlIds: { product_id: product_id },
|
|
23
|
+
urlIds: { "product_id": product_id },
|
|
24
24
|
params: tslib_1.__assign({}, otherArgs),
|
|
25
25
|
})];
|
|
26
26
|
case 1:
|
|
@@ -36,8 +36,8 @@ var ProductResourceFeedback = /** @class */ (function (_super) {
|
|
|
36
36
|
ProductResourceFeedback.HAS_ONE = {};
|
|
37
37
|
ProductResourceFeedback.HAS_MANY = {};
|
|
38
38
|
ProductResourceFeedback.PATHS = [
|
|
39
|
-
{ http_method: "
|
|
40
|
-
{ http_method: "
|
|
39
|
+
{ "http_method": "get", "operation": "get", "ids": ["product_id"], "path": "products/<product_id>/resource_feedback.json" },
|
|
40
|
+
{ "http_method": "post", "operation": "post", "ids": ["product_id"], "path": "products/<product_id>/resource_feedback.json" }
|
|
41
41
|
];
|
|
42
42
|
return ProductResourceFeedback;
|
|
43
43
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var Province = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_d.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Province.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id, country_id: country_id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id, "country_id": country_id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _d.sent();
|
|
@@ -35,8 +35,8 @@ var Province = /** @class */ (function (_super) {
|
|
|
35
35
|
switch (_e.label) {
|
|
36
36
|
case 0: return [4 /*yield*/, Province.baseFind({
|
|
37
37
|
session: session,
|
|
38
|
-
urlIds: { country_id: country_id },
|
|
39
|
-
params: tslib_1.__assign({ since_id: since_id, fields: fields }, otherArgs),
|
|
38
|
+
urlIds: { "country_id": country_id },
|
|
39
|
+
params: tslib_1.__assign({ "since_id": since_id, "fields": fields }, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
42
42
|
response = _e.sent();
|
|
@@ -55,7 +55,7 @@ var Province = /** @class */ (function (_super) {
|
|
|
55
55
|
http_method: "get",
|
|
56
56
|
operation: "count",
|
|
57
57
|
session: session,
|
|
58
|
-
urlIds: { country_id: country_id },
|
|
58
|
+
urlIds: { "country_id": country_id },
|
|
59
59
|
params: tslib_1.__assign({}, otherArgs),
|
|
60
60
|
body: {},
|
|
61
61
|
entity: null,
|
|
@@ -73,10 +73,10 @@ var Province = /** @class */ (function (_super) {
|
|
|
73
73
|
Province.HAS_ONE = {};
|
|
74
74
|
Province.HAS_MANY = {};
|
|
75
75
|
Province.PATHS = [
|
|
76
|
-
{ http_method: "get", operation: "
|
|
77
|
-
{ http_method: "get", operation: "
|
|
78
|
-
{ http_method: "get", operation: "get", ids: ["country_id", "id"], path: "countries/<country_id>/provinces/<id>.json" },
|
|
79
|
-
{ http_method: "put", operation: "put", ids: ["country_id", "id"], path: "countries/<country_id>/provinces/<id>.json" }
|
|
76
|
+
{ "http_method": "get", "operation": "count", "ids": ["country_id"], "path": "countries/<country_id>/provinces/count.json" },
|
|
77
|
+
{ "http_method": "get", "operation": "get", "ids": ["country_id"], "path": "countries/<country_id>/provinces.json" },
|
|
78
|
+
{ "http_method": "get", "operation": "get", "ids": ["country_id", "id"], "path": "countries/<country_id>/provinces/<id>.json" },
|
|
79
|
+
{ "http_method": "put", "operation": "put", "ids": ["country_id", "id"], "path": "countries/<country_id>/provinces/<id>.json" }
|
|
80
80
|
];
|
|
81
81
|
return Province;
|
|
82
82
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var RecurringApplicationCharge = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, RecurringApplicationCharge.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _c.sent();
|
|
@@ -37,7 +37,7 @@ var RecurringApplicationCharge = /** @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:
|
|
@@ -56,7 +56,7 @@ var RecurringApplicationCharge = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, RecurringApplicationCharge.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ since_id: since_id, fields: fields }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "since_id": since_id, "fields": fields }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _d.sent();
|
|
@@ -75,7 +75,7 @@ var RecurringApplicationCharge = /** @class */ (function (_super) {
|
|
|
75
75
|
http_method: "put",
|
|
76
76
|
operation: "customize",
|
|
77
77
|
session: this.session,
|
|
78
|
-
urlIds: { id: this.id },
|
|
78
|
+
urlIds: { "id": this.id },
|
|
79
79
|
params: tslib_1.__assign({}, otherArgs),
|
|
80
80
|
body: body,
|
|
81
81
|
entity: this,
|
|
@@ -93,11 +93,11 @@ var RecurringApplicationCharge = /** @class */ (function (_super) {
|
|
|
93
93
|
RecurringApplicationCharge.HAS_ONE = {};
|
|
94
94
|
RecurringApplicationCharge.HAS_MANY = {};
|
|
95
95
|
RecurringApplicationCharge.PATHS = [
|
|
96
|
-
{ http_method: "
|
|
97
|
-
{ http_method: "get", operation: "get", ids: [], path: "recurring_application_charges.json" },
|
|
98
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "recurring_application_charges/<id>.json" },
|
|
99
|
-
{ http_method: "
|
|
100
|
-
{ http_method: "put", operation: "customize", ids: ["id"], path: "recurring_application_charges/<id>/customize.json" }
|
|
96
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "recurring_application_charges/<id>.json" },
|
|
97
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "recurring_application_charges.json" },
|
|
98
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "recurring_application_charges/<id>.json" },
|
|
99
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "recurring_application_charges.json" },
|
|
100
|
+
{ "http_method": "put", "operation": "customize", "ids": ["id"], "path": "recurring_application_charges/<id>/customize.json" }
|
|
101
101
|
];
|
|
102
102
|
return RecurringApplicationCharge;
|
|
103
103
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var Redirect = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Redirect.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _c.sent();
|
|
@@ -37,7 +37,7 @@ var Redirect = /** @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:
|
|
@@ -56,7 +56,7 @@ var Redirect = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, Redirect.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, path: path, target: target, fields: fields }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "path": path, "target": target, "fields": fields }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _g.sent();
|
|
@@ -76,7 +76,7 @@ var Redirect = /** @class */ (function (_super) {
|
|
|
76
76
|
operation: "count",
|
|
77
77
|
session: session,
|
|
78
78
|
urlIds: {},
|
|
79
|
-
params: tslib_1.__assign({ path: path, target: target }, otherArgs),
|
|
79
|
+
params: tslib_1.__assign({ "path": path, "target": target }, otherArgs),
|
|
80
80
|
body: {},
|
|
81
81
|
entity: null,
|
|
82
82
|
})];
|
|
@@ -93,12 +93,12 @@ var Redirect = /** @class */ (function (_super) {
|
|
|
93
93
|
Redirect.HAS_ONE = {};
|
|
94
94
|
Redirect.HAS_MANY = {};
|
|
95
95
|
Redirect.PATHS = [
|
|
96
|
-
{ http_method: "
|
|
97
|
-
{ http_method: "
|
|
98
|
-
{ http_method: "get", operation: "
|
|
99
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "redirects/<id>.json" },
|
|
100
|
-
{ http_method: "
|
|
101
|
-
{ http_method: "
|
|
96
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "redirects/<id>.json" },
|
|
97
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "redirects/count.json" },
|
|
98
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "redirects.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "redirects/<id>.json" },
|
|
100
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "redirects.json" },
|
|
101
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "redirects/<id>.json" }
|
|
102
102
|
];
|
|
103
103
|
return Redirect;
|
|
104
104
|
}(base_rest_resource_1.default));
|
|
@@ -18,8 +18,8 @@ var Refund = /** @class */ (function (_super) {
|
|
|
18
18
|
switch (_e.label) {
|
|
19
19
|
case 0: return [4 /*yield*/, Refund.baseFind({
|
|
20
20
|
session: session,
|
|
21
|
-
urlIds: { id: id, order_id: order_id },
|
|
22
|
-
params: { fields: fields, in_shop_currency: in_shop_currency },
|
|
21
|
+
urlIds: { "id": id, "order_id": order_id },
|
|
22
|
+
params: { "fields": fields, "in_shop_currency": in_shop_currency },
|
|
23
23
|
})];
|
|
24
24
|
case 1:
|
|
25
25
|
result = _e.sent();
|
|
@@ -36,8 +36,8 @@ var Refund = /** @class */ (function (_super) {
|
|
|
36
36
|
switch (_f.label) {
|
|
37
37
|
case 0: return [4 /*yield*/, Refund.baseFind({
|
|
38
38
|
session: session,
|
|
39
|
-
urlIds: { order_id: order_id },
|
|
40
|
-
params: tslib_1.__assign({ limit: limit, fields: fields, in_shop_currency: in_shop_currency }, otherArgs),
|
|
39
|
+
urlIds: { "order_id": order_id },
|
|
40
|
+
params: tslib_1.__assign({ "limit": limit, "fields": fields, "in_shop_currency": in_shop_currency }, otherArgs),
|
|
41
41
|
})];
|
|
42
42
|
case 1:
|
|
43
43
|
response = _f.sent();
|
|
@@ -56,8 +56,8 @@ var Refund = /** @class */ (function (_super) {
|
|
|
56
56
|
http_method: "post",
|
|
57
57
|
operation: "calculate",
|
|
58
58
|
session: this.session,
|
|
59
|
-
urlIds: { order_id: this.order_id },
|
|
60
|
-
params: tslib_1.__assign({ shipping: shipping, refund_line_items: refund_line_items, currency: currency }, otherArgs),
|
|
59
|
+
urlIds: { "order_id": this.order_id },
|
|
60
|
+
params: tslib_1.__assign({ "shipping": shipping, "refund_line_items": refund_line_items, "currency": currency }, otherArgs),
|
|
61
61
|
body: body,
|
|
62
62
|
entity: this,
|
|
63
63
|
})];
|
|
@@ -73,13 +73,13 @@ var Refund = /** @class */ (function (_super) {
|
|
|
73
73
|
Refund.PLURAL_NAME = 'refunds';
|
|
74
74
|
Refund.HAS_ONE = {};
|
|
75
75
|
Refund.HAS_MANY = {
|
|
76
|
-
transactions: transaction_1.Transaction
|
|
76
|
+
"transactions": transaction_1.Transaction
|
|
77
77
|
};
|
|
78
78
|
Refund.PATHS = [
|
|
79
|
-
{ http_method: "get", operation: "get", ids: ["order_id"], path: "orders/<order_id>/refunds.json" },
|
|
80
|
-
{ http_method: "
|
|
81
|
-
{ http_method: "
|
|
82
|
-
{ http_method: "post", operation: "
|
|
79
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id"], "path": "orders/<order_id>/refunds.json" },
|
|
80
|
+
{ "http_method": "get", "operation": "get", "ids": ["order_id", "id"], "path": "orders/<order_id>/refunds/<id>.json" },
|
|
81
|
+
{ "http_method": "post", "operation": "calculate", "ids": ["order_id"], "path": "orders/<order_id>/refunds/calculate.json" },
|
|
82
|
+
{ "http_method": "post", "operation": "post", "ids": ["order_id"], "path": "orders/<order_id>/refunds.json" }
|
|
83
83
|
];
|
|
84
84
|
return Refund;
|
|
85
85
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var Report = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Report.baseFind({
|
|
19
19
|
session: session,
|
|
20
|
-
urlIds: { id: id },
|
|
21
|
-
params: { fields: fields },
|
|
20
|
+
urlIds: { "id": id },
|
|
21
|
+
params: { "fields": fields },
|
|
22
22
|
})];
|
|
23
23
|
case 1:
|
|
24
24
|
result = _c.sent();
|
|
@@ -37,7 +37,7 @@ var Report = /** @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:
|
|
@@ -56,7 +56,7 @@ var Report = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, Report.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ ids: ids, limit: limit, since_id: since_id, updated_at_min: updated_at_min, updated_at_max: updated_at_max, fields: fields }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "ids": ids, "limit": limit, "since_id": since_id, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "fields": fields }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _h.sent();
|
|
@@ -71,11 +71,11 @@ var Report = /** @class */ (function (_super) {
|
|
|
71
71
|
Report.HAS_ONE = {};
|
|
72
72
|
Report.HAS_MANY = {};
|
|
73
73
|
Report.PATHS = [
|
|
74
|
-
{ http_method: "
|
|
75
|
-
{ http_method: "
|
|
76
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "reports/<id>.json" },
|
|
77
|
-
{ http_method: "
|
|
78
|
-
{ http_method: "
|
|
74
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "reports/<id>.json" },
|
|
75
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "reports.json" },
|
|
76
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "reports/<id>.json" },
|
|
77
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "reports.json" },
|
|
78
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "reports/<id>.json" }
|
|
79
79
|
];
|
|
80
80
|
return Report;
|
|
81
81
|
}(base_rest_resource_1.default));
|
|
@@ -33,8 +33,8 @@ var ResourceFeedback = /** @class */ (function (_super) {
|
|
|
33
33
|
ResourceFeedback.HAS_ONE = {};
|
|
34
34
|
ResourceFeedback.HAS_MANY = {};
|
|
35
35
|
ResourceFeedback.PATHS = [
|
|
36
|
-
{ http_method: "
|
|
37
|
-
{ http_method: "
|
|
36
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "resource_feedback.json" },
|
|
37
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "resource_feedback.json" }
|
|
38
38
|
];
|
|
39
39
|
return ResourceFeedback;
|
|
40
40
|
}(base_rest_resource_1.default));
|