@ductape/sdk 0.0.4-v34 → 0.0.4-v35

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.
@@ -182,21 +182,21 @@ class ProductsBuilderService {
182
182
  }
183
183
  }
184
184
  async fetchHealthcheck(access_tag, tag, throwError = false) {
185
- const healthchecks = await this.productApi.fetchProductComponents(this.product_id, 'healthcheck');
185
+ const healthchecks = await this.productApi.fetchProductComponents(this.product_id, 'healthcheck', this.getUserAccess());
186
186
  const health = healthchecks.find((data) => data.tag === tag && data.app === access_tag);
187
187
  if (!health && throwError)
188
188
  throw new Error(`Healthcheck ${tag} not found`);
189
189
  return health || null;
190
190
  }
191
191
  async fetchHealthchecks(access_tag, throwError = false) {
192
- const healthchecks = await this.productApi.fetchProductComponents(this.product_id, 'healthcheck');
192
+ const healthchecks = await this.productApi.fetchProductComponents(this.product_id, 'healthcheck', this.getUserAccess());
193
193
  const health = healthchecks.filter((data) => data.app === access_tag);
194
194
  if (!health && throwError)
195
195
  throw new Error(`Access tag ${access_tag} not found`);
196
196
  return health;
197
197
  }
198
198
  async fetchProductHealthchecks() {
199
- const healthchecks = await this.productApi.fetchProductComponents(this.product_id, 'healthcheck');
199
+ const healthchecks = await this.productApi.fetchProductComponents(this.product_id, 'healthcheck', this.getUserAccess());
200
200
  return healthchecks;
201
201
  }
202
202
  async updateDataValidation(selector, update) {
@@ -430,11 +430,11 @@ class ProductsBuilderService {
430
430
  }
431
431
  }
432
432
  async fetchSessions(version) {
433
- const components = await this.productApi.fetchProductComponents(this.product_id, 'session');
433
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'session', this.getUserAccess());
434
434
  return components;
435
435
  }
436
436
  async fetchSession(tag) {
437
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'session', tag);
437
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'session', tag, this.getUserAccess());
438
438
  return component;
439
439
  }
440
440
  async createMessageBrokerTopic(data, throwErrorIfExists = false) {
@@ -806,11 +806,11 @@ class ProductsBuilderService {
806
806
  }
807
807
  }
808
808
  async fetchQuotas(version) {
809
- const components = await this.productApi.fetchProductComponents(this.product_id, 'quota');
809
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'quota', this.getUserAccess());
810
810
  return components;
811
811
  }
812
812
  async fetchQuota(tag, version) {
813
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'quota', tag);
813
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'quota', tag, this.getUserAccess());
814
814
  return component;
815
815
  }
816
816
  async createFallback(data) {
@@ -904,11 +904,11 @@ class ProductsBuilderService {
904
904
  }
905
905
  }
906
906
  async fetchFallbacks(version) {
907
- const components = await this.productApi.fetchProductComponents(this.product_id, 'fallback');
907
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'fallback', this.getUserAccess());
908
908
  return components;
909
909
  }
910
910
  async fetchFallback(tag, version) {
911
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'fallback', tag);
911
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'fallback', tag, this.getUserAccess());
912
912
  return component;
913
913
  }
914
914
  async createEnv(data, throwErrorIfExists = false) {
@@ -948,11 +948,11 @@ class ProductsBuilderService {
948
948
  }
949
949
  }
950
950
  async fetchEnvs(version) {
951
- const components = await this.productApi.fetchProductComponents(this.product_id, 'env');
951
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'env', this.getUserAccess());
952
952
  return components;
953
953
  }
954
954
  async fetchEnv(slug) {
955
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'env', slug);
955
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'env', slug, this.getUserAccess());
956
956
  return component;
957
957
  }
958
958
  async createMessageBroker(data, throwErrorIfExists = false) {
@@ -1044,11 +1044,11 @@ class ProductsBuilderService {
1044
1044
  }
1045
1045
  }
1046
1046
  async fetchMessageBrokers(version) {
1047
- const components = await this.productApi.fetchProductComponents(this.product_id, 'message_broker');
1047
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'message_broker', this.getUserAccess());
1048
1048
  return components;
1049
1049
  }
1050
1050
  async fetchMessageBroker(tag, version) {
1051
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'message_broker', tag);
1051
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'message_broker', tag, this.getUserAccess());
1052
1052
  return component;
