Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented IPaginatedResult for supported endpoints #477

Merged
merged 15 commits into from
Mar 31, 2021
Merged

Implemented IPaginatedResult for supported endpoints #477

merged 15 commits into from
Mar 31, 2021

Commits on Dec 19, 2020

  1. This enabled usage of pagination for orders and products.

    No original work here. It´s basically what @YourWishes suggests in #288.
    Could and should be extended throughout the api for lists.
    
    Usage example:
    ```
      const orderList: IOrder[] = [];
      const orderStatus = 'any';
    
      let params = { status: orderStatus, limit: 250 };
    
      do {
        const orders = await shopify.order.list(params);
    
        for (const order of orders) {
          orderList.push(order);
        }
    
        params = orders.nextPageParameters;
      } while (params !== undefined);
    
      console.log(`after while loop len:${orderList.length}`)
    ```
    LarsBuur committed Dec 19, 2020
    Configuration menu
    Copy the full SHA
    5e3ca77 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2020

  1. Configuration menu
    Copy the full SHA
    375bfb3 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. Configuration menu
    Copy the full SHA
    bf13260 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. This enabled usage of pagination for orders and products.

    No original work here. It´s basically what @YourWishes suggests in #288.
    Could and should be extended throughout the api for lists.
    
    Usage example:
    ```
      const orderList: IOrder[] = [];
      const orderStatus = 'any';
    
      let params = { status: orderStatus, limit: 250 };
    
      do {
        const orders = await shopify.order.list(params);
    
        for (const order of orders) {
          orderList.push(order);
        }
    
        params = orders.nextPageParameters;
      } while (params !== undefined);
    
      console.log(`after while loop len:${orderList.length}`)
    ```
    LarsBuur authored and Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    3f81386 View commit details
    Browse the repository at this point in the history
  2. added Shopify.ICustomer paging

    LarsBuur authored and Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    45928df View commit details
    Browse the repository at this point in the history
  3. Added field checkout_id to IOrder

    LarsBuur authored and Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    93e94db View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1957eba View commit details
    Browse the repository at this point in the history
  5. Added paginated result types for supported operations

    Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    8a646f8 View commit details
    Browse the repository at this point in the history
  6. Added missing fields on IPayout

    Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    3672667 View commit details
    Browse the repository at this point in the history
  7. Fixed styling issues

    Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    86c348a View commit details
    Browse the repository at this point in the history
  8. Added missing array types

    Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
    metasloth and lpinca committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    a03c76a View commit details
    Browse the repository at this point in the history
  9. Added missing array types

    Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
    metasloth and lpinca committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    1bbb881 View commit details
    Browse the repository at this point in the history
  10. Added missing array types

    Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
    metasloth and lpinca committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    1f155e0 View commit details
    Browse the repository at this point in the history
  11. Wrapped code to adhere to prettier settings

    Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    767f8e7 View commit details
    Browse the repository at this point in the history
  12. added checkout paginated response

    Sam Hemann committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    b7a86b1 View commit details
    Browse the repository at this point in the history