browserstack-node-sdk 1.36.5 → 1.36.7

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.
Files changed (194) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/generated/sdk-messages-accessibility_grpc_pb.d.ts +1 -0
  41. package/generated/sdk-messages-accessibility_grpc_pb.js +1 -0
  42. package/generated/sdk-messages-accessibility_pb.d.ts +279 -0
  43. package/generated/sdk-messages-accessibility_pb.js +2186 -0
  44. package/generated/sdk-messages-ai_grpc_pb.d.ts +1 -0
  45. package/generated/sdk-messages-ai_grpc_pb.js +1 -0
  46. package/generated/sdk-messages-ai_pb.d.ts +217 -0
  47. package/generated/sdk-messages-ai_pb.js +1650 -0
  48. package/generated/sdk-messages-observability_grpc_pb.d.ts +1 -0
  49. package/generated/sdk-messages-observability_grpc_pb.js +1 -0
  50. package/generated/sdk-messages-observability_pb.d.ts +178 -0
  51. package/generated/sdk-messages-observability_pb.js +1377 -0
  52. package/generated/sdk-messages-percy_grpc_pb.d.ts +1 -0
  53. package/generated/sdk-messages-percy_grpc_pb.js +1 -0
  54. package/generated/sdk-messages-percy_pb.d.ts +37 -0
  55. package/generated/sdk-messages-percy_pb.js +266 -0
  56. package/generated/sdk-messages-testhub_grpc_pb.d.ts +1 -0
  57. package/generated/sdk-messages-testhub_grpc_pb.js +1 -0
  58. package/generated/sdk-messages-testhub_pb.d.ts +39 -0
  59. package/generated/sdk-messages-testhub_pb.js +290 -0
  60. package/generated/sdk-messages_grpc_pb.d.ts +1 -0
  61. package/generated/sdk-messages_grpc_pb.js +1 -0
  62. package/generated/sdk-messages_pb.d.ts +1105 -0
  63. package/generated/sdk-messages_pb.js +8580 -0
  64. package/generated/sdk_grpc_pb.d.ts +113 -0
  65. package/generated/sdk_grpc_pb.js +609 -0
  66. package/generated/sdk_pb.d.ts +9 -0
  67. package/generated/sdk_pb.js +31 -0
  68. package/package.json +7 -1
  69. package/src/ai-sdk-node/bundle.js +1 -1
  70. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  71. package/src/bin/codeceptjs/command.js +1 -1
  72. package/src/bin/codeceptjs/helper.js +1 -1
  73. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  74. package/src/bin/cucumber-js/command.js +1 -1
  75. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  76. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  77. package/src/bin/cucumber-js/test-observability.js +1 -1
  78. package/src/bin/cucumber-js/test.setup.js +1 -1
  79. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  80. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  81. package/src/bin/integrations/command.js +1 -1
  82. package/src/bin/integrations/constants.js +1 -1
  83. package/src/bin/jest/command.js +1 -1
  84. package/src/bin/jest/customImplements/customCircus.js +1 -1
  85. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  86. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  87. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  88. package/src/bin/jest/jest.setup.js +1 -1
  89. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  90. package/src/bin/jest/test-observability/helper.js +1 -1
  91. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  92. package/src/bin/jest/test-observability/test-details.js +1 -1
  93. package/src/bin/jest/test_before.setup.js +1 -1
  94. package/src/bin/launcher/launcher.js +1 -1
  95. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  96. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  97. package/src/bin/mocha/command.js +1 -1
  98. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  99. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  100. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  101. package/src/bin/mocha/test.setup.js +1 -1
  102. package/src/bin/nightwatch/command.js +1 -1
  103. package/src/bin/playwright/accessibility-helper.js +1 -1
  104. package/src/bin/playwright/command.js +1 -1
  105. package/src/bin/playwright/globalSetup.js +1 -1
  106. package/src/bin/playwright/mock-process.js +1 -1
  107. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  108. package/src/bin/playwright/patches.js +1 -1
  109. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  110. package/src/bin/playwright/reporter/reporter.js +1 -1
  111. package/src/bin/playwright/reporter/test-details.js +1 -1
  112. package/src/bin/playwright/sessionDetails.js +1 -1
  113. package/src/bin/runner.js +1 -1
  114. package/src/bin/setup.js +1 -1
  115. package/src/bin/test-runner/index.js +1 -1
  116. package/src/bin/test-runner/runTest.js +1 -1
  117. package/src/bin/test-runner/testWorker.js +1 -1
  118. package/src/bin/utils/constants.js +1 -1
  119. package/src/bin/utils/log4jsAppender.js +1 -1
  120. package/src/bin/utils/logPatcher.js +1 -1
  121. package/src/bin/utils/logReportingAPI.js +1 -1
  122. package/src/bin/v2/TestInfo.js +1 -0
  123. package/src/bin/v2/browserstackCLI.js +1 -0
  124. package/src/bin/v2/cliUtils.js +1 -0
  125. package/src/bin/v2/customTagManager.js +1 -0
  126. package/src/bin/v2/eventDispatcher.js +1 -0
  127. package/src/bin/v2/framework/automationFramework.js +1 -0
  128. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -0
  129. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -0
  130. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -0
  131. package/src/bin/v2/framework/playwrightTestFramework.js +1 -0
  132. package/src/bin/v2/framework/testFramework.js +1 -0
  133. package/src/bin/v2/grpcClient.js +1 -0
  134. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -0
  135. package/src/bin/v2/instances/testFrameworkInstance.js +1 -0
  136. package/src/bin/v2/instances/trackedContext.js +1 -0
  137. package/src/bin/v2/instances/trackedInstance.js +1 -0
  138. package/src/bin/v2/modules/accessibilityModule.js +1 -0
  139. package/src/bin/v2/modules/baseModule.js +1 -0
  140. package/src/bin/v2/modules/observabilityModule.js +1 -0
  141. package/src/bin/v2/modules/playwrightDriverModule.js +1 -0
  142. package/src/bin/v2/modules/testhubModule.js +1 -0
  143. package/src/bin/v2/state/automationFrameworkState.js +1 -0
  144. package/src/bin/v2/state/hookState.js +1 -0
  145. package/src/bin/v2/state/testFrameworkState.js +1 -0
  146. package/src/bin/v2/uploadAttachmentsManager.js +1 -0
  147. package/src/bin/vanilla-js/command.js +1 -1
  148. package/src/browserStackSdk.js +1 -1
  149. package/src/helpers/BrowserStackSetup.js +1 -1
  150. package/src/helpers/accessibility-automation/constants.js +1 -1
  151. package/src/helpers/accessibility-automation/helper.js +1 -1
  152. package/src/helpers/accessibility-automation/scripts.js +1 -1
  153. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  154. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  155. package/src/helpers/ats/constants.js +1 -1
  156. package/src/helpers/ats/helper.js +1 -1
  157. package/src/helpers/capsMapping.js +1 -1
  158. package/src/helpers/central-scanner/constants.js +1 -1
  159. package/src/helpers/central-scanner/helpers.js +1 -1
  160. package/src/helpers/classLogger.js +1 -0
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/processHelper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/fail-fast/fileHelper.js +1 -0
  185. package/src/helpers/test-orchestration/fail-fast/jest.js +1 -0
  186. package/src/helpers/test-orchestration/fail-fast/requestUtils.js +1 -0
  187. package/src/helpers/testhub/constants.js +1 -1
  188. package/src/helpers/testhub/testhubHandler.js +1 -1
  189. package/src/helpers/testhub/utils.js +1 -1
  190. package/src/helpers/timeoutPromise.js +1 -1
  191. package/src/helpers/utilities.js +1 -1
  192. package/src/helpers/w3cMapping.js +1 -1
  193. package/src/hubAllocationMethods.js +1 -1
  194. package/src/index.js +1 -1
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,37 @@
1
+ // package: browserstack.sdk.v1
2
+ // file: sdk-messages-percy.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class Percy extends jspb.Message {
7
+ getSuccess(): boolean;
8
+ setSuccess(value: boolean): void;
9
+
10
+ getPercyCaptureMode(): string;
11
+ setPercyCaptureMode(value: string): void;
12
+
13
+ getPercyBuildId(): string;
14
+ setPercyBuildId(value: string): void;
15
+
16
+ getIsPercyAutoEnabled(): boolean;
17
+ setIsPercyAutoEnabled(value: boolean): void;
18
+
19
+ serializeBinary(): Uint8Array;
20
+ toObject(includeInstance?: boolean): Percy.AsObject;
21
+ static toObject(includeInstance: boolean, msg: Percy): Percy.AsObject;
22
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
23
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
24
+ static serializeBinaryToWriter(message: Percy, writer: jspb.BinaryWriter): void;
25
+ static deserializeBinary(bytes: Uint8Array): Percy;
26
+ static deserializeBinaryFromReader(message: Percy, reader: jspb.BinaryReader): Percy;
27
+ }
28
+
29
+ export namespace Percy {
30
+ export type AsObject = {
31
+ success: boolean,
32
+ percyCaptureMode: string,
33
+ percyBuildId: string,
34
+ isPercyAutoEnabled: boolean,
35
+ }
36
+ }
37
+
@@ -0,0 +1,266 @@
1
+ // source: sdk-messages-percy.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.browserstack.sdk.v1.Percy', null, global);
25
+ /**
26
+ * Generated by JsPbCodeGenerator.
27
+ * @param {Array=} opt_data Optional initial data array, typically from a
28
+ * server response, or constructed directly in Javascript. The array is used
29
+ * in place and becomes part of the constructed object. It is not cloned.
30
+ * If no data is provided, the constructed object will be empty, but still
31
+ * valid.
32
+ * @extends {jspb.Message}
33
+ * @constructor
34
+ */
35
+ proto.browserstack.sdk.v1.Percy = function(opt_data) {
36
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
37
+ };
38
+ goog.inherits(proto.browserstack.sdk.v1.Percy, jspb.Message);
39
+ if (goog.DEBUG && !COMPILED) {
40
+ /**
41
+ * @public
42
+ * @override
43
+ */
44
+ proto.browserstack.sdk.v1.Percy.displayName = 'proto.browserstack.sdk.v1.Percy';
45
+ }
46
+
47
+
48
+
49
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50
+ /**
51
+ * Creates an object representation of this proto.
52
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53
+ * Optional fields that are not set will be set to undefined.
54
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55
+ * For the list of reserved names please see:
56
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58
+ * JSPB instance for transitional soy proto support:
59
+ * http://goto/soy-param-migration
60
+ * @return {!Object}
61
+ */
62
+ proto.browserstack.sdk.v1.Percy.prototype.toObject = function(opt_includeInstance) {
63
+ return proto.browserstack.sdk.v1.Percy.toObject(opt_includeInstance, this);
64
+ };
65
+
66
+
67
+ /**
68
+ * Static version of the {@see toObject} method.
69
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70
+ * the JSPB instance for transitional soy proto support:
71
+ * http://goto/soy-param-migration
72
+ * @param {!proto.browserstack.sdk.v1.Percy} msg The msg instance to transform.
73
+ * @return {!Object}
74
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75
+ */
76
+ proto.browserstack.sdk.v1.Percy.toObject = function(includeInstance, msg) {
77
+ var f, obj = {
78
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
79
+ percyCaptureMode: jspb.Message.getFieldWithDefault(msg, 2, ""),
80
+ percyBuildId: jspb.Message.getFieldWithDefault(msg, 3, ""),
81
+ isPercyAutoEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
82
+ };
83
+
84
+ if (includeInstance) {
85
+ obj.$jspbMessageInstance = msg;
86
+ }
87
+ return obj;
88
+ };
89
+ }
90
+
91
+
92
+ /**
93
+ * Deserializes binary data (in protobuf wire format).
94
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
95
+ * @return {!proto.browserstack.sdk.v1.Percy}
96
+ */
97
+ proto.browserstack.sdk.v1.Percy.deserializeBinary = function(bytes) {
98
+ var reader = new jspb.BinaryReader(bytes);
99
+ var msg = new proto.browserstack.sdk.v1.Percy;
100
+ return proto.browserstack.sdk.v1.Percy.deserializeBinaryFromReader(msg, reader);
101
+ };
102
+
103
+
104
+ /**
105
+ * Deserializes binary data (in protobuf wire format) from the
106
+ * given reader into the given message object.
107
+ * @param {!proto.browserstack.sdk.v1.Percy} msg The message object to deserialize into.
108
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
109
+ * @return {!proto.browserstack.sdk.v1.Percy}
110
+ */
111
+ proto.browserstack.sdk.v1.Percy.deserializeBinaryFromReader = function(msg, reader) {
112
+ while (reader.nextField()) {
113
+ if (reader.isEndGroup()) {
114
+ break;
115
+ }
116
+ var field = reader.getFieldNumber();
117
+ switch (field) {
118
+ case 1:
119
+ var value = /** @type {boolean} */ (reader.readBool());
120
+ msg.setSuccess(value);
121
+ break;
122
+ case 2:
123
+ var value = /** @type {string} */ (reader.readString());
124
+ msg.setPercyCaptureMode(value);
125
+ break;
126
+ case 3:
127
+ var value = /** @type {string} */ (reader.readString());
128
+ msg.setPercyBuildId(value);
129
+ break;
130
+ case 4:
131
+ var value = /** @type {boolean} */ (reader.readBool());
132
+ msg.setIsPercyAutoEnabled(value);
133
+ break;
134
+ default:
135
+ reader.skipField();
136
+ break;
137
+ }
138
+ }
139
+ return msg;
140
+ };
141
+
142
+
143
+ /**
144
+ * Serializes the message to binary data (in protobuf wire format).
145
+ * @return {!Uint8Array}
146
+ */
147
+ proto.browserstack.sdk.v1.Percy.prototype.serializeBinary = function() {
148
+ var writer = new jspb.BinaryWriter();
149
+ proto.browserstack.sdk.v1.Percy.serializeBinaryToWriter(this, writer);
150
+ return writer.getResultBuffer();
151
+ };
152
+
153
+
154
+ /**
155
+ * Serializes the given message to binary data (in protobuf wire
156
+ * format), writing to the given BinaryWriter.
157
+ * @param {!proto.browserstack.sdk.v1.Percy} message
158
+ * @param {!jspb.BinaryWriter} writer
159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
160
+ */
161
+ proto.browserstack.sdk.v1.Percy.serializeBinaryToWriter = function(message, writer) {
162
+ var f = undefined;
163
+ f = message.getSuccess();
164
+ if (f) {
165
+ writer.writeBool(
166
+ 1,
167
+ f
168
+ );
169
+ }
170
+ f = message.getPercyCaptureMode();
171
+ if (f.length > 0) {
172
+ writer.writeString(
173
+ 2,
174
+ f
175
+ );
176
+ }
177
+ f = message.getPercyBuildId();
178
+ if (f.length > 0) {
179
+ writer.writeString(
180
+ 3,
181
+ f
182
+ );
183
+ }
184
+ f = message.getIsPercyAutoEnabled();
185
+ if (f) {
186
+ writer.writeBool(
187
+ 4,
188
+ f
189
+ );
190
+ }
191
+ };
192
+
193
+
194
+ /**
195
+ * optional bool success = 1;
196
+ * @return {boolean}
197
+ */
198
+ proto.browserstack.sdk.v1.Percy.prototype.getSuccess = function() {
199
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
200
+ };
201
+
202
+
203
+ /**
204
+ * @param {boolean} value
205
+ * @return {!proto.browserstack.sdk.v1.Percy} returns this
206
+ */
207
+ proto.browserstack.sdk.v1.Percy.prototype.setSuccess = function(value) {
208
+ return jspb.Message.setProto3BooleanField(this, 1, value);
209
+ };
210
+
211
+
212
+ /**
213
+ * optional string percy_capture_mode = 2;
214
+ * @return {string}
215
+ */
216
+ proto.browserstack.sdk.v1.Percy.prototype.getPercyCaptureMode = function() {
217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
218
+ };
219
+
220
+
221
+ /**
222
+ * @param {string} value
223
+ * @return {!proto.browserstack.sdk.v1.Percy} returns this
224
+ */
225
+ proto.browserstack.sdk.v1.Percy.prototype.setPercyCaptureMode = function(value) {
226
+ return jspb.Message.setProto3StringField(this, 2, value);
227
+ };
228
+
229
+
230
+ /**
231
+ * optional string percy_build_id = 3;
232
+ * @return {string}
233
+ */
234
+ proto.browserstack.sdk.v1.Percy.prototype.getPercyBuildId = function() {
235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
236
+ };
237
+
238
+
239
+ /**
240
+ * @param {string} value
241
+ * @return {!proto.browserstack.sdk.v1.Percy} returns this
242
+ */
243
+ proto.browserstack.sdk.v1.Percy.prototype.setPercyBuildId = function(value) {
244
+ return jspb.Message.setProto3StringField(this, 3, value);
245
+ };
246
+
247
+
248
+ /**
249
+ * optional bool is_percy_auto_enabled = 4;
250
+ * @return {boolean}
251
+ */
252
+ proto.browserstack.sdk.v1.Percy.prototype.getIsPercyAutoEnabled = function() {
253
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
254
+ };
255
+
256
+
257
+ /**
258
+ * @param {boolean} value
259
+ * @return {!proto.browserstack.sdk.v1.Percy} returns this
260
+ */
261
+ proto.browserstack.sdk.v1.Percy.prototype.setIsPercyAutoEnabled = function(value) {
262
+ return jspb.Message.setProto3BooleanField(this, 4, value);
263
+ };
264
+
265
+
266
+ goog.object.extend(exports, proto.browserstack.sdk.v1);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,39 @@
1
+ // package: browserstack.sdk.v1
2
+ // file: sdk-messages-testhub.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class TestHub extends jspb.Message {
7
+ getJwt(): string;
8
+ setJwt(value: string): void;
9
+
10
+ getBuildHashedId(): string;
11
+ setBuildHashedId(value: string): void;
12
+
13
+ getTesthubEvents(): boolean;
14
+ setTesthubEvents(value: boolean): void;
15
+
16
+ getErrors(): Uint8Array | string;
17
+ getErrors_asU8(): Uint8Array;
18
+ getErrors_asB64(): string;
19
+ setErrors(value: Uint8Array | string): void;
20
+
21
+ serializeBinary(): Uint8Array;
22
+ toObject(includeInstance?: boolean): TestHub.AsObject;
23
+ static toObject(includeInstance: boolean, msg: TestHub): TestHub.AsObject;
24
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
25
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
26
+ static serializeBinaryToWriter(message: TestHub, writer: jspb.BinaryWriter): void;
27
+ static deserializeBinary(bytes: Uint8Array): TestHub;
28
+ static deserializeBinaryFromReader(message: TestHub, reader: jspb.BinaryReader): TestHub;
29
+ }
30
+
31
+ export namespace TestHub {
32
+ export type AsObject = {
33
+ jwt: string,
34
+ buildHashedId: string,
35
+ testhubEvents: boolean,
36
+ errors: Uint8Array | string,
37
+ }
38
+ }
39
+
@@ -0,0 +1,290 @@
1
+ // source: sdk-messages-testhub.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.browserstack.sdk.v1.TestHub', null, global);
25
+ /**
26
+ * Generated by JsPbCodeGenerator.
27
+ * @param {Array=} opt_data Optional initial data array, typically from a
28
+ * server response, or constructed directly in Javascript. The array is used
29
+ * in place and becomes part of the constructed object. It is not cloned.
30
+ * If no data is provided, the constructed object will be empty, but still
31
+ * valid.
32
+ * @extends {jspb.Message}
33
+ * @constructor
34
+ */
35
+ proto.browserstack.sdk.v1.TestHub = function(opt_data) {
36
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
37
+ };
38
+ goog.inherits(proto.browserstack.sdk.v1.TestHub, jspb.Message);
39
+ if (goog.DEBUG && !COMPILED) {
40
+ /**
41
+ * @public
42
+ * @override
43
+ */
44
+ proto.browserstack.sdk.v1.TestHub.displayName = 'proto.browserstack.sdk.v1.TestHub';
45
+ }
46
+
47
+
48
+
49
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50
+ /**
51
+ * Creates an object representation of this proto.
52
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53
+ * Optional fields that are not set will be set to undefined.
54
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
55
+ * For the list of reserved names please see:
56
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58
+ * JSPB instance for transitional soy proto support:
59
+ * http://goto/soy-param-migration
60
+ * @return {!Object}
61
+ */
62
+ proto.browserstack.sdk.v1.TestHub.prototype.toObject = function(opt_includeInstance) {
63
+ return proto.browserstack.sdk.v1.TestHub.toObject(opt_includeInstance, this);
64
+ };
65
+
66
+
67
+ /**
68
+ * Static version of the {@see toObject} method.
69
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70
+ * the JSPB instance for transitional soy proto support:
71
+ * http://goto/soy-param-migration
72
+ * @param {!proto.browserstack.sdk.v1.TestHub} msg The msg instance to transform.
73
+ * @return {!Object}
74
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75
+ */
76
+ proto.browserstack.sdk.v1.TestHub.toObject = function(includeInstance, msg) {
77
+ var f, obj = {
78
+ jwt: jspb.Message.getFieldWithDefault(msg, 1, ""),
79
+ buildHashedId: jspb.Message.getFieldWithDefault(msg, 2, ""),
80
+ testhubEvents: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
81
+ errors: msg.getErrors_asB64()
82
+ };
83
+
84
+ if (includeInstance) {
85
+ obj.$jspbMessageInstance = msg;
86
+ }
87
+ return obj;
88
+ };
89
+ }
90
+
91
+
92
+ /**
93
+ * Deserializes binary data (in protobuf wire format).
94
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
95
+ * @return {!proto.browserstack.sdk.v1.TestHub}
96
+ */
97
+ proto.browserstack.sdk.v1.TestHub.deserializeBinary = function(bytes) {
98
+ var reader = new jspb.BinaryReader(bytes);
99
+ var msg = new proto.browserstack.sdk.v1.TestHub;
100
+ return proto.browserstack.sdk.v1.TestHub.deserializeBinaryFromReader(msg, reader);
101
+ };
102
+
103
+
104
+ /**
105
+ * Deserializes binary data (in protobuf wire format) from the
106
+ * given reader into the given message object.
107
+ * @param {!proto.browserstack.sdk.v1.TestHub} msg The message object to deserialize into.
108
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
109
+ * @return {!proto.browserstack.sdk.v1.TestHub}
110
+ */
111
+ proto.browserstack.sdk.v1.TestHub.deserializeBinaryFromReader = function(msg, reader) {
112
+ while (reader.nextField()) {
113
+ if (reader.isEndGroup()) {
114
+ break;
115
+ }
116
+ var field = reader.getFieldNumber();
117
+ switch (field) {
118
+ case 1:
119
+ var value = /** @type {string} */ (reader.readString());
120
+ msg.setJwt(value);
121
+ break;
122
+ case 2:
123
+ var value = /** @type {string} */ (reader.readString());
124
+ msg.setBuildHashedId(value);
125
+ break;
126
+ case 3:
127
+ var value = /** @type {boolean} */ (reader.readBool());
128
+ msg.setTesthubEvents(value);
129
+ break;
130
+ case 4:
131
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
132
+ msg.setErrors(value);
133
+ break;
134
+ default:
135
+ reader.skipField();
136
+ break;
137
+ }
138
+ }
139
+ return msg;
140
+ };
141
+
142
+
143
+ /**
144
+ * Serializes the message to binary data (in protobuf wire format).
145
+ * @return {!Uint8Array}
146
+ */
147
+ proto.browserstack.sdk.v1.TestHub.prototype.serializeBinary = function() {
148
+ var writer = new jspb.BinaryWriter();
149
+ proto.browserstack.sdk.v1.TestHub.serializeBinaryToWriter(this, writer);
150
+ return writer.getResultBuffer();
151
+ };
152
+
153
+
154
+ /**
155
+ * Serializes the given message to binary data (in protobuf wire
156
+ * format), writing to the given BinaryWriter.
157
+ * @param {!proto.browserstack.sdk.v1.TestHub} message
158
+ * @param {!jspb.BinaryWriter} writer
159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
160
+ */
161
+ proto.browserstack.sdk.v1.TestHub.serializeBinaryToWriter = function(message, writer) {
162
+ var f = undefined;
163
+ f = message.getJwt();
164
+ if (f.length > 0) {
165
+ writer.writeString(
166
+ 1,
167
+ f
168
+ );
169
+ }
170
+ f = message.getBuildHashedId();
171
+ if (f.length > 0) {
172
+ writer.writeString(
173
+ 2,
174
+ f
175
+ );
176
+ }
177
+ f = message.getTesthubEvents();
178
+ if (f) {
179
+ writer.writeBool(
180
+ 3,
181
+ f
182
+ );
183
+ }
184
+ f = message.getErrors_asU8();
185
+ if (f.length > 0) {
186
+ writer.writeBytes(
187
+ 4,
188
+ f
189
+ );
190
+ }
191
+ };
192
+
193
+
194
+ /**
195
+ * optional string jwt = 1;
196
+ * @return {string}
197
+ */
198
+ proto.browserstack.sdk.v1.TestHub.prototype.getJwt = function() {
199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
200
+ };
201
+
202
+
203
+ /**
204
+ * @param {string} value
205
+ * @return {!proto.browserstack.sdk.v1.TestHub} returns this
206
+ */
207
+ proto.browserstack.sdk.v1.TestHub.prototype.setJwt = function(value) {
208
+ return jspb.Message.setProto3StringField(this, 1, value);
209
+ };
210
+
211
+
212
+ /**
213
+ * optional string build_hashed_id = 2;
214
+ * @return {string}
215
+ */
216
+ proto.browserstack.sdk.v1.TestHub.prototype.getBuildHashedId = function() {
217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
218
+ };
219
+
220
+
221
+ /**
222
+ * @param {string} value
223
+ * @return {!proto.browserstack.sdk.v1.TestHub} returns this
224
+ */
225
+ proto.browserstack.sdk.v1.TestHub.prototype.setBuildHashedId = function(value) {
226
+ return jspb.Message.setProto3StringField(this, 2, value);
227
+ };
228
+
229
+
230
+ /**
231
+ * optional bool testhub_events = 3;
232
+ * @return {boolean}
233
+ */
234
+ proto.browserstack.sdk.v1.TestHub.prototype.getTesthubEvents = function() {
235
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
236
+ };
237
+
238
+
239
+ /**
240
+ * @param {boolean} value
241
+ * @return {!proto.browserstack.sdk.v1.TestHub} returns this
242
+ */
243
+ proto.browserstack.sdk.v1.TestHub.prototype.setTesthubEvents = function(value) {
244
+ return jspb.Message.setProto3BooleanField(this, 3, value);
245
+ };
246
+
247
+
248
+ /**
249
+ * optional bytes errors = 4;
250
+ * @return {!(string|Uint8Array)}
251
+ */
252
+ proto.browserstack.sdk.v1.TestHub.prototype.getErrors = function() {
253
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
254
+ };
255
+
256
+
257
+ /**
258
+ * optional bytes errors = 4;
259
+ * This is a type-conversion wrapper around `getErrors()`
260
+ * @return {string}
261
+ */
262
+ proto.browserstack.sdk.v1.TestHub.prototype.getErrors_asB64 = function() {
263
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
264
+ this.getErrors()));
265
+ };
266
+
267
+
268
+ /**
269
+ * optional bytes errors = 4;
270
+ * Note that Uint8Array is not supported on all browsers.
271
+ * @see http://caniuse.com/Uint8Array
272
+ * This is a type-conversion wrapper around `getErrors()`
273
+ * @return {!Uint8Array}
274
+ */
275
+ proto.browserstack.sdk.v1.TestHub.prototype.getErrors_asU8 = function() {
276
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
277
+ this.getErrors()));
278
+ };
279
+
280
+
281
+ /**
282
+ * @param {!(string|Uint8Array)} value
283
+ * @return {!proto.browserstack.sdk.v1.TestHub} returns this
284
+ */
285
+ proto.browserstack.sdk.v1.TestHub.prototype.setErrors = function(value) {
286
+ return jspb.Message.setProto3BytesField(this, 4, value);
287
+ };
288
+
289
+
290
+ goog.object.extend(exports, proto.browserstack.sdk.v1);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO