@walkeros/web-destination-linkedin 4.9.0-next-1793116456867 → 4.9.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @walkeros/web-destination-linkedin
2
2
 
3
- ## 4.9.0-next-1793116456867
3
+ ## 4.9.0
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -13,6 +13,11 @@
13
13
  `data.term` and `data.results`, and gross fields such as Matomo `grandTotal`
14
14
  read `data.total` first, then `data.value`. The CLI ships default event
15
15
  contracts for common site types in `examples/contracts/`.
16
+ - 1306d8a: Step examples carry event timestamps in milliseconds, as the walkerOS
17
+ event model defines them, instead of seconds that read as a date in
18
+ January 1970. Where an example's output repeats the timestamp, such as
19
+ `event_timestamp` in the gtag include example or the event a transformer
20
+ example returns, the output shows the same value.
16
21
  - 9316f2a: The `conversion` mapping description now says what happens when the
17
22
  conversion resolves to no id: no `lintrk` call is made and the push fails with
18
23
  `missing-input`. It no longer says such events are ignored, and it names the
@@ -22,18 +27,24 @@
22
27
  the install line, the integrated code and the flow from it, and the package
23
28
  test runs the same setup, so the setup a reader copies is the one that was
24
29
  tested.
30
+ - Updated dependencies [a67546d]
25
31
  - Updated dependencies [29d2218]
32
+ - Updated dependencies [1306d8a]
26
33
  - Updated dependencies [34fd225]
27
34
  - Updated dependencies [5313635]
35
+ - Updated dependencies [1306d8a]
36
+ - Updated dependencies [fa46337]
28
37
  - Updated dependencies [5313635]
29
38
  - Updated dependencies [5313635]
30
39
  - Updated dependencies [5313635]
31
40
  - Updated dependencies [5313635]
32
41
  - Updated dependencies [34fd225]
42
+ - Updated dependencies [fa46337]
43
+ - Updated dependencies [1306d8a]
33
44
  - Updated dependencies [5313635]
34
45
  - Updated dependencies [5313635]
35
- - @walkeros/web-core@4.9.0-next-1793116456867
36
- - @walkeros/core@4.9.0-next-1793116456867
46
+ - @walkeros/core@4.9.0
47
+ - @walkeros/web-core@4.9.0
37
48
 
38
49
  ## 4.8.2
39
50
 
package/README.md CHANGED
@@ -45,6 +45,10 @@ npm install @walkeros/web-destination-linkedin
45
45
 
46
46
  LinkedIn tracks only the events whose rule sets a `conversion`, see the docs.
47
47
 
48
+ This quick start sets no consent, so the Insight Tag loads and sends every
49
+ conversion you map without consent, and a revocation changes nothing: add
50
+ `consent: { marketing: true }` to `config` before you go live, see the docs.
51
+
48
52
  ## Documentation
49
53
 
50
54
  Full configuration, mapping, and examples live in the docs:
