avo 1.7.1 → 2.0.2
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/Avo.js +780 -773
- package/README.md +4 -1
- package/cli.js +43 -41
- package/package.json +11 -10
package/Avo.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
// Generated by Avo VERSION
|
|
1
|
+
// Generated by Avo VERSION 92.16.0. You should never have to make changes to this file.
|
|
2
2
|
// If you find yourself in the situation where you have to edit the file please contact us at hi@avo.app.
|
|
3
3
|
// If you encounter a git conflict in this file run `avo pull` and it will be resolved automatically.
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
|
|
6
|
-
(function(exports) {
|
|
7
6
|
var __AVO_DEV__ = false;
|
|
8
7
|
var __AVO_NOOP__ = false;
|
|
9
8
|
var __AVO_LOGGER__ = null;
|
|
10
9
|
var __AVO_ENV__ = null;
|
|
11
10
|
var __REPORT_FAILURE_AS__ = null;
|
|
12
11
|
var __STRICT__ = null;
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const avoInspectorApiKey = "3UWtteG9HenZ825cYoYr";
|
|
13
|
+
var __INSPECTOR__ = null;
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
var array_difference, AvoAssert, InternalAvoLogger;
|
|
17
16
|
array_difference = function array_difference(a1, a2) {
|
|
18
17
|
var result = [];
|
|
19
18
|
for (var i = 0; i < a1.length; i++) {
|
|
@@ -170,13 +169,13 @@
|
|
|
170
169
|
};
|
|
171
170
|
|
|
172
171
|
InternalAvoLogger = {
|
|
173
|
-
logEventSent: function logEventSent(eventName, eventProperties, userProperties) {
|
|
174
|
-
const message = "Event Sent:" + eventName + "Event Props:" + JSON.stringify(eventProperties) + "User Props:" + JSON.stringify(userProperties);
|
|
172
|
+
logEventSent: function logEventSent(eventName, eventProperties, userProperties, groupProperties) {
|
|
173
|
+
const message = "Event Sent:" + eventName + "Event Props:" + JSON.stringify(eventProperties) + "User Props:" + JSON.stringify(userProperties) + "Group Props:" + JSON.stringify(groupProperties);
|
|
175
174
|
|
|
176
175
|
if (__AVO_LOGGER__ && __AVO_LOGGER__.logDebug && __AVO_LOGGER__.logDebug(__AVO_ENV__, message)) {
|
|
177
176
|
return
|
|
178
177
|
}
|
|
179
|
-
typeof console !== 'undefined' && console.log("[avo] Event Sent:", eventName, "Event Props:", eventProperties, "User Props:", userProperties);
|
|
178
|
+
typeof console !== 'undefined' && console.log("[avo] Event Sent:", eventName, "Event Props:", eventProperties, "User Props:", userProperties, "Group Props:", groupProperties);
|
|
180
179
|
},
|
|
181
180
|
|
|
182
181
|
log: function log(message) {
|
|
@@ -201,7 +200,7 @@
|
|
|
201
200
|
}
|
|
202
201
|
};
|
|
203
202
|
|
|
204
|
-
|
|
203
|
+
var _avo_invoke, _avo_invoke_meta;
|
|
205
204
|
var _avo_sampling_rate = 1.0;
|
|
206
205
|
function _avo_invoke_payload(body) {
|
|
207
206
|
if (_avo_sampling_rate > 0) {
|
|
@@ -237,8 +236,8 @@ function _avo_invoke_payload(body) {
|
|
|
237
236
|
_avo_invoke = function _avo_invoke(env, eventId, hash, messages, origin) {
|
|
238
237
|
try {
|
|
239
238
|
_avo_invoke_payload({
|
|
240
|
-
"ac": "
|
|
241
|
-
"br": "
|
|
239
|
+
"ac": "0PwMjPaMtkOkKQpGoQev",
|
|
240
|
+
"br": "master",
|
|
242
241
|
"en": env,
|
|
243
242
|
"ev": eventId,
|
|
244
243
|
"ha": hash,
|
|
@@ -255,8 +254,8 @@ _avo_invoke = function _avo_invoke(env, eventId, hash, messages, origin) {
|
|
|
255
254
|
_avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {
|
|
256
255
|
try {
|
|
257
256
|
_avo_invoke_payload({
|
|
258
|
-
"ac": "
|
|
259
|
-
"br": "
|
|
257
|
+
"ac": "0PwMjPaMtkOkKQpGoQev",
|
|
258
|
+
"br": "master",
|
|
260
259
|
"en": env,
|
|
261
260
|
"ty": type,
|
|
262
261
|
"sc": "fwtXqAc0fCLy7b7oGW40",
|
|
@@ -270,484 +269,519 @@ _avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {
|
|
|
270
269
|
}
|
|
271
270
|
|
|
272
271
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
272
|
+
var SignInError = {
|
|
273
|
+
UNKNOWN: "Unknown",
|
|
274
|
+
WRONG_PASSWORD: "Wrong Password",
|
|
275
|
+
USER_NOT_FOUND: "User Not Found",
|
|
276
|
+
USER_DISABLED: "User Disabled",
|
|
277
|
+
INVALID_EMAIL: "Invalid Email",
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
var Client = {
|
|
281
|
+
CLOUD_FUNCTIONS: "Cloud Functions",
|
|
282
|
+
WEB: "Web",
|
|
283
|
+
LANDING_PAGE: "Landing Page",
|
|
284
|
+
CLI: "Cli",
|
|
285
|
+
WEB_DEBUGGER: "Web Debugger",
|
|
286
|
+
ANDROID_DEBUGGER: "Android Debugger",
|
|
287
|
+
IOS_DEBUGGER: "Ios Debugger",
|
|
288
|
+
REACT_NATIVE_DEBUGGER_IOS: "React Native Debugger (ios)",
|
|
289
|
+
REACT_NATIVE_DEBUGGER_ANDROID: "React Native Debugger (android)",
|
|
290
|
+
DOCS: "Docs",
|
|
291
|
+
PUBLISHING_WORKER: "Publishing Worker",
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
var AuthenticationMethod = {
|
|
295
|
+
GOOGLE: "Google",
|
|
296
|
+
EMAIL: "Email",
|
|
297
|
+
SSO: "SSO",
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
var CliAction = {
|
|
301
|
+
LOGIN: "Login",
|
|
302
|
+
LOGOUT: "Logout",
|
|
303
|
+
PULL: "Pull",
|
|
304
|
+
CHECKOUT: "Checkout",
|
|
305
|
+
INIT: "Init",
|
|
306
|
+
STATUS: "Status",
|
|
307
|
+
BRANCH: "Branch",
|
|
308
|
+
EDIT: "Edit",
|
|
309
|
+
WHOAMI: "Whoami",
|
|
310
|
+
SOURCE: "Source",
|
|
311
|
+
SOURCE_ADD: "Source Add",
|
|
312
|
+
SOURCE_REMOVE: "Source Remove",
|
|
313
|
+
MERGE: "Merge",
|
|
314
|
+
CONFLICT: "Conflict",
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
function assertSignInError(signInError, label_) {
|
|
318
|
+
var messages = [];
|
|
319
|
+
messages = messages.concat(AvoAssert.assertString("106d4596-7330-49f3-93d8-487c92f877d3", label_ ? "Sign In Error" + ": " + label_ : "Sign In Error", signInError));
|
|
320
|
+
if ("Unknown" !== signInError && "Wrong Password" !== signInError &&
|
|
321
|
+
"User Not Found" !== signInError &&
|
|
322
|
+
"User Disabled" !== signInError && "Invalid Email" !== signInError) {
|
|
323
|
+
var message = (label_ ? "Sign In Error" + ": " + label_ : "Sign In Error") + " should match one of the following values [ Unknown | Wrong Password | User Not Found | User Disabled | Invalid Email ] but you provided the value " + signInError
|
|
324
|
+
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "106d4596-7330-49f3-93d8-487c92f877d3", message: message}]);
|
|
325
|
+
}
|
|
326
|
+
return messages;
|
|
327
|
+
}
|
|
293
328
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
329
|
+
function assertVersion(version, label_) {
|
|
330
|
+
var messages = [];
|
|
331
|
+
messages = messages.concat(AvoAssert.assertString("2fad5bf3-7782-49a2-acc2-825daf823095", label_ ? "Version" + ": " + label_ : "Version", version));
|
|
332
|
+
return messages;
|
|
333
|
+
}
|
|
299
334
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
INIT: "Init",
|
|
306
|
-
STATUS: "Status",
|
|
307
|
-
BRANCH: "Branch",
|
|
308
|
-
EDIT: "Edit",
|
|
309
|
-
WHOAMI: "Whoami",
|
|
310
|
-
SOURCE: "Source",
|
|
311
|
-
SOURCE_ADD: "Source Add",
|
|
312
|
-
SOURCE_REMOVE: "Source Remove",
|
|
313
|
-
MERGE: "Merge",
|
|
314
|
-
CONFLICT: "Conflict",
|
|
315
|
-
};
|
|
335
|
+
function assertSchemaId(schemaId, label_) {
|
|
336
|
+
var messages = [];
|
|
337
|
+
messages = messages.concat(AvoAssert.assertString("40958e87-d69a-4d5a-98f8-b36922466787", label_ ? "Schema Id" + ": " + label_ : "Schema Id", schemaId));
|
|
338
|
+
return messages;
|
|
339
|
+
}
|
|
316
340
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
"User Not Found" !== signInError &&
|
|
322
|
-
"User Disabled" !== signInError && "Invalid Email" !== signInError) {
|
|
323
|
-
var message = (label_ ? 'Sign In Error' + ': ' + label_ : 'Sign In Error') + " should match one of the following values [ Unknown | Wrong Password | User Not Found | User Disabled | Invalid Email ] but you provided the value " + signInError
|
|
324
|
-
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "106d4596-7330-49f3-93d8-487c92f877d3", message: message}]);
|
|
325
|
-
}
|
|
326
|
-
return messages;
|
|
341
|
+
function assertOptionalEmailInput(emailInput, label_) {
|
|
342
|
+
var messages = [];
|
|
343
|
+
if (emailInput !== undefined && emailInput !== null) {
|
|
344
|
+
messages = messages.concat(AvoAssert.assertString("439349b2-72cb-4ac1-81d9-1c4aa89da524", label_ ? "Email Input" + ": " + label_ : "Email Input", emailInput));
|
|
327
345
|
}
|
|
346
|
+
return messages;
|
|
347
|
+
}
|
|
328
348
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
349
|
+
function assertEmail(email, label_) {
|
|
350
|
+
var messages = [];
|
|
351
|
+
messages = messages.concat(AvoAssert.assertString("92588d93-5307-4fa2-be00-be0821596abe", label_ ? "Email" + ": " + label_ : "Email", email));
|
|
352
|
+
return messages;
|
|
353
|
+
}
|
|
334
354
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
355
|
+
function assertClient(client, label_) {
|
|
356
|
+
var messages = [];
|
|
357
|
+
messages = messages.concat(AvoAssert.assertString("9e5c4ff5-d5f6-4e82-b061-d5fa02755aae", label_ ? "Client" + ": " + label_ : "Client", client));
|
|
358
|
+
if ("Cloud Functions" !== client && "Web" !== client &&
|
|
359
|
+
"Landing Page" !== client && "Cli" !== client &&
|
|
360
|
+
"Web Debugger" !== client && "Android Debugger" !== client &&
|
|
361
|
+
"Ios Debugger" !== client &&
|
|
362
|
+
"React Native Debugger (ios)" !== client &&
|
|
363
|
+
"React Native Debugger (android)" !== client && "Docs" !== client &&
|
|
364
|
+
"Publishing Worker" !== client) {
|
|
365
|
+
var message = (label_ ? "Client" + ": " + label_ : "Client") + " should match one of the following values [ Cloud Functions | Web | Landing Page | Cli | Web Debugger | Android Debugger | Ios Debugger | React Native Debugger (ios) | React Native Debugger (android) | Docs | Publishing Worker ] but you provided the value " + client
|
|
366
|
+
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "9e5c4ff5-d5f6-4e82-b061-d5fa02755aae", message: message}]);
|
|
341
367
|
}
|
|
368
|
+
return messages;
|
|
369
|
+
}
|
|
342
370
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
371
|
+
function assertBranchName(branchName, label_) {
|
|
372
|
+
var messages = [];
|
|
373
|
+
messages = messages.concat(AvoAssert.assertString("9xcXzuN-3", label_ ? "Branch Name" + ": " + label_ : "Branch Name", branchName));
|
|
374
|
+
return messages;
|
|
375
|
+
}
|
|
348
376
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
return messages;
|
|
355
|
-
}
|
|
377
|
+
function assertCliInvokedByCi(cliInvokedByCi, label_) {
|
|
378
|
+
var messages = [];
|
|
379
|
+
messages = messages.concat(AvoAssert.assertBool("IyaXHTG7C", label_ ? "Cli Invoked by Ci" + ": " + label_ : "Cli Invoked by Ci", cliInvokedByCi));
|
|
380
|
+
return messages;
|
|
381
|
+
}
|
|
356
382
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
383
|
+
function assertAuthenticationMethod(authenticationMethod, label_) {
|
|
384
|
+
var messages = [];
|
|
385
|
+
messages = messages.concat(AvoAssert.assertString("R9pE83vdh", label_ ? "Authentication Method" + ": " + label_ : "Authentication Method", authenticationMethod));
|
|
386
|
+
if ("Google" !== authenticationMethod &&
|
|
387
|
+
"Email" !== authenticationMethod && "SSO" !== authenticationMethod) {
|
|
388
|
+
var message = (label_ ? "Authentication Method" + ": " + label_ : "Authentication Method") + " should match one of the following values [ Google | Email | SSO ] but you provided the value " + authenticationMethod
|
|
389
|
+
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "R9pE83vdh", message: message}]);
|
|
361
390
|
}
|
|
391
|
+
return messages;
|
|
392
|
+
}
|
|
362
393
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
return messages;
|
|
394
|
+
function assertCliAction(cliAction, label_) {
|
|
395
|
+
var messages = [];
|
|
396
|
+
messages = messages.concat(AvoAssert.assertString("YRq1Pt0ey", label_ ? "Cli Action" + ": " + label_ : "Cli Action", cliAction));
|
|
397
|
+
if ("Login" !== cliAction && "Logout" !== cliAction &&
|
|
398
|
+
"Pull" !== cliAction && "Checkout" !== cliAction &&
|
|
399
|
+
"Init" !== cliAction && "Status" !== cliAction &&
|
|
400
|
+
"Branch" !== cliAction && "Edit" !== cliAction &&
|
|
401
|
+
"Whoami" !== cliAction && "Source" !== cliAction &&
|
|
402
|
+
"Source Add" !== cliAction && "Source Remove" !== cliAction &&
|
|
403
|
+
"Merge" !== cliAction && "Conflict" !== cliAction) {
|
|
404
|
+
var message = (label_ ? "Cli Action" + ": " + label_ : "Cli Action") + " should match one of the following values [ Login | Logout | Pull | Checkout | Init | Status | Branch | Edit | Whoami | Source | Source Add | Source Remove | Merge | Conflict ] but you provided the value " + cliAction
|
|
405
|
+
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "YRq1Pt0ey", message: message}]);
|
|
376
406
|
}
|
|
407
|
+
return messages;
|
|
408
|
+
}
|
|
377
409
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
410
|
+
function assertOptionalSchemaName(schemaName, label_) {
|
|
411
|
+
var messages = [];
|
|
412
|
+
if (schemaName !== undefined && schemaName !== null) {
|
|
413
|
+
messages = messages.concat(AvoAssert.assertString("a49af1dc-3166-45db-a906-86179135854b", label_ ? "Schema Name" + ": " + label_ : "Schema Name", schemaName));
|
|
382
414
|
}
|
|
415
|
+
return messages;
|
|
416
|
+
}
|
|
383
417
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
418
|
+
function _assertUserId_(userId_, label_) {
|
|
419
|
+
var messages = [];
|
|
420
|
+
messages = messages.concat(AvoAssert.assertString("avo-enriched-server-user-id", label_ ? "User Id" + ": " + label_ : "User Id", userId_));
|
|
421
|
+
return messages;
|
|
422
|
+
}
|
|
389
423
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
var message = (label_ ? 'Authentication Method' + ': ' + label_ : 'Authentication Method') + " should match one of the following values [ Google | Email | SSO ] but you provided the value " + authenticationMethod
|
|
396
|
-
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "R9pE83vdh", message: message}]);
|
|
397
|
-
}
|
|
398
|
-
return messages;
|
|
399
|
-
}
|
|
424
|
+
function assertUserId_(userId_, label_) {
|
|
425
|
+
var messages = [];
|
|
426
|
+
messages = messages.concat(AvoAssert.assertString("avo-enriched-type-user-id", label_ ? "User Id" + ": " + label_ : "User Id", userId_));
|
|
427
|
+
return messages;
|
|
428
|
+
}
|
|
400
429
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
"Init" !== cliAction && "Status" !== cliAction &&
|
|
407
|
-
"Branch" !== cliAction && "Edit" !== cliAction &&
|
|
408
|
-
"Whoami" !== cliAction && "Source" !== cliAction &&
|
|
409
|
-
"Source Add" !== cliAction && "Source Remove" !== cliAction &&
|
|
410
|
-
"Merge" !== cliAction && "Conflict" !== cliAction) {
|
|
411
|
-
var message = (label_ ? 'Cli Action' + ': ' + label_ : 'Cli Action') + " should match one of the following values [ Login | Logout | Pull | Checkout | Init | Status | Branch | Edit | Whoami | Source | Source Add | Source Remove | Merge | Conflict ] but you provided the value " + cliAction
|
|
412
|
-
messages = messages.concat([{tag: 'expectedStringMatch', propertyId: "YRq1Pt0ey", message: message}]);
|
|
413
|
-
}
|
|
414
|
-
return messages;
|
|
415
|
-
}
|
|
430
|
+
function assertBranchId(branchId, label_) {
|
|
431
|
+
var messages = [];
|
|
432
|
+
messages = messages.concat(AvoAssert.assertString("tlrUtYcti", label_ ? "Branch Id" + ": " + label_ : "Branch Id", branchId));
|
|
433
|
+
return messages;
|
|
434
|
+
}
|
|
416
435
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
return messages;
|
|
436
|
+
function assertOptionalForce(force, label_) {
|
|
437
|
+
var messages = [];
|
|
438
|
+
if (force !== undefined && force !== null) {
|
|
439
|
+
messages = messages.concat(AvoAssert.assertBool("xSnIO4dt8", label_ ? "Force" + ": " + label_ : "Force", force));
|
|
423
440
|
}
|
|
441
|
+
return messages;
|
|
442
|
+
}
|
|
424
443
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
return messages;
|
|
429
|
-
}
|
|
444
|
+
function setAvoLogger(avoLogger) {
|
|
445
|
+
__AVO_LOGGER__ = avoLogger;
|
|
446
|
+
}
|
|
430
447
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
messages = messages.concat(AvoAssert.assertString("avo-enriched-type-user-id", label_ ? 'User Id' + ': ' + label_ : 'User Id', userId_));
|
|
434
|
-
return messages;
|
|
435
|
-
}
|
|
448
|
+
var sysClient;
|
|
449
|
+
var sysVersion;
|
|
436
450
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
451
|
+
function setSystemProperties(properties) {
|
|
452
|
+
if (properties.client !== null && properties.client !== undefined) {
|
|
453
|
+
sysClient = properties.client;
|
|
454
|
+
assertClient(sysClient);
|
|
441
455
|
}
|
|
456
|
+
if (properties.version !== null && properties.version !== undefined) {
|
|
457
|
+
sysVersion = properties.version;
|
|
458
|
+
assertVersion(sysVersion);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
442
461
|
|
|
443
|
-
|
|
444
|
-
|
|
462
|
+
function setSystemProperties_(properties) {
|
|
463
|
+
if (properties.client !== null && properties.client !== undefined) {
|
|
464
|
+
sysClient = properties.client;
|
|
465
|
+
assertClient(sysClient);
|
|
445
466
|
}
|
|
467
|
+
if (properties.version !== null && properties.version !== undefined) {
|
|
468
|
+
sysVersion = properties.version;
|
|
469
|
+
assertVersion(sysVersion);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
446
472
|
|
|
447
|
-
var sysClient;
|
|
448
|
-
var sysVersion;
|
|
449
473
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
if (properties.version !== null && properties.version !== undefined) {
|
|
456
|
-
sysVersion = properties.version;
|
|
457
|
-
assertVersion(sysVersion);
|
|
458
|
-
}
|
|
474
|
+
var CustomNodeJS;
|
|
475
|
+
function setup_(options, systemProperties, CustomNodeJSDestination,
|
|
476
|
+
destinationOptions) {
|
|
477
|
+
if (options.validateProperties === true) {
|
|
478
|
+
__AVO_DEV__ = true;
|
|
459
479
|
}
|
|
460
480
|
|
|
461
|
-
|
|
462
|
-
if (properties.client !== null && properties.client !== undefined) {
|
|
463
|
-
sysClient = properties.client;
|
|
464
|
-
assertClient(sysClient);
|
|
465
|
-
}
|
|
466
|
-
if (properties.version !== null && properties.version !== undefined) {
|
|
467
|
-
sysVersion = properties.version;
|
|
468
|
-
assertVersion(sysVersion);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
481
|
+
setSystemProperties_(systemProperties);
|
|
471
482
|
|
|
483
|
+
destinationOptions = destinationOptions || {};
|
|
472
484
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if (options.validateProperties === true) {
|
|
477
|
-
__AVO_DEV__ = true;
|
|
485
|
+
if (!__AVO_NOOP__) {
|
|
486
|
+
if (options.useProductionKey) {
|
|
487
|
+
} else {
|
|
478
488
|
}
|
|
479
489
|
|
|
480
|
-
|
|
490
|
+
CustomNodeJS = CustomNodeJSDestination;
|
|
491
|
+
CustomNodeJS.make(options.useProductionKey);
|
|
492
|
+
if (__AVO_DEV__) {
|
|
493
|
+
// debug console in Avo
|
|
494
|
+
_avo_invoke_meta(__AVO_ENV__, 'setup', [], 'setup');
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
481
498
|
|
|
482
|
-
|
|
499
|
+
function initAvo(options, systemProperties, destinationOptions,
|
|
500
|
+
CustomNodeJSDestination) {
|
|
501
|
+
if (__AVO_ENV__ !== null) {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
__AVO_ENV__ = options.env.toLowerCase();
|
|
505
|
+
if (options.avoLogger !== undefined) {
|
|
506
|
+
__AVO_LOGGER__ = options.avoLogger;
|
|
507
|
+
}
|
|
508
|
+
if (options.noop === true) {
|
|
509
|
+
__AVO_NOOP__ = true;
|
|
510
|
+
}
|
|
511
|
+
if (__AVO_NOOP__ && __AVO_ENV__ == 'prod') {
|
|
512
|
+
InternalAvoLogger.warn("****************************************************");
|
|
513
|
+
InternalAvoLogger.warn("WARNING Avo cannot be initialized in noop mode in production:");
|
|
514
|
+
InternalAvoLogger.warn("- Overwriting configuration with noop=false.");
|
|
515
|
+
InternalAvoLogger.warn("- Please reach out if you want to be able to run Avo in production mode with noop=true");
|
|
516
|
+
InternalAvoLogger.warn("****************************************************");
|
|
517
|
+
__AVO_NOOP__ = false;
|
|
518
|
+
}
|
|
519
|
+
if (__AVO_NOOP__) {
|
|
520
|
+
InternalAvoLogger.log("****************************************************");
|
|
521
|
+
InternalAvoLogger.log("Avo is now initialized in noop mode. This means:");
|
|
522
|
+
InternalAvoLogger.log("- No events will be sent");
|
|
523
|
+
InternalAvoLogger.log("- No network requests are made");
|
|
524
|
+
InternalAvoLogger.log("****************************************************");
|
|
525
|
+
}
|
|
526
|
+
if (options.strict !== undefined) {
|
|
527
|
+
__STRICT__ = options.strict !== false;
|
|
528
|
+
}
|
|
529
|
+
if (options.reportFailureAs !== undefined) {
|
|
530
|
+
__REPORT_FAILURE_AS__ = options.reportFailureAs;
|
|
531
|
+
}
|
|
532
|
+
if (!__AVO_NOOP__ && options.inspector !== undefined) {
|
|
533
|
+
__INSPECTOR__ = options.inspector;
|
|
534
|
+
} else if (__AVO_ENV__ !== 'prod') {
|
|
535
|
+
InternalAvoLogger.warn("Avo Inspector not provided in initAvo() call");
|
|
536
|
+
}
|
|
537
|
+
if (__AVO_ENV__ !== 'prod') {
|
|
538
|
+
__AVO_DEV__ = true;
|
|
539
|
+
}
|
|
483
540
|
|
|
484
|
-
|
|
485
|
-
if (options.useProductionKey) {
|
|
486
|
-
} else {
|
|
487
|
-
}
|
|
541
|
+
setSystemProperties(systemProperties);
|
|
488
542
|
|
|
489
|
-
|
|
490
|
-
CustomNodeJS.make(options.useProductionKey);
|
|
491
|
-
if (__AVO_DEV__) {
|
|
492
|
-
// debug console in Avo
|
|
493
|
-
_avo_invoke_meta(__AVO_ENV__, 'setup', [], 'setup');
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
543
|
+
destinationOptions = destinationOptions || {};
|
|
497
544
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
if (__AVO_ENV__ !== null) {
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
__AVO_ENV__ = options.env.toLowerCase();
|
|
504
|
-
if (options.avoLogger !== undefined) {
|
|
505
|
-
__AVO_LOGGER__ = options.avoLogger;
|
|
506
|
-
}
|
|
507
|
-
if (options.noop === true) {
|
|
508
|
-
__AVO_NOOP__ = true;
|
|
545
|
+
if (!__AVO_NOOP__) {
|
|
546
|
+
if (__AVO_ENV__ === 'prod') {
|
|
509
547
|
}
|
|
510
|
-
if (
|
|
511
|
-
InternalAvoLogger.warn("****************************************************");
|
|
512
|
-
InternalAvoLogger.warn("WARNING Avo cannot be initialized in noop mode in production:");
|
|
513
|
-
InternalAvoLogger.warn("- Overwriting configuration with noop=false.");
|
|
514
|
-
InternalAvoLogger.warn("- Please reach out if you want to be able to run Avo in production mode with noop=true");
|
|
515
|
-
InternalAvoLogger.warn("****************************************************");
|
|
516
|
-
__AVO_NOOP__ = false;
|
|
548
|
+
if (__AVO_ENV__ === 'dev') {
|
|
517
549
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
528
|
-
if (options.reportFailureAs !== undefined) {
|
|
529
|
-
__REPORT_FAILURE_AS__ = options.reportFailureAs;
|
|
530
|
-
}
|
|
531
|
-
if (!__AVO_NOOP__ && options.inspector !== undefined) {
|
|
532
|
-
__INSPECTOR__ = options.inspector;
|
|
533
|
-
} else if (__AVO_ENV__ !== 'prod') {
|
|
534
|
-
InternalAvoLogger.warn("Avo Inspector not provided in initAvo() call");
|
|
550
|
+
|
|
551
|
+
CustomNodeJS = CustomNodeJSDestination;
|
|
552
|
+
if (__AVO_ENV__ === 'prod') {
|
|
553
|
+
CustomNodeJS.make && CustomNodeJS.make(__AVO_ENV__, "2");
|
|
554
|
+
} else if (__AVO_ENV__ === 'dev') {
|
|
555
|
+
CustomNodeJS.make && CustomNodeJS.make(__AVO_ENV__, "1");
|
|
556
|
+
} else {
|
|
557
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] No staging key is set for Custom Node JS. Head to destination settings in Avo to set a staging key.");
|
|
558
|
+
CustomNodeJS.make && CustomNodeJS.make(__AVO_ENV__, "");
|
|
535
559
|
}
|
|
536
|
-
if (
|
|
537
|
-
|
|
560
|
+
if (__AVO_DEV__) {
|
|
561
|
+
// debug console in Avo
|
|
562
|
+
_avo_invoke_meta(__AVO_ENV__, 'init', [], 'init');
|
|
538
563
|
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
539
566
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
567
|
+
/**
|
|
568
|
+
* Signed In: Sent when user successfully signs in or when we successfully authenticate a user.
|
|
569
|
+
*
|
|
570
|
+
* @param {object} properties - the properties associatied with this event
|
|
571
|
+
* @param {string} properties.userId_ - The value used to identify the user. Make sure it's a unique sequence of characters used to identify the user.
|
|
572
|
+
* @param {string} properties.email - The user's email
|
|
573
|
+
* @param {string} properties.authenticationMethod - Type of authentication method used by user logging in or signing up
|
|
574
|
+
*
|
|
575
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/54e92613-090c-4f0b-afeb-ed720eff3422}
|
|
576
|
+
*/
|
|
577
|
+
export function signedIn(properties) {
|
|
578
|
+
properties = properties || {};
|
|
579
|
+
if (__AVO_DEV__) {
|
|
580
|
+
// assert properties
|
|
581
|
+
var messages = [];
|
|
582
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
583
|
+
messages = messages.concat(assertEmail(properties.email));
|
|
584
|
+
messages = messages.concat(assertAuthenticationMethod(properties.authenticationMethod));
|
|
585
|
+
messages = messages.concat(assertClient(sysClient));
|
|
586
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
587
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Signed In", Object.keys(properties), [
|
|
588
|
+
"userId_",
|
|
589
|
+
"email",
|
|
590
|
+
"authenticationMethod"
|
|
591
|
+
]));
|
|
592
|
+
// debug console in Avo
|
|
544
593
|
if (!__AVO_NOOP__) {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
if (__AVO_ENV__ === 'dev') {
|
|
548
|
-
}
|
|
594
|
+
_avo_invoke(__AVO_ENV__, "54e92613-090c-4f0b-afeb-ed720eff3422", "2fec10106ad560f43f307ffdc820e3bd7a474585f9c62ee39961730c35694cb1", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
595
|
+
}
|
|
549
596
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
597
|
+
InternalAvoLogger.logEventSent("Signed In", {
|
|
598
|
+
"Authentication Method": properties.authenticationMethod,
|
|
599
|
+
"Client": sysClient,
|
|
600
|
+
"Version": sysVersion,
|
|
601
|
+
}, {
|
|
602
|
+
"Email": properties.email,
|
|
603
|
+
}, {});
|
|
604
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
605
|
+
// throw exception if messages is not empty
|
|
606
|
+
if (messages.length !== 0) {
|
|
607
|
+
throw new Error("Error sending event 'Signed In': " + messages[0].message)
|
|
555
608
|
}
|
|
609
|
+
} else {
|
|
610
|
+
messages.forEach(function(m) {
|
|
611
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
612
|
+
});
|
|
556
613
|
}
|
|
557
614
|
}
|
|
558
615
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
* @param {string} properties.userId_ - The value used to identify the user. Make sure it's a unique sequence of characters used to identify the user.
|
|
564
|
-
* @param {string} properties.email - The user's email
|
|
565
|
-
* @param {string} properties.authenticationMethod - Type of authentication method used by user logging in or signing up
|
|
566
|
-
*
|
|
567
|
-
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/branches/qgrYDHloO/events/54e92613-090c-4f0b-afeb-ed720eff3422}
|
|
568
|
-
*/
|
|
569
|
-
function signedIn(properties) {
|
|
570
|
-
properties = properties || {};
|
|
571
|
-
if (__AVO_DEV__) {
|
|
572
|
-
// assert properties
|
|
573
|
-
var messages = [];
|
|
574
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
575
|
-
messages = messages.concat(assertEmail(properties.email));
|
|
576
|
-
messages = messages.concat(assertAuthenticationMethod(properties.authenticationMethod));
|
|
577
|
-
messages = messages.concat(assertClient(sysClient));
|
|
578
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
579
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Signed In", Object.keys(properties), [
|
|
580
|
-
"userId_",
|
|
581
|
-
"email",
|
|
582
|
-
"authenticationMethod"
|
|
583
|
-
]));
|
|
584
|
-
// debug console in Avo
|
|
585
|
-
if (!__AVO_NOOP__) {
|
|
586
|
-
_avo_invoke(__AVO_ENV__, "54e92613-090c-4f0b-afeb-ed720eff3422", "24d83f13334e8c89bfae447f63ab0745657de4bd565f50f69b43b7cc5d5c09c1", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
InternalAvoLogger.logEventSent("Signed In", {
|
|
616
|
+
if (!__AVO_NOOP__) {
|
|
617
|
+
return Promise.all([
|
|
618
|
+
// report to Avo Inspector
|
|
619
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Signed In", {
|
|
590
620
|
"Authentication Method": properties.authenticationMethod,
|
|
591
621
|
"Client": sysClient,
|
|
592
622
|
"Version": sysVersion,
|
|
593
|
-
},
|
|
623
|
+
}, "54e92613-090c-4f0b-afeb-ed720eff3422", "2fec10106ad560f43f307ffdc820e3bd7a474585f9c62ee39961730c35694cb1")
|
|
624
|
+
: Promise.resolve(),
|
|
625
|
+
// destination CustomNodeJS
|
|
626
|
+
CustomNodeJS.setUserProperties(properties.userId_, {
|
|
594
627
|
"Email": properties.email,
|
|
595
|
-
})
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
628
|
+
}),
|
|
629
|
+
CustomNodeJS.logEvent(properties.userId_, "Signed In", {
|
|
630
|
+
"Authentication Method": properties.authenticationMethod,
|
|
631
|
+
"Client": sysClient,
|
|
632
|
+
"Version": sysVersion,
|
|
633
|
+
}),
|
|
634
|
+
]);
|
|
635
|
+
} else {
|
|
636
|
+
// do nothing
|
|
637
|
+
return new Promise((resolve) => { resolve(null); });
|
|
638
|
+
}
|
|
639
|
+
}
|
|
607
640
|
|
|
641
|
+
/**
|
|
642
|
+
* Sign In Failed: Sent when sign in request fails.
|
|
643
|
+
*
|
|
644
|
+
* @param {object} properties - the properties associatied with this event
|
|
645
|
+
* @param {string} properties.userId_ - User Id is required for server sources.
|
|
646
|
+
* @param {string} properties.signInError - no description
|
|
647
|
+
* @param {string} properties.emailInput - The email address that is put into the email input on the landing page
|
|
648
|
+
*
|
|
649
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/7aa64217-bb89-44f5-9a68-f3bc0255a864}
|
|
650
|
+
*/
|
|
651
|
+
export function signInFailed(properties) {
|
|
652
|
+
properties = properties || {};
|
|
653
|
+
if (__AVO_DEV__) {
|
|
654
|
+
// assert properties
|
|
655
|
+
var messages = [];
|
|
656
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
657
|
+
messages = messages.concat(assertSignInError(properties.signInError));
|
|
658
|
+
messages = messages.concat(assertOptionalEmailInput(properties.emailInput));
|
|
659
|
+
messages = messages.concat(assertClient(sysClient));
|
|
660
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
661
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Sign In Failed", Object.keys(properties), [
|
|
662
|
+
"userId_",
|
|
663
|
+
"signInError",
|
|
664
|
+
"emailInput"
|
|
665
|
+
]));
|
|
666
|
+
// debug console in Avo
|
|
608
667
|
if (!__AVO_NOOP__) {
|
|
609
|
-
return
|
|
610
|
-
// report to Avo Inspector
|
|
611
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Signed In", {
|
|
612
|
-
"Authentication Method": properties.authenticationMethod,
|
|
613
|
-
"Client": sysClient,
|
|
614
|
-
"Version": sysVersion,
|
|
615
|
-
}, "54e92613-090c-4f0b-afeb-ed720eff3422", "24d83f13334e8c89bfae447f63ab0745657de4bd565f50f69b43b7cc5d5c09c1")
|
|
616
|
-
: Promise.resolve(),
|
|
617
|
-
// destination CustomNodeJS
|
|
618
|
-
CustomNodeJS.setUserProperties(properties.userId_, {
|
|
619
|
-
"Email": properties.email,
|
|
620
|
-
}),
|
|
621
|
-
CustomNodeJS.logEvent(properties.userId_, "Signed In", {
|
|
622
|
-
"Authentication Method": properties.authenticationMethod,
|
|
623
|
-
"Client": sysClient,
|
|
624
|
-
"Version": sysVersion,
|
|
625
|
-
}),
|
|
626
|
-
]);
|
|
627
|
-
} else {
|
|
628
|
-
// do nothing
|
|
629
|
-
return new Promise((resolve) => { resolve(null); });
|
|
668
|
+
_avo_invoke(__AVO_ENV__, "7aa64217-bb89-44f5-9a68-f3bc0255a864", "ddc8c1ee0b5dbe58efd0d44d6d4dd8c2bc61bf1d64c7c8f74ea1f50d5b24b2ed", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
630
669
|
}
|
|
631
|
-
}
|
|
632
670
|
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
function signInFailed(properties) {
|
|
644
|
-
properties = properties || {};
|
|
645
|
-
if (__AVO_DEV__) {
|
|
646
|
-
// assert properties
|
|
647
|
-
var messages = [];
|
|
648
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
649
|
-
messages = messages.concat(assertSignInError(properties.signInError));
|
|
650
|
-
messages = messages.concat(assertOptionalEmailInput(properties.emailInput));
|
|
651
|
-
messages = messages.concat(assertClient(sysClient));
|
|
652
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
653
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Sign In Failed", Object.keys(properties), [
|
|
654
|
-
"userId_",
|
|
655
|
-
"signInError",
|
|
656
|
-
"emailInput"
|
|
657
|
-
]));
|
|
658
|
-
// debug console in Avo
|
|
659
|
-
if (!__AVO_NOOP__) {
|
|
660
|
-
_avo_invoke(__AVO_ENV__, "7aa64217-bb89-44f5-9a68-f3bc0255a864", "0696745d9fb8876ae1f94ea4fb1b999e447930dba5111f7802b7344bea6515d1", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
671
|
+
InternalAvoLogger.logEventSent("Sign In Failed", {
|
|
672
|
+
"Sign In Error": properties.signInError,
|
|
673
|
+
"Email Input": properties.emailInput,
|
|
674
|
+
"Client": sysClient,
|
|
675
|
+
"Version": sysVersion,
|
|
676
|
+
}, {}, {});
|
|
677
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
678
|
+
// throw exception if messages is not empty
|
|
679
|
+
if (messages.length !== 0) {
|
|
680
|
+
throw new Error("Error sending event 'Sign In Failed': " + messages[0].message)
|
|
661
681
|
}
|
|
682
|
+
} else {
|
|
683
|
+
messages.forEach(function(m) {
|
|
684
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}
|
|
662
688
|
|
|
663
|
-
|
|
689
|
+
if (!__AVO_NOOP__) {
|
|
690
|
+
return Promise.all([
|
|
691
|
+
// report to Avo Inspector
|
|
692
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Sign In Failed", {
|
|
664
693
|
"Sign In Error": properties.signInError,
|
|
665
694
|
"Email Input": properties.emailInput,
|
|
666
695
|
"Client": sysClient,
|
|
667
696
|
"Version": sysVersion,
|
|
668
|
-
},
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
697
|
+
}, "7aa64217-bb89-44f5-9a68-f3bc0255a864", "ddc8c1ee0b5dbe58efd0d44d6d4dd8c2bc61bf1d64c7c8f74ea1f50d5b24b2ed")
|
|
698
|
+
: Promise.resolve(),
|
|
699
|
+
// destination CustomNodeJS
|
|
700
|
+
CustomNodeJS.logEvent(properties.userId_, "Sign In Failed", {
|
|
701
|
+
"Sign In Error": properties.signInError,
|
|
702
|
+
"Email Input": properties.emailInput,
|
|
703
|
+
"Client": sysClient,
|
|
704
|
+
"Version": sysVersion,
|
|
705
|
+
}),
|
|
706
|
+
]);
|
|
707
|
+
} else {
|
|
708
|
+
// do nothing
|
|
709
|
+
return new Promise((resolve) => { resolve(null); });
|
|
710
|
+
}
|
|
711
|
+
}
|
|
680
712
|
|
|
713
|
+
/**
|
|
714
|
+
* Cli Invoked: Sent when any action is made in the CLI.
|
|
715
|
+
*
|
|
716
|
+
* @param {object} properties - the properties associatied with this event
|
|
717
|
+
* @param {string} properties.userId_ - User Id is required for server sources.
|
|
718
|
+
* @param {string} properties.cliAction - no description
|
|
719
|
+
* @param {string} properties.schemaId - The ID of the schema that this event is related to.
|
|
720
|
+
* @param {bool} properties.cliInvokedByCi - True iff process.env.CI is set.
|
|
721
|
+
* @param {string} properties.branchId - The ID of the branch that this event is related to.
|
|
722
|
+
* @param {string} properties.branchName - The name of the branch that this event is related to.
|
|
723
|
+
* @param {string} properties.schemaName - Name of the schema that this event is related to.
|
|
724
|
+
* @param {bool} properties.force - Whether the command was called with --force parameter
|
|
725
|
+
*
|
|
726
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/qqpIQEK11}
|
|
727
|
+
*/
|
|
728
|
+
export function cliInvoked(properties) {
|
|
729
|
+
properties = properties || {};
|
|
730
|
+
if (__AVO_DEV__) {
|
|
731
|
+
// assert properties
|
|
732
|
+
var messages = [];
|
|
733
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
734
|
+
messages = messages.concat(assertCliAction(properties.cliAction));
|
|
735
|
+
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
736
|
+
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
737
|
+
messages = messages.concat(assertBranchId(properties.branchId));
|
|
738
|
+
messages = messages.concat(assertBranchName(properties.branchName));
|
|
739
|
+
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
740
|
+
messages = messages.concat(assertOptionalForce(properties.force));
|
|
741
|
+
messages = messages.concat(assertClient(sysClient));
|
|
742
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
743
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Invoked", Object.keys(properties), [
|
|
744
|
+
"userId_",
|
|
745
|
+
"cliAction",
|
|
746
|
+
"schemaId",
|
|
747
|
+
"cliInvokedByCi",
|
|
748
|
+
"branchId",
|
|
749
|
+
"branchName",
|
|
750
|
+
"schemaName",
|
|
751
|
+
"force"
|
|
752
|
+
]));
|
|
753
|
+
// debug console in Avo
|
|
681
754
|
if (!__AVO_NOOP__) {
|
|
682
|
-
return
|
|
683
|
-
// report to Avo Inspector
|
|
684
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Sign In Failed", {
|
|
685
|
-
"Sign In Error": properties.signInError,
|
|
686
|
-
"Email Input": properties.emailInput,
|
|
687
|
-
"Client": sysClient,
|
|
688
|
-
"Version": sysVersion,
|
|
689
|
-
}, "7aa64217-bb89-44f5-9a68-f3bc0255a864", "0696745d9fb8876ae1f94ea4fb1b999e447930dba5111f7802b7344bea6515d1")
|
|
690
|
-
: Promise.resolve(),
|
|
691
|
-
// destination CustomNodeJS
|
|
692
|
-
CustomNodeJS.logEvent(properties.userId_, "Sign In Failed", {
|
|
693
|
-
"Sign In Error": properties.signInError,
|
|
694
|
-
"Email Input": properties.emailInput,
|
|
695
|
-
"Client": sysClient,
|
|
696
|
-
"Version": sysVersion,
|
|
697
|
-
}),
|
|
698
|
-
]);
|
|
699
|
-
} else {
|
|
700
|
-
// do nothing
|
|
701
|
-
return new Promise((resolve) => { resolve(null); });
|
|
755
|
+
_avo_invoke(__AVO_ENV__, "qqpIQEK11", "2c085b5b559ba4f21772aefcc05d8169572edea6375b711f3cb6a547445ffb2c", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
702
756
|
}
|
|
703
|
-
}
|
|
704
757
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
function cliInvoked(properties) {
|
|
721
|
-
properties = properties || {};
|
|
722
|
-
if (__AVO_DEV__) {
|
|
723
|
-
// assert properties
|
|
724
|
-
var messages = [];
|
|
725
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
726
|
-
messages = messages.concat(assertCliAction(properties.cliAction));
|
|
727
|
-
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
728
|
-
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
729
|
-
messages = messages.concat(assertBranchId(properties.branchId));
|
|
730
|
-
messages = messages.concat(assertBranchName(properties.branchName));
|
|
731
|
-
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
732
|
-
messages = messages.concat(assertOptionalForce(properties.force));
|
|
733
|
-
messages = messages.concat(assertClient(sysClient));
|
|
734
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
735
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Invoked", Object.keys(properties), [
|
|
736
|
-
"userId_",
|
|
737
|
-
"cliAction",
|
|
738
|
-
"schemaId",
|
|
739
|
-
"cliInvokedByCi",
|
|
740
|
-
"branchId",
|
|
741
|
-
"branchName",
|
|
742
|
-
"schemaName",
|
|
743
|
-
"force"
|
|
744
|
-
]));
|
|
745
|
-
// debug console in Avo
|
|
746
|
-
if (!__AVO_NOOP__) {
|
|
747
|
-
_avo_invoke(__AVO_ENV__, "qqpIQEK11", "bc3695428d065f21aa61be896d89583fde67122b07362548633166a5dc08b70f", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
758
|
+
InternalAvoLogger.logEventSent("Cli Invoked", {
|
|
759
|
+
"Cli Action": properties.cliAction,
|
|
760
|
+
"Schema Id": properties.schemaId,
|
|
761
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
762
|
+
"Branch Id": properties.branchId,
|
|
763
|
+
"Branch Name": properties.branchName,
|
|
764
|
+
"Schema Name": properties.schemaName,
|
|
765
|
+
"Force": properties.force,
|
|
766
|
+
"Client": sysClient,
|
|
767
|
+
"Version": sysVersion,
|
|
768
|
+
}, {}, {});
|
|
769
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
770
|
+
// throw exception if messages is not empty
|
|
771
|
+
if (messages.length !== 0) {
|
|
772
|
+
throw new Error("Error sending event 'Cli Invoked': " + messages[0].message)
|
|
748
773
|
}
|
|
774
|
+
} else {
|
|
775
|
+
messages.forEach(function(m) {
|
|
776
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
}
|
|
749
780
|
|
|
750
|
-
|
|
781
|
+
if (!__AVO_NOOP__) {
|
|
782
|
+
return Promise.all([
|
|
783
|
+
// report to Avo Inspector
|
|
784
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Invoked", {
|
|
751
785
|
"Cli Action": properties.cliAction,
|
|
752
786
|
"Schema Id": properties.schemaId,
|
|
753
787
|
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
@@ -757,159 +791,157 @@ _avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {
|
|
|
757
791
|
"Force": properties.force,
|
|
758
792
|
"Client": sysClient,
|
|
759
793
|
"Version": sysVersion,
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
794
|
+
}, "qqpIQEK11", "2c085b5b559ba4f21772aefcc05d8169572edea6375b711f3cb6a547445ffb2c")
|
|
795
|
+
: Promise.resolve(),
|
|
796
|
+
// destination CustomNodeJS
|
|
797
|
+
CustomNodeJS.logEvent(properties.userId_, "Cli Invoked", {
|
|
798
|
+
"Cli Action": properties.cliAction,
|
|
799
|
+
"Schema Id": properties.schemaId,
|
|
800
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
801
|
+
"Branch Id": properties.branchId,
|
|
802
|
+
"Branch Name": properties.branchName,
|
|
803
|
+
"Schema Name": properties.schemaName,
|
|
804
|
+
"Force": properties.force,
|
|
805
|
+
"Client": sysClient,
|
|
806
|
+
"Version": sysVersion,
|
|
807
|
+
}),
|
|
808
|
+
]);
|
|
809
|
+
} else {
|
|
810
|
+
// do nothing
|
|
811
|
+
return new Promise((resolve) => { resolve(null); });
|
|
812
|
+
}
|
|
813
|
+
}
|
|
772
814
|
|
|
815
|
+
/**
|
|
816
|
+
* Cli Installed: Event sent when the CLI is successfully installed
|
|
817
|
+
*
|
|
818
|
+
* @param {object} properties - the properties associatied with this event
|
|
819
|
+
* @param {string} properties.userId_ - User Id is required for server sources.
|
|
820
|
+
* @param {bool} properties.cliInvokedByCi - True iff process.env.CI is set.
|
|
821
|
+
*
|
|
822
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/JCwfVYXTS}
|
|
823
|
+
*/
|
|
824
|
+
export function cliInstalled(properties) {
|
|
825
|
+
properties = properties || {};
|
|
826
|
+
if (__AVO_DEV__) {
|
|
827
|
+
// assert properties
|
|
828
|
+
var messages = [];
|
|
829
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
830
|
+
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
831
|
+
messages = messages.concat(assertClient(sysClient));
|
|
832
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
833
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Installed", Object.keys(properties), [
|
|
834
|
+
"userId_",
|
|
835
|
+
"cliInvokedByCi"
|
|
836
|
+
]));
|
|
837
|
+
// debug console in Avo
|
|
773
838
|
if (!__AVO_NOOP__) {
|
|
774
|
-
return
|
|
775
|
-
// report to Avo Inspector
|
|
776
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Invoked", {
|
|
777
|
-
"Cli Action": properties.cliAction,
|
|
778
|
-
"Schema Id": properties.schemaId,
|
|
779
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
780
|
-
"Branch Id": properties.branchId,
|
|
781
|
-
"Branch Name": properties.branchName,
|
|
782
|
-
"Schema Name": properties.schemaName,
|
|
783
|
-
"Force": properties.force,
|
|
784
|
-
"Client": sysClient,
|
|
785
|
-
"Version": sysVersion,
|
|
786
|
-
}, "qqpIQEK11", "bc3695428d065f21aa61be896d89583fde67122b07362548633166a5dc08b70f")
|
|
787
|
-
: Promise.resolve(),
|
|
788
|
-
// destination CustomNodeJS
|
|
789
|
-
CustomNodeJS.logEvent(properties.userId_, "Cli Invoked", {
|
|
790
|
-
"Cli Action": properties.cliAction,
|
|
791
|
-
"Schema Id": properties.schemaId,
|
|
792
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
793
|
-
"Branch Id": properties.branchId,
|
|
794
|
-
"Branch Name": properties.branchName,
|
|
795
|
-
"Schema Name": properties.schemaName,
|
|
796
|
-
"Force": properties.force,
|
|
797
|
-
"Client": sysClient,
|
|
798
|
-
"Version": sysVersion,
|
|
799
|
-
}),
|
|
800
|
-
]);
|
|
801
|
-
} else {
|
|
802
|
-
// do nothing
|
|
803
|
-
return new Promise((resolve) => { resolve(null); });
|
|
839
|
+
_avo_invoke(__AVO_ENV__, "JCwfVYXTS", "588b1f5190686099b083ad56d3fa443fd2f4c5558878d09a1ef5818f0c731f50", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
804
840
|
}
|
|
805
|
-
}
|
|
806
841
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
function cliInstalled(properties) {
|
|
817
|
-
properties = properties || {};
|
|
818
|
-
if (__AVO_DEV__) {
|
|
819
|
-
// assert properties
|
|
820
|
-
var messages = [];
|
|
821
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
822
|
-
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
823
|
-
messages = messages.concat(assertClient(sysClient));
|
|
824
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
825
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Installed", Object.keys(properties), [
|
|
826
|
-
"userId_",
|
|
827
|
-
"cliInvokedByCi"
|
|
828
|
-
]));
|
|
829
|
-
// debug console in Avo
|
|
830
|
-
if (!__AVO_NOOP__) {
|
|
831
|
-
_avo_invoke(__AVO_ENV__, "JCwfVYXTS", "ff5db1c40f8a0d54f239810690068217957c4b2708174752c73eca278c007811", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
842
|
+
InternalAvoLogger.logEventSent("Cli Installed", {
|
|
843
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
844
|
+
"Client": sysClient,
|
|
845
|
+
"Version": sysVersion,
|
|
846
|
+
}, {}, {});
|
|
847
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
848
|
+
// throw exception if messages is not empty
|
|
849
|
+
if (messages.length !== 0) {
|
|
850
|
+
throw new Error("Error sending event 'Cli Installed': " + messages[0].message)
|
|
832
851
|
}
|
|
852
|
+
} else {
|
|
853
|
+
messages.forEach(function(m) {
|
|
854
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
}
|
|
833
858
|
|
|
834
|
-
|
|
859
|
+
if (!__AVO_NOOP__) {
|
|
860
|
+
return Promise.all([
|
|
861
|
+
// report to Avo Inspector
|
|
862
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Installed", {
|
|
835
863
|
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
836
864
|
"Client": sysClient,
|
|
837
865
|
"Version": sysVersion,
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
866
|
+
}, "JCwfVYXTS", "588b1f5190686099b083ad56d3fa443fd2f4c5558878d09a1ef5818f0c731f50")
|
|
867
|
+
: Promise.resolve(),
|
|
868
|
+
// destination CustomNodeJS
|
|
869
|
+
CustomNodeJS.logEvent(properties.userId_, "Cli Installed", {
|
|
870
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
871
|
+
"Client": sysClient,
|
|
872
|
+
"Version": sysVersion,
|
|
873
|
+
}),
|
|
874
|
+
]);
|
|
875
|
+
} else {
|
|
876
|
+
// do nothing
|
|
877
|
+
return new Promise((resolve) => { resolve(null); });
|
|
878
|
+
}
|
|
879
|
+
}
|
|
850
880
|
|
|
881
|
+
/**
|
|
882
|
+
* Cli Conflict Resolve Attempted: No description
|
|
883
|
+
*
|
|
884
|
+
* @param {object} properties - the properties associatied with this event
|
|
885
|
+
* @param {string} properties.userId_ - User Id is required for server sources.
|
|
886
|
+
* @param {bool} properties.cliInvokedByCi - True iff process.env.CI is set.
|
|
887
|
+
* @param {string} properties.schemaId - The ID of the schema that this event is related to.
|
|
888
|
+
* @param {string} properties.branchId - The ID of the branch that this event is related to.
|
|
889
|
+
* @param {string} properties.branchName - The name of the branch that this event is related to.
|
|
890
|
+
* @param {string} properties.schemaName - Name of the schema that this event is related to.
|
|
891
|
+
*
|
|
892
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/Un5dTEMQYy}
|
|
893
|
+
*/
|
|
894
|
+
export function cliConflictResolveAttempted(properties) {
|
|
895
|
+
properties = properties || {};
|
|
896
|
+
if (__AVO_DEV__) {
|
|
897
|
+
// assert properties
|
|
898
|
+
var messages = [];
|
|
899
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
900
|
+
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
901
|
+
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
902
|
+
messages = messages.concat(assertBranchId(properties.branchId));
|
|
903
|
+
messages = messages.concat(assertBranchName(properties.branchName));
|
|
904
|
+
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
905
|
+
messages = messages.concat(assertClient(sysClient));
|
|
906
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
907
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Conflict Resolve Attempted", Object.keys(properties), [
|
|
908
|
+
"userId_",
|
|
909
|
+
"cliInvokedByCi",
|
|
910
|
+
"schemaId",
|
|
911
|
+
"branchId",
|
|
912
|
+
"branchName",
|
|
913
|
+
"schemaName"
|
|
914
|
+
]));
|
|
915
|
+
// debug console in Avo
|
|
851
916
|
if (!__AVO_NOOP__) {
|
|
852
|
-
return
|
|
853
|
-
// report to Avo Inspector
|
|
854
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Installed", {
|
|
855
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
856
|
-
"Client": sysClient,
|
|
857
|
-
"Version": sysVersion,
|
|
858
|
-
}, "JCwfVYXTS", "ff5db1c40f8a0d54f239810690068217957c4b2708174752c73eca278c007811")
|
|
859
|
-
: Promise.resolve(),
|
|
860
|
-
// destination CustomNodeJS
|
|
861
|
-
CustomNodeJS.logEvent(properties.userId_, "Cli Installed", {
|
|
862
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
863
|
-
"Client": sysClient,
|
|
864
|
-
"Version": sysVersion,
|
|
865
|
-
}),
|
|
866
|
-
]);
|
|
867
|
-
} else {
|
|
868
|
-
// do nothing
|
|
869
|
-
return new Promise((resolve) => { resolve(null); });
|
|
917
|
+
_avo_invoke(__AVO_ENV__, "Un5dTEMQYy", "7404977817fc78c9c765838ebf115d8d684453662663c3947b3ebbc15154a3f7", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
870
918
|
}
|
|
871
|
-
}
|
|
872
919
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
function cliConflictResolveAttempted(properties) {
|
|
887
|
-
properties = properties || {};
|
|
888
|
-
if (__AVO_DEV__) {
|
|
889
|
-
// assert properties
|
|
890
|
-
var messages = [];
|
|
891
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
892
|
-
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
893
|
-
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
894
|
-
messages = messages.concat(assertBranchId(properties.branchId));
|
|
895
|
-
messages = messages.concat(assertBranchName(properties.branchName));
|
|
896
|
-
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
897
|
-
messages = messages.concat(assertClient(sysClient));
|
|
898
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
899
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Conflict Resolve Attempted", Object.keys(properties), [
|
|
900
|
-
"userId_",
|
|
901
|
-
"cliInvokedByCi",
|
|
902
|
-
"schemaId",
|
|
903
|
-
"branchId",
|
|
904
|
-
"branchName",
|
|
905
|
-
"schemaName"
|
|
906
|
-
]));
|
|
907
|
-
// debug console in Avo
|
|
908
|
-
if (!__AVO_NOOP__) {
|
|
909
|
-
_avo_invoke(__AVO_ENV__, "Un5dTEMQYy", "41a91124474c652fd40ee254d43d3b0d342c432c171eb2964e6f40acaffb6d13", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
920
|
+
InternalAvoLogger.logEventSent("Cli Conflict Resolve Attempted", {
|
|
921
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
922
|
+
"Schema Id": properties.schemaId,
|
|
923
|
+
"Branch Id": properties.branchId,
|
|
924
|
+
"Branch Name": properties.branchName,
|
|
925
|
+
"Schema Name": properties.schemaName,
|
|
926
|
+
"Client": sysClient,
|
|
927
|
+
"Version": sysVersion,
|
|
928
|
+
}, {}, {});
|
|
929
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
930
|
+
// throw exception if messages is not empty
|
|
931
|
+
if (messages.length !== 0) {
|
|
932
|
+
throw new Error("Error sending event 'Cli Conflict Resolve Attempted': " + messages[0].message)
|
|
910
933
|
}
|
|
934
|
+
} else {
|
|
935
|
+
messages.forEach(function(m) {
|
|
936
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
}
|
|
911
940
|
|
|
912
|
-
|
|
941
|
+
if (!__AVO_NOOP__) {
|
|
942
|
+
return Promise.all([
|
|
943
|
+
// report to Avo Inspector
|
|
944
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Conflict Resolve Attempted", {
|
|
913
945
|
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
914
946
|
"Schema Id": properties.schemaId,
|
|
915
947
|
"Branch Id": properties.branchId,
|
|
@@ -917,89 +949,89 @@ _avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {
|
|
|
917
949
|
"Schema Name": properties.schemaName,
|
|
918
950
|
"Client": sysClient,
|
|
919
951
|
"Version": sysVersion,
|
|
920
|
-
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
952
|
+
}, "Un5dTEMQYy", "7404977817fc78c9c765838ebf115d8d684453662663c3947b3ebbc15154a3f7")
|
|
953
|
+
: Promise.resolve(),
|
|
954
|
+
// destination CustomNodeJS
|
|
955
|
+
CustomNodeJS.logEvent(properties.userId_, "Cli Conflict Resolve Attempted", {
|
|
956
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
957
|
+
"Schema Id": properties.schemaId,
|
|
958
|
+
"Branch Id": properties.branchId,
|
|
959
|
+
"Branch Name": properties.branchName,
|
|
960
|
+
"Schema Name": properties.schemaName,
|
|
961
|
+
"Client": sysClient,
|
|
962
|
+
"Version": sysVersion,
|
|
963
|
+
}),
|
|
964
|
+
]);
|
|
965
|
+
} else {
|
|
966
|
+
// do nothing
|
|
967
|
+
return new Promise((resolve) => { resolve(null); });
|
|
968
|
+
}
|
|
969
|
+
}
|
|
932
970
|
|
|
971
|
+
/**
|
|
972
|
+
* Cli Conflict Resolve Failed: No description
|
|
973
|
+
*
|
|
974
|
+
* @param {object} properties - the properties associatied with this event
|
|
975
|
+
* @param {string} properties.userId_ - User Id is required for server sources.
|
|
976
|
+
* @param {bool} properties.cliInvokedByCi - True iff process.env.CI is set.
|
|
977
|
+
* @param {string} properties.schemaId - The ID of the schema that this event is related to.
|
|
978
|
+
* @param {string} properties.schemaName - Name of the schema that this event is related to.
|
|
979
|
+
* @param {string} properties.branchId - The ID of the branch that this event is related to.
|
|
980
|
+
* @param {string} properties.branchName - The name of the branch that this event is related to.
|
|
981
|
+
*
|
|
982
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/4ZhoijIA2U}
|
|
983
|
+
*/
|
|
984
|
+
export function cliConflictResolveFailed(properties) {
|
|
985
|
+
properties = properties || {};
|
|
986
|
+
if (__AVO_DEV__) {
|
|
987
|
+
// assert properties
|
|
988
|
+
var messages = [];
|
|
989
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
990
|
+
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
991
|
+
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
992
|
+
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
993
|
+
messages = messages.concat(assertBranchId(properties.branchId));
|
|
994
|
+
messages = messages.concat(assertBranchName(properties.branchName));
|
|
995
|
+
messages = messages.concat(assertClient(sysClient));
|
|
996
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
997
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Conflict Resolve Failed", Object.keys(properties), [
|
|
998
|
+
"userId_",
|
|
999
|
+
"cliInvokedByCi",
|
|
1000
|
+
"schemaId",
|
|
1001
|
+
"schemaName",
|
|
1002
|
+
"branchId",
|
|
1003
|
+
"branchName"
|
|
1004
|
+
]));
|
|
1005
|
+
// debug console in Avo
|
|
933
1006
|
if (!__AVO_NOOP__) {
|
|
934
|
-
return
|
|
935
|
-
// report to Avo Inspector
|
|
936
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Conflict Resolve Attempted", {
|
|
937
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
938
|
-
"Schema Id": properties.schemaId,
|
|
939
|
-
"Branch Id": properties.branchId,
|
|
940
|
-
"Branch Name": properties.branchName,
|
|
941
|
-
"Schema Name": properties.schemaName,
|
|
942
|
-
"Client": sysClient,
|
|
943
|
-
"Version": sysVersion,
|
|
944
|
-
}, "Un5dTEMQYy", "41a91124474c652fd40ee254d43d3b0d342c432c171eb2964e6f40acaffb6d13")
|
|
945
|
-
: Promise.resolve(),
|
|
946
|
-
// destination CustomNodeJS
|
|
947
|
-
CustomNodeJS.logEvent(properties.userId_, "Cli Conflict Resolve Attempted", {
|
|
948
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
949
|
-
"Schema Id": properties.schemaId,
|
|
950
|
-
"Branch Id": properties.branchId,
|
|
951
|
-
"Branch Name": properties.branchName,
|
|
952
|
-
"Schema Name": properties.schemaName,
|
|
953
|
-
"Client": sysClient,
|
|
954
|
-
"Version": sysVersion,
|
|
955
|
-
}),
|
|
956
|
-
]);
|
|
957
|
-
} else {
|
|
958
|
-
// do nothing
|
|
959
|
-
return new Promise((resolve) => { resolve(null); });
|
|
1007
|
+
_avo_invoke(__AVO_ENV__, "4ZhoijIA2U", "67b876f2a00dbd0b854836a8adfca0084118e427ce3332a428dbfc563dab8bc0", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
960
1008
|
}
|
|
961
|
-
}
|
|
962
1009
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
function cliConflictResolveFailed(properties) {
|
|
977
|
-
properties = properties || {};
|
|
978
|
-
if (__AVO_DEV__) {
|
|
979
|
-
// assert properties
|
|
980
|
-
var messages = [];
|
|
981
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
982
|
-
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
983
|
-
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
984
|
-
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
985
|
-
messages = messages.concat(assertBranchId(properties.branchId));
|
|
986
|
-
messages = messages.concat(assertBranchName(properties.branchName));
|
|
987
|
-
messages = messages.concat(assertClient(sysClient));
|
|
988
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
989
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Conflict Resolve Failed", Object.keys(properties), [
|
|
990
|
-
"userId_",
|
|
991
|
-
"cliInvokedByCi",
|
|
992
|
-
"schemaId",
|
|
993
|
-
"schemaName",
|
|
994
|
-
"branchId",
|
|
995
|
-
"branchName"
|
|
996
|
-
]));
|
|
997
|
-
// debug console in Avo
|
|
998
|
-
if (!__AVO_NOOP__) {
|
|
999
|
-
_avo_invoke(__AVO_ENV__, "4ZhoijIA2U", "e07643843a8cfcc6c2ff87db0bcc98ba5a2884171af80462b6030b7abd7055dd", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
1010
|
+
InternalAvoLogger.logEventSent("Cli Conflict Resolve Failed", {
|
|
1011
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1012
|
+
"Schema Id": properties.schemaId,
|
|
1013
|
+
"Schema Name": properties.schemaName,
|
|
1014
|
+
"Branch Id": properties.branchId,
|
|
1015
|
+
"Branch Name": properties.branchName,
|
|
1016
|
+
"Client": sysClient,
|
|
1017
|
+
"Version": sysVersion,
|
|
1018
|
+
}, {}, {});
|
|
1019
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
1020
|
+
// throw exception if messages is not empty
|
|
1021
|
+
if (messages.length !== 0) {
|
|
1022
|
+
throw new Error("Error sending event 'Cli Conflict Resolve Failed': " + messages[0].message)
|
|
1000
1023
|
}
|
|
1024
|
+
} else {
|
|
1025
|
+
messages.forEach(function(m) {
|
|
1026
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1001
1030
|
|
|
1002
|
-
|
|
1031
|
+
if (!__AVO_NOOP__) {
|
|
1032
|
+
return Promise.all([
|
|
1033
|
+
// report to Avo Inspector
|
|
1034
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Conflict Resolve Failed", {
|
|
1003
1035
|
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1004
1036
|
"Schema Id": properties.schemaId,
|
|
1005
1037
|
"Schema Name": properties.schemaName,
|
|
@@ -1007,89 +1039,89 @@ _avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {
|
|
|
1007
1039
|
"Branch Name": properties.branchName,
|
|
1008
1040
|
"Client": sysClient,
|
|
1009
1041
|
"Version": sysVersion,
|
|
1010
|
-
},
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1042
|
+
}, "4ZhoijIA2U", "67b876f2a00dbd0b854836a8adfca0084118e427ce3332a428dbfc563dab8bc0")
|
|
1043
|
+
: Promise.resolve(),
|
|
1044
|
+
// destination CustomNodeJS
|
|
1045
|
+
CustomNodeJS.logEvent(properties.userId_, "Cli Conflict Resolve Failed", {
|
|
1046
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1047
|
+
"Schema Id": properties.schemaId,
|
|
1048
|
+
"Schema Name": properties.schemaName,
|
|
1049
|
+
"Branch Id": properties.branchId,
|
|
1050
|
+
"Branch Name": properties.branchName,
|
|
1051
|
+
"Client": sysClient,
|
|
1052
|
+
"Version": sysVersion,
|
|
1053
|
+
}),
|
|
1054
|
+
]);
|
|
1055
|
+
} else {
|
|
1056
|
+
// do nothing
|
|
1057
|
+
return new Promise((resolve) => { resolve(null); });
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1022
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* Cli Conflict Resolve Succeeded: No description
|
|
1063
|
+
*
|
|
1064
|
+
* @param {object} properties - the properties associatied with this event
|
|
1065
|
+
* @param {string} properties.userId_ - User Id is required for server sources.
|
|
1066
|
+
* @param {bool} properties.cliInvokedByCi - True iff process.env.CI is set.
|
|
1067
|
+
* @param {string} properties.schemaId - The ID of the schema that this event is related to.
|
|
1068
|
+
* @param {string} properties.schemaName - Name of the schema that this event is related to.
|
|
1069
|
+
* @param {string} properties.branchId - The ID of the branch that this event is related to.
|
|
1070
|
+
* @param {string} properties.branchName - The name of the branch that this event is related to.
|
|
1071
|
+
*
|
|
1072
|
+
* @see {@link https://www.avo.app/schemas/fwtXqAc0fCLy7b7oGW40/events/yj_554q43i}
|
|
1073
|
+
*/
|
|
1074
|
+
export function cliConflictResolveSucceeded(properties) {
|
|
1075
|
+
properties = properties || {};
|
|
1076
|
+
if (__AVO_DEV__) {
|
|
1077
|
+
// assert properties
|
|
1078
|
+
var messages = [];
|
|
1079
|
+
messages = messages.concat(assertUserId_(properties.userId_));
|
|
1080
|
+
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
1081
|
+
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
1082
|
+
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
1083
|
+
messages = messages.concat(assertBranchId(properties.branchId));
|
|
1084
|
+
messages = messages.concat(assertBranchName(properties.branchName));
|
|
1085
|
+
messages = messages.concat(assertClient(sysClient));
|
|
1086
|
+
messages = messages.concat(assertVersion(sysVersion));
|
|
1087
|
+
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Conflict Resolve Succeeded", Object.keys(properties), [
|
|
1088
|
+
"userId_",
|
|
1089
|
+
"cliInvokedByCi",
|
|
1090
|
+
"schemaId",
|
|
1091
|
+
"schemaName",
|
|
1092
|
+
"branchId",
|
|
1093
|
+
"branchName"
|
|
1094
|
+
]));
|
|
1095
|
+
// debug console in Avo
|
|
1023
1096
|
if (!__AVO_NOOP__) {
|
|
1024
|
-
return
|
|
1025
|
-
// report to Avo Inspector
|
|
1026
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Conflict Resolve Failed", {
|
|
1027
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1028
|
-
"Schema Id": properties.schemaId,
|
|
1029
|
-
"Schema Name": properties.schemaName,
|
|
1030
|
-
"Branch Id": properties.branchId,
|
|
1031
|
-
"Branch Name": properties.branchName,
|
|
1032
|
-
"Client": sysClient,
|
|
1033
|
-
"Version": sysVersion,
|
|
1034
|
-
}, "4ZhoijIA2U", "e07643843a8cfcc6c2ff87db0bcc98ba5a2884171af80462b6030b7abd7055dd")
|
|
1035
|
-
: Promise.resolve(),
|
|
1036
|
-
// destination CustomNodeJS
|
|
1037
|
-
CustomNodeJS.logEvent(properties.userId_, "Cli Conflict Resolve Failed", {
|
|
1038
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1039
|
-
"Schema Id": properties.schemaId,
|
|
1040
|
-
"Schema Name": properties.schemaName,
|
|
1041
|
-
"Branch Id": properties.branchId,
|
|
1042
|
-
"Branch Name": properties.branchName,
|
|
1043
|
-
"Client": sysClient,
|
|
1044
|
-
"Version": sysVersion,
|
|
1045
|
-
}),
|
|
1046
|
-
]);
|
|
1047
|
-
} else {
|
|
1048
|
-
// do nothing
|
|
1049
|
-
return new Promise((resolve) => { resolve(null); });
|
|
1097
|
+
_avo_invoke(__AVO_ENV__, "yj_554q43i", "15ed68a02ce2178bd8be746d338dcec50f4e325069f03df6e5c164376fcb9c1f", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
1050
1098
|
}
|
|
1051
|
-
}
|
|
1052
1099
|
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
function cliConflictResolveSucceeded(properties) {
|
|
1067
|
-
properties = properties || {};
|
|
1068
|
-
if (__AVO_DEV__) {
|
|
1069
|
-
// assert properties
|
|
1070
|
-
var messages = [];
|
|
1071
|
-
messages = messages.concat(assertUserId_(properties.userId_));
|
|
1072
|
-
messages = messages.concat(assertCliInvokedByCi(properties.cliInvokedByCi));
|
|
1073
|
-
messages = messages.concat(assertSchemaId(properties.schemaId));
|
|
1074
|
-
messages = messages.concat(assertOptionalSchemaName(properties.schemaName));
|
|
1075
|
-
messages = messages.concat(assertBranchId(properties.branchId));
|
|
1076
|
-
messages = messages.concat(assertBranchName(properties.branchName));
|
|
1077
|
-
messages = messages.concat(assertClient(sysClient));
|
|
1078
|
-
messages = messages.concat(assertVersion(sysVersion));
|
|
1079
|
-
messages = messages.concat(AvoAssert.assertNoAdditionalProperties("Cli Conflict Resolve Succeeded", Object.keys(properties), [
|
|
1080
|
-
"userId_",
|
|
1081
|
-
"cliInvokedByCi",
|
|
1082
|
-
"schemaId",
|
|
1083
|
-
"schemaName",
|
|
1084
|
-
"branchId",
|
|
1085
|
-
"branchName"
|
|
1086
|
-
]));
|
|
1087
|
-
// debug console in Avo
|
|
1088
|
-
if (!__AVO_NOOP__) {
|
|
1089
|
-
_avo_invoke(__AVO_ENV__, "yj_554q43i", "b457edd4df6bc469fbec7971b26fd46ce11aa405aa957ab11eb670edb91ca1b0", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');
|
|
1100
|
+
InternalAvoLogger.logEventSent("Cli Conflict Resolve Succeeded", {
|
|
1101
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1102
|
+
"Schema Id": properties.schemaId,
|
|
1103
|
+
"Schema Name": properties.schemaName,
|
|
1104
|
+
"Branch Id": properties.branchId,
|
|
1105
|
+
"Branch Name": properties.branchName,
|
|
1106
|
+
"Client": sysClient,
|
|
1107
|
+
"Version": sysVersion,
|
|
1108
|
+
}, {}, {});
|
|
1109
|
+
if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {
|
|
1110
|
+
// throw exception if messages is not empty
|
|
1111
|
+
if (messages.length !== 0) {
|
|
1112
|
+
throw new Error("Error sending event 'Cli Conflict Resolve Succeeded': " + messages[0].message)
|
|
1090
1113
|
}
|
|
1114
|
+
} else {
|
|
1115
|
+
messages.forEach(function(m) {
|
|
1116
|
+
console[__REPORT_FAILURE_AS__ || 'error']("[avo] " + m.message);
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1091
1120
|
|
|
1092
|
-
|
|
1121
|
+
if (!__AVO_NOOP__) {
|
|
1122
|
+
return Promise.all([
|
|
1123
|
+
// report to Avo Inspector
|
|
1124
|
+
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Conflict Resolve Succeeded", {
|
|
1093
1125
|
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1094
1126
|
"Schema Id": properties.schemaId,
|
|
1095
1127
|
"Schema Name": properties.schemaName,
|
|
@@ -1097,67 +1129,42 @@ _avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {
|
|
|
1097
1129
|
"Branch Name": properties.branchName,
|
|
1098
1130
|
"Client": sysClient,
|
|
1099
1131
|
"Version": sysVersion,
|
|
1100
|
-
},
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
__INSPECTOR__ != null ? __INSPECTOR__._avoFunctionTrackSchemaFromEvent("Cli Conflict Resolve Succeeded", {
|
|
1117
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1118
|
-
"Schema Id": properties.schemaId,
|
|
1119
|
-
"Schema Name": properties.schemaName,
|
|
1120
|
-
"Branch Id": properties.branchId,
|
|
1121
|
-
"Branch Name": properties.branchName,
|
|
1122
|
-
"Client": sysClient,
|
|
1123
|
-
"Version": sysVersion,
|
|
1124
|
-
}, "yj_554q43i", "b457edd4df6bc469fbec7971b26fd46ce11aa405aa957ab11eb670edb91ca1b0")
|
|
1125
|
-
: Promise.resolve(),
|
|
1126
|
-
// destination CustomNodeJS
|
|
1127
|
-
CustomNodeJS.logEvent(properties.userId_, "Cli Conflict Resolve Succeeded", {
|
|
1128
|
-
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1129
|
-
"Schema Id": properties.schemaId,
|
|
1130
|
-
"Schema Name": properties.schemaName,
|
|
1131
|
-
"Branch Id": properties.branchId,
|
|
1132
|
-
"Branch Name": properties.branchName,
|
|
1133
|
-
"Client": sysClient,
|
|
1134
|
-
"Version": sysVersion,
|
|
1135
|
-
}),
|
|
1136
|
-
]);
|
|
1137
|
-
} else {
|
|
1138
|
-
// do nothing
|
|
1139
|
-
return new Promise((resolve) => { resolve(null); });
|
|
1140
|
-
}
|
|
1132
|
+
}, "yj_554q43i", "15ed68a02ce2178bd8be746d338dcec50f4e325069f03df6e5c164376fcb9c1f")
|
|
1133
|
+
: Promise.resolve(),
|
|
1134
|
+
// destination CustomNodeJS
|
|
1135
|
+
CustomNodeJS.logEvent(properties.userId_, "Cli Conflict Resolve Succeeded", {
|
|
1136
|
+
"Cli Invoked by Ci": properties.cliInvokedByCi,
|
|
1137
|
+
"Schema Id": properties.schemaId,
|
|
1138
|
+
"Schema Name": properties.schemaName,
|
|
1139
|
+
"Branch Id": properties.branchId,
|
|
1140
|
+
"Branch Name": properties.branchName,
|
|
1141
|
+
"Client": sysClient,
|
|
1142
|
+
"Version": sysVersion,
|
|
1143
|
+
}),
|
|
1144
|
+
]);
|
|
1145
|
+
} else {
|
|
1146
|
+
// do nothing
|
|
1147
|
+
return new Promise((resolve) => { resolve(null); });
|
|
1141
1148
|
}
|
|
1149
|
+
}
|
|
1142
1150
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}(typeof exports === 'undefined' ? this.Avo = {} : exports));
|
|
1151
|
+
export default {
|
|
1152
|
+
setAvoLogger: setAvoLogger,
|
|
1153
|
+
SignInError: SignInError,
|
|
1154
|
+
Client: Client,
|
|
1155
|
+
AuthenticationMethod: AuthenticationMethod,
|
|
1156
|
+
CliAction: CliAction,
|
|
1157
|
+
signedIn: signedIn,
|
|
1158
|
+
signInFailed: signInFailed,
|
|
1159
|
+
cliInvoked: cliInvoked,
|
|
1160
|
+
cliInstalled: cliInstalled,
|
|
1161
|
+
cliConflictResolveAttempted: cliConflictResolveAttempted,
|
|
1162
|
+
cliConflictResolveFailed: cliConflictResolveFailed,
|
|
1163
|
+
cliConflictResolveSucceeded: cliConflictResolveSucceeded,
|
|
1164
|
+
setSystemProperties: setSystemProperties,
|
|
1165
|
+
initAvo: initAvo,
|
|
1166
|
+
avoInspectorApiKey: avoInspectorApiKey,
|
|
1167
|
+
}
|
|
1161
1168
|
|
|
1162
1169
|
// AVOMODULEMAP:"Avo"
|
|
1163
1170
|
// AVOEVENTMAP:["signedIn","signInFailed","cliInvoked","cliInstalled","cliConflictResolveAttempted","cliConflictResolveFailed","cliConflictResolveSucceeded"]
|