@gitbook/react-openapi 1.4.3 → 1.5.2

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 (263) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/InteractiveSection.js +59 -0
  3. package/dist/Markdown.js +10 -0
  4. package/dist/OpenAPICodeSample.js +219 -0
  5. package/dist/OpenAPICodeSampleInteractive.js +66 -0
  6. package/dist/OpenAPICodeSampleSelector.js +45 -0
  7. package/dist/OpenAPICopyButton.js +39 -0
  8. package/dist/OpenAPIDisclosure.js +30 -0
  9. package/dist/OpenAPIDisclosureGroup.js +75 -0
  10. package/dist/OpenAPIExample.js +41 -0
  11. package/dist/OpenAPIMediaType.js +58 -0
  12. package/dist/OpenAPIOperation.d.ts +12 -7
  13. package/dist/OpenAPIOperation.js +30 -0
  14. package/dist/OpenAPIOperationContext.d.ts +10 -6
  15. package/dist/OpenAPIOperationContext.js +30 -0
  16. package/dist/OpenAPIPath.js +51 -0
  17. package/dist/OpenAPIPrefillContextProvider.d.ts +11 -7
  18. package/dist/OpenAPIPrefillContextProvider.js +25 -0
  19. package/dist/OpenAPIRequestBody.js +28 -0
  20. package/dist/OpenAPIRequestBodyHeaderType.js +23 -0
  21. package/dist/OpenAPIResponse.js +39 -0
  22. package/dist/OpenAPIResponseExample.js +75 -0
  23. package/dist/OpenAPIResponseExampleContent.js +61 -0
  24. package/dist/OpenAPIResponses.js +61 -0
  25. package/dist/OpenAPISchema.js +373 -0
  26. package/dist/OpenAPISchemaName.js +45 -0
  27. package/dist/OpenAPISchemaServer.js +13 -0
  28. package/dist/OpenAPISecurities.js +124 -0
  29. package/dist/OpenAPISelect.js +45 -0
  30. package/dist/OpenAPISpec.js +73 -0
  31. package/dist/OpenAPIWebhook.d.ts +12 -7
  32. package/dist/OpenAPIWebhook.js +28 -0
  33. package/dist/OpenAPIWebhookExample.js +40 -0
  34. package/dist/ScalarApiButton.js +87 -0
  35. package/dist/StaticSection.js +37 -0
  36. package/dist/code-samples.js +267 -419
  37. package/dist/common/OpenAPIColumnSpec.js +23 -0
  38. package/dist/common/OpenAPIOperationDescription.js +18 -0
  39. package/dist/common/OpenAPIStability.js +17 -0
  40. package/dist/common/OpenAPISummary.js +27 -0
  41. package/dist/contentTypeChecks.js +24 -20
  42. package/dist/context.d.ts +68 -72
  43. package/dist/context.js +25 -39
  44. package/dist/decycle.js +39 -68
  45. package/dist/dereference.js +20 -64
  46. package/dist/generateSchemaExample.js +188 -332
  47. package/dist/getDisclosureLabel.js +15 -16
  48. package/dist/getOrCreateStoreByKey.js +20 -17
  49. package/dist/index.d.ts +12 -10
  50. package/dist/index.js +11 -8
  51. package/dist/json2xml.js +10 -5
  52. package/dist/resolveOpenAPIOperation.d.ts +11 -7
  53. package/dist/resolveOpenAPIOperation.js +88 -159
  54. package/dist/resolveOpenAPIWebhook.d.ts +11 -7
  55. package/dist/resolveOpenAPIWebhook.js +41 -116
  56. package/dist/schemas/OpenAPISchemaItem.js +26 -0
  57. package/dist/schemas/OpenAPISchemas.d.ts +16 -11
  58. package/dist/schemas/OpenAPISchemas.js +57 -0
  59. package/dist/schemas/resolveOpenAPISchemas.d.ts +9 -4
  60. package/dist/schemas/resolveOpenAPISchemas.js +15 -59
  61. package/dist/stringifyOpenAPI.js +12 -13
  62. package/dist/translate.js +43 -0
  63. package/dist/translations/de.js +47 -42
  64. package/dist/translations/en.d.ts +46 -42
  65. package/dist/translations/en.js +47 -42
  66. package/dist/translations/es.js +47 -42
  67. package/dist/translations/fr.js +47 -42
  68. package/dist/translations/index.d.ts +404 -391
  69. package/dist/translations/index.js +28 -24
  70. package/dist/translations/ja.js +47 -42
  71. package/dist/translations/nl.js +47 -42
  72. package/dist/translations/no.js +47 -42
  73. package/dist/translations/pt-br.js +47 -42
  74. package/dist/translations/types.d.ts +7 -5
  75. package/dist/translations/zh.js +47 -42
  76. package/dist/types.d.ts +30 -24
  77. package/dist/util/example.js +84 -0
  78. package/dist/util/server.js +32 -38
  79. package/dist/util/tryit-prefill.js +135 -121
  80. package/dist/utils.js +135 -196
  81. package/package.json +18 -11
  82. package/dist/InteractiveSection.d.ts +0 -33
  83. package/dist/InteractiveSection.jsx +0 -61
  84. package/dist/Markdown.d.ts +0 -4
  85. package/dist/Markdown.jsx +0 -5
  86. package/dist/OpenAPICodeSample.d.ts +0 -19
  87. package/dist/OpenAPICodeSample.jsx +0 -230
  88. package/dist/OpenAPICodeSampleInteractive.d.ts +0 -14
  89. package/dist/OpenAPICodeSampleInteractive.jsx +0 -73
  90. package/dist/OpenAPICodeSampleSelector.d.ts +0 -14
  91. package/dist/OpenAPICodeSampleSelector.jsx +0 -44
  92. package/dist/OpenAPICopyButton.d.ts +0 -13
  93. package/dist/OpenAPICopyButton.jsx +0 -35
  94. package/dist/OpenAPIDisclosure.d.ts +0 -11
  95. package/dist/OpenAPIDisclosure.jsx +0 -30
  96. package/dist/OpenAPIDisclosureGroup.d.ts +0 -23
  97. package/dist/OpenAPIDisclosureGroup.jsx +0 -83
  98. package/dist/OpenAPIExample.d.ts +0 -16
  99. package/dist/OpenAPIExample.jsx +0 -36
  100. package/dist/OpenAPIMediaType.d.ts +0 -21
  101. package/dist/OpenAPIMediaType.jsx +0 -61
  102. package/dist/OpenAPIOperation.jsx +0 -25
  103. package/dist/OpenAPIOperationContext.jsx +0 -26
  104. package/dist/OpenAPIOperationDescription.d.ts +0 -9
  105. package/dist/OpenAPIOperationDescription.jsx +0 -22
  106. package/dist/OpenAPIOperationStability.d.ts +0 -9
  107. package/dist/OpenAPIOperationStability.jsx +0 -27
  108. package/dist/OpenAPIPath.d.ts +0 -18
  109. package/dist/OpenAPIPath.jsx +0 -55
  110. package/dist/OpenAPIPrefillContextProvider.jsx +0 -19
  111. package/dist/OpenAPIRequestBody.d.ts +0 -11
  112. package/dist/OpenAPIRequestBody.jsx +0 -28
  113. package/dist/OpenAPIRequestBodyHeaderType.d.ts +0 -8
  114. package/dist/OpenAPIRequestBodyHeaderType.jsx +0 -25
  115. package/dist/OpenAPIResponse.d.ts +0 -10
  116. package/dist/OpenAPIResponse.jsx +0 -57
  117. package/dist/OpenAPIResponseExample.d.ts +0 -9
  118. package/dist/OpenAPIResponseExample.jsx +0 -105
  119. package/dist/OpenAPIResponseExampleContent.d.ts +0 -22
  120. package/dist/OpenAPIResponseExampleContent.jsx +0 -60
  121. package/dist/OpenAPIResponses.d.ts +0 -9
  122. package/dist/OpenAPIResponses.jsx +0 -77
  123. package/dist/OpenAPISchema.d.ts +0 -27
  124. package/dist/OpenAPISchema.jsx +0 -400
  125. package/dist/OpenAPISchemaName.d.ts +0 -16
  126. package/dist/OpenAPISchemaName.jsx +0 -43
  127. package/dist/OpenAPISchemaServer.d.ts +0 -12
  128. package/dist/OpenAPISchemaServer.jsx +0 -8
  129. package/dist/OpenAPISecurities.d.ts +0 -9
  130. package/dist/OpenAPISecurities.jsx +0 -114
  131. package/dist/OpenAPISelect.d.ts +0 -22
  132. package/dist/OpenAPISelect.jsx +0 -44
  133. package/dist/OpenAPISpec.d.ts +0 -6
  134. package/dist/OpenAPISpec.jsx +0 -80
  135. package/dist/OpenAPITabs.d.ts +0 -26
  136. package/dist/OpenAPITabs.jsx +0 -109
  137. package/dist/OpenAPIWebhook.jsx +0 -23
  138. package/dist/OpenAPIWebhookExample.d.ts +0 -6
  139. package/dist/OpenAPIWebhookExample.jsx +0 -41
  140. package/dist/ScalarApiButton.d.ts +0 -14
  141. package/dist/ScalarApiButton.jsx +0 -81
  142. package/dist/StaticSection.d.ts +0 -13
  143. package/dist/StaticSection.jsx +0 -32
  144. package/dist/code-samples.d.ts +0 -17
  145. package/dist/common/OpenAPIColumnSpec.d.ts +0 -6
  146. package/dist/common/OpenAPIColumnSpec.jsx +0 -20
  147. package/dist/common/OpenAPIOperationDescription.d.ts +0 -6
  148. package/dist/common/OpenAPIOperationDescription.jsx +0 -19
  149. package/dist/common/OpenAPIStability.d.ts +0 -4
  150. package/dist/common/OpenAPIStability.jsx +0 -15
  151. package/dist/common/OpenAPISummary.d.ts +0 -6
  152. package/dist/common/OpenAPISummary.jsx +0 -30
  153. package/dist/contentTypeChecks.d.ts +0 -10
  154. package/dist/decycle.d.ts +0 -2
  155. package/dist/dereference.d.ts +0 -5
  156. package/dist/generateSchemaExample.d.ts +0 -45
  157. package/dist/getDisclosureLabel.d.ts +0 -7
  158. package/dist/getOrCreateStoreByKey.d.ts +0 -10
  159. package/dist/json2xml.d.ts +0 -4
  160. package/dist/schemas/OpenAPISchemaItem.d.ts +0 -7
  161. package/dist/schemas/OpenAPISchemaItem.jsx +0 -16
  162. package/dist/schemas/OpenAPISchemas.jsx +0 -59
  163. package/dist/schemas/index.d.ts +0 -2
  164. package/dist/schemas/index.js +0 -2
  165. package/dist/stringifyOpenAPI.d.ts +0 -4
  166. package/dist/translate.d.ts +0 -10
  167. package/dist/translate.jsx +0 -75
  168. package/dist/translations/de.d.ts +0 -43
  169. package/dist/translations/es.d.ts +0 -43
  170. package/dist/translations/fr.d.ts +0 -43
  171. package/dist/translations/ja.d.ts +0 -43
  172. package/dist/translations/nl.d.ts +0 -43
  173. package/dist/translations/no.d.ts +0 -43
  174. package/dist/translations/pt-br.d.ts +0 -43
  175. package/dist/translations/types.js +0 -1
  176. package/dist/translations/zh.d.ts +0 -43
  177. package/dist/tsconfig.build.tsbuildinfo +0 -1
  178. package/dist/types.js +0 -1
  179. package/dist/util/example.d.ts +0 -35
  180. package/dist/util/example.jsx +0 -103
  181. package/dist/util/server.d.ts +0 -9
  182. package/dist/util/tryit-prefill.d.ts +0 -20
  183. package/dist/utils.d.ts +0 -50
  184. package/src/InteractiveSection.tsx +0 -147
  185. package/src/Markdown.tsx +0 -12
  186. package/src/OpenAPICodeSample.tsx +0 -330
  187. package/src/OpenAPICodeSampleInteractive.tsx +0 -136
  188. package/src/OpenAPICodeSampleSelector.tsx +0 -94
  189. package/src/OpenAPICopyButton.tsx +0 -72
  190. package/src/OpenAPIDisclosure.tsx +0 -46
  191. package/src/OpenAPIDisclosureGroup.tsx +0 -158
  192. package/src/OpenAPIExample.tsx +0 -55
  193. package/src/OpenAPIMediaType.tsx +0 -139
  194. package/src/OpenAPIOperation.tsx +0 -35
  195. package/src/OpenAPIOperationContext.tsx +0 -45
  196. package/src/OpenAPIOperationDescription.tsx +0 -34
  197. package/src/OpenAPIOperationStability.tsx +0 -39
  198. package/src/OpenAPIPath.tsx +0 -90
  199. package/src/OpenAPIPrefillContextProvider.tsx +0 -40
  200. package/src/OpenAPIRequestBody.tsx +0 -54
  201. package/src/OpenAPIRequestBodyHeaderType.tsx +0 -36
  202. package/src/OpenAPIResponse.tsx +0 -82
  203. package/src/OpenAPIResponseExample.tsx +0 -151
  204. package/src/OpenAPIResponseExampleContent.tsx +0 -125
  205. package/src/OpenAPIResponses.tsx +0 -125
  206. package/src/OpenAPISchema.test.ts +0 -172
  207. package/src/OpenAPISchema.tsx +0 -654
  208. package/src/OpenAPISchemaName.tsx +0 -80
  209. package/src/OpenAPISchemaServer.tsx +0 -34
  210. package/src/OpenAPISecurities.tsx +0 -231
  211. package/src/OpenAPISelect.tsx +0 -96
  212. package/src/OpenAPISpec.tsx +0 -138
  213. package/src/OpenAPITabs.tsx +0 -147
  214. package/src/OpenAPIWebhook.tsx +0 -33
  215. package/src/OpenAPIWebhookExample.tsx +0 -60
  216. package/src/ScalarApiButton.tsx +0 -132
  217. package/src/StaticSection.tsx +0 -91
  218. package/src/__snapshots__/json2xml.test.ts.snap +0 -18
  219. package/src/code-samples.test.ts +0 -714
  220. package/src/code-samples.ts +0 -448
  221. package/src/common/OpenAPIColumnSpec.tsx +0 -31
  222. package/src/common/OpenAPIOperationDescription.tsx +0 -31
  223. package/src/common/OpenAPIStability.tsx +0 -23
  224. package/src/common/OpenAPISummary.tsx +0 -45
  225. package/src/contentTypeChecks.ts +0 -39
  226. package/src/context.ts +0 -99
  227. package/src/decycle.ts +0 -68
  228. package/src/dereference.ts +0 -29
  229. package/src/generateSchemaExample.test.ts +0 -1040
  230. package/src/generateSchemaExample.ts +0 -530
  231. package/src/getDisclosureLabel.ts +0 -25
  232. package/src/getOrCreateStoreByKey.ts +0 -33
  233. package/src/index.ts +0 -10
  234. package/src/json2xml.test.ts +0 -46
  235. package/src/json2xml.ts +0 -8
  236. package/src/resolveOpenAPIOperation.test.ts +0 -177
  237. package/src/resolveOpenAPIOperation.ts +0 -151
  238. package/src/resolveOpenAPIWebhook.ts +0 -99
  239. package/src/schemas/OpenAPISchemaItem.tsx +0 -34
  240. package/src/schemas/OpenAPISchemas.tsx +0 -98
  241. package/src/schemas/index.ts +0 -2
  242. package/src/schemas/resolveOpenAPISchemas.test.ts +0 -174
  243. package/src/schemas/resolveOpenAPISchemas.ts +0 -28
  244. package/src/stringifyOpenAPI.ts +0 -25
  245. package/src/translate.tsx +0 -80
  246. package/src/translations/de.ts +0 -43
  247. package/src/translations/en.ts +0 -43
  248. package/src/translations/es.ts +0 -43
  249. package/src/translations/fr.ts +0 -43
  250. package/src/translations/index.ts +0 -33
  251. package/src/translations/ja.ts +0 -43
  252. package/src/translations/nl.ts +0 -43
  253. package/src/translations/no.ts +0 -43
  254. package/src/translations/pt-br.ts +0 -43
  255. package/src/translations/types.ts +0 -7
  256. package/src/translations/zh.ts +0 -43
  257. package/src/types.ts +0 -46
  258. package/src/util/example.tsx +0 -129
  259. package/src/util/server.test.ts +0 -58
  260. package/src/util/server.ts +0 -47
  261. package/src/util/tryit-prefill.test.ts +0 -311
  262. package/src/util/tryit-prefill.ts +0 -160
  263. package/src/utils.ts +0 -255
