@lokalise/workspaces-api-schemas 5.16.0 → 5.18.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.
@@ -64,3 +64,99 @@ export declare const getExpertProjectLanguagesContract: import("@lokalise/api-co
64
64
  }, z.core.$strip>>;
65
65
  }, z.core.$strip>;
66
66
  }>;
67
+ export declare const POST_EXPERT_ADD_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
68
+ project_id: z.ZodString;
69
+ project_uuid: z.ZodGUID;
70
+ languages: z.ZodArray<z.ZodObject<{
71
+ lang_id: z.ZodNumber;
72
+ lang_iso: z.ZodString;
73
+ lang_name: z.ZodString;
74
+ is_rtl: z.ZodBoolean;
75
+ plural_forms: z.ZodArray<z.ZodString>;
76
+ project_language_id: z.ZodOptional<z.ZodString>;
77
+ project_language_uuid: z.ZodOptional<z.ZodGUID>;
78
+ cc_iso: z.ZodString;
79
+ }, z.core.$strip>>;
80
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ message: z.ZodString;
82
+ code: z.ZodNumber;
83
+ lang_iso: z.ZodString;
84
+ }, z.core.$strip>>>;
85
+ }, z.core.$strip>;
86
+ export type PostExpertAddLanguagesResponse = z.infer<typeof POST_EXPERT_ADD_LANGUAGES_RESPONSE_SCHEMA>;
87
+ export declare const postExpertAddProjectLanguagesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
88
+ languages: z.ZodArray<z.ZodObject<{
89
+ lang_iso: z.ZodString;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ project_id: z.ZodString;
93
+ project_uuid: z.ZodGUID;
94
+ languages: z.ZodArray<z.ZodObject<{
95
+ lang_id: z.ZodNumber;
96
+ lang_iso: z.ZodString;
97
+ lang_name: z.ZodString;
98
+ is_rtl: z.ZodBoolean;
99
+ plural_forms: z.ZodArray<z.ZodString>;
100
+ project_language_id: z.ZodOptional<z.ZodString>;
101
+ project_language_uuid: z.ZodOptional<z.ZodGUID>;
102
+ cc_iso: z.ZodString;
103
+ }, z.core.$strip>>;
104
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ message: z.ZodString;
106
+ code: z.ZodNumber;
107
+ lang_iso: z.ZodString;
108
+ }, z.core.$strip>>>;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ projectId: z.ZodString;
111
+ }, z.core.$strip>, undefined, z.ZodUnion<readonly [z.ZodObject<{
112
+ Authorization: z.ZodString;
113
+ 'Content-Type': z.ZodLiteral<"application/json">;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ authorization: z.ZodString;
116
+ 'content-type': z.ZodLiteral<"application/json">;
117
+ }, z.core.$strip>]>, undefined, false, false, {
118
+ 200: z.ZodObject<{
119
+ project_id: z.ZodString;
120
+ project_uuid: z.ZodGUID;
121
+ languages: z.ZodArray<z.ZodObject<{
122
+ lang_id: z.ZodNumber;
123
+ lang_iso: z.ZodString;
124
+ lang_name: z.ZodString;
125
+ is_rtl: z.ZodBoolean;
126
+ plural_forms: z.ZodArray<z.ZodString>;
127
+ project_language_id: z.ZodOptional<z.ZodString>;
128
+ project_language_uuid: z.ZodOptional<z.ZodGUID>;
129
+ cc_iso: z.ZodString;
130
+ }, z.core.$strip>>;
131
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ message: z.ZodString;
133
+ code: z.ZodNumber;
134
+ lang_iso: z.ZodString;
135
+ }, z.core.$strip>>>;
136
+ }, z.core.$strip>;
137
+ }>;
138
+ declare const PUT_EXPERT_BULK_UPDATE_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
139
+ result: z.ZodBoolean;
140
+ }, z.core.$strip>;
141
+ export type PutExpertBulkUpdateLanguagesResponse = z.infer<typeof PUT_EXPERT_BULK_UPDATE_LANGUAGES_RESPONSE_SCHEMA>;
142
+ export declare const putExpertBulkUpdateProjectLanguagesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
143
+ langs: z.ZodArray<z.ZodObject<{
144
+ lang_iso: z.ZodString;
145
+ base_lang: z.ZodBoolean;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ result: z.ZodBoolean;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ projectId: z.ZodString;
151
+ }, z.core.$strip>, undefined, z.ZodUnion<readonly [z.ZodObject<{
152
+ Authorization: z.ZodString;
153
+ 'Content-Type': z.ZodLiteral<"application/json">;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ authorization: z.ZodString;
156
+ 'content-type': z.ZodLiteral<"application/json">;
157
+ }, z.core.$strip>]>, undefined, false, false, {
158
+ 200: z.ZodObject<{
159
+ result: z.ZodBoolean;
160
+ }, z.core.$strip>;
161
+ }>;
162
+ export {};
@@ -1,4 +1,4 @@
1
- import { buildGetRoute } from '@lokalise/api-contracts';
1
+ import { buildRestContract } from '@lokalise/api-contracts';
2
2
  import { z } from 'zod/v4';
