@communecter/cocolight-api-client 1.0.54 → 1.0.56

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.
Files changed (179) hide show
  1. package/dist/401.cocolight-api-client.browser.js +1 -0
  2. package/dist/401.cocolight-api-client.cjs +1 -0
  3. package/dist/401.cocolight-api-client.mjs.js +1 -0
  4. package/dist/588.cocolight-api-client.browser.js +1 -0
  5. package/dist/588.cocolight-api-client.cjs +1 -0
  6. package/dist/588.cocolight-api-client.mjs.js +1 -0
  7. package/dist/593.cocolight-api-client.browser.js +1 -0
  8. package/dist/593.cocolight-api-client.cjs +1 -0
  9. package/dist/593.cocolight-api-client.mjs.js +1 -0
  10. package/dist/839.cocolight-api-client.browser.js +1 -0
  11. package/dist/839.cocolight-api-client.cjs +1 -0
  12. package/dist/839.cocolight-api-client.mjs.js +1 -0
  13. package/dist/cocolight-api-client.browser.js +3 -3
  14. package/dist/cocolight-api-client.cjs +1 -1
  15. package/dist/cocolight-api-client.mjs.js +1 -1
  16. package/dist/cocolight-api-client.vite.mjs.js +1 -1
  17. package/dist/cocolight-api-client.vite.mjs.js.map +1 -1
  18. package/package.json +29 -17
  19. package/src/{Api.js → Api.ts} +85 -95
  20. package/src/{ApiClient.js → ApiClient.ts} +436 -247
  21. package/src/EJSONType.ts +103 -0
  22. package/src/api/{Badge.js → Badge.ts} +56 -45
  23. package/src/api/BaseEntity.ts +3890 -0
  24. package/src/api/Comment.ts +200 -0
  25. package/src/api/{EndpointApi.js → EndpointApi.ts} +363 -297
  26. package/src/api/EndpointApi.types.ts +4609 -0
  27. package/src/api/EntityRegistry.ts +203 -0
  28. package/src/api/Event.ts +332 -0
  29. package/src/api/News.ts +331 -0
  30. package/src/api/{Organization.js → Organization.ts} +155 -119
  31. package/src/api/{Poi.js → Poi.ts} +68 -60
  32. package/src/api/{Project.js → Project.ts} +150 -127
  33. package/src/api/{User.js → User.ts} +321 -256
  34. package/src/api/UserApi.ts +148 -0
  35. package/src/api/serverDataType/Comment.ts +88 -0
  36. package/src/api/serverDataType/Event.ts +80 -0
  37. package/src/api/serverDataType/News.ts +138 -0
  38. package/src/api/serverDataType/Organization.ts +80 -0
  39. package/src/api/serverDataType/Project.ts +71 -0
  40. package/src/api/serverDataType/User.ts +103 -0
  41. package/src/api/serverDataType/common.ts +80 -0
  42. package/src/endpoints.module.ts +2621 -0
  43. package/src/error.ts +86 -0
  44. package/src/index.ts +86 -0
  45. package/src/mixin/UserMixin.ts +4 -0
  46. package/src/types/api-responses.ts +217 -0
  47. package/src/types/entities.ts +22 -0
  48. package/src/types/error-guards.ts +230 -0
  49. package/src/types/index.ts +39 -0
  50. package/src/types/payloads.ts +21 -0
  51. package/src/types/transforms.ts +110 -0
  52. package/src/utils/{FileOfflineStorageStrategy.node.js → FileOfflineStorageStrategy.node.ts} +15 -12
  53. package/src/utils/{FileStorageStrategy.node.js → FileStorageStrategy.node.ts} +16 -39
  54. package/src/utils/MultiServerFileStorageStrategy.node.ts +67 -0
  55. package/src/utils/MultiServerTokenStorageStrategy.ts +139 -0
  56. package/src/utils/{OfflineClientManager.js → OfflineClientManager.ts} +82 -86
  57. package/src/utils/OfflineQueueStorageStrategy.ts +47 -0
  58. package/src/utils/TokenStorage.ts +77 -0
  59. package/src/utils/compat.ts +12 -0
  60. package/src/utils/createDefaultMultiServerTokenStorageStrategy.ts +35 -0
  61. package/src/utils/{createDefaultOfflineStrategy.js → createDefaultOfflineStrategy.ts} +8 -3
  62. package/src/utils/createDefaultTokenStorageStrategy.ts +33 -0
  63. package/src/utils/{reactive.js → reactive.ts} +49 -40
  64. package/src/utils/stream-utils.node.ts +12 -0
  65. package/types/Api.d.ts +38 -82
  66. package/types/Api.d.ts.map +1 -0
  67. package/types/ApiClient.d.ts +244 -184
  68. package/types/ApiClient.d.ts.map +1 -0
  69. package/types/EJSONType.d.ts +48 -22
  70. package/types/EJSONType.d.ts.map +1 -0
  71. package/types/api/Badge.d.ts +20 -20
  72. package/types/api/Badge.d.ts.map +1 -0
  73. package/types/api/BaseEntity.d.ts +751 -446
  74. package/types/api/BaseEntity.d.ts.map +1 -0
  75. package/types/api/Comment.d.ts +36 -0
  76. package/types/api/EndpointApi.d.ts +347 -295
  77. package/types/api/EndpointApi.d.ts.map +1 -0
  78. package/types/api/EndpointApi.types.d.ts +3914 -4133
  79. package/types/api/EntityRegistry.d.ts +18 -16
  80. package/types/api/EntityRegistry.d.ts.map +1 -0
  81. package/types/api/Event.d.ts +119 -35
  82. package/types/api/Event.d.ts.map +1 -0
  83. package/types/api/News.d.ts +52 -20
  84. package/types/api/News.d.ts.map +1 -0
  85. package/types/api/Organization.d.ts +165 -49
  86. package/types/api/Organization.d.ts.map +1 -0
  87. package/types/api/Poi.d.ts +51 -22
  88. package/types/api/Poi.d.ts.map +1 -0
  89. package/types/api/Project.d.ts +151 -52
  90. package/types/api/Project.d.ts.map +1 -0
  91. package/types/api/User.d.ts +222 -93
  92. package/types/api/User.d.ts.map +1 -0
  93. package/types/api/UserApi.d.ts +60 -9
  94. package/types/api/UserApi.d.ts.map +1 -0
  95. package/types/api/serverDataType/Comment.d.ts +83 -0
  96. package/types/api/serverDataType/Event.d.ts +67 -0
  97. package/types/api/serverDataType/News.d.ts +130 -0
  98. package/types/api/serverDataType/Organization.d.ts +65 -0
  99. package/types/api/serverDataType/Organization.d.ts.map +1 -0
  100. package/types/api/serverDataType/Project.d.ts +58 -0
  101. package/types/api/serverDataType/Project.d.ts.map +1 -0
  102. package/types/api/serverDataType/User.d.ts +86 -0
  103. package/types/api/serverDataType/User.d.ts.map +1 -0
  104. package/types/api/serverDataType/common.d.ts +71 -0
  105. package/types/api/serverDataType/common.d.ts.map +1 -0
  106. package/types/endpoints.module.d.ts +6922 -1215
  107. package/types/endpoints.module.d.ts.map +1 -0
  108. package/types/error.d.ts +25 -51
  109. package/types/error.d.ts.map +1 -0
  110. package/types/index.d.ts +55 -48
  111. package/types/index.d.ts.map +1 -0
  112. package/types/mixin/UserMixin.d.ts +1 -1
  113. package/types/mixin/UserMixin.d.ts.map +1 -0
  114. package/types/types/api-responses.d.ts +190 -0
  115. package/types/types/api-responses.d.ts.map +1 -0
  116. package/types/types/entities.d.ts +17 -0
  117. package/types/types/entities.d.ts.map +1 -0
  118. package/types/types/error-guards.d.ts +99 -0
  119. package/types/types/error-guards.d.ts.map +1 -0
  120. package/types/types/index.d.ts +7 -0
  121. package/types/types/payloads.d.ts +17 -0
  122. package/types/types/payloads.d.ts.map +1 -0
  123. package/types/types/transforms.d.ts +79 -0
  124. package/types/types/transforms.d.ts.map +1 -0
  125. package/types/utils/FileOfflineStorageStrategy.node.d.ts +10 -9
  126. package/types/utils/FileOfflineStorageStrategy.node.d.ts.map +1 -0
  127. package/types/utils/FileStorageStrategy.node.d.ts +9 -20
  128. package/types/utils/FileStorageStrategy.node.d.ts.map +1 -0
  129. package/types/utils/MultiServerFileStorageStrategy.node.d.ts +13 -18
  130. package/types/utils/MultiServerFileStorageStrategy.node.d.ts.map +1 -0
  131. package/types/utils/MultiServerTokenStorageStrategy.d.ts +30 -51
  132. package/types/utils/MultiServerTokenStorageStrategy.d.ts.map +1 -0
  133. package/types/utils/OfflineClientManager.d.ts +52 -88
  134. package/types/utils/OfflineClientManager.d.ts.map +1 -0
  135. package/types/utils/OfflineQueueStorageStrategy.d.ts +12 -9
  136. package/types/utils/OfflineQueueStorageStrategy.d.ts.map +1 -0
  137. package/types/utils/TokenStorage.d.ts +20 -70
  138. package/types/utils/TokenStorage.d.ts.map +1 -0
  139. package/types/utils/compat.d.ts +4 -0
  140. package/types/utils/compat.d.ts.map +1 -0
  141. package/types/utils/createDefaultMultiServerTokenStorageStrategy.d.ts +2 -11
  142. package/types/utils/createDefaultMultiServerTokenStorageStrategy.d.ts.map +1 -0
  143. package/types/utils/createDefaultOfflineStrategy.d.ts +2 -3
  144. package/types/utils/createDefaultOfflineStrategy.d.ts.map +1 -0
  145. package/types/utils/createDefaultTokenStorageStrategy.d.ts +2 -12
  146. package/types/utils/createDefaultTokenStorageStrategy.d.ts.map +1 -0
  147. package/types/utils/reactive.d.ts +10 -16
  148. package/types/utils/reactive.d.ts.map +1 -0
  149. package/types/utils/stream-utils.node.d.ts +3 -2
  150. package/types/utils/stream-utils.node.d.ts.map +1 -0
  151. package/dist/123.cocolight-api-client.browser.js +0 -1
  152. package/dist/123.cocolight-api-client.cjs +0 -1
  153. package/dist/22.cocolight-api-client.mjs.js +0 -1
  154. package/dist/339.cocolight-api-client.mjs.js +0 -1
  155. package/dist/394.cocolight-api-client.browser.js +0 -1
  156. package/dist/394.cocolight-api-client.cjs +0 -1
  157. package/dist/405.cocolight-api-client.browser.js +0 -1
  158. package/dist/405.cocolight-api-client.cjs +0 -1
  159. package/dist/774.cocolight-api-client.mjs.js +0 -1
  160. package/dist/790.cocolight-api-client.mjs.js +0 -1
  161. package/dist/931.cocolight-api-client.browser.js +0 -1
  162. package/dist/931.cocolight-api-client.cjs +0 -1
  163. package/src/EJSONType.js +0 -53
  164. package/src/api/BaseEntity.js +0 -2828
  165. package/src/api/EntityRegistry.js +0 -152
  166. package/src/api/Event.js +0 -226
  167. package/src/api/News.js +0 -244
  168. package/src/api/UserApi.js +0 -81
  169. package/src/endpoints.module.js +0 -5
  170. package/src/error.js +0 -121
  171. package/src/index.js +0 -97
  172. package/src/mixin/UserMixin.js +0 -8
  173. package/src/utils/MultiServerFileStorageStrategy.node.js +0 -87
  174. package/src/utils/MultiServerTokenStorageStrategy.js +0 -188
  175. package/src/utils/OfflineQueueStorageStrategy.js +0 -51
  176. package/src/utils/TokenStorage.js +0 -153
  177. package/src/utils/createDefaultMultiServerTokenStorageStrategy.js +0 -51
  178. package/src/utils/createDefaultTokenStorageStrategy.js +0 -49
  179. package/src/utils/stream-utils.node.js +0 -10
