@auxcode/auxta 1.3.78-beta.101 → 1.3.78-beta.102

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/build/AuxTA.js CHANGED
@@ -82,7 +82,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
82
82
  catch (e) {
83
83
  console.log("Missing field in auxta.json:", e);
84
84
  }
85
- this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment, jsonConfig.bucket);
85
+ this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment, jsonConfig.bucket, true);
86
86
  }
87
87
  catch (e) {
88
88
  console.log("Missing or corrupted config: auxta.json. Searching in location:", file);
@@ -91,7 +91,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
91
91
  }
92
92
  }
93
93
  else {
94
- this.uploadModel = new upload_model_1.UploadModel('', '', '', '', '');
94
+ this.uploadModel = new upload_model_1.UploadModel('', '', '', '', '', true);
95
95
  }
96
96
  }
97
97
  run(event, overrideConfig) {
@@ -120,6 +120,8 @@ class AuxTA extends code_helper_1.FunctionHelper {
120
120
  this.uploadModel.baseUrl = overrideConfig.baseURL;
121
121
  if (overrideConfig.bucket)
122
122
  this.uploadModel.bucket = overrideConfig.bucket;
123
+ if (overrideConfig.isOfficial)
124
+ this.uploadModel.isOfficial = overrideConfig.isOfficial;
123
125
  this.config = (0, config_1.setupOverrideConfig)(overrideConfig);
124
126
  }
125
127
  }
@@ -10,7 +10,8 @@ export declare class UploadModel {
10
10
  private _retries;
11
11
  private _featureName;
12
12
  private _scenarioName;
13
- constructor(org: string, baseUrl: string, digitalProduct: string, environment: string, bucket: string);
13
+ private _isOfficial;
14
+ constructor(org: string, baseUrl: string, digitalProduct: string, environment: string, bucket: string, isOfficial: boolean);
14
15
  set currentSuite(value: string);
15
16
  set retries(value: number);
16
17
  get currentSuite(): string;
@@ -32,4 +33,6 @@ export declare class UploadModel {
32
33
  set featureName(value: string);
33
34
  get scenarioName(): string;
34
35
  set scenarioName(value: string);
36
+ get isOfficial(): boolean;
37
+ set isOfficial(value: boolean);
35
38
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UploadModel = void 0;
4
4
  class UploadModel {
5
- constructor(org, baseUrl, digitalProduct, environment, bucket) {
5
+ constructor(org, baseUrl, digitalProduct, environment, bucket, isOfficial) {
6
6
  this._reportId = '';
7
7
  this._nextSuites = [];
8
8
  this._currentSuite = '';
@@ -14,6 +14,7 @@ class UploadModel {
14
14
  this._baseUrl = baseUrl;
15
15
  this._featureName = '';
16
16
  this._scenarioName = '';
17
+ this._isOfficial = isOfficial;
17
18
  }
18
19
  set currentSuite(value) {
19
20
  this._currentSuite = value;
@@ -78,5 +79,11 @@ class UploadModel {
78
79
  set scenarioName(value) {
79
80
  this._scenarioName = value;
80
81
  }
82
+ get isOfficial() {
83
+ return this._isOfficial;
84
+ }
85
+ set isOfficial(value) {
86
+ this._isOfficial = value;
87
+ }
81
88
  }
82
89
  exports.UploadModel = UploadModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "1.3.78-beta.101",
3
+ "version": "1.3.78-beta.102",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",