1053
1053
  }
1054
1054
  async fetchStorageFiles(filter) {
@@ -1178,11 +1178,11 @@ class ProductsBuilderService {
1178
1178
  }
1179
1179
  }
1180
1180
  async fetchStorages(version) {
1181
- const components = await this.productApi.fetchProductComponents(this.product_id, 'storage');
1181
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'storage', this.getUserAccess());
1182
1182
  return components;
1183
1183
  }
1184
1184
  async fetchStorage(tag, version) {
1185
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'storage', tag);
1185
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'storage', tag, this.getUserAccess());
1186
1186
  return component;
1187
1187
  }
1188
1188
  async validateAppData(appData, app) {
@@ -1462,11 +1462,11 @@ class ProductsBuilderService {
1462
1462
  }
1463
1463
  }
1464
1464
  async fetchFunctions(version) {
1465
- const components = await this.productApi.fetchProductComponents(this.product_id, 'function');
1465
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'function', this.getUserAccess());
1466
1466
  return components;
1467
1467
  }
1468
1468
  async fetchFunction(tag, version) {
1469
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'function', tag);
1469
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'function', tag, this.getUserAccess());
1470
1470
  return component;
1471
1471
  }
1472
1472
  async createCache(data, throwErrorIfExists = false) {
@@ -1503,11 +1503,11 @@ class ProductsBuilderService {
1503
1503
  }
1504
1504
  }
1505
1505
  async fetchCaches(version) {
1506
- const components = await this.productApi.fetchProductComponents(this.product_id, 'cache');
1506
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'cache', this.getUserAccess());
1507
1507
  return components;
1508
1508
  }
1509
1509
  async fetchCache(tag, version) {
1510
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'cache', tag);
1510
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'cache', tag, this.getUserAccess());
1511
1511
  return component;
1512
1512
  }
1513
1513
  async createNotification(data, throwErrorIfExists = false) {
@@ -1739,11 +1739,11 @@ class ProductsBuilderService {
1739
1739
  }
1740
1740
  }
1741
1741
  async fetchNotifications(version) {
1742
- const components = await this.productApi.fetchProductComponents(this.product_id, 'notification');
1742
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'notification', this.getUserAccess());
1743
1743
  return components;
1744
1744
  }
1745
1745
  async fetchNotification(tag, version) {
1746
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'notification', tag);
1746
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'notification', tag, this.getUserAccess());
1747
1747
  return component;
1748
1748
  }
1749
1749
  validateFeatureSequence(array) {
@@ -2776,11 +2776,11 @@ class ProductsBuilderService {
2776
2776
  }
2777
2777
  }
2778
2778
  async fetchFeatures() {
2779
- const components = await this.productApi.fetchProductComponents(this.product_id, 'feature');
2779
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'feature', this.getUserAccess());
2780
2780
  return components;
2781
2781
  }
2782
2782
  async fetchFeature(tag) {
2783
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'feature', tag);
2783
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'feature', tag, this.getUserAccess());
2784
2784
  return component;
2785
2785
  }
2786
2786
  async createDatabase(data, throwErrorIfExists = false) {
@@ -2871,11 +2871,11 @@ class ProductsBuilderService {
2871
2871
  }
2872
2872
  }
2873
2873
  async fetchDatabases() {
2874
- const components = await this.productApi.fetchProductComponents(this.product_id, 'database');
2874
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'database', this.getUserAccess());
2875
2875
  return components;
2876
2876
  }
2877
2877
  async fetchDatabase(tag) {
2878
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'database', tag);
2878
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'database', tag, this.getUserAccess());
2879
2879
  return component;
2880
2880
  }
2881
2881
  async createDatabaseAction(data, throwErrorIfExists = false) {
@@ -3152,11 +3152,11 @@ class ProductsBuilderService {
3152
3152
  }
3153
3153
  }
3154
3154
  async fetchJobs() {
3155
- const components = await this.productApi.fetchProductComponents(this.product_id, 'job');
3155
+ const components = await this.productApi.fetchProductComponents(this.product_id, 'job', this.getUserAccess());
3156
3156
  return components;
3157
3157
  }
3158
3158
  async fetchJob(tag) {
3159
- const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'job', tag);
3159
+ const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'job', tag, this.getUserAccess());
3160
3160
  return component;
3161
3161
  }
3162
3162
  getUserAccess() {