@drawbridge/components 0.1.11 → 0.1.12
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.
|
@@ -245,6 +245,27 @@ const TemplateSocketOrganization = ({
|
|
|
245
245
|
enabled: Boolean(params == null ? void 0 : params.organization),
|
|
246
246
|
room: "organization",
|
|
247
247
|
listeners: {
|
|
248
|
+
// @story affiliates/delete
|
|
249
|
+
// Sync emits this when an affiliate is created, edited or deleted,
|
|
250
|
+
// and on a delete only after its analytics are gone. The Affiliate
|
|
251
|
+
// filter on Analytics / Revenue / Redemptions reads the picker list,
|
|
252
|
+
// and Analytics counts the deleted affiliate's events until it
|
|
253
|
+
// refetches. The analytics key holds the organization inside its
|
|
254
|
+
// filter state, so it is cleared by prefix; only an open page refetches.
|
|
255
|
+
"organization.affiliates": () => {
|
|
256
|
+
queryClient.invalidateQueries({
|
|
257
|
+
queryKey: ["list-resource", "affiliate"]
|
|
258
|
+
});
|
|
259
|
+
queryClient.invalidateQueries({
|
|
260
|
+
queryKey: ["organization-affiliates", params.organization]
|
|
261
|
+
});
|
|
262
|
+
queryClient.invalidateQueries({
|
|
263
|
+
queryKey: ["organization-affiliate"]
|
|
264
|
+
});
|
|
265
|
+
queryClient.invalidateQueries({
|
|
266
|
+
queryKey: ["organization-analytics"]
|
|
267
|
+
});
|
|
268
|
+
},
|
|
248
269
|
// Async AI generation flips a record's processing.ai.status
|
|
249
270
|
// ( pending → ready | failed ) in a sync worker. The worker
|
|
250
271
|
// emits to the org room so the listing refetches and the
|
|
@@ -511,6 +532,9 @@ const TemplateSocketOrganization = ({
|
|
|
511
532
|
["organization-members", params == null ? void 0 : params.organization],
|
|
512
533
|
["organization-usage-chart", params == null ? void 0 : params.organization],
|
|
513
534
|
["organization-segments", params == null ? void 0 : params.organization],
|
|
535
|
+
["organization-affiliates", params == null ? void 0 : params.organization],
|
|
536
|
+
["organization-analytics"],
|
|
537
|
+
["list-resource", "affiliate"],
|
|
514
538
|
["menu", "organization", params == null ? void 0 : params.organization],
|
|
515
539
|
["menu", "campaign", params == null ? void 0 : params.organization]
|
|
516
540
|
]
|
|
@@ -210,6 +210,27 @@ const TemplateSocketOrganization = ({
|
|
|
210
210
|
enabled: Boolean(params == null ? void 0 : params.organization),
|
|
211
211
|
room: "organization",
|
|
212
212
|
listeners: {
|
|
213
|
+
// @story affiliates/delete
|
|
214
|
+
// Sync emits this when an affiliate is created, edited or deleted,
|
|
215
|
+
// and on a delete only after its analytics are gone. The Affiliate
|
|
216
|
+
// filter on Analytics / Revenue / Redemptions reads the picker list,
|
|
217
|
+
// and Analytics counts the deleted affiliate's events until it
|
|
218
|
+
// refetches. The analytics key holds the organization inside its
|
|
219
|
+
// filter state, so it is cleared by prefix; only an open page refetches.
|
|
220
|
+
"organization.affiliates": () => {
|
|
221
|
+
queryClient.invalidateQueries({
|
|
222
|
+
queryKey: ["list-resource", "affiliate"]
|
|
223
|
+
});
|
|
224
|
+
queryClient.invalidateQueries({
|
|
225
|
+
queryKey: ["organization-affiliates", params.organization]
|
|
226
|
+
});
|
|
227
|
+
queryClient.invalidateQueries({
|
|
228
|
+
queryKey: ["organization-affiliate"]
|
|
229
|
+
});
|
|
230
|
+
queryClient.invalidateQueries({
|
|
231
|
+
queryKey: ["organization-analytics"]
|
|
232
|
+
});
|
|
233
|
+
},
|
|
213
234
|
// Async AI generation flips a record's processing.ai.status
|
|
214
235
|
// ( pending → ready | failed ) in a sync worker. The worker
|
|
215
236
|
// emits to the org room so the listing refetches and the
|
|
@@ -476,6 +497,9 @@ const TemplateSocketOrganization = ({
|
|
|
476
497
|
["organization-members", params == null ? void 0 : params.organization],
|
|
477
498
|
["organization-usage-chart", params == null ? void 0 : params.organization],
|
|
478
499
|
["organization-segments", params == null ? void 0 : params.organization],
|
|
500
|
+
["organization-affiliates", params == null ? void 0 : params.organization],
|
|
501
|
+
["organization-analytics"],
|
|
502
|
+
["list-resource", "affiliate"],
|
|
479
503
|
["menu", "organization", params == null ? void 0 : params.organization],
|
|
480
504
|
["menu", "campaign", params == null ? void 0 : params.organization]
|
|
481
505
|
]
|