@lokalise/glossary-api-contracts 0.5.0 → 0.6.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.
@@ -7,5 +7,7 @@ export declare const GLOSSARY_SCHEMA: z.ZodObject<{
7
7
  id: z.ZodUUID;
8
8
  name: z.ZodString;
9
9
  createdAt: z.ZodISODateTime;
10
+ conceptCount: z.ZodNumber;
11
+ termCount: z.ZodNumber;
10
12
  }, z.core.$strip>;
11
13
  export type Glossary = z.infer<typeof GLOSSARY_SCHEMA>;
@@ -13,5 +13,11 @@ export const GLOSSARY_SCHEMA = z.object({
13
13
  id: GLOSSARY_ID_SCHEMA,
14
14
  name: z.string().describe('Name of the glossary'),
15
15
  createdAt: z.iso.datetime().describe('Time when the service created the glossary'),
16
+ conceptCount: z.number().int().min(0).describe('Number of concepts of the glossary'),
17
+ termCount: z
18
+ .number()
19
+ .int()
20
+ .min(0)
21
+ .describe('Number of terms of the glossary, of every kind and every status'),
16
22
  });
17
23
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/api/contracts/glossaries/common.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAA;AAEtB,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;AAE3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,wBAAwB,CAAC;KAC7B,KAAK,CAAC,oBAAoB,EAAE,gDAAgD,CAAC;IAC9E,6DAA6D;KAC5D,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,8CAA8C,CAAC;KAC1F,QAAQ,CACP,uLAAuL,CACxL,CAAA;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI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GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACpF,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,iEAAiE,CAAC;CAC/E,CAAC,CAAA"}
@@ -7,6 +7,8 @@ declare const CREATE_GLOSSARY_RESPONSE_BODY_SCHEMA: z.ZodObject<{
7
7
  id: z.ZodUUID;
8
8
  name: z.ZodString;
9
9
  createdAt: z.ZodISODateTime;
10
+ conceptCount: z.ZodNumber;
11
+ termCount: z.ZodNumber;
10
12
  }, z.core.$strip>;
11
13
  export type CreateGlossaryResponseBody = z.infer<typeof CREATE_GLOSSARY_RESPONSE_BODY_SCHEMA>;
12
14
  export declare const createGlossaryContract: Omit<{
@@ -37,6 +39,8 @@ export declare const createGlossaryContract: Omit<{
37
39
  id: z.ZodUUID;
38
40
  name: z.ZodString;
39
41
  createdAt: z.ZodISODateTime;
42
+ conceptCount: z.ZodNumber;
43
+ termCount: z.ZodNumber;
40
44
  }, z.core.$strip>;
41
45
  readonly '5xx': z.ZodObject<{
42
46
  message: z.ZodString;
@@ -3,6 +3,8 @@ declare const GET_GLOSSARY_RESPONSE_BODY_SCHEMA: z.ZodObject<{
3
3
  id: z.ZodUUID;
4
4
  name: z.ZodString;
5
5
  createdAt: z.ZodISODateTime;
6
+ conceptCount: z.ZodNumber;
7
+ termCount: z.ZodNumber;
6
8
  }, z.core.$strip>;
7
9
  export type GetGlossaryResponseBody = z.infer<typeof GET_GLOSSARY_RESPONSE_BODY_SCHEMA>;
8
10
  export declare const getGlossaryContract: Omit<{
@@ -32,6 +34,8 @@ export declare const getGlossaryContract: Omit<{
32
34
  id: z.ZodUUID;
33
35
  name: z.ZodString;
34
36
  createdAt: z.ZodISODateTime;
37
+ conceptCount: z.ZodNumber;
38
+ termCount: z.ZodNumber;
35
39
  }, z.core.$strip>;
36
40
  readonly '5xx': z.ZodObject<{
37
41
  message: z.ZodString;
@@ -12,6 +12,8 @@ declare const LIST_GLOSSARIES_RESPONSE_BODY_SCHEMA: z.ZodObject<{
12
12
  id: z.ZodUUID;
13
13
  name: z.ZodString;
14
14
  createdAt: z.ZodISODateTime;
15
+ conceptCount: z.ZodNumber;
16
+ termCount: z.ZodNumber;
15
17
  }, z.core.$strip>>;
16
18
  meta: z.ZodObject<{
17
19
  count: z.ZodNumber;
@@ -52,6 +54,8 @@ export declare const listGlossariesContract: Omit<{
52
54
  id: z.ZodUUID;
53
55
  name: z.ZodString;
54
56
  createdAt: z.ZodISODateTime;
57
+ conceptCount: z.ZodNumber;
58
+ termCount: z.ZodNumber;
55
59
  }, z.core.$strip>>;
56
60
  meta: z.ZodObject<{
57
61
  count: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/glossary-api-contracts",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "API contracts of the Glossary service",
5
5
  "repository": {
6
6
  "type": "git",