revdev 0.245.0 → 0.246.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/index.d.ts +1 -0
- package/lib/back/index.js +1 -0
- package/lib/back/smm/entity.d.ts +36 -0
- package/lib/back/smm/entity.js +2 -0
- package/lib/back/smm/enum.d.ts +4 -0
- package/lib/back/smm/enum.js +8 -0
- package/lib/back/smm/index.d.ts +3 -0
- package/lib/back/smm/index.js +15 -0
- package/lib/back/smm/request.d.ts +18 -0
- package/lib/back/smm/request.js +2 -0
- package/lib/common/enums.d.ts +2 -1
- package/lib/common/enums.js +1 -0
- package/package.json +1 -1
package/lib/back/index.d.ts
CHANGED
package/lib/back/index.js
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SocialProvider } from "../../common";
|
|
2
|
+
import { WordGen } from "../../shared";
|
|
3
|
+
import { BoListRecord } from "../list";
|
|
4
|
+
import { SmmCampaignStatus } from "./enum";
|
|
5
|
+
export interface BoSmmChannelRecord {
|
|
6
|
+
id: string;
|
|
7
|
+
provider: SocialProvider;
|
|
8
|
+
providerId: string;
|
|
9
|
+
langCode: string;
|
|
10
|
+
tranLangCode: string;
|
|
11
|
+
wordPostTemplate: string;
|
|
12
|
+
active: boolean;
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BoSmmCampaignRecord {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
listId: string;
|
|
20
|
+
created: string;
|
|
21
|
+
status: SmmCampaignStatus;
|
|
22
|
+
channel: BoSmmChannelRecord;
|
|
23
|
+
list: Partial<BoListRecord>;
|
|
24
|
+
}
|
|
25
|
+
export interface BoSmmPostRecord {
|
|
26
|
+
id: string;
|
|
27
|
+
wordId?: string;
|
|
28
|
+
word: WordGen;
|
|
29
|
+
campaignId?: string;
|
|
30
|
+
campaign: BoSmmCampaignRecord;
|
|
31
|
+
created: string;
|
|
32
|
+
channelId: string;
|
|
33
|
+
channel: BoSmmChannelRecord;
|
|
34
|
+
messageId: string;
|
|
35
|
+
link: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SmmCampaignStatus = void 0;
|
|
4
|
+
var SmmCampaignStatus;
|
|
5
|
+
(function (SmmCampaignStatus) {
|
|
6
|
+
SmmCampaignStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
7
|
+
SmmCampaignStatus["COMPLETED"] = "COMPLETED";
|
|
8
|
+
})(SmmCampaignStatus = exports.SmmCampaignStatus || (exports.SmmCampaignStatus = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./entity"), exports);
|
|
14
|
+
__exportStar(require("./request"), exports);
|
|
15
|
+
__exportStar(require("./enum"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FeedRequest } from "../../feed";
|
|
2
|
+
export interface SmmCampaignFeedRequest extends FeedRequest {
|
|
3
|
+
channelId?: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
listId?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateSmmCampaignRequest {
|
|
8
|
+
name: string;
|
|
9
|
+
channelId: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
listId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SmmChannelFeedRequest extends FeedRequest {
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface SmmPostFeedRequest extends FeedRequest {
|
|
17
|
+
channelId?: string;
|
|
18
|
+
}
|
package/lib/common/enums.d.ts
CHANGED
package/lib/common/enums.js
CHANGED