@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
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,9 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
+
- ⚠️ [Breaking] The `HttpResponseError` error and its flavours (all returned from HTTP requests) have been slightly altered:
|
|
13
|
+
- They now take in a hash of values, and will always include the response code, body (as a string if the response is not JSON), and headers
|
|
14
|
+
- All response fields are now contained within a `response` object, to make it easier to access them
|
|
12
15
|
- ⚠️ [Breaking] Update supported Admin API versions [#310](https://github.com/Shopify/shopify-node-api/pull/310)
|
|
13
16
|
- Allow full paths in REST requests [#301](https://github.com/Shopify/shopify-node-api/pull/301)
|
|
14
17
|
|
|
@@ -17,17 +20,17 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
|
17
20
|
- ⚠️ [Breaking] Stop responding to the request in the GraphQL Proxy function, returning Shopify's response instead [#312](https://github.com/Shopify/shopify-node-api/pull/312)
|
|
18
21
|
|
|
19
22
|
The examples below are in [express](https://expressjs.com/); you will now need to handle the response yourself.
|
|
20
|
-
|
|
23
|
+
|
|
21
24
|
Before:
|
|
22
|
-
|
|
25
|
+
|
|
23
26
|
```js
|
|
24
27
|
app.post('/graphql', async (req, res) => {
|
|
25
28
|
await Shopify.Utils.graphqlProxy(req, res);
|
|
26
29
|
});
|
|
27
30
|
```
|
|
28
|
-
|
|
31
|
+
|
|
29
32
|
After:
|
|
30
|
-
|
|
33
|
+
|
|
31
34
|
```js
|
|
32
35
|
app.post('/graphql', async (req, res) => {
|
|
33
36
|
const response = await Shopify.Utils.graphqlProxy(req, res);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-rest-resource.d.ts","sourceRoot":"","sources":["../src/base-rest-resource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-rest-resource.d.ts","sourceRoot":"","sources":["../src/base-rest-resource.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAW,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,IAAI;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AASD,cAAM,IAAI;IAER,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAEnB,OAAc,WAAW,EAAE,UAAU,CAAC;IACtC,OAAc,cAAc,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC3D,OAAc,cAAc,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAE3D,SAAS,CAAC,MAAM,CAAC,IAAI,SAAM;IAC3B,SAAS,CAAC,MAAM,CAAC,WAAW,SAAM;IAClC,SAAS,CAAC,MAAM,CAAC,WAAW,SAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IAErD,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE;QAAC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAClE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;QAAC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,IAAI,CAAA;KAAC,CAAM;IAEnE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,CAAM;qBAErB,QAAQ,CAAC,EAC9B,OAAO,EACP,MAAM,EACN,MAAM,GACP,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;qBAeV,OAAO,CAAC,EAC7B,OAAO,EACP,WAAW,EACX,SAAS,EACT,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,GACP,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4C3C,SAAS,CAAC,MAAM,CAAC,eAAe,IAAI,MAAM;IAI1C,OAAO,CAAC,MAAM,CAAC,OAAO;IA+DtB,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAmB1C,OAAO,CAAC,MAAM,CAAC,cAAc;IAgBtB,OAAO,EAAE,gBAAgB,CAAC;gBAErB,EAAC,OAAO,EAAE,QAAQ,EAAC,EAAE,mBAAmB;IAQvC,IAAI,CAAC,EAAC,MAAc,EAAC;;KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB1C,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAU7B,SAAS,IAAI,IAAI;IAwBxB,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAwBnC,OAAO,CAAC,QAAQ;CAGjB;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -39,65 +39,44 @@ var Base = /** @class */ (function () {
|
|
|
39
39
|
Base.request = function (_a) {
|
|
40
40
|
var session = _a.session, http_method = _a.http_method, operation = _a.operation, urlIds = _a.urlIds, params = _a.params, body = _a.body, entity = _a.entity;
|
|
41
41
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
42
|
-
var client, path, cleanParams, key
|
|
43
|
-
return tslib_1.__generator(this, function (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
if (params) {
|
|
53
|
-
|
|
54
|
-
if (params[key] !== null) {
|
|
55
|
-
cleanParams[key] = params[key];
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
_c.label = 1;
|
|
60
|
-
case 1:
|
|
61
|
-
_c.trys.push([1, 12, , 13]);
|
|
62
|
-
_b = http_method;
|
|
63
|
-
switch (_b) {
|
|
64
|
-
case 'get': return [3 /*break*/, 2];
|
|
65
|
-
case 'post': return [3 /*break*/, 4];
|
|
66
|
-
case 'put': return [3 /*break*/, 6];
|
|
67
|
-
case 'delete': return [3 /*break*/, 8];
|
|
68
|
-
}
|
|
69
|
-
return [3 /*break*/, 10];
|
|
70
|
-
case 2: return [4 /*yield*/, client.get({ path: path, query: cleanParams })];
|
|
71
|
-
case 3: return [2 /*return*/, _c.sent()];
|
|
72
|
-
case 4: return [4 /*yield*/, client.post({
|
|
73
|
-
path: path,
|
|
74
|
-
query: cleanParams,
|
|
75
|
-
data: body,
|
|
76
|
-
type: types_1.DataType.JSON,
|
|
77
|
-
})];
|
|
78
|
-
case 5: return [2 /*return*/, _c.sent()];
|
|
79
|
-
case 6: return [4 /*yield*/, client.put({
|
|
80
|
-
path: path,
|
|
81
|
-
query: cleanParams,
|
|
82
|
-
data: body,
|
|
83
|
-
type: types_1.DataType.JSON,
|
|
84
|
-
})];
|
|
85
|
-
case 7: return [2 /*return*/, _c.sent()];
|
|
86
|
-
case 8: return [4 /*yield*/, client.delete({ path: path, query: cleanParams })];
|
|
87
|
-
case 9: return [2 /*return*/, _c.sent()];
|
|
88
|
-
case 10: throw new Error("Unrecognized HTTP method \"" + http_method + "\"");
|
|
89
|
-
case 11: return [3 /*break*/, 13];
|
|
90
|
-
case 12:
|
|
91
|
-
error_2 = _c.sent();
|
|
92
|
-
if (error_2 instanceof error_1.HttpResponseError) {
|
|
93
|
-
throw new error_1.RestResourceRequestError(error_2.message, error_2.code, error_2.statusText);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
throw error_2;
|
|
42
|
+
var client, path, cleanParams, key;
|
|
43
|
+
return tslib_1.__generator(this, function (_b) {
|
|
44
|
+
if (context_1.Context.API_VERSION !== this.API_VERSION) {
|
|
45
|
+
throw new error_1.RestResourceError("Current Context.API_VERSION '" + context_1.Context.API_VERSION + "' does not match resource version " + this.API_VERSION);
|
|
46
|
+
}
|
|
47
|
+
client = new rest_1.RestClient(session.shop, session.accessToken);
|
|
48
|
+
path = this.getPath({ http_method: http_method, operation: operation, urlIds: urlIds, entity: entity });
|
|
49
|
+
cleanParams = {};
|
|
50
|
+
if (params) {
|
|
51
|
+
for (key in params) {
|
|
52
|
+
if (params[key] !== null) {
|
|
53
|
+
cleanParams[key] = params[key];
|
|
97
54
|
}
|
|
98
|
-
|
|
99
|
-
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
switch (http_method) {
|
|
58
|
+
case 'get':
|
|
59
|
+
return [2 /*return*/, client.get({ path: path, query: cleanParams })];
|
|
60
|
+
case 'post':
|
|
61
|
+
return [2 /*return*/, client.post({
|
|
62
|
+
path: path,
|
|
63
|
+
query: cleanParams,
|
|
64
|
+
data: body,
|
|
65
|
+
type: types_1.DataType.JSON,
|
|
66
|
+
})];
|
|
67
|
+
case 'put':
|
|
68
|
+
return [2 /*return*/, client.put({
|
|
69
|
+
path: path,
|
|
70
|
+
query: cleanParams,
|
|
71
|
+
data: body,
|
|
72
|
+
type: types_1.DataType.JSON,
|
|
73
|
+
})];
|
|
74
|
+
case 'delete':
|
|
75
|
+
return [2 /*return*/, client.delete({ path: path, query: cleanParams })];
|
|
76
|
+
default:
|
|
77
|
+
throw new Error("Unrecognized HTTP method \"" + http_method + "\"");
|
|
100
78
|
}
|
|
79
|
+
return [2 /*return*/];
|
|
101
80
|
});
|
|
102
81
|
});
|
|
103
82
|
};
|
|
@@ -149,8 +128,8 @@ var Base = /** @class */ (function () {
|
|
|
149
128
|
};
|
|
150
129
|
Base.createInstancesFromResponse = function (session, data) {
|
|
151
130
|
var _this = this;
|
|
152
|
-
if (data[this.PLURAL_NAME]) {
|
|
153
|
-
return data[this.PLURAL_NAME].reduce(function (acc, entry) {
|
|
131
|
+
if (data[this.PLURAL_NAME] || Array.isArray(data[this.NAME])) {
|
|
132
|
+
return (data[this.PLURAL_NAME] || data[this.NAME]).reduce(function (acc, entry) {
|
|
154
133
|
return acc.concat(_this.createInstance(session, entry));
|
|
155
134
|
}, []);
|
|
156
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../../src/clients/http_client/http_client.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,cAAM,UAAU;IAOK,OAAO,CAAC,MAAM;IALjC,MAAM,CAAC,QAAQ,CAAC,eAAe,QAAQ;IAEvC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,UAAU;IACjD,OAAO,CAAC,mBAAmB,CAA+B;gBAE/B,MAAM,EAAE,MAAM;IAQzC;;OAEG;IACU,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIlE;;OAEG;IACU,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIpE;;OAEG;IACU,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIlE;;OAEG;IACU,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC;cAIxD,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IA0GtE,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;YAIhC,SAAS;
|
|
1
|
+
{"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../../src/clients/http_client/http_client.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,cAAM,UAAU;IAOK,OAAO,CAAC,MAAM;IALjC,MAAM,CAAC,QAAQ,CAAC,eAAe,QAAQ;IAEvC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,UAAU;IACjD,OAAO,CAAC,mBAAmB,CAA+B;gBAE/B,MAAM,EAAE,MAAM;IAQzC;;OAEG;IACU,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIlE;;OAEG;IACU,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIpE;;OAEG;IACU,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIlE;;OAEG;IACU,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC;cAIxD,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IA0GtE,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;YAIhC,SAAS;CA8GxB;AAED,OAAO,EAAC,UAAU,EAAC,CAAC"}
|
|
@@ -136,8 +136,8 @@ var HttpClient = /** @class */ (function () {
|
|
|
136
136
|
if (!(tries < maxTries)) return [3 /*break*/, 6];
|
|
137
137
|
waitTime = HttpClient.RETRY_WAIT_TIME;
|
|
138
138
|
if (error_1 instanceof ShopifyErrors.HttpThrottlingError &&
|
|
139
|
-
error_1.retryAfter) {
|
|
140
|
-
waitTime = error_1.retryAfter * 1000;
|
|
139
|
+
error_1.response.retryAfter) {
|
|
140
|
+
waitTime = error_1.response.retryAfter * 1000;
|
|
141
141
|
}
|
|
142
142
|
return [4 /*yield*/, sleep(waitTime)];
|
|
143
143
|
case 5:
|
|
@@ -170,7 +170,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
170
170
|
return tslib_1.__generator(this, function (_a) {
|
|
171
171
|
return [2 /*return*/, node_fetch_1.default(url, options)
|
|
172
172
|
.then(function (response) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
173
|
-
var body, deprecation, depHash, stack, log, errorMessages, errorMessage, retryAfter;
|
|
173
|
+
var body, deprecation, depHash, stack, log, errorMessages, errorMessage, headers, code, statusText, retryAfter;
|
|
174
174
|
return tslib_1.__generator(this, function (_a) {
|
|
175
175
|
switch (_a.label) {
|
|
176
176
|
case 0: return [4 /*yield*/, response.json()];
|
|
@@ -220,15 +220,37 @@ var HttpClient = /** @class */ (function () {
|
|
|
220
220
|
errorMessage = errorMessages.length
|
|
221
221
|
? ":\n" + errorMessages.join('\n')
|
|
222
222
|
: '';
|
|
223
|
+
headers = response.headers.raw();
|
|
224
|
+
code = response.status;
|
|
225
|
+
statusText = response.statusText;
|
|
223
226
|
switch (true) {
|
|
224
227
|
case response.status === network_1.StatusCode.TooManyRequests: {
|
|
225
228
|
retryAfter = response.headers.get('Retry-After');
|
|
226
|
-
throw new ShopifyErrors.HttpThrottlingError(
|
|
229
|
+
throw new ShopifyErrors.HttpThrottlingError({
|
|
230
|
+
message: "Shopify is throttling requests" + errorMessage,
|
|
231
|
+
code: code,
|
|
232
|
+
statusText: statusText,
|
|
233
|
+
body: body,
|
|
234
|
+
headers: headers,
|
|
235
|
+
retryAfter: retryAfter ? parseFloat(retryAfter) : undefined,
|
|
236
|
+
});
|
|
227
237
|
}
|
|
228
238
|
case response.status >= network_1.StatusCode.InternalServerError:
|
|
229
|
-
throw new ShopifyErrors.HttpInternalError(
|
|
239
|
+
throw new ShopifyErrors.HttpInternalError({
|
|
240
|
+
message: "Shopify internal error" + errorMessage,
|
|
241
|
+
code: code,
|
|
242
|
+
statusText: statusText,
|
|
243
|
+
body: body,
|
|
244
|
+
headers: headers,
|
|
245
|
+
});
|
|
230
246
|
default:
|
|
231
|
-
throw new ShopifyErrors.HttpResponseError(
|
|
247
|
+
throw new ShopifyErrors.HttpResponseError({
|
|
248
|
+
message: "Received an error response (" + response.status + " " + response.statusText + ") from Shopify" + errorMessage,
|
|
249
|
+
code: code,
|
|
250
|
+
statusText: statusText,
|
|
251
|
+
body: body,
|
|
252
|
+
headers: headers,
|
|
253
|
+
});
|
|
232
254
|
}
|
|
233
255
|
}
|
|
234
256
|
return [2 /*return*/];
|
package/dist/error.d.ts
CHANGED
|
@@ -1,56 +1,72 @@
|
|
|
1
|
-
declare class ShopifyError extends Error {
|
|
1
|
+
export declare class ShopifyError extends Error {
|
|
2
2
|
constructor(...args: any);
|
|
3
3
|
}
|
|
4
|
-
declare class InvalidHmacError extends ShopifyError {
|
|
4
|
+
export declare class InvalidHmacError extends ShopifyError {
|
|
5
5
|
}
|
|
6
|
-
declare class InvalidShopError extends ShopifyError {
|
|
6
|
+
export declare class InvalidShopError extends ShopifyError {
|
|
7
7
|
}
|
|
8
|
-
declare class InvalidJwtError extends ShopifyError {
|
|
8
|
+
export declare class InvalidJwtError extends ShopifyError {
|
|
9
9
|
}
|
|
10
|
-
declare class MissingJwtTokenError extends ShopifyError {
|
|
10
|
+
export declare class MissingJwtTokenError extends ShopifyError {
|
|
11
11
|
}
|
|
12
|
-
declare class SafeCompareError extends ShopifyError {
|
|
12
|
+
export declare class SafeCompareError extends ShopifyError {
|
|
13
13
|
}
|
|
14
|
-
declare class UninitializedContextError extends ShopifyError {
|
|
14
|
+
export declare class UninitializedContextError extends ShopifyError {
|
|
15
15
|
}
|
|
16
|
-
declare class PrivateAppError extends ShopifyError {
|
|
16
|
+
export declare class PrivateAppError extends ShopifyError {
|
|
17
17
|
}
|
|
18
|
-
declare class HttpRequestError extends ShopifyError {
|
|
18
|
+
export declare class HttpRequestError extends ShopifyError {
|
|
19
19
|
}
|
|
20
|
-
declare class HttpMaxRetriesError extends ShopifyError {
|
|
20
|
+
export declare class HttpMaxRetriesError extends ShopifyError {
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
interface HttpResponseData {
|
|
23
|
+
code: number;
|
|
24
|
+
statusText: string;
|
|
25
|
+
body?: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
headers?: {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
};
|
|
26
31
|
}
|
|
27
|
-
|
|
32
|
+
interface HttpResponseErrorParams extends HttpResponseData {
|
|
33
|
+
message: string;
|
|
28
34
|
}
|
|
29
|
-
declare class
|
|
35
|
+
export declare class HttpResponseError extends ShopifyError {
|
|
36
|
+
readonly response: HttpResponseData;
|
|
37
|
+
constructor({ message, code, statusText, body, headers, }: HttpResponseErrorParams);
|
|
30
38
|
}
|
|
31
|
-
declare class
|
|
32
|
-
readonly retryAfter?: number | undefined;
|
|
33
|
-
constructor(message: string, retryAfter?: number | undefined);
|
|
39
|
+
export declare class HttpRetriableError extends HttpResponseError {
|
|
34
40
|
}
|
|
35
|
-
declare class
|
|
41
|
+
export declare class HttpInternalError extends HttpRetriableError {
|
|
36
42
|
}
|
|
37
|
-
|
|
43
|
+
interface HttpThrottlingErrorData extends HttpResponseData {
|
|
44
|
+
retryAfter?: number;
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
interface HttpThrottlingErrorParams extends HttpThrottlingErrorData {
|
|
47
|
+
message: string;
|
|
40
48
|
}
|
|
41
|
-
declare class
|
|
49
|
+
export declare class HttpThrottlingError extends HttpRetriableError {
|
|
50
|
+
readonly response: HttpThrottlingErrorData;
|
|
51
|
+
constructor({ retryAfter, ...params }: HttpThrottlingErrorParams);
|
|
42
52
|
}
|
|
43
|
-
declare class
|
|
53
|
+
export declare class RestResourceError extends ShopifyError {
|
|
44
54
|
}
|
|
45
|
-
declare class
|
|
55
|
+
export declare class InvalidOAuthError extends ShopifyError {
|
|
46
56
|
}
|
|
47
|
-
declare class
|
|
57
|
+
export declare class SessionNotFound extends ShopifyError {
|
|
48
58
|
}
|
|
49
|
-
declare class
|
|
59
|
+
export declare class CookieNotFound extends ShopifyError {
|
|
50
60
|
}
|
|
51
|
-
declare class
|
|
61
|
+
export declare class InvalidSession extends ShopifyError {
|
|
52
62
|
}
|
|
53
|
-
declare class
|
|
63
|
+
export declare class InvalidWebhookError extends ShopifyError {
|
|
54
64
|
}
|
|
55
|
-
export
|
|
65
|
+
export declare class SessionStorageError extends ShopifyError {
|
|
66
|
+
}
|
|
67
|
+
export declare class MissingRequiredArgument extends ShopifyError {
|
|
68
|
+
}
|
|
69
|
+
export declare class UnsupportedClientType extends ShopifyError {
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
56
72
|
//# sourceMappingURL=error.d.ts.map
|
package/dist/error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAa,SAAQ,KAAK;gBACzB,GAAG,IAAI,EAAE,GAAG;CAIzB;AAED,qBAAa,gBAAiB,SAAQ,YAAY;CAAG;AACrD,qBAAa,gBAAiB,SAAQ,YAAY;CAAG;AACrD,qBAAa,eAAgB,SAAQ,YAAY;CAAG;AACpD,qBAAa,oBAAqB,SAAQ,YAAY;CAAG;AAEzD,qBAAa,gBAAiB,SAAQ,YAAY;CAAG;AACrD,qBAAa,yBAA0B,SAAQ,YAAY;CAAG;AAC9D,qBAAa,eAAgB,SAAQ,YAAY;CAAG;AAEpD,qBAAa,gBAAiB,SAAQ,YAAY;CAAG;AACrD,qBAAa,mBAAoB,SAAQ,YAAY;CAAG;AAExD,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;IAChC,OAAO,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CACpC;AACD,UAAU,uBAAwB,SAAQ,gBAAgB;IACxD,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEjB,EACjB,OAAO,EACP,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,OAAO,GACR,EAAE,uBAAuB;CAS3B;AACD,qBAAa,kBAAmB,SAAQ,iBAAiB;CAAG;AAC5D,qBAAa,iBAAkB,SAAQ,kBAAkB;CAAG;AAE5D,UAAU,uBAAwB,SAAQ,gBAAgB;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,UAAU,yBAA0B,SAAQ,uBAAuB;IACjE,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,qBAAa,mBAAoB,SAAQ,kBAAkB;IACzD,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,CAAC;gBAExB,EAAC,UAAU,EAAE,GAAG,MAAM,EAAC,EAAE,yBAAyB;CAItE;AAED,qBAAa,iBAAkB,SAAQ,YAAY;CAAG;AAEtD,qBAAa,iBAAkB,SAAQ,YAAY;CAAG;AACtD,qBAAa,eAAgB,SAAQ,YAAY;CAAG;AACpD,qBAAa,cAAe,SAAQ,YAAY;CAAG;AACnD,qBAAa,cAAe,SAAQ,YAAY;CAAG;AAEnD,qBAAa,mBAAoB,SAAQ,YAAY;CAAG;AACxD,qBAAa,mBAAoB,SAAQ,YAAY;CAAG;AAExD,qBAAa,uBAAwB,SAAQ,YAAY;CAAG;AAC5D,qBAAa,qBAAsB,SAAQ,YAAY;CAAG"}
|
package/dist/error.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UnsupportedClientType = exports.MissingRequiredArgument = exports.SessionStorageError = exports.InvalidWebhookError = exports.InvalidSession = exports.CookieNotFound = exports.SessionNotFound = exports.InvalidOAuthError = exports.RestResourceError = exports.HttpThrottlingError = exports.HttpInternalError = exports.HttpRetriableError = exports.HttpResponseError = exports.HttpMaxRetriesError = exports.HttpRequestError = exports.PrivateAppError = exports.UninitializedContextError = exports.SafeCompareError = exports.MissingJwtTokenError = exports.InvalidJwtError = exports.InvalidShopError = exports.InvalidHmacError = exports.ShopifyError = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var ShopifyError = /** @class */ (function (_super) {
|
|
6
6
|
tslib_1.__extends(ShopifyError, _super);
|
|
@@ -91,10 +91,15 @@ var HttpMaxRetriesError = /** @class */ (function (_super) {
|
|
|
91
91
|
exports.HttpMaxRetriesError = HttpMaxRetriesError;
|
|
92
92
|
var HttpResponseError = /** @class */ (function (_super) {
|
|
93
93
|
tslib_1.__extends(HttpResponseError, _super);
|
|
94
|
-
function HttpResponseError(
|
|
94
|
+
function HttpResponseError(_a) {
|
|
95
|
+
var message = _a.message, code = _a.code, statusText = _a.statusText, body = _a.body, headers = _a.headers;
|
|
95
96
|
var _this = _super.call(this, message) || this;
|
|
96
|
-
_this.
|
|
97
|
-
|
|
97
|
+
_this.response = {
|
|
98
|
+
code: code,
|
|
99
|
+
statusText: statusText,
|
|
100
|
+
body: body,
|
|
101
|
+
headers: headers,
|
|
102
|
+
};
|
|
98
103
|
return _this;
|
|
99
104
|
}
|
|
100
105
|
return HttpResponseError;
|
|
@@ -106,7 +111,7 @@ var HttpRetriableError = /** @class */ (function (_super) {
|
|
|
106
111
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
107
112
|
}
|
|
108
113
|
return HttpRetriableError;
|
|
109
|
-
}(
|
|
114
|
+
}(HttpResponseError));
|
|
110
115
|
exports.HttpRetriableError = HttpRetriableError;
|
|
111
116
|
var HttpInternalError = /** @class */ (function (_super) {
|
|
112
117
|
tslib_1.__extends(HttpInternalError, _super);
|
|
@@ -118,9 +123,10 @@ var HttpInternalError = /** @class */ (function (_super) {
|
|
|
118
123
|
exports.HttpInternalError = HttpInternalError;
|
|
119
124
|
var HttpThrottlingError = /** @class */ (function (_super) {
|
|
120
125
|
tslib_1.__extends(HttpThrottlingError, _super);
|
|
121
|
-
function HttpThrottlingError(
|
|
122
|
-
var
|
|
123
|
-
_this
|
|
126
|
+
function HttpThrottlingError(_a) {
|
|
127
|
+
var retryAfter = _a.retryAfter, params = tslib_1.__rest(_a, ["retryAfter"]);
|
|
128
|
+
var _this = _super.call(this, params) || this;
|
|
129
|
+
_this.response.retryAfter = retryAfter;
|
|
124
130
|
return _this;
|
|
125
131
|
}
|
|
126
132
|
return HttpThrottlingError;
|
|
@@ -134,14 +140,6 @@ var RestResourceError = /** @class */ (function (_super) {
|
|
|
134
140
|
return RestResourceError;
|
|
135
141
|
}(ShopifyError));
|
|
136
142
|
exports.RestResourceError = RestResourceError;
|
|
137
|
-
var RestResourceRequestError = /** @class */ (function (_super) {
|
|
138
|
-
tslib_1.__extends(RestResourceRequestError, _super);
|
|
139
|
-
function RestResourceRequestError() {
|
|
140
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
141
|
-
}
|
|
142
|
-
return RestResourceRequestError;
|
|
143
|
-
}(HttpResponseError));
|
|
144
|
-
exports.RestResourceRequestError = RestResourceRequestError;
|
|
145
143
|
var InvalidOAuthError = /** @class */ (function (_super) {
|
|
146
144
|
tslib_1.__extends(InvalidOAuthError, _super);
|
|
147
145
|
function InvalidOAuthError() {
|
|
@@ -23,7 +23,7 @@ var AbandonedCheckout = /** @class */ (function (_super) {
|
|
|
23
23
|
operation: "checkouts",
|
|
24
24
|
session: session,
|
|
25
25
|
urlIds: {},
|
|
26
|
-
params: tslib_1.__assign({ 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, status: status, limit: limit }, otherArgs),
|
|
26
|
+
params: tslib_1.__assign({ "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, "status": status, "limit": limit }, otherArgs),
|
|
27
27
|
body: {},
|
|
28
28
|
entity: null,
|
|
29
29
|
})];
|
|
@@ -38,15 +38,15 @@ var AbandonedCheckout = /** @class */ (function (_super) {
|
|
|
38
38
|
AbandonedCheckout.NAME = 'abandoned_checkout';
|
|
39
39
|
AbandonedCheckout.PLURAL_NAME = 'abandoned_checkouts';
|
|
40
40
|
AbandonedCheckout.HAS_ONE = {
|
|
41
|
-
currency: currency_1.Currency,
|
|
42
|
-
customer: customer_1.Customer
|
|
41
|
+
"currency": currency_1.Currency,
|
|
42
|
+
"customer": customer_1.Customer
|
|
43
43
|
};
|
|
44
44
|
AbandonedCheckout.HAS_MANY = {
|
|
45
|
-
discount_codes: discount_code_1.DiscountCode
|
|
45
|
+
"discount_codes": discount_code_1.DiscountCode
|
|
46
46
|
};
|
|
47
47
|
AbandonedCheckout.PATHS = [
|
|
48
|
-
{ http_method: "get", operation: "checkouts", ids: [], path: "checkouts.json" },
|
|
49
|
-
{ http_method: "get", operation: "checkouts", ids: [], path: "checkouts.json" }
|
|
48
|
+
{ "http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json" },
|
|
49
|
+
{ "http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json" }
|
|
50
50
|
];
|
|
51
51
|
return AbandonedCheckout;
|
|
52
52
|
}(base_rest_resource_1.default));
|
|
@@ -34,7 +34,7 @@ var AccessScope = /** @class */ (function (_super) {
|
|
|
34
34
|
AccessScope.HAS_MANY = {};
|
|
35
35
|
AccessScope.CUSTOM_PREFIX = "/admin/oauth";
|
|
36
36
|
AccessScope.PATHS = [
|
|
37
|
-
{ http_method: "get", operation: "get", ids: [], path: "access_scopes.json" }
|
|
37
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "access_scopes.json" }
|
|
38
38
|
];
|
|
39
39
|
return AccessScope;
|
|
40
40
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var AndroidPayKey = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, AndroidPayKey.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 AndroidPayKey = /** @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:
|
|
@@ -53,9 +53,9 @@ var AndroidPayKey = /** @class */ (function (_super) {
|
|
|
53
53
|
AndroidPayKey.HAS_ONE = {};
|
|
54
54
|
AndroidPayKey.HAS_MANY = {};
|
|
55
55
|
AndroidPayKey.PATHS = [
|
|
56
|
-
{ http_method: "post", operation: "post", ids: [], path: "android_pay_keys.json" },
|
|
57
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "android_pay_keys/<id>.json" },
|
|
58
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "android_pay_keys/<id>.json" }
|
|
56
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "android_pay_keys.json" },
|
|
57
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "android_pay_keys/<id>.json" },
|
|
58
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "android_pay_keys/<id>.json" }
|
|
59
59
|
];
|
|
60
60
|
return AndroidPayKey;
|
|
61
61
|
}(base_rest_resource_1.default));
|
|
@@ -17,7 +17,7 @@ var ApplePayCertificate = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_b.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, ApplePayCertificate.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 ApplePayCertificate = /** @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:
|
|
@@ -57,7 +57,7 @@ var ApplePayCertificate = /** @class */ (function (_super) {
|
|
|
57
57
|
http_method: "get",
|
|
58
58
|
operation: "csr",
|
|
59
59
|
session: session,
|
|
60
|
-
urlIds: { id: id },
|
|
60
|
+
urlIds: { "id": id },
|
|
61
61
|
params: tslib_1.__assign({}, otherArgs),
|
|
62
62
|
body: {},
|
|
63
63
|
entity: null,
|
|
@@ -75,11 +75,11 @@ var ApplePayCertificate = /** @class */ (function (_super) {
|
|
|
75
75
|
ApplePayCertificate.HAS_ONE = {};
|
|
76
76
|
ApplePayCertificate.HAS_MANY = {};
|
|
77
77
|
ApplePayCertificate.PATHS = [
|
|
78
|
-
{ http_method: "post", operation: "post", ids: [], path: "apple_pay_certificates.json" },
|
|
79
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "apple_pay_certificates/<id>.json" },
|
|
80
|
-
{ http_method: "put", operation: "put", ids: ["id"], path: "apple_pay_certificates/<id>.json" },
|
|
81
|
-
{ http_method: "delete", operation: "delete", ids: ["id"], path: "apple_pay_certificates/<id>.json" },
|
|
82
|
-
{ http_method: "get", operation: "csr", ids: ["id"], path: "apple_pay_certificates/<id>/csr.json" }
|
|
78
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "apple_pay_certificates.json" },
|
|
79
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "apple_pay_certificates/<id>.json" },
|
|
80
|
+
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "apple_pay_certificates/<id>.json" },
|
|
81
|
+
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "apple_pay_certificates/<id>.json" },
|
|
82
|
+
{ "http_method": "get", "operation": "csr", "ids": ["id"], "path": "apple_pay_certificates/<id>/csr.json" }
|
|
83
83
|
];
|
|
84
84
|
return ApplePayCertificate;
|
|
85
85
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var ApplicationCharge = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, ApplicationCharge.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 ApplicationCharge = /** @class */ (function (_super) {
|
|
|
36
36
|
case 0: return [4 /*yield*/, ApplicationCharge.baseFind({
|
|
37
37
|
session: session,
|
|
38
38
|
urlIds: {},
|
|
39
|
-
params: tslib_1.__assign({ since_id: since_id, fields: fields }, otherArgs),
|
|
39
|
+
params: tslib_1.__assign({ "since_id": since_id, "fields": fields }, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
42
42
|
response = _d.sent();
|
|
@@ -51,9 +51,9 @@ var ApplicationCharge = /** @class */ (function (_super) {
|
|
|
51
51
|
ApplicationCharge.HAS_ONE = {};
|
|
52
52
|
ApplicationCharge.HAS_MANY = {};
|
|
53
53
|
ApplicationCharge.PATHS = [
|
|
54
|
-
{ http_method: "post", operation: "post", ids: [], path: "application_charges.json" },
|
|
55
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "application_charges/<id>.json" },
|
|
56
|
-
{ http_method: "get", operation: "get", ids: [], path: "application_charges.json" }
|
|
54
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "application_charges.json" },
|
|
55
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "application_charges/<id>.json" },
|
|
56
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "application_charges.json" }
|
|
57
57
|
];
|
|
58
58
|
return ApplicationCharge;
|
|
59
59
|
}(base_rest_resource_1.default));
|
|
@@ -17,8 +17,8 @@ var ApplicationCredit = /** @class */ (function (_super) {
|
|
|
17
17
|
switch (_c.label) {
|
|
18
18
|
case 0: return [4 /*yield*/, ApplicationCredit.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 ApplicationCredit = /** @class */ (function (_super) {
|
|
|
36
36
|
case 0: return [4 /*yield*/, ApplicationCredit.baseFind({
|
|
37
37
|
session: session,
|
|
38
38
|
urlIds: {},
|
|
39
|
-
params: tslib_1.__assign({ fields: fields }, otherArgs),
|
|
39
|
+
params: tslib_1.__assign({ "fields": fields }, otherArgs),
|
|
40
40
|
})];
|
|
41
41
|
case 1:
|
|
42
42
|
response = _c.sent();
|
|
@@ -51,9 +51,9 @@ var ApplicationCredit = /** @class */ (function (_super) {
|
|
|
51
51
|
ApplicationCredit.HAS_ONE = {};
|
|
52
52
|
ApplicationCredit.HAS_MANY = {};
|
|
53
53
|
ApplicationCredit.PATHS = [
|
|
54
|
-
{ http_method: "post", operation: "post", ids: [], path: "application_credits.json" },
|
|
55
|
-
{ http_method: "get", operation: "get", ids: [], path: "application_credits.json" },
|
|
56
|
-
{ http_method: "get", operation: "get", ids: ["id"], path: "application_credits/<id>.json" }
|
|
54
|
+
{ "http_method": "post", "operation": "post", "ids": [], "path": "application_credits.json" },
|
|
55
|
+
{ "http_method": "get", "operation": "get", "ids": [], "path": "application_credits.json" },
|
|
56
|
+
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "application_credits/<id>.json" }
|
|
57
57
|
];
|
|
58
58
|
return ApplicationCredit;
|
|
59
59
|
}(base_rest_resource_1.default));
|