@bigbeakads/smartads-sdk-js 0.0.1 → 0.0.3

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/README.md CHANGED
@@ -49,10 +49,10 @@ Reports an event to the SmartAds server. Returns a `Promise<Response>`. Supports
49
49
 
50
50
  #### Parameters
51
51
 
52
- | Parameter | Type | Required | Default | Description |
53
- | ----------- | ---------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54
- | `eventName` | `EventName` | **Yes** | — | The event name to report. Supported values: `EVENT_ADD_TO_CART`, `EVENT_PURCHASE`, `EVENT_CONTENT_VIEW`, `EVENT_COMPLETE_REGISTRATION`, `EVENT_FIRST_DEPOSIT` |
55
- | `callback` | `(response, error?) => void` | No | — | Response-first callback |
52
+ | Parameter | Type | Required | Default | Description |
53
+ | ----------- | ---------------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54
+ | `eventName` | `EventName` | **Yes** | — | The event name to report. Supported values: `EVENT_ADD_TO_CART`, `EVENT_PURCHASE`, `EVENT_CONTENT_VIEW`, `EVENT_COMPLETE_REGISTRATION`, `EVENT_FIRST_DEPOSIT`, `EVENT_INITIATE_CHECKOUT` |
55
+ | `callback` | `(response, error?) => void` | No | — | Response-first callback |
56
56
 
57
57
  #### Promise Usage
58
58
 
@@ -1,4 +1,4 @@
1
- type EventName = 'EVENT_ADD_TO_CART' | 'EVENT_PURCHASE' | 'EVENT_CONTENT_VIEW' | 'EVENT_COMPLETE_REGISTRATION' | 'EVENT_FIRST_DEPOSIT';
1
+ type EventName = 'EVENT_ADD_TO_CART' | 'EVENT_PURCHASE' | 'EVENT_CONTENT_VIEW' | 'EVENT_COMPLETE_REGISTRATION' | 'EVENT_FIRST_DEPOSIT' | 'EVENT_INITIATE_CHECKOUT';
2
2
  interface SmartAdsOptions {
3
3
  accessToken: string;
4
4
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@bigbeakads/smartads-sdk-js",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "BigBeak Smart Ads SDK for JavaScript",
5
5
  "module": "dist/esm/index.js",
6
- "main": "dist/umd/index.min.js",
6
+ "main": "dist/umd/smartads-sdk-js.min.js",
7
7
  "types": "dist/esm/index.d.ts",
8
8
  "scripts": {
9
9
  "dev": "father dev",