3
3
  import { EXPERT_AUTHORIZATION_HEADER_SCHEMA, EXPERT_MANDATORY_PAGINATION_SCHEMA, PROJECT_ID_REQUEST_PARAM_SCHEMA, } from "./common.js";
4
4
  // ---------------------------------------------------
@@ -19,7 +19,8 @@ export const GET_EXPERT_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({
19
19
  project_uuid: z.guid(),
20
20
  languages: z.array(EXPERT_PROJECT_LANGUAGE_DATA_SCHEMA),
21
21
  });
22
- export const getExpertProjectLanguagesContract = buildGetRoute({
22
+ export const getExpertProjectLanguagesContract = buildRestContract({
23
+ method: 'get',
23
24
  pathResolver: (params) => `/api2/projects/${params.projectId}/languages`,
24
25
  description: 'Get expert project languages',
25
26
  requestQuerySchema: EXPERT_MANDATORY_PAGINATION_SCHEMA,
@@ -30,4 +31,63 @@ export const getExpertProjectLanguagesContract = buildGetRoute({
30
31
  },
31
32
  requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
32
33
  });
34
+ // ---------------------------------------------------
35
+ // POST /api2/projects/:projectId/languages
36
+ // ---------------------------------------------------
37
+ const POST_EXPERT_ADD_LANGUAGES_REQUEST_BODY_SCHEMA = z.object({
38
+ languages: z.array(z.object({
39
+ lang_iso: z.string(),
40
+ })),
41
+ });
42
+ export const POST_EXPERT_ADD_LANGUAGES_RESPONSE_SCHEMA = z.object({
43
+ project_id: z.string(),
44
+ project_uuid: z.guid(),
45
+ languages: z.array(EXPERT_PROJECT_LANGUAGE_DATA_SCHEMA.partial({
46
+ project_language_id: true,
47
+ project_language_uuid: true,
48
+ })),
49
+ errors: z
50
+ .array(z.object({
51
+ message: z.string(),
52
+ code: z.number(),
53
+ lang_iso: z.string(),
54
+ }))
55
+ .optional(),
56
+ });
57
+ export const postExpertAddProjectLanguagesContract = buildRestContract({
58
+ method: 'post',
59
+ pathResolver: (params) => `/api2/projects/${params.projectId}/languages`,
60
+ description: 'Add languages to project via Expert API',
61
+ requestPathParamsSchema: PROJECT_ID_REQUEST_PARAM_SCHEMA,
62
+ requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
63
+ requestBodySchema: POST_EXPERT_ADD_LANGUAGES_REQUEST_BODY_SCHEMA,
64
+ successResponseBodySchema: POST_EXPERT_ADD_LANGUAGES_RESPONSE_SCHEMA,
65
+ responseSchemasByStatusCode: {
66
+ 200: POST_EXPERT_ADD_LANGUAGES_RESPONSE_SCHEMA,
67
+ },
68
+ });
69
+ // ---------------------------------------------------
70
+ // PUT /api2/projects/:projectId/languages/bulk-update
71
+ // ---------------------------------------------------
72
+ const PUT_EXPERT_BULK_UPDATE_LANGUAGES_REQUEST_BODY_SCHEMA = z.object({
73
+ langs: z.array(z.object({
74
+ lang_iso: z.string(),
75
+ base_lang: z.boolean(),
76
+ })),
77
+ });
78
+ const PUT_EXPERT_BULK_UPDATE_LANGUAGES_RESPONSE_SCHEMA = z.object({
79
+ result: z.boolean(),
80
+ });
81
+ export const putExpertBulkUpdateProjectLanguagesContract = buildRestContract({
82
+ method: 'put',
83
+ pathResolver: (params) => `/api2/projects/${params.projectId}/languages/bulk-update`,
84
+ description: 'Bulk update project languages via Expert API',
85
+ requestPathParamsSchema: PROJECT_ID_REQUEST_PARAM_SCHEMA,
86
+ requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
87
+ requestBodySchema: PUT_EXPERT_BULK_UPDATE_LANGUAGES_REQUEST_BODY_SCHEMA,
88
+ successResponseBodySchema: PUT_EXPERT_BULK_UPDATE_LANGUAGES_RESPONSE_SCHEMA,
89
+ responseSchemasByStatusCode: {
90
+ 200: PUT_EXPERT_BULK_UPDATE_LANGUAGES_RESPONSE_SCHEMA,
91
+ },
92
+ });
33
93
  //# sourceMappingURL=project-languages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-languages.js","sourceRoot":"","sources":["../../../src/schemas/expert/project-languages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,sDAAsD;AACtD,0CAA0C;AAC1C,sDAAsD;AAEtD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,IAAI,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAA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,kCAAkC;IACvD,iBAAiB,EAAE,oDAAoD;IACvE,yBAAyB,EAAE,gDAAgD;IAC3E,2BAA2B,EAAE;QAC3B,GAAG,EAAE,gDAAgD;KACtD;CACF,CAAC,CAAA"}
@@ -683,6 +683,213 @@ export declare const postExpertCreateProjectContract: import("@lokalise/api-cont
683
683
  }, z.core.$strip>>;
684
684
  }, z.core.$strip>;
685
685
  }>;
686
+ export declare const PUT_EXPERT_UPDATE_PROJECT_BODY_SCHEMA: z.ZodObject<{
687
+ name: z.ZodString;
688
+ description: z.ZodOptional<z.ZodString>;
689
+ }, z.core.$strip>;
690
+ export type PutExpertUpdateProjectBody = z.infer<typeof PUT_EXPERT_UPDATE_PROJECT_BODY_SCHEMA>;
691
+ export declare const PUT_EXPERT_UPDATE_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
692
+ project_id: z.ZodString;
693
+ uuid: z.ZodNullable<z.ZodGUID>;
694
+ project_type: z.ZodString;
695
+ name: z.ZodString;
696
+ description: z.ZodString;
697
+ created_at: z.ZodString;
698
+ created_at_timestamp: z.ZodNumber;
699
+ created_by: z.ZodNumber;
700
+ created_by_email: z.ZodString;
701
+ team_id: z.ZodNumber;
702
+ team_uuid: z.ZodGUID;
703
+ base_project_language_id: z.ZodNumber;
704
+ base_project_language_uuid: z.ZodGUID;
705
+ base_language_id: z.ZodNumber;
706
+ base_language_iso: z.ZodString;
707
+ settings: z.ZodObject<{
708
+ per_platform_key_names: z.ZodBoolean;
709
+ reviewing: z.ZodBoolean;
710
+ branching: z.ZodBoolean;
711
+ auto_toggle_unverified: z.ZodBoolean;
712
+ offline_translation: z.ZodBoolean;
713
+ key_editing: z.ZodBoolean;
714
+ inline_machine_translations: z.ZodBoolean;
715
+ custom_translation_statuses: z.ZodBoolean;
716
+ custom_translation_statuses_allow_multiple: z.ZodBoolean;
717
+ segmentation: z.ZodBoolean;
718
+ contributor_preview_download_enabled: z.ZodBoolean;
719
+ }, z.core.$strip>;
720
+ statistics: z.ZodObject<{
721
+ progress_total: z.ZodNumber;
722
+ keys_total: z.ZodNumber;
723
+ team: z.ZodNumber;
724
+ base_words: z.ZodNumber;
725
+ qa_issues_total: z.ZodNumber;
726
+ qa_issues: z.ZodObject<{
727
+ not_reviewed: z.ZodNumber;
728
+ unverified: z.ZodNumber;
729
+ spelling_grammar: z.ZodNumber;
730
+ inconsistent_placeholders: z.ZodNumber;
731
+ inconsistent_html: z.ZodNumber;
732
+ different_number_of_urls: z.ZodNumber;
733
+ different_urls: z.ZodNumber;
734
+ leading_whitespace: z.ZodNumber;
735
+ trailing_whitespace: z.ZodNumber;
736
+ different_number_of_email_address: z.ZodNumber;
737
+ different_email_address: z.ZodNumber;
738
+ different_brackets: z.ZodNumber;
739
+ different_numbers: z.ZodNumber;
740
+ double_space: z.ZodNumber;
741
+ special_placeholder: z.ZodNumber;
742
+ unbalanced_brackets: z.ZodNumber;
743
+ }, z.core.$strip>;
744
+ languages: z.ZodArray<z.ZodObject<{
745
+ language_id: z.ZodNumber;
746
+ language_iso: z.ZodString;
747
+ progress: z.ZodNumber;
748
+ project_language_id: z.ZodNumber;
749
+ project_language_uuid: z.ZodNullable<z.ZodGUID>;
750
+ words_to_do: z.ZodNumber;
751
+ }, z.core.$strip>>;
752
+ }, z.core.$strip>;
753
+ }, z.core.$strip>;
754
+ export type PutExpertUpdateProjectResponse = z.infer<typeof PUT_EXPERT_UPDATE_PROJECT_RESPONSE_SCHEMA>;
755
+ export declare const putExpertUpdateProjectContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
756
+ name: z.ZodString;
757
+ description: z.ZodOptional<z.ZodString>;
758
+ }, z.core.$strip>, z.ZodObject<{
759
+ project_id: z.ZodString;
760
+ uuid: z.ZodNullable<z.ZodGUID>;
761
+ project_type: z.ZodString;
762
+ name: z.ZodString;
763
+ description: z.ZodString;
764
+ created_at: z.ZodString;
765
+ created_at_timestamp: z.ZodNumber;
766
+ created_by: z.ZodNumber;
767
+ created_by_email: z.ZodString;
768
+ team_id: z.ZodNumber;
769
+ team_uuid: z.ZodGUID;
770
+ base_project_language_id: z.ZodNumber;
771
+ base_project_language_uuid: z.ZodGUID;
772
+ base_language_id: z.ZodNumber;
773
+ base_language_iso: z.ZodString;
774
+ settings: z.ZodObject<{
775
+ per_platform_key_names: z.ZodBoolean;
776
+ reviewing: z.ZodBoolean;
777
+ branching: z.ZodBoolean;
778
+ auto_toggle_unverified: z.ZodBoolean;
779
+ offline_translation: z.ZodBoolean;
780
+ key_editing: z.ZodBoolean;
781
+ inline_machine_translations: z.ZodBoolean;
782
+ custom_translation_statuses: z.ZodBoolean;
783
+ custom_translation_statuses_allow_multiple: z.ZodBoolean;
784
+ segmentation: z.ZodBoolean;
785
+ contributor_preview_download_enabled: z.ZodBoolean;
786
+ }, z.core.$strip>;
787
+ statistics: z.ZodObject<{
788
+ progress_total: z.ZodNumber;
789
+ keys_total: z.ZodNumber;
790
+ team: z.ZodNumber;
791
+ base_words: z.ZodNumber;
792
+ qa_issues_total: z.ZodNumber;
793
+ qa_issues: z.ZodObject<{
794
+ not_reviewed: z.ZodNumber;
795
+ unverified: z.ZodNumber;
796
+ spelling_grammar: z.ZodNumber;
797
+ inconsistent_placeholders: z.ZodNumber;
798
+ inconsistent_html: z.ZodNumber;
799
+ different_number_of_urls: z.ZodNumber;
800
+ different_urls: z.ZodNumber;
801
+ leading_whitespace: z.ZodNumber;
802
+ trailing_whitespace: z.ZodNumber;
803
+ different_number_of_email_address: z.ZodNumber;
804
+ different_email_address: z.ZodNumber;
805
+ different_brackets: z.ZodNumber;
806
+ different_numbers: z.ZodNumber;
807
+ double_space: z.ZodNumber;
808
+ special_placeholder: z.ZodNumber;
809
+ unbalanced_brackets: z.ZodNumber;
810
+ }, z.core.$strip>;
811
+ languages: z.ZodArray<z.ZodObject<{
812
+ language_id: z.ZodNumber;
813
+ language_iso: z.ZodString;
814
+ progress: z.ZodNumber;
815
+ project_language_id: z.ZodNumber;
816
+ project_language_uuid: z.ZodNullable<z.ZodGUID>;
817
+ words_to_do: z.ZodNumber;
818
+ }, z.core.$strip>>;
819
+ }, z.core.$strip>;
820
+ }, z.core.$strip>, z.ZodObject<{
821
+ projectId: z.ZodString;
822
+ }, z.core.$strip>, undefined, z.ZodUnion<readonly [z.ZodObject<{
823
+ Authorization: z.ZodString;
824
+ 'Content-Type': z.ZodLiteral<"application/json">;
825
+ }, z.core.$strip>, z.ZodObject<{
826
+ authorization: z.ZodString;
827
+ 'content-type': z.ZodLiteral<"application/json">;
828
+ }, z.core.$strip>]>, undefined, false, false, {
829
+ 200: z.ZodObject<{
830
+ project_id: z.ZodString;
831
+ uuid: z.ZodNullable<z.ZodGUID>;
832
+ project_type: z.ZodString;
833
+ name: z.ZodString;
834
+ description: z.ZodString;
835
+ created_at: z.ZodString;
836
+ created_at_timestamp: z.ZodNumber;
837
+ created_by: z.ZodNumber;
838
+ created_by_email: z.ZodString;
839
+ team_id: z.ZodNumber;
840
+ team_uuid: z.ZodGUID;
841
+ base_project_language_id: z.ZodNumber;
842
+ base_project_language_uuid: z.ZodGUID;
843
+ base_language_id: z.ZodNumber;
844
+ base_language_iso: z.ZodString;
845
+ settings: z.ZodObject<{
846
+ per_platform_key_names: z.ZodBoolean;
847
+ reviewing: z.ZodBoolean;
848
+ branching: z.ZodBoolean;
849
+ auto_toggle_unverified: z.ZodBoolean;
850
+ offline_translation: z.ZodBoolean;
851
+ key_editing: z.ZodBoolean;
852
+ inline_machine_translations: z.ZodBoolean;
853
+ custom_translation_statuses: z.ZodBoolean;
854
+ custom_translation_statuses_allow_multiple: z.ZodBoolean;
855
+ segmentation: z.ZodBoolean;
856
+ contributor_preview_download_enabled: z.ZodBoolean;
857
+ }, z.core.$strip>;
858
+ statistics: z.ZodObject<{
859
+ progress_total: z.ZodNumber;
860
+ keys_total: z.ZodNumber;
861
+ team: z.ZodNumber;
862
+ base_words: z.ZodNumber;
863
+ qa_issues_total: z.ZodNumber;
864
+ qa_issues: z.ZodObject<{
865
+ not_reviewed: z.ZodNumber;
866
+ unverified: z.ZodNumber;
867
+ spelling_grammar: z.ZodNumber;
868
+ inconsistent_placeholders: z.ZodNumber;
869
+ inconsistent_html: z.ZodNumber;
870
+ different_number_of_urls: z.ZodNumber;
871
+ different_urls: z.ZodNumber;
872
+ leading_whitespace: z.ZodNumber;
873
+ trailing_whitespace: z.ZodNumber;
874
+ different_number_of_email_address: z.ZodNumber;
875
+ different_email_address: z.ZodNumber;
876
+ different_brackets: z.ZodNumber;
877
+ different_numbers: z.ZodNumber;
878
+ double_space: z.ZodNumber;
879
+ special_placeholder: z.ZodNumber;
880
+ unbalanced_brackets: z.ZodNumber;
881
+ }, z.core.$strip>;
882
+ languages: z.ZodArray<z.ZodObject<{
883
+ language_id: z.ZodNumber;
884
+ language_iso: z.ZodString;
885
+ progress: z.ZodNumber;
886
+ project_language_id: z.ZodNumber;
887
+ project_language_uuid: z.ZodNullable<z.ZodGUID>;
888
+ words_to_do: z.ZodNumber;
889
+ }, z.core.$strip>>;
890
+ }, z.core.$strip>;
891
+ }, z.core.$strip>;
892
+ }>;
686
893
  export declare const deleteExpertProjectContract: import("@lokalise/api-contracts").DeleteRouteDefinition<z.ZodObject<{
687
894
  project_id: z.ZodString;
688
895
  project_uuid: z.ZodGUID;
@@ -1,6 +1,6 @@
1
1
  import { buildRestContract } from '@lokalise/api-contracts';
2
2
  import { z } from 'zod/v4';
3
- import { API_PROJECT_SCHEMA, CREATE_PROJECT_REQUEST_BODY_SCHEMA, DELETE_PROJECT_RESPONSE_SCHEMA, } from "../../types/projectTypes.js";
3
+ import { API_PROJECT_SCHEMA, CREATE_PROJECT_REQUEST_BODY_SCHEMA, DELETE_PROJECT_RESPONSE_SCHEMA, UPDATE_PROJECT_REQUEST_BODY_SCHEMA, } from "../../types/projectTypes.js";
4
4
  import { EXPERT_AUTHORIZATION_HEADER_SCHEMA, EXPERT_MANDATORY_PAGINATION_SCHEMA, PROJECT_ID_REQUEST_PARAM_SCHEMA, } from "./common.js";
5
5
  // ---------------------------------------------------
6
6
  // GET /api2/projects/:projectId
@@ -116,6 +116,23 @@ export const postExpertCreateProjectContract = buildRestContract({
116
116
  },
117
117
  });