package/dist/dev.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r=(e,n)=>{for(var t in n)i(e,t,{get:n[t],enumerable:!0})},a={};r(a,{examples:()=>g,schemas:()=>s}),module.exports=(e=a,((e,r,a,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let d of t(r))o.call(e,d)||d===a||i(e,d,{get:()=>r[d],enumerable:!(s=n(r,d))||s.enumerable});return e})(i({},"__esModule",{value:!0}),e));var s={};r(s,{MappingSchema:()=>m,SettingsSchema:()=>l,mapping:()=>u,settings:()=>v});var d=require("@walkeros/core/dev"),c=require("@walkeros/core/dev"),l=c.z.object({apiKey:c.z.string().min(1).regex(/^\d+$/,'Must be a numeric LinkedIn Partner ID (digits only, e.g. "123456")').describe("Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).")}).strict(),p=require("@walkeros/core/dev"),m=p.z.object({conversion:p.z.unknown().describe("Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.").optional()}),v=(0,d.zodToSchema)(l),u=(0,d.zodToSchema)(m),g={};r(g,{env:()=>k,minimal:()=>C,step:()=>h});var k={};r(k,{init:()=>_,push:()=>b,simulation:()=>f});var _={window:{_linkedin_partner_id:void 0,_linkedin_data_partner_ids:void 0,lintrk:void 0}},b={window:{_linkedin_partner_id:"123456",_linkedin_data_partner_ids:["123456"],lintrk:Object.assign(()=>{},{q:[]})}},f=["call:window.lintrk"],h={};r(h,{consentRevoke:()=>A,conversionSilenced:()=>j,demoRequestLead:()=>O,missingConversionIdIgnored:()=>q,orderCompleteFullConversion:()=>E,pageViewConversion:()=>L,partialFieldsOmitted:()=>S,simpleConversionId:()=>y,unmappedEventIgnored:()=>I});var w=require("@walkeros/core"),I={public:!1,in:(0,w.getEvent)("product view",{timestamp:1700000100}),out:[]},y={title:"Simple conversion",description:"A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.",in:(0,w.createEvent)({name:"form submit",timestamp:1700000101}),mapping:{settings:{conversion:{map:{id:{value:12345}}}}},out:[["lintrk","track",{conversion_id:12345}]]},E={title:"Ecommerce conversion",description:"A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.",in:(0,w.getEvent)("order complete",{timestamp:1700000102,id:"1700000102abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.value",currency:{key:"data.currency",value:"EUR"},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,conversion_value:462,currency:"EUR",event_id:"1700000102abcdef"}]]},L={title:"Key page view",description:"A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.",in:(0,w.getEvent)("page view",{timestamp:1700000103,id:"1700000103abcdef"}),mapping:{settings:{conversion:{map:{id:{value:11111},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:11111,event_id:"1700000103abcdef"}]]},O={title:"Lead conversion",description:"A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.",in:(0,w.createEvent)({name:"demo request",timestamp:1700000104,id:"1700000104abcdef"}),mapping:{settings:{conversion:{map:{id:{value:44444},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:44444,event_id:"1700000104abcdef"}]]},j={public:!1,in:(0,w.createEvent)({name:"form submit",timestamp:1700000105}),mapping:{silent:!0,settings:{conversion:{map:{id:{value:12345}}}}},out:[]},q={public:!1,description:"A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.",in:(0,w.createEvent)({name:"form submit",timestamp:1700000106}),mapping:{settings:{conversion:{map:{id:"data.nonexistentField"}}}},out:[],outcome:{status:"failed",code:"missing-input"}},S={public:!1,in:(0,w.getEvent)("order complete",{timestamp:1700000107,id:"1700000107abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.missingTotal",eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,event_id:"1700000107abcdef"}]]},A={public:!1,description:"For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.",command:"consent",in:{marketing:!1},out:[]},C={settings:{apiKey:"123456"},config:{loadScript:!0}};//# sourceMappingURL=dev.js.map
1
+ "use strict";var e,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r=(e,n)=>{for(var t in n)i(e,t,{get:n[t],enumerable:!0})},a={};r(a,{examples:()=>g,schemas:()=>s}),module.exports=(e=a,((e,r,a,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let d of t(r))o.call(e,d)||d===a||i(e,d,{get:()=>r[d],enumerable:!(s=n(r,d))||s.enumerable});return e})(i({},"__esModule",{value:!0}),e));var s={};r(s,{MappingSchema:()=>m,SettingsSchema:()=>l,mapping:()=>u,settings:()=>v});var d=require("@walkeros/core/dev"),c=require("@walkeros/core/dev"),l=c.z.object({apiKey:c.z.string().min(1).regex(/^\d+$/,'Must be a numeric LinkedIn Partner ID (digits only, e.g. "123456")').describe("Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).")}).strict(),p=require("@walkeros/core/dev"),m=p.z.object({conversion:p.z.unknown().describe("Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.").optional()}),v=(0,d.zodToSchema)(l),u=(0,d.zodToSchema)(m),g={};r(g,{env:()=>k,minimal:()=>C,step:()=>h});var k={};r(k,{init:()=>_,push:()=>b,simulation:()=>f});var _={window:{_linkedin_partner_id:void 0,_linkedin_data_partner_ids:void 0,lintrk:void 0}},b={window:{_linkedin_partner_id:"123456",_linkedin_data_partner_ids:["123456"],lintrk:Object.assign(()=>{},{q:[]})}},f=["call:window.lintrk"],h={};r(h,{consentRevoke:()=>A,conversionSilenced:()=>j,demoRequestLead:()=>O,missingConversionIdIgnored:()=>q,orderCompleteFullConversion:()=>E,pageViewConversion:()=>L,partialFieldsOmitted:()=>S,simpleConversionId:()=>y,unmappedEventIgnored:()=>I});var w=require("@walkeros/core"),I={public:!1,in:(0,w.getEvent)("product view",{timestamp:17000001e5}),out:[]},y={title:"Simple conversion",description:"A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.",in:(0,w.createEvent)({name:"form submit",timestamp:1700000101e3}),mapping:{settings:{conversion:{map:{id:{value:12345}}}}},out:[["lintrk","track",{conversion_id:12345}]]},E={title:"Ecommerce conversion",description:"A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.",in:(0,w.getEvent)("order complete",{timestamp:1700000102e3,id:"1700000102abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.value",currency:{key:"data.currency",value:"EUR"},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,conversion_value:462,currency:"EUR",event_id:"1700000102abcdef"}]]},L={title:"Key page view",description:"A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.",in:(0,w.getEvent)("page view",{timestamp:1700000103e3,id:"1700000103abcdef"}),mapping:{settings:{conversion:{map:{id:{value:11111},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:11111,event_id:"1700000103abcdef"}]]},O={title:"Lead conversion",description:"A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.",in:(0,w.createEvent)({name:"demo request",timestamp:1700000104e3,id:"1700000104abcdef"}),mapping:{settings:{conversion:{map:{id:{value:44444},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:44444,event_id:"1700000104abcdef"}]]},j={public:!1,in:(0,w.createEvent)({name:"form submit",timestamp:1700000105e3}),mapping:{silent:!0,settings:{conversion:{map:{id:{value:12345}}}}},out:[]},q={public:!1,description:"A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.",in:(0,w.createEvent)({name:"form submit",timestamp:1700000106e3}),mapping:{settings:{conversion:{map:{id:"data.nonexistentField"}}}},out:[],outcome:{status:"failed",code:"missing-input"}},S={public:!1,in:(0,w.getEvent)("order complete",{timestamp:1700000107e3,id:"1700000107abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.missingTotal",eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,event_id:"1700000107abcdef"}]]},A={public:!1,description:"For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.",command:"consent",in:{marketing:!1},out:[]},C={settings:{apiKey:"123456"},config:{loadScript:!0}};//# sourceMappingURL=dev.js.map
package/dist/dev.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts","../src/examples/minimal.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z\n .object({\n apiKey: z\n .string()\n .min(1)\n .regex(\n /^\\d+$/,\n 'Must be a numeric LinkedIn Partner ID (digits only, e.g. \"123456\")',\n )\n .describe(\n 'Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).',\n ),\n })\n .strict();\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\n/**\n * LinkedIn per-rule mapping schema.\n *\n * Every field on `conversion` is a walkerOS mapping value (static literal,\n * string path, or `{ map, value, key, fn, ... }` object). The schema uses\n * `z.unknown()` for each so users can supply any valid mapping shape; the\n * destination resolves it via `getMappingValue()` at push time.\n */\nexport const MappingSchema = z.object({\n conversion: z\n .unknown()\n .describe(\n 'Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.',\n )\n .optional(),\n});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\nexport { minimal } from './minimal';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for LinkedIn Insight Tag destination.\n *\n * Tests clone `push` and replace `window.lintrk` with a jest.fn() to collect\n * calls. Production leaves `env` undefined — the destination mutates the real\n * `window` object and injects the LinkedIn CDN script through `loadVendor`.\n */\n\nconst noop = () => {};\n\n/**\n * Pre-init environment — no LinkedIn state present. The destination's init\n * will populate _linkedin_partner_id and install the lintrk queue.\n */\nexport const init: Env | undefined = {\n window: {\n _linkedin_partner_id: undefined,\n _linkedin_data_partner_ids: undefined,\n lintrk: undefined,\n },\n};\n\n/**\n * Post-init environment — lintrk is a spy-able no-op function carrying the\n * queue shape the real script installs. Tests clone this and replace\n * `window.lintrk` with a jest.fn() before pushing events, so every call is\n * captured.\n */\nexport const push: Env = {\n window: {\n _linkedin_partner_id: '123456',\n _linkedin_data_partner_ids: ['123456'],\n lintrk: Object.assign(noop, { q: [] }),\n },\n};\n\n/**\n * Simulation tracking paths — used by CLI `--simulate` to record which\n * function calls happened during an event push.\n */\nexport const simulation = ['call:window.lintrk'];\n","import type { Flow } from '@walkeros/core';\nimport { createEvent, getEvent } from '@walkeros/core';\nimport type { Settings } from '../types';\n\n/**\n * Examples may optionally override destination-level settings for a test.\n * The test runner reads `settings` from the example and merges it into the\n * base destination settings (on top of the fixed `apiKey`). Rarely needed\n * for LinkedIn - conversion config lives on the rule, not destination-level.\n */\nexport type LinkedInStepExample = Flow.StepExample & {\n settings?: Partial<Settings>;\n};\n\n/**\n * OPT-IN: Unmapped event is silently ignored.\n *\n * LinkedIn's core behavioral difference from analytics destinations: events\n * without `mapping.settings.conversion` produce ZERO lintrk() calls. The\n * destination is opt-in - each conversion must reference a pre-created\n * Conversion Rule from Campaign Manager.\n */\nexport const unmappedEventIgnored: LinkedInStepExample = {\n public: false,\n in: getEvent('product view', { timestamp: 1700000100 }),\n out: [],\n};\n\n/**\n * Simplest possible conversion - just a `conversion_id` from Campaign Manager.\n *\n * Form submission → LinkedIn Lead conversion. The mapping resolves `id` as a\n * literal value (no walker event field needed). The destination translates\n * `{ id }` → `lintrk('track', { conversion_id })`.\n */\nexport const simpleConversionId: LinkedInStepExample = {\n title: 'Simple conversion',\n description:\n 'A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.',\n in: createEvent({ name: 'form submit', timestamp: 1700000101 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [['lintrk', 'track', { conversion_id: 12345 }]],\n};\n\n/**\n * Full e-commerce conversion - every supported lintrk field populated.\n *\n * mapping config uses short walkerOS keys (`id`, `value`, `currency`, `eventId`);\n * the destination translates them to the vendor parameter names\n * (`conversion_id`, `conversion_value`, `currency`, `event_id`).\n *\n * Currency uses the walkerOS fallback syntax: `{ key, value }` - pull from\n * `data.currency` first, fall back to `\"EUR\"` if absent. The default\n * `order complete` fixture from `getEvent` already sets `data.currency: \"EUR\"`,\n * so the resolved value is \"EUR\" here.\n *\n * `eventId` maps from the walkerOS event.id - stable per event, unique, and\n * ready for deduplication with a future server (Conversions API) destination.\n */\nexport const orderCompleteFullConversion: LinkedInStepExample = {\n title: 'Ecommerce conversion',\n description:\n 'A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.',\n in: getEvent('order complete', {\n timestamp: 1700000102,\n id: '1700000102abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.value',\n currency: { key: 'data.currency', value: 'EUR' },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n conversion_value: 462,\n currency: 'EUR',\n event_id: '1700000102abcdef',\n },\n ],\n ],\n};\n\n/**\n * Page view as an explicit conversion.\n *\n * LinkedIn's Insight Tag automatically fires a page view on load for\n * retargeting / audience building - that call is NOT something the\n * destination controls. This example tests the OTHER case: mapping a\n * specific walkerOS `page view` event to a Campaign Manager KEY_PAGE_VIEW\n * conversion rule, which fires an EXPLICIT lintrk('track') call in addition\n * to the auto page view.\n */\nexport const pageViewConversion: LinkedInStepExample = {\n title: 'Key page view',\n description:\n 'A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.',\n in: getEvent('page view', {\n timestamp: 1700000103,\n id: '1700000103abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 11111 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 11111,\n event_id: '1700000103abcdef',\n },\n ],\n ],\n};\n\n/**\n * Middle-funnel LEAD conversion - demo request without monetary value.\n *\n * LinkedIn's conversion types include LEAD, CONTACT, SIGN_UP, etc. The\n * destination is agnostic to the type (set in Campaign Manager, not at call\n * time) - all we forward is the conversion_id. This fixture exercises the\n * \"id + eventId only\" shape.\n */\nexport const demoRequestLead: LinkedInStepExample = {\n title: 'Lead conversion',\n description:\n 'A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.',\n in: createEvent({\n name: 'demo request',\n timestamp: 1700000104,\n id: '1700000104abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 44444 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 44444,\n event_id: '1700000104abcdef',\n },\n ],\n ],\n};\n\n/**\n * rule.silent - fully-configured conversion rule temporarily disabled.\n *\n * The rule has a valid `conversion.map` but `silent: true` tells the destination\n * to produce zero calls. This is distinct from the opt-in default (no\n * `conversion` at all): silent explicitly keeps the rule on disk for quick\n * reactivation without deleting it.\n */\nexport const conversionSilenced: LinkedInStepExample = {\n public: false,\n in: createEvent({ name: 'form submit', timestamp: 1700000105 }),\n mapping: {\n silent: true,\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [],\n};\n\n/**\n * Falsy `id` → entire lintrk call is skipped and the push fails missing-input.\n *\n * If the resolved conversion object has no truthy `id`, the destination does\n * NOT call lintrk at all. This protects against misconfigured mappings\n * (e.g. pulling id from a non-existent field).\n *\n * Here we map `id` from `data.nonexistentField` - it resolves to undefined,\n * so zero calls are produced.\n */\nexport const missingConversionIdIgnored: LinkedInStepExample = {\n public: false,\n description:\n 'A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.',\n in: createEvent({ name: 'form submit', timestamp: 1700000106 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: 'data.nonexistentField',\n },\n },\n },\n },\n out: [],\n outcome: { status: 'failed', code: 'missing-input' },\n};\n\n/**\n * Partial conversion - value missing → omitted from the lintrk call.\n *\n * The rule asks for `value: 'data.missingTotal'` (undefined), `currency`\n * (undefined), and `eventId: 'id'` (present). Only `conversion_id` and\n * `event_id` appear in the final call - no `conversion_value`, no `currency`.\n */\nexport const partialFieldsOmitted: LinkedInStepExample = {\n public: false,\n in: getEvent('order complete', {\n timestamp: 1700000107,\n id: '1700000107abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.missingTotal',\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n event_id: '1700000107abcdef',\n },\n ],\n ],\n};\n\n/**\n * A revocation of the consent the destination requires. The Insight Tag has\n * no vendor consent mode, so the collector's consent gate is the only\n * mechanism and no vendor call is made.\n */\nexport const consentRevoke: LinkedInStepExample = {\n public: false,\n description:\n 'For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.',\n command: 'consent',\n in: { marketing: false },\n out: [],\n};\n","import type { Flow } from '@walkeros/core';\n\n/**\n * The settings the Insight Tag needs to deliver: the Partner ID, with the\n * Insight Tag script loaded by the destination.\n */\nexport const minimal: Flow.MinimalExample = {\n settings: { apiKey: '123456' },\n config: { loadScript: true },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAA4B;;;ACA5B,iBAAkB;AAEX,IAAM,iBAAiB,aAC3B,OAAO;AAAA,EACN,QAAQ,aACL,OAAO,EACP,IAAI,CAAC,EACL;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA,OAAO;;;ACfV,IAAAC,cAAkB;AAUX,IAAM,gBAAgB,cAAE,OAAO;AAAA,EACpC,YAAY,cACT,QAAQ,EACR;AAAA,IACC;AAAA,EAC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AAM,UAA+B;AAAA,EAC1C,UAAU,EAAE,QAAQ,SAAS;AAAA,EAC7B,QAAQ,EAAE,YAAY,KAAK;AAC7B;","names":["import_dev","import_dev"]}
1
+ {"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts","../src/examples/minimal.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z\n .object({\n apiKey: z\n .string()\n .min(1)\n .regex(\n /^\\d+$/,\n 'Must be a numeric LinkedIn Partner ID (digits only, e.g. \"123456\")',\n )\n .describe(\n 'Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).',\n ),\n })\n .strict();\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\n/**\n * LinkedIn per-rule mapping schema.\n *\n * Every field on `conversion` is a walkerOS mapping value (static literal,\n * string path, or `{ map, value, key, fn, ... }` object). The schema uses\n * `z.unknown()` for each so users can supply any valid mapping shape; the\n * destination resolves it via `getMappingValue()` at push time.\n */\nexport const MappingSchema = z.object({\n conversion: z\n .unknown()\n .describe(\n 'Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.',\n )\n .optional(),\n});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\nexport { minimal } from './minimal';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for LinkedIn Insight Tag destination.\n *\n * Tests clone `push` and replace `window.lintrk` with a jest.fn() to collect\n * calls. Production leaves `env` undefined — the destination mutates the real\n * `window` object and injects the LinkedIn CDN script through `loadVendor`.\n */\n\nconst noop = () => {};\n\n/**\n * Pre-init environment — no LinkedIn state present. The destination's init\n * will populate _linkedin_partner_id and install the lintrk queue.\n */\nexport const init: Env | undefined = {\n window: {\n _linkedin_partner_id: undefined,\n _linkedin_data_partner_ids: undefined,\n lintrk: undefined,\n },\n};\n\n/**\n * Post-init environment — lintrk is a spy-able no-op function carrying the\n * queue shape the real script installs. Tests clone this and replace\n * `window.lintrk` with a jest.fn() before pushing events, so every call is\n * captured.\n */\nexport const push: Env = {\n window: {\n _linkedin_partner_id: '123456',\n _linkedin_data_partner_ids: ['123456'],\n lintrk: Object.assign(noop, { q: [] }),\n },\n};\n\n/**\n * Simulation tracking paths — used by CLI `--simulate` to record which\n * function calls happened during an event push.\n */\nexport const simulation = ['call:window.lintrk'];\n","import type { Flow } from '@walkeros/core';\nimport { createEvent, getEvent } from '@walkeros/core';\nimport type { Settings } from '../types';\n\n/**\n * Examples may optionally override destination-level settings for a test.\n * The test runner reads `settings` from the example and merges it into the\n * base destination settings (on top of the fixed `apiKey`). Rarely needed\n * for LinkedIn - conversion config lives on the rule, not destination-level.\n */\nexport type LinkedInStepExample = Flow.StepExample & {\n settings?: Partial<Settings>;\n};\n\n/**\n * OPT-IN: Unmapped event is silently ignored.\n *\n * LinkedIn's core behavioral difference from analytics destinations: events\n * without `mapping.settings.conversion` produce ZERO lintrk() calls. The\n * destination is opt-in - each conversion must reference a pre-created\n * Conversion Rule from Campaign Manager.\n */\nexport const unmappedEventIgnored: LinkedInStepExample = {\n public: false,\n in: getEvent('product view', { timestamp: 1700000100000 }),\n out: [],\n};\n\n/**\n * Simplest possible conversion - just a `conversion_id` from Campaign Manager.\n *\n * Form submission → LinkedIn Lead conversion. The mapping resolves `id` as a\n * literal value (no walker event field needed). The destination translates\n * `{ id }` → `lintrk('track', { conversion_id })`.\n */\nexport const simpleConversionId: LinkedInStepExample = {\n title: 'Simple conversion',\n description:\n 'A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.',\n in: createEvent({ name: 'form submit', timestamp: 1700000101000 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [['lintrk', 'track', { conversion_id: 12345 }]],\n};\n\n/**\n * Full e-commerce conversion - every supported lintrk field populated.\n *\n * mapping config uses short walkerOS keys (`id`, `value`, `currency`, `eventId`);\n * the destination translates them to the vendor parameter names\n * (`conversion_id`, `conversion_value`, `currency`, `event_id`).\n *\n * Currency uses the walkerOS fallback syntax: `{ key, value }` - pull from\n * `data.currency` first, fall back to `\"EUR\"` if absent. The default\n * `order complete` fixture from `getEvent` already sets `data.currency: \"EUR\"`,\n * so the resolved value is \"EUR\" here.\n *\n * `eventId` maps from the walkerOS event.id - stable per event, unique, and\n * ready for deduplication with a future server (Conversions API) destination.\n */\nexport const orderCompleteFullConversion: LinkedInStepExample = {\n title: 'Ecommerce conversion',\n description:\n 'A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.',\n in: getEvent('order complete', {\n timestamp: 1700000102000,\n id: '1700000102abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.value',\n currency: { key: 'data.currency', value: 'EUR' },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n conversion_value: 462,\n currency: 'EUR',\n event_id: '1700000102abcdef',\n },\n ],\n ],\n};\n\n/**\n * Page view as an explicit conversion.\n *\n * LinkedIn's Insight Tag automatically fires a page view on load for\n * retargeting / audience building - that call is NOT something the\n * destination controls. This example tests the OTHER case: mapping a\n * specific walkerOS `page view` event to a Campaign Manager KEY_PAGE_VIEW\n * conversion rule, which fires an EXPLICIT lintrk('track') call in addition\n * to the auto page view.\n */\nexport const pageViewConversion: LinkedInStepExample = {\n title: 'Key page view',\n description:\n 'A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.',\n in: getEvent('page view', {\n timestamp: 1700000103000,\n id: '1700000103abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 11111 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 11111,\n event_id: '1700000103abcdef',\n },\n ],\n ],\n};\n\n/**\n * Middle-funnel LEAD conversion - demo request without monetary value.\n *\n * LinkedIn's conversion types include LEAD, CONTACT, SIGN_UP, etc. The\n * destination is agnostic to the type (set in Campaign Manager, not at call\n * time) - all we forward is the conversion_id. This fixture exercises the\n * \"id + eventId only\" shape.\n */\nexport const demoRequestLead: LinkedInStepExample = {\n title: 'Lead conversion',\n description:\n 'A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.',\n in: createEvent({\n name: 'demo request',\n timestamp: 1700000104000,\n id: '1700000104abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 44444 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 44444,\n event_id: '1700000104abcdef',\n },\n ],\n ],\n};\n\n/**\n * rule.silent - fully-configured conversion rule temporarily disabled.\n *\n * The rule has a valid `conversion.map` but `silent: true` tells the destination\n * to produce zero calls. This is distinct from the opt-in default (no\n * `conversion` at all): silent explicitly keeps the rule on disk for quick\n * reactivation without deleting it.\n */\nexport const conversionSilenced: LinkedInStepExample = {\n public: false,\n in: createEvent({ name: 'form submit', timestamp: 1700000105000 }),\n mapping: {\n silent: true,\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [],\n};\n\n/**\n * Falsy `id` → entire lintrk call is skipped and the push fails missing-input.\n *\n * If the resolved conversion object has no truthy `id`, the destination does\n * NOT call lintrk at all. This protects against misconfigured mappings\n * (e.g. pulling id from a non-existent field).\n *\n * Here we map `id` from `data.nonexistentField` - it resolves to undefined,\n * so zero calls are produced.\n */\nexport const missingConversionIdIgnored: LinkedInStepExample = {\n public: false,\n description:\n 'A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.',\n in: createEvent({ name: 'form submit', timestamp: 1700000106000 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: 'data.nonexistentField',\n },\n },\n },\n },\n out: [],\n outcome: { status: 'failed', code: 'missing-input' },\n};\n\n/**\n * Partial conversion - value missing → omitted from the lintrk call.\n *\n * The rule asks for `value: 'data.missingTotal'` (undefined), `currency`\n * (undefined), and `eventId: 'id'` (present). Only `conversion_id` and\n * `event_id` appear in the final call - no `conversion_value`, no `currency`.\n */\nexport const partialFieldsOmitted: LinkedInStepExample = {\n public: false,\n in: getEvent('order complete', {\n timestamp: 1700000107000,\n id: '1700000107abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.missingTotal',\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n event_id: '1700000107abcdef',\n },\n ],\n ],\n};\n\n/**\n * A revocation of the consent the destination requires. The Insight Tag has\n * no vendor consent mode, so the collector's consent gate is the only\n * mechanism and no vendor call is made.\n */\nexport const consentRevoke: LinkedInStepExample = {\n public: false,\n description:\n 'For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.',\n command: 'consent',\n in: { marketing: false },\n out: [],\n};\n","import type { Flow } from '@walkeros/core';\n\n/**\n * The settings the Insight Tag needs to deliver: the Partner ID, with the\n * Insight Tag script loaded by the destination.\n */\nexport const minimal: Flow.MinimalExample = {\n settings: { apiKey: '123456' },\n config: { loadScript: true },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;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AK;AAAA,UACH,IAAI,EAAE,OAAO,MAAM;AAAA,UACnB,OAAO;AAAA,UACP,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,QACE,eAAe;AAAA,QACf,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AACF;AAOO,IAAM,gBAAqC;AAAA,EAChD,QAAQ;AAAA,EACR,aACE;AAAA,EACF,SAAS;AAAA,EACT,IAAI,EAAE,WAAW,MAAM;AAAA,EACvB,KAAK,CAAC;AACR;;;AClRO,IAAM,UAA+B;AAAA,EAC1C,UAAU,EAAE,QAAQ,SAAS;AAAA,EAC7B,QAAQ,EAAE,YAAY,KAAK;AAC7B;","names":["import_dev","import_dev"]}
package/dist/dev.mjs CHANGED
@@ -1 +1 @@
1
- var e=Object.defineProperty,i=(i,n)=>{for(var t in n)e(i,t,{get:n[t],enumerable:!0})},n={};i(n,{MappingSchema:()=>s,SettingsSchema:()=>r,mapping:()=>c,settings:()=>d});import{zodToSchema as t}from"@walkeros/core/dev";import{z as o}from"@walkeros/core/dev";var r=o.object({apiKey:o.string().min(1).regex(/^\d+$/,'Must be a numeric LinkedIn Partner ID (digits only, e.g. "123456")').describe("Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).")}).strict();import{z as a}from"@walkeros/core/dev";var s=a.object({conversion:a.unknown().describe("Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.").optional()}),d=t(r),c=t(s),m={};i(m,{env:()=>l,minimal:()=>E,step:()=>g});var l={};i(l,{init:()=>p,push:()=>v,simulation:()=>u});var p={window:{_linkedin_partner_id:void 0,_linkedin_data_partner_ids:void 0,lintrk:void 0}},v={window:{_linkedin_partner_id:"123456",_linkedin_data_partner_ids:["123456"],lintrk:Object.assign(()=>{},{q:[]})}},u=["call:window.lintrk"],g={};i(g,{consentRevoke:()=>C,conversionSilenced:()=>y,demoRequestLead:()=>I,missingConversionIdIgnored:()=>L,orderCompleteFullConversion:()=>h,pageViewConversion:()=>w,partialFieldsOmitted:()=>A,simpleConversionId:()=>b,unmappedEventIgnored:()=>f});import{createEvent as k,getEvent as _}from"@walkeros/core";var f={public:!1,in:_("product view",{timestamp:1700000100}),out:[]},b={title:"Simple conversion",description:"A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.",in:k({name:"form submit",timestamp:1700000101}),mapping:{settings:{conversion:{map:{id:{value:12345}}}}},out:[["lintrk","track",{conversion_id:12345}]]},h={title:"Ecommerce conversion",description:"A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.",in:_("order complete",{timestamp:1700000102,id:"1700000102abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.value",currency:{key:"data.currency",value:"EUR"},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,conversion_value:462,currency:"EUR",event_id:"1700000102abcdef"}]]},w={title:"Key page view",description:"A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.",in:_("page view",{timestamp:1700000103,id:"1700000103abcdef"}),mapping:{settings:{conversion:{map:{id:{value:11111},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:11111,event_id:"1700000103abcdef"}]]},I={title:"Lead conversion",description:"A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.",in:k({name:"demo request",timestamp:1700000104,id:"1700000104abcdef"}),mapping:{settings:{conversion:{map:{id:{value:44444},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:44444,event_id:"1700000104abcdef"}]]},y={public:!1,in:k({name:"form submit",timestamp:1700000105}),mapping:{silent:!0,settings:{conversion:{map:{id:{value:12345}}}}},out:[]},L={public:!1,description:"A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.",in:k({name:"form submit",timestamp:1700000106}),mapping:{settings:{conversion:{map:{id:"data.nonexistentField"}}}},out:[],outcome:{status:"failed",code:"missing-input"}},A={public:!1,in:_("order complete",{timestamp:1700000107,id:"1700000107abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.missingTotal",eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,event_id:"1700000107abcdef"}]]},C={public:!1,description:"For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.",command:"consent",in:{marketing:!1},out:[]},E={settings:{apiKey:"123456"},config:{loadScript:!0}};export{m as examples,n as schemas};//# sourceMappingURL=dev.mjs.map
1
+ var e=Object.defineProperty,i=(i,n)=>{for(var t in n)e(i,t,{get:n[t],enumerable:!0})},n={};i(n,{MappingSchema:()=>s,SettingsSchema:()=>r,mapping:()=>c,settings:()=>d});import{zodToSchema as t}from"@walkeros/core/dev";import{z as o}from"@walkeros/core/dev";var r=o.object({apiKey:o.string().min(1).regex(/^\d+$/,'Must be a numeric LinkedIn Partner ID (digits only, e.g. "123456")').describe("Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).")}).strict();import{z as a}from"@walkeros/core/dev";var s=a.object({conversion:a.unknown().describe("Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.").optional()}),d=t(r),c=t(s),m={};i(m,{env:()=>l,minimal:()=>E,step:()=>g});var l={};i(l,{init:()=>p,push:()=>v,simulation:()=>u});var p={window:{_linkedin_partner_id:void 0,_linkedin_data_partner_ids:void 0,lintrk:void 0}},v={window:{_linkedin_partner_id:"123456",_linkedin_data_partner_ids:["123456"],lintrk:Object.assign(()=>{},{q:[]})}},u=["call:window.lintrk"],g={};i(g,{consentRevoke:()=>C,conversionSilenced:()=>y,demoRequestLead:()=>I,missingConversionIdIgnored:()=>L,orderCompleteFullConversion:()=>h,pageViewConversion:()=>w,partialFieldsOmitted:()=>A,simpleConversionId:()=>b,unmappedEventIgnored:()=>f});import{createEvent as k,getEvent as _}from"@walkeros/core";var f={public:!1,in:_("product view",{timestamp:17000001e5}),out:[]},b={title:"Simple conversion",description:"A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.",in:k({name:"form submit",timestamp:1700000101e3}),mapping:{settings:{conversion:{map:{id:{value:12345}}}}},out:[["lintrk","track",{conversion_id:12345}]]},h={title:"Ecommerce conversion",description:"A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.",in:_("order complete",{timestamp:1700000102e3,id:"1700000102abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.value",currency:{key:"data.currency",value:"EUR"},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,conversion_value:462,currency:"EUR",event_id:"1700000102abcdef"}]]},w={title:"Key page view",description:"A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.",in:_("page view",{timestamp:1700000103e3,id:"1700000103abcdef"}),mapping:{settings:{conversion:{map:{id:{value:11111},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:11111,event_id:"1700000103abcdef"}]]},I={title:"Lead conversion",description:"A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.",in:k({name:"demo request",timestamp:1700000104e3,id:"1700000104abcdef"}),mapping:{settings:{conversion:{map:{id:{value:44444},eventId:"id"}}}},out:[["lintrk","track",{conversion_id:44444,event_id:"1700000104abcdef"}]]},y={public:!1,in:k({name:"form submit",timestamp:1700000105e3}),mapping:{silent:!0,settings:{conversion:{map:{id:{value:12345}}}}},out:[]},L={public:!1,description:"A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.",in:k({name:"form submit",timestamp:1700000106e3}),mapping:{settings:{conversion:{map:{id:"data.nonexistentField"}}}},out:[],outcome:{status:"failed",code:"missing-input"}},A={public:!1,in:_("order complete",{timestamp:1700000107e3,id:"1700000107abcdef"}),mapping:{settings:{conversion:{map:{id:{value:67890},value:"data.missingTotal",eventId:"id"}}}},out:[["lintrk","track",{conversion_id:67890,event_id:"1700000107abcdef"}]]},C={public:!1,description:"For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.",command:"consent",in:{marketing:!1},out:[]},E={settings:{apiKey:"123456"},config:{loadScript:!0}};export{m as examples,n as schemas};//# sourceMappingURL=dev.mjs.map
package/dist/dev.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts","../src/examples/minimal.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z\n .object({\n apiKey: z\n .string()\n .min(1)\n .regex(\n /^\\d+$/,\n 'Must be a numeric LinkedIn Partner ID (digits only, e.g. \"123456\")',\n )\n .describe(\n 'Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).',\n ),\n })\n .strict();\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\n/**\n * LinkedIn per-rule mapping schema.\n *\n * Every field on `conversion` is a walkerOS mapping value (static literal,\n * string path, or `{ map, value, key, fn, ... }` object). The schema uses\n * `z.unknown()` for each so users can supply any valid mapping shape; the\n * destination resolves it via `getMappingValue()` at push time.\n */\nexport const MappingSchema = z.object({\n conversion: z\n .unknown()\n .describe(\n 'Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.',\n )\n .optional(),\n});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\nexport { minimal } from './minimal';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for LinkedIn Insight Tag destination.\n *\n * Tests clone `push` and replace `window.lintrk` with a jest.fn() to collect\n * calls. Production leaves `env` undefined — the destination mutates the real\n * `window` object and injects the LinkedIn CDN script through `loadVendor`.\n */\n\nconst noop = () => {};\n\n/**\n * Pre-init environment — no LinkedIn state present. The destination's init\n * will populate _linkedin_partner_id and install the lintrk queue.\n */\nexport const init: Env | undefined = {\n window: {\n _linkedin_partner_id: undefined,\n _linkedin_data_partner_ids: undefined,\n lintrk: undefined,\n },\n};\n\n/**\n * Post-init environment — lintrk is a spy-able no-op function carrying the\n * queue shape the real script installs. Tests clone this and replace\n * `window.lintrk` with a jest.fn() before pushing events, so every call is\n * captured.\n */\nexport const push: Env = {\n window: {\n _linkedin_partner_id: '123456',\n _linkedin_data_partner_ids: ['123456'],\n lintrk: Object.assign(noop, { q: [] }),\n },\n};\n\n/**\n * Simulation tracking paths — used by CLI `--simulate` to record which\n * function calls happened during an event push.\n */\nexport const simulation = ['call:window.lintrk'];\n","import type { Flow } from '@walkeros/core';\nimport { createEvent, getEvent } from '@walkeros/core';\nimport type { Settings } from '../types';\n\n/**\n * Examples may optionally override destination-level settings for a test.\n * The test runner reads `settings` from the example and merges it into the\n * base destination settings (on top of the fixed `apiKey`). Rarely needed\n * for LinkedIn - conversion config lives on the rule, not destination-level.\n */\nexport type LinkedInStepExample = Flow.StepExample & {\n settings?: Partial<Settings>;\n};\n\n/**\n * OPT-IN: Unmapped event is silently ignored.\n *\n * LinkedIn's core behavioral difference from analytics destinations: events\n * without `mapping.settings.conversion` produce ZERO lintrk() calls. The\n * destination is opt-in - each conversion must reference a pre-created\n * Conversion Rule from Campaign Manager.\n */\nexport const unmappedEventIgnored: LinkedInStepExample = {\n public: false,\n in: getEvent('product view', { timestamp: 1700000100 }),\n out: [],\n};\n\n/**\n * Simplest possible conversion - just a `conversion_id` from Campaign Manager.\n *\n * Form submission → LinkedIn Lead conversion. The mapping resolves `id` as a\n * literal value (no walker event field needed). The destination translates\n * `{ id }` → `lintrk('track', { conversion_id })`.\n */\nexport const simpleConversionId: LinkedInStepExample = {\n title: 'Simple conversion',\n description:\n 'A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.',\n in: createEvent({ name: 'form submit', timestamp: 1700000101 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [['lintrk', 'track', { conversion_id: 12345 }]],\n};\n\n/**\n * Full e-commerce conversion - every supported lintrk field populated.\n *\n * mapping config uses short walkerOS keys (`id`, `value`, `currency`, `eventId`);\n * the destination translates them to the vendor parameter names\n * (`conversion_id`, `conversion_value`, `currency`, `event_id`).\n *\n * Currency uses the walkerOS fallback syntax: `{ key, value }` - pull from\n * `data.currency` first, fall back to `\"EUR\"` if absent. The default\n * `order complete` fixture from `getEvent` already sets `data.currency: \"EUR\"`,\n * so the resolved value is \"EUR\" here.\n *\n * `eventId` maps from the walkerOS event.id - stable per event, unique, and\n * ready for deduplication with a future server (Conversions API) destination.\n */\nexport const orderCompleteFullConversion: LinkedInStepExample = {\n title: 'Ecommerce conversion',\n description:\n 'A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.',\n in: getEvent('order complete', {\n timestamp: 1700000102,\n id: '1700000102abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.value',\n currency: { key: 'data.currency', value: 'EUR' },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n conversion_value: 462,\n currency: 'EUR',\n event_id: '1700000102abcdef',\n },\n ],\n ],\n};\n\n/**\n * Page view as an explicit conversion.\n *\n * LinkedIn's Insight Tag automatically fires a page view on load for\n * retargeting / audience building - that call is NOT something the\n * destination controls. This example tests the OTHER case: mapping a\n * specific walkerOS `page view` event to a Campaign Manager KEY_PAGE_VIEW\n * conversion rule, which fires an EXPLICIT lintrk('track') call in addition\n * to the auto page view.\n */\nexport const pageViewConversion: LinkedInStepExample = {\n title: 'Key page view',\n description:\n 'A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.',\n in: getEvent('page view', {\n timestamp: 1700000103,\n id: '1700000103abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 11111 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 11111,\n event_id: '1700000103abcdef',\n },\n ],\n ],\n};\n\n/**\n * Middle-funnel LEAD conversion - demo request without monetary value.\n *\n * LinkedIn's conversion types include LEAD, CONTACT, SIGN_UP, etc. The\n * destination is agnostic to the type (set in Campaign Manager, not at call\n * time) - all we forward is the conversion_id. This fixture exercises the\n * \"id + eventId only\" shape.\n */\nexport const demoRequestLead: LinkedInStepExample = {\n title: 'Lead conversion',\n description:\n 'A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.',\n in: createEvent({\n name: 'demo request',\n timestamp: 1700000104,\n id: '1700000104abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 44444 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 44444,\n event_id: '1700000104abcdef',\n },\n ],\n ],\n};\n\n/**\n * rule.silent - fully-configured conversion rule temporarily disabled.\n *\n * The rule has a valid `conversion.map` but `silent: true` tells the destination\n * to produce zero calls. This is distinct from the opt-in default (no\n * `conversion` at all): silent explicitly keeps the rule on disk for quick\n * reactivation without deleting it.\n */\nexport const conversionSilenced: LinkedInStepExample = {\n public: false,\n in: createEvent({ name: 'form submit', timestamp: 1700000105 }),\n mapping: {\n silent: true,\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [],\n};\n\n/**\n * Falsy `id` → entire lintrk call is skipped and the push fails missing-input.\n *\n * If the resolved conversion object has no truthy `id`, the destination does\n * NOT call lintrk at all. This protects against misconfigured mappings\n * (e.g. pulling id from a non-existent field).\n *\n * Here we map `id` from `data.nonexistentField` - it resolves to undefined,\n * so zero calls are produced.\n */\nexport const missingConversionIdIgnored: LinkedInStepExample = {\n public: false,\n description:\n 'A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.',\n in: createEvent({ name: 'form submit', timestamp: 1700000106 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: 'data.nonexistentField',\n },\n },\n },\n },\n out: [],\n outcome: { status: 'failed', code: 'missing-input' },\n};\n\n/**\n * Partial conversion - value missing → omitted from the lintrk call.\n *\n * The rule asks for `value: 'data.missingTotal'` (undefined), `currency`\n * (undefined), and `eventId: 'id'` (present). Only `conversion_id` and\n * `event_id` appear in the final call - no `conversion_value`, no `currency`.\n */\nexport const partialFieldsOmitted: LinkedInStepExample = {\n public: false,\n in: getEvent('order complete', {\n timestamp: 1700000107,\n id: '1700000107abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.missingTotal',\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n event_id: '1700000107abcdef',\n },\n ],\n ],\n};\n\n/**\n * A revocation of the consent the destination requires. The Insight Tag has\n * no vendor consent mode, so the collector's consent gate is the only\n * mechanism and no vendor call is made.\n */\nexport const consentRevoke: LinkedInStepExample = {\n public: false,\n description:\n 'For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.',\n command: 'consent',\n in: { marketing: false },\n out: [],\n};\n","import type { Flow } from '@walkeros/core';\n\n/**\n * The settings the Insight Tag needs to deliver: the Partner ID, with the\n * Insight Tag script loaded by the destination.\n */\nexport const minimal: Flow.MinimalExample = {\n settings: { apiKey: '123456' },\n config: { loadScript: true },\n};\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,mBAAmB;;;ACA5B,SAAS,SAAS;AAEX,IAAM,iBAAiB,EAC3B,OAAO;AAAA,EACN,QAAQ,EACL,OAAO,EACP,IAAI,CAAC,EACL;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA,OAAO;;;ACfV,SAAS,KAAAA,UAAS;AAUX,IAAM,gBAAgBA,GAAE,OAAO;AAAA,EACpC,YAAYA,GACT,QAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;;;AFTM,IAAM,WAAW,YAAY,cAAc;AAC3C,IAAM,UAAU,YAAY,aAAa;;;AGThD;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,IAAM,OAAO,MAAM;AAAC;AAMb,IAAM,OAAwB;AAAA,EACnC,QAAQ;AAAA,IACN,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,QAAQ;AAAA,EACV;AACF;AAQO,IAAM,OAAY;AAAA,EACvB,QAAQ;AAAA,IACN,sBAAsB;AAAA,IACtB,4BAA4B,CAAC,QAAQ;AAAA,IACrC,QAAQ,OAAO,OAAO,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;AAAA,EACvC;AACF;AAMO,IAAM,aAAa,CAAC,oBAAoB;;;AC1C/C;AAAA;AAAA;AAAA;AAAA;AAA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,IACF;AAAA,EACF;AAAA,EACA,KAAK,CAAC;AAAA,EACN,SAAS,EAAE,QAAQ,UAAU,MAAM,gBAAgB;AACrD;AASO,IAAM,uBAA4C;AAAA,EACvD,QAAQ;AAAA,EACR,IAAI,SAAS,kBAAkB;AAAA,IAC7B,WAAW;AAAA,IACX,IAAI;AAAA,EACN,CAAC;AAAA,EACD,SAAS;AAAA,IACP,UAAU;AAAA,MACR,YAAY;AAAA,QACV,KAAK;AAAA,UACH,IAAI,EAAE,OAAO,MAAM;AAAA,UACnB,OAAO;AAAA,UACP,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,QACE,eAAe;AAAA,QACf,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AACF;AAOO,IAAM,gBAAqC;AAAA,EAChD,QAAQ;AAAA,EACR,aACE;AAAA,EACF,SAAS;AAAA,EACT,IAAI,EAAE,WAAW,MAAM;AAAA,EACvB,KAAK,CAAC;AACR;;;AClRO,IAAM,UAA+B;AAAA,EAC1C,UAAU,EAAE,QAAQ,SAAS;AAAA,EAC7B,QAAQ,EAAE,YAAY,KAAK;AAC7B;","names":["z"]}
1
+ {"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/examples/index.ts","../src/examples/env.ts","../src/examples/step.ts","../src/examples/minimal.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport { MappingSchema, type Mapping } from './mapping';\n\n// JSON Schema\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","import { z } from '@walkeros/core/dev';\n\nexport const SettingsSchema = z\n .object({\n apiKey: z\n .string()\n .min(1)\n .regex(\n /^\\d+$/,\n 'Must be a numeric LinkedIn Partner ID (digits only, e.g. \"123456\")',\n )\n .describe(\n 'Your LinkedIn Partner ID (numeric string, typically 6 to 7 digits). Find it in Campaign Manager under Insight Tag. Assigned to window._linkedin_partner_id before the Insight Tag script loads (like 1234567).',\n ),\n })\n .strict();\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\n/**\n * LinkedIn per-rule mapping schema.\n *\n * Every field on `conversion` is a walkerOS mapping value (static literal,\n * string path, or `{ map, value, key, fn, ... }` object). The schema uses\n * `z.unknown()` for each so users can supply any valid mapping shape; the\n * destination resolves it via `getMappingValue()` at push time.\n */\nexport const MappingSchema = z.object({\n conversion: z\n .unknown()\n .describe(\n 'Resolves to a LinkedIn conversion object with short keys: { id (required number, the Campaign Manager conversion_id), value? (number), currency? (ISO code), eventId? (string, the same event id the server LinkedIn destination sends, for deduplication) }. A rule whose conversion resolves to no id makes no lintrk call and fails the push with missing-input.',\n )\n .optional(),\n});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * as env from './env';\nexport * as step from './step';\nexport { minimal } from './minimal';\n","import type { Env } from '../types';\n\n/**\n * Example environment configurations for LinkedIn Insight Tag destination.\n *\n * Tests clone `push` and replace `window.lintrk` with a jest.fn() to collect\n * calls. Production leaves `env` undefined — the destination mutates the real\n * `window` object and injects the LinkedIn CDN script through `loadVendor`.\n */\n\nconst noop = () => {};\n\n/**\n * Pre-init environment — no LinkedIn state present. The destination's init\n * will populate _linkedin_partner_id and install the lintrk queue.\n */\nexport const init: Env | undefined = {\n window: {\n _linkedin_partner_id: undefined,\n _linkedin_data_partner_ids: undefined,\n lintrk: undefined,\n },\n};\n\n/**\n * Post-init environment — lintrk is a spy-able no-op function carrying the\n * queue shape the real script installs. Tests clone this and replace\n * `window.lintrk` with a jest.fn() before pushing events, so every call is\n * captured.\n */\nexport const push: Env = {\n window: {\n _linkedin_partner_id: '123456',\n _linkedin_data_partner_ids: ['123456'],\n lintrk: Object.assign(noop, { q: [] }),\n },\n};\n\n/**\n * Simulation tracking paths — used by CLI `--simulate` to record which\n * function calls happened during an event push.\n */\nexport const simulation = ['call:window.lintrk'];\n","import type { Flow } from '@walkeros/core';\nimport { createEvent, getEvent } from '@walkeros/core';\nimport type { Settings } from '../types';\n\n/**\n * Examples may optionally override destination-level settings for a test.\n * The test runner reads `settings` from the example and merges it into the\n * base destination settings (on top of the fixed `apiKey`). Rarely needed\n * for LinkedIn - conversion config lives on the rule, not destination-level.\n */\nexport type LinkedInStepExample = Flow.StepExample & {\n settings?: Partial<Settings>;\n};\n\n/**\n * OPT-IN: Unmapped event is silently ignored.\n *\n * LinkedIn's core behavioral difference from analytics destinations: events\n * without `mapping.settings.conversion` produce ZERO lintrk() calls. The\n * destination is opt-in - each conversion must reference a pre-created\n * Conversion Rule from Campaign Manager.\n */\nexport const unmappedEventIgnored: LinkedInStepExample = {\n public: false,\n in: getEvent('product view', { timestamp: 1700000100000 }),\n out: [],\n};\n\n/**\n * Simplest possible conversion - just a `conversion_id` from Campaign Manager.\n *\n * Form submission → LinkedIn Lead conversion. The mapping resolves `id` as a\n * literal value (no walker event field needed). The destination translates\n * `{ id }` → `lintrk('track', { conversion_id })`.\n */\nexport const simpleConversionId: LinkedInStepExample = {\n title: 'Simple conversion',\n description:\n 'A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.',\n in: createEvent({ name: 'form submit', timestamp: 1700000101000 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [['lintrk', 'track', { conversion_id: 12345 }]],\n};\n\n/**\n * Full e-commerce conversion - every supported lintrk field populated.\n *\n * mapping config uses short walkerOS keys (`id`, `value`, `currency`, `eventId`);\n * the destination translates them to the vendor parameter names\n * (`conversion_id`, `conversion_value`, `currency`, `event_id`).\n *\n * Currency uses the walkerOS fallback syntax: `{ key, value }` - pull from\n * `data.currency` first, fall back to `\"EUR\"` if absent. The default\n * `order complete` fixture from `getEvent` already sets `data.currency: \"EUR\"`,\n * so the resolved value is \"EUR\" here.\n *\n * `eventId` maps from the walkerOS event.id - stable per event, unique, and\n * ready for deduplication with a future server (Conversions API) destination.\n */\nexport const orderCompleteFullConversion: LinkedInStepExample = {\n title: 'Ecommerce conversion',\n description:\n 'A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.',\n in: getEvent('order complete', {\n timestamp: 1700000102000,\n id: '1700000102abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.value',\n currency: { key: 'data.currency', value: 'EUR' },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n conversion_value: 462,\n currency: 'EUR',\n event_id: '1700000102abcdef',\n },\n ],\n ],\n};\n\n/**\n * Page view as an explicit conversion.\n *\n * LinkedIn's Insight Tag automatically fires a page view on load for\n * retargeting / audience building - that call is NOT something the\n * destination controls. This example tests the OTHER case: mapping a\n * specific walkerOS `page view` event to a Campaign Manager KEY_PAGE_VIEW\n * conversion rule, which fires an EXPLICIT lintrk('track') call in addition\n * to the auto page view.\n */\nexport const pageViewConversion: LinkedInStepExample = {\n title: 'Key page view',\n description:\n 'A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.',\n in: getEvent('page view', {\n timestamp: 1700000103000,\n id: '1700000103abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 11111 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 11111,\n event_id: '1700000103abcdef',\n },\n ],\n ],\n};\n\n/**\n * Middle-funnel LEAD conversion - demo request without monetary value.\n *\n * LinkedIn's conversion types include LEAD, CONTACT, SIGN_UP, etc. The\n * destination is agnostic to the type (set in Campaign Manager, not at call\n * time) - all we forward is the conversion_id. This fixture exercises the\n * \"id + eventId only\" shape.\n */\nexport const demoRequestLead: LinkedInStepExample = {\n title: 'Lead conversion',\n description:\n 'A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.',\n in: createEvent({\n name: 'demo request',\n timestamp: 1700000104000,\n id: '1700000104abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 44444 },\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 44444,\n event_id: '1700000104abcdef',\n },\n ],\n ],\n};\n\n/**\n * rule.silent - fully-configured conversion rule temporarily disabled.\n *\n * The rule has a valid `conversion.map` but `silent: true` tells the destination\n * to produce zero calls. This is distinct from the opt-in default (no\n * `conversion` at all): silent explicitly keeps the rule on disk for quick\n * reactivation without deleting it.\n */\nexport const conversionSilenced: LinkedInStepExample = {\n public: false,\n in: createEvent({ name: 'form submit', timestamp: 1700000105000 }),\n mapping: {\n silent: true,\n settings: {\n conversion: {\n map: {\n id: { value: 12345 },\n },\n },\n },\n },\n out: [],\n};\n\n/**\n * Falsy `id` → entire lintrk call is skipped and the push fails missing-input.\n *\n * If the resolved conversion object has no truthy `id`, the destination does\n * NOT call lintrk at all. This protects against misconfigured mappings\n * (e.g. pulling id from a non-existent field).\n *\n * Here we map `id` from `data.nonexistentField` - it resolves to undefined,\n * so zero calls are produced.\n */\nexport const missingConversionIdIgnored: LinkedInStepExample = {\n public: false,\n description:\n 'A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.',\n in: createEvent({ name: 'form submit', timestamp: 1700000106000 }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: 'data.nonexistentField',\n },\n },\n },\n },\n out: [],\n outcome: { status: 'failed', code: 'missing-input' },\n};\n\n/**\n * Partial conversion - value missing → omitted from the lintrk call.\n *\n * The rule asks for `value: 'data.missingTotal'` (undefined), `currency`\n * (undefined), and `eventId: 'id'` (present). Only `conversion_id` and\n * `event_id` appear in the final call - no `conversion_value`, no `currency`.\n */\nexport const partialFieldsOmitted: LinkedInStepExample = {\n public: false,\n in: getEvent('order complete', {\n timestamp: 1700000107000,\n id: '1700000107abcdef',\n }),\n mapping: {\n settings: {\n conversion: {\n map: {\n id: { value: 67890 },\n value: 'data.missingTotal',\n eventId: 'id',\n },\n },\n },\n },\n out: [\n [\n 'lintrk',\n 'track',\n {\n conversion_id: 67890,\n event_id: '1700000107abcdef',\n },\n ],\n ],\n};\n\n/**\n * A revocation of the consent the destination requires. The Insight Tag has\n * no vendor consent mode, so the collector's consent gate is the only\n * mechanism and no vendor call is made.\n */\nexport const consentRevoke: LinkedInStepExample = {\n public: false,\n description:\n 'For a destination with config.consent { marketing: true }, revoking marketing makes no vendor call: the Insight Tag has no consent mode, the collector stops sending.',\n command: 'consent',\n in: { marketing: false },\n out: [],\n};\n","import type { Flow } from '@walkeros/core';\n\n/**\n * The settings the Insight Tag needs to deliver: the Partner ID, with the\n * Insight Tag script loaded by the destination.\n */\nexport const minimal: Flow.MinimalExample = {\n settings: { apiKey: '123456' },\n config: { loadScript: true },\n};\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,mBAAmB;;;ACA5B,SAAS,SAAS;AAEX,IAAM,iBAAiB,EAC3B,OAAO;AAAA,EACN,QAAQ,EACL,OAAO,EACP,IAAI,CAAC,EACL;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA,OAAO;;;ACfV,SAAS,KAAAA,UAAS;AAUX,IAAM,gBAAgBA,GAAE,OAAO;AAAA,EACpC,YAAYA,GACT,QAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;;;AFTM,IAAM,WAAW,YAAY,cAAc;AAC3C,IAAM,UAAU,YAAY,aAAa;;;AGThD;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,IAAM,OAAO,MAAM;AAAC;AAMb,IAAM,OAAwB;AAAA,EACnC,QAAQ;AAAA,IACN,sBAAsB;A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AA,QACrB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,KAAK,CAAC;AACR;AAYO,IAAM,6BAAkD;AAAA,EAC7D,QAAQ;AAAA,EACR,aACE;AAAA,EACF,IAAI,YAAY,EAAE,MAAM,eAAe,WAAW,aAAc,CAAC;AAAA,EACjE,SAAS;AAAA,IACP,UAAU;AAAA,MACR,YAAY;AAAA,QACV,KAAK;AAAA,UACH,IAAI;AAAA,QACN;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,KAAK,CAAC;AAAA,EACN,SAAS,EAAE,QAAQ,UAAU,MAAM,gBAAgB;AACrD;AASO,IAAM,uBAA4C;AAAA,EACvD,QAAQ;AAAA,EACR,IAAI,SAAS,kBAAkB;AAAA,IAC7B,WAAW;AAAA,IACX,IAAI;AAAA,EACN,CAAC;AAAA,EACD,SAAS;AAAA,IACP,UAAU;AAAA,MACR,YAAY;AAAA,QACV,KAAK;AAAA,UACH,IAAI,EAAE,OAAO,MAAM;AAAA,UACnB,OAAO;AAAA,UACP,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,QACE,eAAe;AAAA,QACf,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AACF;AAOO,IAAM,gBAAqC;AAAA,EAChD,QAAQ;AAAA,EACR,aACE;AAAA,EACF,SAAS;AAAA,EACT,IAAI,EAAE,WAAW,MAAM;AAAA,EACvB,KAAK,CAAC;AACR;;;AClRO,IAAM,UAA+B;AAAA,EAC1C,UAAU,EAAE,QAAQ,SAAS;AAAA,EAC7B,QAAQ,EAAE,YAAY,KAAK;AAC7B;","names":["z"]}
@@ -67,13 +67,13 @@ __export(step_exports, {
67
67
  var import_core = require("@walkeros/core");
68
68
  var unmappedEventIgnored = {
69
69
  public: false,
70
- in: (0, import_core.getEvent)("product view", { timestamp: 1700000100 }),
70
+ in: (0, import_core.getEvent)("product view", { timestamp: 17000001e5 }),
71
71
  out: []
72
72
  };
73
73
  var simpleConversionId = {
74
74
  title: "Simple conversion",
75
75
  description: "A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.",
76
- in: (0, import_core.createEvent)({ name: "form submit", timestamp: 1700000101 }),
76
+ in: (0, import_core.createEvent)({ name: "form submit", timestamp: 1700000101e3 }),
77
77
  mapping: {
78
78
  settings: {
79
79
  conversion: {
@@ -89,7 +89,7 @@ var orderCompleteFullConversion = {
89
89
  title: "Ecommerce conversion",
90
90
  description: "A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.",
91
91
  in: (0, import_core.getEvent)("order complete", {
92
- timestamp: 1700000102,
92
+ timestamp: 1700000102e3,
93
93
  id: "1700000102abcdef"
94
94
  }),
95
95
  mapping: {
@@ -121,7 +121,7 @@ var pageViewConversion = {
121
121
  title: "Key page view",
122
122
  description: "A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.",
123
123
  in: (0, import_core.getEvent)("page view", {
124
- timestamp: 1700000103,
124
+ timestamp: 1700000103e3,
125
125
  id: "1700000103abcdef"
126
126
  }),
127
127
  mapping: {
@@ -150,7 +150,7 @@ var demoRequestLead = {
150
150
  description: "A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.",
151
151
  in: (0, import_core.createEvent)({
152
152
  name: "demo request",
153
- timestamp: 1700000104,
153
+ timestamp: 1700000104e3,
154
154
  id: "1700000104abcdef"
155
155
  }),
156
156
  mapping: {
@@ -176,7 +176,7 @@ var demoRequestLead = {
176
176
  };
177
177
  var conversionSilenced = {
178
178
  public: false,
179
- in: (0, import_core.createEvent)({ name: "form submit", timestamp: 1700000105 }),
179
+ in: (0, import_core.createEvent)({ name: "form submit", timestamp: 1700000105e3 }),
180
180
  mapping: {
181
181
  silent: true,
182
182
  settings: {
@@ -192,7 +192,7 @@ var conversionSilenced = {
192
192
  var missingConversionIdIgnored = {
193
193
  public: false,
194
194
  description: "A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.",
195
- in: (0, import_core.createEvent)({ name: "form submit", timestamp: 1700000106 }),
195
+ in: (0, import_core.createEvent)({ name: "form submit", timestamp: 1700000106e3 }),
196
196
  mapping: {
197
197
  settings: {
198
198
  conversion: {
@@ -208,7 +208,7 @@ var missingConversionIdIgnored = {
208
208
  var partialFieldsOmitted = {
209
209
  public: false,
210
210
  in: (0, import_core.getEvent)("order complete", {
211
- timestamp: 1700000107,
211
+ timestamp: 1700000107e3,
212
212
  id: "1700000107abcdef"
213
213
  }),
214
214
  mapping: {
@@ -45,13 +45,13 @@ __export(step_exports, {
45
45
  import { createEvent, getEvent } from "@walkeros/core";
46
46
  var unmappedEventIgnored = {
47
47
  public: false,
48
- in: getEvent("product view", { timestamp: 1700000100 }),
48
+ in: getEvent("product view", { timestamp: 17000001e5 }),
49
49
  out: []
50
50
  };
51
51
  var simpleConversionId = {
52
52
  title: "Simple conversion",
53
53
  description: "A form submit fires a LinkedIn lintrk track with only a conversion_id from Campaign Manager.",
54
- in: createEvent({ name: "form submit", timestamp: 1700000101 }),
54
+ in: createEvent({ name: "form submit", timestamp: 1700000101e3 }),
55
55
  mapping: {
56
56
  settings: {
57
57
  conversion: {
@@ -67,7 +67,7 @@ var orderCompleteFullConversion = {
67
67
  title: "Ecommerce conversion",
68
68
  description: "A completed order fires a LinkedIn lintrk track with conversion_id, value, currency, and event_id for deduplication.",
69
69
  in: getEvent("order complete", {
70
- timestamp: 1700000102,
70
+ timestamp: 1700000102e3,
71
71
  id: "1700000102abcdef"
72
72
  }),
73
73
  mapping: {
@@ -99,7 +99,7 @@ var pageViewConversion = {
99
99
  title: "Key page view",
100
100
  description: "A page view fires an explicit lintrk track mapped to a LinkedIn KEY_PAGE_VIEW conversion rule.",
101
101
  in: getEvent("page view", {
102
- timestamp: 1700000103,
102
+ timestamp: 1700000103e3,
103
103
  id: "1700000103abcdef"
104
104
  }),
105
105
  mapping: {
@@ -128,7 +128,7 @@ var demoRequestLead = {
128
128
  description: "A demo request fires a LinkedIn lintrk track for a lead conversion with id and event_id only.",
129
129
  in: createEvent({
130
130
  name: "demo request",
131
- timestamp: 1700000104,
131
+ timestamp: 1700000104e3,
132
132
  id: "1700000104abcdef"
133
133
  }),
134
134
  mapping: {
@@ -154,7 +154,7 @@ var demoRequestLead = {
154
154
  };
155
155
  var conversionSilenced = {
156
156
  public: false,
157
- in: createEvent({ name: "form submit", timestamp: 1700000105 }),
157
+ in: createEvent({ name: "form submit", timestamp: 1700000105e3 }),
158
158
  mapping: {
159
159
  silent: true,
160
160
  settings: {
@@ -170,7 +170,7 @@ var conversionSilenced = {
170
170
  var missingConversionIdIgnored = {
171
171
  public: false,
172
172
  description: "A conversion mapping whose id resolves to nothing makes no lintrk call, so the push fails with missing-input instead of counting as delivered.",
173
- in: createEvent({ name: "form submit", timestamp: 1700000106 }),
173
+ in: createEvent({ name: "form submit", timestamp: 1700000106e3 }),
174
174
  mapping: {
175
175
  settings: {
176
176
  conversion: {
@@ -186,7 +186,7 @@ var missingConversionIdIgnored = {
186
186
  var partialFieldsOmitted = {
187
187
  public: false,
188
188
  in: getEvent("order complete", {
189
- timestamp: 1700000107,
189
+ timestamp: 1700000107e3,
190
190
  id: "1700000107abcdef"
191
191
  }),
192
192
  mapping: {
@@ -1 +1 @@
1
- "use strict";var Destination=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r),i={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(i,{DestinationLinkedIn:()=>Y,default:()=>re,destinationLinkedIn:()=>ne});var s=Object.defineProperty,c=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})};function a(e,t){if("collector"===e)return"collector";if(!t)throw new Error(`stepId(${e}) requires an id`);return`${e}.${t}`}c({},{stepId:()=>a});function u(e,t){const n=e.destinations[t];if(!n)throw new Error(`Destination not found: ${t}`);return n}c({},{getDestination:()=>u});c({},{Level:()=>l});var f,l=((f=l||{})[f.ERROR=0]="ERROR",f[f.WARN=1]="WARN",f[f.INFO=2]="INFO",f[f.DEBUG=3]="DEBUG",f);function d(e,t){const n=e.transformers[t];if(!n)throw new Error(`Transformer not found: ${t}`);return n}c({},{getTransformer:()=>d});function p(e,t){const n=e.sources[t];if(!n)throw new Error(`Source not found: ${t}`);return n}c({},{getSource:()=>p});function y(e,t){const n=e.stores[t];if(!n)throw new Error(`Store not found: ${t}`);return n}async function g(e,t){return await e.get(t)}c({},{getStore:()=>y,getStoreValue:()=>g});var v="\\$flow\\.([a-zA-Z_][a-zA-Z0-9_-]*)(?:\\.([a-zA-Z0-9_.]+))?";new RegExp(`^${v}$`),new RegExp(v,"g");function w(e){return Array.isArray(e)}function m(e){return void 0!==e}function h(e){return"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then}function b(e){return"number"==typeof e&&!Number.isNaN(e)}function O(e){return"object"==typeof e&&null!==e&&!w(e)&&"[object Object]"===Object.prototype.toString.call(e)}function j(e){return"string"==typeof e}function k(e,t="",n){const r=t.split(".");let o=e;for(let e=0;e<r.length;e++){const t=r[e];if("*"===t&&w(o)){const t=r.slice(e+1).join("."),i=[];for(const e of o){const r=k(e,t,n);i.push(r)}return i}if(o=O(o)||w(o)?o[t]:void 0,void 0===o)break}return m(o)?o:n}function P(e){return function(e){return"boolean"==typeof e}(e)||j(e)||b(e)||!m(e)||w(e)&&e.every(P)||O(e)&&Object.values(e).every(P)}function _(e){return P(e)?e:void 0}function R(e,t,n){return async function(...r){try{return await e(...r)}catch(e){if(!t)return;return await t(e)}finally{await(null==n?void 0:n())}}}function E(e,t){Object.defineProperty(e,"cause",{value:t,writable:!0,configurable:!0})}var A=class e extends Error{constructor(t,n){super(t),this.name="FatalError",n&&"cause"in n&&E(this,n.cause),Object.setPrototypeOf(this,e.prototype)}},x=["transport","timeout","breaker-open","blocked","queue-full","vendor-not-ready","vendor-timeout"],N=class extends Error{constructor(e,t){super(e),o(this,"code"),o(this,"status"),o(this,"retryable"),o(this,"body"),void 0!==t.cause&&E(this,t.cause),this.name="StepError",this.code=t.code,void 0!==t.status&&(this.status=t.status),this.retryable=function(e){if(void 0!==e.retryable)return e.retryable;const{status:t}=e;if(void 0!==t){if(429===t||t>=500&&t<600)return!0;if(t>=400&&t<500)return!1}return x.includes(e.code)}(t),void 0!==t.body&&(this.body=t.body),Object.setPrototypeOf(this,new.target.prototype)}};function S(e){return e.length>300?e.slice(0,300):e}var $=["type","mappingKey"],K=["count","suppressed"];function L(e,t,n,r,o,i="error"){if(null==e?void 0:e.causeLog)return void e.causeLog.report(n,r,o,i);const s=function(e,t){const n={step:e.step,code:e.code};void 0!==e.status&&(n.status=e.status);for(const e of $)"string"==typeof t[e]&&(n[e]=t[e]);for(const e of K)"number"==typeof t[e]&&(n[e]=t[e]);"boolean"==typeof t.retryable&&(n.retryable=t.retryable);const r="string"==typeof(o=t.event)?o:O(o)&&"string"==typeof o.name?o.name:void 0;var o;void 0!==r&&(n.event=r);const i=function(e){if(void 0!==e)return"string"==typeof e?S(e):e instanceof Error||O(e)&&"string"==typeof e.message?S(e.message):S(String(e))}(t.error);return void 0!==i&&(n.error=i),n}(n,o);"warn"===i?t.warn(r,s):t.error(r,s)}var I=["condition","consent","fn","key","loop","map","set","validate","value"];function D(e,t,n,r){const o=e.event.name,i=(null==t?void 0:t.mappingKey)?`mapping.${t.mappingKey}`:"mapping";L(e.collector,e.logger,{step:i,code:"mapping"},n,{..."string"==typeof o?{event:o}:{},...(null==t?void 0:t.mappingKey)?{mappingKey:t.mappingKey}:{},...void 0!==r?{error:r}:{}})}async function T(e,t={},n,r){var o;if(!n.collector)throw new Error("getMappingValue: context.collector is required");const i=n.consent||n.collector.consent,s={event:null!=(o=n.event)?o:{},mapping:t,collector:n.collector,logger:n.collector.logger,consent:i},c=w(t)?t:[t];for(const t of c){const n=await R(V,e=>{if(e instanceof A)throw e;D(s,r,"mapping value failed",e)})(e,t,{...s,mapping:t},r);if(m(n))return n}}async function V(e,t,n,r){return(w(t)?t:[t]).reduce(async(t,o)=>{const i=await t;if(i)return i;const s=j(o)?{key:o}:o;if(!Object.keys(s).length)return;if(!I.some(e=>e in s))return void D({...n,mapping:o},r,`mapping value has no operator (${Object.keys(s).join(", ")}): wrap the fields in map, or use key, value, fn, loop or set`);const{condition:c,consent:a,fn:u,key:f,loop:l,map:d,set:p,validate:y,value:g}=s,v={...n,mapping:o};if(c&&!await R(c,e=>{if(e instanceof A)throw e;return D(v,r,"mapping condition failed",e),!1})(e,v))return;if(a&&!function(e,t={},n={}){const r={...t,...n},o={};let i=!e||0===Object.keys(e).length;return Object.keys(r).forEach(t=>{r[t]&&(o[t]=!0,e&&e[t]&&(i=!0))}),!!i&&o}(a,v.consent))return g;let h=m(g)?g:e;if(l){const[t,n]=l,o="this"===t?[e]:await T(e,t,v,r);h=w(o)?(await Promise.all(o.map(e=>m(e)?T(e,n,v,r):void 0))).filter(m):void 0}else d?h=await Object.entries(d).reduce(async(t,[n,o])=>{const i=await t,s=await T(e,o,v,r);return m(s)&&(i[n]=s),i},Promise.resolve({})):p?h=await Promise.all(p.map(t=>V(e,t,v,r))):f?h=k(e,f,g):u&&(h=await R(u,e=>{if(e instanceof A)throw e;D(v,r,"mapping fn failed",e)})(e,v));y&&!await R(y,e=>{if(e instanceof A)throw e;return D(v,r,"mapping validate failed",e),!1})(h,v)&&(h=void 0);const b=_(h);return m(b)?b:_(g)},Promise.resolve(void 0))}async function W(e,t={},n){return async function(e,t,n,r){var o,i;if(!m(e))return;const s=O(e)&&e.consent||(null==n?void 0:n.consent)||(null==(o=null==n?void 0:n.collector)?void 0:o.consent),c=null!=(i=null==n?void 0:n.event)?i:O(e)?e:{};return T(e,t,{...n,consent:s,event:c},r)}(e,t,n)}var q="observe";function M(e){const t=(e.startsWith("call:")?e.slice(5):e).split(".");return t.some(e=>""===e)?[]:t}function B(e){return"function"==typeof e}function z(e){return"object"==typeof e&&null!==e}var F=["name","length","prototype","arguments","caller"];function Z(e,t){if(-1!==F.indexOf(t))return!1;let n=e;for(;B(n);){if(Object.prototype.hasOwnProperty.call(n,t))return!0;const e=Object.getPrototypeOf(n);if(!B(e)||!B(Object.getPrototypeOf(e)))return!1;n=e}return!1}function G(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!(n&&!n.configurable)||"value"in n&&!0===n.writable}function U(e,t){let n=e;for(const e of t){if(B(n)){if(!Z(n,e))return!0;if(!G(n,e))return!1}else if(h(n)){if(!(e in n))return!0}else if(!z(n)||!(e in n))return!1;n=Reflect.get(n,e)}return B(n)}function C(e){const t={window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...e},n=e&&e[q];if(("undefined"==typeof __WALKEROS_OBSERVE__||__WALKEROS_OBSERVE__)&&function(e){if("object"!=typeof e||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;const{paths:t,record:n}=e;return Array.isArray(t)&&t.every(e=>"string"==typeof e)&&"function"==typeof n}(n)){delete t[q];const e=function(e,t,n){const r=[],o=[],i=[];for(const n of t){const t=M(n);if(0===t.length)continue;const r=t.join(".");i.push({rest:t,fn:r}),U(e,t)||o.push(r)}const s=new WeakMap,c=new WeakSet;function a(e,t){for(const o of e)if(n)try{n(o,t)}catch(e){}else r.push({fn:o,args:t,ts:Date.now()})}function u(e,t){return 0===t.length||f(e)?e:h(e)&&!t.some(t=>t.rest[0]in e)?Promise.resolve(e).then(e=>u(e,t)):B(e)?v(e,[],t):z(e)?d(e,t):e}function f(e){return(z(e)||B(e))&&c.has(e)}function l(e,t){const n=[],r=[];for(const o of e)o.rest[0]===t&&(1===o.rest.length?n.includes(o.fn)||n.push(o.fn):r.push({rest:o.rest.slice(1),fn:o.fn}));return{leafs:n,deeper:r}}function d(e,t){var n;const r=t.map(e=>`${e.fn}:${e.rest.join(".")}`).join("|"),o=null!=(n=s.get(e))?n:new Map;s.set(e,o);const i=o.get(r);if(i)return i;const c=p(e,t);return o.set(r,c),c}function p(e,t){return B(e)?y(e,t):t.some(t=>!G(e,t.rest[0]))?function(e,t){const n=Object.create(Object.getPrototypeOf(e)),r=g(e,t,()=>o),o=new Proxy(n,{get:(e,t)=>r.get(t),set:(t,n,r)=>Reflect.set(e,n,r,e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),getOwnPropertyDescriptor(t,n){const r=Reflect.getOwnPropertyDescriptor(e,n);return r&&{...r,configurable:!0}},defineProperty:(t,n,r)=>Reflect.defineProperty(e,n,r),deleteProperty:(t,n)=>Reflect.deleteProperty(e,n)});return c.add(o),o}(e,t):y(e,t)}function y(e,t){const n=g(e,t,()=>r),r=new Proxy(e,{get:(e,t)=>"string"!=typeof t||G(e,t)?n.get(t):Reflect.get(e,t,e),set:(e,t,n)=>Reflect.set(e,t,n,e)});return c.add(r),r}function g(e,t,n){const r=new Map;return{get(o){const i=Reflect.get(e,o,e);if("string"!=typeof o)return i;if(!B(i)&&!z(i))return i;if(f(i))return i;const s=r.get(o);if(s&&s.value===i)return s.out;const{leafs:c,deeper:a}=l(t,o);if(!(c.length>0||a.length>0)&&(!B(i)||function(e){if(Array.isArray(e))return!0;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return i;let u=i;return B(i)?u=v(i,c,a,{proxy:n(),target:e}):a.length>0&&(u=d(i,a)),r.set(o,{value:i,out:u}),u}}}function v(e,t,n,r){const o=()=>n.filter(t=>!Z(e,t.rest[0])),i=new Map,s=new Proxy(e,{get(e,t){const r=Reflect.get(e,t,e);if("string"!=typeof t||!G(e,t))return r;if(!Z(e,t))return r;const{leafs:o,deeper:c}=l(n,t);if(0===o.length&&0===c.length)return r;if(f(r))return r;const a=i.get(t);if(a&&a.value===r)return a.out;let u=r;return B(r)?u=v(r,o,c,{proxy:s,target:e}):z(r)&&c.length>0&&(u=d(r,c)),i.set(t,{value:r,out:u}),u},set:(e,t,n)=>Reflect.set(e,t,n,e),apply(e,n,i){a(t,i);const s=!r||n!==r.proxy&&void 0!==n?n:r.target;return u(Reflect.apply(e,s,i),o())},construct(e,n,r){a(t,n);const i=Reflect.construct(e,n,r===s?e:r),c=u(i,o());return z(c)||B(c)?c:i}});return c.add(s),s}return{env:p(e,i),calls:r,unresolved:o}}(t,n.paths,n.record).env,r=new Set;for(const e of n.paths){const n=M(e)[0];if(void 0===n)continue;const o=t[n];null!==o&&"object"==typeof o&&r.add(n)}const o=Array.from(r,t=>[t,e[t]]);for(const[e,n]of o)t[e]=n}return t}var H="data-walkeros-vendor",J=new WeakMap;var Q=()=>new N("Vendor script failed to load",{code:"vendor-not-loaded"});function X(e,t,n={}){var r,o;const i=()=>null!=t();let s;if(e){const t=null!=(r=n.document)?r:"undefined"!=typeof document?document:void 0;if(!t)throw new N(`Vendor script ${e} has no document to go into`,{code:"vendor-not-ready"});s=function(e,t,n,r,o){const i=function(e,t){const n=e.querySelectorAll(`script[${H}]`);return Array.from(n).find(e=>e.getAttribute("src")===t)}(e,t),s=i&&J.get(i);if(s)return s;const c={state:"loading",expired:!1,timeout:n,waiting:[]};if(i&&o())return c.state="loaded",J.set(i,c),c;const a=null!=i?i:e.createElement("script"),u=e=>{const t=c.waiting;c.waiting=[],t.forEach(t=>t(e))},f=setTimeout(()=>{c.expired=!0,u("expired")},n);if(J.set(a,c),a.addEventListener("load",()=>{clearTimeout(f),c.state="loaded",u("loaded")}),a.addEventListener("error",()=>{clearTimeout(f),c.state="failed",u("failed")}),!i){for(const[e,t]of Object.entries(r))a.setAttribute(e,t);a.src=t,a.async=!0,a.setAttribute(H,""),e.head.appendChild(a)}return c}(t,e,function(e){return"number"==typeof e&&e>0?e:1e4}(n.timeout),null!=(o=n.attributes)?o:{},i)}const c=()=>{const e=t();return null==e?Promise.reject(new N("Vendor not ready: its global is missing",{code:"vendor-not-ready"})):Promise.resolve(e)};return{ready:()=>s?"failed"===s.state?Promise.reject(Q()):"loaded"===s.state||s.expired?c():new Promise((e,t)=>{s.waiting.push(n=>{var r;"failed"===n?t(Q()):"expired"===n?t((r=s.timeout,new N(`Vendor script did not load within ${r}ms`,{code:"vendor-timeout"}))):c().then(e,t)})}):c(),check(){if("failed"===(null==s?void 0:s.state))throw Q()}}}var Y={};function ee(e,t){return X(e.loadScript?"https://snap.licdn.com/li.lms-analytics/insight.min.js":void 0,()=>C(t).window.lintrk,{timeout:e.timeout,document:C(t).document})}var te,ne={type:"linkedin",config:{},init({config:e,env:t}){const n=e.settings;if(!(null==n?void 0:n.apiKey))throw new N("LinkedIn needs settings.apiKey",{code:"config"});return function(e,t){const{window:n}=C(e);n._linkedin_partner_id=t;const r=n._linkedin_data_partner_ids||(n._linkedin_data_partner_ids=[]);r.includes(t)||r.push(t)}(t,n.apiKey),function(e){const{window:t}=C(e);if(t.lintrk)return;const n=Object.assign((...e)=>{(n.q||(n.q=[])).push(e)},{q:[]});t.lintrk=n}(t),ee(e,t),e},async push(e,{config:t,rule:n,env:r,collector:o}){ee(t,r).check();const{lintrk:i}=C(r).window;if(!i)throw new N("LinkedIn Insight Tag not ready: lintrk is missing",{code:"vendor-not-ready"});const s=(null==n?void 0:n.settings)||{};if(!0!==(null==n?void 0:n.silent)&&void 0!==s.conversion){const t=function(e){if(!O(e))return;const{id:t,value:n,currency:r,eventId:o}=e,i=b(t)?t:j(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0===i||0===i)return;const s={conversion_id:i};if(b(n))s.conversion_value=n;else if(j(n)&&""!==n){const e=Number(n);Number.isNaN(e)||(s.conversion_value=e)}return j(r)&&""!==r&&(s.currency=r),j(o)&&""!==o&&(s.event_id=o),s}(await W(e,s.conversion,{collector:o}));if(!t)throw new N("LinkedIn conversion mapping resolved to no conversion id",{code:"missing-input"});await async function(e,t,n){try{return await e()}catch(e){if(e instanceof N)throw e;throw new N(n,{code:t,cause:e})}}(()=>i("track",t),"transport","LinkedIn lintrk call failed")}},on(e,{config:t,data:n,env:r}){"consent"===e&&O(n)&&t.loadScript&&!0===n.marketing&&ee(t,r)}},re=ne;return te=i,((o,i,s,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of n(i))r.call(o,a)||a===s||e(o,a,{get:()=>i[a],enumerable:!(c=t(i,a))||c.enumerable});return o})(e({},"__esModule",{value:!0}),te)})();
1
+ "use strict";var Destination=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r),i={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(i,{DestinationLinkedIn:()=>ee,default:()=>oe,destinationLinkedIn:()=>re});var s=Object.defineProperty,c=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})};function a(e,t){if("collector"===e)return"collector";if(!t)throw new Error(`stepId(${e}) requires an id`);return`${e}.${t}`}c({},{stepId:()=>a});function u(e,t){const n=e.destinations[t];if(!n)throw new Error(`Destination not found: ${t}`);return n}c({},{getDestination:()=>u});c({},{Level:()=>l});var f,l=((f=l||{})[f.ERROR=0]="ERROR",f[f.WARN=1]="WARN",f[f.INFO=2]="INFO",f[f.DEBUG=3]="DEBUG",f);function d(e,t){const n=e.transformers[t];if(!n)throw new Error(`Transformer not found: ${t}`);return n}c({},{getTransformer:()=>d});function p(e,t){const n=e.sources[t];if(!n)throw new Error(`Source not found: ${t}`);return n}c({},{getSource:()=>p});function y(e,t){const n=e.stores[t];if(!n)throw new Error(`Store not found: ${t}`);return n}async function g(e,t){return await e.get(t)}c({},{getStore:()=>y,getStoreValue:()=>g});var v="\\$flow\\.([a-zA-Z_][a-zA-Z0-9_-]*)(?:\\.([a-zA-Z0-9_.]+))?";new RegExp(`^${v}$`),new RegExp(v,"g");function w(e){return Array.isArray(e)}function m(e){return void 0!==e}function h(e){return"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then}function b(e){return"number"==typeof e&&!Number.isNaN(e)}function O(e){return"object"==typeof e&&null!==e&&!w(e)&&"[object Object]"===Object.prototype.toString.call(e)}function j(e){return"string"==typeof e}function k(e,t="",n){const r=t.split(".");let o=e;for(let e=0;e<r.length;e++){const t=r[e];if("*"===t&&w(o)){const t=r.slice(e+1).join("."),i=[];for(const e of o){const r=k(e,t,n);i.push(r)}return i}if(o=O(o)||w(o)?o[t]:void 0,void 0===o)break}return m(o)?o:n}function P(e,t={},n={}){const r=function(e={},t={}){const n={...e,...t},r={};return Object.keys(n).forEach(e=>{n[e]&&(r[e]=!0)}),r}(t,n);return e&&0!==Object.keys(e).length?!!Object.keys(e).some(t=>e[t]&&r[t])&&r:r}function _(e){return function(e){return"boolean"==typeof e}(e)||j(e)||b(e)||!m(e)||w(e)&&e.every(_)||O(e)&&Object.values(e).every(_)}function R(e){return _(e)?e:void 0}function E(e,t,n){return async function(...r){try{return await e(...r)}catch(e){if(!t)return;return await t(e)}finally{await(null==n?void 0:n())}}}function A(e,t){Object.defineProperty(e,"cause",{value:t,writable:!0,configurable:!0})}var x=class e extends Error{constructor(t,n){super(t),this.name="FatalError",n&&"cause"in n&&A(this,n.cause),Object.setPrototypeOf(this,e.prototype)}},N=["transport","timeout","breaker-open","blocked","queue-full","vendor-not-ready","vendor-timeout"],S=class extends Error{constructor(e,t){super(e),o(this,"code"),o(this,"status"),o(this,"retryable"),o(this,"body"),void 0!==t.cause&&A(this,t.cause),this.name="StepError",this.code=t.code,void 0!==t.status&&(this.status=t.status),this.retryable=function(e){if(void 0!==e.retryable)return e.retryable;const{status:t}=e;if(void 0!==t){if(429===t||t>=500&&t<600)return!0;if(t>=400&&t<500)return!1}return N.includes(e.code)}(t),void 0!==t.body&&(this.body=t.body),Object.setPrototypeOf(this,new.target.prototype)}};function $(e){return e.length>300?e.slice(0,300):e}var K=["type","mappingKey"],L=["count","suppressed"];function I(e,t,n,r,o,i="error"){if(null==e?void 0:e.causeLog)return void e.causeLog.report(n,r,o,i);const s=function(e,t){const n={step:e.step,code:e.code};void 0!==e.status&&(n.status=e.status);for(const e of K)"string"==typeof t[e]&&(n[e]=t[e]);for(const e of L)"number"==typeof t[e]&&(n[e]=t[e]);"boolean"==typeof t.retryable&&(n.retryable=t.retryable);const r="string"==typeof(o=t.event)?o:O(o)&&"string"==typeof o.name?o.name:void 0;var o;void 0!==r&&(n.event=r);const i=function(e){if(void 0!==e)return"string"==typeof e?$(e):e instanceof Error||O(e)&&"string"==typeof e.message?$(e.message):$(String(e))}(t.error);return void 0!==i&&(n.error=i),n}(n,o);"warn"===i?t.warn(r,s):t.error(r,s)}var D=["condition","consent","fn","key","loop","map","set","validate","value"];function T(e,t,n,r){const o=e.event.name,i=(null==t?void 0:t.mappingKey)?`mapping.${t.mappingKey}`:"mapping";I(e.collector,e.logger,{step:i,code:"mapping"},n,{..."string"==typeof o?{event:o}:{},...(null==t?void 0:t.mappingKey)?{mappingKey:t.mappingKey}:{},...void 0!==r?{error:r}:{}})}async function V(e,t={},n,r){var o;if(!n.collector)throw new Error("getMappingValue: context.collector is required");const i=n.consent||n.collector.consent,s={event:null!=(o=n.event)?o:{},mapping:t,collector:n.collector,logger:n.collector.logger,consent:i},c=w(t)?t:[t];for(const t of c){const n=await E(W,e=>{if(e instanceof x)throw e;T(s,r,"mapping value failed",e)})(e,t,{...s,mapping:t},r);if(m(n))return n}}async function W(e,t,n,r){return(w(t)?t:[t]).reduce(async(t,o)=>{const i=await t;if(i)return i;const s=j(o)?{key:o}:o;if(!Object.keys(s).length)return;if(!D.some(e=>e in s))return void T({...n,mapping:o},r,`mapping value has no operator (${Object.keys(s).join(", ")}): wrap the fields in map, or use key, value, fn, loop or set`);const{condition:c,consent:a,fn:u,key:f,loop:l,map:d,set:p,validate:y,value:g}=s,v={...n,mapping:o};if(c&&!await E(c,e=>{if(e instanceof x)throw e;return T(v,r,"mapping condition failed",e),!1})(e,v))return;if(a&&!P(a,v.consent))return g;let h=m(g)?g:e;if(l){const[t,n]=l,o="this"===t?[e]:await V(e,t,v,r);h=w(o)?(await Promise.all(o.map(e=>m(e)?V(e,n,v,r):void 0))).filter(m):void 0}else d?h=await Object.entries(d).reduce(async(t,[n,o])=>{const i=await t,s=await V(e,o,v,r);return m(s)&&(i[n]=s),i},Promise.resolve({})):p?h=await Promise.all(p.map(t=>W(e,t,v,r))):f?h=k(e,f,g):u&&(h=await E(u,e=>{if(e instanceof x)throw e;T(v,r,"mapping fn failed",e)})(e,v));y&&!await E(y,e=>{if(e instanceof x)throw e;return T(v,r,"mapping validate failed",e),!1})(h,v)&&(h=void 0);const b=R(h);return m(b)?b:R(g)},Promise.resolve(void 0))}async function q(e,t={},n){return async function(e,t,n,r){var o,i;if(!m(e))return;const s=O(e)&&e.consent||(null==n?void 0:n.consent)||(null==(o=null==n?void 0:n.collector)?void 0:o.consent),c=null!=(i=null==n?void 0:n.event)?i:O(e)?e:{};return V(e,t,{...n,consent:s,event:c},r)}(e,t,n)}var M="observe";function B(e){const t=(e.startsWith("call:")?e.slice(5):e).split(".");return t.some(e=>""===e)?[]:t}function z(e){return"function"==typeof e}function F(e){return"object"==typeof e&&null!==e}var Z=["name","length","prototype","arguments","caller"];function G(e,t){if(-1!==Z.indexOf(t))return!1;let n=e;for(;z(n);){if(Object.prototype.hasOwnProperty.call(n,t))return!0;const e=Object.getPrototypeOf(n);if(!z(e)||!z(Object.getPrototypeOf(e)))return!1;n=e}return!1}function U(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!(n&&!n.configurable)||"value"in n&&!0===n.writable}function C(e,t){let n=e;for(const e of t){if(z(n)){if(!G(n,e))return!0;if(!U(n,e))return!1}else if(h(n)){if(!(e in n))return!0}else if(!F(n)||!(e in n))return!1;n=Reflect.get(n,e)}return z(n)}function H(e){const t={window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...e},n=e&&e[M];if(("undefined"==typeof __WALKEROS_OBSERVE__||__WALKEROS_OBSERVE__)&&function(e){if("object"!=typeof e||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;const{paths:t,record:n}=e;return Array.isArray(t)&&t.every(e=>"string"==typeof e)&&"function"==typeof n}(n)){delete t[M];const e=function(e,t,n){const r=[],o=[],i=[];for(const n of t){const t=B(n);if(0===t.length)continue;const r=t.join(".");i.push({rest:t,fn:r}),C(e,t)||o.push(r)}const s=new WeakMap,c=new WeakSet;function a(e,t){for(const o of e)if(n)try{n(o,t)}catch(e){}else r.push({fn:o,args:t,ts:Date.now()})}function u(e,t){return 0===t.length||f(e)?e:h(e)&&!t.some(t=>t.rest[0]in e)?Promise.resolve(e).then(e=>u(e,t)):z(e)?v(e,[],t):F(e)?d(e,t):e}function f(e){return(F(e)||z(e))&&c.has(e)}function l(e,t){const n=[],r=[];for(const o of e)o.rest[0]===t&&(1===o.rest.length?n.includes(o.fn)||n.push(o.fn):r.push({rest:o.rest.slice(1),fn:o.fn}));return{leafs:n,deeper:r}}function d(e,t){var n;const r=t.map(e=>`${e.fn}:${e.rest.join(".")}`).join("|"),o=null!=(n=s.get(e))?n:new Map;s.set(e,o);const i=o.get(r);if(i)return i;const c=p(e,t);return o.set(r,c),c}function p(e,t){return z(e)?y(e,t):t.some(t=>!U(e,t.rest[0]))?function(e,t){const n=Object.create(Object.getPrototypeOf(e)),r=g(e,t,()=>o),o=new Proxy(n,{get:(e,t)=>r.get(t),set:(t,n,r)=>Reflect.set(e,n,r,e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),getOwnPropertyDescriptor(t,n){const r=Reflect.getOwnPropertyDescriptor(e,n);return r&&{...r,configurable:!0}},defineProperty:(t,n,r)=>Reflect.defineProperty(e,n,r),deleteProperty:(t,n)=>Reflect.deleteProperty(e,n)});return c.add(o),o}(e,t):y(e,t)}function y(e,t){const n=g(e,t,()=>r),r=new Proxy(e,{get:(e,t)=>"string"!=typeof t||U(e,t)?n.get(t):Reflect.get(e,t,e),set:(e,t,n)=>Reflect.set(e,t,n,e)});return c.add(r),r}function g(e,t,n){const r=new Map;return{get(o){const i=Reflect.get(e,o,e);if("string"!=typeof o)return i;if(!z(i)&&!F(i))return i;if(f(i))return i;const s=r.get(o);if(s&&s.value===i)return s.out;const{leafs:c,deeper:a}=l(t,o);if(!(c.length>0||a.length>0)&&(!z(i)||function(e){if(Array.isArray(e))return!0;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return i;let u=i;return z(i)?u=v(i,c,a,{proxy:n(),target:e}):a.length>0&&(u=d(i,a)),r.set(o,{value:i,out:u}),u}}}function v(e,t,n,r){const o=()=>n.filter(t=>!G(e,t.rest[0])),i=new Map,s=new Proxy(e,{get(e,t){const r=Reflect.get(e,t,e);if("string"!=typeof t||!U(e,t))return r;if(!G(e,t))return r;const{leafs:o,deeper:c}=l(n,t);if(0===o.length&&0===c.length)return r;if(f(r))return r;const a=i.get(t);if(a&&a.value===r)return a.out;let u=r;return z(r)?u=v(r,o,c,{proxy:s,target:e}):F(r)&&c.length>0&&(u=d(r,c)),i.set(t,{value:r,out:u}),u},set:(e,t,n)=>Reflect.set(e,t,n,e),apply(e,n,i){a(t,i);const s=!r||n!==r.proxy&&void 0!==n?n:r.target;return u(Reflect.apply(e,s,i),o())},construct(e,n,r){a(t,n);const i=Reflect.construct(e,n,r===s?e:r),c=u(i,o());return F(c)||z(c)?c:i}});return c.add(s),s}return{env:p(e,i),calls:r,unresolved:o}}(t,n.paths,n.record).env,r=new Set;for(const e of n.paths){const n=B(e)[0];if(void 0===n)continue;const o=t[n];null!==o&&"object"==typeof o&&r.add(n)}const o=Array.from(r,t=>[t,e[t]]);for(const[e,n]of o)t[e]=n}return t}var J="data-walkeros-vendor",Q=new WeakMap;var X=()=>new S("Vendor script failed to load",{code:"vendor-not-loaded"});function Y(e,t,n={}){var r,o;const i=()=>null!=t();let s;if(e){const t=null!=(r=n.document)?r:"undefined"!=typeof document?document:void 0;if(!t)throw new S(`Vendor script ${e} has no document to go into`,{code:"vendor-not-ready"});s=function(e,t,n,r,o){const i=function(e,t){const n=e.querySelectorAll(`script[${J}]`);return Array.from(n).find(e=>e.getAttribute("src")===t)}(e,t),s=i&&Q.get(i);if(s)return s;const c={state:"loading",expired:!1,timeout:n,waiting:[]};if(i&&o())return c.state="loaded",Q.set(i,c),c;const a=null!=i?i:e.createElement("script"),u=e=>{const t=c.waiting;c.waiting=[],t.forEach(t=>t(e))},f=setTimeout(()=>{c.expired=!0,u("expired")},n);if(Q.set(a,c),a.addEventListener("load",()=>{clearTimeout(f),c.state="loaded",u("loaded")}),a.addEventListener("error",()=>{clearTimeout(f),c.state="failed",u("failed")}),!i){for(const[e,t]of Object.entries(r))a.setAttribute(e,t);a.src=t,a.async=!0,a.setAttribute(J,""),e.head.appendChild(a)}return c}(t,e,function(e){return"number"==typeof e&&e>0?e:1e4}(n.timeout),null!=(o=n.attributes)?o:{},i)}const c=()=>{const e=t();return null==e?Promise.reject(new S("Vendor not ready: its global is missing",{code:"vendor-not-ready"})):Promise.resolve(e)};return{ready:()=>s?"failed"===s.state?Promise.reject(X()):"loaded"===s.state||s.expired?c():new Promise((e,t)=>{s.waiting.push(n=>{var r;"failed"===n?t(X()):"expired"===n?t((r=s.timeout,new S(`Vendor script did not load within ${r}ms`,{code:"vendor-timeout"}))):c().then(e,t)})}):c(),check(){if("failed"===(null==s?void 0:s.state))throw X()}}}var ee={};function te(e,t){return Y(e.loadScript?"https://snap.licdn.com/li.lms-analytics/insight.min.js":void 0,()=>H(t).window.lintrk,{timeout:e.timeout,document:H(t).document})}var ne,re={type:"linkedin",config:{},init({config:e,env:t}){const n=e.settings;if(!(null==n?void 0:n.apiKey))throw new S("LinkedIn needs settings.apiKey",{code:"config"});return function(e,t){const{window:n}=H(e);n._linkedin_partner_id=t;const r=n._linkedin_data_partner_ids||(n._linkedin_data_partner_ids=[]);r.includes(t)||r.push(t)}(t,n.apiKey),function(e){const{window:t}=H(e);if(t.lintrk)return;const n=Object.assign((...e)=>{(n.q||(n.q=[])).push(e)},{q:[]});t.lintrk=n}(t),te(e,t),e},async push(e,{config:t,rule:n,env:r,collector:o}){te(t,r).check();const{lintrk:i}=H(r).window;if(!i)throw new S("LinkedIn Insight Tag not ready: lintrk is missing",{code:"vendor-not-ready"});const s=(null==n?void 0:n.settings)||{};if(!0!==(null==n?void 0:n.silent)&&void 0!==s.conversion){const t=function(e){if(!O(e))return;const{id:t,value:n,currency:r,eventId:o}=e,i=b(t)?t:j(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0===i||0===i)return;const s={conversion_id:i};if(b(n))s.conversion_value=n;else if(j(n)&&""!==n){const e=Number(n);Number.isNaN(e)||(s.conversion_value=e)}return j(r)&&""!==r&&(s.currency=r),j(o)&&""!==o&&(s.event_id=o),s}(await q(e,s.conversion,{collector:o}));if(!t)throw new S("LinkedIn conversion mapping resolved to no conversion id",{code:"missing-input"});await async function(e,t,n){try{return await e()}catch(e){if(e instanceof S)throw e;throw new S(n,{code:t,cause:e})}}(()=>i("track",t),"transport","LinkedIn lintrk call failed")}},on(e,{config:t,data:n,env:r}){"consent"===e&&O(n)&&t.loadScript&&!0===n.marketing&&te(t,r)}},oe=re;return ne=i,((o,i,s,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of n(i))r.call(o,a)||a===s||e(o,a,{get:()=>i[a],enumerable:!(c=t(i,a))||c.enumerable});return o})(e({},"__esModule",{value:!0}),ne)})();
package/dist/index.es5.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,u,"next",e)}function u(e){asyncGeneratorStep(i,n,o,a,u,"throw",e)}a(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_set_prototype_of(o,r.prototype),o},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:c(0)}),u(a,"throw",{value:c(1)}),u(a,"return",{value:c(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},o=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},i=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},a=function(e){return Array.isArray(e)},u=function(e){return void 0!==e},c=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&"then"in e&&"function"==typeof e.then},l=function(e){return"number"==typeof e&&!Number.isNaN(e)},s=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!a(e)&&"[object Object]"===Object.prototype.toString.call(e)},f=function(e){return"string"==typeof e},p=function(e){return z(e)?e:void 0},_=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return _async_to_generator(function(){var n;return _ts_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,i.sent()];case 2:return n=i.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return i.sent(),[7];case 6:return[2]}})})()}},d=function(e,t){Object.defineProperty(e,"cause",{value:t,writable:!0,configurable:!0})},y=function(e,t,r){return _async_to_generator(function(){var n;return _ts_generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return[2,o.sent()];case 2:if(_instanceof(n=o.sent(),U))throw n;throw new U(r,{code:t,cause:n});case 3:return[2]}})})()},v=function(e){return e.length>300?e.slice(0,300):e},b=function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"error";if(null==e?void 0:e.causeLog)e.causeLog.report(r,n,o,i);else{var a=function(e,t){var r={step:e.step,code:e.code};void 0!==e.status&&(r.status=e.status);var n=!0,o=!1,i=void 0;try{for(var a,u=Z[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var c=a.value;"string"==typeof t[c]&&(r[c]=t[c])}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}var l=!0,f=!1,p=void 0;try{for(var _,d=$[Symbol.iterator]();!(l=(_=d.next()).done);l=!0){var y=_.value;"number"==typeof t[y]&&(r[y]=t[y])}}catch(e){f=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(f)throw p}}"boolean"==typeof t.retryable&&(r.retryable=t.retryable);var b,h="string"==typeof(b=t.event)?b:s(b)&&"string"==typeof b.name?b.name:void 0;void 0!==h&&(r.event=h);var g=function(e){if(void 0!==e)return"string"==typeof e?v(e):_instanceof(e,Error)||s(e)&&"string"==typeof e.message?v(e.message):v(String(e))}(t.error);return void 0!==g&&(r.error=g),r}(r,o);"warn"===i?t.warn(n,a):t.error(n,a)}},h=function(e,t,r,n){var o=e.event.name,i=(null==t?void 0:t.mappingKey)?"mapping.".concat(t.mappingKey):"mapping";b(e.collector,e.logger,{step:i,code:"mapping"},r,_object_spread({},"string"==typeof o?{event:o}:{},(null==t?void 0:t.mappingKey)?{mappingKey:t.mappingKey}:{},void 0!==n?{error:n}:{}))},g=function(e,t,r){return _async_to_generator(function(e){var t,r,n,o,i,c,l,s,f,p,d,y,v,b,g,w=arguments;return _ts_generator(this,function(m){switch(m.label){case 0:if(t=w.length>1&&void 0!==w[1]?w[1]:{},n=w.length>3?w[3]:void 0,!(r=w.length>2?w[2]:void 0).collector)throw new Error("getMappingValue: context.collector is required");i=r.consent||r.collector.consent,c={event:null!==(o=r.event)&&void 0!==o?o:{},mapping:t,collector:r.collector,logger:r.collector.logger,consent:i},l=a(t)?t:[t],s=!0,f=!1,p=void 0,m.label=1;case 1:m.trys.push([1,6,7,8]),d=l[Symbol.iterator](),m.label=2;case 2:return(s=(y=d.next()).done)?[3,5]:(v=y.value,[4,_(J,function(e){if(_instanceof(e,F))throw e;h(c,n,"mapping value failed",e)})(e,v,_object_spread_props(_object_spread({},c),{mapping:v}),n)]);case 3:if(b=m.sent(),u(b))return[2,b];m.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return g=m.sent(),f=!0,p=g,[3,8];case 7:try{s||null==d.return||d.return()}finally{if(f)throw p}return[7];case 8:return[2]}})}).apply(this,arguments)},w=function(e,t){return _async_to_generator(function(e){var t=arguments;return _ts_generator(this,function(r){return[2,m(e,t.length>1&&void 0!==t[1]?t[1]:{},t.length>2?t[2]:void 0)]})}).apply(this,arguments)},m=function(e,t,r,n){return _async_to_generator(function(){var o,i,a,c;return _ts_generator(this,function(l){return u(e)?(a=s(e)&&e.consent||(null==r?void 0:r.consent)||(null==r||null===(i=r.collector)||void 0===i?void 0:i.consent),c=null!==(o=null==r?void 0:r.event)&&void 0!==o?o:s(e)?e:{},[2,g(e,t,_object_spread_props(_object_spread({},r),{consent:a,event:c}),n)]):[2]})})()},O=function(e){var t=(e.startsWith(Y)?e.slice(5):e).split(".");return t.some(function(e){return""===e})?[]:t},j=function(e){return"function"==typeof e},S=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e},P=function(e,t){if(-1!==ee.indexOf(t))return!1;for(var r=e;j(r);){if(Object.prototype.hasOwnProperty.call(r,t))return!0;var n=Object.getPrototypeOf(r);if(!j(n)||!j(Object.getPrototypeOf(n)))return!1;r=n}return!1},k=function(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);return!(r&&!r.configurable)||"value"in r&&!0===r.writable},E=function(e,t){var r=e,n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var l=a.value;if(j(r)){if(!P(r,l))return!0;if(!k(r,l))return!1}else if(c(r)){if(!(l in r))return!0}else if(!S(r)||!(l in r))return!1;r=Reflect.get(r,l)}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return j(r)},x=function(e){var t=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e),r=e&&e[X];if(("undefined"==typeof __WALKEROS_OBSERVE__||__WALKEROS_OBSERVE__)&&function(e){if("object"!=(void 0===e?"undefined":_type_of(e))||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;var t=e.paths,r=e.record;return Array.isArray(t)&&t.every(function(e){return"string"==typeof e})&&"function"==typeof r}(r)){delete t[X];var n=function(e,t,r){var n=[],o=[],i=[],a=!0,u=!1,l=void 0;try{for(var s,f=t[Symbol.iterator]();!(a=(s=f.next()).done);a=!0){var p=s.value,_=O(p);if(0!==_.length){var d=_.join(".");i.push({rest:_,fn:d}),E(e,_)||o.push(d)}}}catch(e){u=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(u)throw l}}var y=new WeakMap,v=new WeakSet;function b(e,t){var o=!0,i=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if(r)try{r(l,t)}catch(e){}else n.push({fn:l,args:t,ts:Date.now()})}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}function h(e,t){return 0===t.length||g(e)?e:c(e)&&!t.some(function(t){return t.rest[0]in e})?Promise.resolve(e).then(function(e){return h(e,t)}):j(e)?I(e,[],t):S(e)?m(e,t):e}function g(e){return(S(e)||j(e))&&v.has(e)}function w(e,t){var r=[],n=[],o=!0,i=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;l.rest[0]===t&&(1===l.rest.length?r.includes(l.fn)||r.push(l.fn):n.push({rest:l.rest.slice(1),fn:l.fn}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return{leafs:r,deeper:n}}function m(e,t){var r,n=t.map(function(e){return"".concat(e.fn,":").concat(e.rest.join("."))}).join("|"),o=null!==(r=y.get(e))&&void 0!==r?r:new Map;y.set(e,o);var i=o.get(n);if(i)return i;var a=x(e,t);return o.set(n,a),a}function x(e,t){return j(e)?R(e,t):t.some(function(t){return!k(e,t.rest[0])})?function(e,t){var r=Object.create(Object.getPrototypeOf(e)),n=A(e,t,function(){return o}),o=new Proxy(r,{get:function(e,t){return n.get(t)},set:function(t,r,n){return Reflect.set(e,r,n,e)},has:function(t,r){return Reflect.has(e,r)},ownKeys:function(){return Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(t,r){var n=Reflect.getOwnPropertyDescriptor(e,r);return n&&_object_spread_props(_object_spread({},n),{configurable:!0})},defineProperty:function(t,r,n){return Reflect.defineProperty(e,r,n)},deleteProperty:function(t,r){return Reflect.deleteProperty(e,r)}});return v.add(o),o}(e,t):R(e,t)}function R(e,t){var r=A(e,t,function(){return n}),n=new Proxy(e,{get:function(e,t){return"string"!=typeof t||k(e,t)?r.get(t):Reflect.get(e,t,e)},set:function(e,t,r){return Reflect.set(e,t,r,e)}});return v.add(n),n}function A(e,t,r){var n=new Map;return{get:function(o){var i=Reflect.get(e,o,e);if("string"!=typeof o)return i;if(!j(i)&&!S(i))return i;if(g(i))return i;var a=n.get(o);if(a&&a.value===i)return a.out;var u=w(t,o),c=u.leafs,l=u.deeper;if(!(c.length>0||l.length>0)&&(!j(i)||function(e){if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return i;var s=i;return j(i)?s=I(i,c,l,{proxy:r(),target:e}):l.length>0&&(s=m(i,l)),n.set(o,{value:i,out:s}),s}}}function I(e,t,r,n){var o=function(){return r.filter(function(t){return!P(e,t.rest[0])})},i=new Map,a=new Proxy(e,{get:function(e,t){var n=Reflect.get(e,t,e);if("string"!=typeof t||!k(e,t))return n;if(!P(e,t))return n;var o=w(r,t),u=o.leafs,c=o.deeper;if(0===u.length&&0===c.length)return n;if(g(n))return n;var l=i.get(t);if(l&&l.value===n)return l.out;var s=n;return j(n)?s=I(n,u,c,{proxy:a,target:e}):S(n)&&c.length>0&&(s=m(n,c)),i.set(t,{value:n,out:s}),s},set:function(e,t,r){return Reflect.set(e,t,r,e)},apply:function(e,r,i){b(t,i);var a=!n||r!==n.proxy&&void 0!==r?r:n.target;return h(Reflect.apply(e,a,i),o())},construct:function(e,r,n){b(t,r);var i=Reflect.construct(e,r,n===a?e:n),u=h(i,o());return S(u)||j(u)?u:i}});return v.add(a),a}return{env:x(e,i),calls:n,unresolved:o}}(t,r.paths,r.record).env,o=new Set,i=!0,a=!1,u=void 0;try{for(var l,s=r.paths[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var f=l.value,p=O(f)[0];if(void 0!==p){var _=t[p];null!==_&&"object"==(void 0===_?"undefined":_type_of(_))&&o.add(p)}}}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}var d=Array.from(o,function(e){return[e,n[e]]}),y=!0,v=!1,b=void 0;try{for(var h,g=d[Symbol.iterator]();!(y=(h=g.next()).done);y=!0){var w=_sliced_to_array(h.value,2),m=w[0],x=w[1];t[m]=x}}catch(e){v=!0,b=e}finally{try{y||null==g.return||g.return()}finally{if(v)throw b}}}return t},R=function(e,t){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a=null!=(r=i.document)?r:"undefined"!=typeof document?document:void 0;if(!a)throw new U("Vendor script ".concat(e," has no document to go into"),{code:"vendor-not-ready"});o=function(e,t,r,n,o){var i=function(e,t){var r=e.querySelectorAll("script[".concat(te,"]"));return Array.from(r).find(function(e){return e.getAttribute("src")===t})}(e,t),a=i&&re.get(i);if(a)return a;var u={state:"loading",expired:!1,timeout:r,waiting:[]};if(i&&o())return u.state="loaded",re.set(i,u),u;var c=null!=i?i:e.createElement("script"),l=function(e){var t=u.waiting;u.waiting=[],t.forEach(function(t){return t(e)})},s=setTimeout(function(){u.expired=!0,l("expired")},r);if(re.set(c,u),c.addEventListener("load",function(){clearTimeout(s),u.state="loaded",l("loaded")}),c.addEventListener("error",function(){clearTimeout(s),u.state="failed",l("failed")}),!i){var f=!0,p=!1,_=void 0;try{for(var d,y=Object.entries(n)[Symbol.iterator]();!(f=(d=y.next()).done);f=!0){var v=_sliced_to_array(d.value,2),b=v[0],h=v[1];c.setAttribute(b,h)}}catch(e){p=!0,_=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw _}}c.src=t,c.async=!0,c.setAttribute(te,""),e.head.appendChild(c)}return u}(a,e,function(e){return"number"==typeof e&&e>0?e:1e4}(i.timeout),null!=(n=i.attributes)?n:{},function(){return null!=t()})}var u=function(){var e=t();return null==e?Promise.reject(new U("Vendor not ready: its global is missing",{code:"vendor-not-ready"})):Promise.resolve(e)};return{ready:function(){return o?"failed"===o.state?Promise.reject(ne()):"loaded"===o.state||o.expired?u():new Promise(function(e,t){o.waiting.push(function(r){var n;"failed"===r?t(ne()):"expired"===r?t((n=o.timeout,new U("Vendor script did not load within ".concat(n,"ms"),{code:"vendor-timeout"}))):u().then(e,t)})}):u()},check:function(){if("failed"===(null==o?void 0:o.state))throw ne()}}},A=function(e,t){return R(e.loadScript?ie:void 0,function(){return x(t).window.lintrk},{timeout:e.timeout,document:x(t).document})},I=Object.defineProperty,N=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,K=Object.prototype.hasOwnProperty,T=function(e,t,r){return function(e,t,r){return t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":_type_of(t))?t+"":t,r)},L={};!function(e,t){for(var r in t)I(e,r,{get:t[r],enumerable:!0})}(L,{DestinationLinkedIn:function(){return oe},default:function(){return ue},destinationLinkedIn:function(){return ae}});var M=Object.defineProperty,V=function(e,t){for(var r in t)M(e,r,{get:t[r],enumerable:!0})};V({},{stepId:function(){return e}});V({},{getDestination:function(){return t}});V({},{Level:function(){return q}});var W,q=((W=q||{})[W.ERROR=0]="ERROR",W[W.WARN=1]="WARN",W[W.INFO=2]="INFO",W[W.DEBUG=3]="DEBUG",W);V({},{getTransformer:function(){return r}});V({},{getSource:function(){return n}});V({},{getStore:function(){return o},getStoreValue:function(){return i}});var B="\\$flow\\.(".concat("[a-zA-Z_][a-zA-Z0-9_-]*",")(?:\\.([a-zA-Z0-9_.]+))?");new RegExp("^".concat(B,"$")),new RegExp(B,"g");function G(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,o=0;o<r.length;o++){var i=r[o];if("*"===i&&a(n)){var c=r.slice(o+1).join("."),l=[],f=!0,p=!1,_=void 0;try{for(var d,y=n[Symbol.iterator]();!(f=(d=y.next()).done);f=!0){var v=G(d.value,c,t);l.push(v)}}catch(e){p=!0,_=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw _}}return l}if(void 0===(n=s(n)||a(n)?n[i]:void 0))break}return u(n)?n:t}function z(e){return function(e){return"boolean"==typeof e}(e)||f(e)||l(e)||!u(e)||a(e)&&e.every(z)||s(e)&&Object.values(e).every(z)}var F=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t])).name="FatalError",r&&"cause"in r&&d(n,r.cause),Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}(),C=["transport","timeout","breaker-open","blocked","queue-full","vendor-not-ready","vendor-timeout"],U=function(e){function t(e,r){var n;return _class_call_check(this,t),n=_call_super(this,t,[e]),T(n,"code"),T(n,"status"),T(n,"retryable"),T(n,"body"),void 0!==r.cause&&d(n,r.cause),n.name="StepError",n.code=r.code,void 0!==r.status&&(n.status=r.status),n.retryable=function(e){if(void 0!==e.retryable)return e.retryable;var t=e.status;if(void 0!==t){if(429===t||t>=500&&t<600)return!0;if(t>=400&&t<500)return!1}return C.includes(e.code)}(r),void 0!==r.body&&(n.body=r.body),Object.setPrototypeOf(n,(_instanceof(this,t)?this.constructor:void 0).prototype),n}return _inherits(t,e),t}(_wrap_native_super(Error)),Z=["type","mappingKey"],$=["count","suppressed"],H=["condition","consent","fn","key","loop","map","set","validate","value"];function J(e,t,r,n){return _async_to_generator(function(){return _ts_generator(this,function(o){return[2,(a(t)?t:[t]).reduce(function(t,o){return _async_to_generator(function(){var i,c,l,s,d,y,v,b,w,m,O,j,S,P,k,E,x,R,A,I,N,D,K,T,L;return _ts_generator(this,function(M){switch(M.label){case 0:return[4,t];case 1:return(i=M.sent())?[2,i]:(c=f(o)?{key:o}:o,Object.keys(c).length?H.some(function(e){return e in c})?(l=c.condition,s=c.consent,d=c.fn,y=c.key,v=c.loop,b=c.map,w=c.set,m=c.validate,O=c.value,j=_object_spread_props(_object_spread({},r),{mapping:o}),(S=l)?[4,_(l,function(e){if(_instanceof(e,F))throw e;return h(j,n,"mapping condition failed",e),!1})(e,j)]:[3,3]):[2,void h(_object_spread_props(_object_spread({},r),{mapping:o}),n,"mapping value has no operator (".concat(Object.keys(c).join(", "),"): wrap the fields in map, or use key, value, fn, loop or set"))]:[2]);case 2:S=!M.sent(),M.label=3;case 3:return S?[2]:s&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=!e||0===Object.keys(e).length;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(s,j.consent)?[2,O]:(P=u(O)?O:e,v?(k=_sliced_to_array(v,2),E=k[0],x=k[1],"this"!==E?[3,4]:(A=[e],[3,6])):[3,10]);case 4:return[4,g(e,E,j,n)];case 5:A=M.sent(),M.label=6;case 6:return a(R=A)?[4,Promise.all(R.map(function(e){return u(e)?g(e,x,j,n):void 0}))]:[3,8];case 7:return I=M.sent().filter(u),[3,9];case 8:I=void 0,M.label=9;case 9:return P=I,[3,21];case 10:return b?[4,Object.entries(b).reduce(function(t,r){var o=_sliced_to_array(r,2),i=o[0],a=o[1];return _async_to_generator(function(){var r,o;return _ts_generator(this,function(c){switch(c.label){case 0:return[4,t];case 1:return r=c.sent(),[4,g(e,a,j,n)];case 2:return o=c.sent(),[2,(u(o)&&(r[i]=o),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return P=M.sent(),[3,20];case 12:return w?[4,Promise.all(w.map(function(t){return J(e,t,j,n)}))]:[3,14];case 13:return N=P=M.sent(),[3,19];case 14:return y?(D=P=G(e,y,O),[3,18]):[3,15];case 15:return(K=d)?[4,_(d,function(e){if(_instanceof(e,F))throw e;h(j,n,"mapping fn failed",e)})(e,j)]:[3,17];case 16:K=P=M.sent(),M.label=17;case 17:D=K,M.label=18;case 18:N=D,M.label=19;case 19:M.label=20;case 20:M.label=21;case 21:return(T=m)?[4,_(m,function(e){if(_instanceof(e,F))throw e;return h(j,n,"mapping validate failed",e),!1})(P,j)]:[3,23];case 22:T=!M.sent(),M.label=23;case 23:return T&&(P=void 0),L=p(P),[2,u(L)?L:p(O)]}})})()},Promise.resolve(void 0))]})})()}var Q,X="observe",Y="call:",ee=["name","length","prototype","arguments","caller"],te="data-walkeros-vendor",re=new WeakMap,ne=function(){return new U("Vendor script failed to load",{code:"vendor-not-loaded"})},oe={},ie="https://snap.licdn.com/li.lms-analytics/insight.min.js",ae={type:"linkedin",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;if(!(null==n?void 0:n.apiKey))throw new U("LinkedIn needs settings.apiKey",{code:"config"});return function(e,t){var r=x(e).window;r._linkedin_partner_id=t;var n=r._linkedin_data_partner_ids||(r._linkedin_data_partner_ids=[]);n.includes(t)||n.push(t)}(r,n.apiKey),function(e){var t=x(e).window;if(!t.lintrk){var r=Object.assign(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(r.q||(r.q=[])).push(t)},{q:[]});t.lintrk=r}}(r),A(t,r),t},push:function(e,t){return _async_to_generator(function(e,t){var r,n,o,i,a,u,c,p;return _ts_generator(this,function(_){switch(_.label){case 0:if(r=t.config,n=t.rule,o=t.env,i=t.collector,A(r,o).check(),!(a=x(o).window.lintrk))throw new U("LinkedIn Insight Tag not ready: lintrk is missing",{code:"vendor-not-ready"});return u=(null==n?void 0:n.settings)||{},!0===(null==n?void 0:n.silent)||void 0===u.conversion?[3,3]:[4,w(e,u.conversion,{collector:i})];case 1:if(c=_.sent(),p=function(e){if(s(e)){var t=e.id,r=e.value,n=e.currency,o=e.eventId,i=l(t)?t:f(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0!==i&&0!==i){var a={conversion_id:i};if(l(r))a.conversion_value=r;else if(f(r)&&""!==r){var u=Number(r);Number.isNaN(u)||(a.conversion_value=u)}return f(n)&&""!==n&&(a.currency=n),f(o)&&""!==o&&(a.event_id=o),a}}}(c),!p)throw new U("LinkedIn conversion mapping resolved to no conversion id",{code:"missing-input"});return[4,y(function(){return a("track",p)},"transport","LinkedIn lintrk call failed")];case 2:_.sent(),_.label=3;case 3:return[2]}})}).apply(this,arguments)},on:function(e,t){var r=t.config,n=t.data,o=t.env;"consent"===e&&s(n)&&r.loadScript&&!0===n.marketing&&A(r,o)}},ue=ae;return Q=L,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,i=!1,a=void 0;try{for(var u,c=function(){var o=u.value;K.call(e,o)||o===r||I(e,o,{get:function(){return t[o]},enumerable:!(n=N(t,o))||n.enumerable})},l=D(t)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)c()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}return e}(I({},"__esModule",{value:!0}),Q)}();
1
+ "use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){asyncGeneratorStep(i,n,o,a,u,"next",e)}function u(e){asyncGeneratorStep(i,n,o,a,u,"throw",e)}a(void 0)})}}function _call_super(e,t,r){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,r||[],_get_prototype_of(e).constructor):t.apply(e,r))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _construct(e,t,r){return _construct=_is_native_reflect_construct()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_set_prototype_of(o,r.prototype),o},_construct.apply(null,arguments)}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _wrap_native_super(e){var t="function"==typeof Map?new Map:void 0;return _wrap_native_super=function(e){if(null===e||!_is_native_function(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _construct(e,arguments,_get_prototype_of(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(r,e)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:c(0)}),u(a,"throw",{value:c(1)}),u(a,"return",{value:c(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Destination=function(){var e=function(e,t){if("collector"===e)return"collector";if(!t)throw new Error("stepId(".concat(e,") requires an id"));return"".concat(e,".").concat(t)},t=function(e,t){var r=e.destinations[t];if(!r)throw new Error("Destination not found: ".concat(t));return r},r=function(e,t){var r=e.transformers[t];if(!r)throw new Error("Transformer not found: ".concat(t));return r},n=function(e,t){var r=e.sources[t];if(!r)throw new Error("Source not found: ".concat(t));return r},o=function(e,t){var r=e.stores[t];if(!r)throw new Error("Store not found: ".concat(t));return r},i=function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,e.get(t)];case 1:return[2,r.sent()]}})})()},a=function(e){return Array.isArray(e)},u=function(e){return void 0!==e},c=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&"then"in e&&"function"==typeof e.then},l=function(e){return"number"==typeof e&&!Number.isNaN(e)},s=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e&&!a(e)&&"[object Object]"===Object.prototype.toString.call(e)},f=function(e){return"string"==typeof e},p=function(e){var t=function(){var e=_object_spread({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),t={};return Object.keys(e).forEach(function(r){e[r]&&(t[r]=!0)}),t}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return e&&0!==Object.keys(e).length?!!Object.keys(e).some(function(r){return e[r]&&t[r]})&&t:t},_=function(e){return F(e)?e:void 0},d=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return _async_to_generator(function(){var n;return _ts_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,i.sent()];case 2:return n=i.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return i.sent(),[7];case 6:return[2]}})})()}},y=function(e,t){Object.defineProperty(e,"cause",{value:t,writable:!0,configurable:!0})},v=function(e,t,r){return _async_to_generator(function(){var n;return _ts_generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return[2,o.sent()];case 2:if(_instanceof(n=o.sent(),Z))throw n;throw new Z(r,{code:t,cause:n});case 3:return[2]}})})()},b=function(e){return e.length>300?e.slice(0,300):e},h=function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"error";if(null==e?void 0:e.causeLog)e.causeLog.report(r,n,o,i);else{var a=function(e,t){var r={step:e.step,code:e.code};void 0!==e.status&&(r.status=e.status);var n=!0,o=!1,i=void 0;try{for(var a,u=$[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var c=a.value;"string"==typeof t[c]&&(r[c]=t[c])}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}var l=!0,f=!1,p=void 0;try{for(var _,d=H[Symbol.iterator]();!(l=(_=d.next()).done);l=!0){var y=_.value;"number"==typeof t[y]&&(r[y]=t[y])}}catch(e){f=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(f)throw p}}"boolean"==typeof t.retryable&&(r.retryable=t.retryable);var v,h="string"==typeof(v=t.event)?v:s(v)&&"string"==typeof v.name?v.name:void 0;void 0!==h&&(r.event=h);var g=function(e){if(void 0!==e)return"string"==typeof e?b(e):_instanceof(e,Error)||s(e)&&"string"==typeof e.message?b(e.message):b(String(e))}(t.error);return void 0!==g&&(r.error=g),r}(r,o);"warn"===i?t.warn(n,a):t.error(n,a)}},g=function(e,t,r,n){var o=e.event.name,i=(null==t?void 0:t.mappingKey)?"mapping.".concat(t.mappingKey):"mapping";h(e.collector,e.logger,{step:i,code:"mapping"},r,_object_spread({},"string"==typeof o?{event:o}:{},(null==t?void 0:t.mappingKey)?{mappingKey:t.mappingKey}:{},void 0!==n?{error:n}:{}))},m=function(e,t,r){return _async_to_generator(function(e){var t,r,n,o,i,c,l,s,f,p,_,y,v,b,h,m=arguments;return _ts_generator(this,function(w){switch(w.label){case 0:if(t=m.length>1&&void 0!==m[1]?m[1]:{},n=m.length>3?m[3]:void 0,!(r=m.length>2?m[2]:void 0).collector)throw new Error("getMappingValue: context.collector is required");i=r.consent||r.collector.consent,c={event:null!==(o=r.event)&&void 0!==o?o:{},mapping:t,collector:r.collector,logger:r.collector.logger,consent:i},l=a(t)?t:[t],s=!0,f=!1,p=void 0,w.label=1;case 1:w.trys.push([1,6,7,8]),_=l[Symbol.iterator](),w.label=2;case 2:return(s=(y=_.next()).done)?[3,5]:(v=y.value,[4,d(Q,function(e){if(_instanceof(e,C))throw e;g(c,n,"mapping value failed",e)})(e,v,_object_spread_props(_object_spread({},c),{mapping:v}),n)]);case 3:if(b=w.sent(),u(b))return[2,b];w.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return h=w.sent(),f=!0,p=h,[3,8];case 7:try{s||null==_.return||_.return()}finally{if(f)throw p}return[7];case 8:return[2]}})}).apply(this,arguments)},w=function(e,t){return _async_to_generator(function(e){var t=arguments;return _ts_generator(this,function(r){return[2,O(e,t.length>1&&void 0!==t[1]?t[1]:{},t.length>2?t[2]:void 0)]})}).apply(this,arguments)},O=function(e,t,r,n){return _async_to_generator(function(){var o,i,a,c;return _ts_generator(this,function(l){return u(e)?(a=s(e)&&e.consent||(null==r?void 0:r.consent)||(null==r||null===(i=r.collector)||void 0===i?void 0:i.consent),c=null!==(o=null==r?void 0:r.event)&&void 0!==o?o:s(e)?e:{},[2,m(e,t,_object_spread_props(_object_spread({},r),{consent:a,event:c}),n)]):[2]})})()},j=function(e){var t=(e.startsWith(ee)?e.slice(5):e).split(".");return t.some(function(e){return""===e})?[]:t},S=function(e){return"function"==typeof e},P=function(e){return"object"==(void 0===e?"undefined":_type_of(e))&&null!==e},k=function(e,t){if(-1!==te.indexOf(t))return!1;for(var r=e;S(r);){if(Object.prototype.hasOwnProperty.call(r,t))return!0;var n=Object.getPrototypeOf(r);if(!S(n)||!S(Object.getPrototypeOf(n)))return!1;r=n}return!1},E=function(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);return!(r&&!r.configurable)||"value"in r&&!0===r.writable},x=function(e,t){var r=e,n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var l=a.value;if(S(r)){if(!k(r,l))return!0;if(!E(r,l))return!1}else if(c(r)){if(!(l in r))return!0}else if(!P(r)||!(l in r))return!1;r=Reflect.get(r,l)}}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return S(r)},R=function(e){var t=_object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e),r=e&&e[Y];if(("undefined"==typeof __WALKEROS_OBSERVE__||__WALKEROS_OBSERVE__)&&function(e){if("object"!=(void 0===e?"undefined":_type_of(e))||null===e)return!1;if(!("paths"in e)||!("record"in e))return!1;var t=e.paths,r=e.record;return Array.isArray(t)&&t.every(function(e){return"string"==typeof e})&&"function"==typeof r}(r)){delete t[Y];var n=function(e,t,r){var n=[],o=[],i=[],a=!0,u=!1,l=void 0;try{for(var s,f=t[Symbol.iterator]();!(a=(s=f.next()).done);a=!0){var p=s.value,_=j(p);if(0!==_.length){var d=_.join(".");i.push({rest:_,fn:d}),x(e,_)||o.push(d)}}}catch(e){u=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(u)throw l}}var y=new WeakMap,v=new WeakSet;function b(e,t){var o=!0,i=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if(r)try{r(l,t)}catch(e){}else n.push({fn:l,args:t,ts:Date.now()})}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}function h(e,t){return 0===t.length||g(e)?e:c(e)&&!t.some(function(t){return t.rest[0]in e})?Promise.resolve(e).then(function(e){return h(e,t)}):S(e)?I(e,[],t):P(e)?w(e,t):e}function g(e){return(P(e)||S(e))&&v.has(e)}function m(e,t){var r=[],n=[],o=!0,i=!1,a=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;l.rest[0]===t&&(1===l.rest.length?r.includes(l.fn)||r.push(l.fn):n.push({rest:l.rest.slice(1),fn:l.fn}))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return{leafs:r,deeper:n}}function w(e,t){var r,n=t.map(function(e){return"".concat(e.fn,":").concat(e.rest.join("."))}).join("|"),o=null!==(r=y.get(e))&&void 0!==r?r:new Map;y.set(e,o);var i=o.get(n);if(i)return i;var a=O(e,t);return o.set(n,a),a}function O(e,t){return S(e)?R(e,t):t.some(function(t){return!E(e,t.rest[0])})?function(e,t){var r=Object.create(Object.getPrototypeOf(e)),n=A(e,t,function(){return o}),o=new Proxy(r,{get:function(e,t){return n.get(t)},set:function(t,r,n){return Reflect.set(e,r,n,e)},has:function(t,r){return Reflect.has(e,r)},ownKeys:function(){return Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(t,r){var n=Reflect.getOwnPropertyDescriptor(e,r);return n&&_object_spread_props(_object_spread({},n),{configurable:!0})},defineProperty:function(t,r,n){return Reflect.defineProperty(e,r,n)},deleteProperty:function(t,r){return Reflect.deleteProperty(e,r)}});return v.add(o),o}(e,t):R(e,t)}function R(e,t){var r=A(e,t,function(){return n}),n=new Proxy(e,{get:function(e,t){return"string"!=typeof t||E(e,t)?r.get(t):Reflect.get(e,t,e)},set:function(e,t,r){return Reflect.set(e,t,r,e)}});return v.add(n),n}function A(e,t,r){var n=new Map;return{get:function(o){var i=Reflect.get(e,o,e);if("string"!=typeof o)return i;if(!S(i)&&!P(i))return i;if(g(i))return i;var a=n.get(o);if(a&&a.value===i)return a.out;var u=m(t,o),c=u.leafs,l=u.deeper;if(!(c.length>0||l.length>0)&&(!S(i)||function(e){if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e)))return i;var s=i;return S(i)?s=I(i,c,l,{proxy:r(),target:e}):l.length>0&&(s=w(i,l)),n.set(o,{value:i,out:s}),s}}}function I(e,t,r,n){var o=function(){return r.filter(function(t){return!k(e,t.rest[0])})},i=new Map,a=new Proxy(e,{get:function(e,t){var n=Reflect.get(e,t,e);if("string"!=typeof t||!E(e,t))return n;if(!k(e,t))return n;var o=m(r,t),u=o.leafs,c=o.deeper;if(0===u.length&&0===c.length)return n;if(g(n))return n;var l=i.get(t);if(l&&l.value===n)return l.out;var s=n;return S(n)?s=I(n,u,c,{proxy:a,target:e}):P(n)&&c.length>0&&(s=w(n,c)),i.set(t,{value:n,out:s}),s},set:function(e,t,r){return Reflect.set(e,t,r,e)},apply:function(e,r,i){b(t,i);var a=!n||r!==n.proxy&&void 0!==r?r:n.target;return h(Reflect.apply(e,a,i),o())},construct:function(e,r,n){b(t,r);var i=Reflect.construct(e,r,n===a?e:n),u=h(i,o());return P(u)||S(u)?u:i}});return v.add(a),a}return{env:O(e,i),calls:n,unresolved:o}}(t,r.paths,r.record).env,o=new Set,i=!0,a=!1,u=void 0;try{for(var l,s=r.paths[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var f=l.value,p=j(f)[0];if(void 0!==p){var _=t[p];null!==_&&"object"==(void 0===_?"undefined":_type_of(_))&&o.add(p)}}}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}var d=Array.from(o,function(e){return[e,n[e]]}),y=!0,v=!1,b=void 0;try{for(var h,g=d[Symbol.iterator]();!(y=(h=g.next()).done);y=!0){var m=_sliced_to_array(h.value,2),w=m[0],O=m[1];t[w]=O}}catch(e){v=!0,b=e}finally{try{y||null==g.return||g.return()}finally{if(v)throw b}}}return t},A=function(e,t){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a=null!=(r=i.document)?r:"undefined"!=typeof document?document:void 0;if(!a)throw new Z("Vendor script ".concat(e," has no document to go into"),{code:"vendor-not-ready"});o=function(e,t,r,n,o){var i=function(e,t){var r=e.querySelectorAll("script[".concat(re,"]"));return Array.from(r).find(function(e){return e.getAttribute("src")===t})}(e,t),a=i&&ne.get(i);if(a)return a;var u={state:"loading",expired:!1,timeout:r,waiting:[]};if(i&&o())return u.state="loaded",ne.set(i,u),u;var c=null!=i?i:e.createElement("script"),l=function(e){var t=u.waiting;u.waiting=[],t.forEach(function(t){return t(e)})},s=setTimeout(function(){u.expired=!0,l("expired")},r);if(ne.set(c,u),c.addEventListener("load",function(){clearTimeout(s),u.state="loaded",l("loaded")}),c.addEventListener("error",function(){clearTimeout(s),u.state="failed",l("failed")}),!i){var f=!0,p=!1,_=void 0;try{for(var d,y=Object.entries(n)[Symbol.iterator]();!(f=(d=y.next()).done);f=!0){var v=_sliced_to_array(d.value,2),b=v[0],h=v[1];c.setAttribute(b,h)}}catch(e){p=!0,_=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw _}}c.src=t,c.async=!0,c.setAttribute(re,""),e.head.appendChild(c)}return u}(a,e,function(e){return"number"==typeof e&&e>0?e:1e4}(i.timeout),null!=(n=i.attributes)?n:{},function(){return null!=t()})}var u=function(){var e=t();return null==e?Promise.reject(new Z("Vendor not ready: its global is missing",{code:"vendor-not-ready"})):Promise.resolve(e)};return{ready:function(){return o?"failed"===o.state?Promise.reject(oe()):"loaded"===o.state||o.expired?u():new Promise(function(e,t){o.waiting.push(function(r){var n;"failed"===r?t(oe()):"expired"===r?t((n=o.timeout,new Z("Vendor script did not load within ".concat(n,"ms"),{code:"vendor-timeout"}))):u().then(e,t)})}):u()},check:function(){if("failed"===(null==o?void 0:o.state))throw oe()}}},I=function(e,t){return A(e.loadScript?ae:void 0,function(){return R(t).window.lintrk},{timeout:e.timeout,document:R(t).document})},N=Object.defineProperty,D=Object.getOwnPropertyDescriptor,K=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,L=function(e,t,r){return function(e,t,r){return t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":_type_of(t))?t+"":t,r)},M={};!function(e,t){for(var r in t)N(e,r,{get:t[r],enumerable:!0})}(M,{DestinationLinkedIn:function(){return ie},default:function(){return ce},destinationLinkedIn:function(){return ue}});var V=Object.defineProperty,W=function(e,t){for(var r in t)V(e,r,{get:t[r],enumerable:!0})};W({},{stepId:function(){return e}});W({},{getDestination:function(){return t}});W({},{Level:function(){return B}});var q,B=((q=B||{})[q.ERROR=0]="ERROR",q[q.WARN=1]="WARN",q[q.INFO=2]="INFO",q[q.DEBUG=3]="DEBUG",q);W({},{getTransformer:function(){return r}});W({},{getSource:function(){return n}});W({},{getStore:function(){return o},getStoreValue:function(){return i}});var G="\\$flow\\.(".concat("[a-zA-Z_][a-zA-Z0-9_-]*",")(?:\\.([a-zA-Z0-9_.]+))?");new RegExp("^".concat(G,"$")),new RegExp(G,"g");function z(e){for(var t=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),n=e,o=0;o<r.length;o++){var i=r[o];if("*"===i&&a(n)){var c=r.slice(o+1).join("."),l=[],f=!0,p=!1,_=void 0;try{for(var d,y=n[Symbol.iterator]();!(f=(d=y.next()).done);f=!0){var v=z(d.value,c,t);l.push(v)}}catch(e){p=!0,_=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw _}}return l}if(void 0===(n=s(n)||a(n)?n[i]:void 0))break}return u(n)?n:t}function F(e){return function(e){return"boolean"==typeof e}(e)||f(e)||l(e)||!u(e)||a(e)&&e.every(F)||s(e)&&Object.values(e).every(F)}var C=function(){function e(t,r){var n;return _class_call_check(this,e),(n=_call_super(this,e,[t])).name="FatalError",r&&"cause"in r&&y(n,r.cause),Object.setPrototypeOf(n,e.prototype),n}return _inherits(e,_wrap_native_super(Error)),e}(),U=["transport","timeout","breaker-open","blocked","queue-full","vendor-not-ready","vendor-timeout"],Z=function(e){function t(e,r){var n;return _class_call_check(this,t),n=_call_super(this,t,[e]),L(n,"code"),L(n,"status"),L(n,"retryable"),L(n,"body"),void 0!==r.cause&&y(n,r.cause),n.name="StepError",n.code=r.code,void 0!==r.status&&(n.status=r.status),n.retryable=function(e){if(void 0!==e.retryable)return e.retryable;var t=e.status;if(void 0!==t){if(429===t||t>=500&&t<600)return!0;if(t>=400&&t<500)return!1}return U.includes(e.code)}(r),void 0!==r.body&&(n.body=r.body),Object.setPrototypeOf(n,(_instanceof(this,t)?this.constructor:void 0).prototype),n}return _inherits(t,e),t}(_wrap_native_super(Error)),$=["type","mappingKey"],H=["count","suppressed"],J=["condition","consent","fn","key","loop","map","set","validate","value"];function Q(e,t,r,n){return _async_to_generator(function(){return _ts_generator(this,function(o){return[2,(a(t)?t:[t]).reduce(function(t,o){return _async_to_generator(function(){var i,c,l,s,y,v,b,h,w,O,j,S,P,k,E,x,R,A,I,N,D,K,T,L,M;return _ts_generator(this,function(V){switch(V.label){case 0:return[4,t];case 1:return(i=V.sent())?[2,i]:(c=f(o)?{key:o}:o,Object.keys(c).length?J.some(function(e){return e in c})?(l=c.condition,s=c.consent,y=c.fn,v=c.key,b=c.loop,h=c.map,w=c.set,O=c.validate,j=c.value,S=_object_spread_props(_object_spread({},r),{mapping:o}),(P=l)?[4,d(l,function(e){if(_instanceof(e,C))throw e;return g(S,n,"mapping condition failed",e),!1})(e,S)]:[3,3]):[2,void g(_object_spread_props(_object_spread({},r),{mapping:o}),n,"mapping value has no operator (".concat(Object.keys(c).join(", "),"): wrap the fields in map, or use key, value, fn, loop or set"))]:[2]);case 2:P=!V.sent(),V.label=3;case 3:return P?[2]:s&&!p(s,S.consent)?[2,j]:(k=u(j)?j:e,b?(E=_sliced_to_array(b,2),x=E[0],R=E[1],"this"!==x?[3,4]:(I=[e],[3,6])):[3,10]);case 4:return[4,m(e,x,S,n)];case 5:I=V.sent(),V.label=6;case 6:return a(A=I)?[4,Promise.all(A.map(function(e){return u(e)?m(e,R,S,n):void 0}))]:[3,8];case 7:return N=V.sent().filter(u),[3,9];case 8:N=void 0,V.label=9;case 9:return k=N,[3,21];case 10:return h?[4,Object.entries(h).reduce(function(t,r){var o=_sliced_to_array(r,2),i=o[0],a=o[1];return _async_to_generator(function(){var r,o;return _ts_generator(this,function(c){switch(c.label){case 0:return[4,t];case 1:return r=c.sent(),[4,m(e,a,S,n)];case 2:return o=c.sent(),[2,(u(o)&&(r[i]=o),r)]}})})()},Promise.resolve({}))]:[3,12];case 11:return k=V.sent(),[3,20];case 12:return w?[4,Promise.all(w.map(function(t){return Q(e,t,S,n)}))]:[3,14];case 13:return D=k=V.sent(),[3,19];case 14:return v?(K=k=z(e,v,j),[3,18]):[3,15];case 15:return(T=y)?[4,d(y,function(e){if(_instanceof(e,C))throw e;g(S,n,"mapping fn failed",e)})(e,S)]:[3,17];case 16:T=k=V.sent(),V.label=17;case 17:K=T,V.label=18;case 18:D=K,V.label=19;case 19:V.label=20;case 20:V.label=21;case 21:return(L=O)?[4,d(O,function(e){if(_instanceof(e,C))throw e;return g(S,n,"mapping validate failed",e),!1})(k,S)]:[3,23];case 22:L=!V.sent(),V.label=23;case 23:return L&&(k=void 0),M=_(k),[2,u(M)?M:_(j)]}})})()},Promise.resolve(void 0))]})})()}var X,Y="observe",ee="call:",te=["name","length","prototype","arguments","caller"],re="data-walkeros-vendor",ne=new WeakMap,oe=function(){return new Z("Vendor script failed to load",{code:"vendor-not-loaded"})},ie={},ae="https://snap.licdn.com/li.lms-analytics/insight.min.js",ue={type:"linkedin",config:{},init:function(e){var t=e.config,r=e.env,n=t.settings;if(!(null==n?void 0:n.apiKey))throw new Z("LinkedIn needs settings.apiKey",{code:"config"});return function(e,t){var r=R(e).window;r._linkedin_partner_id=t;var n=r._linkedin_data_partner_ids||(r._linkedin_data_partner_ids=[]);n.includes(t)||n.push(t)}(r,n.apiKey),function(e){var t=R(e).window;if(!t.lintrk){var r=Object.assign(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(r.q||(r.q=[])).push(t)},{q:[]});t.lintrk=r}}(r),I(t,r),t},push:function(e,t){return _async_to_generator(function(e,t){var r,n,o,i,a,u,c,p;return _ts_generator(this,function(_){switch(_.label){case 0:if(r=t.config,n=t.rule,o=t.env,i=t.collector,I(r,o).check(),!(a=R(o).window.lintrk))throw new Z("LinkedIn Insight Tag not ready: lintrk is missing",{code:"vendor-not-ready"});return u=(null==n?void 0:n.settings)||{},!0===(null==n?void 0:n.silent)||void 0===u.conversion?[3,3]:[4,w(e,u.conversion,{collector:i})];case 1:if(c=_.sent(),p=function(e){if(s(e)){var t=e.id,r=e.value,n=e.currency,o=e.eventId,i=l(t)?t:f(t)&&""!==t&&!Number.isNaN(Number(t))?Number(t):void 0;if(void 0!==i&&0!==i){var a={conversion_id:i};if(l(r))a.conversion_value=r;else if(f(r)&&""!==r){var u=Number(r);Number.isNaN(u)||(a.conversion_value=u)}return f(n)&&""!==n&&(a.currency=n),f(o)&&""!==o&&(a.event_id=o),a}}}(c),!p)throw new Z("LinkedIn conversion mapping resolved to no conversion id",{code:"missing-input"});return[4,v(function(){return a("track",p)},"transport","LinkedIn lintrk call failed")];case 2:_.sent(),_.label=3;case 3:return[2]}})}).apply(this,arguments)},on:function(e,t){var r=t.config,n=t.data,o=t.env;"consent"===e&&s(n)&&r.loadScript&&!0===n.marketing&&I(r,o)}},ce=ue;return X=M,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,i=!1,a=void 0;try{for(var u,c=function(){var o=u.value;T.call(e,o)||o===r||N(e,o,{get:function(){return t[o]},enumerable:!(n=D(t,o))||n.enumerable})},l=K(t)[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)c()}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}return e}(N({},"__esModule",{value:!0}),X)}();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-linkedin",
4
- "version": "4.9.0-next-1793116456867",
4
+ "version": "4.9.0",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -118,11 +118,11 @@
118
118
  "consent": {
119
119
  "functional": true
120
120
  },
121
- "id": "5ee163ba98bc455e",
121
+ "id": "41e0d05f61d6cfbd",
122
122
  "trigger": "test",
123
123
  "entity": "form",
124
124
  "action": "submit",
125
- "timestamp": 1700000105,
125
+ "timestamp": 1700000105000,
126
126
  "timing": 3.14,
127
127
  "source": {
128
128
  "count": 1,
@@ -192,7 +192,7 @@
192
192
  "trigger": "test",
193
193
  "entity": "demo",
194
194
  "action": "request",
195
- "timestamp": 1700000104,
195
+ "timestamp": 1700000104000,
196
196
  "timing": 3.14,
197
197
  "source": {
198
198
  "count": 1,
@@ -267,11 +267,11 @@
267
267
  "consent": {
268
268
  "functional": true
269
269
  },
270
- "id": "809dee8145263c21",
270
+ "id": "9ecec97f14b5082b",
271
271
  "trigger": "test",
272
272
  "entity": "form",
273
273
  "action": "submit",
274
- "timestamp": 1700000106,
274
+ "timestamp": 1700000106000,
275
275
  "timing": 3.14,
276
276
  "source": {
277
277
  "count": 1,
@@ -380,7 +380,7 @@
380
380
  "trigger": "load",
381
381
  "entity": "order",
382
382
  "action": "complete",
383
- "timestamp": 1700000102,
383
+ "timestamp": 1700000102000,
384
384
  "timing": 3.14,
385
385
  "source": {
386
386
  "count": 1,
@@ -464,7 +464,7 @@
464
464
  "trigger": "load",
465
465
  "entity": "page",
466
466
  "action": "view",
467
- "timestamp": 1700000103,
467
+ "timestamp": 1700000103000,
468
468
  "timing": 3.14,
469
469
  "source": {
470
470
  "count": 1,
@@ -580,7 +580,7 @@
580
580
  "trigger": "load",
581
581
  "entity": "order",
582
582
  "action": "complete",
583
- "timestamp": 1700000107,
583
+ "timestamp": 1700000107000,
584
584
  "timing": 3.14,
585
585
  "source": {
586
586
  "count": 1,
@@ -656,11 +656,11 @@
656
656
  "consent": {
657
657
  "functional": true
658
658
  },
659
- "id": "bc44e659b269eb6d",
659
+ "id": "1107565745d82ac4",
660
660
  "trigger": "test",
661
661
  "entity": "form",
662
662
  "action": "submit",
663
- "timestamp": 1700000101,
663
+ "timestamp": 1700000101000,
664
664
  "timing": 3.14,
665
665
  "source": {
666
666
  "count": 1,
@@ -727,7 +727,7 @@
727
727
  "trigger": "load",
728
728
  "entity": "product",
729
729
  "action": "view",
730
- "timestamp": 1700000100,
730
+ "timestamp": 1700000100000,
731
731
  "timing": 3.14,
732
732
  "source": {
733
733
  "count": 1,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-linkedin",
3
3
  "description": "LinkedIn Insight Tag web destination for walkerOS (conversion tracking, retargeting, demographic insights)",
4
- "version": "4.9.0-next-1793116456867",
4
+ "version": "4.9.0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -38,11 +38,11 @@
38
38
  "update": "npx npm-check-updates -u && npm update"
39
39
  },
40
40
  "dependencies": {
41
- "@walkeros/core": "4.9.0-next-1793116456867",
42
- "@walkeros/web-core": "4.9.0-next-1793116456867"
41
+ "@walkeros/core": "4.9.0",
42
+ "@walkeros/web-core": "4.9.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@walkeros/collector": "4.9.0-next-1793116456867"
45
+ "@walkeros/collector": "4.9.0"
46
46
  },
47
47
  "repository": {
48
48
  "url": "git+https://github.com/elbwalker/walkerOS.git",