@useinsider/guido 1.0.3-beta.e1adf59 → 1.0.3-beta.e32f324
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/README.md +144 -3
- package/dist/components/Guido.vue.js +12 -10
- package/dist/components/Guido.vue2.js +84 -101
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +16 -15
- package/dist/components/organisms/header/RightSlot.vue.js +11 -11
- package/dist/components/organisms/header/RightSlot.vue2.js +23 -22
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +30 -17
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -10
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +19 -18
- package/dist/composables/useBlocksConfig.js +49 -0
- package/dist/composables/useGuidoActions.js +19 -9
- package/dist/composables/useHttp.js +52 -89
- package/dist/composables/useStripo.js +61 -162
- package/dist/config/compiler/unsubscribeCompilerRules.js +33 -28
- package/dist/config/migrator/index.js +7 -6
- package/dist/config/migrator/recommendationMigrator.js +293 -0
- package/dist/enums/date.js +6 -0
- package/dist/enums/defaults.js +16 -8
- package/dist/enums/onboarding.js +2 -1
- package/dist/enums/unsubscribe.js +27 -25
- package/dist/extensions/Blocks/Checkbox/control.js +15 -14
- package/dist/extensions/Blocks/Checkbox/extension.js +2 -2
- package/dist/extensions/Blocks/CouponBlock/extension.js +2 -2
- package/dist/extensions/Blocks/RadioButton/control.js +18 -17
- package/dist/extensions/Blocks/Recommendation/block.js +6 -3
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +103 -0
- package/dist/extensions/Blocks/Recommendation/constants.js +5 -0
- package/dist/extensions/Blocks/Recommendation/control.js +69 -40
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +42 -7
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +107 -22
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +160 -0
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +152 -0
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +180 -0
- package/dist/extensions/Blocks/common-control.js +125 -43
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +25 -19
- package/dist/extensions/DynamicContent/dynamic-content.js +128 -33
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +307 -100
- package/dist/package.json.js +1 -1
- package/dist/services/stripoApi.js +19 -49
- package/dist/src/@types/generic.d.ts +42 -6
- package/dist/src/components/Guido.vue.d.ts +4 -3
- package/dist/src/components/organisms/onboarding/NewVersionPopup.vue.d.ts +3 -1
- package/dist/src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +3 -1
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useBlocksConfig.d.ts +11 -0
- package/dist/src/composables/useGuidoActions.d.ts +9 -0
- package/dist/src/config/migrator/recommendationMigrator.d.ts +1 -0
- package/dist/src/enums/date.d.ts +4 -0
- package/dist/src/enums/onboarding.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +28 -0
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +51 -0
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +44 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +21 -0
- package/dist/src/extensions/DynamicContent/dynamic-content-modal.d.ts +9 -2
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +52 -2
- package/dist/src/stores/config.d.ts +10 -2
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/src/stores/editor.d.ts +1 -1
- package/dist/src/stores/onboarding.d.ts +1 -1
- package/dist/src/stores/preview.d.ts +1 -1
- package/dist/src/stores/recommendation.d.ts +1 -1
- package/dist/src/stores/save-as-template.d.ts +1 -1
- package/dist/src/stores/toaster.d.ts +1 -1
- package/dist/src/stores/unsubscribe.d.ts +1 -1
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/dateUtil.d.ts +21 -0
- package/dist/src/utils/environmentUtil.d.ts +5 -0
- package/dist/src/utils/genericUtil.d.ts +1 -0
- package/dist/static/styles/components/narrow-panel.css.js +10 -0
- package/dist/static/styles/customEditorStyle.css.js +5 -0
- package/dist/stores/config.js +5 -5
- package/dist/stores/dynamic-content.js +2 -2
- package/dist/stores/editor.js +1 -1
- package/dist/stores/onboarding.js +27 -27
- package/dist/stores/preview.js +1 -1
- package/dist/stores/recommendation.js +3 -3
- package/dist/stores/save-as-template.js +2 -2
- package/dist/stores/toaster.js +1 -1
- package/dist/stores/unsubscribe.js +1 -1
- package/dist/stores/version-history.js +4 -4
- package/dist/utils/dateUtil.js +24 -3
- package/dist/utils/environmentUtil.js +4 -0
- package/dist/utils/genericUtil.js +20 -9
- package/package.json +3 -3
- package/dist/composables/useApiErrorTracking.js +0 -120
- package/dist/composables/useErrorTracking.js +0 -98
- package/dist/composables/useStripoErrorCategory.js +0 -86
- package/dist/composables/useStripoSlackNotifier.js +0 -47
- package/dist/extensions/Blocks/Recommendation/template.js +0 -200
- package/dist/services/slackNotificationService.js +0 -167
- package/dist/services/stripoErrorDeduplicationService.js +0 -91
- package/dist/src/composables/useApiErrorTracking.d.ts +0 -26
- package/dist/src/composables/useErrorTracking.d.ts +0 -30
- package/dist/src/composables/useStripoErrorCategory.d.ts +0 -26
- package/dist/src/composables/useStripoSlackNotifier.d.ts +0 -8
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -6
- package/dist/src/services/slackNotificationService.d.ts +0 -110
- package/dist/src/services/stripoErrorDeduplicationService.d.ts +0 -75
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
const g = {
|
|
2
|
-
TITLE: "You May Also Like!"
|
|
3
|
-
}, h = `
|
|
4
|
-
<td align="left" class="ins-recommendation-v3-block-v2 esd-block-recommendation-v3-block">
|
|
5
|
-
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
6
|
-
<tr>
|
|
7
|
-
<td align="center" style="padding: 20px 0;">
|
|
8
|
-
<!-- Email Content Container -->
|
|
9
|
-
<table class="container"
|
|
10
|
-
width="600"
|
|
11
|
-
cellpadding="0"
|
|
12
|
-
cellspacing="0"
|
|
13
|
-
border="0"
|
|
14
|
-
style="max-width: 600px; width: 100%; background-color: #ffffff;">
|
|
15
|
-
<!-- Heading -->
|
|
16
|
-
<tr>
|
|
17
|
-
<td class="heading"
|
|
18
|
-
style="
|
|
19
|
-
font-size: 28px;
|
|
20
|
-
font-weight: bold;
|
|
21
|
-
color: #333333;
|
|
22
|
-
text-align: center;
|
|
23
|
-
padding: 30px 20px;">
|
|
24
|
-
{-{-TITLE-}-}
|
|
25
|
-
</td>
|
|
26
|
-
</tr>
|
|
27
|
-
|
|
28
|
-
<!-- Product Rows -->
|
|
29
|
-
{-{-PRODUCT_ROWS-}-}
|
|
30
|
-
</table>
|
|
31
|
-
<!-- End Email Content Container -->
|
|
32
|
-
</td>
|
|
33
|
-
</tr>
|
|
34
|
-
</table>
|
|
35
|
-
</td>
|
|
36
|
-
`, u = `
|
|
37
|
-
<tr>
|
|
38
|
-
<td style="padding: 0 20px;">
|
|
39
|
-
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
|
|
40
|
-
{-{-PRODUCTS-}-}
|
|
41
|
-
</table>
|
|
42
|
-
</td>
|
|
43
|
-
</tr>
|
|
44
|
-
`, m = `
|
|
45
|
-
<td width="{-{-COLUMN_WIDTH-}-}" style="padding: 0 5px;" valign="top" height="100%">
|
|
46
|
-
<table width="100%"
|
|
47
|
-
height="100%"
|
|
48
|
-
cellpadding="0"
|
|
49
|
-
cellspacing="0"
|
|
50
|
-
border="0"
|
|
51
|
-
class="product-card-wrapper"
|
|
52
|
-
style="background-color: #f8f8f8;">
|
|
53
|
-
<tr>
|
|
54
|
-
<td class="product-image-cell"
|
|
55
|
-
valign="top"
|
|
56
|
-
style="background-color: #e8f0f2; padding: 30px; text-align: center;">
|
|
57
|
-
<img src="{-{-PRODUCT_IMAGE-}-}"
|
|
58
|
-
alt="{-{-PRODUCT_NAME-}-}" width="120" style="max-width: 100%; height: auto; margin: 0 auto;">
|
|
59
|
-
</td>
|
|
60
|
-
</tr>
|
|
61
|
-
</table>
|
|
62
|
-
</td>
|
|
63
|
-
`, b = `
|
|
64
|
-
<td width="{-{-COLUMN_WIDTH-}-}" style="padding: 0 5px;" valign="top" height="100%">
|
|
65
|
-
<table width="100%"
|
|
66
|
-
height="100%"
|
|
67
|
-
cellpadding="0"
|
|
68
|
-
cellspacing="0"
|
|
69
|
-
border="0"
|
|
70
|
-
class="product-card-wrapper"
|
|
71
|
-
style="background-color: #f8f8f8;">
|
|
72
|
-
<tr>
|
|
73
|
-
<td class="product-name-cell"
|
|
74
|
-
valign="top"
|
|
75
|
-
style="font-size: 16px; color: #333333; font-weight: 600; padding: 15px 10px; text-align: center;">
|
|
76
|
-
{-{-PRODUCT_NAME-}-}
|
|
77
|
-
</td>
|
|
78
|
-
</tr>
|
|
79
|
-
</table>
|
|
80
|
-
</td>
|
|
81
|
-
`, x = `
|
|
82
|
-
<td width="{-{-COLUMN_WIDTH-}-}" style="padding: 0 5px;" valign="top" height="100%">
|
|
83
|
-
<table width="100%"
|
|
84
|
-
height="100%"
|
|
85
|
-
cellpadding="0"
|
|
86
|
-
cellspacing="0"
|
|
87
|
-
border="0"
|
|
88
|
-
class="product-card-wrapper"
|
|
89
|
-
style="background-color: #f8f8f8;">
|
|
90
|
-
<tr>
|
|
91
|
-
<td class="price-cell" valign="top" style="padding: 10px; text-align: center;">
|
|
92
|
-
<span class="current-price" style="font-size: 16px; color: #333333; font-weight: bold;">
|
|
93
|
-
18,00 TRY
|
|
94
|
-
</span>
|
|
95
|
-
<span class="old-price" style="font-size: 14px; color: #999999; text-decoration: line-through;">
|
|
96
|
-
20,00 TRY
|
|
97
|
-
</span>
|
|
98
|
-
</td>
|
|
99
|
-
</tr>
|
|
100
|
-
</table>
|
|
101
|
-
</td>
|
|
102
|
-
`, w = `
|
|
103
|
-
<td width="{-{-COLUMN_WIDTH-}-}" style="padding: 0 5px;" valign="top" height="100%">
|
|
104
|
-
<table width="100%"
|
|
105
|
-
height="100%"
|
|
106
|
-
cellpadding="0"
|
|
107
|
-
cellspacing="0"
|
|
108
|
-
border="0"
|
|
109
|
-
class="product-card-wrapper"
|
|
110
|
-
style="background-color: #f8f8f8;">
|
|
111
|
-
<tr>
|
|
112
|
-
<td class="button-cell" valign="top" style="padding: 15px 10px 20px 10px; text-align: center;">
|
|
113
|
-
<a href="#"
|
|
114
|
-
class="buy-button"
|
|
115
|
-
style="
|
|
116
|
-
display: inline-block;
|
|
117
|
-
width: 90%;
|
|
118
|
-
max-width: 150px;
|
|
119
|
-
padding: 12px 20px;
|
|
120
|
-
background-color: #ffffff;
|
|
121
|
-
color: #333333;
|
|
122
|
-
text-decoration: none;
|
|
123
|
-
border: 2px solid #cccccc;
|
|
124
|
-
font-size: 16px;
|
|
125
|
-
box-sizing: border-box;">
|
|
126
|
-
Buy
|
|
127
|
-
</a>
|
|
128
|
-
</td>
|
|
129
|
-
</tr>
|
|
130
|
-
</table>
|
|
131
|
-
</td>
|
|
132
|
-
`, f = `
|
|
133
|
-
<tr>
|
|
134
|
-
<td class="spacer" style="height: 20px;"></td>
|
|
135
|
-
</tr>
|
|
136
|
-
`;
|
|
137
|
-
function T() {
|
|
138
|
-
const c = [
|
|
139
|
-
{
|
|
140
|
-
name: "Beanie with Logo",
|
|
141
|
-
image: "https://inshoppingcart.com/ins-html/wp-content/uploads/2018/08/beanie-with-logo-1.jpg",
|
|
142
|
-
price: "18,00 TRY",
|
|
143
|
-
oldPrice: "20,00 TRY",
|
|
144
|
-
url: "https://example.com/product/1"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: "Belt",
|
|
148
|
-
image: "https://inshoppingcart.com/ins-html/wp-content/uploads/2018/09/belt-2.jpg",
|
|
149
|
-
price: "55,00 TRY",
|
|
150
|
-
oldPrice: "65,00 TRY",
|
|
151
|
-
url: "https://example.com/product/2"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: "Beanie",
|
|
155
|
-
image: "https://inshoppingcart.com/ins-html/wp-content/uploads/2018/08/beanie-with-logo-1.jpg",
|
|
156
|
-
price: "18,00 TRY",
|
|
157
|
-
oldPrice: "20,00 TRY",
|
|
158
|
-
url: "https://example.com/product/3"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: "Album",
|
|
162
|
-
image: "https://inshoppingcart.com/ins-html/wp-content/uploads/2018/12/poster_2_up.jpg",
|
|
163
|
-
price: "15,00 TRY",
|
|
164
|
-
oldPrice: "15,00 TRY",
|
|
165
|
-
url: "https://example.com/product/4"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: "Flying Ninja with a very long product name",
|
|
169
|
-
image: "https://inshoppingcart.com/ins-html/wp-content/uploads/2018/09/belt-2.jpg",
|
|
170
|
-
price: "12,00 TRY",
|
|
171
|
-
oldPrice: "15,00 TRY",
|
|
172
|
-
url: "https://example.com/product/5"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: "Single",
|
|
176
|
-
image: "https://inshoppingcart.com/ins-html/wp-content/uploads/2018/12/poster_2_up.jpg",
|
|
177
|
-
price: "22.555,00 TRY",
|
|
178
|
-
oldPrice: "33.989,00 TRY",
|
|
179
|
-
url: "https://example.com/product/6"
|
|
180
|
-
}
|
|
181
|
-
], l = 3, d = (100 / l).toFixed(2), a = [];
|
|
182
|
-
for (let t = 0; t < c.length; t += l)
|
|
183
|
-
a.push(c.slice(t, t + l));
|
|
184
|
-
let e = "";
|
|
185
|
-
return a.forEach((t, s) => {
|
|
186
|
-
s > 0 && (e += f);
|
|
187
|
-
let p = "", r = "", n = "", i = "";
|
|
188
|
-
t.forEach((o) => {
|
|
189
|
-
p += m.replace("{-{-PRODUCT_IMAGE-}-}", o.image).replace("{-{-PRODUCT_NAME-}-}", o.name), r += b.replace("{-{-PRODUCT_NAME-}-}", o.name), n += x, i += w;
|
|
190
|
-
}), e += u.replace("{-{-PRODUCTS-}-}", `
|
|
191
|
-
<tr>${p}</tr>
|
|
192
|
-
<tr>${r}</tr>
|
|
193
|
-
<tr>${n}</tr>
|
|
194
|
-
<tr>${i}</tr>
|
|
195
|
-
`), e = e.replaceAll("{-{-COLUMN_WIDTH-}-}", `${d}%`);
|
|
196
|
-
}), h.replace("{-{-TITLE-}-}", g.TITLE).replace("{-{-PRODUCT_ROWS-}-}", e);
|
|
197
|
-
}
|
|
198
|
-
export {
|
|
199
|
-
T as getDefaultTemplate
|
|
200
|
-
};
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
var d = Object.defineProperty;
|
|
2
|
-
var h = (t, e, r) => e in t ? d(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var i = (t, e, r) => h(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
class u {
|
|
5
|
-
constructor(e, r) {
|
|
6
|
-
i(this, "webhookUrl");
|
|
7
|
-
i(this, "channel");
|
|
8
|
-
i(this, "defaultUsername");
|
|
9
|
-
i(this, "enabled");
|
|
10
|
-
this.webhookUrl = e || void 0 || "", this.channel = (r == null ? void 0 : r.channel) || "#errors", this.defaultUsername = (r == null ? void 0 : r.username) || "Guido Error Bot", this.enabled = (r == null ? void 0 : r.enabled) !== !1, this.webhookUrl || (console.warn("[SlackNotificationService] Webhook URL not configured, Slack notifications disabled"), this.enabled = !1);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Send an error notification to Slack
|
|
14
|
-
*/
|
|
15
|
-
async sendErrorNotification(e) {
|
|
16
|
-
if (!this.enabled || !this.webhookUrl)
|
|
17
|
-
return !1;
|
|
18
|
-
try {
|
|
19
|
-
const r = this.buildErrorPayload(e), a = await fetch(this.webhookUrl, {
|
|
20
|
-
method: "POST",
|
|
21
|
-
headers: {
|
|
22
|
-
"Content-Type": "application/json"
|
|
23
|
-
},
|
|
24
|
-
body: JSON.stringify(r)
|
|
25
|
-
});
|
|
26
|
-
return a.ok ? !0 : (console.error("[SlackNotificationService] Failed to send Slack notification:", a.statusText), !1);
|
|
27
|
-
} catch (r) {
|
|
28
|
-
return console.error("[SlackNotificationService] Error sending Slack notification:", r), !1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Send a critical error that requires immediate attention
|
|
33
|
-
*/
|
|
34
|
-
async sendCriticalError(e, r, a) {
|
|
35
|
-
return this.sendErrorNotification({
|
|
36
|
-
title: e,
|
|
37
|
-
message: r,
|
|
38
|
-
errorType: "critical",
|
|
39
|
-
severity: "critical",
|
|
40
|
-
context: a,
|
|
41
|
-
timestamp: Date.now()
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Send a CORS error notification
|
|
46
|
-
*/
|
|
47
|
-
async sendCorsErrorNotification(e, r) {
|
|
48
|
-
return this.sendCriticalError(
|
|
49
|
-
"CORS Error in Stripo Email Editor",
|
|
50
|
-
"Failed to load Stripo resources due to CORS restrictions",
|
|
51
|
-
{
|
|
52
|
-
resourceUrl: e,
|
|
53
|
-
...r,
|
|
54
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Send a plugin load error notification
|
|
60
|
-
*/
|
|
61
|
-
async sendPluginLoadErrorNotification(e, r) {
|
|
62
|
-
return this.sendCriticalError(
|
|
63
|
-
"Stripo Plugin Failed to Load",
|
|
64
|
-
`Email editor initialization failed: ${e}`,
|
|
65
|
-
{
|
|
66
|
-
...r,
|
|
67
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Build Slack message payload from error notification
|
|
73
|
-
*/
|
|
74
|
-
buildErrorPayload(e) {
|
|
75
|
-
const a = {
|
|
76
|
-
critical: "#E74C3C",
|
|
77
|
-
// Red
|
|
78
|
-
high: "#E67E22",
|
|
79
|
-
// Orange
|
|
80
|
-
medium: "#F39C12",
|
|
81
|
-
// Yellow
|
|
82
|
-
low: "#3498DB"
|
|
83
|
-
// Blue
|
|
84
|
-
}[e.severity] || "#95A5A6", l = [
|
|
85
|
-
{
|
|
86
|
-
title: "Error Type",
|
|
87
|
-
value: e.errorType,
|
|
88
|
-
short: !0
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
title: "Severity",
|
|
92
|
-
value: e.severity.toUpperCase(),
|
|
93
|
-
short: !0
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
title: "Timestamp",
|
|
97
|
-
value: e.timestamp ? new Date(e.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(),
|
|
98
|
-
short: !0
|
|
99
|
-
}
|
|
100
|
-
];
|
|
101
|
-
e.context && Object.entries(e.context).forEach(([n, c]) => {
|
|
102
|
-
l.length < 20 && l.push({
|
|
103
|
-
title: this.formatFieldTitle(n),
|
|
104
|
-
value: this.formatFieldValue(c),
|
|
105
|
-
short: !0
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
const s = {
|
|
109
|
-
color: a,
|
|
110
|
-
title: e.title,
|
|
111
|
-
text: e.message,
|
|
112
|
-
fields: l,
|
|
113
|
-
footer: "Guido Error Tracking",
|
|
114
|
-
ts: Math.floor((e.timestamp || Date.now()) / 1e3)
|
|
115
|
-
};
|
|
116
|
-
return e.stackTrace && (s.text = `${e.message}
|
|
117
|
-
\`\`\`${e.stackTrace}\`\`\``), {
|
|
118
|
-
channel: this.channel,
|
|
119
|
-
username: this.defaultUsername,
|
|
120
|
-
// eslint-disable-next-line camelcase
|
|
121
|
-
icon_emoji: ":warning:",
|
|
122
|
-
attachments: [s]
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Format field title for Slack (e.g., emailId -> Email ID)
|
|
127
|
-
*/
|
|
128
|
-
formatFieldTitle(e) {
|
|
129
|
-
return e.replace(/([A-Z])/g, " $1").replace(/^./, (r) => r.toUpperCase()).trim();
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Format field value for Slack display
|
|
133
|
-
*/
|
|
134
|
-
formatFieldValue(e) {
|
|
135
|
-
return e == null ? "(empty)" : typeof e == "object" ? JSON.stringify(e).slice(0, 500) : String(e).slice(0, 500);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Check if notifications are enabled
|
|
139
|
-
*/
|
|
140
|
-
isEnabled() {
|
|
141
|
-
return this.enabled;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Update webhook URL
|
|
145
|
-
*/
|
|
146
|
-
setWebhookUrl(e) {
|
|
147
|
-
this.webhookUrl = e, this.enabled = !!e;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Update channel
|
|
151
|
-
*/
|
|
152
|
-
setChannel(e) {
|
|
153
|
-
this.channel = e;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Enable/disable notifications
|
|
157
|
-
*/
|
|
158
|
-
setEnabled(e) {
|
|
159
|
-
this.enabled = e && !!this.webhookUrl;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
let o = null;
|
|
163
|
-
const S = () => (o || (o = new u()), o);
|
|
164
|
-
export {
|
|
165
|
-
u as SlackNotificationService,
|
|
166
|
-
S as getSlackNotificationService
|
|
167
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty;
|
|
2
|
-
var a = (e, r, t) => r in e ? c(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
|
-
var n = (e, r, t) => a(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
class s {
|
|
5
|
-
constructor() {
|
|
6
|
-
n(this, "reportedErrors", /* @__PURE__ */ new Set());
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Track an error locally to prevent duplicate Slack alerts
|
|
10
|
-
* Only sends Slack alert once per unique error within the same session
|
|
11
|
-
*/
|
|
12
|
-
trackError(r) {
|
|
13
|
-
const t = this.getDeduplicationKey(r);
|
|
14
|
-
return this.reportedErrors.has(t) ? !1 : (this.reportedErrors.add(t), !0);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Track plugin load error locally (CORS, script failure, timeout)
|
|
18
|
-
*/
|
|
19
|
-
trackPluginLoadError(r, t) {
|
|
20
|
-
return this.trackError({
|
|
21
|
-
errorType: "plugin_load_error",
|
|
22
|
-
errorMessage: r,
|
|
23
|
-
errorCategory: "critical",
|
|
24
|
-
context: {
|
|
25
|
-
...t,
|
|
26
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
27
|
-
environment: "production"
|
|
28
|
-
},
|
|
29
|
-
reportedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Track CORS error locally
|
|
34
|
-
*/
|
|
35
|
-
trackCorsError(r, t) {
|
|
36
|
-
return this.trackError({
|
|
37
|
-
errorType: "cors_error",
|
|
38
|
-
errorMessage: r,
|
|
39
|
-
errorCategory: "handled",
|
|
40
|
-
context: {
|
|
41
|
-
...t,
|
|
42
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
43
|
-
environment: "production"
|
|
44
|
-
},
|
|
45
|
-
reportedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Track authentication error locally (token refresh failure)
|
|
50
|
-
* Tracks it, but Slack notifier decides whether to alert based on token expiration
|
|
51
|
-
*/
|
|
52
|
-
trackAuthenticationError(r, t) {
|
|
53
|
-
return this.trackError({
|
|
54
|
-
errorType: "authentication_error",
|
|
55
|
-
errorMessage: r,
|
|
56
|
-
errorCategory: "critical",
|
|
57
|
-
context: {
|
|
58
|
-
...t,
|
|
59
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
60
|
-
environment: "production"
|
|
61
|
-
},
|
|
62
|
-
reportedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Generate unique deduplication key for error
|
|
67
|
-
* Format: "errorType:emailId:userId" to allow same error on different emails
|
|
68
|
-
*/
|
|
69
|
-
getDeduplicationKey(r) {
|
|
70
|
-
const t = r.context.emailId || "unknown", i = r.context.userId || "unknown";
|
|
71
|
-
return `${r.errorType}:${t}:${i}`;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Clear tracked errors (for testing or session reset)
|
|
75
|
-
*/
|
|
76
|
-
clearTrackedErrors() {
|
|
77
|
-
this.reportedErrors.clear();
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get count of errors tracked in this session
|
|
81
|
-
*/
|
|
82
|
-
getTrackedErrorCount() {
|
|
83
|
-
return this.reportedErrors.size;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
let o = null;
|
|
87
|
-
const u = () => (o || (o = new s()), o);
|
|
88
|
-
export {
|
|
89
|
-
s as StripoErrorDeduplicationService,
|
|
90
|
-
u as getStripoErrorDeduplicationService
|
|
91
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { HttpError, HttpResponse } from '@@/Composables/useHttp';
|
|
2
|
-
/**
|
|
3
|
-
* API error context with request/response details
|
|
4
|
-
*/
|
|
5
|
-
export interface ApiErrorContext {
|
|
6
|
-
endpoint: string;
|
|
7
|
-
method?: string;
|
|
8
|
-
statusCode?: number;
|
|
9
|
-
statusText?: string;
|
|
10
|
-
errorType?: 'http_error' | 'network_error' | 'parsing_error' | 'timeout';
|
|
11
|
-
attemptNumber?: number;
|
|
12
|
-
retryable?: boolean;
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Tracks API failures including HTTP errors, network issues, and data parsing failures
|
|
17
|
-
* Integrates with the main error tracking system (Sentry + FullStory)
|
|
18
|
-
*/
|
|
19
|
-
export declare const useApiErrorTracking: () => {
|
|
20
|
-
captureHttpError: (error: HttpError, endpoint: string, options?: Omit<ApiErrorContext, "endpoint">) => ApiErrorContext;
|
|
21
|
-
captureNetworkError: (error: Error, endpoint: string, options?: Omit<ApiErrorContext, "endpoint">) => ApiErrorContext;
|
|
22
|
-
captureParsingError: (error: unknown, endpoint: string, responseData?: unknown, options?: Omit<ApiErrorContext, "endpoint">) => ApiErrorContext;
|
|
23
|
-
captureTimeoutError: (endpoint: string, timeoutMs: number, options?: Omit<ApiErrorContext, "endpoint">) => ApiErrorContext;
|
|
24
|
-
withApiErrorTracking: <T>(apiCall: () => Promise<HttpResponse<T>>, endpoint: string, method?: string, options?: Omit<ApiErrorContext, "endpoint">) => Promise<HttpResponse<T>>;
|
|
25
|
-
withParsingErrorTracking: <T>(parser: () => T, endpoint: string, rawResponse?: unknown, options?: Omit<ApiErrorContext, "endpoint">) => T;
|
|
26
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Error context for error tracking and correlation
|
|
4
|
-
*/
|
|
5
|
-
export interface ErrorContext {
|
|
6
|
-
component?: string;
|
|
7
|
-
operation?: string;
|
|
8
|
-
templateId?: string;
|
|
9
|
-
userId?: string;
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Error tracking service for capturing and reporting errors
|
|
14
|
-
* Integrates with Sentry and FullStory for comprehensive error tracking
|
|
15
|
-
*/
|
|
16
|
-
export declare const useErrorTracking: () => {
|
|
17
|
-
traceId: string;
|
|
18
|
-
errorCount: Readonly<Ref<number>>;
|
|
19
|
-
lastError: Readonly<Ref<Error | null>>;
|
|
20
|
-
captureError: (error: Error, context?: ErrorContext) => ErrorContext;
|
|
21
|
-
captureStripoError: (error: unknown, operation: string, additionalContext?: Record<string, unknown>, shouldLogToSentry?: boolean) => ErrorContext;
|
|
22
|
-
captureTimeoutError: (operation: string, timeoutMs: number, additionalContext?: Record<string, unknown>) => ErrorContext;
|
|
23
|
-
createTimeoutPromise: <T>(ms: number, operation: string, additionalContext?: Record<string, unknown>) => Promise<T>;
|
|
24
|
-
withTimeout: <T>(promise: Promise<T>, ms: number, operation: string, additionalContext?: Record<string, unknown>) => Promise<T>;
|
|
25
|
-
getErrorSummary: () => {
|
|
26
|
-
errorCount: number;
|
|
27
|
-
lastError: Error | null;
|
|
28
|
-
};
|
|
29
|
-
resetErrorTracking: () => void;
|
|
30
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error categorization system for Stripo integration
|
|
3
|
-
* Determines whether errors should be logged to Sentry/FullStory, Slack, or both
|
|
4
|
-
*
|
|
5
|
-
* Note: Error type names use snake_case (e.g., plugin_load_error) to match
|
|
6
|
-
* error type strings used throughout the codebase. This is intentional and
|
|
7
|
-
* required for the categorization system to work correctly.
|
|
8
|
-
*/
|
|
9
|
-
export type ErrorSeverity = 'critical' | 'warning' | 'info';
|
|
10
|
-
export type ErrorCaptureLevel = 'sentry_and_slack' | 'slack_only' | 'sentry_only';
|
|
11
|
-
export interface ErrorCategory {
|
|
12
|
-
type: string;
|
|
13
|
-
severity: ErrorSeverity;
|
|
14
|
-
captureLevel: ErrorCaptureLevel;
|
|
15
|
-
description: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Categorize an error based on its type
|
|
19
|
-
* Returns the error category with capture level and severity
|
|
20
|
-
*/
|
|
21
|
-
export declare const useStripoErrorCategory: () => {
|
|
22
|
-
getErrorCategory: (errorType: string) => ErrorCategory;
|
|
23
|
-
shouldCaptureSentry: (errorType: string) => boolean;
|
|
24
|
-
shouldNotifySlack: (errorType: string) => boolean;
|
|
25
|
-
addErrorCategory: (category: ErrorCategory) => void;
|
|
26
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slack notifications for Stripo errors
|
|
3
|
-
* Uses error categorization to determine which errors should trigger Slack alerts
|
|
4
|
-
* Prevents duplicate alerts within the same session
|
|
5
|
-
*/
|
|
6
|
-
export declare const useStripoSlackNotifier: () => {
|
|
7
|
-
notifySlack: (errorMessage: string, errorType: string, additionalContext?: Record<string, unknown>) => Promise<boolean>;
|
|
8
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slack notification payload structure
|
|
3
|
-
*/
|
|
4
|
-
export interface SlackNotificationPayload {
|
|
5
|
-
channel?: string;
|
|
6
|
-
username?: string;
|
|
7
|
-
icon_emoji?: string;
|
|
8
|
-
text?: string;
|
|
9
|
-
attachments?: SlackAttachment[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Slack attachment for formatted messages
|
|
13
|
-
*/
|
|
14
|
-
export interface SlackAttachment {
|
|
15
|
-
color?: string;
|
|
16
|
-
title?: string;
|
|
17
|
-
title_link?: string;
|
|
18
|
-
text?: string;
|
|
19
|
-
fields?: SlackField[];
|
|
20
|
-
footer?: string;
|
|
21
|
-
ts?: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Slack field for structured data
|
|
25
|
-
*/
|
|
26
|
-
export interface SlackField {
|
|
27
|
-
title: string;
|
|
28
|
-
value: string;
|
|
29
|
-
short?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Slack error notification content
|
|
33
|
-
*/
|
|
34
|
-
export interface SlackErrorNotification {
|
|
35
|
-
title: string;
|
|
36
|
-
message: string;
|
|
37
|
-
errorType: string;
|
|
38
|
-
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
39
|
-
context?: Record<string, unknown>;
|
|
40
|
-
stackTrace?: string;
|
|
41
|
-
timestamp?: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Service for sending error notifications to Slack
|
|
45
|
-
* Used to alert team members about critical Stripo errors
|
|
46
|
-
*/
|
|
47
|
-
export declare class SlackNotificationService {
|
|
48
|
-
private webhookUrl;
|
|
49
|
-
private channel;
|
|
50
|
-
private defaultUsername;
|
|
51
|
-
private enabled;
|
|
52
|
-
constructor(webhookUrl?: string, options?: {
|
|
53
|
-
channel?: string;
|
|
54
|
-
username?: string;
|
|
55
|
-
enabled?: boolean;
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* Send an error notification to Slack
|
|
59
|
-
*/
|
|
60
|
-
sendErrorNotification(notification: SlackErrorNotification): Promise<boolean>;
|
|
61
|
-
/**
|
|
62
|
-
* Send a critical error that requires immediate attention
|
|
63
|
-
*/
|
|
64
|
-
sendCriticalError(title: string, message: string, context?: Record<string, unknown>): Promise<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Send a CORS error notification
|
|
67
|
-
*/
|
|
68
|
-
sendCorsErrorNotification(resourceUrl?: string, additionalContext?: Record<string, unknown>): Promise<boolean>;
|
|
69
|
-
/**
|
|
70
|
-
* Send a plugin load error notification
|
|
71
|
-
*/
|
|
72
|
-
sendPluginLoadErrorNotification(reason: string, additionalContext?: Record<string, unknown>): Promise<boolean>;
|
|
73
|
-
/**
|
|
74
|
-
* Build Slack message payload from error notification
|
|
75
|
-
*/
|
|
76
|
-
private buildErrorPayload;
|
|
77
|
-
/**
|
|
78
|
-
* Format field title for Slack (e.g., emailId -> Email ID)
|
|
79
|
-
*/
|
|
80
|
-
private formatFieldTitle;
|
|
81
|
-
/**
|
|
82
|
-
* Format field value for Slack display
|
|
83
|
-
*/
|
|
84
|
-
private formatFieldValue;
|
|
85
|
-
/**
|
|
86
|
-
* Check if notifications are enabled
|
|
87
|
-
*/
|
|
88
|
-
isEnabled(): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Update webhook URL
|
|
91
|
-
*/
|
|
92
|
-
setWebhookUrl(url: string): void;
|
|
93
|
-
/**
|
|
94
|
-
* Update channel
|
|
95
|
-
*/
|
|
96
|
-
setChannel(channel: string): void;
|
|
97
|
-
/**
|
|
98
|
-
* Enable/disable notifications
|
|
99
|
-
*/
|
|
100
|
-
setEnabled(enabled: boolean): void;
|
|
101
|
-
}
|
|
102
|
-
export declare const getSlackNotificationService: () => SlackNotificationService;
|
|
103
|
-
/**
|
|
104
|
-
* Initialize or reinitialize Slack notification service
|
|
105
|
-
*/
|
|
106
|
-
export declare const initializeSlackNotificationService: (webhookUrl?: string, options?: {
|
|
107
|
-
channel?: string;
|
|
108
|
-
username?: string;
|
|
109
|
-
enabled?: boolean;
|
|
110
|
-
}) => SlackNotificationService;
|