apirocket 0.16.2 → 0.16.4

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,7 +1,7 @@
1
1
  type ValidModel<T> = {
2
2
  [K in keyof T]: (value: T[K]) => boolean;
3
3
  };
4
- export { account, asFloat, asInteger, autoincrement, backToShopping, buildQuery, cart, checkout, clearHtml, clearHtmlObject, createAccount, dataset, dateToddmmaaaa, dateToddmmaaaahhmm, euroPrice, euros, isBoolean, isNumber, isString, isValidModel, millares, orderError, orderSummary, price, rememberPassword, round, salesAccount, salesRememberPassword, salesSignIn, signIn, storageAvailable };
4
+ export { account, asFloat, asInteger, autoincrement, backToShopping, buildQuery, checkout, clearHtml, clearHtmlObject, createAccount, dataset, dateToddmmaaaa, dateToddmmaaaahhmm, euroPrice, euros, gotoCart, isBoolean, isNumber, isString, isValidModel, millares, orderError, orderSummary, price, rememberPassword, round, salesAccount, salesRememberPassword, salesSignIn, signIn, storageAvailable };
5
5
  declare const buildQuery: (data: {
6
6
  [key: string]: any;
7
7
  }) => string;
@@ -21,7 +21,7 @@ declare const round: (num: number, precision: number) => number;
21
21
  declare const storageAvailable: (type: "sessionStorage" | "localStorage") => boolean;
22
22
  declare const account: () => void;
23
23
  declare const backToShopping: () => void;
24
- declare const cart: (fullScreen?: boolean) => void;
24
+ declare const gotoCart: (fullScreen?: boolean) => void;
25
25
  declare const checkout: () => void;
26
26
  declare const createAccount: () => void;
27
27
  declare const orderError: () => void;
@@ -1,12 +1,17 @@
1
1
  import type { CartService } from "./cart.service";
2
+ export { analyticsService };
2
3
  declare class AnalyticsService {
3
4
  constructor();
5
+ addPaymentInfo(cart: CartService, paymentName: string): void;
6
+ addShippingInfo(cart: CartService, shippingName: string): void;
4
7
  addToCart(item: CartItem, index: number, quantity: number): void;
5
- private cartItemToItem;
8
+ beginCheckout(cart: CartService): void;
9
+ purchase(order: Order): void;
6
10
  private pushEcommerceEvent;
7
11
  removeFromCart(item: CartItem, quantity: number): void;
12
+ selectItem(itemData: EventDataItem): void;
8
13
  viewCart(cart: CartService): void;
9
- purchase(order: Order): void;
14
+ viewItem(itemData: EventDataItem): void;
15
+ viewItemList(elements: NodeListOf<Element>): void;
10
16
  }
11
- export declare const analyticsService: AnalyticsService;
12
- export {};
17
+ declare const analyticsService: AnalyticsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.16.2",
3
+ "version": "0.16.4",
4
4
  "description": " ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "@rollup/plugin-node-resolve": "15.3.1",
22
22
  "@rollup/plugin-typescript": "11.1.6",
23
23
  "@tsconfig/svelte": "3.0.0",
24
- "@types/node": "22.14.1",
24
+ "@types/node": "24.0.1",
25
25
  "rollup": "3.29.5",
26
26
  "rollup-plugin-copy": "3.4.0",
27
27
  "rollup-plugin-css-only": "4.3.0",