@appcorp/fusion-storybook 0.3.45 → 0.3.46
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/base-modules/push-campaign/cache.d.ts +9 -0
- package/base-modules/push-campaign/cache.js +16 -0
- package/base-modules/push-campaign/constants.d.ts +24 -0
- package/base-modules/push-campaign/constants.js +11 -0
- package/base-modules/push-campaign/context/module-base.d.ts +181 -0
- package/base-modules/push-campaign/context/module-base.js +45 -0
- package/base-modules/push-campaign/context/use-push-campaign-module.d.ts +66 -0
- package/base-modules/push-campaign/context/use-push-campaign-module.js +451 -0
- package/base-modules/push-campaign/context.d.ts +2 -0
- package/base-modules/push-campaign/context.js +3 -0
- package/base-modules/push-campaign/filter.d.ts +1 -0
- package/base-modules/push-campaign/filter.js +43 -0
- package/base-modules/push-campaign/form.d.ts +1 -0
- package/base-modules/push-campaign/form.js +21 -0
- package/base-modules/push-campaign/page.d.ts +28 -0
- package/base-modules/push-campaign/page.js +152 -0
- package/base-modules/push-campaign/validate.d.ts +11 -0
- package/base-modules/push-campaign/validate.js +11 -0
- package/base-modules/push-campaign/view.d.ts +1 -0
- package/base-modules/push-campaign/view.js +26 -0
- package/constants.d.ts +6 -0
- package/constants.js +6 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/communication.d.ts +28 -0
- package/types/enums.d.ts +1 -0
- package/types/enums.js +1 -0
package/types/communication.d.ts
CHANGED
|
@@ -39,6 +39,34 @@ export interface CampaignBE {
|
|
|
39
39
|
};
|
|
40
40
|
school?: SchoolBE;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Push notification broadcast campaign
|
|
44
|
+
*/
|
|
45
|
+
export interface PushCampaignAudienceBE {
|
|
46
|
+
id: string;
|
|
47
|
+
pushCampaignId: string;
|
|
48
|
+
classId: string | null;
|
|
49
|
+
sectionId: string | null;
|
|
50
|
+
}
|
|
51
|
+
export interface PushCampaignBE {
|
|
52
|
+
allStudents: boolean;
|
|
53
|
+
body: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
failedCount: number;
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
schoolId: string;
|
|
60
|
+
scheduledAt: string;
|
|
61
|
+
status: CAMPAIGN_STATUS;
|
|
62
|
+
successCount: number;
|
|
63
|
+
title: string;
|
|
64
|
+
totalCount: number;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
workerJobId: string | null;
|
|
67
|
+
audience?: PushCampaignAudienceBE[];
|
|
68
|
+
school?: SchoolBE;
|
|
69
|
+
}
|
|
42
70
|
/**
|
|
43
71
|
* BlogPost metadata and content (MDX/Markdown stored in `content`).
|
|
44
72
|
*/
|
package/types/enums.d.ts
CHANGED
package/types/enums.js
CHANGED
|
@@ -407,6 +407,7 @@ export var NOTIFICATION_TYPE;
|
|
|
407
407
|
export var CAMPAIGN_STATUS;
|
|
408
408
|
(function (CAMPAIGN_STATUS) {
|
|
409
409
|
CAMPAIGN_STATUS["DRAFT"] = "DRAFT";
|
|
410
|
+
CAMPAIGN_STATUS["SCHEDULED"] = "SCHEDULED";
|
|
410
411
|
CAMPAIGN_STATUS["RUNNING"] = "RUNNING";
|
|
411
412
|
CAMPAIGN_STATUS["COMPLETED"] = "COMPLETED";
|
|
412
413
|
CAMPAIGN_STATUS["FAILED"] = "FAILED";
|