diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a323e9..b005b1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: # This job uses skip-duplicate-actions to skip one of the duplicate workflow runs when you push to a branch with an open PR. check_duplicate_workflow: needs: [] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: @@ -24,7 +24,7 @@ jobs: lint: needs: [check_duplicate_workflow] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }} steps: - name: Check out repository code @@ -40,7 +40,7 @@ jobs: build: needs: [check_duplicate_workflow] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }} steps: - name: Check out repository code @@ -62,7 +62,7 @@ jobs: test: needs: [check_duplicate_workflow] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }} env: MOCHA_FILE: test-results/mocha/test-results.xml @@ -90,7 +90,7 @@ jobs: release: needs: [lint, build, test] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }} env: NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELASTICPATH }} diff --git a/src/types/cart.d.ts b/src/types/cart.d.ts index 1fd7d33..3002d33 100644 --- a/src/types/cart.d.ts +++ b/src/types/cart.d.ts @@ -71,6 +71,7 @@ export interface Cart { discount_settings: { custom_discounts_enabled: boolean } + snapshot_date?: string } export interface CartItemBase { diff --git a/src/types/order.d.ts b/src/types/order.d.ts index 9d23783..9c29dfb 100644 --- a/src/types/order.d.ts +++ b/src/types/order.d.ts @@ -74,6 +74,7 @@ export interface OrderBase { shipping_address: OrderShippingAddress billing_address: OrderBillingAddress external_ref?: string + order_number?: string } export interface Order extends Identifiable, OrderBase {