118
118
  // ---------------------------------------------------
119
+ // PUT /api2/projects/:projectId
120
+ // ---------------------------------------------------
121
+ export const PUT_EXPERT_UPDATE_PROJECT_BODY_SCHEMA = UPDATE_PROJECT_REQUEST_BODY_SCHEMA;
122
+ export const PUT_EXPERT_UPDATE_PROJECT_RESPONSE_SCHEMA = GET_EXPERT_PROJECT_DATA_RESPONSE_SCHEMA;
123
+ export const putExpertUpdateProjectContract = buildRestContract({
124
+ method: 'put',
125
+ pathResolver: (params) => `/api2/projects/${params.projectId}`,
126
+ description: 'Update project',
127
+ requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
128
+ requestPathParamsSchema: PROJECT_ID_REQUEST_PARAM_SCHEMA,
129
+ requestBodySchema: PUT_EXPERT_UPDATE_PROJECT_BODY_SCHEMA,
130
+ successResponseBodySchema: PUT_EXPERT_UPDATE_PROJECT_RESPONSE_SCHEMA,
131
+ responseSchemasByStatusCode: {
132
+ 200: PUT_EXPERT_UPDATE_PROJECT_RESPONSE_SCHEMA,
133
+ },
134
+ });
135
+ // ---------------------------------------------------
119
136
  // DELETE /api2/projects/:projectId
