revdev 0.259.0 → 0.260.0
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/lib/back/smm/entity.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NameGen, SmmCampaignStatus, SocialProvider } from "../../common";
|
|
1
|
+
import { NameGen, SmmCampaignStatus, SmmCampaignType, SocialProvider } from "../../common";
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
3
|
export interface BoSmmChannelRecord {
|
|
4
4
|
id: string;
|
|
@@ -20,6 +20,9 @@ export interface BoSmmCampaignRecord {
|
|
|
20
20
|
list: NameGen;
|
|
21
21
|
cronIntervalFormat: string;
|
|
22
22
|
timeZone: string;
|
|
23
|
+
wordsPosted: number;
|
|
24
|
+
wordsTotal: number;
|
|
25
|
+
type: SmmCampaignType;
|
|
23
26
|
}
|
|
24
27
|
export interface BoSmmPostRecord {
|
|
25
28
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SocialProvider } from "../../common";
|
|
1
|
+
import { SmmCampaignType, SocialProvider } from "../../common";
|
|
2
2
|
import { FeedRequest } from "../../feed";
|
|
3
3
|
export interface BoCreateSmmChannelRequest {
|
|
4
4
|
provider: SocialProvider;
|
|
@@ -8,6 +8,7 @@ export interface BoCreateSmmChannelRequest {
|
|
|
8
8
|
postTemplate: string;
|
|
9
9
|
meaningTemplate?: string;
|
|
10
10
|
url: string;
|
|
11
|
+
quizTemplate?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface BoSmmChannelModifier extends BoCreateSmmChannelRequest {
|
|
13
14
|
id: string;
|
|
@@ -27,12 +28,13 @@ export interface BoCreateSmmCampaignRequest {
|
|
|
27
28
|
listId: string;
|
|
28
29
|
cronIntervalFormat: string;
|
|
29
30
|
timeZone: string;
|
|
31
|
+
type: SmmCampaignType;
|
|
30
32
|
}
|
|
31
33
|
export interface BoSmmCampaignModifier extends BoCreateSmmCampaignRequest {
|
|
32
34
|
id: string;
|
|
33
35
|
active: boolean;
|
|
34
36
|
}
|
|
35
|
-
export interface BoUpdateSmmCampaignRequest extends Pick<BoCreateSmmCampaignRequest, "name" | "cronIntervalFormat" | "timeZone"> {
|
|
37
|
+
export interface BoUpdateSmmCampaignRequest extends Pick<BoCreateSmmCampaignRequest, "name" | "cronIntervalFormat" | "timeZone" | "type"> {
|
|
36
38
|
id: string;
|
|
37
39
|
}
|
|
38
40
|
export interface BoSmmChannelFeedRequest extends FeedRequest {
|
package/lib/common/enums.d.ts
CHANGED
package/lib/common/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SmmCampaignStatus = exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
3
|
+
exports.SmmCampaignType = exports.SmmCampaignStatus = exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
4
4
|
var Knowing;
|
|
5
5
|
(function (Knowing) {
|
|
6
6
|
Knowing[Knowing["Known"] = 1] = "Known";
|
|
@@ -41,3 +41,8 @@ var SmmCampaignStatus;
|
|
|
41
41
|
SmmCampaignStatus[SmmCampaignStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
|
|
42
42
|
SmmCampaignStatus[SmmCampaignStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
43
43
|
})(SmmCampaignStatus = exports.SmmCampaignStatus || (exports.SmmCampaignStatus = {}));
|
|
44
|
+
var SmmCampaignType;
|
|
45
|
+
(function (SmmCampaignType) {
|
|
46
|
+
SmmCampaignType["POST"] = "POST";
|
|
47
|
+
SmmCampaignType["QUIZ"] = "QUIZ";
|
|
48
|
+
})(SmmCampaignType = exports.SmmCampaignType || (exports.SmmCampaignType = {}));
|