@walkeros/server-destination-datamanager 2.0.1 → 2.1.1
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/dist/dev.d.mts +12 -218
- package/dist/dev.d.ts +12 -218
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.d.mts +8 -214
- package/dist/examples/index.d.ts +8 -214
- package/dist/examples/index.js +57 -278
- package/dist/examples/index.mjs +56 -275
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/walkerOS.json +176 -379
- package/package.json +4 -4
package/dist/dev.d.mts
CHANGED
|
@@ -1,233 +1,27 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
-
import {
|
|
3
|
-
import { DestinationServer } from '@walkeros/server-core';
|
|
4
|
-
import { OAuth2Client } from 'google-auth-library';
|
|
2
|
+
import { Flow } from '@walkeros/core';
|
|
5
3
|
|
|
6
4
|
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
7
|
-
declare const mapping
|
|
5
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
8
6
|
|
|
7
|
+
declare const schemas_mapping: typeof mapping;
|
|
9
8
|
declare const schemas_settings: typeof settings;
|
|
10
9
|
declare namespace schemas {
|
|
11
|
-
export {
|
|
10
|
+
export { schemas_mapping as mapping, schemas_settings as settings };
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* Service account credentials (client_email + private_key)
|
|
17
|
-
* Recommended for serverless environments (AWS Lambda, Docker, etc.)
|
|
18
|
-
*/
|
|
19
|
-
credentials?: {
|
|
20
|
-
client_email: string;
|
|
21
|
-
private_key: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Path to service account JSON file
|
|
25
|
-
* For local development or environments with filesystem access
|
|
26
|
-
*/
|
|
27
|
-
keyFilename?: string;
|
|
28
|
-
/**
|
|
29
|
-
* OAuth scopes for Data Manager API
|
|
30
|
-
* @default ['https://www.googleapis.com/auth/datamanager']
|
|
31
|
-
*/
|
|
32
|
-
scopes?: string[];
|
|
33
|
-
/** Array of destination accounts and conversion actions/user lists */
|
|
34
|
-
destinations: Destination[];
|
|
35
|
-
/** Event source for all events. Defaults to WEB if not specified */
|
|
36
|
-
eventSource?: EventSource;
|
|
37
|
-
/** Maximum number of events to batch before sending (max 2000) */
|
|
38
|
-
batchSize?: number;
|
|
39
|
-
/** Time in milliseconds to wait before auto-flushing batch */
|
|
40
|
-
batchInterval?: number;
|
|
41
|
-
/** If true, validate request without ingestion (testing mode) */
|
|
42
|
-
validateOnly?: boolean;
|
|
43
|
-
/** Override API endpoint (for testing) */
|
|
44
|
-
url?: string;
|
|
45
|
-
/** Request-level consent for all events */
|
|
46
|
-
consent?: Consent;
|
|
47
|
-
/** Test event code for debugging (optional) */
|
|
48
|
-
testEventCode?: string;
|
|
49
|
-
/** Guided helpers: User data mapping (applies to all events) */
|
|
50
|
-
userData?: Mapping$1.Map;
|
|
51
|
-
/** Guided helper: First-party user ID */
|
|
52
|
-
userId?: Mapping$1.Value;
|
|
53
|
-
/** Guided helper: GA4 client ID */
|
|
54
|
-
clientId?: Mapping$1.Value;
|
|
55
|
-
/** Guided helper: Privacy-safe attribution (Google's sessionAttributes) */
|
|
56
|
-
sessionAttributes?: Mapping$1.Value;
|
|
57
|
-
/** Consent mapping: Map consent field to adUserData (string = field name, boolean = static value) */
|
|
58
|
-
consentAdUserData?: string | boolean;
|
|
59
|
-
/** Consent mapping: Map consent field to adPersonalization (string = field name, boolean = static value) */
|
|
60
|
-
consentAdPersonalization?: string | boolean;
|
|
61
|
-
}
|
|
62
|
-
interface Mapping {
|
|
63
|
-
gclid?: Mapping$1.Value;
|
|
64
|
-
gbraid?: Mapping$1.Value;
|
|
65
|
-
wbraid?: Mapping$1.Value;
|
|
66
|
-
sessionAttributes?: Mapping$1.Value;
|
|
67
|
-
}
|
|
68
|
-
interface Env extends DestinationServer.Env {
|
|
69
|
-
fetch?: typeof fetch;
|
|
70
|
-
authClient?: OAuth2Client | null;
|
|
71
|
-
}
|
|
72
|
-
type InitSettings = Partial<Settings>;
|
|
73
|
-
type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
|
|
74
|
-
type Config = {
|
|
75
|
-
settings: Settings;
|
|
76
|
-
} & DestinationServer.Config<Types>;
|
|
77
|
-
type Rule = Mapping$1.Rule<Mapping>;
|
|
78
|
-
/**
|
|
79
|
-
* Destination account and product identifier
|
|
80
|
-
* https://developers.google.com/data-manager/api/reference/rest/v1/Destination
|
|
81
|
-
*/
|
|
82
|
-
interface Destination {
|
|
83
|
-
/** Reference identifier for this destination */
|
|
84
|
-
reference?: string;
|
|
85
|
-
/** Login account (account initiating the request) */
|
|
86
|
-
loginAccount?: ProductAccount;
|
|
87
|
-
/** Linked account (child account linked to login account) */
|
|
88
|
-
linkedAccount?: ProductAccount;
|
|
89
|
-
/** Operating account (account where data is sent) */
|
|
90
|
-
operatingAccount?: ProductAccount;
|
|
91
|
-
/** Product-specific destination ID (conversion action or user list) */
|
|
92
|
-
productDestinationId?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Product account information
|
|
96
|
-
*/
|
|
97
|
-
interface ProductAccount {
|
|
98
|
-
/** Account ID (e.g., "123-456-7890" for Google Ads) */
|
|
99
|
-
accountId: string;
|
|
100
|
-
/** Type of account */
|
|
101
|
-
accountType: AccountType;
|
|
102
|
-
}
|
|
103
|
-
type AccountType = 'ACCOUNT_TYPE_UNSPECIFIED' | 'GOOGLE_ADS' | 'DISPLAY_VIDEO_ADVERTISER' | 'DISPLAY_VIDEO_PARTNER' | 'GOOGLE_ANALYTICS_PROPERTY' | 'DATA_PARTNER';
|
|
104
|
-
type EventSource = 'WEB' | 'APP' | 'IN_STORE' | 'PHONE' | 'OTHER';
|
|
105
|
-
/**
|
|
106
|
-
* Consent for Digital Markets Act (DMA) compliance
|
|
107
|
-
* https://developers.google.com/data-manager/api/devguides/concepts/dma
|
|
108
|
-
*/
|
|
109
|
-
interface Consent {
|
|
110
|
-
/** Consent for data collection and use */
|
|
111
|
-
adUserData?: ConsentStatus;
|
|
112
|
-
/** Consent for ad personalization */
|
|
113
|
-
adPersonalization?: ConsentStatus;
|
|
114
|
-
}
|
|
115
|
-
type ConsentStatus = 'CONSENT_GRANTED' | 'CONSENT_DENIED';
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* AWS Lambda / Serverless Configuration
|
|
119
|
-
* Uses inline credentials from environment variables
|
|
120
|
-
* Best for: AWS Lambda, Docker, Kubernetes, any serverless environment
|
|
121
|
-
*/
|
|
122
|
-
declare const awsLambda: Config;
|
|
123
|
-
/**
|
|
124
|
-
* GCP Cloud Functions / Cloud Run Configuration
|
|
125
|
-
* Uses Application Default Credentials (ADC) - no explicit auth config needed
|
|
126
|
-
* Best for: Google Cloud Functions, Cloud Run, GCE, GKE
|
|
127
|
-
*/
|
|
128
|
-
declare const gcpCloudFunctions: Config;
|
|
129
|
-
/**
|
|
130
|
-
* Local Development Configuration
|
|
131
|
-
* Uses service account JSON file
|
|
132
|
-
* Best for: Local development, testing
|
|
133
|
-
*/
|
|
134
|
-
declare const localDevelopment: Config;
|
|
135
|
-
/**
|
|
136
|
-
* Docker / Kubernetes Configuration
|
|
137
|
-
* Uses ADC via GOOGLE_APPLICATION_CREDENTIALS environment variable
|
|
138
|
-
* Best for: Docker containers, Kubernetes pods
|
|
139
|
-
*
|
|
140
|
-
* Setup:
|
|
141
|
-
* 1. Mount service account JSON as secret/configmap
|
|
142
|
-
* 2. Set GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
|
|
143
|
-
* 3. ADC will automatically use it
|
|
144
|
-
*/
|
|
145
|
-
declare const dockerKubernetes: Config;
|
|
146
|
-
/**
|
|
147
|
-
* Custom Scopes Configuration
|
|
148
|
-
* For specific use cases requiring different OAuth scopes
|
|
149
|
-
*/
|
|
150
|
-
declare const customScopes: Config;
|
|
151
|
-
|
|
152
|
-
declare const auth_awsLambda: typeof awsLambda;
|
|
153
|
-
declare const auth_customScopes: typeof customScopes;
|
|
154
|
-
declare const auth_dockerKubernetes: typeof dockerKubernetes;
|
|
155
|
-
declare const auth_gcpCloudFunctions: typeof gcpCloudFunctions;
|
|
156
|
-
declare const auth_localDevelopment: typeof localDevelopment;
|
|
157
|
-
declare namespace auth {
|
|
158
|
-
export { auth_awsLambda as awsLambda, auth_customScopes as customScopes, auth_dockerKubernetes as dockerKubernetes, auth_gcpCloudFunctions as gcpCloudFunctions, auth_localDevelopment as localDevelopment };
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Minimal configuration for Google Data Manager with inline credentials
|
|
163
|
-
*/
|
|
164
|
-
declare const minimal: Config;
|
|
165
|
-
/**
|
|
166
|
-
* Complete configuration with all options
|
|
167
|
-
*/
|
|
168
|
-
declare const complete: Config;
|
|
169
|
-
/**
|
|
170
|
-
* GA4-specific configuration using Application Default Credentials
|
|
171
|
-
*/
|
|
172
|
-
declare const ga4: Config;
|
|
173
|
-
/**
|
|
174
|
-
* Debug configuration with logging enabled using keyFilename
|
|
175
|
-
*/
|
|
176
|
-
declare const debug: Config;
|
|
177
|
-
|
|
178
|
-
declare const basic_complete: typeof complete;
|
|
179
|
-
declare const basic_debug: typeof debug;
|
|
180
|
-
declare const basic_ga4: typeof ga4;
|
|
181
|
-
declare const basic_minimal: typeof minimal;
|
|
182
|
-
declare namespace basic {
|
|
183
|
-
export { basic_complete as complete, basic_debug as debug, basic_ga4 as ga4, basic_minimal as minimal };
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Purchase event mapping for Google Ads conversion
|
|
188
|
-
*/
|
|
189
|
-
declare const Purchase: Rule;
|
|
190
|
-
/**
|
|
191
|
-
* Lead event mapping
|
|
192
|
-
*/
|
|
193
|
-
declare const Lead: Rule;
|
|
194
|
-
/**
|
|
195
|
-
* Page view mapping for GA4
|
|
196
|
-
*/
|
|
197
|
-
declare const PageView: Rule;
|
|
198
|
-
/**
|
|
199
|
-
* Complete mapping configuration
|
|
200
|
-
*/
|
|
201
|
-
declare const mapping: {
|
|
202
|
-
order: {
|
|
203
|
-
complete: Rule;
|
|
204
|
-
};
|
|
205
|
-
lead: {
|
|
206
|
-
submit: Rule;
|
|
207
|
-
};
|
|
208
|
-
page: {
|
|
209
|
-
view: Rule;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* User data mapping configuration
|
|
214
|
-
* Maps walkerOS user properties to Data Manager user identifiers
|
|
215
|
-
*/
|
|
216
|
-
declare const userDataMapping: Config;
|
|
13
|
+
declare const purchase: Flow.StepExample;
|
|
14
|
+
declare const lead: Flow.StepExample;
|
|
217
15
|
|
|
218
|
-
declare const
|
|
219
|
-
declare const
|
|
220
|
-
declare
|
|
221
|
-
|
|
222
|
-
declare const mapping$1_userDataMapping: typeof userDataMapping;
|
|
223
|
-
declare namespace mapping$1 {
|
|
224
|
-
export { mapping$1_Lead as Lead, mapping$1_PageView as PageView, mapping$1_Purchase as Purchase, mapping$1_mapping as mapping, mapping$1_userDataMapping as userDataMapping };
|
|
16
|
+
declare const step_lead: typeof lead;
|
|
17
|
+
declare const step_purchase: typeof purchase;
|
|
18
|
+
declare namespace step {
|
|
19
|
+
export { step_lead as lead, step_purchase as purchase };
|
|
225
20
|
}
|
|
226
21
|
|
|
227
|
-
declare const
|
|
228
|
-
declare const index_basic: typeof basic;
|
|
22
|
+
declare const index_step: typeof step;
|
|
229
23
|
declare namespace index {
|
|
230
|
-
export {
|
|
24
|
+
export { index_step as step };
|
|
231
25
|
}
|
|
232
26
|
|
|
233
27
|
export { index as examples, schemas };
|
package/dist/dev.d.ts
CHANGED
|
@@ -1,233 +1,27 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
-
import {
|
|
3
|
-
import { DestinationServer } from '@walkeros/server-core';
|
|
4
|
-
import { OAuth2Client } from 'google-auth-library';
|
|
2
|
+
import { Flow } from '@walkeros/core';
|
|
5
3
|
|
|
6
4
|
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
7
|
-
declare const mapping
|
|
5
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
8
6
|
|
|
7
|
+
declare const schemas_mapping: typeof mapping;
|
|
9
8
|
declare const schemas_settings: typeof settings;
|
|
10
9
|
declare namespace schemas {
|
|
11
|
-
export {
|
|
10
|
+
export { schemas_mapping as mapping, schemas_settings as settings };
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* Service account credentials (client_email + private_key)
|
|
17
|
-
* Recommended for serverless environments (AWS Lambda, Docker, etc.)
|
|
18
|
-
*/
|
|
19
|
-
credentials?: {
|
|
20
|
-
client_email: string;
|
|
21
|
-
private_key: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Path to service account JSON file
|
|
25
|
-
* For local development or environments with filesystem access
|
|
26
|
-
*/
|
|
27
|
-
keyFilename?: string;
|
|
28
|
-
/**
|
|
29
|
-
* OAuth scopes for Data Manager API
|
|
30
|
-
* @default ['https://www.googleapis.com/auth/datamanager']
|
|
31
|
-
*/
|
|
32
|
-
scopes?: string[];
|
|
33
|
-
/** Array of destination accounts and conversion actions/user lists */
|
|
34
|
-
destinations: Destination[];
|
|
35
|
-
/** Event source for all events. Defaults to WEB if not specified */
|
|
36
|
-
eventSource?: EventSource;
|
|
37
|
-
/** Maximum number of events to batch before sending (max 2000) */
|
|
38
|
-
batchSize?: number;
|
|
39
|
-
/** Time in milliseconds to wait before auto-flushing batch */
|
|
40
|
-
batchInterval?: number;
|
|
41
|
-
/** If true, validate request without ingestion (testing mode) */
|
|
42
|
-
validateOnly?: boolean;
|
|
43
|
-
/** Override API endpoint (for testing) */
|
|
44
|
-
url?: string;
|
|
45
|
-
/** Request-level consent for all events */
|
|
46
|
-
consent?: Consent;
|
|
47
|
-
/** Test event code for debugging (optional) */
|
|
48
|
-
testEventCode?: string;
|
|
49
|
-
/** Guided helpers: User data mapping (applies to all events) */
|
|
50
|
-
userData?: Mapping$1.Map;
|
|
51
|
-
/** Guided helper: First-party user ID */
|
|
52
|
-
userId?: Mapping$1.Value;
|
|
53
|
-
/** Guided helper: GA4 client ID */
|
|
54
|
-
clientId?: Mapping$1.Value;
|
|
55
|
-
/** Guided helper: Privacy-safe attribution (Google's sessionAttributes) */
|
|
56
|
-
sessionAttributes?: Mapping$1.Value;
|
|
57
|
-
/** Consent mapping: Map consent field to adUserData (string = field name, boolean = static value) */
|
|
58
|
-
consentAdUserData?: string | boolean;
|
|
59
|
-
/** Consent mapping: Map consent field to adPersonalization (string = field name, boolean = static value) */
|
|
60
|
-
consentAdPersonalization?: string | boolean;
|
|
61
|
-
}
|
|
62
|
-
interface Mapping {
|
|
63
|
-
gclid?: Mapping$1.Value;
|
|
64
|
-
gbraid?: Mapping$1.Value;
|
|
65
|
-
wbraid?: Mapping$1.Value;
|
|
66
|
-
sessionAttributes?: Mapping$1.Value;
|
|
67
|
-
}
|
|
68
|
-
interface Env extends DestinationServer.Env {
|
|
69
|
-
fetch?: typeof fetch;
|
|
70
|
-
authClient?: OAuth2Client | null;
|
|
71
|
-
}
|
|
72
|
-
type InitSettings = Partial<Settings>;
|
|
73
|
-
type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
|
|
74
|
-
type Config = {
|
|
75
|
-
settings: Settings;
|
|
76
|
-
} & DestinationServer.Config<Types>;
|
|
77
|
-
type Rule = Mapping$1.Rule<Mapping>;
|
|
78
|
-
/**
|
|
79
|
-
* Destination account and product identifier
|
|
80
|
-
* https://developers.google.com/data-manager/api/reference/rest/v1/Destination
|
|
81
|
-
*/
|
|
82
|
-
interface Destination {
|
|
83
|
-
/** Reference identifier for this destination */
|
|
84
|
-
reference?: string;
|
|
85
|
-
/** Login account (account initiating the request) */
|
|
86
|
-
loginAccount?: ProductAccount;
|
|
87
|
-
/** Linked account (child account linked to login account) */
|
|
88
|
-
linkedAccount?: ProductAccount;
|
|
89
|
-
/** Operating account (account where data is sent) */
|
|
90
|
-
operatingAccount?: ProductAccount;
|
|
91
|
-
/** Product-specific destination ID (conversion action or user list) */
|
|
92
|
-
productDestinationId?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Product account information
|
|
96
|
-
*/
|
|
97
|
-
interface ProductAccount {
|
|
98
|
-
/** Account ID (e.g., "123-456-7890" for Google Ads) */
|
|
99
|
-
accountId: string;
|
|
100
|
-
/** Type of account */
|
|
101
|
-
accountType: AccountType;
|
|
102
|
-
}
|
|
103
|
-
type AccountType = 'ACCOUNT_TYPE_UNSPECIFIED' | 'GOOGLE_ADS' | 'DISPLAY_VIDEO_ADVERTISER' | 'DISPLAY_VIDEO_PARTNER' | 'GOOGLE_ANALYTICS_PROPERTY' | 'DATA_PARTNER';
|
|
104
|
-
type EventSource = 'WEB' | 'APP' | 'IN_STORE' | 'PHONE' | 'OTHER';
|
|
105
|
-
/**
|
|
106
|
-
* Consent for Digital Markets Act (DMA) compliance
|
|
107
|
-
* https://developers.google.com/data-manager/api/devguides/concepts/dma
|
|
108
|
-
*/
|
|
109
|
-
interface Consent {
|
|
110
|
-
/** Consent for data collection and use */
|
|
111
|
-
adUserData?: ConsentStatus;
|
|
112
|
-
/** Consent for ad personalization */
|
|
113
|
-
adPersonalization?: ConsentStatus;
|
|
114
|
-
}
|
|
115
|
-
type ConsentStatus = 'CONSENT_GRANTED' | 'CONSENT_DENIED';
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* AWS Lambda / Serverless Configuration
|
|
119
|
-
* Uses inline credentials from environment variables
|
|
120
|
-
* Best for: AWS Lambda, Docker, Kubernetes, any serverless environment
|
|
121
|
-
*/
|
|
122
|
-
declare const awsLambda: Config;
|
|
123
|
-
/**
|
|
124
|
-
* GCP Cloud Functions / Cloud Run Configuration
|
|
125
|
-
* Uses Application Default Credentials (ADC) - no explicit auth config needed
|
|
126
|
-
* Best for: Google Cloud Functions, Cloud Run, GCE, GKE
|
|
127
|
-
*/
|
|
128
|
-
declare const gcpCloudFunctions: Config;
|
|
129
|
-
/**
|
|
130
|
-
* Local Development Configuration
|
|
131
|
-
* Uses service account JSON file
|
|
132
|
-
* Best for: Local development, testing
|
|
133
|
-
*/
|
|
134
|
-
declare const localDevelopment: Config;
|
|
135
|
-
/**
|
|
136
|
-
* Docker / Kubernetes Configuration
|
|
137
|
-
* Uses ADC via GOOGLE_APPLICATION_CREDENTIALS environment variable
|
|
138
|
-
* Best for: Docker containers, Kubernetes pods
|
|
139
|
-
*
|
|
140
|
-
* Setup:
|
|
141
|
-
* 1. Mount service account JSON as secret/configmap
|
|
142
|
-
* 2. Set GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
|
|
143
|
-
* 3. ADC will automatically use it
|
|
144
|
-
*/
|
|
145
|
-
declare const dockerKubernetes: Config;
|
|
146
|
-
/**
|
|
147
|
-
* Custom Scopes Configuration
|
|
148
|
-
* For specific use cases requiring different OAuth scopes
|
|
149
|
-
*/
|
|
150
|
-
declare const customScopes: Config;
|
|
151
|
-
|
|
152
|
-
declare const auth_awsLambda: typeof awsLambda;
|
|
153
|
-
declare const auth_customScopes: typeof customScopes;
|
|
154
|
-
declare const auth_dockerKubernetes: typeof dockerKubernetes;
|
|
155
|
-
declare const auth_gcpCloudFunctions: typeof gcpCloudFunctions;
|
|
156
|
-
declare const auth_localDevelopment: typeof localDevelopment;
|
|
157
|
-
declare namespace auth {
|
|
158
|
-
export { auth_awsLambda as awsLambda, auth_customScopes as customScopes, auth_dockerKubernetes as dockerKubernetes, auth_gcpCloudFunctions as gcpCloudFunctions, auth_localDevelopment as localDevelopment };
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Minimal configuration for Google Data Manager with inline credentials
|
|
163
|
-
*/
|
|
164
|
-
declare const minimal: Config;
|
|
165
|
-
/**
|
|
166
|
-
* Complete configuration with all options
|
|
167
|
-
*/
|
|
168
|
-
declare const complete: Config;
|
|
169
|
-
/**
|
|
170
|
-
* GA4-specific configuration using Application Default Credentials
|
|
171
|
-
*/
|
|
172
|
-
declare const ga4: Config;
|
|
173
|
-
/**
|
|
174
|
-
* Debug configuration with logging enabled using keyFilename
|
|
175
|
-
*/
|
|
176
|
-
declare const debug: Config;
|
|
177
|
-
|
|
178
|
-
declare const basic_complete: typeof complete;
|
|
179
|
-
declare const basic_debug: typeof debug;
|
|
180
|
-
declare const basic_ga4: typeof ga4;
|
|
181
|
-
declare const basic_minimal: typeof minimal;
|
|
182
|
-
declare namespace basic {
|
|
183
|
-
export { basic_complete as complete, basic_debug as debug, basic_ga4 as ga4, basic_minimal as minimal };
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Purchase event mapping for Google Ads conversion
|
|
188
|
-
*/
|
|
189
|
-
declare const Purchase: Rule;
|
|
190
|
-
/**
|
|
191
|
-
* Lead event mapping
|
|
192
|
-
*/
|
|
193
|
-
declare const Lead: Rule;
|
|
194
|
-
/**
|
|
195
|
-
* Page view mapping for GA4
|
|
196
|
-
*/
|
|
197
|
-
declare const PageView: Rule;
|
|
198
|
-
/**
|
|
199
|
-
* Complete mapping configuration
|
|
200
|
-
*/
|
|
201
|
-
declare const mapping: {
|
|
202
|
-
order: {
|
|
203
|
-
complete: Rule;
|
|
204
|
-
};
|
|
205
|
-
lead: {
|
|
206
|
-
submit: Rule;
|
|
207
|
-
};
|
|
208
|
-
page: {
|
|
209
|
-
view: Rule;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* User data mapping configuration
|
|
214
|
-
* Maps walkerOS user properties to Data Manager user identifiers
|
|
215
|
-
*/
|
|
216
|
-
declare const userDataMapping: Config;
|
|
13
|
+
declare const purchase: Flow.StepExample;
|
|
14
|
+
declare const lead: Flow.StepExample;
|
|
217
15
|
|
|
218
|
-
declare const
|
|
219
|
-
declare const
|
|
220
|
-
declare
|
|
221
|
-
|
|
222
|
-
declare const mapping$1_userDataMapping: typeof userDataMapping;
|
|
223
|
-
declare namespace mapping$1 {
|
|
224
|
-
export { mapping$1_Lead as Lead, mapping$1_PageView as PageView, mapping$1_Purchase as Purchase, mapping$1_mapping as mapping, mapping$1_userDataMapping as userDataMapping };
|
|
16
|
+
declare const step_lead: typeof lead;
|
|
17
|
+
declare const step_purchase: typeof purchase;
|
|
18
|
+
declare namespace step {
|
|
19
|
+
export { step_lead as lead, step_purchase as purchase };
|
|
225
20
|
}
|
|
226
21
|
|
|
227
|
-
declare const
|
|
228
|
-
declare const index_basic: typeof basic;
|
|
22
|
+
declare const index_step: typeof step;
|
|
229
23
|
declare namespace index {
|
|
230
|
-
export {
|
|
24
|
+
export { index_step as step };
|
|
231
25
|
}
|
|
232
26
|
|
|
233
27
|
export { index as examples, schemas };
|
package/dist/dev.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o=(e,a)=>{for(var r in a)t(e,r,{get:a[r],enumerable:!0})},i={};o(i,{examples:()=>I,schemas:()=>s}),module.exports=(e=i,((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of r(o))n.call(e,c)||c===i||t(e,c,{get:()=>o[c],enumerable:!(s=a(o,c))||s.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s={};o(s,{mapping:()=>O,settings:()=>E});var c=require("@walkeros/core/dev"),l=c.z.enum(["GOOGLE_ADS","DISPLAY_VIDEO_ADVERTISER","DISPLAY_VIDEO_PARTNER","GOOGLE_ANALYTICS_PROPERTY"]),d=c.z.enum(["WEB","APP","IN_STORE","PHONE","OTHER"]),u=c.z.enum(["CONSENT_GRANTED","CONSENT_DENIED"]),p=c.z.object({adUserData:u.describe("Consent for data collection and use").optional(),adPersonalization:u.describe("Consent for ad personalization").optional()}),m=c.z.object({accountId:c.z.string().min(1).describe('Account ID (e.g., "123-456-7890" for Google Ads)'),accountType:l.describe("Type of account")}),v=c.z.object({operatingAccount:m.describe("Operating account details"),productDestinationId:c.z.string().min(1).describe("Product-specific destination ID (conversion action or user list)")}),b=require("@walkeros/core/dev"),g=b.z.object({client_email:b.z.string().email().describe("Service account email"),private_key:b.z.string().min(1).describe("Service account private key (PEM format)")}),f=b.z.object({credentials:g.optional().describe("Service account credentials (client_email + private_key). Recommended for serverless environments."),keyFilename:b.z.string().optional().describe("Path to service account JSON file. For local development or environments with filesystem access."),scopes:b.z.array(b.z.string()).optional().describe("OAuth scopes for Data Manager API. Defaults to datamanager scope."),destinations:b.z.array(v).min(1).max(10).describe("Array of destination accounts and conversion actions/user lists (max 10)"),eventSource:d.optional().default("WEB").describe("Event source for all events. Defaults to WEB. Values: WEB, APP, IN_STORE, PHONE, OTHER"),batchSize:b.z.number().int().min(1).max(2e3).describe("Maximum number of events to batch before sending (max 2000, like 100)").optional(),batchInterval:b.z.number().int().min(0).describe("Time in milliseconds to wait before auto-flushing batch (like 5000)").optional(),validateOnly:b.z.boolean().describe("If true, validate request without ingestion (testing mode)").optional(),url:b.z.string().url().describe("Override API endpoint for testing (like https://datamanager.googleapis.com/v1)").optional(),consent:p.describe("Request-level consent for all events").optional(),testEventCode:b.z.string().describe("Test event code for debugging (like TEST12345)").optional(),logLevel:b.z.enum(["debug","info","warn","error","none"]).describe("Log level for debugging (debug shows all API calls)").optional(),userData:b.z.record(b.z.string(),b.z.unknown()).describe("Guided helper: User data mapping for all events (like { email: 'user.id', phone: 'data.phone' })").optional(),userId:b.z.any().describe("Guided helper: First-party user ID for all events (like 'user.id')").optional(),clientId:b.z.any().describe("Guided helper: GA4 client ID for all events (like 'user.device')").optional(),sessionAttributes:b.z.any().describe("Guided helper: Privacy-safe attribution for all events (like 'context.sessionAttributes')").optional(),consentAdUserData:b.z.union([b.z.string(),b.z.boolean()]).describe("Consent mapping: Field name from event.consent (like 'marketing') or static boolean value").optional(),consentAdPersonalization:b.z.union([b.z.string(),b.z.boolean()]).describe("Consent mapping: Field name from event.consent (like 'targeting') or static boolean value").optional()}),z=require("@walkeros/core/dev").z.object({}),y=require("@walkeros/core/dev"),E=(0,y.zodToSchema)(f),O=(0,y.zodToSchema)(z),I={};o(I,{step:()=>h});var h={};o(h,{lead:()=>A,purchase:()=>P});var D=require("@walkeros/core"),P={in:(0,D.getEvent)("order complete",{timestamp:1700001200,data:{id:"ORD-600",total:149.99,currency:"EUR"},user:{id:"user-abc",email:"buyer@example.com"},source:{type:"server",id:"",previous_id:""}}),mapping:{name:"purchase",data:{map:{transactionId:"data.id",conversionValue:"data.total",currency:{key:"data.currency",value:"USD"},eventName:{value:"purchase"},userId:"user.id",email:"user.id"}}},out:{events:[{transactionId:"ORD-600",eventName:"purchase",eventSource:"WEB",conversionValue:149.99,currency:"EUR",userId:"user-abc",email:"buyer@example.com"}]}},A={in:(0,D.getEvent)("form submit",{timestamp:1700001201,data:{type:"demo-request"},user:{email:"prospect@example.com"},source:{type:"server",id:"",previous_id:""}}),mapping:{name:"generate_lead",data:{map:{eventName:{value:"generate_lead"},conversionValue:{value:10},currency:{value:"USD"}}}},out:{events:[{transactionId:"1700001201-gr0up-1",eventName:"generate_lead",eventSource:"WEB",email:"prospect@example.com"}]}};//# sourceMappingURL=dev.js.map
|
package/dist/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/dev.ts","../src/schemas.ts","../src/schemas/primitives.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/schemas/index.ts","../src/examples/index.ts","../src/examples/auth.ts","../src/examples/basic.ts","../src/examples/mapping.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","// Browser-safe schema-only exports\n// This file exports ONLY schemas without any Node.js dependencies\nexport { settings, mapping } from './schemas/index';\n","import { z } from '@walkeros/core/dev';\n\nexport const AccountTypeSchema = z.enum([\n 'GOOGLE_ADS',\n 'DISPLAY_VIDEO_ADVERTISER',\n 'DISPLAY_VIDEO_PARTNER',\n 'GOOGLE_ANALYTICS_PROPERTY',\n]);\n\nexport const EventSourceSchema = z.enum([\n 'WEB',\n 'APP',\n 'IN_STORE',\n 'PHONE',\n 'OTHER',\n]);\n\nexport const ConsentStatusSchema = z.enum([\n 'CONSENT_GRANTED',\n 'CONSENT_DENIED',\n]);\n\nexport const ConsentSchema = z.object({\n adUserData: ConsentStatusSchema.describe(\n 'Consent for data collection and use',\n ).optional(),\n adPersonalization: ConsentStatusSchema.describe(\n 'Consent for ad personalization',\n ).optional(),\n});\n\nexport const OperatingAccountSchema = z.object({\n accountId: z\n .string()\n .min(1)\n .describe('Account ID (e.g., \"123-456-7890\" for Google Ads)'),\n accountType: AccountTypeSchema.describe('Type of account'),\n});\n\nexport const DestinationSchema = z.object({\n operatingAccount: OperatingAccountSchema.describe(\n 'Operating account details',\n ),\n productDestinationId: z\n .string()\n .min(1)\n .describe(\n 'Product-specific destination ID (conversion action or user list)',\n ),\n});\n","import { z } from '@walkeros/core/dev';\nimport {\n DestinationSchema,\n EventSourceSchema,\n ConsentSchema,\n} from './primitives';\n\n/**\n * Service account credentials schema\n */\nconst CredentialsSchema = z.object({\n client_email: z.string().email().describe('Service account email'),\n private_key: z\n .string()\n .min(1)\n .describe('Service account private key (PEM format)'),\n});\n\nexport const SettingsSchema = z.object({\n credentials: CredentialsSchema.optional().describe(\n 'Service account credentials (client_email + private_key). Recommended for serverless environments.',\n ),\n keyFilename: z\n .string()\n .optional()\n .describe(\n 'Path to service account JSON file. For local development or environments with filesystem access.',\n ),\n scopes: z\n .array(z.string())\n .optional()\n .describe(\n 'OAuth scopes for Data Manager API. Defaults to datamanager scope.',\n ),\n destinations: z\n .array(DestinationSchema)\n .min(1)\n .max(10)\n .describe(\n 'Array of destination accounts and conversion actions/user lists (max 10)',\n ),\n eventSource: EventSourceSchema.optional()\n .default('WEB')\n .describe(\n 'Event source for all events. Defaults to WEB. Values: WEB, APP, IN_STORE, PHONE, OTHER',\n ),\n batchSize: z\n .number()\n .int()\n .min(1)\n .max(2000)\n .describe(\n 'Maximum number of events to batch before sending (max 2000, like 100)',\n )\n .optional(),\n batchInterval: z\n .number()\n .int()\n .min(0)\n .describe(\n 'Time in milliseconds to wait before auto-flushing batch (like 5000)',\n )\n .optional(),\n validateOnly: z\n .boolean()\n .describe('If true, validate request without ingestion (testing mode)')\n .optional(),\n url: z\n .string()\n .url()\n .describe(\n 'Override API endpoint for testing (like https://datamanager.googleapis.com/v1)',\n )\n .optional(),\n consent: ConsentSchema.describe(\n 'Request-level consent for all events',\n ).optional(),\n testEventCode: z\n .string()\n .describe('Test event code for debugging (like TEST12345)')\n .optional(),\n logLevel: z\n .enum(['debug', 'info', 'warn', 'error', 'none'])\n .describe('Log level for debugging (debug shows all API calls)')\n .optional(),\n userData: z\n .record(z.string(), z.unknown())\n .describe(\n \"Guided helper: User data mapping for all events (like { email: 'user.id', phone: 'data.phone' })\",\n )\n .optional(),\n userId: z\n .any()\n .describe(\n \"Guided helper: First-party user ID for all events (like 'user.id')\",\n )\n .optional(),\n clientId: z\n .any()\n .describe(\n \"Guided helper: GA4 client ID for all events (like 'user.device')\",\n )\n .optional(),\n sessionAttributes: z\n .any()\n .describe(\n \"Guided helper: Privacy-safe attribution for all events (like 'context.sessionAttributes')\",\n )\n .optional(),\n consentAdUserData: z\n .union([z.string(), z.boolean()])\n .describe(\n \"Consent mapping: Field name from event.consent (like 'marketing') or static boolean value\",\n )\n .optional(),\n consentAdPersonalization: z\n .union([z.string(), z.boolean()])\n .describe(\n \"Consent mapping: Field name from event.consent (like 'targeting') or static boolean value\",\n )\n .optional(),\n});\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\n// Data Manager uses flexible mapping via walkerOS mapping system\n// No event-specific mapping schema needed (similar to Meta CAPI pattern)\nexport const MappingSchema = z.object({});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * from './primitives';\nexport * from './settings';\nexport * from './mapping';\n\nimport { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","export * as auth from './auth';\nexport * as basic from './basic';\nexport * as mapping from './mapping';\n","import type { DestinationDataManager } from '..';\n\n/**\n * AWS Lambda / Serverless Configuration\n * Uses inline credentials from environment variables\n * Best for: AWS Lambda, Docker, Kubernetes, any serverless environment\n */\nexport const awsLambda: DestinationDataManager.Config = {\n settings: {\n credentials: {\n client_email: process.env.GOOGLE_CLIENT_EMAIL || '',\n private_key: (process.env.GOOGLE_PRIVATE_KEY || '').replace(/\\\\n/g, '\\n'),\n },\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n\n/**\n * GCP Cloud Functions / Cloud Run Configuration\n * Uses Application Default Credentials (ADC) - no explicit auth config needed\n * Best for: Google Cloud Functions, Cloud Run, GCE, GKE\n */\nexport const gcpCloudFunctions: DestinationDataManager.Config = {\n settings: {\n // No auth config needed - ADC works automatically on GCP!\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n\n/**\n * Local Development Configuration\n * Uses service account JSON file\n * Best for: Local development, testing\n */\nexport const localDevelopment: DestinationDataManager.Config = {\n settings: {\n keyFilename: './service-account.json',\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n\n/**\n * Docker / Kubernetes Configuration\n * Uses ADC via GOOGLE_APPLICATION_CREDENTIALS environment variable\n * Best for: Docker containers, Kubernetes pods\n *\n * Setup:\n * 1. Mount service account JSON as secret/configmap\n * 2. Set GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json\n * 3. ADC will automatically use it\n */\nexport const dockerKubernetes: DestinationDataManager.Config = {\n settings: {\n // No explicit config - ADC uses GOOGLE_APPLICATION_CREDENTIALS env var\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n\n/**\n * Custom Scopes Configuration\n * For specific use cases requiring different OAuth scopes\n */\nexport const customScopes: DestinationDataManager.Config = {\n settings: {\n credentials: {\n client_email: process.env.GOOGLE_CLIENT_EMAIL || '',\n private_key: (process.env.GOOGLE_PRIVATE_KEY || '').replace(/\\\\n/g, '\\n'),\n },\n scopes: ['https://www.googleapis.com/auth/datamanager'],\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n","import type { DestinationDataManager } from '..';\n\n/**\n * Minimal configuration for Google Data Manager with inline credentials\n */\nexport const minimal: DestinationDataManager.Config = {\n settings: {\n credentials: {\n client_email: 'service-account@project.iam.gserviceaccount.com',\n private_key:\n '-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----\\n',\n },\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n\n/**\n * Complete configuration with all options\n */\nexport const complete: DestinationDataManager.Config = {\n settings: {\n credentials: {\n client_email: 'service-account@project.iam.gserviceaccount.com',\n private_key:\n '-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----\\n',\n },\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n {\n operatingAccount: {\n accountId: '987654321',\n accountType: 'GOOGLE_ANALYTICS_PROPERTY',\n },\n productDestinationId: 'G-XXXXXXXXXX',\n },\n ],\n batchSize: 100,\n batchInterval: 5000,\n validateOnly: false,\n consent: {\n adUserData: 'CONSENT_GRANTED',\n adPersonalization: 'CONSENT_GRANTED',\n },\n\n // Guided helpers (apply to all events)\n userData: {\n email: 'user.id',\n phone: 'data.phone',\n firstName: 'data.firstName',\n lastName: 'data.lastName',\n },\n userId: 'user.id',\n clientId: 'user.device',\n sessionAttributes: 'context.sessionAttributes',\n },\n};\n\n/**\n * GA4-specific configuration using Application Default Credentials\n */\nexport const ga4: DestinationDataManager.Config = {\n settings: {\n destinations: [\n {\n operatingAccount: {\n accountId: '123456789',\n accountType: 'GOOGLE_ANALYTICS_PROPERTY',\n },\n productDestinationId: 'G-XXXXXXXXXX',\n },\n ],\n },\n};\n\n/**\n * Debug configuration with logging enabled using keyFilename\n */\nexport const debug: DestinationDataManager.Config = {\n settings: {\n keyFilename: './service-account.json',\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n};\n","import type { DestinationDataManager } from '..';\nimport { isObject } from '@walkeros/core';\n\n/**\n * Purchase event mapping for Google Ads conversion\n */\nexport const Purchase: DestinationDataManager.Rule = {\n name: 'purchase',\n data: {\n map: {\n // Required fields\n transactionId: 'data.id',\n conversionValue: 'data.total',\n currency: { key: 'data.currency', value: 'USD' },\n eventName: { value: 'purchase' },\n\n // User identification\n userId: 'user.id',\n email: 'user.id', // Will be hashed automatically\n\n // Attribution identifiers (captured by browser source from URL)\n gclid: 'context.gclid', // Google Click ID\n gbraid: 'context.gbraid', // iOS attribution\n wbraid: 'context.wbraid', // Web-to-app\n\n // Shopping cart data\n cartData: {\n map: {\n items: {\n loop: [\n 'nested',\n {\n condition: (entity) =>\n isObject(entity) && entity.entity === 'product',\n map: {\n merchantProductId: 'data.id',\n price: 'data.price',\n quantity: { key: 'data.quantity', value: 1 },\n },\n },\n ],\n },\n },\n },\n },\n },\n};\n\n/**\n * Lead event mapping\n */\nexport const Lead: DestinationDataManager.Rule = {\n name: 'generate_lead',\n data: {\n map: {\n eventName: { value: 'generate_lead' },\n conversionValue: { value: 10 },\n currency: { value: 'USD' },\n },\n },\n};\n\n/**\n * Page view mapping for GA4\n */\nexport const PageView: DestinationDataManager.Rule = {\n name: 'page_view',\n data: {\n map: {\n eventName: { value: 'page_view' },\n },\n },\n};\n\n/**\n * Complete mapping configuration\n */\nexport const mapping = {\n order: {\n complete: Purchase,\n },\n lead: {\n submit: Lead,\n },\n page: {\n view: PageView,\n },\n} satisfies DestinationDataManager.Rules;\n\n/**\n * User data mapping configuration\n * Maps walkerOS user properties to Data Manager user identifiers\n */\nexport const userDataMapping: DestinationDataManager.Config = {\n settings: {\n keyFilename: './service-account.json',\n destinations: [\n {\n operatingAccount: {\n accountId: '123-456-7890',\n accountType: 'GOOGLE_ADS',\n },\n productDestinationId: 'AW-CONVERSION-123',\n },\n ],\n },\n data: {\n map: {\n email: 'user.id',\n phone: 'data.phone',\n firstName: 'data.firstName',\n lastName: 'data.lastName',\n regionCode: 'data.country',\n postalCode: 'data.zip',\n },\n },\n mapping,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,iBAAkB;AAEX,IAAM,oBAAoB,aAAE,KAAK;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,oBAAoB,aAAE,KAAK;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,sBAAsB,aAAE,KAAK;AAAA,EACxC;AAAA,EACA;AACF,CAAC;AA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K;AAAA,MACH,WAAW,EAAE,OAAO,YAAY;AAAA,IAClC;AAAA,EACF;AACF;AAKO,IAAMA,WAAU;AAAA,EACrB,OAAO;AAAA,IACL,UAAU;AAAA,EACZ;AAAA,EACA,MAAM;AAAA,IACJ,QAAQ;AAAA,EACV;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,EACR;AACF;AAMO,IAAM,kBAAiD;AAAA,EAC5D,UAAU;AAAA,IACR,aAAa;AAAA,IACb,cAAc;AAAA,MACZ;AAAA,QACE,kBAAkB;AAAA,UAChB,WAAW;AAAA,UACX,aAAa;AAAA,QACf;AAAA,QACA,sBAAsB;AAAA,MACxB;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM;AAAA,IACJ,KAAK;AAAA,MACH,OAAO;AAAA,MACP,OAAO;AAAA,MACP,WAAW;AAAA,MACX,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,YAAY;AAAA,IACd;AAAA,EACF;AAAA,EACA,SAAAA;AACF;","names":["import_dev","import_dev","import_dev","mapping"]}
|
|
1
|
+
{"version":3,"sources":["../src/dev.ts","../src/schemas.ts","../src/schemas/primitives.ts","../src/schemas/settings.ts","../src/schemas/mapping.ts","../src/schemas/index.ts","../src/examples/index.ts","../src/examples/step.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","// Browser-safe schema-only exports\n// This file exports ONLY schemas without any Node.js dependencies\nexport { settings, mapping } from './schemas/index';\n","import { z } from '@walkeros/core/dev';\n\nexport const AccountTypeSchema = z.enum([\n 'GOOGLE_ADS',\n 'DISPLAY_VIDEO_ADVERTISER',\n 'DISPLAY_VIDEO_PARTNER',\n 'GOOGLE_ANALYTICS_PROPERTY',\n]);\n\nexport const EventSourceSchema = z.enum([\n 'WEB',\n 'APP',\n 'IN_STORE',\n 'PHONE',\n 'OTHER',\n]);\n\nexport const ConsentStatusSchema = z.enum([\n 'CONSENT_GRANTED',\n 'CONSENT_DENIED',\n]);\n\nexport const ConsentSchema = z.object({\n adUserData: ConsentStatusSchema.describe(\n 'Consent for data collection and use',\n ).optional(),\n adPersonalization: ConsentStatusSchema.describe(\n 'Consent for ad personalization',\n ).optional(),\n});\n\nexport const OperatingAccountSchema = z.object({\n accountId: z\n .string()\n .min(1)\n .describe('Account ID (e.g., \"123-456-7890\" for Google Ads)'),\n accountType: AccountTypeSchema.describe('Type of account'),\n});\n\nexport const DestinationSchema = z.object({\n operatingAccount: OperatingAccountSchema.describe(\n 'Operating account details',\n ),\n productDestinationId: z\n .string()\n .min(1)\n .describe(\n 'Product-specific destination ID (conversion action or user list)',\n ),\n});\n","import { z } from '@walkeros/core/dev';\nimport {\n DestinationSchema,\n EventSourceSchema,\n ConsentSchema,\n} from './primitives';\n\n/**\n * Service account credentials schema\n */\nconst CredentialsSchema = z.object({\n client_email: z.string().email().describe('Service account email'),\n private_key: z\n .string()\n .min(1)\n .describe('Service account private key (PEM format)'),\n});\n\nexport const SettingsSchema = z.object({\n credentials: CredentialsSchema.optional().describe(\n 'Service account credentials (client_email + private_key). Recommended for serverless environments.',\n ),\n keyFilename: z\n .string()\n .optional()\n .describe(\n 'Path to service account JSON file. For local development or environments with filesystem access.',\n ),\n scopes: z\n .array(z.string())\n .optional()\n .describe(\n 'OAuth scopes for Data Manager API. Defaults to datamanager scope.',\n ),\n destinations: z\n .array(DestinationSchema)\n .min(1)\n .max(10)\n .describe(\n 'Array of destination accounts and conversion actions/user lists (max 10)',\n ),\n eventSource: EventSourceSchema.optional()\n .default('WEB')\n .describe(\n 'Event source for all events. Defaults to WEB. Values: WEB, APP, IN_STORE, PHONE, OTHER',\n ),\n batchSize: z\n .number()\n .int()\n .min(1)\n .max(2000)\n .describe(\n 'Maximum number of events to batch before sending (max 2000, like 100)',\n )\n .optional(),\n batchInterval: z\n .number()\n .int()\n .min(0)\n .describe(\n 'Time in milliseconds to wait before auto-flushing batch (like 5000)',\n )\n .optional(),\n validateOnly: z\n .boolean()\n .describe('If true, validate request without ingestion (testing mode)')\n .optional(),\n url: z\n .string()\n .url()\n .describe(\n 'Override API endpoint for testing (like https://datamanager.googleapis.com/v1)',\n )\n .optional(),\n consent: ConsentSchema.describe(\n 'Request-level consent for all events',\n ).optional(),\n testEventCode: z\n .string()\n .describe('Test event code for debugging (like TEST12345)')\n .optional(),\n logLevel: z\n .enum(['debug', 'info', 'warn', 'error', 'none'])\n .describe('Log level for debugging (debug shows all API calls)')\n .optional(),\n userData: z\n .record(z.string(), z.unknown())\n .describe(\n \"Guided helper: User data mapping for all events (like { email: 'user.id', phone: 'data.phone' })\",\n )\n .optional(),\n userId: z\n .any()\n .describe(\n \"Guided helper: First-party user ID for all events (like 'user.id')\",\n )\n .optional(),\n clientId: z\n .any()\n .describe(\n \"Guided helper: GA4 client ID for all events (like 'user.device')\",\n )\n .optional(),\n sessionAttributes: z\n .any()\n .describe(\n \"Guided helper: Privacy-safe attribution for all events (like 'context.sessionAttributes')\",\n )\n .optional(),\n consentAdUserData: z\n .union([z.string(), z.boolean()])\n .describe(\n \"Consent mapping: Field name from event.consent (like 'marketing') or static boolean value\",\n )\n .optional(),\n consentAdPersonalization: z\n .union([z.string(), z.boolean()])\n .describe(\n \"Consent mapping: Field name from event.consent (like 'targeting') or static boolean value\",\n )\n .optional(),\n});\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","import { z } from '@walkeros/core/dev';\n\n// Data Manager uses flexible mapping via walkerOS mapping system\n// No event-specific mapping schema needed (similar to Meta CAPI pattern)\nexport const MappingSchema = z.object({});\n\nexport type Mapping = z.infer<typeof MappingSchema>;\n","export * from './primitives';\nexport * from './settings';\nexport * from './mapping';\n\nimport { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\nimport { MappingSchema } from './mapping';\n\nexport const settings = zodToSchema(SettingsSchema);\nexport const mapping = zodToSchema(MappingSchema);\n","export * as step from './step';\n","import type { Flow } from '@walkeros/core';\nimport { getEvent, isObject } from '@walkeros/core';\n\nexport const purchase: Flow.StepExample = {\n in: getEvent('order complete', {\n timestamp: 1700001200,\n data: { id: 'ORD-600', total: 149.99, currency: 'EUR' },\n user: { id: 'user-abc', email: 'buyer@example.com' },\n source: { type: 'server', id: '', previous_id: '' },\n }),\n mapping: {\n name: 'purchase',\n data: {\n map: {\n transactionId: 'data.id',\n conversionValue: 'data.total',\n currency: { key: 'data.currency', value: 'USD' },\n eventName: { value: 'purchase' },\n userId: 'user.id',\n email: 'user.id',\n },\n },\n },\n out: {\n events: [\n {\n transactionId: 'ORD-600',\n eventName: 'purchase',\n eventSource: 'WEB',\n conversionValue: 149.99,\n currency: 'EUR',\n userId: 'user-abc',\n email: 'buyer@example.com',\n },\n ],\n },\n};\n\nexport const lead: Flow.StepExample = {\n in: getEvent('form submit', {\n timestamp: 1700001201,\n data: { type: 'demo-request' },\n user: { email: 'prospect@example.com' },\n source: { type: 'server', id: '', previous_id: '' },\n }),\n mapping: {\n name: 'generate_lead',\n data: {\n map: {\n eventName: { value: 'generate_lead' },\n conversionValue: { value: 10 },\n currency: { value: 'USD' },\n },\n },\n },\n out: {\n events: [\n {\n transactionId: '1700001201-gr0up-1',\n eventName: 'generate_lead',\n eventSource: 'WEB',\n email: 'prospect@example.com',\n },\n ],\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,iBAAkB;AAEX,IAAM,oBAAoB,aAAE,KAAK;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,oBAAoB,aAAE,KAAK;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,sBAAsB,aAAE,KAAK;AAAA,EACxC;AAAA,EACA;AACF,CAAC;AAEM,IAAM,gBAAgB,aAAE,OAAO;AAAA,EACpC,YAAY,oBAAoB;AAAA,IAC9B;AAAA,EACF,EAAE,SAAS;AAAA,EACX,mBAAm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