@azure-rest/ai-document-translator 1.0.0-alpha.20241121.1 → 1.0.0-alpha.20241122.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 (110) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/constants.d.ts +5 -0
  3. package/dist/browser/constants.d.ts.map +1 -0
  4. package/dist/browser/documentTranslator.d.ts +130 -0
  5. package/dist/browser/documentTranslator.d.ts.map +1 -0
  6. package/dist/browser/documentTranslator.js.map +1 -0
  7. package/dist/browser/index.d.ts +11 -0
  8. package/dist/browser/index.d.ts.map +1 -0
  9. package/dist/browser/index.js +14 -0
  10. package/dist/browser/index.js.map +1 -0
  11. package/dist/browser/models.d.ts +189 -0
  12. package/dist/browser/models.d.ts.map +1 -0
  13. package/dist/browser/package.json +3 -0
  14. package/dist/browser/parameters.d.ts +93 -0
  15. package/dist/browser/parameters.d.ts.map +1 -0
  16. package/dist/browser/parameters.js.map +1 -0
  17. package/dist/browser/responses.d.ts +725 -0
  18. package/dist/browser/responses.d.ts.map +1 -0
  19. package/dist/browser/responses.js.map +1 -0
  20. package/dist/commonjs/constants.d.ts +5 -0
  21. package/dist/commonjs/constants.d.ts.map +1 -0
  22. package/dist/commonjs/constants.js +10 -0
  23. package/dist/commonjs/constants.js.map +1 -0
  24. package/dist/commonjs/documentTranslator.d.ts +130 -0
  25. package/dist/commonjs/documentTranslator.d.ts.map +1 -0
  26. package/dist/{index.js → commonjs/documentTranslator.js} +6 -17
  27. package/dist/commonjs/documentTranslator.js.map +1 -0
  28. package/dist/commonjs/index.d.ts +11 -0
  29. package/dist/commonjs/index.d.ts.map +1 -0
  30. package/dist/commonjs/index.js +17 -0
  31. package/dist/commonjs/index.js.map +1 -0
  32. package/dist/commonjs/models.d.ts +189 -0
  33. package/dist/commonjs/models.d.ts.map +1 -0
  34. package/dist/commonjs/models.js +5 -0
  35. package/dist/commonjs/models.js.map +1 -0
  36. package/dist/commonjs/package.json +3 -0
  37. package/dist/commonjs/parameters.d.ts +93 -0
  38. package/dist/commonjs/parameters.d.ts.map +1 -0
  39. package/dist/commonjs/parameters.js +5 -0
  40. package/dist/commonjs/parameters.js.map +1 -0
  41. package/dist/commonjs/responses.d.ts +725 -0
  42. package/dist/commonjs/responses.d.ts.map +1 -0
  43. package/dist/commonjs/responses.js +5 -0
  44. package/dist/commonjs/responses.js.map +1 -0
  45. package/dist/commonjs/tsdoc-metadata.json +11 -0
  46. package/dist/esm/constants.d.ts +5 -0
  47. package/dist/esm/constants.d.ts.map +1 -0
  48. package/dist/esm/constants.js +7 -0
  49. package/dist/esm/constants.js.map +1 -0
  50. package/dist/esm/documentTranslator.d.ts +130 -0
  51. package/dist/esm/documentTranslator.d.ts.map +1 -0
  52. package/dist/esm/documentTranslator.js +13 -0
  53. package/dist/esm/documentTranslator.js.map +1 -0
  54. package/dist/esm/index.d.ts +11 -0
  55. package/dist/esm/index.d.ts.map +1 -0
  56. package/dist/esm/index.js +14 -0
  57. package/dist/esm/index.js.map +1 -0
  58. package/dist/esm/models.d.ts +189 -0
  59. package/dist/esm/models.d.ts.map +1 -0
  60. package/dist/esm/models.js +4 -0
  61. package/dist/esm/models.js.map +1 -0
  62. package/dist/esm/package.json +3 -0
  63. package/dist/esm/parameters.d.ts +93 -0
  64. package/dist/esm/parameters.d.ts.map +1 -0
  65. package/dist/esm/parameters.js +4 -0
  66. package/dist/esm/parameters.js.map +1 -0
  67. package/dist/esm/responses.d.ts +725 -0
  68. package/dist/esm/responses.d.ts.map +1 -0
  69. package/dist/esm/responses.js +4 -0
  70. package/dist/esm/responses.js.map +1 -0
  71. package/dist/react-native/constants.d.ts +5 -0
  72. package/dist/react-native/constants.d.ts.map +1 -0
  73. package/dist/react-native/constants.js +7 -0
  74. package/dist/react-native/constants.js.map +1 -0
  75. package/dist/react-native/documentTranslator.d.ts +130 -0
  76. package/dist/react-native/documentTranslator.d.ts.map +1 -0
  77. package/dist/react-native/documentTranslator.js +13 -0
  78. package/dist/react-native/documentTranslator.js.map +1 -0
  79. package/dist/react-native/index.d.ts +11 -0
  80. package/dist/react-native/index.d.ts.map +1 -0
  81. package/dist/react-native/index.js +14 -0
  82. package/dist/react-native/index.js.map +1 -0
  83. package/dist/react-native/models.d.ts +189 -0
  84. package/dist/react-native/models.d.ts.map +1 -0
  85. package/dist/react-native/models.js +4 -0
  86. package/dist/react-native/models.js.map +1 -0
  87. package/dist/react-native/package.json +3 -0
  88. package/dist/react-native/parameters.d.ts +93 -0
  89. package/dist/react-native/parameters.d.ts.map +1 -0
  90. package/dist/react-native/parameters.js +4 -0
  91. package/dist/react-native/parameters.js.map +1 -0
  92. package/dist/react-native/responses.d.ts +725 -0
  93. package/dist/react-native/responses.d.ts.map +1 -0
  94. package/dist/react-native/responses.js +4 -0
  95. package/dist/react-native/responses.js.map +1 -0
  96. package/package.json +66 -44
  97. package/dist/index.js.map +0 -1
  98. package/dist-esm/src/documentTranslator.js.map +0 -1
  99. package/dist-esm/src/index.js +0 -13
  100. package/dist-esm/src/index.js.map +0 -1
  101. package/dist-esm/src/parameters.js.map +0 -1
  102. package/dist-esm/src/responses.js.map +0 -1
  103. /package/{types → dist}/ai-document-translator.d.ts +0 -0
  104. /package/{dist-esm/src → dist/browser}/constants.js +0 -0
  105. /package/{dist-esm/src → dist/browser}/constants.js.map +0 -0
  106. /package/{dist-esm/src → dist/browser}/documentTranslator.js +0 -0
  107. /package/{dist-esm/src → dist/browser}/models.js +0 -0
  108. /package/{dist-esm/src → dist/browser}/models.js.map +0 -0
  109. /package/{dist-esm/src → dist/browser}/parameters.js +0 -0
  110. /package/{dist-esm/src → dist/browser}/responses.js +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,93 @@