@@ -1,5 +0,0 @@
1
- // Définitions communes extraites automatiquement
2
- const common = {"common1":{"type":"string"},"common2":{"format":"email","type":"string"},"common3":{"type":"boolean"},"common4":{"format":"uri","type":"string"},"common5":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$","type":"string"},"common6":{"additionalProperties":false,"properties":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$","type":"string"}},"required":["id"],"type":"object"},"common7":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$","type":"string"}},"common8":{"additionalProperties":false,"properties":{"reason":{"default":"","type":"string"}},"required":["reason"],"type":"object"},"common9":{"reason":{"default":"","type":"string"}},"common10":{"default":"","type":"string"},"common11":{"pattern":"^[a-f0-9]{24}$","type":"string"},"common12":{"const":"citoyens"},"common13":{"properties":{"value":{"type":"boolean"}}},"common14":{"value":{"type":"boolean"}},"common15":{"enum":["isOpenData","isOpenEdition","private","feedback"]},"common16":{"const":"organizations"},"common17":{"const":"projects"},"common18":{"const":"events"},"common19":{"default":"citoyens","enum":["citoyens","projects","organizations","events"],"type":"string"},"common20":{},"common21":{"else":{"properties":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"}}},"if":{"properties":{"typeElement":{"const":"citoyens"}}},"then":{"properties":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$","type":"string"}}}},"common22":{"properties":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"}}},"common23":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"}},"common24":{"properties":{"typeElement":{"const":"citoyens"}}},"common25":{"typeElement":{"const":"citoyens"}},"common26":{"properties":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$","type":"string"}}},"common27":{"not":{"type":"null"}},"common28":{"type":"null"},"common29":{"default":"citoyens","enum":["citoyens","projects","organizations","poi","events"],"type":"string"},"common30":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"enum":[""],"type":"string"}]},"common31":{"items":{"type":"string"},"type":"array"},"common32":{"enum":[""],"type":"string"},"common33":{"properties":{"name":{"not":{"type":"null"}}},"required":["name"]},"common34":{"name":{"not":{"type":"null"}}},"common35":{"properties":{"url":{"not":{"type":"null"}}},"required":["url"]},"common36":{"url":{"not":{"type":"null"}}},"common37":{"properties":{"tags":{"not":{"type":"null"}}},"required":["tags"]},"common38":{"tags":{"not":{"type":"null"}}},"common39":{"properties":{"email":{"not":{"type":"null"}}},"required":["email"]},"common40":{"email":{"not":{"type":"null"}}},"common41":{"format":"date","type":"string"},"common42":{"const":"info","default":"info","type":"string"},"common43":{"$ref":"#/$defs/sharedFields/email"},"common44":{"$ref":"#/$defs/sharedFields/name"},"common45":{"$ref":"#/$defs/sharedFields/tags"},"common46":{"default":"citoyens","enum":["citoyens"],"type":"string"},"common47":{"$ref":"#/$defs/sharedFields/url"},"common48":{"properties":{"avancement":{"not":{"type":"null"}}},"required":["avancement"]},"common49":{"avancement":{"not":{"type":"null"}}},"common50":{"properties":{"parent":{"not":{"type":"null"}}},"required":["parent"]},"common51":{"parent":{"not":{"type":"null"}}},"common52":{"additionalProperties":false,"patternProperties":{"^[a-fA-F0-9]{24}$":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type","name"],"type":"object"}},"type":"object"},"common53":{"^[a-fA-F0-9]{24}$":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type","name"],"type":"object"}},"common54":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type","name"],"type":"object"},"common55":{"name":{"type":"string"},"type":{"type":"string"}},"common56":{"properties":{"type":{"not":{"type":"null"}}},"required":["type"]},"common57":{"type":{"not":{"type":"null"}}},"common58":{"additionalProperties":false,"patternProperties":{"^(?:[a-f0-9]{24}|@userId)$":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"type":"object"},"common59":{"^(?:[a-f0-9]{24}|@userId)$":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"common60":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type"],"type":"object"},"common61":{"enum":["workshop","competition","concert","contest","conference","debate","exhibition","festival","crowdfunding","fair","course","protest","market","film","getTogether","meeting","spectacle","internship","stand","others"],"type":"string"},"common62":{"enum":["link","tool","machine","software","rh","Resource material","Financial Ressource","ficheBlanche","geoJson","compostPickup","video","sharedLibrary","recoveryCenter","trash","history","something2See","funPlace","place","artPiece","streetArts","openScene","stand","parking","other"],"type":"string"},"common63":{"enum":["poi"],"type":"string"},"common64":{"$ref":"#/$defs/socialField"},"common65":{"default":"citoyens","enum":["citoyens","projects","organizations"],"type":"string"},"common66":{"properties":{"id":{"pattern":"^[a-f0-9]{24}$"}}},"common67":{"id":{"pattern":"^[a-f0-9]{24}$"}},"common68":{"pattern":"^[a-f0-9]{24}$"},"common69":{"const":"","type":"string"},"common70":{"additionalProperties":false,"properties":{"@type":{"const":"PostalAddress","type":"string"},"addressCountry":{"type":"string"},"addressLocality":{"type":"string"},"codeInsee":{"type":"string"},"level1":{"type":"string"},"level1Name":{"type":"string"},"level3":{"minLength":0,"type":"string"},"level3Name":{"minLength":0,"type":"string"},"level4":{"minLength":0,"type":"string"},"level4Name":{"minLength":0,"type":"string"},"localityId":{"type":"string"},"postalCode":{"type":"string"},"streetAddress":{"type":"string"}},"required":["@type","addressCountry","codeInsee","addressLocality","localityId","level1","level1Name"],"type":"object"},"common71":{"@type":{"const":"PostalAddress","type":"string"},"addressCountry":{"type":"string"},"addressLocality":{"type":"string"},"codeInsee":{"type":"string"},"level1":{"type":"string"},"level1Name":{"type":"string"},"level3":{"minLength":0,"type":"string"},"level3Name":{"minLength":0,"type":"string"},"level4":{"minLength":0,"type":"string"},"level4Name":{"minLength":0,"type":"string"},"localityId":{"type":"string"},"postalCode":{"type":"string"},"streetAddress":{"type":"string"}},"common72":{"const":"PostalAddress","type":"string"},"common73":{"minLength":0,"type":"string"},"common74":{"additionalProperties":false,"properties":{"@type":{"const":"GeoCoordinates","type":"string"},"latitude":{"type":["string","number"]},"longitude":{"type":["string","number"]}},"required":["latitude","longitude"],"type":"object"},"common75":{"@type":{"const":"GeoCoordinates","type":"string"},"latitude":{"type":["string","number"]},"longitude":{"type":["string","number"]}},"common76":{"const":"GeoCoordinates","type":"string"},"common77":{"type":["string","number"]},"common78":{"additionalProperties":true,"properties":{"coordinates":{"items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"float":{"const":true,"default":true,"type":"boolean"},"type":{"const":"Point","type":"string"}},"required":["type","coordinates","float"],"type":"object"},"common79":{"coordinates":{"items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"float":{"const":true,"default":true,"type":"boolean"},"type":{"const":"Point","type":"string"}},"common80":{"items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"common81":{"type":"number"},"common82":{"const":true,"default":true,"type":"boolean"},"common83":{"const":"Point","type":"string"},"common84":{"properties":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}}},"common85":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}},"common86":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"},"common87":{"maxLength":100,"minLength":3,"pattern":"^[a-zA-Z0-9]+$","type":"string"},"common88":{"properties":{"type":{"const":"citoyens"}}},"common89":{"type":{"const":"citoyens"}},"common90":{"properties":{"ownerId":{"pattern":"^[a-f0-9]{24}$"}}},"common91":{"ownerId":{"pattern":"^[a-f0-9]{24}$"}},"common92":{"properties":{"folder":{"const":"citoyens"}}},"common93":{"folder":{"const":"citoyens"}},"common94":{"properties":{"ownerId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}}},"common95":{"ownerId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}},"common96":{"properties":{"parentId":{"pattern":"^[a-f0-9]{24}$"}}},"common97":{"parentId":{"pattern":"^[a-f0-9]{24}$"}},"common98":{"properties":{"parentType":{"const":"citoyens"}}},"common99":{"parentType":{"const":"citoyens"}},"common100":{"properties":{"parentId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}}},"common101":{"parentId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}},"common102":{"default":true,"type":"boolean"},"common103":{"default":0,"type":"integer"},"common104":{"required":["text"]},"common105":{"required":["mediaImg"]},"common106":{"required":["mediaFile"]},"common107":{"additionalProperties":false,"properties":{"countFiles":{"type":"number"},"files":{"items":{"type":"string"},"type":"array"}},"required":["countFiles","files"],"type":"object"},"common108":{"countFiles":{"type":"number"},"files":{"items":{"type":"string"},"type":"array"}},"common109":{"additionalProperties":false,"properties":{"countImages":{"type":"number"},"images":{"items":{"type":"string"},"type":"array"}},"required":["countImages","images"],"type":"object"},"common110":{"countImages":{"type":"number"},"images":{"items":{"type":"string"},"type":"array"}},"common111":{"items":{"properties":{"count":{"minimum":1,"type":"integer"},"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["id","name","slug","type","value","count"],"type":"object"},"type":"array"},"common112":{"properties":{"count":{"minimum":1,"type":"integer"},"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["id","name","slug","type","value","count"],"type":"object"},"common113":{"count":{"minimum":1,"type":"integer"},"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"common114":{"minimum":1,"type":"integer"},"common115":{"default":"public","enum":["public","private","restricted"],"type":"string"},"common116":{"const":"news","default":"news","type":"string"},"common117":{"additionalProperties":false,"else":{"properties":{"ownerId":{"pattern":"^[a-f0-9]{24}$"}}},"if":{"properties":{"folder":{"const":"citoyens"}}},"properties":{"folder":{"default":"citoyens","enum":["citoyens","projects","organizations"],"type":"string"},"ownerId":{"type":"string"}},"required":["folder","ownerId"],"then":{"properties":{"ownerId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}}},"type":"object"},"common118":{"folder":{"default":"citoyens","enum":["citoyens","projects","organizations"],"type":"string"},"ownerId":{"type":"string"}},"common119":{"additionalProperties":false,"properties":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"}},"required":["id"],"type":"object"},"common120":{"default":false,"type":"boolean"},"common121":{"properties":{"childId":{"pattern":"^[a-f0-9]{24}$"}}},"common122":{"childId":{"pattern":"^[a-f0-9]{24}$"}},"common123":{"properties":{"childType":{"const":"citoyens"}}},"common124":{"childType":{"const":"citoyens"}},"common125":{"const":"share","default":"share","type":"string"},"common126":{"properties":{"childId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}}},"common127":{"childId":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}},"common128":{"additionalProperties":false,"properties":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"type":{"default":"news","enum":["news"],"type":"string"}},"required":["type","id"],"type":"object"},"common129":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"type":{"default":"news","enum":["news"],"type":"string"}},"common130":{"default":"news","enum":["news"],"type":"string"},"common131":{"items":{"additionalProperties":false,"properties":{"count":{"type":"number"},"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["id","name","slug","type","value","count"],"type":"object"},"type":"array"},"common132":{"additionalProperties":false,"properties":{"count":{"type":"number"},"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"required":["id","name","slug","type","value","count"],"type":"object"},"common133":{"count":{"type":"number"},"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"}},"common134":{"enum":["NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","projects","citoyens","poi"],"type":"string"},"common135":{"const":false,"default":false,"type":"boolean"},"common136":{"const":"","default":"","type":"string"},"common137":{"default":0,"type":"number"},"common138":{"default":30,"type":"number"},"common139":{"additionalProperties":false,"patternProperties":{"^[^\\s]+$":{"additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"enum":["cities","level1"],"type":"string"}},"required":["id","type"],"type":"object"}},"type":"object"},"common140":{"^[^\\s]+$":{"additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"enum":["cities","level1"],"type":"string"}},"required":["id","type"],"type":"object"}},"common141":{"additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"enum":["cities","level1"],"type":"string"}},"required":["id","type"],"type":"object"},"common142":{"id":{"type":"string"},"type":{"enum":["cities","level1"],"type":"string"}},"common143":{"enum":["cities","level1"],"type":"string"},"common144":{"additionalProperties":false,"patternProperties":{"^[^\\s]+$":{"additionalProperties":false,"properties":{"indexMax":{"type":"number"},"indexMin":{"type":"number"}},"required":["indexMin","indexMax"],"type":"object"}},"type":"object"},"common145":{"^[^\\s]+$":{"additionalProperties":false,"properties":{"indexMax":{"type":"number"},"indexMin":{"type":"number"}},"required":["indexMin","indexMax"],"type":"object"}},"common146":{"additionalProperties":false,"properties":{"indexMax":{"type":"number"},"indexMin":{"type":"number"}},"required":["indexMin","indexMax"],"type":"object"},"common147":{"indexMax":{"type":"number"},"indexMin":{"type":"number"}},"common148":{"enum":["ALL"],"type":"string"},"common149":{"default":0,"minimum":0,"type":"integer"},"common150":{"const":["projects"],"default":["projects"],"items":{"enum":["projects"],"type":"string"},"type":"array"},"common151":{"enum":["projects"],"type":"string"},"common152":{"$exists":true},"common153":{"additionalProperties":false,"properties":{"$exists":{"const":true}},"required":["$exists"],"type":"object"},"common154":{"$exists":{"const":true}},"common155":{"const":true},"common156":{"additionalProperties":false,"else":{"properties":{"id":{"pattern":"^[a-f0-9]{24}$"}}},"if":{"properties":{"type":{"const":"citoyens"}}},"properties":{"id":{"type":"string"},"type":{"default":"citoyens","enum":["citoyens","projects","organizations"],"type":"string"}},"required":["type","id"],"then":{"properties":{"id":{"default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$"}}},"type":"object"},"common157":{"id":{"type":"string"},"type":{"default":"citoyens","enum":["citoyens","projects","organizations"],"type":"string"}},"common158":{"const":["poi"],"default":["poi"],"items":{"enum":["poi"],"type":"string"},"type":"array"},"common159":{"const":["NGO","Cooperative","LocalBusiness","Group","GovernmentOrganization"],"default":["NGO","Cooperative","LocalBusiness","Group","GovernmentOrganization"],"items":{"enum":["NGO","Cooperative","LocalBusiness","Group","GovernmentOrganization"],"type":"string"},"type":"array"},"common160":{"enum":["NGO","Cooperative","LocalBusiness","Group","GovernmentOrganization"],"type":"string"},"common161":{"$exists":false},"common162":{"additionalProperties":false,"properties":{"$exists":{"const":false}},"required":["$exists"],"type":"object"},"common163":{"$exists":{"const":false}},"common164":{"const":false},"common165":{"default":30,"type":"integer"},"common166":{"const":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"default":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"items":{"enum":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"type":"string"},"type":"array"},"common167":{"enum":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"type":"string"},"common168":{"additionalProperties":false,"properties":{"$exists":{"default":false,"type":"boolean"}},"required":["$exists"],"type":"object"},"common169":{"$exists":{"default":false,"type":"boolean"}},"common170":{"additionalProperties":false,"properties":{"$in":{"items":{"type":"string"},"minItems":1,"type":"array"}},"required":["$in"],"type":"object"},"common171":{"$in":{"items":{"type":"string"},"minItems":1,"type":"array"}},"common172":{"items":{"type":"string"},"minItems":1,"type":"array"},"common173":{"const":["citoyens"],"default":["citoyens"],"items":{"enum":["citoyens"],"type":"string"},"type":"array"},"common174":{"enum":["citoyens"],"type":"string"},"common175":{"const":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","projects"],"default":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","projects"],"items":{"enum":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","projects"],"type":"string"},"type":"array"},"common176":{"enum":["citoyens","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","projects"],"type":"string"},"common177":{"not":{"propertyNames":{"pattern":"^(?!links\\.followers\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}}},"common178":{"propertyNames":{"pattern":"^(?!links\\.followers\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}},"common179":{"pattern":"^(?!links\\.followers\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"},"common180":{"^links\\.followers\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":{"additionalProperties":false,"properties":{"$exists":{"const":true}},"required":["$exists"],"type":"object"},"^links\\.followers\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isInviting$":{"additionalProperties":false,"properties":{"$exists":{"const":false}},"required":["$exists"],"type":"object"},"^links\\.followers\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.toBeValidated$":{"additionalProperties":false,"properties":{"$exists":{"const":false}},"required":["$exists"],"type":"object"}},"common181":{"not":{"propertyNames":{"pattern":"^(?!links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}}},"common182":{"propertyNames":{"pattern":"^(?!links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}},"common183":{"pattern":"^(?!links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"},"common184":{"default":"citoyens","enum":["citoyens","organizations","projects"],"type":"string"},"common185":{"const":["badges"],"default":["badges"],"items":{"enum":["badges"],"type":"string"},"type":"array"},"common186":{"enum":["badges"],"type":"string"},"common187":{"const":["citoyens","projects","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"default":["citoyens","projects","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"items":{"enum":["citoyens","projects","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"type":"string"},"type":"array"},"common188":{"enum":["citoyens","projects","NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"type":"string"},"common189":{"additionalProperties":false,"properties":{"$exists":{"const":true,"type":"boolean"}},"required":["$exists"],"type":"object"},"common190":{"$exists":{"const":true,"type":"boolean"}},"common191":{"const":true,"type":"boolean"},"common192":{"additionalProperties":false,"properties":{"$exists":{"const":false,"type":"boolean"}},"required":["$exists"],"type":"object"},"common193":{"$exists":{"const":false,"type":"boolean"}},"common194":{"const":false,"type":"boolean"},"common195":{"badges\\.(?:[a-f0-9]{24}|@\\w+)\\.attenteEmetteur$":{"additionalProperties":false,"properties":{"$exists":{"const":false,"type":"boolean"}},"required":["$exists"],"type":"object"},"badges\\.(?:[a-f0-9]{24}|@\\w+)\\.attenteRecepteur$":{"additionalProperties":false,"properties":{"$exists":{"const":true,"type":"boolean"}},"required":["$exists"],"type":"object"}},"common196":{"indexMax":30,"indexMin":0},"common197":{"properties":{"parentType":{"const":"organizations"}}},"common198":{"parentType":{"const":"organizations"}},"common199":{"properties":{"parentType":{"const":"projects"}}},"common200":{"parentType":{"const":"projects"}},"common201":{"properties":{"parentType":{"const":"events"}}},"common202":{"parentType":{"const":"events"}},"common203":{"default":"@userId","pattern":"^([a-f0-9]{24}|@\\w+)$","type":"string"},"common204":{"const":"citoyens","default":"citoyens","enum":["citoyens"],"type":"string"},"common205":{"enum":["citoyens","organizations","projects","events"],"type":"string"},"common206":{"const":"citoyens","default":"citoyens","type":"string"},"common207":{"const":"@userId","default":"@userId","pattern":"^(?:[a-f0-9]{24}|@userId)$","type":"string"},"common208":{"default":{"isOpenData":true,"isOpenEdition":true},"properties":{"isOpenData":{"default":true,"type":"boolean"},"isOpenEdition":{"default":true,"type":"boolean"}},"required":["isOpenData","isOpenEdition"],"type":"object"},"common209":{"isOpenData":true,"isOpenEdition":true},"common210":{"isOpenData":{"default":true,"type":"boolean"},"isOpenEdition":{"default":true,"type":"boolean"}},"common211":{"additionalProperties":false,"default":{"@userId":{"type":"citoyens"}},"patternProperties":{"^(?:[a-f0-9]{24}|@userId)$":{"additionalProperties":false,"properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"type":"object"},"common212":{"@userId":{"type":"citoyens"}},"common213":{"type":"citoyens"},"common214":{"const":"poi","default":"poi","type":"string"},"common215":{"const":"events","default":"events","type":"string"},"common216":{"format":"date-time","type":"string"},"common217":{"pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","type":"string"},"common218":{"type":"integer"},"common219":{"additionalProperties":false,"properties":{"id":{"default":"@userId","pattern":"^[a-f0-9]{24}$","type":"string"},"type":{"const":"citoyens","default":"citoyens","type":"string"}},"required":["type","id"],"type":"object"},"common220":{"id":{"default":"@userId","pattern":"^[a-f0-9]{24}$","type":"string"},"type":{"const":"citoyens","default":"citoyens","type":"string"}},"common221":{"default":"@userId","pattern":"^[a-f0-9]{24}$","type":"string"},"common222":{"const":"badges","default":"badges","type":"string"},"common223":{"const":"badge","default":"badge","type":"string"},"common224":{"patternProperties":{"^[0-9a-f]{24}$":{"additionalProperties":false,"properties":{"isAdmin":{"default":"","enum":["","admin"],"type":"string"},"name":{"type":"string"},"roles":{"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"}},"type":"object"},"common225":{"^[0-9a-f]{24}$":{"additionalProperties":false,"properties":{"isAdmin":{"default":"","enum":["","admin"],"type":"string"},"name":{"type":"string"},"roles":{"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"}},"common226":{"additionalProperties":false,"properties":{"isAdmin":{"default":"","enum":["","admin"],"type":"string"},"name":{"type":"string"},"roles":{"items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"common227":{"isAdmin":{"default":"","enum":["","admin"],"type":"string"},"name":{"type":"string"},"roles":{"items":{"type":"string"},"type":"array"}},"common228":{"default":"","enum":["","admin"],"type":"string"},"common229":{"enum":["projects","organizations"],"type":"string"},"common230":{"items":{"enum":["NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","organizations","projects","events","citoyens","poi"],"type":"string"},"type":"array"},"common231":{"enum":["NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","organizations","projects","events","citoyens","poi"],"type":"string"},"common232":{"additionalProperties":false,"properties":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"type":{"default":"events","type":"string"}},"required":["id","type"],"type":"object"},"common233":{"id":{"pattern":"^[a-f0-9]{24}$","type":"string"},"type":{"default":"events","type":"string"}},"common234":{"default":"events","type":"string"},"common235":{"items":{"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"type":"array"},"common236":{"properties":{"id":{"type":"string"}},"required":["id"],"type":"object"},"common237":{"id":{"type":"string"}},"common238":{"additionalProperties":false,"properties":{"contextId":{"pattern":"^[a-f0-9]{24}$","type":"string"},"contextType":{"enum":["projects","organizations"],"type":"string"},"costumEditMode":{"default":false,"type":"boolean"},"costumSlug":{"type":"string"},"sourceKey":{"items":{"type":"string"},"type":"array"}},"type":"object"},"common239":{"contextId":{"pattern":"^[a-f0-9]{24}$","type":"string"},"contextType":{"enum":["projects","organizations"],"type":"string"},"costumEditMode":{"default":false,"type":"boolean"},"costumSlug":{"type":"string"},"sourceKey":{"items":{"type":"string"},"type":"array"}}};
3
-
4
- // Endpoints avec intégration des définitions communes
5
- export default {"endpoints":[{"auth":"none","constant":"PERSON_REGISTER","contentType":"application/x-www-form-urlencoded","generateModule":"UserNoAuth","method":"POST","onlyAuthNone":true,"path":"/co2/person/register","request":{"additionalProperties":false,"properties":{"app":common.common1,"email":common.common2,"isInvitation":common.common3,"mode":common.common1,"name":common.common1,"pendingUserId":common.common1,"pwd":common.common1,"username":common.common1},"required":["name","username","email","pwd"],"type":"object"}},{"auth":"none","constant":"AUTHENTICATE_URL","contentType":"application/json","generateModule":"UserNoAuth","method":"POST","onlyAuthNone":true,"path":"/api/cocolight/authenticate","postActions":[{"path":"accessToken","type":"setToken"},{"path":"refreshToken","type":"setRefreshToken"},{"event":"userLoggedIn","path":"user","type":"emitEvent"}],"request":{"additionalProperties":false,"properties":{"email":common.common2,"password":common.common1},"required":["email","password"],"type":"object"}},{"auth":"none","constant":"REFRESH_TOKEN_URL","contentType":"application/json","method":"POST","path":"/api/cocolight/refreshtoken","request":{"additionalProperties":false,"properties":{"refreshToken":common.common1},"required":["refreshToken"],"type":"object"}},{"auth":"bearer","constant":"ME_INFO_URL","contentType":"application/json","method":"POST","path":"/api/cocolight/me"},{"auth":"none","constant":"PASSWORD_RECOVERY","contentType":"application/x-www-form-urlencoded","generateModule":"UserNoAuth","method":"POST","onlyAuthNone":true,"path":"/co2/person/sendemail","request":{"additionalProperties":false,"properties":{"email":common.common2,"type":{"const":"password","default":"password","type":"string"}},"required":["email","type"],"type":"object"}},{"auth":"bearer","constant":"SERVER_EXCHANGE_TOKEN","contentType":"application/json","method":"POST","path":"/api/cocolight/exchangetoken","request":{"additionalProperties":false,"properties":{"serverUrl":common.common4},"required":["serverUrl"],"type":"object"}},{"auth":"bearer","constant":"CHANGE_PASSWORD","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/person/changepassword","request":{"additionalProperties":false,"properties":{"mode":{"const":"changePassword","default":"changePassword","type":"string"},"newPassword":common.common1,"newPassword2":common.common1,"oldPassword":common.common1,"scope":{"default":"","type":["string"]},"userId":common.common5},"required":["mode","userId","oldPassword","newPassword","newPassword2"],"type":"object"}},{"auth":"bearer","constant":"DELETE_ACCOUNT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/delete/id/{id}/type/citoyens","pathParams":common.common6,"postActions":[{"type":"resetSession"},{"event":"accountDeleted","path":null,"type":"emitEvent"}],"request":common.common8},{"auth":"bearer","constant":"UPDATE_SETTINGS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updatesettings","request":{"additionalProperties":false,"allOf":[{"else":{"properties":{"idEntity":common.common11}},"if":{"properties":{"typeEntity":common.common12}},"then":{"properties":{"idEntity":common.common5}}},{"if":{"properties":{"type":{"enum":["birthDate","email","locality","phone","directory"]},"typeEntity":common.common12}},"then":{"properties":{"value":{"enum":["private","public","mask"],"type":"string"}}}},{"if":{"properties":{"type":{"enum":["activitypub","isOpenData"]},"typeEntity":common.common12}},"then":common.common13},{"if":{"properties":{"type":common.common15,"typeEntity":common.common16}},"then":common.common13},{"if":{"properties":{"type":common.common15,"typeEntity":common.common17}},"then":common.common13},{"if":{"properties":{"type":{"enum":["isOpenData","isOpenEdition","public"]},"typeEntity":common.common18}},"then":common.common13}],"properties":{"idEntity":common.common1,"type":common.common1,"typeEntity":common.common19,"value":common.common20},"required":["type","value","typeEntity","idEntity"],"type":"object"}},{"auth":"bearer","constant":"UPDATE_BLOCK_DESCRIPTION","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updateblock/","request":{"additionalProperties":false,"allOf":[common.common21,{"anyOf":[{"properties":{"description":common.common27},"required":["description"]},{"properties":{"shortDescription":common.common27},"required":["shortDescription"]}]}],"properties":{"block":{"const":"descriptions","default":"descriptions","type":"string"},"descMentions":common.common10,"description":common.common1,"id":common.common1,"scope":{"default":"","type":["string","null"]},"shortDescription":common.common1,"typeElement":common.common29},"required":["block","typeElement","id"],"type":"object"}},{"auth":"bearer","constant":"UPDATE_BLOCK_INFO","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updateblock/","request":{"$defs":{"sharedFields":{"email":common.common2,"name":common.common1,"tags":common.common30,"url":common.common4}},"allOf":[{"if":common.common24,"then":{"additionalProperties":false,"anyOf":[common.common33,{"properties":{"birthDate":common.common27},"required":["birthDate"]},{"properties":{"fixe":common.common27},"required":["fixe"]},{"properties":{"mobile":common.common27},"required":["mobile"]},common.common35,common.common37,common.common39],"properties":{"birthDate":common.common41,"block":common.common42,"email":common.common43,"fixe":common.common1,"id":common.common5,"mobile":common.common1,"name":common.common44,"scope":common.common10,"tags":common.common45,"typeElement":common.common46,"url":common.common47}}},{"if":{"properties":{"typeElement":common.common17}},"then":{"additionalProperties":false,"anyOf":[common.common33,common.common35,common.common37,common.common39,common.common48,common.common50],"properties":{"avancement":{"enum":["abandoned","concept","development","production","started","testing","idea","mature","qa","finished"],"type":"string"},"block":common.common42,"email":common.common43,"id":common.common1,"name":common.common44,"parent":common.common52,"scope":common.common10,"tags":common.common45,"typeElement":{"default":"citoyens","enum":["projects"],"type":"string"},"url":common.common47}}},{"if":{"properties":{"typeElement":common.common18}},"then":{"additionalProperties":false,"anyOf":[common.common33,common.common35,common.common37,common.common39,common.common48,common.common56,{"properties":{"organizer":common.common27},"required":["organizer"]},common.common50],"properties":{"block":common.common42,"email":common.common43,"id":common.common1,"name":common.common44,"organizer":common.common58,"parent":common.common52,"scope":common.common10,"tags":common.common45,"type":common.common61,"typeElement":{"default":"citoyens","enum":["events"],"type":"string"},"url":common.common47}}},{"if":{"properties":{"typeElement":common.common16}},"then":{"additionalProperties":false,"anyOf":[common.common33,common.common35,common.common37,common.common39,common.common56],"properties":{"block":common.common42,"email":common.common43,"id":common.common1,"name":common.common44,"scope":common.common10,"tags":common.common45,"type":{"enum":["NGO","Cooperative","LocalBusiness","GovernmentOrganizationautre"],"type":"string"},"typeElement":{"enum":["organizations"],"type":"string"},"url":common.common47}}},{"if":{"properties":{"typeElement":{"const":"poi"}}},"then":{"additionalProperties":false,"anyOf":[common.common33,common.common35,common.common37,common.common39,common.common56,{"properties":{"urls":common.common27},"required":["urls"]}],"properties":{"block":common.common42,"email":common.common43,"id":common.common1,"name":common.common44,"scope":common.common10,"tags":common.common45,"type":common.common62,"typeElement":common.common63,"url":common.common47,"urls":common.common31}}}],"properties":{"block":common.common42,"id":common.common1,"scope":common.common10,"typeElement":common.common29},"required":["block","typeElement","id"],"type":"object"}},{"auth":"bearer","constant":"UPDATE_BLOCK_SOCIAL","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updateblock/","request":{"$defs":{"socialField":{"anyOf":[common.common32,common.common4]}},"allOf":[common.common21,{"anyOf":[{"properties":{"gitlab":common.common27},"required":["gitlab"]},{"properties":{"github":common.common27},"required":["github"]},{"properties":{"twitter":common.common27},"required":["twitter"]},{"properties":{"facebook":common.common27},"required":["facebook"]},{"properties":{"instagram":common.common27},"required":["instagram"]},{"properties":{"diaspora":common.common27},"required":["diaspora"]},{"properties":{"mastodon":common.common27},"required":["mastodon"]},{"properties":{"telegram":common.common27},"required":["telegram"]},{"properties":{"signal":common.common27},"required":["signal"]}]}],"properties":{"block":{"const":"network","default":"network","type":"string"},"diaspora":common.common64,"facebook":common.common64,"github":common.common64,"gitlab":common.common64,"id":common.common1,"instagram":common.common64,"mastodon":common.common64,"scope":common.common10,"signal":common.common64,"telegram":common.common64,"twitter":common.common64,"typeElement":common.common65},"required":["block","typeElement","id"],"type":"object"}},{"auth":"bearer","constant":"UPDATE_BLOCK_LOCALITY","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updateblock/","request":{"else":common.common66,"if":common.common24,"properties":{"address":{"oneOf":[common.common69,common.common70]},"block":{"const":"localities","default":"localities","type":"string"},"geo":{"oneOf":[common.common69,common.common74]},"geoPosition":{"oneOf":[common.common69,common.common78]},"id":common.common1,"scope":common.common10,"typeElement":common.common29},"required":["block","typeElement","id","address"],"then":common.common84,"type":"object"}},{"auth":"bearer","constant":"UPDATE_BLOCK_SLUG","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updateblock/","request":{"else":common.common66,"if":common.common24,"properties":{"block":common.common42,"id":common.common1,"scope":common.common10,"slug":common.common87,"typeElement":common.common29},"required":["block","typeElement","id","slug"],"then":common.common84,"type":"object"}},{"auth":"bearer","constant":"CHECK","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/slug/check","request":{"additionalProperties":false,"else":common.common66,"if":common.common88,"properties":{"block":common.common42,"id":common.common1,"slug":common.common87,"type":common.common19},"required":["block","type","id","slug"],"then":common.common84,"type":"object"}},{"auth":"bearer","constant":"PROFIL_IMAGE","contentType":"multipart/form-data","method":"POST","path":"/co2/document/upload-save/dir/communecter/folder/{folder}/ownerId/{ownerId}/input/profil_avatar/contentKey/profil/docType/image","pathParams":{"additionalProperties":false,"else":common.common90,"if":common.common92,"properties":{"folder":{"default":"citoyens","enum":["citoyens","projects","organizations","events","poi"],"type":"string"},"ownerId":common.common1},"required":["folder","ownerId"],"then":common.common94,"type":"object"},"request":{"additionalProperties":false,"properties":{"profil_avatar":common.common20},"required":["profil_avatar"],"type":"object"}},{"auth":"none","constant":"GET_ELEMENTS_ABOUT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/about/type/{type}/id/{id}/json/true","pathParams":{"additionalProperties":false,"else":common.common66,"if":common.common88,"properties":{"id":common.common1,"type":{"default":"citoyens","enum":["citoyens","projects","organizations","events","poi","badges"],"type":"string"}},"required":["type","id"],"then":common.common84,"type":"object"},"request":{"additionalProperties":false,"properties":{"tpl":{"const":"ficheInfoElement","default":"ficheInfoElement","type":"string"}},"required":["tpl"],"type":"object"}},{"auth":"bearer","constant":"MULTICONNECT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/link/multiconnect","request":{"additionalProperties":false,"else":common.common96,"if":common.common98,"properties":{"listInvite":{"additionalProperties":false,"patternProperties":{"^(citoyens|projects|organizations)$":{"additionalProperties":false,"patternProperties":{"^[0-9a-fA-F]{24}$":{"additionalProperties":false,"properties":{"name":common.common1},"required":["name"],"type":"object"}},"type":"object"}},"type":"object"},"parentId":common.common1,"parentType":common.common65},"required":["parentId","parentType","listInvite"],"then":common.common100,"type":"object"}},{"auth":"none","constant":"GET_NEWS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/get/type/{type}/id/{id}/isLive/{isLive}/json/true","pathParams":{"additionalProperties":false,"else":common.common66,"if":common.common88,"properties":{"id":common.common1,"isLive":common.common102,"type":common.common65},"required":["isLive","type","id"],"then":common.common84,"type":"object"},"request":{"additionalProperties":false,"properties":{"dateLimit":common.common103,"indexStep":{"default":12,"type":"integer"},"search":{"additionalProperties":false,"properties":{"name":common.common10},"required":["name"],"type":"object"}},"required":["dateLimit","indexStep"],"type":"object"}},{"auth":"none","constant":"GET_NEWS_BY_ID","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/getbyids","request":{"additionalProperties":false,"properties":{"ids":{"items":common.common11,"type":"array"}},"required":["ids"],"type":"object"}},{"auth":"bearer","constant":"ADD_NEWS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/save","request":{"additionalProperties":false,"anyOf":[common.common104,common.common105,common.common106],"else":common.common96,"if":common.common98,"properties":{"json":common.common82,"markdownActive":common.common102,"mediaFile":common.common107,"mediaImg":common.common109,"mentions":common.common111,"parentId":common.common1,"parentType":common.common65,"scope":common.common115,"tags":common.common30,"text":common.common1,"type":common.common116},"required":["scope","markdownActive","parentId","parentType","type","json"],"then":common.common100,"type":"object"}},{"auth":"bearer","constant":"ADD_IMAGE_NEWS","contentType":"multipart/form-data","method":"POST","path":"/co2/document/uploadSave/dir/communecter/folder/{folder}/ownerId/{ownerId}/input/newsImage/docType/image/contentKey/slider","pathParams":common.common117,"request":{"additionalProperties":false,"properties":{"newsImage":common.common20},"required":["newsImage"],"type":"object"}},{"auth":"bearer","constant":"ADD_FILE_NEWS","contentType":"multipart/form-data","method":"POST","path":"/co2/document/uploadSave/dir/communecter/folder/{folder}/ownerId/{ownerId}}/input/newsFile/docType/file","pathParams":common.common117,"request":{"additionalProperties":false,"properties":{"newsFile":common.common20},"required":["newsFile"],"type":"object"}},{"auth":"bearer","constant":"DELETE_NEWS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/delete/id/{id}","pathParams":common.common119,"request":{"additionalProperties":false,"properties":{"isLive":common.common120},"required":["isLive"],"type":"object"}},{"auth":"bearer","constant":"UPDATE_NEWS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/update","request":{"additionalProperties":false,"anyOf":[common.common104,common.common105,common.common106],"else":common.common96,"if":common.common98,"properties":{"idNews":common.common11,"markdownActive":common.common102,"mediaFile":common.common107,"mediaImg":common.common109,"mentions":common.common111,"parentId":common.common1,"parentType":common.common65,"scope":common.common115,"tags":common.common30,"text":common.common1,"type":common.common116},"required":["idNews","scope","markdownActive","parentId","parentType","type"],"then":common.common100,"type":"object"}},{"auth":"bearer","constant":"SHARE_NEWS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/share","request":{"additionalProperties":false,"else":common.common121,"if":common.common123,"properties":{"childId":common.common11,"childType":common.common65,"comment":common.common1,"connectType":common.common125,"parentId":common.common11,"parentType":common.common116},"required":["parentId","parentType","childId","childType","connectType"],"then":common.common126,"type":"object"}},{"auth":"none","constant":"GET_COMMENTS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/comment/index/type/{type}/id/{id}/json/true","pathParams":common.common128},{"auth":"bearer","constant":"ADD_COMMENTS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/comment/save","request":{"additionalProperties":false,"properties":{"argval":common.common10,"contextId":common.common11,"contextType":common.common130,"mentions":common.common131,"parentCommentId":common.common11,"path":common.common10,"text":common.common1},"required":["text","contextId","contextType"],"type":"object"}},{"auth":"bearer","constant":"DELETE_COMMENTS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/comment/delete/id/{id}","pathParams":common.common119},{"auth":"bearer","constant":"UPDATE_COMMENTS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/comment/update","request":{"additionalProperties":false,"properties":{"id":common.common11,"params":{"properties":{"mentions":common.common131,"text":common.common1},"required":["text"],"type":"object"}},"required":["id","params"],"type":"object"}},{"auth":"none","constant":"SEARCH_TAGS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/api/tags/search?q={q}","pathParams":{"additionalProperties":false,"properties":{"q":common.common1},"required":["q"],"type":"object"}},{"auth":"none","constant":"SHOW_VOTE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/action/list/type/{type}/id/{id}/actionType/vote/json/true","pathParams":common.common128},{"auth":"none","constant":"GLOBAL_AUTOCOMPLETE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":{"default":["NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative","projects","citoyens","poi"],"items":common.common134,"type":"array"},"fediverse":common.common135,"filters":common.common136,"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common139,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchTags":common.common31,"searchType":{"items":common.common134,"type":"array"}},"required":["name","searchType","countType","indexMin","indexStep","initType","count","notSourceKey","filters","fediverse"],"type":"object"}},{"auth":"none","constant":"CITY_AUTOCOMPLETE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"indexMax":{"minimum":5,"type":"integer"},"indexMin":{"minimum":0,"type":"integer"},"locality":common.common136,"name":common.common1,"searchBy":{"const":"ALL","default":"ALL","type":"string"},"searchType":{"const":["cities"],"default":["cities"],"items":{"enum":["cities"],"type":"string"},"type":"array"}},"required":["name","locality","searchType"],"type":"object"}},{"auth":"none","constant":"CITY_AUTOCOMPLETE_BY_COUNTRY","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/city/autocompletemultiscope","request":{"additionalProperties":false,"properties":{"countryCode":{"default":"FR","type":"string"},"formInMap":common.common120,"scopeValue":common.common1,"type":{"enum":["locality"],"type":"string"}},"required":["type","countryCode","scopeValue","formInMap"],"type":"object"}},{"auth":"none","constant":"SUGGESTION_INPUT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"indexMax":{"default":20,"minimum":20,"type":"integer"},"indexMin":common.common149,"name":common.common1,"searchType":{"items":{"enum":["organizations","projects","poi"],"type":"string"},"type":"array"}},"required":["name","searchType","indexMin","indexMax"],"type":"object"}},{"auth":"none","constant":"GET_PROJECTS_NO_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common150,"fediverse":common.common135,"filters":{"additionalProperties":false,"default":{"$or":{"links.contributors.@userId":common.common152,"parent.@userId":common.common152},"links.contributors.@userId":common.common152},"patternProperties":{"^links\\.contributors\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153},"properties":{"$or":{"additionalProperties":false,"maxProperties":2,"minProperties":2,"patternProperties":{"^links\\.contributors\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153,"^parent\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153},"type":"object"}},"required":["$or"],"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common150},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_PROJECTS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/{type}/id/{id}/canSee/true","pathParams":common.common156,"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common150,"fediverse":common.common135,"filters":{"additionalProperties":false,"default":{"$or":{"links.contributors.@{pathParams.id}":common.common152,"parent.@{pathParams.id}":common.common152},"links.contributors.@{pathParams.id}":common.common152},"patternProperties":{"^links\\.contributors\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153},"properties":{"$or":{"additionalProperties":false,"maxProperties":2,"minProperties":2,"patternProperties":{"^links\\.contributors\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153,"^parent\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153},"type":"object"}},"required":["$or"],"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common150},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_POIS_NO_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common158,"fediverse":common.common135,"filters":{"additionalProperties":false,"default":{"parent.@userId":common.common152},"patternProperties":{"^parent\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common158},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_POIS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/{type}/id/{id}/canSee/true","pathParams":common.common156,"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common158,"fediverse":common.common135,"filters":{"additionalProperties":false,"default":{"parent.@{pathParams.id}":common.common152},"patternProperties":{"^parent\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common158},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_ORGANIZATIONS_NO_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common159,"fediverse":common.common135,"filters":{"additionalProperties":false,"default":{"links.members.@userId":common.common152,"links.members.@userId.isInviting":common.common161,"links.members.@userId.toBeValidated":common.common161},"patternProperties":{"^links\\.members\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153,"^links\\.members\\.(?:[a-f0-9]{24}|@\\w+)\\.isInviting$":common.common162,"^links\\.members\\.(?:[a-f0-9]{24}|@\\w+)\\.toBeValidated$":common.common162},"type":"object"},"indexMax":common.common81,"indexMin":common.common149,"indexStep":common.common165,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common159},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_ORGANIZATIONS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/{type}/id/{id}/canSee/true","pathParams":{"additionalProperties":false,"else":common.common66,"if":common.common88,"properties":{"id":common.common1,"type":{"default":"citoyens","enum":["citoyens","organizations"],"type":"string"}},"required":["type","id"],"then":common.common84,"type":"object"},"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common159,"fediverse":common.common135,"filters":{"additionalProperties":false,"default":{"links.members.@{pathParams.id}":common.common152,"links.members.@{pathParams.id}.isInviting":common.common161,"links.members.@{pathParams.id}.toBeValidated":common.common161},"patternProperties":{"^links\\.members\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153,"^links\\.members\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isInviting$":common.common162,"^links\\.members\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.toBeValidated$":common.common162},"type":"object"},"indexMax":common.common81,"indexMin":common.common149,"indexStep":common.common165,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common159},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_MEMBERS_NO_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common166,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[{"not":{"propertyNames":{"pattern":"^(?!links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)$)"}}},{"not":{"propertyNames":{"pattern":"^(?!links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)\\.toBeValidated$)"}}}],"patternProperties":{"^links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)\\.isAdmin$":common.common153,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)\\.isAdminPending$":common.common153,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)\\.isInviting$":common.common168,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)\\.roles$":common.common170,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@\\w+)\\.toBeValidated$":common.common162},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common166},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_MEMBERS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/organizations/id/{id}/canSee/true","pathParams":common.common119,"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common166,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[{"not":{"propertyNames":{"pattern":"^(?!links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}}}],"default":{"links.memberOf.@{pathParams.id}":common.common152,"links.memberOf.@{pathParams.id}.isInviting":common.common161,"links.memberOf.@{pathParams.id}.toBeValidated":common.common161},"patternProperties":{"^links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isAdmin$":common.common153,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isAdminPending$":common.common153,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isInviting$":common.common168,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.roles$":common.common170,"^links\\.memberOf\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.toBeValidated$":common.common168},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common166},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_FRIENDS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/citoyens/id/{id}/canSee/true","pathParams":common.common6,"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common173,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[{"not":{"propertyNames":{"pattern":"^(?!links\\.friends\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}}}],"default":{"links.friends.@{pathParams.id}":common.common152,"links.friends.@{pathParams.id}.isInviting":common.common161,"links.friends.@{pathParams.id}.toBeValidated":common.common161},"patternProperties":{"^links\\.friends\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153,"^links\\.friends\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isInviting$":common.common168,"^links\\.friends\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.toBeValidated$":common.common168},"type":"object"},"indexMin":common.common149,"indexStep":common.common165,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"searchType":common.common173},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_SUBSCRIPTIONS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common175,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[common.common177],"default":{"links.followers.@userId":common.common152,"links.followers.@{userId}.isInviting":common.common161,"links.followers.@{userId}.toBeValidated":common.common161},"patternProperties":common.common180,"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common175},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_SUBSCRIPTIONS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/citoyens/id/{id}/canSee/true","pathParams":common.common6,"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common175,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[common.common177],"default":{"links.followers.@{pathParams.id}":common.common152,"links.followers.@{pathParams.id}.isInviting":common.common161,"links.followers.@{pathParams.id}.toBeValidated":common.common161},"patternProperties":common.common180,"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common175},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_SUBSCRIBERS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common173,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[common.common181],"default":{"links.follows.@userId":common.common152,"links.follows.@{userId}.isInviting":common.common161,"links.follows.@{userId}.toBeValidated":common.common161},"patternProperties":{"^links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153,"^links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isInviting$":common.common162,"^links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.toBeValidated$":common.common162},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common173},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_SUBSCRIBERS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/{type}/id/{id}/canSee/true","pathParams":{"additionalProperties":false,"allOf":[{"else":common.common66,"if":common.common88,"then":common.common84}],"properties":{"id":common.common1,"type":common.common184},"required":["type","id"],"type":"object"},"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common173,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[common.common181],"default":{"links.follows.@{pathParams.id}":common.common152},"maxProperties":1,"minProperties":1,"patternProperties":{"^links\\.follows\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153},"type":"object"},"indexMin":common.common149,"indexStep":common.common165,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"searchType":common.common173},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_CONTRIBUTORS_NO_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common166,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[{"not":{"propertyNames":{"pattern":"^(?!links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)$)"}}},{"not":{"propertyNames":{"pattern":"^(?!links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)\\.toBeValidated$)"}}}],"patternProperties":{"^links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153,"^links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)\\.isAdmin$":common.common153,"^links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)\\.isAdminPending$":common.common153,"^links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)\\.isInviting$":common.common168,"^links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)\\.roles$":common.common170,"^links\\.projects\\.(?:[a-f0-9]{24}|@\\w+)\\.toBeValidated$":common.common162},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common166},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"GET_CONTRIBUTORS_ADMIN","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocompleteadmin/type/projects/id/{id}/canSee/true","pathParams":common.common119,"request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common166,"fediverse":common.common135,"filters":{"additionalProperties":false,"allOf":[{"not":{"propertyNames":{"pattern":"^(?!links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$)"}}}],"default":{"links.projects.@{pathParams.id}":common.common152,"links.projects.@{pathParams.id}.isInviting":common.common161,"links.projects.@{pathParams.id}.toBeValidated":common.common161},"patternProperties":{"^links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))$":common.common153,"^links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isAdmin$":common.common153,"^links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isAdminPending$":common.common153,"^links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.isInviting$":common.common168,"^links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.roles$":common.common170,"^links\\.projects\\.(?:[a-f0-9]{24}|@(?:\\{[^}]+\\}|[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)?))\\.toBeValidated$":common.common168},"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common166},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_BADGES","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common185,"fediverse":common.common135,"filters":{"properties":{"$or":{"additionalProperties":false,"minProperties":1,"patternProperties":{"^issuer\\.(?:[a-f0-9]{24}|@\\w+)$":common.common153},"type":"object"},"isParcours":common.common3,"preferences.private":common.common135},"required":["preferences.private"],"type":"object"},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":common.common144,"searchBy":common.common148,"searchType":common.common185},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","filters","locality","fediverse"],"type":"object"}},{"auth":"none","constant":"GET_BADGES_FILTERS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"count":common.common82,"countType":common.common187,"fediverse":common.common135,"fields":common.common185,"filters":{"oneOf":[{"additionalProperties":false,"maxProperties":1,"minProperties":1,"patternProperties":{"badges\\.(?:[a-f0-9]{24}|@\\w+)$":common.common189}},{"additionalProperties":false,"maxProperties":3,"minProperties":3,"patternProperties":{"badges\\.(?:[a-f0-9]{24}|@\\w+)$":common.common189,"badges\\.(?:[a-f0-9]{24}|@\\w+)\\.attenteEmetteur$":common.common192,"badges\\.(?:[a-f0-9]{24}|@\\w+)\\.attenteRecepteur$":common.common192}},{"additionalProperties":false,"maxProperties":2,"minProperties":2,"patternProperties":common.common195},{"additionalProperties":false,"maxProperties":1,"minProperties":1,"properties":{"$or":{"additionalProperties":false,"maxProperties":2,"minProperties":2,"patternProperties":common.common195,"type":"object"}},"required":["$or"]},{"additionalProperties":false,"maxProperties":1,"minProperties":1,"patternProperties":{"badges\\.(?:[a-f0-9]{24}|@\\w+)\\.revoke$":common.common191}},{"additionalProperties":false,"maxProperties":1,"minProperties":1,"patternProperties":{"badges\\.(?:[a-f0-9]{24}|@\\w+)\\.attenteEmetteur$":common.common189}}],"type":"object"},"indexMin":common.common149,"indexStep":common.common165,"initType":common.common136,"locality":common.common136,"name":common.common1,"notSourceKey":common.common82,"ranges":{"additionalProperties":false,"default":{"Cooperative":common.common196,"GovernmentOrganization":common.common196,"Group":common.common196,"LocalBusiness":common.common196,"NGO":common.common196,"citoyens":common.common196,"projects":common.common196},"maxProperties":7,"minProperties":7,"patternProperties":{"^[a-zA-Z][a-zA-Z0-9]*$":common.common146},"type":"object"},"searchType":common.common187},"required":["searchType","indexMin","initType","count","countType","indexStep","notSourceKey","locality","fediverse"],"type":"object"}},{"auth":"bearer","constant":"CONNECT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/link/connect","request":{"additionalProperties":false,"allOf":[{"if":common.common98,"then":{"properties":{"connectType":{"const":"friend","default":"friend"}}}},{"if":common.common197,"then":{"properties":{"connectType":{"enum":["admin","member"]}}}},{"if":common.common199,"then":{"properties":{"connectType":{"enum":["admin","contributor"]}}}},{"if":common.common201,"then":{"properties":{"connectType":{"default":"attendee","enum":["attendee","connect"]}}}}],"properties":{"childId":common.common203,"childType":common.common204,"connectType":{"enum":["admin","member","contributor","attendee","friend","connect"],"type":"string"},"parentId":common.common11,"parentType":common.common205},"required":["childId","childType","parentType","parentId","connectType"],"type":"object"}},{"auth":"bearer","constant":"DISCONNECT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/link/disconnect","request":{"additionalProperties":false,"allOf":[{"if":common.common98,"then":{"properties":{"connectType":{"default":"friends","enum":["friends","followers"]}}}},{"if":common.common197,"then":{"properties":{"connectType":{"default":"members","enum":["members","followers"]}}}},{"if":common.common199,"then":{"properties":{"connectType":{"default":"contributors","enum":["contributors","followers"]}}}},{"if":common.common201,"then":{"properties":{"connectType":{"default":"attendees","enum":["attendees","followers"]}}}}],"properties":{"childId":common.common203,"childType":common.common204,"connectType":{"enum":["members","contributors","attendees","friends","followers"],"type":"string"},"parentId":common.common11,"parentType":common.common205},"required":["childId","childType","parentType","parentId","connectType"],"type":"object"}},{"auth":"none","constant":"GET_ELEMENTS_KEY","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/slug/getinfo/key/{slug}","pathParams":{"additionalProperties":false,"properties":{"slug":{"pattern":"^([a-zA-Z0-9-_]+)$","type":"string"}},"required":["slug"],"type":"object"}},{"auth":"bearer","constant":"GET_FAVORIS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/app/config/type/citoyens/id/{id}/json/true","pathParams":common.common6},{"auth":"bearer","constant":"DELETE_FAVORIS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updatepathvalue?index={index}","pathParams":{"properties":{"index":common.common81},"type":"object"},"request":{"additionalProperties":false,"properties":{"collection":common.common206,"id":common.common207,"path":{"const":"preferences.search.@{pathParams.index}","default":"preferences.search.@{pathParams.index}","type":"string"},"pull":{"const":"preferences.search","type":"string"},"value":common.common136},"required":["id","collection","path","pull","value"],"type":"object"}},{"auth":"bearer","constant":"ADD_FAVORIS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/updatepathvalue","request":{"additionalProperties":false,"properties":{"arrayForm":common.common191,"collection":common.common206,"id":common.common207,"path":{"const":"preferences.search","default":"preferences.search","type":"string"},"value":{"additionalProperties":false,"properties":{"description":common.common1,"locality":{"patternProperties":{"^[a-f0-9]{24}$":{"additionalProperties":false,"properties":common.common55,"required":["name","type"]}},"type":"object"},"name":common.common1,"tags":common.common31,"url":common.common1},"required":["url","name"],"type":"object"}},"required":["id","collection","path","arrayForm","value"],"type":"object"}},{"auth":"bearer","constant":"ADD_ORGANIZATION","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/save","request":{"additionalProperties":false,"properties":{"address":common.common70,"collection":{"const":"organizations","default":"organizations","type":"string"},"email":common.common2,"geo":common.common74,"geoPosition":common.common78,"id":common.common11,"key":{"const":"organization","default":"organization","type":"string"},"name":{"minLength":3,"type":"string"},"preferences":common.common208,"role":{"enum":["admin","member"],"type":"string"},"scope":common.common136,"shortDescription":common.common1,"tags":common.common31,"type":{"enum":["NGO","LocalBusiness","Group","GovernmentOrganization","Cooperative"],"type":"string"},"url":common.common4},"required":["id","collection","key","name","type","role","scope"],"type":"object"}},{"auth":"bearer","constant":"ADD_PROJECT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/save","request":{"additionalProperties":false,"properties":{"address":common.common70,"collection":{"const":"projects","default":"projects","type":"string"},"geo":common.common74,"geoPosition":common.common78,"id":common.common11,"key":{"const":"project","default":"project","type":"string"},"name":common.common1,"parent":common.common211,"preferences":{"default":{"crowdfunding":true,"isOpenData":false,"isOpenEdition":false},"properties":{"crowdfunding":common.common102,"isOpenData":common.common120,"isOpenEdition":common.common120},"required":["isOpenData","isOpenEdition"],"type":"object"},"public":common.common102,"scope":common.common136,"shortDescription":common.common1,"tags":common.common31,"url":common.common4},"required":["id","collection","key","parent","name","public","scope"],"type":"object"}},{"auth":"bearer","constant":"ADD_POI","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/save","request":{"additionalProperties":false,"properties":{"address":common.common70,"collection":common.common214,"description":common.common1,"geo":common.common74,"geoPosition":common.common78,"id":common.common11,"key":common.common214,"name":common.common1,"parent":common.common211,"scope":common.common136,"tags":common.common31,"type":common.common62,"urls":common.common31},"required":["id","collection","key","parent","type","name"],"type":"object"}},{"auth":"bearer","constant":"ADD_EVENT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/save","request":{"additionalProperties":false,"else":{"required":["openingHours"]},"if":{"properties":{"recurrency":common.common164}},"properties":{"address":common.common70,"collection":common.common215,"email":common.common2,"endDate":common.common216,"geo":common.common74,"geoPosition":common.common78,"id":common.common11,"key":{"const":"event","default":"event","type":"string"},"name":{"minLength":2,"type":"string"},"openingHours":{"default":["","","","","","",""],"items":{"anyOf":[common.common69,{"additionalProperties":false,"properties":{"dayOfWeek":{"enum":["Mo","Tu","We","Th","Fr","Sa","Su"],"type":"string"},"hours":{"default":[],"items":{"additionalProperties":false,"properties":{"closes":common.common217,"opens":common.common217},"required":["opens","closes"],"type":"object"},"type":"array"}},"required":["dayOfWeek","hours"],"type":"object"}]},"maxItems":7,"minItems":7,"type":"array"},"organizer":common.common211,"parent":common.common58,"preferences":{"default":{"isOpenData":false,"isOpenEdition":false},"properties":{"isOpenData":common.common120,"isOpenEdition":common.common120},"required":["isOpenData","isOpenEdition"],"type":"object"},"public":common.common102,"recurrency":common.common120,"scope":common.common136,"shortDescription":{"format":"textarea","type":"string"},"startDate":common.common216,"tags":common.common31,"timeZone":common.common1,"type":common.common61,"url":common.common4},"required":["id","collection","key","organizer","type","name","scope"],"startBeforeEnd":true,"then":{"required":["startDate","endDate"]},"type":"object"}},{"auth":"bearer","constant":"DELETE_POI","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/delete/type/poi/id/{id}","pathParams":common.common119,"request":common.common8},{"auth":"bearer","constant":"DELETE_EVENT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/delete/type/events/id/{id}/","pathParams":common.common119,"request":common.common8},{"auth":"bearer","constant":"DELETE_ELEMENT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/delete/type/{type}/id/{id}","pathParams":{"additionalProperties":false,"properties":{"id":common.common11,"type":common.common1},"required":["type","id"],"type":"object"},"request":common.common8},{"auth":"bearer","constant":"ADD_IMAGE_ELEMENT","contentType":"multipart/form-data","method":"POST","path":"/co2/document/upload-save/dir/communecter/folder/{folder}/ownerId/{ownerId}/input/qqfile/docType/image/contentKey/profil","pathParams":{"additionalProperties":false,"properties":{"folder":{"enum":["badges","events"],"type":"string"},"ownerId":common.common11},"required":["folder","ownerId"],"type":"object"},"request":{"additionalProperties":false,"properties":{"qqfile":common.common20,"qqfilename":common.common1,"qqtotalfilesize":common.common218,"qquuid":common.common11},"required":["qquuid","qqfilename","qqtotalfilesize","qqfile"],"type":"object"}},{"auth":"bearer","constant":"LINK_VALIDATE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/link/validate","request":{"additionalProperties":false,"properties":{"childId":common.common5,"childType":common.common46,"linkOption":{"enum":["isInviting","toBeValidated","isAdminPending"],"type":"string"},"parentId":common.common11,"parentType":common.common205},"required":["childId","childType","parentType","parentId"],"type":"object"}},{"auth":"none","constant":"SEARCH_MEMBER_AUTOCOMPLETE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/searchmemberautocomplete","request":{"additionalProperties":false,"properties":{"search":common.common1,"searchMode":{"default":"personOnly","enum":["personOnly","organizationOnly","mixte"],"type":"string"}},"required":["search","searchMode"],"type":"object"}},{"auth":"bearer","constant":"GET_NOTIFICATIONS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/notification/getnotifications/type/{type}/id/{id}","pathParams":common.common219,"request":{"additionalProperties":false,"properties":{"indexMin":common.common103},"type":"object"}},{"auth":"bearer","constant":"GET_NOTIFICATIONS_COUNT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/notification/getnotifications/type/{type}/id/{id}","pathParams":common.common219,"request":{"additionalProperties":false,"properties":{"refreshTimestamp":common.common218},"type":"object"}},{"auth":"bearer","constant":"NOTIFICATION_UPDATE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/notification/update","request":{"additionalProperties":false,"properties":{"action":{"enum":["seen","read"],"type":"string"},"all":common.common82},"required":["action","all"],"type":"object"}},{"auth":"bearer","constant":"REMOVE_ALL_NOTIFICATIONS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/notification/removeall"},{"auth":"bearer","constant":"MARK_NOTIFICATION_AS_READ","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/notification/marknotificationasread","request":common.common119},{"auth":"none","constant":"ACTIVITYPUB_SEARCH","contentType":"application/x-www-form-urlencoded","method":"GET","params":[common.common20],"path":"/api/activitypub/search?address={address}","pathParams":{"additionalProperties":false,"properties":{"address":common.common1},"required":["address"],"type":"object"}},{"auth":"bearer","constant":"ACTIVITYPUB_LINK","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/api/activitypub/link","request":{"additionalProperties":false,"properties":{"action":{"enum":["undo_follow","accept_invitation","reject_invitation","undo_accept","undo_request_follow","follow","remove_follow","accept_follower","reject_follower","remove_follower","remove_invitation"],"type":"string"},"actor":{"additionalProperties":false,"properties":{"id":common.common1,"name":common.common1,"type":{"enum":["person"],"type":"string"}},"required":["id","type","name"],"type":"object"},"payload":common.common4},"required":["action","payload","actor"],"type":"object"}},{"auth":"none","constant":"ACTIVITYPUB_GET_COMMUNITY","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/api/activitypub/getcommunity/userId/${userId}/type/${type}/actor/person","pathParams":{"additionalProperties":false,"properties":{"type":{"enum":["follows","followers"],"type":"string"},"userId":common.common11},"required":["userId","type"],"type":"object"}},{"auth":"none","constant":"GET_BADGE","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/app/page/type/badges/id/{id}/json/true","pathParams":common.common119},{"auth":"none","constant":"GET_EMETTEUR_BADGES","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/app/badge/json/true"},{"auth":"bearer","constant":"ADD_BADGES","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/element/save","request":{"additionalProperties":false,"properties":{"collection":common.common222,"criteria":{"additionalProperties":false,"properties":{"narrative":common.common1},"required":["narrative"],"type":"object"},"description":common.common1,"id":common.common11,"isParcours":common.common120,"issuer":{"additionalProperties":false,"patternProperties":{"^(?:[a-f0-9]{24}|@userId)$":{"additionalProperties":false,"properties":{"name":common.common1,"type":{"enum":["citoyens","organizations","projects"],"type":"string"}},"required":["type"],"type":"object"}},"type":"object"},"key":common.common223,"name":common.common1,"parent":{"additionalProperties":false,"patternProperties":{"^[a-f0-9]{24}$":{"additionalProperties":false,"properties":{"name":common.common1,"type":common.common222},"required":["type"],"type":"object"}},"type":"object"},"preferences":common.common208,"public":common.common102,"scope":common.common136,"tags":common.common31},"required":["id","collection","key","name","public","scope","issuer","criteria"],"type":"object"}},{"auth":"bearer","constant":"ASSIGN_BADGES","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/badges/assign","request":{"additionalProperties":false,"properties":{"award":{"patternProperties":{"^[0-9a-f]{24}$":common.common54},"type":"object"},"badgeId":common.common11,"collection":common.common222,"evidences":{"items":{"additionalProperties":false,"properties":{"narative":common.common1,"url":common.common4},"required":["narative"],"type":"object"},"type":"array"},"key":common.common223,"narative":common.common1,"scope":common.common136},"required":["key","collection","badgeId","award"],"type":"object"}},{"auth":"none","constant":"GET_EVENTS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/search/agenda","request":{"additionalProperties":false,"properties":{"count":common.common120,"countType":{"const":["events"],"default":["events"],"type":"array"},"endDateUTC":common.common216,"fediverse":common.common120,"indexMin":common.common103,"indexStep":{"default":100,"type":"integer"},"locality":{"patternProperties":{"^[^\\s]+$":{"type":"object"}},"type":"object"},"name":common.common1,"searchType":{"const":["events"],"default":["events"],"items":common.common1,"type":"array"},"startDate":common.common81,"startDateUTC":common.common216,"type":common.common61},"required":["searchType","indexMin","indexStep","startDate","startDateUTC","fediverse"],"type":"object"}},{"auth":"bearer","constant":"SHARE_EVENTS","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/news/co/share","request":{"additionalProperties":false,"else":common.common121,"if":common.common123,"properties":{"childId":common.common11,"childType":common.common65,"comment":common.common1,"connectType":common.common125,"parentId":common.common11,"parentType":common.common215},"required":["parentId","childId","childType","connectType","parentType"],"then":common.common126,"type":"object"}},{"auth":"bearer","constant":"INVITE_EVENT","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/link/multiconnect","request":{"additionalProperties":false,"else":common.common96,"if":common.common98,"properties":{"listInvite":{"additionalProperties":false,"minProperties":1,"properties":{"citoyens":common.common224,"invites":{"patternProperties":{"^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$":{"additionalProperties":false,"properties":{"email":common.common2,"isAdmin":common.common228,"msg":common.common1,"name":common.common1,"roles":common.common31},"required":["name","email"],"type":"object"}},"type":"object"},"organizations":common.common224,"projects":common.common224},"type":"object"},"parentId":common.common1,"parentType":common.common65},"required":["parentId","parentType","listInvite"],"then":common.common100,"type":"object"}},{"auth":"bearer","constant":"FOLLOW","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/link/follow","request":{"additionalProperties":false,"properties":{"childId":common.common203,"childType":common.common204,"parentId":common.common11,"parentType":common.common205},"required":["childId","childType","parentType","parentId"],"type":"object"}},{"auth":"none","constant":"GET_COSTUM_JSON","contentType":"application/x-www-form-urlencoded","method":"POST","path":"/co2/cms/getcostumjson?slug={slug}","pathParams":{"slug":common.common1}},{"auth":"none","constant":"GLOBAL_AUTOCOMPLETE_COSTUM","contentType":"application/x-www-form-urlencoded","functionCocostum":"globalautocomplete","method":"POST","path":"/co2/search/globalautocomplete","request":{"additionalProperties":false,"properties":{"contextId":common.common11,"contextType":common.common229,"costumEditMode":common.common120,"costumSlug":common.common1,"count":common.common82,"countType":common.common230,"fediverse":common.common120,"fields":common.common31,"filters":{"default":"","oneOf":[{"additionalProperties":true,"type":"object"},common.common69]},"indexMax":common.common81,"indexMin":common.common137,"indexStep":common.common138,"initType":common.common136,"locality":common.common139,"mapUsed":common.common191,"name":common.common1,"notSourceKey":common.common191,"options":{"additionalProperties":true,"properties":{"tags":{"additionalProperties":true,"properties":{"verb":common.common1},"type":"object"}},"type":"object"},"ranges":common.common144,"searchBy":common.common148,"searchTags":common.common31,"searchType":common.common230,"sortBy":{"additionalProperties":{"enum":[1,-1],"type":"integer"},"type":"object"},"sourceKey":common.common31},"required":["searchType","countType","indexMin","indexStep","initType","count","fediverse","costumSlug","costumEditMode"],"type":"object"}},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_ACTORS","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestActors","method":"POST","path":"/costum/coevent/get_events/request/actors/id/{id}/type/{type}","pathParams":common.common232,"request":{"additionalProperties":false,"properties":{"contextId":common.common11,"contextType":common.common229,"costumEditMode":common.common120,"costumSlug":common.common1,"parent_only":common.common3,"sourceKey":common.common31,"types":{"items":{"enum":["organizer","links.attendees","creator","links.creator","links.organizer","organizerName","animator"],"type":"string"},"type":"array"}},"type":"object"}},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_SUBEVENTS","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestSubevents","method":"POST","path":"/costum/coevent/get_events/request/subevents/id/{id}/type/{type}","pathParams":common.common232,"request":{"additionalProperties":false,"allOf":[{"if":{"properties":{"date":common.common1},"required":["date"]},"then":{"required":["timezone"]}}],"properties":{"contextId":common.common11,"contextType":common.common229,"costumEditMode":common.common120,"costumSlug":common.common1,"date":{"oneOf":[common.common1,{"properties":{"between":{"properties":{"end":common.common41,"start":common.common41},"required":["start","end"],"type":"object"}},"required":["between"],"type":"object"}]},"fromToday":common.common3,"regions":common.common235,"sourceKey":common.common31,"tags":common.common31,"timezone":common.common1,"type":common.common1},"type":"object"}},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_ELEMENT_EVENT","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestElementEvent","method":"POST","path":"/costum/coevent/get_events/request/element_event/id/{id}/type/{type}","pathParams":common.common232,"request":common.common238},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_CATEGORIES","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestCategories","method":"POST","path":"/costum/coevent/get_events/request/categories/id/{id}/type/{type}","pathParams":common.common232,"request":common.common238},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_DATES","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestDates","method":"POST","path":"/costum/coevent/get_events/request/dates/id/{id}/type/{type}","pathParams":common.common232,"request":{"additionalProperties":false,"properties":{"contextId":common.common11,"contextType":common.common229,"costumEditMode":common.common120,"costumSlug":common.common1,"regions":common.common235,"sourceKey":common.common31,"tags":common.common31,"type":common.common1},"type":"object"}},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_EVENT","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestEvent","method":"POST","path":"/costum/coevent/get_events/request/event/id/{id}/type/{type}","pathParams":common.common232,"request":common.common238},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_LINK_TL_TO_EVENT","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestLinkTlToEvent","method":"POST","path":"/costum/coevent/get_events/request/link_tl_to_event/id/{id}/type/{type}","pathParams":common.common232,"request":{"additionalProperties":false,"properties":{"contextId":common.common11,"contextType":common.common229,"costumEditMode":common.common120,"costumSlug":common.common1,"event":common.common1,"sourceKey":common.common31,"tl":common.common1},"required":["tl","event"],"type":"object"}},{"auth":"none","constant":"COSTUM_EVENT_REQUEST_LOAD_CONTEXT_TAG","contentType":"application/x-www-form-urlencoded","functionCocostum":"costumEventRequestLoadContextTag","method":"POST","path":"/costum/coevent/get_events/request/load_context_tag/id/{id}/type/{type}","pathParams":common.common232,"request":{"additionalProperties":false,"properties":{"contextId":common.common11,"contextType":common.common229,"costumEditMode":common.common120,"costumSlug":common.common1,"event":common.common11,"search":common.common1,"sourceKey":common.common31},"type":"object"}},{"auth":"none","constant":"GET_GALLERY","contentType":"application/x-www-form-urlencoded","functionCocostum":"","method":"POST","path":"/co2/gallery/index/type/{type}/id/{id}/docType/{docType}/tpl/json","pathParams":{"additionalProperties":false,"else":common.common66,"if":common.common88,"properties":{"docType":{"default":"image","enum":["image","file","bookmarks"],"type":"string"},"id":common.common1,"type":common.common184},"required":["id","type","docType"],"then":common.common84,"type":"object"},"request":{"additionalProperties":false,"properties":{"contentKey":common.common1,"folderId":common.common1},"type":"object"}}]};
package/src/error.js DELETED
@@ -1,121 +0,0 @@
1
- /**
2
- * @typedef {Record<string, any>} ApiErrorDetails
3
- */
4
-
5
- /**
6
- * Classe de base pour toutes les erreurs de l'API.
7
- * @extends Error
8
- */
9
- export class ApiError extends Error {
10
- /**
11
- * @param {string} message - Message d'erreur.
12
- * @param {number} status - Code HTTP (ex: 400, 401, 500, 503).
13
- * @param {ApiErrorDetails} [details] - Détails supplémentaires.
14
- */
15
- constructor(message, status, details) {
16
- super(message);
17
- /** @type {string} */
18
- this.name = "ApiError";
19
- /** @type {number} */
20
- this.status = status;
21
- /** @type {ApiErrorDetails|undefined} */
22
- this.details = details;
23
- }
24
- }
25
-
26
- /**
27
- * Erreur levée par le client API lorsqu'un appel échoue (réseau, config, etc.).
28
- * @extends ApiError
29
- */
30
- export class ApiClientError extends ApiError {
31
- /**
32
- * @param {string} message - Message d'erreur.
33
- * @param {number} status - Code HTTP.
34
- * @param {ApiErrorDetails} [details] - Détails supplémentaires.
35
- */
36
- constructor(message, status, details) {
37
- super(message, status, details);
38
- /** @type {string} */
39
- this.name = "ApiClientError";
40
- }
41
- }
42
-
43
- /**
44
- * Erreur de validation AJV (schemas de requête/réponse).
45
- * @extends Error
46
- */
47
- export class ApiValidationError extends Error {
48
- /**
49
- * @param {string} message - Message d'erreur.
50
- * @param {number} status - Code HTTP logique (souvent 400).
51
- * @param {string[]} messages - Messages humains dérivés des erreurs AJV.
52
- * @param {any} [details=null] - Erreurs AJV brutes ou métadonnées.
53
- */
54
- constructor(message, status, messages, details = null) {
55
- super(message);
56
- /** @type {string} */
57
- this.name = "ApiValidationError";
58
- /** @type {number} */
59
- this.status = status;
60
- /** @type {string[]} */
61
- this.messages = messages;
62
- /** @type {any} */
63
- this.details = details;
64
- }
65
- }
66
-
67
- /**
68
- * Levée lorsqu'on bloque l'accès à l'API (circuit breaker).
69
- * @extends ApiError
70
- */
71
- export class CircuitBreakerError extends ApiError {
72
- /**
73
- * @param {string} message - Message d'erreur.
74
- */
75
- constructor(message) {
76
- super(message, 503);
77
- /** @type {string} */
78
- this.name = "CircuitBreakerError";
79
- }
80
- }
81
-
82
- /**
83
- * Erreur "métier" retour de l'API (ex: result=false) même si HTTP=200.
84
- * @extends Error
85
- */
86
- export class ApiResponseError extends Error {
87
- /**
88
- * @param {string} message - Message d'erreur.
89
- * @param {number} status - Code HTTP (peut être 200 pour erreurs logiques).
90
- * @param {object} responseData - Payload renvoyé par l'API.
91
- * @param {any} [details=null] - Infos supplémentaires (optionnel).
92
- */
93
- constructor(message, status, responseData, details = null) {
94
- super(message);
95
- /** @type {string} */
96
- this.name = "ApiResponseError";
97
- /** @type {number} */
98
- this.status = status;
99
- /** @type {object} */
100
- this.responseData = responseData;
101
- /** @type {any} */
102
- this.details = details;
103
- }
104
- }
105
-
106
- /**
107
- * Erreur d'authentification (ex: 401/403).
108
- * @extends ApiError
109
- */
110
- export class ApiAuthenticationError extends ApiError {
111
- /**
112
- * @param {string} message - Message d'erreur.
113
- * @param {number} status - Code HTTP (401/403).
114
- * @param {ApiErrorDetails} [details] - Détails supplémentaires.
115
- */
116
- constructor(message, status, details) {
117
- super(message, status, details);
118
- /** @type {string} */
119
- this.name = "ApiAuthenticationError";
120
- }
121
- }
package/src/index.js DELETED
@@ -1,97 +0,0 @@
1
- import { fromEntityJSON } from "./api/EntityRegistry.js";
2
- import Api from "./Api.js";
3
- import ApiClient from "./ApiClient.js";
4
- import * as error from "./error.js";
5
- import { createDefaultMultiServerTokenStorageStrategy } from "./utils/createDefaultMultiServerTokenStorageStrategy.js";
6
- import { createDefaultTokenStorageStrategy } from "./utils/createDefaultTokenStorageStrategy.js";
7
- import { MultiServerTokenStorageStrategy } from "./utils/MultiServerTokenStorageStrategy.js";
8
- import OfflineClientManager from "./utils/OfflineClientManager.js";
9
- import * as reactive from "./utils/reactive.js";
10
- import { TokenStorageStrategy } from "./utils/TokenStorage.js";
11
-
12
- /**
13
- * @typedef {import("./Api.js").default} Api
14
- * @typedef {import("./ApiClient.js").default} ApiClient
15
- * @typedef {import("./error.js")} error
16
- * @typedef {import("./utils/reactive.js")} reactive
17
- * @typedef {import("./utils/TokenStorage.js").TokenStorageStrategy} TokenStorageStrategy
18
- * @typedef {import("./utils/MultiServerTokenStorageStrategy.js").MultiServerTokenStorageStrategy} MultiServerTokenStorageStrategy
19
- * @typedef {import("./utils/OfflineClientManager.js").default} OfflineClientManager
20
- * @typedef {import("./api/User.js").User} User
21
- * @typedef {import("./api/Organization.js").Organization} Organization
22
- * @typedef {import("./api/Project.js").Project} Project
23
- * @typedef {import("./api/Event.js").Event} Event
24
- * @typedef {import("./api/Poi.js").Poi} Poi
25
- * @typedef {import("./api/Badge.js").Badge} Badge
26
- * @typedef {import("./api/News.js").News} News
27
- * @typedef {import("./api/EndpointApi.js").default} EndpointApi
28
- * @typedef {import("./api/UserApi.js").UserApi} UserApi
29
- */
30
-
31
- /**
32
- * Client API complet de Cocolight.
33
- */
34
- const cocolightApiClient = {
35
- /** @type {ApiClient} */
36
- ApiClient,
37
-
38
- /** @type {Api} */
39
- Api,
40
-
41
- /** @type {typeof import("./error.js")} */
42
- error,
43
-
44
- // Accès aux primitives réactives via .reactive
45
- /** @type {typeof import("./utils/reactive.js")} */
46
- reactive,
47
-
48
- // Accès direct à chaque primitive (reactive, effect, watch...) en racine
49
- /** @type {typeof import("./utils/reactive.js")["effect"]} */
50
- effect: reactive.effect,
51
-
52
- /** @type {typeof import("./utils/reactive.js")["batch"]} */
53
- batch: reactive.batch,
54
-
55
- /** @type {typeof import("./utils/reactive.js")["isSignal"]} */
56
- isSignal: reactive.isSignal,
57
-
58
- /** @type {typeof import("./utils/reactive.js")["reactive"]} */
59
- reactiveObject: reactive.reactive, // évite le conflit de nom avec la clé "reactive" ci-dessus
60
-
61
- /** @type {typeof import("./utils/reactive.js")["isReactive"]} */
62
- isReactive: reactive.isReactive,
63
-
64
- /** @type {typeof import("./utils/reactive.js")["computed"]} */
65
- computed: reactive.computed,
66
-
67
- /** @type {typeof import("./utils/reactive.js")["watch"]} */
68
- watch: reactive.watch,
69
-
70
- /** @type {typeof import("./utils/reactive.js")["getSignals"]} */
71
- getSignals: reactive.getSignals,
72
-
73
- /** @type {typeof import("./utils/reactive.js")["subscribeTo"]} */
74
- subscribeTo: reactive.subscribeTo,
75
-
76
-
77
- tokenStorageStrategy: {
78
- /** @type {() => import("./utils/TokenStorage.js").TokenStorageStrategy} */
79
- createDefaultTokenStorageStrategy,
80
- /** @type {TokenStorageStrategy} */
81
- TokenStorageStrategy,
82
- /** @type {() => MultiServerTokenStorageStrategy} */
83
- createDefaultMultiServerTokenStorageStrategy,
84
- /** @type {MultiServerTokenStorageStrategy} */
85
- MultiServerTokenStorageStrategy
86
- },
87
-
88
- helper: {
89
- /** @type {typeof fromEntityJSON} */
90
- fromEntityJSON
91
- },
92
-
93
- /** @type {OfflineClientManager} */
94
- OfflineClientManager
95
- };
96
-
97
- export default cocolightApiClient;
@@ -1,8 +0,0 @@
1
- // eslint-disable-next-line no-unused-vars
2
- import { ApiResponseError } from "../error.js";
3
-
4
- // UserMixin.js
5
- export const UserMixin = {
6
-
7
- };
8
-