Skip to content

Commit 6a522b5

Browse files
ani hammondani hammond
authored andcommitted
test
1 parent c737807 commit 6a522b5

3 files changed

Lines changed: 256 additions & 0 deletions

File tree

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"@aws-sdk/client-sfn": "3.1045.0",
105105
"@aws-sdk/client-sqs": "3.1045.0",
106106
"@aws-sdk/s3-request-presigner": "3.1045.0",
107+
"@bufbuild/protobuf": "^2.7.0",
107108
"@langchain/core": "0.3.80",
108109
"@langchain/langgraph": "0.4.9",
109110
"@langchain/openai": "0.6.17",
@@ -135,6 +136,7 @@
135136
"@adobe/semantic-release-coralogix": "1.1.41",
136137
"@adobe/semantic-release-skms-cmr": "1.1.5",
137138
"@eslint/config-helpers": "0.6.0",
139+
"@quazar/ai-seo-ts": "file:src/support/serenity/third-party/ai-seo-ts",
138140
"@redocly/cli": "2.30.4",
139141
"@semantic-release/changelog": "6.0.3",
140142
"@semantic-release/exec": "7.1.0",
Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
/*
2+
* Copyright 2026 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
13+
import { expect } from 'chai';
14+
15+
import * as aiCrEnums from '@quazar/ai-seo-ts/ai-cr/enums_pb.js';
16+
import * as aiCrMessages from '@quazar/ai-seo-ts/ai-cr/messages_pb.js';
17+
import * as aiCrService from '@quazar/ai-seo-ts/ai-cr/service_pb.js';
18+
import * as aiPrEnums from '@quazar/ai-seo-ts/ai-pr/enums_pb.js';
19+
import * as aiPrMessages from '@quazar/ai-seo-ts/ai-pr/messages_pb.js';
20+
import * as aiPrService from '@quazar/ai-seo-ts/ai-pr/service_pb.js';
21+
import * as aiVoEnums from '@quazar/ai-seo-ts/ai-vo/enums_pb.js';
22+
import * as aiVoMessages from '@quazar/ai-seo-ts/ai-vo/messages_pb.js';
23+
import * as aiVoService from '@quazar/ai-seo-ts/ai-vo/service_pb.js';
24+
import * as commonMethods from '@quazar/ai-seo-ts/common/methods_pb.js';
25+
import * as commonTypes from '@quazar/ai-seo-ts/common/types_pb.js';
26+
import * as commonValidation from '@quazar/ai-seo-ts/common/validation_pb.js';
27+
import * as bufValidate from '@quazar/ai-seo-ts/deps/buf/validate/validate_pb.js';
28+
import * as googleApiAnnotations from '@quazar/ai-seo-ts/deps/google/api/annotations_pb.js';
29+
import * as googleApiHttp from '@quazar/ai-seo-ts/deps/google/api/http_pb.js';
30+
import * as openapiAnnotations from '@quazar/ai-seo-ts/deps/protoc-gen-openapiv2/options/annotations_pb.js';
31+
import * as openapiV2 from '@quazar/ai-seo-ts/deps/protoc-gen-openapiv2/options/openapiv2_pb.js';
32+
import * as v2BrandEnums from '@quazar/ai-seo-ts/v2/brand/enums_pb.js';
33+
import * as v2BrandMessages from '@quazar/ai-seo-ts/v2/brand/messages_pb.js';
34+
import * as v2BrandService from '@quazar/ai-seo-ts/v2/brand/service_pb.js';
35+
import * as v2CommonMessages from '@quazar/ai-seo-ts/v2/common/messages_pb.js';
36+
import * as v2CompetitorEnums from '@quazar/ai-seo-ts/v2/competitor/enums_pb.js';
37+
import * as v2CompetitorMessages from '@quazar/ai-seo-ts/v2/competitor/messages_pb.js';
38+
import * as v2CompetitorService from '@quazar/ai-seo-ts/v2/competitor/service_pb.js';
39+
import * as v2MetaEnums from '@quazar/ai-seo-ts/v2/meta/enums_pb.js';
40+
import * as v2MetaMessages from '@quazar/ai-seo-ts/v2/meta/messages_pb.js';
41+
import * as v2MetaService from '@quazar/ai-seo-ts/v2/meta/service_pb.js';
42+
import * as v2PromptEnums from '@quazar/ai-seo-ts/v2/prompt/enums_pb.js';
43+
import * as v2PromptMessages from '@quazar/ai-seo-ts/v2/prompt/messages_pb.js';
44+
import * as v2PromptService from '@quazar/ai-seo-ts/v2/prompt/service_pb.js';
45+
import * as v2SourceEnums from '@quazar/ai-seo-ts/v2/source/enums_pb.js';
46+
import * as v2SourceMessages from '@quazar/ai-seo-ts/v2/source/messages_pb.js';
47+
import * as v2SourceService from '@quazar/ai-seo-ts/v2/source/service_pb.js';
48+
import * as v2TopicEnums from '@quazar/ai-seo-ts/v2/topic/enums_pb.js';
49+
import * as v2TopicMessages from '@quazar/ai-seo-ts/v2/topic/messages_pb.js';
50+
import * as v2TopicService from '@quazar/ai-seo-ts/v2/topic/service_pb.js';
51+
52+
describe('ai-seo-ts protobuf schemas', () => {
53+
it('ai-cr enums exports file descriptor and enum schemas', () => {
54+
expect(aiCrEnums.file_ai_cr_enums).to.exist;
55+
expect(aiCrEnums.GAP_KINDSchema).to.exist;
56+
expect(aiCrEnums.GAP_KIND_ENUMSchema).to.exist;
57+
expect(aiCrEnums.GAP_KIND_ENUM).to.exist;
58+
expect(aiCrEnums.TOPICS_REQUEST_ORDER_BYSchema).to.exist;
59+
expect(aiCrEnums.PROMPTS_REQUEST_ORDER_BYSchema).to.exist;
60+
expect(aiCrEnums.DOMAINS_REQUEST_ORDER_BYSchema).to.exist;
61+
});
62+
63+
it('ai-cr messages exports file descriptor and message schemas', () => {
64+
expect(aiCrMessages.file_ai_cr_messages).to.exist;
65+
expect(aiCrMessages.MetaRequestSchema).to.exist;
66+
expect(aiCrMessages.MetaResponseSchema).to.exist;
67+
});
68+
69+
it('ai-cr service exports file descriptor and service descriptors', () => {
70+
expect(aiCrService.file_ai_cr_service).to.exist;
71+
expect(aiCrService.Meta).to.exist;
72+
expect(aiCrService.CompetitorsMetrics).to.exist;
73+
expect(aiCrService.TopicsGap).to.exist;
74+
expect(aiCrService.SourcesGap).to.exist;
75+
expect(aiCrService.PromptsGap).to.exist;
76+
});
77+
78+
it('ai-pr enums exports file descriptor and enum schemas', () => {
79+
expect(aiPrEnums.file_ai_pr_enums).to.exist;
80+
});
81+
82+
it('ai-pr messages exports file descriptor and message schemas', () => {
83+
expect(aiPrMessages.file_ai_pr_messages).to.exist;
84+
});
85+
86+
it('ai-pr service exports file descriptor and service descriptors', () => {
87+
expect(aiPrService.file_ai_pr_service).to.exist;
88+
expect(aiPrService.Fts).to.exist;
89+
expect(aiPrService.Overview).to.exist;
90+
expect(aiPrService.Relations).to.exist;
91+
});
92+
93+
it('ai-vo enums exports file descriptor and enum schemas', () => {
94+
expect(aiVoEnums.file_ai_vo_enums).to.exist;
95+
});
96+
97+
it('ai-vo messages exports file descriptor and message schemas', () => {
98+
expect(aiVoMessages.file_ai_vo_messages).to.exist;
99+
});
100+
101+
it('ai-vo service exports file descriptor and service descriptors', () => {
102+
expect(aiVoService.file_ai_vo_service).to.exist;
103+
expect(aiVoService.BrandMetrics).to.exist;
104+
expect(aiVoService.Prompts).to.exist;
105+
expect(aiVoService.Sources).to.exist;
106+
expect(aiVoService.BrandDomains).to.exist;
107+
});
108+
109+
it('common methods exports file descriptor', () => {
110+
expect(commonMethods.file_common_methods).to.exist;
111+
});
112+
113+
it('common types exports file descriptor and type schemas', () => {
114+
expect(commonTypes.file_common_types).to.exist;
115+
});
116+
117+
it('common validation exports file descriptor and validation constants', () => {
118+
expect(commonValidation.file_common_validation).to.exist;
119+
expect(commonValidation.is_non_blank).to.exist;
120+
expect(commonValidation.is_iso_date).to.exist;
121+
});
122+
123+
it('deps buf/validate exports file descriptor and constraint schemas', () => {
124+
expect(bufValidate.file_deps_buf_validate_validate).to.exist;
125+
expect(bufValidate.ConstraintSchema).to.exist;
126+
expect(bufValidate.FieldConstraintsSchema).to.exist;
127+
});
128+
129+
it('deps google/api/annotations exports file descriptor', () => {
130+
expect(googleApiAnnotations.file_deps_google_api_annotations).to.exist;
131+
});
132+
133+
it('deps google/api/http exports file descriptor and http schemas', () => {
134+
expect(googleApiHttp.file_deps_google_api_http).to.exist;
135+
expect(googleApiHttp.HttpSchema).to.exist;
136+
expect(googleApiHttp.HttpRuleSchema).to.exist;
137+
});
138+
139+
it('deps protoc-gen-openapiv2 annotations exports file descriptor and extension fields', () => {
140+
expect(openapiAnnotations.file_deps_protoc_gen_openapiv2_options_annotations).to.exist;
141+
expect(openapiAnnotations.openapiv2_swagger).to.exist;
142+
expect(openapiAnnotations.openapiv2_operation).to.exist;
143+
});
144+
145+
it('deps protoc-gen-openapiv2 openapiv2 exports file descriptor and swagger schemas', () => {
146+
expect(openapiV2.file_deps_protoc_gen_openapiv2_options_openapiv2).to.exist;
147+
expect(openapiV2.SwaggerSchema).to.exist;
148+
expect(openapiV2.OperationSchema).to.exist;
149+
});
150+
151+
it('v2/brand enums exports file descriptor and enum schemas', () => {
152+
expect(v2BrandEnums.file_v2_brand_enums).to.exist;
153+
expect(v2BrandEnums.BRANDS_BY_TOPIC_FTS_REQUEST_ORDER_BYSchema).to.exist;
154+
});
155+
156+
it('v2/brand messages exports file descriptor and message schemas', () => {
157+
expect(v2BrandMessages.file_v2_brand_messages).to.exist;
158+
});
159+
160+
it('v2/brand service exports file descriptor and service descriptor', () => {
161+
expect(v2BrandService.file_v2_brand_service).to.exist;
162+
expect(v2BrandService.BrandService).to.exist;
163+
});
164+
165+
it('v2/common messages exports file descriptor and format schemas', () => {
166+
expect(v2CommonMessages.file_v2_common_messages).to.exist;
167+
expect(v2CommonMessages.EXPORT_FILE_FORMATSchema).to.exist;
168+
});
169+
170+
it('v2/competitor enums exports file descriptor and enum schemas', () => {
171+
expect(v2CompetitorEnums.file_v2_competitor_enums).to.exist;
172+
});
173+
174+
it('v2/competitor messages exports file descriptor and message schemas', () => {
175+
expect(v2CompetitorMessages.file_v2_competitor_messages).to.exist;
176+
});
177+
178+
it('v2/competitor service exports file descriptor and service descriptor', () => {
179+
expect(v2CompetitorService.file_v2_competitor_service).to.exist;
180+
expect(v2CompetitorService.CompetitorService).to.exist;
181+
});
182+
183+
it('v2/meta enums exports file descriptor and enum schemas', () => {
184+
expect(v2MetaEnums.file_v2_meta_enums).to.exist;
185+
});
186+
187+
it('v2/meta messages exports file descriptor and message schemas', () => {
188+
expect(v2MetaMessages.file_v2_meta_messages).to.exist;
189+
});
190+
191+
it('v2/meta service exports file descriptor and service descriptor', () => {
192+
expect(v2MetaService.file_v2_meta_service).to.exist;
193+
expect(v2MetaService.MetaService).to.exist;
194+
});
195+
196+
it('v2/prompt enums exports file descriptor and enum schemas', () => {
197+
expect(v2PromptEnums.file_v2_prompt_enums).to.exist;
198+
});
199+
200+
it('v2/prompt messages exports file descriptor and message schemas', () => {
201+
expect(v2PromptMessages.file_v2_prompt_messages).to.exist;
202+
});
203+
204+
it('v2/prompt service exports file descriptor and service descriptor', () => {
205+
expect(v2PromptService.file_v2_prompt_service).to.exist;
206+
expect(v2PromptService.PromptService).to.exist;
207+
});
208+
209+
it('v2/source enums exports file descriptor and enum schemas', () => {
210+
expect(v2SourceEnums.file_v2_source_enums).to.exist;
211+
});
212+
213+
it('v2/source messages exports file descriptor and message schemas', () => {
214+
expect(v2SourceMessages.file_v2_source_messages).to.exist;
215+
});
216+
217+
it('v2/source service exports file descriptor and service descriptor', () => {
218+
expect(v2SourceService.file_v2_source_service).to.exist;
219+
expect(v2SourceService.SourceService).to.exist;
220+
});
221+
222+
it('v2/topic enums exports file descriptor and enum schemas', () => {
223+
expect(v2TopicEnums.file_v2_topic_enums).to.exist;
224+
});
225+
226+
it('v2/topic messages exports file descriptor and message schemas', () => {
227+
expect(v2TopicMessages.file_v2_topic_messages).to.exist;
228+
});
229+
230+
it('v2/topic service exports file descriptor and service descriptor', () => {
231+
expect(v2TopicService.file_v2_topic_service).to.exist;
232+
expect(v2TopicService.TopicService).to.exist;
233+
});
234+
});

0 commit comments

Comments
 (0)