-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from WilliamDASILVA/dev
- Loading branch information
Showing
8 changed files
with
1,881 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,11 +41,26 @@ interface FacebookEventParameters { | |
value?: number; // The value of a user performing this event to the business. | ||
} | ||
|
||
interface FacebookUserData { | ||
em?: string // Email [email protected] | ||
fn?: string // First name Lowercase letters | ||
ln?: string // Last name Lowercase letters | ||
ph?: number // Phone Digits only including country code and area code 16505554444 | ||
ID?: string | number // External external_id Any unique ID from the advertiser, such as loyalty membership ID, user ID, and external cookie | ||
ge?: 'f' | 'm' // Gender Single lowercase letter, f or m, if unknown, leave blank | ||
db?: number // Birthdate Digits only with birth year, month, then day 19910526 for May 26, 1991. | ||
ct?: string // City Lowercase with any spaces removed | ||
or?: string // State Province st Lowercase two - letter state or province code ca | ||
or?: number // Zip Postal Code zp Digits only 94025 | ||
country?: string // Country Lowercase two - letter country code us | ||
} | ||
|
||
interface NuxtFacebookPixel { | ||
enable(): void; | ||
disable(): void; | ||
init(): void; | ||
setPixelId(pixelId: string): void; | ||
setUserData(userData?: FacebookUserData): void; | ||
track(event: null | FacebookEvent, parameters?: FacebookEventParameters): void; | ||
query<T extends object>(key: string, value: string, parameters?: T): void; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.