@walkeros/server-destination-slack 4.8.1-next-1792019907609 → 4.8.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/server-destination-slack",
4
- "version": "4.8.1-next-1792019907609",
4
+ "version": "4.8.2",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "server"
@@ -120,7 +120,19 @@
120
120
  "description": "Retry policy passed to WebClient. Default: \"default\"."
121
121
  }
122
122
  },
123
- "additionalProperties": false
123
+ "additionalProperties": false,
124
+ "oneOf": [
125
+ {
126
+ "required": [
127
+ "token"
128
+ ]
129
+ },
130
+ {
131
+ "required": [
132
+ "webhookUrl"
133
+ ]
134
+ }
135
+ ]
124
136
  }
125
137
  },
126
138
  "examples": {
@@ -129,20 +141,20 @@
129
141
  "slackClient": {
130
142
  "chat": {
131
143
  "postMessage": {
132
- "$code": "()=>Promise.resolve(m)"
144
+ "$code": "()=>Promise.resolve(u)"
133
145
  },
134
146
  "postEphemeral": {
135
- "$code": "()=>Promise.resolve(u)"
147
+ "$code": "()=>Promise.resolve(h)"
136
148
  }
137
149
  },
138
150
  "conversations": {
139
151
  "open": {
140
- "$code": "()=>Promise.resolve(h)"
152
+ "$code": "()=>Promise.resolve(g)"
141
153
  }
142
154
  }
143
155
  },
144
156
  "sendServer": {
145
- "$code": "()=>Promise.resolve({ok:!0})"
157
+ "$code": "()=>Promise.resolve({})"
146
158
  }
147
159
  },
148
160
  "simulation": [
@@ -190,7 +202,7 @@
190
202
  "consent": {
191
203
  "functional": true
192
204
  },
193
- "id": "859c139adfa3edc7",
205
+ "id": "e74f550c197d997c",
194
206
  "trigger": "test",
195
207
  "entity": "lead",
196
208
  "action": "submit",
@@ -289,7 +301,7 @@
289
301
  "consent": {
290
302
  "functional": true
291
303
  },
292
- "id": "215040941e3ac8a9",
304
+ "id": "0218f7a59b2c24d4",
293
305
  "trigger": "test",
294
306
  "entity": "deploy",
295
307
  "action": "complete",
@@ -354,7 +366,7 @@
354
366
  "consent": {
355
367
  "functional": true
356
368
  },
357
- "id": "643fb41e08f0f32d",
369
+ "id": "25983bb3fd060d40",
358
370
  "trigger": "test",
359
371
  "entity": "quota",
360
372
  "action": "warning",
@@ -427,7 +439,7 @@
427
439
  "consent": {
428
440
  "functional": true
429
441
  },
430
- "id": "ba33193494765730",
442
+ "id": "caeb8fc45f763cda",
431
443
  "trigger": "test",
432
444
  "entity": "error",
433
445
  "action": "occur",
@@ -466,7 +478,7 @@
466
478
  "name": "order complete",
467
479
  "data": {
468
480
  "id": "ORD-500",
469
- "total": 299.99,
481
+ "value": 299.99,
470
482
  "currency": "EUR",
471
483
  "product": "Pro Plan"
472
484
  },
@@ -536,7 +548,7 @@
536
548
  "consent": {
537
549
  "functional": true
538
550
  },
539
- "id": "24daeb267b8dcf02",
551
+ "id": "235d0d7bd7a213f2",
540
552
  "trigger": "load",
541
553
  "entity": "order",
542
554
  "action": "complete",
@@ -552,7 +564,7 @@
552
564
  "mapping": {
553
565
  "settings": {
554
566
  "channel": "#sales",
555
- "text": ":moneybag: New order: ${data.id} - ${data.total} ${data.currency}"
567
+ "text": ":moneybag: New order: ${data.id} - ${data.value} ${data.currency}"
556
568
  }
557
569
  },
558
570
  "out": [
@@ -568,6 +580,65 @@
568
580
  ]
569
581
  ]
570
582
  },
583
+ "silentRule": {
584
+ "public": false,
585
+ "description": "A rule with silent: true posts no message to Slack.",
586
+ "in": {
587
+ "name": "page view",
588
+ "data": {
589
+ "domain": "www.example.com",
590
+ "title": "walkerOS documentation",
591
+ "referrer": "https://www.walkeros.io/",
592
+ "search": "?foo=bar",
593
+ "hash": "#hash",
594
+ "id": "/docs/"
595
+ },
596
+ "context": {
597
+ "dev": [
598
+ "test",
599
+ 1
600
+ ]
601
+ },
602
+ "globals": {
603
+ "pagegroup": "docs"
604
+ },
605
+ "custom": {
606
+ "completely": "random"
607
+ },
608
+ "user": {
609
+ "id": "us3r",
610
+ "device": "c00k13",
611
+ "session": "s3ss10n"
612
+ },
613
+ "nested": [
614
+ {
615
+ "entity": "child",
616
+ "data": {
617
+ "is": "subordinated"
618
+ }
619
+ }
620
+ ],
621
+ "consent": {
622
+ "functional": true
623
+ },
624
+ "id": "f0cc5f6fec3d8eeb",
625
+ "trigger": "load",
626
+ "entity": "page",
627
+ "action": "view",
628
+ "timestamp": 1700000990000,
629
+ "timing": 3.14,
630
+ "source": {
631
+ "count": 1,
632
+ "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
633
+ "type": "collector",
634
+ "schema": "4"
635
+ }
636
+ },
637
+ "mapping": {
638
+ "silent": true
639
+ },
640
+ "out": []
641
+ },
571
642
  "threadedCheckoutStep": {
572
643
  "title": "Threaded reply",
573
644
  "description": "A checkout step posts as a threaded reply in Slack via thread_ts with broadcast to the channel.",
@@ -605,7 +676,7 @@
605
676
  "consent": {
606
677
  "functional": true
607
678
  },
608
- "id": "c6efab5aef59e641",
679
+ "id": "142ae04a44a433df",
609
680
  "trigger": "test",
610
681
  "entity": "checkout",
611
682
  "action": "step",
@@ -675,7 +746,7 @@
675
746
  "consent": {
676
747
  "functional": true
677
748
  },
678
- "id": "0f76d32704a840b6",
749
+ "id": "6864535cad7521a7",
679
750
  "trigger": "test",
680
751
  "entity": "user",
681
752
  "action": "signup",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-destination-slack",
3
3
  "description": "Slack server destination for walkerOS (Incoming Webhook + @slack/web-api, Block Kit, channel routing, threading, DMs)",
4
- "version": "4.8.1-next-1792019907609",
4
+ "version": "4.8.2",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {
@@ -36,11 +36,11 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@slack/web-api": "^7.0.0",
39
- "@walkeros/core": "4.8.1-next-1792019907609",
40
- "@walkeros/server-core": "4.8.1-next-1792019907609"
39
+ "@walkeros/core": "4.8.2",
40
+ "@walkeros/server-core": "4.8.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "4.8.1-next-1792019907609"
43
+ "@walkeros/collector": "4.8.2"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",