@@ -1,27 +1,31 @@
1
- import { de } from './de';
2
- import { en } from './en';
3
- import { es } from './es';
4
- import { fr } from './fr';
5
- import { ja } from './ja';
6
- import { nl } from './nl';
7
- import { no } from './no';
8
- import { pt_br } from './pt-br';
9
- import { zh } from './zh';
10
- export * from './types';
11
- export var translations = {
12
- en: en,
13
- de: de,
14
- es: es,
15
- fr: fr,
16
- ja: ja,
17
- nl: nl,
18
- no: no,
19
- 'pt-br': pt_br,
20
- zh: zh,
1
+ import { de } from "./de.js";
2
+ import { en } from "./en.js";
3
+ import { es } from "./es.js";
4
+ import { fr } from "./fr.js";
5
+ import { ja } from "./ja.js";
6
+ import { nl } from "./nl.js";
7
+ import { no } from "./no.js";
8
+ import { pt_br } from "./pt-br.js";
9
+ import { zh } from "./zh.js";
10
+
11
+ //#region src/translations/index.ts
12
+ const translations = {
13
+ en,
14
+ de,
15
+ es,
16
+ fr,
17
+ ja,
18
+ nl,
19
+ no,
20
+ "pt-br": pt_br,
21
+ zh
21
22
  };
22
23
  /**
23
- * Check if the locale is valid.
24
- */
25
- export function checkIsValidLocale(locale) {
26
- return Object.prototype.hasOwnProperty.call(translations, locale);
24
+ * Check if the locale is valid.
25
+ */
26
+ function checkIsValidLocale(locale) {
27
+ return Object.prototype.hasOwnProperty.call(translations, locale);
27
28
  }
29
+
30
+ //#endregion
31
+ export { checkIsValidLocale, translations };
@@ -1,43 +1,48 @@
1
- export var ja = {
2
- required: '必須',
3
- deprecated: '非推奨',
4
- deprecated_and_sunset_on: 'この操作は非推奨であり、${1}に廃止されます。',
5
- stability_experimental: '実験的',
6
- stability_alpha: 'アルファ',
7
- stability_beta: 'ベータ',
8
- copy_to_clipboard: 'クリップボードにコピー',
9
- copied: 'コピー済み',
10
- no_content: 'コンテンツなし',
11
- unresolved_reference: '未解決の参照',
12
- circular_reference: '循環参照',
13
- read_only: '読み取り専用',
14
- write_only: '書き込み専用',
15
- optional: 'オプション',
16
- min: '最小',
17
- max: '最大',
18
- nullable: 'ヌル許容',
19
- body: '本文',
20
- payload: 'ペイロード',
21
- headers: 'ヘッダー',
22
- header: 'ヘッダー',
23
- authorizations: '認可',
24
- responses: 'レスポンス',
25
- response: 'レスポンス',
26
- path_parameters: 'パスパラメータ',
27
- query_parameters: 'クエリパラメータ',
28
- header_parameters: 'ヘッダーパラメータ',
29
- attributes: '属性',
30
- test_it: 'テストする',
31
- information: '情報',
32
- success: '成功',
33
- redirect: 'リダイレクト',
34
- error: 'エラー',
35
- show: '${1}を表示',
36
- hide: '${1}を非表示',
37
- available_items: '利用可能なアイテム',
38
- available_scopes: '利用可能なスコープ',
39
- properties: 'プロパティ',
40
- or: 'または',
41
- and: 'かつ',
42
- possible_values: '可能な値',
1
+ //#region src/translations/ja.ts
2
+ const ja = {
3
+ required: "必須",
4
+ deprecated: "非推奨",
5
+ deprecated_and_sunset_on: "この操作は非推奨であり、${1}に廃止されます。",
6
+ stability_experimental: "実験的",
7
+ stability_alpha: "アルファ",
8
+ stability_beta: "ベータ",
9
+ discriminator: "識別子",
10
+ copy_to_clipboard: "クリップボードにコピー",
11
+ copied: "コピー済み",
12
+ no_content: "コンテンツなし",
13
+ unresolved_reference: "未解決の参照",
14
+ circular_reference: "循環参照",
15
+ read_only: "読み取り専用",
16
+ write_only: "書き込み専用",
17
+ optional: "オプション",
18
+ min: "最小",
19
+ max: "最大",
20
+ nullable: "ヌル許容",
21
+ body: "本文",
22
+ payload: "ペイロード",
23
+ headers: "ヘッダー",
24
+ header: "ヘッダー",
25
+ authorizations: "認可",
26
+ responses: "レスポンス",
27
+ response: "レスポンス",
28
+ path_parameters: "パスパラメータ",
29
+ query_parameters: "クエリパラメータ",
30
+ header_parameters: "ヘッダーパラメータ",
31
+ attributes: "属性",
32
+ test_it: "テストする",
33
+ information: "情報",
34
+ success: "成功",
35
+ redirect: "リダイレクト",
36
+ error: "エラー",
37
+ show: "${1}を表示",
38
+ hide: "${1}を非表示",
39
+ available_items: "利用可能なアイテム",
40
+ required_scopes: "必須スコープ",
41
+ properties: "プロパティ",
42
+ or: "または",
43
+ and: "かつ",
44
+ possible_values: "可能な値"
43
45
  };
46
+
47
+ //#endregion
48
+ export { ja };
@@ -1,43 +1,48 @@
1
- export var nl = {
2
- required: 'Vereist',
3
- deprecated: 'Verouderd',
4
- deprecated_and_sunset_on: 'Deze bewerking is verouderd en wordt op ${1} beëindigd.',
5
- stability_experimental: 'Experimenteel',
6
- stability_alpha: 'Alfa',
7
- stability_beta: 'Bèta',
8
- copy_to_clipboard: 'Kopiëren naar klembord',
9
- copied: 'Gekopieerd',
10
- no_content: 'Geen inhoud',
11
- unresolved_reference: 'Onopgeloste verwijzing',
12
- circular_reference: 'Circulaire verwijzing',
13
- read_only: 'Alleen lezen',
14
- write_only: 'Alleen schrijven',
15
- optional: 'Optioneel',
16
- min: 'Min',
17
- max: 'Max',
18
- nullable: 'Null toegestaan',
19
- body: 'Body',
20
- payload: 'Payload',
21
- headers: 'Headers',
22
- header: 'Header',
23
- authorizations: 'Autorisaties',
24
- responses: 'Reacties',
25
- response: 'Reactie',
26
- path_parameters: 'Padparameters',
27
- query_parameters: 'Queryparameters',
28
- header_parameters: 'Headerparameters',
29
- attributes: 'Attributen',
30
- test_it: 'Test het',
31
- information: 'Informatie',
32
- success: 'Succes',
33
- redirect: 'Omleiding',
34
- error: 'Fout',
35
- show: 'Toon ${1}',
36
- hide: 'Verberg ${1}',
37
- available_items: 'Beschikbare items',
38
- available_scopes: 'Beschikbare scopes',
39
- properties: 'Eigenschappen',
40
- or: 'of',
41
- and: 'en',
42
- possible_values: 'Mogelijke waarden',
1
+ //#region src/translations/nl.ts
2
+ const nl = {
3
+ required: "Vereist",
4
+ deprecated: "Verouderd",
5
+ deprecated_and_sunset_on: "Deze bewerking is verouderd en wordt op ${1} beëindigd.",
6
+ stability_experimental: "Experimenteel",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Bèta",
9
+ discriminator: "Discriminator",
10
+ copy_to_clipboard: "Kopiëren naar klembord",
11
+ copied: "Gekopieerd",
12
+ no_content: "Geen inhoud",
13
+ unresolved_reference: "Onopgeloste verwijzing",
14
+ circular_reference: "Circulaire verwijzing",
15
+ read_only: "Alleen lezen",
16
+ write_only: "Alleen schrijven",
17
+ optional: "Optioneel",
18
+ min: "Min",
19
+ max: "Max",
20
+ nullable: "Null toegestaan",
21
+ body: "Body",
22
+ payload: "Payload",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorisaties",
26
+ responses: "Reacties",
27
+ response: "Reactie",
28
+ path_parameters: "Padparameters",
29
+ query_parameters: "Queryparameters",
30
+ header_parameters: "Headerparameters",
31
+ attributes: "Attributen",
32
+ test_it: "Test het",
33
+ information: "Informatie",
34
+ success: "Succes",
35
+ redirect: "Omleiding",
36
+ error: "Fout",
37
+ show: "Toon ${1}",
38
+ hide: "Verberg ${1}",
39
+ available_items: "Beschikbare items",
40
+ required_scopes: "Vereiste scopes",
41
+ properties: "Eigenschappen",
42
+ or: "of",
43
+ and: "en",
44
+ possible_values: "Mogelijke waarden"
43
45
  };
46
+
47
+ //#endregion
48
+ export { nl };
@@ -1,43 +1,48 @@
1
- export var no = {
2
- required: 'Påkrevd',
3
- deprecated: 'Foreldet',
4
- deprecated_and_sunset_on: 'Denne operasjonen er foreldet og vil bli avviklet den ${1}.',
5
- stability_experimental: 'Eksperimentell',
6
- stability_alpha: 'Alfa',
7
- stability_beta: 'Beta',
8
- copy_to_clipboard: 'Kopier til utklippstavle',
9
- copied: 'Kopiert',
10
- no_content: 'Ingen innhold',
11
- unresolved_reference: 'Uavklart referanse',
12
- circular_reference: 'Sirkulær referanse',
13
- read_only: 'Skrivebeskyttet',
14
- write_only: 'Kun skriving',
15
- optional: 'Valgfri',
16
- min: 'Min',
17
- max: 'Maks',
18
- nullable: 'Kan være null',
19
- body: 'Brødtekst',
20
- payload: 'Nyttelast',
21
- headers: 'Headers',
22
- header: 'Header',
23
- authorizations: 'Autorisasjoner',
24
- responses: 'Responser',
25
- response: 'Respons',
26
- path_parameters: 'Sti-parametere',
27
- query_parameters: 'Forespørselsparametere',
28
- header_parameters: 'Header-parametere',
29
- attributes: 'Attributter',
30
- test_it: 'Test det',
31
- information: 'Informasjon',
32
- success: 'Suksess',
33
- redirect: 'Viderekobling',
34
- error: 'Feil',
35
- show: 'Vis ${1}',
36
- hide: 'Skjul ${1}',
37
- available_items: 'Tilgjengelige elementer',
38
- available_scopes: 'Tilgjengelige scopes',
39
- properties: 'Egenskaper',
40
- or: 'eller',
41
- and: 'og',
42
- possible_values: 'Mulige verdier',
1
+ //#region src/translations/no.ts
2
+ const no = {
3
+ required: "Påkrevd",
4
+ deprecated: "Foreldet",
5
+ deprecated_and_sunset_on: "Denne operasjonen er foreldet og vil bli avviklet den ${1}.",
6
+ stability_experimental: "Eksperimentell",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Beta",
9
+ discriminator: "Diskriminator",
10
+ copy_to_clipboard: "Kopier til utklippstavle",
11
+ copied: "Kopiert",
12
+ no_content: "Ingen innhold",
13
+ unresolved_reference: "Uavklart referanse",
14
+ circular_reference: "Sirkulær referanse",
15
+ read_only: "Skrivebeskyttet",
16
+ write_only: "Kun skriving",
17
+ optional: "Valgfri",
18
+ min: "Min",
19
+ max: "Maks",
20
+ nullable: "Kan være null",
21
+ body: "Brødtekst",
22
+ payload: "Nyttelast",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorisasjoner",
26
+ responses: "Responser",
27
+ response: "Respons",
28
+ path_parameters: "Sti-parametere",
29
+ query_parameters: "Forespørselsparametere",
30
+ header_parameters: "Header-parametere",
31
+ attributes: "Attributter",
32
+ test_it: "Test det",
33
+ information: "Informasjon",
34
+ success: "Suksess",
35
+ redirect: "Viderekobling",
36
+ error: "Feil",
37
+ show: "Vis ${1}",
38
+ hide: "Skjul ${1}",
39
+ available_items: "Tilgjengelige elementer",
40
+ required_scopes: "Påkrevde scopes",
41
+ properties: "Egenskaper",
42
+ or: "eller",
43
+ and: "og",
44
+ possible_values: "Mulige verdier"
43
45
  };
46
+
47
+ //#endregion
48
+ export { no };
@@ -1,43 +1,48 @@
1
- export var pt_br = {
2
- required: 'Obrigatório',
3
- deprecated: 'Obsoleto',
4
- deprecated_and_sunset_on: 'Esta operação está obsoleta e será descontinuada em ${1}.',
5
- stability_experimental: 'Experimental',
6
- stability_alpha: 'Alfa',
7
- stability_beta: 'Beta',
8
- copy_to_clipboard: 'Copiar para a área de transferência',
9
- copied: 'Copiado',
10
- no_content: 'Sem conteúdo',
11
- unresolved_reference: 'Referência não resolvida',
12
- circular_reference: 'Referência circular',
13
- read_only: 'Somente leitura',
14
- write_only: 'Somente escrita',
15
- optional: 'Opcional',
16
- min: 'Mín',
17
- max: 'Máx',
18
- nullable: 'Nulo',
19
- body: 'Corpo',
20
- payload: 'Carga útil',
21
- headers: 'Headers',
22
- header: 'Header',
23
- authorizations: 'Autorizações',
24
- responses: 'Respostas',
25
- response: 'Resposta',
26
- path_parameters: 'Parâmetros de rota',
27
- query_parameters: 'Parâmetros de consulta',
28
- header_parameters: 'Parâmetros de cabeçalho',
29
- attributes: 'Atributos',
30
- test_it: 'Testar',
31
- information: 'Informação',
32
- success: 'Sucesso',
33
- redirect: 'Redirecionamento',
34
- error: 'Erro',
35
- show: 'Mostrar ${1}',
36
- hide: 'Ocultar ${1}',
37
- available_items: 'Itens disponíveis',
38
- available_scopes: 'Scopes disponíveis',
39
- properties: 'Propriedades',
40
- or: 'ou',
41
- and: 'e',
42
- possible_values: 'Valores possíveis',
1
+ //#region src/translations/pt-br.ts
2
+ const pt_br = {
3
+ required: "Obrigatório",
4
+ deprecated: "Obsoleto",
5
+ deprecated_and_sunset_on: "Esta operação está obsoleta e será descontinuada em ${1}.",
6
+ stability_experimental: "Experimental",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Beta",
9
+ discriminator: "Discriminador",
10
+ copy_to_clipboard: "Copiar para a área de transferência",
11
+ copied: "Copiado",
12
+ no_content: "Sem conteúdo",
13
+ unresolved_reference: "Referência não resolvida",
14
+ circular_reference: "Referência circular",
15
+ read_only: "Somente leitura",
16
+ write_only: "Somente escrita",
17
+ optional: "Opcional",
18
+ min: "Mín",
19
+ max: "Máx",
20
+ nullable: "Nulo",
21
+ body: "Corpo",
22
+ payload: "Carga útil",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorizações",
26
+ responses: "Respostas",
27
+ response: "Resposta",
28
+ path_parameters: "Parâmetros de rota",
29
+ query_parameters: "Parâmetros de consulta",
30
+ header_parameters: "Parâmetros de cabeçalho",
31
+ attributes: "Atributos",
32
+ test_it: "Testar",
33
+ information: "Informação",
34
+ success: "Sucesso",
35
+ redirect: "Redirecionamento",
36
+ error: "Erro",
37
+ show: "Mostrar ${1}",
38
+ hide: "Ocultar ${1}",
39
+ available_items: "Itens disponíveis",
40
+ required_scopes: "Scopes obrigatórios",
41
+ properties: "Propriedades",
42
+ or: "ou",
43
+ and: "e",
44
+ possible_values: "Valores possíveis"
43
45
  };
46
+
47
+ //#endregion
48
+ export { pt_br };
@@ -1,5 +1,7 @@
1
- import type { en } from './en';
2
- export type TranslationKey = keyof typeof en;
3
- export type Translation = {
4
- [key in TranslationKey]: string;
5
- };
1
+ import { en } from "./en.js";
2
+
3
+ //#region src/translations/types.d.ts
4
+ type TranslationKey = keyof typeof en;
5
+ type Translation = { [key in TranslationKey]: string };
6
+ //#endregion
7
+ export { Translation, TranslationKey };
@@ -1,43 +1,48 @@
1
- export var zh = {
2
- required: '必填',
3
- deprecated: '已弃用',
4
- deprecated_and_sunset_on: '此操作已弃用,将于 ${1} 停止使用。',
5
- stability_experimental: '实验性',
6
- stability_alpha: 'Alpha',
7
- stability_beta: 'Beta',
8
- copy_to_clipboard: '复制到剪贴板',
9
- copied: '已复制',
10
- no_content: '无内容',
11
- unresolved_reference: '未解析的引用',
12
- circular_reference: '循环引用',
13
- read_only: '只读',
14
- write_only: '只写',
15
- optional: '可选',
16
- min: '最小值',
17
- max: '最大值',
18
- nullable: '可为 null',
19
- body: '请求体',
20
- payload: '有效载荷',
21
- headers: '头字段',
22
- header: '头部',
23
- authorizations: '授权',
24
- responses: '响应',
25
- response: '响应',
26
- path_parameters: '路径参数',
27
- query_parameters: '查询参数',
28
- header_parameters: '头参数',
29
- attributes: '属性',
30
- test_it: '测试一下',
31
- information: '信息',
32
- success: '成功',
33
- redirect: '重定向',
34
- error: '错误',
35
- show: '显示${1}',
36
- hide: '隐藏${1}',
37
- available_items: '可用项',
38
- available_scopes: '可用范围',
39
- properties: '属性',
40
- or: '或',
41
- and: '和',
42
- possible_values: '可能的值',
1
+ //#region src/translations/zh.ts
2
+ const zh = {
3
+ required: "必填",
4
+ deprecated: "已弃用",
5
+ deprecated_and_sunset_on: "此操作已弃用,将于 ${1} 停止使用。",
6
+ stability_experimental: "实验性",
7
+ stability_alpha: "Alpha",
8
+ stability_beta: "Beta",
9
+ discriminator: "判别器",
10
+ copy_to_clipboard: "复制到剪贴板",
11
+ copied: "已复制",
12
+ no_content: "无内容",
13
+ unresolved_reference: "未解析的引用",
14
+ circular_reference: "循环引用",
15
+ read_only: "只读",
16
+ write_only: "只写",
17
+ optional: "可选",
18
+ min: "最小值",
19
+ max: "最大值",
20
+ nullable: "可为 null",
21
+ body: "请求体",
22
+ payload: "有效载荷",
23
+ headers: "头字段",
24
+ header: "头部",
25
+ authorizations: "授权",
26
+ responses: "响应",
27
+ response: "响应",
28
+ path_parameters: "路径参数",
29
+ query_parameters: "查询参数",
30
+ header_parameters: "头参数",
31
+ attributes: "属性",
32
+ test_it: "测试一下",
33
+ information: "信息",
34
+ success: "成功",
35
+ redirect: "重定向",
36
+ error: "错误",
37
+ show: "显示${1}",
38
+ hide: "隐藏${1}",
39
+ available_items: "可用项",
40
+ required_scopes: "必需范围",
41
+ properties: "属性",
42
+ or: "或",
43
+ and: "和",
44
+ possible_values: "可能的值"
43
45
  };
46
+
47
+ //#endregion
48
+ export { zh };
package/dist/types.d.ts CHANGED
@@ -1,31 +1,37 @@
1
- import type { OpenAPICustomOperationProperties, OpenAPICustomPrefillProperties, OpenAPICustomSpecProperties, OpenAPIV3 } from '@gitbook/openapi-parser';
2
- export type OpenAPIServerVariableWithCustomProperties = OpenAPIV3.ServerVariableObject & OpenAPICustomPrefillProperties;
1
+ import { OpenAPICustomOperationProperties, OpenAPICustomPrefillProperties, OpenAPICustomSpecProperties, OpenAPIV3 } from "@gitbook/openapi-parser";
2
+
3
+ //#region src/types.d.ts
4
+ type OpenAPIServerVariableWithCustomProperties = OpenAPIV3.ServerVariableObject & OpenAPICustomPrefillProperties;
3
5
  /**
4
6
  * OpenAPI ServerObject type extended to provide x-gitbook prefill custom properties at the variable level.
5
7
  */
6
- export type OpenAPIServerWithCustomProperties = Omit<OpenAPIV3.ServerObject, 'variables'> & {
7
- variables?: {
8
- [variable: string]: OpenAPIServerVariableWithCustomProperties;
9
- };
8
+ type OpenAPIServerWithCustomProperties = Omit<OpenAPIV3.ServerObject, 'variables'> & {
9
+ variables?: {
10
+ [variable: string]: OpenAPIServerVariableWithCustomProperties;
11
+ };
10
12
  } & OpenAPICustomPrefillProperties;
11
- export type OpenAPISecurityWithRequired = OpenAPIV3.SecuritySchemeObject & OpenAPICustomPrefillProperties & {
12
- required?: boolean;
13
+ type OpenAPISecurityScope = [string, string | undefined];
14
+ type OpenAPICustomSecurityScheme = OpenAPIV3.SecuritySchemeObject & OpenAPICustomPrefillProperties & {
15
+ required?: boolean;
16
+ scopes?: OpenAPISecurityScope[] | null;
13
17
  };
14
- export interface OpenAPIOperationData extends OpenAPICustomSpecProperties {
15
- path: string;
16
- method: string;
17
- /** Servers to be used for this operation */
18
- servers: OpenAPIServerWithCustomProperties[];
19
- /** Spec of the operation */
20
- operation: OpenAPIV3.OperationObject<OpenAPICustomOperationProperties>;
21
- /** Securities that should be used for this operation */
22
- securities: [string, OpenAPISecurityWithRequired][];
18
+ interface OpenAPIOperationData extends OpenAPICustomSpecProperties {
19
+ path: string;
20
+ method: string;
21
+ /** Servers to be used for this operation */
22
+ servers: OpenAPIServerWithCustomProperties[];
23
+ /** Spec of the operation */
24
+ operation: OpenAPIV3.OperationObject<OpenAPICustomOperationProperties>;
25
+ /** Securities that should be used for this operation */
26
+ securities: [string, OpenAPICustomSecurityScheme][];
23
27
  }
24
- export interface OpenAPIWebhookData extends OpenAPICustomSpecProperties {
25
- name: string;
26
- method: string;
27
- /** Servers to be used for this operation */
28
- servers: OpenAPIV3.ServerObject[];
29
- /** Spec of the webhook */
30
- operation: OpenAPIV3.OperationObject<OpenAPICustomOperationProperties>;
28
+ interface OpenAPIWebhookData extends OpenAPICustomSpecProperties {
29
+ name: string;
30
+ method: string;
31
+ /** Servers to be used for this operation */
32
+ servers: OpenAPIV3.ServerObject[];
33
+ /** Spec of the webhook */
34
+ operation: OpenAPIV3.OperationObject<OpenAPICustomOperationProperties>;
31
35
  }
36
+ //#endregion
37
+ export { OpenAPIOperationData, OpenAPIWebhookData };