1
+ import type { RequestParameters } from "@azure-rest/core-client";
2
+ import type { StartTranslationDetails } from "./models.js";
3
+ export interface StartTranslationBodyParam {
4
+ body: StartTranslationDetails;
5
+ }
6
+ export type StartTranslationParameters = RequestParameters & StartTranslationBodyParam;
7
+ export interface GetTranslationsStatusQueryParamProperties {
8
+ /**
9
+ * $top indicates the total number of records the user wants to be returned across all pages.
10
+ *
11
+ * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.
12
+ * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.
13
+ *
14
+ * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.
15
+ */
16
+ $top?: number;
17
+ /**
18
+ * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.
19
+ *
20
+ * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.
21
+ * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.
22
+ *
23
+ * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.
24
+ */
25
+ $skip?: number;
26
+ /**
27
+ * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \@nextLink will contain the link to the next page.
28
+ *
29
+ * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.
30
+ */
31
+ $maxpagesize?: number;
32
+ /** Ids to use in filtering */
33
+ ids?: string[];
34
+ /** Statuses to use in filtering */
35
+ statuses?: string[];
36
+ /** the start datetime to get items after */
37
+ createdDateTimeUtcStart?: Date;
38
+ /** the end datetime to get items before */
39
+ createdDateTimeUtcEnd?: Date;
40
+ /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */
41
+ $orderBy?: string[];
42
+ }
43
+ export interface GetTranslationsStatusQueryParam {
44
+ queryParameters?: GetTranslationsStatusQueryParamProperties;
45
+ }
46
+ export type GetTranslationsStatusParameters = RequestParameters & GetTranslationsStatusQueryParam;
47
+ export type GetDocumentStatusParameters = RequestParameters;
48
+ export type GetTranslationStatusParameters = RequestParameters;
49
+ export type CancelTranslationParameters = RequestParameters;
50
+ export interface GetDocumentsStatusQueryParamProperties {
51
+ /**
52
+ * $top indicates the total number of records the user wants to be returned across all pages.
53
+ *
54
+ * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.
55
+ * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.
56
+ *
57
+ * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.
58
+ */
59
+ $top?: number;
60
+ /**
61
+ * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.
62
+ *
63
+ * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.
64
+ * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.
65
+ *
66
+ * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.
67
+ */
68
+ $skip?: number;
69
+ /**
70
+ * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \@nextLink will contain the link to the next page.
71
+ *
72
+ * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.
73
+ */
74
+ $maxpagesize?: number;
75
+ /** Ids to use in filtering */
76
+ ids?: string[];
77
+ /** Statuses to use in filtering */
78
+ statuses?: string[];
79
+ /** the start datetime to get items after */
80
+ createdDateTimeUtcStart?: Date;
81
+ /** the end datetime to get items before */
82
+ createdDateTimeUtcEnd?: Date;
83
+ /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */
84
+ $orderBy?: string[];
85
+ }
86
+ export interface GetDocumentsStatusQueryParam {
87
+ queryParameters?: GetDocumentsStatusQueryParamProperties;
88
+ }
89
+ export type GetDocumentsStatusParameters = RequestParameters & GetDocumentsStatusQueryParam;
90
+ export type GetSupportedDocumentFormatsParameters = RequestParameters;
91
+ export type GetSupportedGlossaryFormatsParameters = RequestParameters;
92
+ export type GetSupportedStorageSourcesParameters = RequestParameters;
93
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,GAAG,yBAAyB,CAAC;AAEvF,MAAM,WAAW,yCAAyC;IACxD;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,4CAA4C;IAC5C,uBAAuB,CAAC,EAAE,IAAI,CAAC;IAC/B,2CAA2C;IAC3C,qBAAqB,CAAC,EAAE,IAAI,CAAC;IAC7B,qGAAqG;IACrG,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC9C,eAAe,CAAC,EAAE,yCAAyC,CAAC;CAC7D;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,GAAG,+BAA+B,CAAC;AAClG,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAC5D,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;AAC/D,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAE5D,MAAM,WAAW,sCAAsC;IACrD;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,4CAA4C;IAC5C,uBAAuB,CAAC,EAAE,IAAI,CAAC;IAC/B,2CAA2C;IAC3C,qBAAqB,CAAC,EAAE,IAAI,CAAC;IAC7B,qGAAqG;IACrG,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,sCAAsC,CAAC;CAC1D;AAED,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,GAAG,4BAA4B,CAAC;AAC5F,MAAM,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;AACtE,MAAM,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;AACtE,MAAM,MAAM,oCAAoC,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type { StartTranslationDetails } from \"./models.js\";\n\nexport interface StartTranslationBodyParam {\n body: StartTranslationDetails;\n}\n\nexport type StartTranslationParameters = RequestParameters & StartTranslationBodyParam;\n\nexport interface GetTranslationsStatusQueryParamProperties {\n /**\n * $top indicates the total number of records the user wants to be returned across all pages.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $top?: number;\n /**\n * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $skip?: number;\n /**\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.\n */\n $maxpagesize?: number;\n /** Ids to use in filtering */\n ids?: string[];\n /** Statuses to use in filtering */\n statuses?: string[];\n /** the start datetime to get items after */\n createdDateTimeUtcStart?: Date;\n /** the end datetime to get items before */\n createdDateTimeUtcEnd?: Date;\n /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */\n $orderBy?: string[];\n}\n\nexport interface GetTranslationsStatusQueryParam {\n queryParameters?: GetTranslationsStatusQueryParamProperties;\n}\n\nexport type GetTranslationsStatusParameters = RequestParameters & GetTranslationsStatusQueryParam;\nexport type GetDocumentStatusParameters = RequestParameters;\nexport type GetTranslationStatusParameters = RequestParameters;\nexport type CancelTranslationParameters = RequestParameters;\n\nexport interface GetDocumentsStatusQueryParamProperties {\n /**\n * $top indicates the total number of records the user wants to be returned across all pages.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $top?: number;\n /**\n * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $skip?: number;\n /**\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.\n */\n $maxpagesize?: number;\n /** Ids to use in filtering */\n ids?: string[];\n /** Statuses to use in filtering */\n statuses?: string[];\n /** the start datetime to get items after */\n createdDateTimeUtcStart?: Date;\n /** the end datetime to get items before */\n createdDateTimeUtcEnd?: Date;\n /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */\n $orderBy?: string[];\n}\n\nexport interface GetDocumentsStatusQueryParam {\n queryParameters?: GetDocumentsStatusQueryParamProperties;\n}\n\nexport type GetDocumentsStatusParameters = RequestParameters & GetDocumentsStatusQueryParam;\nexport type GetSupportedDocumentFormatsParameters = RequestParameters;\nexport type GetSupportedGlossaryFormatsParameters = RequestParameters;\nexport type GetSupportedStorageSourcesParameters = RequestParameters;\n"]}