application-sidebar 1.0.2 → 1.0.3

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.
@@ -92,7 +92,7 @@ const MENULIST = [
92
92
  "link": "dsp/overview",
93
93
  "subscription_types": ['DSP'],
94
94
  "account_type": ['DSP'],
95
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
95
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
96
96
  },
97
97
  {
98
98
  "id": "ams_dsp_order",
@@ -104,7 +104,7 @@ const MENULIST = [
104
104
  "link": "dsp/order",
105
105
  "subscription_types": ['DSP'],
106
106
  "account_type": ['DSP'],
107
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
107
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
108
108
  },
109
109
  {
110
110
  "id": "ams_dsp_line_items",
@@ -116,7 +116,7 @@ const MENULIST = [
116
116
  "link": "dsp/line-item",
117
117
  "subscription_types": ['DSP'],
118
118
  "account_type": ['DSP'],
119
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
119
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
120
120
  },
121
121
  {
122
122
  "id": "ams_dsp_creatives",
@@ -128,7 +128,7 @@ const MENULIST = [
128
128
  "link": "dsp/creatives",
129
129
  "subscription_types": ['DSP'],
130
130
  "account_type": ['DSP'],
131
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
131
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
132
132
  },
133
133
  {
134
134
  "id": "ams_dsp_products",
@@ -140,7 +140,7 @@ const MENULIST = [
140
140
  "link": "dsp/products",
141
141
  "subscription_types": ['DSP'],
142
142
  "account_type": ['DSP'],
143
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
143
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
144
144
  },
145
145
  {
146
146
  "id": "ams_dsp_settings",
@@ -151,7 +151,7 @@ const MENULIST = [
151
151
  "campaign_types": [],
152
152
  "subscription_types": ['DSP'],
153
153
  "account_type": ['DSP'],
154
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST'],
154
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST'],
155
155
  "children": [
156
156
  {
157
157
  "id": 'ams_dsp_rules',
@@ -162,7 +162,7 @@ const MENULIST = [
162
162
  "route": "rules",
163
163
  "subscription_types": ['DSP'],
164
164
  "account_type": ['DSP'],
165
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST']
165
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST']
166
166
  },
167
167
  {
168
168
  "id": "ams_dsp_change_history",
@@ -173,7 +173,7 @@ const MENULIST = [
173
173
  "link": "dsp/change-history",
174
174
  "subscription_types": ['DSP'],
175
175
  "account_type": ['DSP'],
176
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST']
176
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST']
177
177
  },
178
178
  ]
179
179
  }
@@ -560,7 +560,7 @@ const MENULIST = [
560
560
  "account_type": ['WALMART'],
561
561
  "subscription_types": ['WALMART'],
562
562
  "defaulturl": 'walmart/',
563
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
563
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
564
564
  "order": 12,
565
565
  "organization_setting_not_in": ["SHOW_ONLY_IW_AMC_IN_LEFT_NAV"],
566
566
  "visibility_roles_not_in": ['AMC_BRAND_READ_ONLY'],
@@ -752,7 +752,7 @@ const MENULIST = [
752
752
  "link": "instacart/instacart-overview",
753
753
  "subscription_types": ['INSTACART'],
754
754
  "account_type": ['INSTACART'],
755
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
755
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
756
756
  },
757
757
  {
758
758
  "id": "instacart_campaigns",
@@ -764,7 +764,7 @@ const MENULIST = [
764
764
  "link": "instacart/instacart-campaigns",
765
765
  "subscription_types": ['INSTACART'],
766
766
  "account_type": ['INSTACART'],
767
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
767
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
768
768
  }, {
769
769
  "id": "instacart_adgroups",
770
770
  "name": 'Ad Groups',
@@ -775,7 +775,7 @@ const MENULIST = [
775
775
  "link": "instacart/instacart-adgroups",
776
776
  "subscription_types": ['INSTACART'],
777
777
  "account_type": ['INSTACART'],
778
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
778
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
779
779
  }, {
780
780
  "id": "instacart_products",
781
781
  "name": 'Products',
@@ -786,7 +786,7 @@ const MENULIST = [
786
786
  "link": "instacart/instacart-products",
787
787
  "subscription_types": ['INSTACART'],
788
788
  "account_type": ['INSTACART'],
789
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
789
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
790
790
  }, {
791
791
  "id": "instacart_keywords",
792
792
  "name": 'Keywords',
@@ -797,7 +797,7 @@ const MENULIST = [
797
797
  "link": "instacart/instacart-keywords",
798
798
  "subscription_types": ['INSTACART'],
799
799
  "account_type": ['INSTACART'],
800
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
800
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
801
801
  },
802
802
  {
803
803
  "id": "instacart_settings",
@@ -808,7 +808,7 @@ const MENULIST = [
808
808
  "campaign_types": [],
809
809
  "subscription_types": ['INSTACART'],
810
810
  "account_type": ['INSTACART'],
811
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST'],
811
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST'],
812
812
  "children": [
813
813
  {
814
814
  "id": 'instacart_rules',
@@ -820,7 +820,7 @@ const MENULIST = [
820
820
  "campaign_types": [],
821
821
  "subscription_types": ['INSTACART'],
822
822
  "account_type": ['INSTACART'],
823
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST'],
823
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST'],
824
824
  },
825
825
  {
826
826
  "id": 'instacart_change_history',
@@ -832,7 +832,7 @@ const MENULIST = [
832
832
  "campaign_types": [],
833
833
  "subscription_types": ['INSTACART'],
834
834
  "account_type": ['INSTACART'],
835
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST'],
835
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST'],
836
836
  },
837
837
  {
838
838
  "id": 'instacart_monthly_budget',
@@ -844,7 +844,7 @@ const MENULIST = [
844
844
  "campaign_types": [],
845
845
  "subscription_types": ['INSTACART'],
846
846
  "account_type": ['INSTACART'],
847
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST'],
847
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST'],
848
848
  }
849
849
  ]
850
850
  }
@@ -859,7 +859,7 @@ const MENULIST = [
859
859
  "icon": "",
860
860
  "account_type": ['CRITEO'],
861
861
  "subscription_types": ['CRITEO'],
862
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST'],
862
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST'],
863
863
  "order": 14,
864
864
  "organization_setting_not_in": ["SHOW_ONLY_IW_AMC_IN_LEFT_NAV"],
865
865
  "visibility_roles_not_in": ['AMC_BRAND_READ_ONLY'],
@@ -874,7 +874,7 @@ const MENULIST = [
874
874
  "link": "criteo/criteo-overview",
875
875
  "subscription_types": ['CRITEO'],
876
876
  "account_type": ['CRITEO'],
877
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST']
877
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST']
878
878
  },
879
879
  {
880
880
  "id": "criteo_campaigns",
@@ -886,7 +886,7 @@ const MENULIST = [
886
886
  "link": "criteo/criteo-campaigns",
887
887
  "subscription_types": ['CRITEO'],
888
888
  "account_type": ['CRITEO'],
889
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST']
889
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST']
890
890
  },
891
891
  {
892
892
  "id": "criteo_line_items",
@@ -898,7 +898,7 @@ const MENULIST = [
898
898
  "link": "criteo/criteo-line-items",
899
899
  "subscription_types": ['CRITEO'],
900
900
  "account_type": ['CRITEO'],
901
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST']
901
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST']
902
902
  },
903
903
  {
904
904
  "id": "criteo_products",
@@ -910,7 +910,7 @@ const MENULIST = [
910
910
  "link": "criteo/criteo-products",
911
911
  "subscription_types": ['CRITEO'],
912
912
  "account_type": ['CRITEO'],
913
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST']
913
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST']
914
914
  },
915
915
  {
916
916
  "id": "criteo_keywords",
@@ -922,7 +922,7 @@ const MENULIST = [
922
922
  "link": "criteo/criteo-keywords",
923
923
  "subscription_types": ['CRITEO'],
924
924
  "account_type": ['CRITEO'],
925
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_ANALYST']
925
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'READ_ONLY', 'DP_USER', 'DP_ANALYST']
926
926
  },
927
927
  {
928
928
  "id": "criteo_settings",
@@ -933,7 +933,7 @@ const MENULIST = [
933
933
  "campaign_types": [],
934
934
  "subscription_types": ['CRITEO'],
935
935
  "account_type": ['CRITEO'],
936
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST'],
936
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST'],
937
937
  "children": [
938
938
  {
939
939
  "id": "criteo_change_history",
@@ -944,7 +944,7 @@ const MENULIST = [
944
944
  "link": "criteo/criteo-change-history",
945
945
  "subscription_types": ['CRITEO'],
946
946
  "account_type": ['CRITEO'],
947
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST']
947
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST']
948
948
  },
949
949
  {
950
950
  "id": "criteo_monthly_budget",
@@ -955,7 +955,7 @@ const MENULIST = [
955
955
  "link": "criteo/criteo-monthly-budget",
956
956
  "subscription_types": ['CRITEO'],
957
957
  "account_type": ['CRITEO'],
958
- "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_ANALYST']
958
+ "visibility_roles": ['SUPER_ADMIN', 'SUPER_ADMIN_READ_ONLY', 'ADMIN', 'ANALYST', 'DP_USER', 'DP_ANALYST']
959
959
  }
960
960
  ]
961
961
  }
@@ -2293,16 +2293,11 @@ class ApplicationSidebarComponent {
2293
2293
  }
2294
2294
  checkApplicationDetails(applicationDetails) {
2295
2295
  this.errorMsg = '';
2296
- if (this.applicationDetails.applicationId == 'ads_amazon_dsp') {
2297
- if (applicationDetails.currentAccount && this.ApplicationSidebarService.isHavingAnyActiveSubs(applicationDetails.applicationId, applicationDetails.currentAccount.subscription, applicationDetails.currentAccount.type)) {
2298
- this.getStructureAPISupportData(this.applicationDetails.currentAccount);
2299
- }
2300
- else {
2301
- this.createAppDetails(this.applicationDetails);
2302
- }
2296
+ if (applicationDetails.applicationId == 'ads_amazon_dsp') {
2297
+ this.getStructureAPISupportData(applicationDetails.currentAccount);
2303
2298
  }
2304
2299
  else {
2305
- this.createAppDetails(this.applicationDetails);
2300
+ this.createAppDetails(applicationDetails);
2306
2301
  }
2307
2302
  }
2308
2303
  createAppDetails(applicationDetails) {
@@ -2551,9 +2546,12 @@ class ApplicationSidebarComponent {
2551
2546
  // }
2552
2547
  async getStructureAPISupportData(currentAccount) {
2553
2548
  try {
2554
- this.RestApiService.getStructureAPISupportData(currentAccount.organizationId, currentAccount.businessGroupId, currentAccount.amsAccountId).subscribe(response => {
2549
+ this.RestApiService.getStructureAPISupportData(currentAccount.organizationId, currentAccount.businessGroupId, currentAccount.amsAccountId).subscribe((response) => {
2555
2550
  this.ApplicationSidebarService.isStructureApiSupport = response ? response['structureApiSupport'] : undefined;
2556
2551
  this.createAppDetails(this.applicationDetails);
2552
+ }, (error) => {
2553
+ this.ApplicationSidebarService.isStructureApiSupport = undefined;
2554
+ this.createAppDetails(this.applicationDetails);
2557
2555
  });
2558
2556
  }
2559
2557
  catch (error) {