adstxt-validator 1.2.3
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/LICENSE +21 -0
- package/README.md +806 -0
- package/dist/index.d.ts +238 -0
- package/dist/index.js +1273 -0
- package/dist/locales/en/validation.json +89 -0
- package/dist/locales/ja/validation.json +89 -0
- package/dist/messages.d.ts +263 -0
- package/dist/messages.js +189 -0
- package/package.json +55 -0
- package/src/locales/en/validation.json +89 -0
- package/src/locales/ja/validation.json +89 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"validation_errors": {
|
|
3
|
+
"missingFields": {
|
|
4
|
+
"message": "Missing required fields",
|
|
5
|
+
"description": "Ads.txt entries require three mandatory fields: domain, account ID, and relationship",
|
|
6
|
+
"helpUrl": "/help/#missing-fields"
|
|
7
|
+
},
|
|
8
|
+
"invalidFormat": {
|
|
9
|
+
"message": "Invalid format",
|
|
10
|
+
"description": "The ads.txt entry format is incorrect. Please use comma-separated format",
|
|
11
|
+
"helpUrl": "/help/#invalid-format"
|
|
12
|
+
},
|
|
13
|
+
"invalidRelationship": {
|
|
14
|
+
"message": "Invalid relationship",
|
|
15
|
+
"description": "Relationship must be either 'DIRECT' or 'RESELLER'",
|
|
16
|
+
"helpUrl": "/help/#invalid-relationship"
|
|
17
|
+
},
|
|
18
|
+
"invalidDomain": {
|
|
19
|
+
"message": "Invalid domain",
|
|
20
|
+
"description": "The specified domain '{{domain}}' is not a valid domain format",
|
|
21
|
+
"helpUrl": "/help/#invalid-domain"
|
|
22
|
+
},
|
|
23
|
+
"emptyAccountId": {
|
|
24
|
+
"message": "Account ID is empty",
|
|
25
|
+
"description": "Account ID is a required field",
|
|
26
|
+
"helpUrl": "/help/#empty-account-id"
|
|
27
|
+
},
|
|
28
|
+
"emptyFile": {
|
|
29
|
+
"message": "File is empty",
|
|
30
|
+
"description": "The ads.txt file contains no content",
|
|
31
|
+
"helpUrl": "/help/#empty-file"
|
|
32
|
+
},
|
|
33
|
+
"invalidCharacters": {
|
|
34
|
+
"message": "Contains invalid characters",
|
|
35
|
+
"description": "The ads.txt file contains non-printable or control characters",
|
|
36
|
+
"helpUrl": "/help/#invalid-characters"
|
|
37
|
+
},
|
|
38
|
+
"noSellersJson": {
|
|
39
|
+
"message": "sellers.json file not found for {{domain}}",
|
|
40
|
+
"description": "The specified advertising system does not have a sellers.json file",
|
|
41
|
+
"helpUrl": "/help/#no-sellers-json"
|
|
42
|
+
},
|
|
43
|
+
"directAccountIdNotInSellersJson": {
|
|
44
|
+
"message": "DIRECT entry account ID '{{accountId}}' not found in sellers.json",
|
|
45
|
+
"description": "DIRECT relationship entries must have their account ID registered in the corresponding sellers.json file",
|
|
46
|
+
"helpUrl": "/help/#direct-account-id-not-in-sellers-json"
|
|
47
|
+
},
|
|
48
|
+
"resellerAccountIdNotInSellersJson": {
|
|
49
|
+
"message": "RESELLER entry account ID '{{accountId}}' not found in sellers.json",
|
|
50
|
+
"description": "RESELLER relationship entries must have their account ID registered in the corresponding sellers.json file",
|
|
51
|
+
"helpUrl": "/help/#reseller-account-id-not-in-sellers-json"
|
|
52
|
+
},
|
|
53
|
+
"domainMismatch": {
|
|
54
|
+
"message": "Domain mismatch: {{sellerDomain}}",
|
|
55
|
+
"description": "The domain in sellers.json does not match the OWNERDOMAIN/MANAGERDOMAIN in ads.txt",
|
|
56
|
+
"helpUrl": "/help/#domain-mismatch"
|
|
57
|
+
},
|
|
58
|
+
"directNotPublisher": {
|
|
59
|
+
"message": "DIRECT entry seller_type is not 'PUBLISHER'",
|
|
60
|
+
"description": "DIRECT relationship entries should have seller_type as 'PUBLISHER' or 'BOTH' in sellers.json",
|
|
61
|
+
"helpUrl": "/help/#direct-not-publisher"
|
|
62
|
+
},
|
|
63
|
+
"sellerIdNotUnique": {
|
|
64
|
+
"message": "Account ID '{{accountId}}' is duplicated",
|
|
65
|
+
"description": "The same account ID is used in multiple entries",
|
|
66
|
+
"helpUrl": "/help/#seller-id-not-unique"
|
|
67
|
+
},
|
|
68
|
+
"resellerNotIntermediary": {
|
|
69
|
+
"message": "RESELLER entry seller_type is not 'INTERMEDIARY'",
|
|
70
|
+
"description": "RESELLER relationship entries should have seller_type as 'INTERMEDIARY' or 'BOTH' in sellers.json",
|
|
71
|
+
"helpUrl": "/help/#reseller-not-intermediary"
|
|
72
|
+
},
|
|
73
|
+
"implimentedEntry": {
|
|
74
|
+
"message": "Duplicate entry",
|
|
75
|
+
"description": "Multiple ads.txt entries with the same content exist",
|
|
76
|
+
"helpUrl": "/help/#implimented-entry"
|
|
77
|
+
},
|
|
78
|
+
"noValidRecords": {
|
|
79
|
+
"message": "No valid records found",
|
|
80
|
+
"description": "The uploaded file or provided data does not contain any valid ads.txt records",
|
|
81
|
+
"helpUrl": "/help/#no-valid-records"
|
|
82
|
+
},
|
|
83
|
+
"parsingError": {
|
|
84
|
+
"message": "Parsing error: {{message}}",
|
|
85
|
+
"description": "An error occurred while parsing the file or data",
|
|
86
|
+
"helpUrl": "/help/#parsing-error"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"validation_errors": {
|
|
3
|
+
"missingFields": {
|
|
4
|
+
"message": "必須フィールドが不足しています",
|
|
5
|
+
"description": "ads.txtエントリには、ドメイン、アカウントID、関係性の3つの必須フィールドが必要です",
|
|
6
|
+
"helpUrl": "/help/#missing-fields"
|
|
7
|
+
},
|
|
8
|
+
"invalidFormat": {
|
|
9
|
+
"message": "無効なフォーマットです",
|
|
10
|
+
"description": "ads.txtエントリの形式が正しくありません。カンマで区切られた形式で入力してください",
|
|
11
|
+
"helpUrl": "/help/#invalid-format"
|
|
12
|
+
},
|
|
13
|
+
"invalidRelationship": {
|
|
14
|
+
"message": "無効な関係性です",
|
|
15
|
+
"description": "関係性は「DIRECT」または「RESELLER」である必要があります",
|
|
16
|
+
"helpUrl": "/help/#invalid-relationship"
|
|
17
|
+
},
|
|
18
|
+
"invalidDomain": {
|
|
19
|
+
"message": "無効なドメインです",
|
|
20
|
+
"description": "指定されたドメイン「{{domain}}」は有効なドメイン形式ではありません",
|
|
21
|
+
"helpUrl": "/help/#invalid-domain"
|
|
22
|
+
},
|
|
23
|
+
"emptyAccountId": {
|
|
24
|
+
"message": "アカウントIDが空です",
|
|
25
|
+
"description": "アカウントIDは必須フィールドです",
|
|
26
|
+
"helpUrl": "/help/#empty-account-id"
|
|
27
|
+
},
|
|
28
|
+
"emptyFile": {
|
|
29
|
+
"message": "ファイルが空です",
|
|
30
|
+
"description": "ads.txtファイルにコンテンツがありません",
|
|
31
|
+
"helpUrl": "/help/#empty-file"
|
|
32
|
+
},
|
|
33
|
+
"invalidCharacters": {
|
|
34
|
+
"message": "無効な文字が含まれています",
|
|
35
|
+
"description": "ads.txtファイルに印刷できない文字や制御文字が含まれています",
|
|
36
|
+
"helpUrl": "/help/#invalid-characters"
|
|
37
|
+
},
|
|
38
|
+
"noSellersJson": {
|
|
39
|
+
"message": "{{domain}}のsellers.jsonファイルが見つかりません",
|
|
40
|
+
"description": "指定された広告システムにsellers.jsonファイルが存在しません",
|
|
41
|
+
"helpUrl": "/help/#no-sellers-json"
|
|
42
|
+
},
|
|
43
|
+
"directAccountIdNotInSellersJson": {
|
|
44
|
+
"message": "DIRECTエントリのアカウントID「{{accountId}}」がsellers.jsonに見つかりません",
|
|
45
|
+
"description": "DIRECT関係のエントリは、対応するsellers.jsonファイルにアカウントIDが登録されている必要があります",
|
|
46
|
+
"helpUrl": "/help/#direct-account-id-not-in-sellers-json"
|
|
47
|
+
},
|
|
48
|
+
"resellerAccountIdNotInSellersJson": {
|
|
49
|
+
"message": "RESELLERエントリのアカウントID「{{accountId}}」がsellers.jsonに見つかりません",
|
|
50
|
+
"description": "RESELLER関係のエントリは、対応するsellers.jsonファイルにアカウントIDが登録されている必要があります",
|
|
51
|
+
"helpUrl": "/help/#reseller-account-id-not-in-sellers-json"
|
|
52
|
+
},
|
|
53
|
+
"domainMismatch": {
|
|
54
|
+
"message": "ドメインの不一致: {{sellerDomain}}",
|
|
55
|
+
"description": "sellers.jsonのドメインとads.txtのOWNERDOMAIN/MANAGERDOMAINが一致しません",
|
|
56
|
+
"helpUrl": "/help/#domain-mismatch"
|
|
57
|
+
},
|
|
58
|
+
"directNotPublisher": {
|
|
59
|
+
"message": "DIRECTエントリのseller_typeが「PUBLISHER」ではありません",
|
|
60
|
+
"description": "DIRECT関係のエントリは、sellers.jsonでseller_typeが「PUBLISHER」または「BOTH」である必要があります",
|
|
61
|
+
"helpUrl": "/help/#direct-not-publisher"
|
|
62
|
+
},
|
|
63
|
+
"sellerIdNotUnique": {
|
|
64
|
+
"message": "アカウントID「{{accountId}}」が重複しています",
|
|
65
|
+
"description": "同じアカウントIDが複数のエントリで使用されています",
|
|
66
|
+
"helpUrl": "/help/#seller-id-not-unique"
|
|
67
|
+
},
|
|
68
|
+
"resellerNotIntermediary": {
|
|
69
|
+
"message": "RESELLERエントリのseller_typeが「INTERMEDIARY」ではありません",
|
|
70
|
+
"description": "RESELLER関係のエントリは、sellers.jsonでseller_typeが「INTERMEDIARY」または「BOTH」である必要があります",
|
|
71
|
+
"helpUrl": "/help/#reseller-not-intermediary"
|
|
72
|
+
},
|
|
73
|
+
"implimentedEntry": {
|
|
74
|
+
"message": "重複したエントリです",
|
|
75
|
+
"description": "同じ内容のads.txtエントリが複数存在します",
|
|
76
|
+
"helpUrl": "/help/#implimented-entry"
|
|
77
|
+
},
|
|
78
|
+
"noValidRecords": {
|
|
79
|
+
"message": "有効なレコードがありません",
|
|
80
|
+
"description": "アップロードされたファイルまたは提供されたデータに有効なads.txtレコードが含まれていません",
|
|
81
|
+
"helpUrl": "/help/#no-valid-records"
|
|
82
|
+
},
|
|
83
|
+
"parsingError": {
|
|
84
|
+
"message": "解析エラー: {{message}}",
|
|
85
|
+
"description": "ファイルまたはデータの解析中にエラーが発生しました",
|
|
86
|
+
"helpUrl": "/help/#parsing-error"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|