@@ -130,6 +130,86 @@ pub static PROPOSAL_TEMPLATE_FOR_CATEGORY_DOC: LazyLock<CatalystSignedDocument>
130130 . unwrap ( )
131131 } ) ;
132132
133+ pub static COMMENT_TEMPLATE_FOR_BRAND_DOC : LazyLock < CatalystSignedDocument > = LazyLock :: new ( || {
134+ Builder :: new ( )
135+ . with_json_metadata ( serde_json:: json!( {
136+ "content-type" : ContentType :: Json . to_string( ) ,
137+ "content-encoding" : ContentEncoding :: Brotli . to_string( ) ,
138+ "type" : doc_types:: PROPOSAL_COMMENT_FORM_TEMPLATE . clone( ) ,
139+ "id" : UuidV7 :: new( ) ,
140+ "ver" : UuidV7 :: new( ) ,
141+ "parameters" : {
142+ "id" : BRAND_PARAMETERS_DOC . doc_id( ) . unwrap( ) ,
143+ "ver" : BRAND_PARAMETERS_DOC . doc_ver( ) . unwrap( ) ,
144+ }
145+ } ) )
146+ . unwrap ( )
147+ . with_json_content ( & serde_json:: json!( {
148+ "$schema" : "http://json-schema.org/draft-07/schema#" ,
149+ "type" : "object" ,
150+ "properties" : { } ,
151+ "required" : [ ] ,
152+ "additionalProperties" : false
153+ } ) )
154+ . unwrap ( )
155+ . build ( )
156+ . unwrap ( )
157+ } ) ;
158+
159+ pub static COMMENT_TEMPLATE_FOR_CAMPAIGN_DOC : LazyLock < CatalystSignedDocument > =
160+ LazyLock :: new ( || {
161+ Builder :: new ( )
162+ . with_json_metadata ( serde_json:: json!( {
163+ "content-type" : ContentType :: Json . to_string( ) ,
164+ "content-encoding" : ContentEncoding :: Brotli . to_string( ) ,
165+ "type" : doc_types:: PROPOSAL_COMMENT_FORM_TEMPLATE . clone( ) ,
166+ "id" : UuidV7 :: new( ) ,
167+ "ver" : UuidV7 :: new( ) ,
168+ "parameters" : {
169+ "id" : CAMPAIGN_PARAMETERS_DOC . doc_id( ) . unwrap( ) ,
170+ "ver" : CAMPAIGN_PARAMETERS_DOC . doc_ver( ) . unwrap( ) ,
171+ }
172+ } ) )
173+ . unwrap ( )
174+ . with_json_content ( & serde_json:: json!( {
175+ "$schema" : "http://json-schema.org/draft-07/schema#" ,
176+ "type" : "object" ,
177+ "properties" : { } ,
178+ "required" : [ ] ,
179+ "additionalProperties" : false
180+ } ) )
181+ . unwrap ( )
182+ . build ( )
183+ . unwrap ( )
184+ } ) ;
185+
186+ pub static COMMENT_TEMPLATE_FOR_CATEGORY_DOC : LazyLock < CatalystSignedDocument > =
187+ LazyLock :: new ( || {
188+ Builder :: new ( )
189+ . with_json_metadata ( serde_json:: json!( {
190+ "content-type" : ContentType :: Json . to_string( ) ,
191+ "content-encoding" : ContentEncoding :: Brotli . to_string( ) ,
192+ "type" : doc_types:: PROPOSAL_COMMENT_FORM_TEMPLATE . clone( ) ,
193+ "id" : UuidV7 :: new( ) ,
194+ "ver" : UuidV7 :: new( ) ,
195+ "parameters" : {
196+ "id" : CATEGORY_PARAMETERS_DOC . doc_id( ) . unwrap( ) ,
197+ "ver" : CATEGORY_PARAMETERS_DOC . doc_ver( ) . unwrap( ) ,
198+ }
199+ } ) )
200+ . unwrap ( )
201+ . with_json_content ( & serde_json:: json!( {
202+ "$schema" : "http://json-schema.org/draft-07/schema#" ,
203+ "type" : "object" ,
204+ "properties" : { } ,
205+ "required" : [ ] ,
206+ "additionalProperties" : false
207+ } ) )
208+ . unwrap ( )
209+ . build ( )
210+ . unwrap ( )
211+ } ) ;
212+
133213pub static PROPOSAL_FOR_BRAND_DOC : LazyLock < CatalystSignedDocument > = LazyLock :: new ( || {
134214 Builder :: new ( )
135215 . with_json_metadata ( serde_json:: json!( {
@@ -186,3 +266,89 @@ pub static PROPOSAL_FOR_CATEGORY_DOC: LazyLock<CatalystSignedDocument> = LazyLoc
186266 . build ( )
187267 . unwrap ( )
188268} ) ;
269+
270+ pub static PROPOSAL_COMMENT_FOR_BRAND_DOC : LazyLock < CatalystSignedDocument > = LazyLock :: new ( || {
271+ Builder :: new ( )
272+ . with_json_metadata ( serde_json:: json!( {
273+ "content-type" : ContentType :: Json . to_string( ) ,
274+ "content-encoding" : ContentEncoding :: Brotli . to_string( ) ,
275+ "type" : doc_types:: PROPOSAL_COMMENT . clone( ) ,
276+ "id" : UuidV7 :: new( ) ,
277+ "ver" : UuidV7 :: new( ) ,
278+ "ref" : {
279+ "id" : PROPOSAL_FOR_BRAND_DOC . doc_id( ) . unwrap( ) ,
280+ "ver" : PROPOSAL_FOR_BRAND_DOC . doc_ver( ) . unwrap( ) ,
281+ } ,
282+ "template" : {
283+ "id" : COMMENT_TEMPLATE_FOR_BRAND_DOC . doc_id( ) . unwrap( ) ,
284+ "ver" : COMMENT_TEMPLATE_FOR_BRAND_DOC . doc_ver( ) . unwrap( ) ,
285+ } ,
286+ "parameters" : {
287+ "id" : BRAND_PARAMETERS_DOC . doc_id( ) . unwrap( ) ,
288+ "ver" : BRAND_PARAMETERS_DOC . doc_ver( ) . unwrap( ) ,
289+ }
290+ } ) )
291+ . unwrap ( )
292+ . with_json_content ( & serde_json:: json!( { } ) )
293+ . unwrap ( )
294+ . build ( )
295+ . unwrap ( )
296+ } ) ;
297+
298+ pub static PROPOSAL_COMMENT_FOR_CAMPAIGN_DOC : LazyLock < CatalystSignedDocument > =
299+ LazyLock :: new ( || {
300+ Builder :: new ( )
301+ . with_json_metadata ( serde_json:: json!( {
302+ "content-type" : ContentType :: Json . to_string( ) ,
303+ "content-encoding" : ContentEncoding :: Brotli . to_string( ) ,
304+ "type" : doc_types:: PROPOSAL_COMMENT . clone( ) ,
305+ "id" : UuidV7 :: new( ) ,
306+ "ver" : UuidV7 :: new( ) ,
307+ "ref" : {
308+ "id" : PROPOSAL_FOR_CAMPAIGN_DOC . doc_id( ) . unwrap( ) ,
309+ "ver" : PROPOSAL_FOR_CAMPAIGN_DOC . doc_ver( ) . unwrap( ) ,
310+ } ,
311+ "template" : {
312+ "id" : COMMENT_TEMPLATE_FOR_CAMPAIGN_DOC . doc_id( ) . unwrap( ) ,
313+ "ver" : COMMENT_TEMPLATE_FOR_CAMPAIGN_DOC . doc_ver( ) . unwrap( ) ,
314+ } ,
315+ "parameters" : {
316+ "id" : CAMPAIGN_PARAMETERS_DOC . doc_id( ) . unwrap( ) ,
317+ "ver" : CAMPAIGN_PARAMETERS_DOC . doc_ver( ) . unwrap( ) ,
318+ }
319+ } ) )
320+ . unwrap ( )
321+ . with_json_content ( & serde_json:: json!( { } ) )
322+ . unwrap ( )
323+ . build ( )
324+ . unwrap ( )
325+ } ) ;
326+
327+ pub static PROPOSAL_COMMENT_FOR_CATEGORY_DOC : LazyLock < CatalystSignedDocument > =
328+ LazyLock :: new ( || {
329+ Builder :: new ( )
330+ . with_json_metadata ( serde_json:: json!( {
331+ "content-type" : ContentType :: Json . to_string( ) ,
332+ "content-encoding" : ContentEncoding :: Brotli . to_string( ) ,
333+ "type" : doc_types:: PROPOSAL_COMMENT . clone( ) ,
334+ "id" : UuidV7 :: new( ) ,
335+ "ver" : UuidV7 :: new( ) ,
336+ "ref" : {
337+ "id" : PROPOSAL_FOR_CATEGORY_DOC . doc_id( ) . unwrap( ) ,
338+ "ver" : PROPOSAL_FOR_CATEGORY_DOC . doc_ver( ) . unwrap( ) ,
339+ } ,
340+ "template" : {
341+ "id" : COMMENT_TEMPLATE_FOR_CATEGORY_DOC . doc_id( ) . unwrap( ) ,
342+ "ver" : COMMENT_TEMPLATE_FOR_CATEGORY_DOC . doc_ver( ) . unwrap( ) ,
343+ } ,
344+ "parameters" : {
345+ "id" : CATEGORY_PARAMETERS_DOC . doc_id( ) . unwrap( ) ,
346+ "ver" : CATEGORY_PARAMETERS_DOC . doc_ver( ) . unwrap( ) ,
347+ }
348+ } ) )
349+ . unwrap ( )
350+ . with_json_content ( & serde_json:: json!( { } ) )
351+ . unwrap ( )
352+ . build ( )
353+ . unwrap ( )
354+ } ) ;
0 commit comments