@shopify/shopify-api 3.0.0-rc.1 → 3.0.0-rc.2
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 +7 -4
- package/dist/base-rest-resource.d.ts.map +1 -1
- package/dist/base-rest-resource.js +38 -59
- 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-04/abandoned_checkout.js +6 -6
- package/dist/rest-resources/2021-04/access_scope.js +1 -1
- package/dist/rest-resources/2021-04/android_pay_key.js +5 -5
- package/dist/rest-resources/2021-04/apple_pay_certificate.js +8 -8
- package/dist/rest-resources/2021-04/application_charge.js +6 -6
- package/dist/rest-resources/2021-04/application_credit.js +6 -6
- package/dist/rest-resources/2021-04/article.js +19 -19
- package/dist/rest-resources/2021-04/asset.js +8 -8
- package/dist/rest-resources/2021-04/assigned_fulfillment_order.js +2 -2
- package/dist/rest-resources/2021-04/balance.js +1 -1
- package/dist/rest-resources/2021-04/blog.js +11 -11
- package/dist/rest-resources/2021-04/cancellation_request.js +7 -7
- package/dist/rest-resources/2021-04/carrier_service.js +7 -7
- package/dist/rest-resources/2021-04/checkout.d.ts +1 -4
- package/dist/rest-resources/2021-04/checkout.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/checkout.js +11 -13
- package/dist/rest-resources/2021-04/collect.js +9 -9
- package/dist/rest-resources/2021-04/collection.js +7 -7
- package/dist/rest-resources/2021-04/collection_listing.js +11 -11
- package/dist/rest-resources/2021-04/comment.js +19 -19
- package/dist/rest-resources/2021-04/country.js +11 -11
- package/dist/rest-resources/2021-04/currency.js +1 -1
- package/dist/rest-resources/2021-04/custom_collection.js +11 -11
- package/dist/rest-resources/2021-04/customer.d.ts +1 -9
- package/dist/rest-resources/2021-04/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/customer.js +17 -40
- package/dist/rest-resources/2021-04/customer_address.js +13 -13
- package/dist/rest-resources/2021-04/customer_saved_search.js +14 -14
- package/dist/rest-resources/2021-04/deprecated_api_call.js +1 -1
- package/dist/rest-resources/2021-04/discount_code.js +17 -17
- package/dist/rest-resources/2021-04/dispute.d.ts +1 -4
- package/dist/rest-resources/2021-04/dispute.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/dispute.js +5 -8
- package/dist/rest-resources/2021-04/draft_order.d.ts +1 -4
- package/dist/rest-resources/2021-04/draft_order.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/draft_order.js +17 -19
- package/dist/rest-resources/2021-04/event.js +10 -10
- package/dist/rest-resources/2021-04/fulfillment.js +22 -22
- package/dist/rest-resources/2021-04/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-04/fulfillment_order.js +16 -16
- package/dist/rest-resources/2021-04/fulfillment_request.js +7 -7
- package/dist/rest-resources/2021-04/fulfillment_service.js +8 -8
- package/dist/rest-resources/2021-04/gift_card.d.ts +2 -8
- package/dist/rest-resources/2021-04/gift_card.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/gift_card.js +13 -18
- package/dist/rest-resources/2021-04/gift_card_adjustment.js +5 -5
- package/dist/rest-resources/2021-04/image.js +13 -13
- package/dist/rest-resources/2021-04/inventory_item.js +5 -5
- package/dist/rest-resources/2021-04/inventory_level.js +10 -10
- package/dist/rest-resources/2021-04/location.d.ts +2 -8
- package/dist/rest-resources/2021-04/location.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/location.js +7 -12
- package/dist/rest-resources/2021-04/locations_for_move.js +2 -2
- package/dist/rest-resources/2021-04/marketing_event.js +12 -12
- package/dist/rest-resources/2021-04/metafield.js +11 -11
- package/dist/rest-resources/2021-04/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-04/order.js +22 -22
- package/dist/rest-resources/2021-04/order_risk.js +8 -8
- package/dist/rest-resources/2021-04/page.js +12 -12
- package/dist/rest-resources/2021-04/payment.js +9 -9
- package/dist/rest-resources/2021-04/payment_gateway.js +7 -7
- package/dist/rest-resources/2021-04/payment_transaction.js +3 -3
- package/dist/rest-resources/2021-04/payout.d.ts +1 -4
- package/dist/rest-resources/2021-04/payout.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/payout.js +5 -8
- package/dist/rest-resources/2021-04/policy.js +1 -1
- package/dist/rest-resources/2021-04/price_rule.js +9 -9
- package/dist/rest-resources/2021-04/product.js +13 -13
- package/dist/rest-resources/2021-04/product_listing.js +12 -12
- package/dist/rest-resources/2021-04/product_resource_feedback.js +3 -3
- package/dist/rest-resources/2021-04/province.js +9 -9
- package/dist/rest-resources/2021-04/recurring_application_charge.js +10 -10
- package/dist/rest-resources/2021-04/redirect.js +11 -11
- package/dist/rest-resources/2021-04/refund.js +11 -11
- package/dist/rest-resources/2021-04/report.js +9 -9
- package/dist/rest-resources/2021-04/resource_feedback.js +2 -2
- package/dist/rest-resources/2021-04/script_tag.js +11 -11
- package/dist/rest-resources/2021-04/shipping_zone.js +4 -4
- package/dist/rest-resources/2021-04/shop.d.ts +3 -12
- package/dist/rest-resources/2021-04/shop.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/shop.js +3 -10
- package/dist/rest-resources/2021-04/smart_collection.js +14 -14
- package/dist/rest-resources/2021-04/storefront_access_token.d.ts +1 -4
- package/dist/rest-resources/2021-04/storefront_access_token.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/storefront_access_token.js +5 -8
- package/dist/rest-resources/2021-04/tender_transaction.d.ts +1 -4
- package/dist/rest-resources/2021-04/tender_transaction.d.ts.map +1 -1
- package/dist/rest-resources/2021-04/tender_transaction.js +3 -6
- package/dist/rest-resources/2021-04/theme.js +9 -9
- package/dist/rest-resources/2021-04/transaction.js +9 -9
- package/dist/rest-resources/2021-04/usage_charge.js +7 -7
- package/dist/rest-resources/2021-04/user.js +5 -5
- package/dist/rest-resources/2021-04/variant.js +12 -12
- package/dist/rest-resources/2021-04/webhook.js +11 -11
- 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.js +19 -19
- 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 +1 -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.js +19 -19
- 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 +1 -9
- package/dist/rest-resources/2021-07/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-07/customer.js +17 -40
- package/dist/rest-resources/2021-07/customer_address.js +13 -13
- 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.js +17 -17
- 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 +1 -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.js +22 -22
- 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.js +11 -11
- package/dist/rest-resources/2021-07/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-07/order.js +22 -22
- 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.js +12 -12
- 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 +3 -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.js +19 -19
- 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 +1 -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.js +19 -19
- 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 +1 -9
- package/dist/rest-resources/2021-10/customer.d.ts.map +1 -1
- package/dist/rest-resources/2021-10/customer.js +17 -40
- package/dist/rest-resources/2021-10/customer_address.js +13 -13
- 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.js +17 -17
- 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 +1 -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.js +22 -22
- package/dist/rest-resources/2021-10/fulfillment_event.js +10 -10
- package/dist/rest-resources/2021-10/fulfillment_order.js +21 -21
- 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.js +11 -11
- package/dist/rest-resources/2021-10/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2021-10/order.js +22 -22
- 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.js +12 -12
- 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 +3 -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.js +19 -19
- 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 +1 -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.js +19 -19
- 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 +1 -9
- package/dist/rest-resources/2022-01/customer.d.ts.map +1 -1
- package/dist/rest-resources/2022-01/customer.js +17 -40
- package/dist/rest-resources/2022-01/customer_address.js +13 -13
- 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.js +17 -17
- 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 +1 -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.js +22 -22
- package/dist/rest-resources/2022-01/fulfillment_event.js +10 -10
- package/dist/rest-resources/2022-01/fulfillment_order.js +21 -21
- 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.js +11 -11
- package/dist/rest-resources/2022-01/mobile_platform_application.js +7 -7
- package/dist/rest-resources/2022-01/order.js +22 -22
- 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.js +12 -12
- 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 +3 -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/package.json +1 -1
|
@@ -18,7 +18,7 @@ var CollectionListing = /** @class */ (function (_super) {
|
|
|
18
18
|
switch (_b.label) {
|
|
19
19
|
case 0: return [4 /*yield*/, CollectionListing.baseFind({
|
|
20
20
|
session: session,
|
|
21
|
-
urlIds: { collection_id: collection_id },
|
|
21
|
+
urlIds: { "collection_id": collection_id },
|
|
22
22
|
params: {},
|
|
23
23
|
})];
|
|
24
24
|
case 1:
|
|
@@ -38,7 +38,7 @@ var CollectionListing = /** @class */ (function (_super) {
|
|
|
38
38
|
http_method: "delete",
|
|
39
39
|
operation: "delete",
|
|
40
40
|
session: session,
|
|
41
|
-
urlIds: { collection_id: collection_id },
|
|
41
|
+
urlIds: { "collection_id": collection_id },
|
|
42
42
|
params: {},
|
|
43
43
|
})];
|
|
44
44
|
case 1:
|
|
@@ -57,7 +57,7 @@ var CollectionListing = /** @class */ (function (_super) {
|
|
|
57
57
|
case 0: return [4 /*yield*/, CollectionListing.baseFind({
|
|
58
58
|
session: session,
|
|
59
59
|
urlIds: {},
|
|
60
|
-
params: tslib_1.__assign({ limit: limit }, otherArgs),
|
|
60
|
+
params: tslib_1.__assign({ "limit": limit }, otherArgs),
|
|
61
61
|
})];
|
|
62
62
|
case 1:
|
|
63
63
|
response = _c.sent();
|
|
@@ -76,8 +76,8 @@ var CollectionListing = /** @class */ (function (_super) {
|
|
|
76
76
|
http_method: "get",
|
|
77
77
|
operation: "product_ids",
|
|
78
78
|
session: session,
|
|
79
|
-
urlIds: { collection_id: collection_id },
|
|
80
|
-
params: tslib_1.__assign({ limit: limit }, otherArgs),
|
|
79
|
+
urlIds: { "collection_id": collection_id },
|
|
80
|
+
params: tslib_1.__assign({ "limit": limit }, otherArgs),
|
|
81
81
|
body: {},
|
|
82
82
|
entity: null,
|
|
83
83
|
})];
|
|
@@ -92,15 +92,15 @@ var CollectionListing = /** @class */ (function (_super) {
|
|
|
92
92
|
CollectionListing.NAME = 'collection_listing';
|
|
93
93
|
CollectionListing.PLURAL_NAME = 'collection_listings';
|
|
94
94
|
CollectionListing.HAS_ONE = {
|
|
95
|
-
image: image_1.Image
|
|
95
|
+
"image": image_1.Image
|
|
96
96
|
};
|
|
97
97
|
CollectionListing.HAS_MANY = {};
|
|
98
98
|
CollectionListing.PATHS = [
|
|
99
|
-
{ http_method: "get", operation: "get", ids: [], path: "collection_listings.json" },
|
|
100
|
-
{ http_method: "get", operation: "product_ids", ids: ["collection_id"], path: "collection_listings/<collection_id>/product_ids.json" },
|
|
101
|
-
{ http_method: "get", operation: "get", ids: ["collection_id"], path: "collection_listings/<collection_id>.json" },
|
|
102
|
-
{ http_method: "put", operation: "put", ids: ["collection_id"], path: "collection_listings/<collection_id>.json" },
|
|
103
|
-
{ http_method: "delete", operation: "delete", ids: ["collection_id"], path: "collection_listings/<collection_id>.json" }
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "collection_listings.json" },
|
|
100
|
+
{ "http_method": "get", "operation": "product_ids", "ids": ["collection_id"], "path": "collection_listings/<collection_id>/product_ids.json" },
|
|
101
|
+
{ "http_method": "get", "operation": "get", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" },
|
|
102
|
+
{ "http_method": "put", "operation": "put", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" },
|
|
103
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["collection_id"], "path": "collection_listings/<collection_id>.json" }
|
|
104
104
|
];
|
|
105
105
|
CollectionListing.PRIMARY_KEY = "collection_id";
|
|
106
106
|
return CollectionListing;
|
|
@@ -17,8 +17,8 @@ var Comment = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, Comment.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();
|
|
@@ -36,7 +36,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
36
36
|
case 0: return [4 /*yield*/, Comment.baseFind({
|
|
37
37
|
session: session,
|
|
38
38
|
urlIds: {},
|
|
39
|
-
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, published_at_min: published_at_min, published_at_max: published_at_max, fields: fields, published_status: published_status, status: status }, otherArgs),
|
|
39
|
+
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, "published_at_min": published_at_min, "published_at_max": published_at_max, "fields": fields, "published_status": published_status, "status": status }, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
42
42
|
response = _o.sent();
|
|
@@ -56,7 +56,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
56
56
|
operation: "count",
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
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, published_at_min: published_at_min, published_at_max: published_at_max, published_status: published_status, status: status }, otherArgs),
|
|
59
|
+
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, "published_at_min": published_at_min, "published_at_max": published_at_max, "published_status": published_status, "status": status }, otherArgs),
|
|
60
60
|
body: {},
|
|
61
61
|
entity: null,
|
|
62
62
|
})];
|
|
@@ -77,7 +77,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
77
77
|
http_method: "post",
|
|
78
78
|
operation: "spam",
|
|
79
79
|
session: this.session,
|
|
80
|
-
urlIds: { id: this.id },
|
|
80
|
+
urlIds: { "id": this.id },
|
|
81
81
|
params: tslib_1.__assign({}, otherArgs),
|
|
82
82
|
body: body,
|
|
83
83
|
entity: this,
|
|
@@ -99,7 +99,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
99
99
|
http_method: "post",
|
|
100
100
|
operation: "not_spam",
|
|
101
101
|
session: this.session,
|
|
102
|
-
urlIds: { id: this.id },
|
|
102
|
+
urlIds: { "id": this.id },
|
|
103
103
|
params: tslib_1.__assign({}, otherArgs),
|
|
104
104
|
body: body,
|
|
105
105
|
entity: this,
|
|
@@ -121,7 +121,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
121
121
|
http_method: "post",
|
|
122
122
|
operation: "approve",
|
|
123
123
|
session: this.session,
|
|
124
|
-
urlIds: { id: this.id },
|
|
124
|
+
urlIds: { "id": this.id },
|
|
125
125
|
params: tslib_1.__assign({}, otherArgs),
|
|
126
126
|
body: body,
|
|
127
127
|
entity: this,
|
|
@@ -143,7 +143,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
143
143
|
http_method: "post",
|
|
144
144
|
operation: "remove",
|
|
145
145
|
session: this.session,
|
|
146
|
-
urlIds: { id: this.id },
|
|
146
|
+
urlIds: { "id": this.id },
|
|
147
147
|
params: tslib_1.__assign({}, otherArgs),
|
|
148
148
|
body: body,
|
|
149
149
|
entity: this,
|
|
@@ -165,7 +165,7 @@ var Comment = /** @class */ (function (_super) {
|
|
|
165
165
|
http_method: "post",
|
|
166
166
|
operation: "restore",
|
|
167
167
|
session: this.session,
|
|
168
|
-
urlIds: { id: this.id },
|
|
168
|
+
urlIds: { "id": this.id },
|
|
169
169
|
params: tslib_1.__assign({}, otherArgs),
|
|
170
170
|
body: body,
|
|
171
171
|
entity: this,
|
|
@@ -183,16 +183,16 @@ var Comment = /** @class */ (function (_super) {
|
|
|
183
183
|
Comment.HAS_ONE = {};
|
|
184
184
|
Comment.HAS_MANY = {};
|
|
185
185
|
Comment.PATHS = [
|
|
186
|
-
{ http_method: "get", operation: "get", ids: [], path: "comments.json" },
|
|
187
|
-
{ http_method: "get", operation: "count", ids: [], path: "comments/count.json" },
|
|
188
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "comments/<id>.json" },
|
|
189
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "comments/<id>.json" },
|
|
190
|
-
{ http_method: "post", operation: "post", ids: [], path: "comments.json" },
|
|
191
|
-
{ http_method: "post", operation: "spam", ids: ["id"], path: "comments/<id>/spam.json" },
|
|
192
|
-
{ http_method: "post", operation: "not_spam", ids: ["id"], path: "comments/<id>/not_spam.json" },
|
|
193
|
-
{ http_method: "post", operation: "approve", ids: ["id"], path: "comments/<id>/approve.json" },
|
|
194
|
-
{ http_method: "post", operation: "remove", ids: ["id"], path: "comments/<id>/remove.json" },
|
|
195
|
-
{ http_method: "post", operation: "restore", ids: ["id"], path: "comments/<id>/restore.json" }
|
|
186
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "comments.json" },
|
|
187
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "comments/count.json" },
|
|
188
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "comments/<id>.json" },
|
|
189
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "comments/<id>.json" },
|
|
190
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "comments.json" },
|
|
191
|
+
{ "http_method": "post", "operation": "spam", "ids": ["id"], "path": "comments/<id>/spam.json" },
|
|
192
|
+
{ "http_method": "post", "operation": "not_spam", "ids": ["id"], "path": "comments/<id>/not_spam.json" },
|
|
193
|
+
{ "http_method": "post", "operation": "approve", "ids": ["id"], "path": "comments/<id>/approve.json" },
|
|
194
|
+
{ "http_method": "post", "operation": "remove", "ids": ["id"], "path": "comments/<id>/remove.json" },
|
|
195
|
+
{ "http_method": "post", "operation": "restore", "ids": ["id"], "path": "comments/<id>/restore.json" }
|
|
196
196
|
];
|
|
197
197
|
return Comment;
|
|
198
198
|
}(base_rest_resource_1.default));
|
|
@@ -18,8 +18,8 @@ var Country = /** @class */ (function (_super) {
|
|
|
18
18
|
switch (_c.label) {
|
|
19
19
|
case 0: return [4 /*yield*/, Country.baseFind({
|
|
20
20
|
session: session,
|
|
21
|
-
urlIds: { id: id },
|
|
22
|
-
params: { fields: fields },
|
|
21
|
+
urlIds: { "id": id },
|
|
22
|
+
params: { "fields": fields },
|
|
23
23
|
})];
|
|
24
24
|
case 1:
|
|
25
25
|
result = _c.sent();
|
|
@@ -38,7 +38,7 @@ var Country = /** @class */ (function (_super) {
|
|
|
38
38
|
http_method: "delete",
|
|
39
39
|
operation: "delete",
|
|
40
40
|
session: session,
|
|
41
|
-
urlIds: { id: id },
|
|
41
|
+
urlIds: { "id": id },
|
|
42
42
|
params: {},
|
|
43
43
|
})];
|
|
44
44
|
case 1:
|
|
@@ -57,7 +57,7 @@ var Country = /** @class */ (function (_super) {
|
|
|
57
57
|
case 0: return [4 /*yield*/, Country.baseFind({
|
|
58
58
|
session: session,
|
|
59
59
|
urlIds: {},
|
|
60
|
-
params: tslib_1.__assign({ since_id: since_id, fields: fields }, otherArgs),
|
|
60
|
+
params: tslib_1.__assign({ "since_id": since_id, "fields": fields }, otherArgs),
|
|
61
61
|
})];
|
|
62
62
|
case 1:
|
|
63
63
|
response = _d.sent();
|
|
@@ -93,15 +93,15 @@ var Country = /** @class */ (function (_super) {
|
|
|
93
93
|
Country.PLURAL_NAME = 'countries';
|
|
94
94
|
Country.HAS_ONE = {};
|
|
95
95
|
Country.HAS_MANY = {
|
|
96
|
-
provinces: province_1.Province
|
|
96
|
+
"provinces": province_1.Province
|
|
97
97
|
};
|
|
98
98
|
Country.PATHS = [
|
|
99
|
-
{ http_method: "get", operation: "get", ids: [], path: "countries.json" },
|
|
100
|
-
{ http_method: "post", operation: "post", ids: [], path: "countries.json" },
|
|
101
|
-
{ http_method: "get", operation: "count", ids: [], path: "countries/count.json" },
|
|
102
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "countries/<id>.json" },
|
|
103
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "countries/<id>.json" },
|
|
104
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "countries/<id>.json" }
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "countries.json" },
|
|
100
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "countries.json" },
|
|
101
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "countries/count.json" },
|
|
102
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "countries/<id>.json" },
|
|
103
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "countries/<id>.json" },
|
|
104
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "countries/<id>.json" }
|
|
105
105
|
];
|
|
106
106
|
return Country;
|
|
107
107
|
}(base_rest_resource_1.default));
|
|
@@ -33,7 +33,7 @@ var Currency = /** @class */ (function (_super) {
|
|
|
33
33
|
Currency.HAS_ONE = {};
|
|
34
34
|
Currency.HAS_MANY = {};
|
|
35
35
|
Currency.PATHS = [
|
|
36
|
-
{ http_method: "get", operation: "get", ids: [], path: "currencies.json" }
|
|
36
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "currencies.json" }
|
|
37
37
|
];
|
|
38
38
|
return Currency;
|
|
39
39
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var CustomCollection = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, CustomCollection.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 CustomCollection = /** @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 CustomCollection = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, CustomCollection.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ limit: limit, ids: ids, since_id: since_id, title: title, product_id: product_id, handle: handle, 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 }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "limit": limit, "ids": ids, "since_id": since_id, "title": title, "product_id": product_id, "handle": handle, "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 }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _p.sent();
|
|
@@ -76,7 +76,7 @@ var CustomCollection = /** @class */ (function (_super) {
|
|
|
76
76
|
operation: "count",
|
|
77
77
|
session: session,
|
|
78
78
|
urlIds: {},
|
|
79
|
-
params: tslib_1.__assign({ title: title, product_id: product_id, 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),
|
|
79
|
+
params: tslib_1.__assign({ "title": title, "product_id": product_id, "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),
|
|
80
80
|
body: {},
|
|
81
81
|
entity: null,
|
|
82
82
|
})];
|
|
@@ -93,12 +93,12 @@ var CustomCollection = /** @class */ (function (_super) {
|
|
|
93
93
|
CustomCollection.HAS_ONE = {};
|
|
94
94
|
CustomCollection.HAS_MANY = {};
|
|
95
95
|
CustomCollection.PATHS = [
|
|
96
|
-
{ http_method: "get", operation: "get", ids: [], path: "custom_collections.json" },
|
|
97
|
-
{ http_method: "post", operation: "post", ids: [], path: "custom_collections.json" },
|
|
98
|
-
{ http_method: "get", operation: "count", ids: [], path: "custom_collections/count.json" },
|
|
99
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "custom_collections/<id>.json" },
|
|
100
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "custom_collections/<id>.json" },
|
|
101
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "custom_collections/<id>.json" }
|
|
96
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "custom_collections.json" },
|
|
97
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "custom_collections.json" },
|
|
98
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "custom_collections/count.json" },
|
|
99
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "custom_collections/<id>.json" },
|
|
100
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "custom_collections/<id>.json" },
|
|
101
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "custom_collections/<id>.json" }
|
|
102
102
|
];
|
|
103
103
|
return CustomCollection;
|
|
104
104
|
}(base_rest_resource_1.default));
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import Base, { ResourcePath } from '../../base-rest-resource';
|
|
2
2
|
import { SessionInterface } from '../../auth/session/types';
|
|
3
3
|
import { ApiVersion } from '../../base-types';
|
|
4
|
-
import { Currency } from './currency';
|
|
5
4
|
import { Metafield } from './metafield';
|
|
6
5
|
interface FindArgs {
|
|
7
6
|
session: SessionInterface;
|
|
8
7
|
id: number | string;
|
|
9
8
|
fields?: unknown;
|
|
10
9
|
}
|
|
11
|
-
interface DeleteArgs {
|
|
12
|
-
session: SessionInterface;
|
|
13
|
-
id: number | string;
|
|
14
|
-
}
|
|
15
10
|
interface AllArgs {
|
|
16
11
|
[key: string]: unknown;
|
|
17
12
|
session: SessionInterface;
|
|
@@ -65,7 +60,6 @@ export declare class Customer extends Base {
|
|
|
65
60
|
};
|
|
66
61
|
protected static PATHS: ResourcePath[];
|
|
67
62
|
static find({ session, id, fields }: FindArgs): Promise<Customer | null>;
|
|
68
|
-
static delete({ session, id }: DeleteArgs): Promise<unknown>;
|
|
69
63
|
static all({ session, ids, since_id, created_at_min, created_at_max, updated_at_min, updated_at_max, limit, fields, ...otherArgs }: AllArgs): Promise<Customer[]>;
|
|
70
64
|
static search({ session, order, query, limit, fields, ...otherArgs }: SearchArgs): Promise<unknown>;
|
|
71
65
|
static count({ session, ...otherArgs }: CountArgs): Promise<unknown>;
|
|
@@ -78,9 +72,7 @@ export declare class Customer extends Base {
|
|
|
78
72
|
[key: string]: unknown;
|
|
79
73
|
}[] | null;
|
|
80
74
|
created_at: string | null;
|
|
81
|
-
currency:
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
};
|
|
75
|
+
currency: string | null;
|
|
84
76
|
default_address: {
|
|
85
77
|
[key: string]: unknown;
|
|
86
78
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-01/customer.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,
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/rest-resources/2022-01/customer.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,7 +4,6 @@ exports.Customer = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var base_rest_resource_1 = tslib_1.__importDefault(require("../../base-rest-resource"));
|
|
6
6
|
var base_types_1 = require("../../base-types");
|
|
7
|
-
var currency_1 = require("./currency");
|
|
8
7
|
var metafield_1 = require("./metafield");
|
|
9
8
|
var Customer = /** @class */ (function (_super) {
|
|
10
9
|
tslib_1.__extends(Customer, _super);
|
|
@@ -19,8 +18,8 @@ var Customer = /** @class */ (function (_super) {
|
|
|
19
18
|
switch (_c.label) {
|
|
20
19
|
case 0: return [4 /*yield*/, Customer.baseFind({
|
|
21
20
|
session: session,
|
|
22
|
-
urlIds: { id: id },
|
|
23
|
-
params: { fields: fields },
|
|
21
|
+
urlIds: { "id": id },
|
|
22
|
+
params: { "fields": fields },
|
|
24
23
|
})];
|
|
25
24
|
case 1:
|
|
26
25
|
result = _c.sent();
|
|
@@ -29,26 +28,6 @@ var Customer = /** @class */ (function (_super) {
|
|
|
29
28
|
});
|
|
30
29
|
});
|
|
31
30
|
};
|
|
32
|
-
Customer.delete = function (_a) {
|
|
33
|
-
var session = _a.session, id = _a.id;
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
35
|
-
var response;
|
|
36
|
-
return tslib_1.__generator(this, function (_b) {
|
|
37
|
-
switch (_b.label) {
|
|
38
|
-
case 0: return [4 /*yield*/, Customer.request({
|
|
39
|
-
http_method: "delete",
|
|
40
|
-
operation: "delete",
|
|
41
|
-
session: session,
|
|
42
|
-
urlIds: { id: id },
|
|
43
|
-
params: {},
|
|
44
|
-
})];
|
|
45
|
-
case 1:
|
|
46
|
-
response = _b.sent();
|
|
47
|
-
return [2 /*return*/, response ? response.body : null];
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
31
|
Customer.all = function (_a) {
|
|
53
32
|
var session = _a.session, _b = _a.ids, ids = _b === void 0 ? null : _b, _c = _a.since_id, since_id = _c === void 0 ? null : _c, _d = _a.created_at_min, created_at_min = _d === void 0 ? null : _d, _e = _a.created_at_max, created_at_max = _e === void 0 ? null : _e, _f = _a.updated_at_min, updated_at_min = _f === void 0 ? null : _f, _g = _a.updated_at_max, updated_at_max = _g === void 0 ? null : _g, _h = _a.limit, limit = _h === void 0 ? null : _h, _j = _a.fields, fields = _j === void 0 ? null : _j, otherArgs = tslib_1.__rest(_a, ["session", "ids", "since_id", "created_at_min", "created_at_max", "updated_at_min", "updated_at_max", "limit", "fields"]);
|
|
54
33
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
@@ -58,7 +37,7 @@ var Customer = /** @class */ (function (_super) {
|
|
|
58
37
|
case 0: return [4 /*yield*/, Customer.baseFind({
|
|
59
38
|
session: session,
|
|
60
39
|
urlIds: {},
|
|
61
|
-
params: tslib_1.__assign({ ids: ids, 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, limit: limit, fields: fields }, otherArgs),
|
|
40
|
+
params: tslib_1.__assign({ "ids": ids, "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, "limit": limit, "fields": fields }, otherArgs),
|
|
62
41
|
})];
|
|
63
42
|
case 1:
|
|
64
43
|
response = _k.sent();
|
|
@@ -78,7 +57,7 @@ var Customer = /** @class */ (function (_super) {
|
|
|
78
57
|
operation: "search",
|
|
79
58
|
session: session,
|
|
80
59
|
urlIds: {},
|
|
81
|
-
params: tslib_1.__assign({ order: order, query: query, limit: limit, fields: fields }, otherArgs),
|
|
60
|
+
params: tslib_1.__assign({ "order": order, "query": query, "limit": limit, "fields": fields }, otherArgs),
|
|
82
61
|
body: {},
|
|
83
62
|
entity: null,
|
|
84
63
|
})];
|
|
@@ -121,7 +100,7 @@ var Customer = /** @class */ (function (_super) {
|
|
|
121
100
|
http_method: "get",
|
|
122
101
|
operation: "orders",
|
|
123
102
|
session: session,
|
|
124
|
-
urlIds: { id: id },
|
|
103
|
+
urlIds: { "id": id },
|
|
125
104
|
params: tslib_1.__assign({}, otherArgs),
|
|
126
105
|
body: {},
|
|
127
106
|
entity: null,
|
|
@@ -143,7 +122,7 @@ var Customer = /** @class */ (function (_super) {
|
|
|
143
122
|
http_method: "post",
|
|
144
123
|
operation: "account_activation_url",
|
|
145
124
|
session: this.session,
|
|
146
|
-
urlIds: { id: this.id },
|
|
125
|
+
urlIds: { "id": this.id },
|
|
147
126
|
params: tslib_1.__assign({}, otherArgs),
|
|
148
127
|
body: body,
|
|
149
128
|
entity: this,
|
|
@@ -165,7 +144,7 @@ var Customer = /** @class */ (function (_super) {
|
|
|
165
144
|
http_method: "post",
|
|
166
145
|
operation: "send_invite",
|
|
167
146
|
session: this.session,
|
|
168
|
-
urlIds: { id: this.id },
|
|
147
|
+
urlIds: { "id": this.id },
|
|
169
148
|
params: tslib_1.__assign({}, otherArgs),
|
|
170
149
|
body: body,
|
|
171
150
|
entity: this,
|
|
@@ -181,21 +160,19 @@ var Customer = /** @class */ (function (_super) {
|
|
|
181
160
|
Customer.NAME = 'customer';
|
|
182
161
|
Customer.PLURAL_NAME = 'customers';
|
|
183
162
|
Customer.HAS_ONE = {
|
|
184
|
-
|
|
185
|
-
metafield: metafield_1.Metafield
|
|
163
|
+
"metafield": metafield_1.Metafield
|
|
186
164
|
};
|
|
187
165
|
Customer.HAS_MANY = {};
|
|
188
166
|
Customer.PATHS = [
|
|
189
|
-
{ http_method: "get", operation: "get", ids: [], path: "customers.json" },
|
|
190
|
-
{ http_method: "post", operation: "post", ids: [], path: "customers.json" },
|
|
191
|
-
{ http_method: "get", operation: "search", ids: [], path: "customers/search.json" },
|
|
192
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "customers/<id>.json" },
|
|
193
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "customers/<id>.json" },
|
|
194
|
-
{ http_method: "
|
|
195
|
-
{ http_method: "post", operation: "
|
|
196
|
-
{ http_method: "
|
|
197
|
-
{ http_method: "get", operation: "
|
|
198
|
-
{ http_method: "get", operation: "orders", ids: ["id"], path: "customers/<id>/orders.json" }
|
|
167
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "customers.json" },
|
|
168
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "customers.json" },
|
|
169
|
+
{ "http_method": "get", "operation": "search", "ids": [], "path": "customers/search.json" },
|
|
170
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "customers/<id>.json" },
|
|
171
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "customers/<id>.json" },
|
|
172
|
+
{ "http_method": "post", "operation": "account_activation_url", "ids": ["id"], "path": "customers/<id>/account_activation_url.json" },
|
|
173
|
+
{ "http_method": "post", "operation": "send_invite", "ids": ["id"], "path": "customers/<id>/send_invite.json" },
|
|
174
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "customers/count.json" },
|
|
175
|
+
{ "http_method": "get", "operation": "orders", "ids": ["id"], "path": "customers/<id>/orders.json" }
|
|
199
176
|
];
|
|
200
177
|
return Customer;
|
|
201
178
|
}(base_rest_resource_1.default));
|
|
@@ -20,7 +20,7 @@ var CustomerAddress = /** @class */ (function (_super) {
|
|
|
20
20
|
switch (_c.label) {
|
|
21
21
|
case 0: return [4 /*yield*/, CustomerAddress.baseFind({
|
|
22
22
|
session: session,
|
|
23
|
-
urlIds: { id: id, customer_id: customer_id },
|
|
23
|
+
urlIds: { "id": id, "customer_id": customer_id },
|
|
24
24
|
params: {},
|
|
25
25
|
})];
|
|
26
26
|
case 1:
|
|
@@ -40,7 +40,7 @@ var CustomerAddress = /** @class */ (function (_super) {
|
|
|
40
40
|
http_method: "delete",
|
|
41
41
|
operation: "delete",
|
|
42
42
|
session: session,
|
|
43
|
-
urlIds: { id: id, customer_id: customer_id },
|
|
43
|
+
urlIds: { "id": id, "customer_id": customer_id },
|
|
44
44
|
params: {},
|
|
45
45
|
})];
|
|
46
46
|
case 1:
|
|
@@ -58,7 +58,7 @@ var CustomerAddress = /** @class */ (function (_super) {
|
|
|
58
58
|
switch (_c.label) {
|
|
59
59
|
case 0: return [4 /*yield*/, CustomerAddress.baseFind({
|
|
60
60
|
session: session,
|
|
61
|
-
urlIds: { customer_id: customer_id },
|
|
61
|
+
urlIds: { "customer_id": customer_id },
|
|
62
62
|
params: tslib_1.__assign({}, otherArgs),
|
|
63
63
|
})];
|
|
64
64
|
case 1:
|
|
@@ -78,8 +78,8 @@ var CustomerAddress = /** @class */ (function (_super) {
|
|
|
78
78
|
http_method: "put",
|
|
79
79
|
operation: "set",
|
|
80
80
|
session: this.session,
|
|
81
|
-
urlIds: { customer_id: this.customer_id },
|
|
82
|
-
params: tslib_1.__assign({ address_ids: address_ids, operation: operation }, otherArgs),
|
|
81
|
+
urlIds: { "customer_id": this.customer_id },
|
|
82
|
+
params: tslib_1.__assign({ "address_ids": address_ids, "operation": operation }, otherArgs),
|
|
83
83
|
body: body,
|
|
84
84
|
entity: this,
|
|
85
85
|
})];
|
|
@@ -100,7 +100,7 @@ var CustomerAddress = /** @class */ (function (_super) {
|
|
|
100
100
|
http_method: "put",
|
|
101
101
|
operation: "default",
|
|
102
102
|
session: this.session,
|
|
103
|
-
urlIds: { id: this.id, customer_id: this.customer_id },
|
|
103
|
+
urlIds: { "id": this.id, "customer_id": this.customer_id },
|
|
104
104
|
params: tslib_1.__assign({}, otherArgs),
|
|
105
105
|
body: body,
|
|
106
106
|
entity: this,
|
|
@@ -118,13 +118,13 @@ var CustomerAddress = /** @class */ (function (_super) {
|
|
|
118
118
|
CustomerAddress.HAS_ONE = {};
|
|
119
119
|
CustomerAddress.HAS_MANY = {};
|
|
120
120
|
CustomerAddress.PATHS = [
|
|
121
|
-
{ http_method: "get", operation: "get", ids: ["customer_id"], path: "customers/<customer_id>/addresses.json" },
|
|
122
|
-
{ http_method: "post", operation: "post", ids: ["customer_id"], path: "customers/<customer_id>/addresses.json" },
|
|
123
|
-
{ http_method: "get", operation: "get", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>.json" },
|
|
124
|
-
{ http_method: "put", operation: "put", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>.json" },
|
|
125
|
-
{ http_method: "delete", operation: "delete", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>.json" },
|
|
126
|
-
{ http_method: "put", operation: "set", ids: ["customer_id"], path: "customers/<customer_id>/addresses/set.json" },
|
|
127
|
-
{ http_method: "put", operation: "default", ids: ["customer_id", "id"], path: "customers/<customer_id>/addresses/<id>/default.json" }
|
|
121
|
+
{ "http_method": "get", "operation": "get", "ids": ["customer_id"], "path": "customers/<customer_id>/addresses.json" },
|
|
122
|
+
{ "http_method": "post", "operation": "post", "ids": ["customer_id"], "path": "customers/<customer_id>/addresses.json" },
|
|
123
|
+
{ "http_method": "get", "operation": "get", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>.json" },
|
|
124
|
+
{ "http_method": "put", "operation": "put", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>.json" },
|
|
125
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>.json" },
|
|
126
|
+
{ "http_method": "put", "operation": "set", "ids": ["customer_id"], "path": "customers/<customer_id>/addresses/set.json" },
|
|
127
|
+
{ "http_method": "put", "operation": "default", "ids": ["customer_id", "id"], "path": "customers/<customer_id>/addresses/<id>/default.json" }
|
|
128
128
|
];
|
|
129
129
|
return CustomerAddress;
|
|
130
130
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, CustomerSavedSearch.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 CustomerSavedSearch = /** @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 CustomerSavedSearch = /** @class */ (function (_super) {
|
|
|
56
56
|
case 0: return [4 /*yield*/, CustomerSavedSearch.baseFind({
|
|
57
57
|
session: session,
|
|
58
58
|
urlIds: {},
|
|
59
|
-
params: tslib_1.__assign({ limit: limit, since_id: since_id, fields: fields }, otherArgs),
|
|
59
|
+
params: tslib_1.__assign({ "limit": limit, "since_id": since_id, "fields": fields }, otherArgs),
|
|
60
60
|
})];
|
|
61
61
|
case 1:
|
|
62
62
|
response = _e.sent();
|
|
@@ -76,7 +76,7 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
|
|
|
76
76
|
operation: "count",
|
|
77
77
|
session: session,
|
|
78
78
|
urlIds: {},
|
|
79
|
-
params: tslib_1.__assign({ since_id: since_id }, otherArgs),
|
|
79
|
+
params: tslib_1.__assign({ "since_id": since_id }, otherArgs),
|
|
80
80
|
body: {},
|
|
81
81
|
entity: null,
|
|
82
82
|
})];
|
|
@@ -97,8 +97,8 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
|
|
|
97
97
|
http_method: "get",
|
|
98
98
|
operation: "customers",
|
|
99
99
|
session: session,
|
|
100
|
-
urlIds: { id: id },
|
|
101
|
-
params: tslib_1.__assign({ order: order, limit: limit, fields: fields }, otherArgs),
|
|
100
|
+
urlIds: { "id": id },
|
|
101
|
+
params: tslib_1.__assign({ "order": order, "limit": limit, "fields": fields }, otherArgs),
|
|
102
102
|
body: {},
|
|
103
103
|
entity: null,
|
|
104
104
|
})];
|
|
@@ -115,13 +115,13 @@ var CustomerSavedSearch = /** @class */ (function (_super) {
|
|
|
115
115
|
CustomerSavedSearch.HAS_ONE = {};
|
|
116
116
|
CustomerSavedSearch.HAS_MANY = {};
|
|
117
117
|
CustomerSavedSearch.PATHS = [
|
|
118
|
-
{ http_method: "get", operation: "get", ids: [], path: "customer_saved_searches.json" },
|
|
119
|
-
{ http_method: "post", operation: "post", ids: [], path: "customer_saved_searches.json" },
|
|
120
|
-
{ http_method: "get", operation: "count", ids: [], path: "customer_saved_searches/count.json" },
|
|
121
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "customer_saved_searches/<id>.json" },
|
|
122
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "customer_saved_searches/<id>.json" },
|
|
123
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "customer_saved_searches/<id>.json" },
|
|
124
|
-
{ http_method: "get", operation: "customers", ids: ["id"], path: "customer_saved_searches/<id>/customers.json" }
|
|
118
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "customer_saved_searches.json" },
|
|
119
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "customer_saved_searches.json" },
|
|
120
|
+
{ "http_method": "get", "operation": "count", "ids": [], "path": "customer_saved_searches/count.json" },
|
|
121
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "customer_saved_searches/<id>.json" },
|
|
122
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "customer_saved_searches/<id>.json" },
|
|
123
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "customer_saved_searches/<id>.json" },
|
|
124
|
+
{ "http_method": "get", "operation": "customers", "ids": ["id"], "path": "customer_saved_searches/<id>/customers.json" }
|
|
125
125
|
];
|
|
126
126
|
return CustomerSavedSearch;
|
|
127
127
|
}(base_rest_resource_1.default));
|