120
137
  // ---------------------------------------------------
121
138
  export const deleteExpertProjectContract = buildRestContract({
@@ -1 +1 @@
1
- {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/schemas/expert/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,kBAAkB,EAClB,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,sDAAsD;AACtD,gCAAgC;A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,+BAA+B;IACxD,mBAAmB,EAAE,kCAAkC;IACvD,yBAAyB,EAAE,8BAA8B;IACzD,uBAAuB,EAAE,KAAK;IAC9B,2BAA2B,EAAE;QAC3B,GAAG,EAAE,8BAA8B;KACpC;CACF,CAAC,CAAA"}
@@ -56,7 +56,7 @@ export declare const GET_PROJECTS_RESPONSE_SCHEMA: z.ZodObject<{
56
56
  meta: z.ZodObject<{
57
57
  count: z.ZodNumber;
58
58
  cursor: z.ZodOptional<z.ZodString>;
59
- hasMore: z.ZodOptional<z.ZodBoolean>;
59
+ hasMore: z.ZodBoolean;
60
60
  }, z.core.$strip>;
61
61
  }, z.core.$strip>;
62
62
  export declare const GET_WORKSPACE_PROJECT_REQUEST_PARAMS_SCHEMA: z.ZodObject<{
@@ -170,7 +170,7 @@ export declare const GET_PROJECTS_BY_USER_RESPONSE_SCHEMA: z.ZodObject<{
170
170
  meta: z.ZodObject<{
171
171
  count: z.ZodNumber;
172
172
  cursor: z.ZodOptional<z.ZodString>;
173
- hasMore: z.ZodOptional<z.ZodBoolean>;
173
+ hasMore: z.ZodBoolean;
174
174
  }, z.core.$strip>;
175
175
  }, z.core.$strip>;
176
176
  export type GetProjectsByUserParams = z.infer<typeof GET_PROJECTS_BY_USER_REQUEST_PARAMS_SCHEMA>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/workspaces-api-schemas",
3
- "version": "5.16.0",
3
+ "version": "5.18.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],