@mathrunet/masamune_workflow_sales 3.8.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/CHANGELOG.md +361 -0
- package/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/clients/app_store_scraper_client.d.ts +93 -0
- package/dist/clients/app_store_scraper_client.js +252 -0
- package/dist/clients/app_store_scraper_client.js.map +1 -0
- package/dist/clients/google_play_scraper_client.d.ts +92 -0
- package/dist/clients/google_play_scraper_client.js +240 -0
- package/dist/clients/google_play_scraper_client.js.map +1 -0
- package/dist/clients/website_contact_client.d.ts +77 -0
- package/dist/clients/website_contact_client.js +262 -0
- package/dist/clients/website_contact_client.js.map +1 -0
- package/dist/functions/collect_app_store_developers.d.ts +29 -0
- package/dist/functions/collect_app_store_developers.js +231 -0
- package/dist/functions/collect_app_store_developers.js.map +1 -0
- package/dist/functions/collect_google_play_developers.d.ts +38 -0
- package/dist/functions/collect_google_play_developers.js +239 -0
- package/dist/functions/collect_google_play_developers.js.map +1 -0
- package/dist/functions.d.ts +20 -0
- package/dist/functions.js +65 -0
- package/dist/functions.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/models/app_store_developer_data.d.ts +176 -0
- package/dist/models/app_store_developer_data.js +3 -0
- package/dist/models/app_store_developer_data.js.map +1 -0
- package/dist/models/google_play_developer_data.d.ts +165 -0
- package/dist/models/google_play_developer_data.js +3 -0
- package/dist/models/google_play_developer_data.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { ModelTimestamp } from "@mathrunet/masamune";
|
|
2
|
+
/**
|
|
3
|
+
* Google Play developer's app information.
|
|
4
|
+
*
|
|
5
|
+
* Google Playデベロッパーのアプリ情報。
|
|
6
|
+
*/
|
|
7
|
+
export interface GooglePlayDeveloperApp {
|
|
8
|
+
/** App ID (package name) / アプリID(パッケージ名) */
|
|
9
|
+
appId: string;
|
|
10
|
+
/** App title / アプリ名 */
|
|
11
|
+
title: string;
|
|
12
|
+
/** App summary / アプリ概要 */
|
|
13
|
+
summary?: string;
|
|
14
|
+
/** Rating score / 評価スコア */
|
|
15
|
+
score?: number;
|
|
16
|
+
/** Icon URL / アイコンURL */
|
|
17
|
+
icon?: string;
|
|
18
|
+
/** Genre/Category / ジャンル/カテゴリ */
|
|
19
|
+
genre?: string;
|
|
20
|
+
/** Price (0 = free) / 価格(0=無料) */
|
|
21
|
+
price?: number;
|
|
22
|
+
/** Is free / 無料かどうか */
|
|
23
|
+
free?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Google Play developer information.
|
|
27
|
+
*
|
|
28
|
+
* Google Playデベロッパー情報。
|
|
29
|
+
*/
|
|
30
|
+
export interface GooglePlayDeveloperInfo {
|
|
31
|
+
/** Developer ID / デベロッパーID */
|
|
32
|
+
developerId: string;
|
|
33
|
+
/** Developer name / デベロッパー名 */
|
|
34
|
+
developerName: string;
|
|
35
|
+
/** Company name / 会社名 */
|
|
36
|
+
companyName?: string;
|
|
37
|
+
/** Email address (most important) / メールアドレス(最重要) */
|
|
38
|
+
email?: string;
|
|
39
|
+
/** Website URL / WebサイトURL */
|
|
40
|
+
website?: string;
|
|
41
|
+
/** Privacy policy URL / プライバシーポリシーURL */
|
|
42
|
+
privacyPolicyUrl?: string;
|
|
43
|
+
/** Address / 住所 */
|
|
44
|
+
address?: string;
|
|
45
|
+
/** Released apps / リリースアプリ一覧 */
|
|
46
|
+
apps: GooglePlayDeveloperApp[];
|
|
47
|
+
/** Collection time / 収集日時 */
|
|
48
|
+
collectedTime: ModelTimestamp;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Exploration mode for collecting developers.
|
|
52
|
+
*
|
|
53
|
+
* デベロッパー収集の探索モード。
|
|
54
|
+
*/
|
|
55
|
+
export type ExplorationMode = "developer_ids" | "category_ranking" | "search_keyword";
|
|
56
|
+
/**
|
|
57
|
+
* Category ranking configuration.
|
|
58
|
+
*
|
|
59
|
+
* カテゴリランキング設定。
|
|
60
|
+
*/
|
|
61
|
+
export interface CategoryRankingConfig {
|
|
62
|
+
/** Category (e.g., "GAME_ACTION", "PRODUCTIVITY") / カテゴリ */
|
|
63
|
+
category: string;
|
|
64
|
+
/** Collection (e.g., "TOP_FREE", "TOP_PAID") / コレクション */
|
|
65
|
+
collection: string;
|
|
66
|
+
/** Number of apps to fetch / 取得するアプリ数 */
|
|
67
|
+
num?: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Search configuration.
|
|
71
|
+
*
|
|
72
|
+
* 検索設定。
|
|
73
|
+
*/
|
|
74
|
+
export interface SearchConfig {
|
|
75
|
+
/** Search term / 検索キーワード */
|
|
76
|
+
term: string;
|
|
77
|
+
/** Number of results / 取得数 */
|
|
78
|
+
num?: number;
|
|
79
|
+
/** Price filter / 価格フィルター */
|
|
80
|
+
price?: "all" | "free" | "paid";
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Parameters for collect_google_play_developers action.
|
|
84
|
+
*
|
|
85
|
+
* collect_google_play_developersアクションのパラメータ。
|
|
86
|
+
*/
|
|
87
|
+
export interface CollectGooglePlayDevelopersParams {
|
|
88
|
+
/** Exploration mode / 探索モード */
|
|
89
|
+
mode: ExplorationMode;
|
|
90
|
+
/** Language code (default: "ja") / 言語コード */
|
|
91
|
+
lang?: string;
|
|
92
|
+
/** Country code (default: "jp") / 国コード */
|
|
93
|
+
country?: string;
|
|
94
|
+
/** Maximum number of developers to collect / 最大収集件数 */
|
|
95
|
+
maxCount?: number;
|
|
96
|
+
/** Mode A: Developer ID list / モードA: デベロッパーIDリスト */
|
|
97
|
+
developerIds?: string[];
|
|
98
|
+
/** Mode B: Category ranking config / モードB: カテゴリランキング設定 */
|
|
99
|
+
categoryConfig?: CategoryRankingConfig;
|
|
100
|
+
/** Mode C: Search config / モードC: 検索設定 */
|
|
101
|
+
searchConfig?: SearchConfig;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Address document for Firestore.
|
|
105
|
+
*
|
|
106
|
+
* Firestore用アドレスドキュメント。
|
|
107
|
+
*/
|
|
108
|
+
export interface AddressDocument {
|
|
109
|
+
/** Source identifier / ソース識別子 */
|
|
110
|
+
source: "googlePlay";
|
|
111
|
+
/** Developer ID / デベロッパーID */
|
|
112
|
+
developerId: string;
|
|
113
|
+
/** Developer name / デベロッパー名 */
|
|
114
|
+
developerName: string;
|
|
115
|
+
/** Company name / 会社名 */
|
|
116
|
+
companyName?: string;
|
|
117
|
+
/** Email address (most important) / メールアドレス(最重要) */
|
|
118
|
+
email?: string;
|
|
119
|
+
/** Website URL / WebサイトURL */
|
|
120
|
+
website?: string;
|
|
121
|
+
/** Privacy policy URL / プライバシーポリシーURL */
|
|
122
|
+
privacyPolicyUrl?: string;
|
|
123
|
+
/** Address / 住所 */
|
|
124
|
+
address?: string;
|
|
125
|
+
/** Representative app names / 代表アプリ名リスト */
|
|
126
|
+
appNames: string[];
|
|
127
|
+
/** Representative app summaries / 代表アプリ概要リスト */
|
|
128
|
+
appSummaries: string[];
|
|
129
|
+
/** Total app count / アプリ総数 */
|
|
130
|
+
appCount: number;
|
|
131
|
+
/** Collection time / 収集日時 */
|
|
132
|
+
collectedTime: ModelTimestamp;
|
|
133
|
+
/** Update time / 更新日時 */
|
|
134
|
+
updatedTime: ModelTimestamp;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Collection result statistics.
|
|
138
|
+
*
|
|
139
|
+
* 収集結果の統計情報。
|
|
140
|
+
*/
|
|
141
|
+
export interface CollectionStats {
|
|
142
|
+
/** Exploration mode used / 使用した探索モード */
|
|
143
|
+
mode: ExplorationMode;
|
|
144
|
+
/** Number of target developers / 対象デベロッパー数 */
|
|
145
|
+
targetCount: number;
|
|
146
|
+
/** Number of collected developers / 収集したデベロッパー数 */
|
|
147
|
+
collectedCount: number;
|
|
148
|
+
/** Number of developers with email / メールありのデベロッパー数 */
|
|
149
|
+
withEmailCount: number;
|
|
150
|
+
/** Number of saved documents / 保存したドキュメント数 */
|
|
151
|
+
savedCount: number;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Result structure for collect_google_play_developers action.
|
|
155
|
+
*
|
|
156
|
+
* collect_google_play_developersアクションの結果構造。
|
|
157
|
+
*/
|
|
158
|
+
export interface CollectGooglePlayDevelopersResult {
|
|
159
|
+
/** Collection statistics / 収集統計 */
|
|
160
|
+
stats: CollectionStats;
|
|
161
|
+
/** Collected developer information / 収集したデベロッパー情報 */
|
|
162
|
+
developers: GooglePlayDeveloperInfo[];
|
|
163
|
+
/** Error message if any / エラーメッセージ */
|
|
164
|
+
error?: string;
|
|
165
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_play_developer_data.js","sourceRoot":"","sources":["../../src/models/google_play_developer_data.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mathrunet/masamune_workflow_sales",
|
|
3
|
+
"version": "3.8.0",
|
|
4
|
+
"description": "Masamune framework package plugin that manages sales tools for Masamune Workflow.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prepare": "npm run build",
|
|
10
|
+
"prepublish": "npm install && npm run build && npm run test",
|
|
11
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
12
|
+
"cleanup": "npx ts-node scripts/cleanup_test_data.ts",
|
|
13
|
+
"postversion": "npm run changelog",
|
|
14
|
+
"changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'chore(release): publish package'",
|
|
15
|
+
"publish": "npm publish",
|
|
16
|
+
"minor_update": "npm version minor",
|
|
17
|
+
"major_update": "npm version major",
|
|
18
|
+
"patch_update": "npm version patch"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/mathrunet/node_masamune.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"masamune",
|
|
29
|
+
"katana",
|
|
30
|
+
"flutter",
|
|
31
|
+
"firebase",
|
|
32
|
+
"functions"
|
|
33
|
+
],
|
|
34
|
+
"author": "mathru",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/mathrunet/node_masamune/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/mathrunet/node_masamune#readme",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@mathrunet/masamune": "^3.10.4",
|
|
42
|
+
"@mathrunet/masamune_firebase": "^3.1.2",
|
|
43
|
+
"@mathrunet/masamune_firebase_workflow": "^3.10.0",
|
|
44
|
+
"@sparticuz/chromium": "^131.0.0",
|
|
45
|
+
"app-store-scraper": "^0.18.0",
|
|
46
|
+
"firebase-admin": "^13.1.0",
|
|
47
|
+
"firebase-functions": "^6.3.2",
|
|
48
|
+
"google-play-scraper": "^9.1.1",
|
|
49
|
+
"puppeteer-core": "^23.0.0",
|
|
50
|
+
"typescript": "^5.9.2"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/debug": "^4.1.12",
|
|
54
|
+
"@types/jest": "^29.5.12",
|
|
55
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
56
|
+
"dotenv": "^16.4.5",
|
|
57
|
+
"firebase-functions-test": "^3.4.0",
|
|
58
|
+
"jest": "^29.7.0",
|
|
59
|
+
"ts-jest": "^29.1.2"
|
|
60
|
+
}
|
|
61
|
+
}
|