revdev 0.248.0 → 0.251.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 +6 -13
- package/lib/back/smm/index.d.ts +0 -1
- package/lib/back/smm/index.js +0 -1
- package/lib/back/smm/request.d.ts +26 -4
- package/lib/common/enums.d.ts +4 -0
- package/lib/common/enums.js +6 -1
- package/lib/common/exception.d.ts +2 -1
- package/lib/common/exception.js +2 -0
- package/lib/common/gen.d.ts +4 -0
- package/package.json +1 -1
- package/lib/back/smm/enum.d.ts +0 -4
- package/lib/back/smm/enum.js +0 -8
package/lib/back/smm/entity.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { SocialProvider } from "../../common";
|
|
1
|
+
import { NameGen, SmmCampaignStatus, SocialProvider } from "../../common";
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
|
-
import { BoListRecord } from "../list";
|
|
4
|
-
import { SmmCampaignStatus } from "./enum";
|
|
5
3
|
export interface BoSmmChannelRecord {
|
|
6
4
|
id: string;
|
|
7
5
|
provider: SocialProvider;
|
|
@@ -16,21 +14,16 @@ export interface BoSmmCampaignRecord {
|
|
|
16
14
|
id: string;
|
|
17
15
|
name: string;
|
|
18
16
|
active: boolean;
|
|
19
|
-
listId: string;
|
|
20
17
|
created: string;
|
|
21
18
|
status: SmmCampaignStatus;
|
|
22
|
-
channel:
|
|
23
|
-
list:
|
|
19
|
+
channel: NameGen;
|
|
20
|
+
list: NameGen;
|
|
24
21
|
}
|
|
25
22
|
export interface BoSmmPostRecord {
|
|
26
23
|
id: string;
|
|
27
|
-
wordId?: string;
|
|
28
24
|
word: WordGen;
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
campaign: NameGen;
|
|
26
|
+
channel: NameGen;
|
|
31
27
|
created: string;
|
|
32
|
-
|
|
33
|
-
channel: BoSmmChannelRecord;
|
|
34
|
-
messageId: string;
|
|
35
|
-
link: string;
|
|
28
|
+
url: string;
|
|
36
29
|
}
|
package/lib/back/smm/index.d.ts
CHANGED
package/lib/back/smm/index.js
CHANGED
|
@@ -12,4 +12,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./entity"), exports);
|
|
14
14
|
__exportStar(require("./request"), exports);
|
|
15
|
-
__exportStar(require("./enum"), exports);
|
|
@@ -1,18 +1,40 @@
|
|
|
1
|
+
import { SocialProvider } from "../../common";
|
|
1
2
|
import { FeedRequest } from "../../feed";
|
|
2
|
-
export interface
|
|
3
|
+
export interface BoCreateSmmChannelRequest {
|
|
4
|
+
provider: SocialProvider;
|
|
5
|
+
providerId: string;
|
|
6
|
+
langCode: string;
|
|
7
|
+
tranLangCode: string;
|
|
8
|
+
wordPostTemplate: string;
|
|
9
|
+
url: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BoSmmChannelModifier extends BoCreateSmmChannelRequest {
|
|
12
|
+
id: string;
|
|
13
|
+
active: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface BoUpdateSmmChannelRequest {
|
|
16
|
+
id: string;
|
|
17
|
+
providerId: string;
|
|
18
|
+
wordPostTemplate: string;
|
|
19
|
+
url: string;
|
|
20
|
+
}
|
|
21
|
+
export interface BoSmmCampaignFeedRequest extends FeedRequest {
|
|
3
22
|
channelId?: string;
|
|
4
23
|
active?: boolean;
|
|
5
24
|
listId?: string;
|
|
6
25
|
}
|
|
7
|
-
export interface
|
|
26
|
+
export interface BoCreateSmmCampaignRequest {
|
|
8
27
|
name: string;
|
|
9
28
|
channelId: string;
|
|
10
29
|
active: boolean;
|
|
11
30
|
listId: string;
|
|
12
31
|
}
|
|
13
|
-
export interface
|
|
32
|
+
export interface BoCreateSmmCampaignModifier extends BoCreateSmmCampaignRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
export interface BoSmmChannelFeedRequest extends FeedRequest {
|
|
14
36
|
active?: boolean;
|
|
15
37
|
}
|
|
16
|
-
export interface
|
|
38
|
+
export interface BoSmmPostFeedRequest extends FeedRequest {
|
|
17
39
|
channelId?: string;
|
|
18
40
|
}
|
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.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
|
|
3
|
+
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";
|
|
@@ -36,3 +36,8 @@ var SocialProvider;
|
|
|
36
36
|
SocialProvider["Google"] = "google";
|
|
37
37
|
SocialProvider["Telegram"] = "telegram";
|
|
38
38
|
})(SocialProvider = exports.SocialProvider || (exports.SocialProvider = {}));
|
|
39
|
+
var SmmCampaignStatus;
|
|
40
|
+
(function (SmmCampaignStatus) {
|
|
41
|
+
SmmCampaignStatus[SmmCampaignStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
|
|
42
|
+
SmmCampaignStatus[SmmCampaignStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
43
|
+
})(SmmCampaignStatus = exports.SmmCampaignStatus || (exports.SmmCampaignStatus = {}));
|
|
@@ -33,5 +33,6 @@ export declare enum ExceptionCodes {
|
|
|
33
33
|
CsvParsingValidation = "CsvParsingValidation",
|
|
34
34
|
EntryStatusCannotBeChangedForAdminEntity = "EntryStatusCannotBeChangedForAdminEntity",
|
|
35
35
|
MaxTranWordPinsExceeded = "MaxTranWordPinsExceeded",
|
|
36
|
-
MaxWordImagePinsExceeded = "MaxWordImagePinsExceeded"
|
|
36
|
+
MaxWordImagePinsExceeded = "MaxWordImagePinsExceeded",
|
|
37
|
+
SimilarRecordAlreadyExists = "SimilarRecordAlreadyExists"
|
|
37
38
|
}
|
package/lib/common/exception.js
CHANGED
|
@@ -41,4 +41,6 @@ var ExceptionCodes;
|
|
|
41
41
|
ExceptionCodes["EntryStatusCannotBeChangedForAdminEntity"] = "EntryStatusCannotBeChangedForAdminEntity";
|
|
42
42
|
ExceptionCodes["MaxTranWordPinsExceeded"] = "MaxTranWordPinsExceeded";
|
|
43
43
|
ExceptionCodes["MaxWordImagePinsExceeded"] = "MaxWordImagePinsExceeded";
|
|
44
|
+
// common
|
|
45
|
+
ExceptionCodes["SimilarRecordAlreadyExists"] = "SimilarRecordAlreadyExists";
|
|
44
46
|
})(ExceptionCodes = exports.ExceptionCodes || (exports.ExceptionCodes = {}));
|
package/lib/common/gen.d.ts
CHANGED
package/package.json
CHANGED
package/lib/back/smm/enum.d.ts
DELETED
package/lib/back/smm/enum.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|