apirocket 0.5.6 → 0.5.7

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.
@@ -1,5 +1,5 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { AjaxResponse } from 'rxjs/ajax';
2
- import { Observable } from 'rxjs/internal/Observable';
3
3
  import type { CustomerService } from '@src/services/customer.service';
4
4
  export type QueryErrors = {
5
5
  __errors?: Array<string>;
@@ -15,5 +15,5 @@ export declare const post: <T>(url: string, data: any, customer?: CustomerServic
15
15
  __errors: any;
16
16
  status: number;
17
17
  } & T>;
18
- export declare const get: (url: string, data: any, customer: CustomerService) => Observable<AjaxResponse<any>>;
18
+ export declare const get: (url: string, data: any, customer: CustomerService | undefined) => Observable<AjaxResponse<any>>;
19
19
  export declare const query: <T>(query: string, variables: QueryVariables, customer?: CustomerService) => Observable<T>;
@@ -11,7 +11,7 @@ export declare class CheckoutService {
11
11
  readonly change$: Observable<CheckoutService>;
12
12
  get billingAddress(): BillingAddress;
13
13
  get paymentAddress(): boolean;
14
- get paymentMethod(): PaymentMethodType;
14
+ get paymentMethod(): PaymentMethod;
15
15
  get status(): CheckoutStatus;
16
16
  get shippingAddress(): ShippingAddress;
17
17
  get shippingMethod(): ShippingMethodType;
@@ -31,7 +31,6 @@ export declare class CheckoutService {
31
31
  private restoreStorage;
32
32
  shippingMethods(): Observable<Array<ShippingMethodType>>;
33
33
  updateTotal(cartService: CartService): void;
34
- paymentSet(form: FormControl, payments: Array<PaymentMethodOption>): void;
35
34
  resetPassword(form: FormControl): void;
36
35
  private shippingAddressSelect;
37
36
  shippingAddressForm(formElement: HTMLFormElement, customerService: CustomerService, account: AccountService): Observable<{
@@ -40,4 +39,8 @@ export declare class CheckoutService {
40
39
  }>;
41
40
  shippingAddressSet(form: FormControl, customerService: CustomerService): void;
42
41
  private otherShippingAddress;
42
+ stripeSettings(methodId: number): Observable<StripeSettings>;
43
+ paymentSet(form: FormControl, payments: Array<PaymentMethodOption>): Observable<any>;
44
+ stripePayment(orderId: number, hash: string): Observable<any>;
45
+ stripePaymentConfirm(orderId: number, paymentId: string): Observable<any>;
43
46
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": " ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "prepublish": "rm -Rf dist && npm run build && npm run check",
10
+ "publish": "npm publish",
10
11
  "build": "rollup -c",
11
12
  "dev": "rollup -c -w",
12
13
  "start": "sirv dev --host --port 5050 --no-clear",