@language-weaver/lw-sdk-js 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/lib/CloudLanguageWeaverClient.d.ts +61 -0
  2. package/lib/CloudLanguageWeaverClient.js +514 -0
  3. package/lib/CloudLanguageWeaverClient.js.map +1 -0
  4. package/lib/EdgeLanguageWeaverClient.d.ts +60 -0
  5. package/lib/EdgeLanguageWeaverClient.js +580 -0
  6. package/lib/EdgeLanguageWeaverClient.js.map +1 -0
  7. package/lib/LanguageWeaverClient.d.ts +15 -0
  8. package/lib/LanguageWeaverClient.js +3 -0
  9. package/lib/LanguageWeaverClient.js.map +1 -0
  10. package/lib/SdkFactory.d.ts +9 -0
  11. package/lib/SdkFactory.js +56 -0
  12. package/lib/SdkFactory.js.map +1 -0
  13. package/lib/auth/LanguageWeaverAuthentication.d.ts +12 -0
  14. package/lib/auth/LanguageWeaverAuthentication.js +25 -0
  15. package/lib/auth/LanguageWeaverAuthentication.js.map +1 -0
  16. package/lib/auth/domain/SelfInformation.d.ts +8 -0
  17. package/lib/auth/domain/SelfInformation.js +29 -0
  18. package/lib/auth/domain/SelfInformation.js.map +1 -0
  19. package/lib/auth/domain/Token.d.ts +15 -0
  20. package/lib/auth/domain/Token.js +53 -0
  21. package/lib/auth/domain/Token.js.map +1 -0
  22. package/lib/auth/domain/UserSelfInformation.d.ts +38 -0
  23. package/lib/auth/domain/UserSelfInformation.js +129 -0
  24. package/lib/auth/domain/UserSelfInformation.js.map +1 -0
  25. package/lib/common/api/ErrorResponse.d.ts +9 -0
  26. package/lib/common/api/ErrorResponse.js +31 -0
  27. package/lib/common/api/ErrorResponse.js.map +1 -0
  28. package/lib/common/configurations/ClientConfiguration.d.ts +14 -0
  29. package/lib/common/configurations/ClientConfiguration.js +46 -0
  30. package/lib/common/configurations/ClientConfiguration.js.map +1 -0
  31. package/lib/common/configurations/CredentialsConfiguration.d.ts +9 -0
  32. package/lib/common/configurations/CredentialsConfiguration.js +35 -0
  33. package/lib/common/configurations/CredentialsConfiguration.js.map +1 -0
  34. package/lib/common/configurations/RetryConfiguration.d.ts +8 -0
  35. package/lib/common/configurations/RetryConfiguration.js +31 -0
  36. package/lib/common/configurations/RetryConfiguration.js.map +1 -0
  37. package/lib/common/configurations/TokenConfiguration.d.ts +10 -0
  38. package/lib/common/configurations/TokenConfiguration.js +29 -0
  39. package/lib/common/configurations/TokenConfiguration.js.map +1 -0
  40. package/lib/common/constants/EdgeFinalSubStatuses.d.ts +5 -0
  41. package/lib/common/constants/EdgeFinalSubStatuses.js +9 -0
  42. package/lib/common/constants/EdgeFinalSubStatuses.js.map +1 -0
  43. package/lib/common/constants/EdgeStatuses.d.ts +3 -0
  44. package/lib/common/constants/EdgeStatuses.js +7 -0
  45. package/lib/common/constants/EdgeStatuses.js.map +1 -0
  46. package/lib/common/constants/FileExtensions.d.ts +2 -0
  47. package/lib/common/constants/FileExtensions.js +52 -0
  48. package/lib/common/constants/FileExtensions.js.map +1 -0
  49. package/lib/common/constants/FormatToMimeType.d.ts +1 -0
  50. package/lib/common/constants/FormatToMimeType.js +33 -0
  51. package/lib/common/constants/FormatToMimeType.js.map +1 -0
  52. package/lib/common/constants/TranslationConstants.d.ts +62 -0
  53. package/lib/common/constants/TranslationConstants.js +69 -0
  54. package/lib/common/constants/TranslationConstants.js.map +1 -0
  55. package/lib/common/constants/languages/Iso639Mapping.d.ts +1 -0
  56. package/lib/common/constants/languages/Iso639Mapping.js +95 -0
  57. package/lib/common/constants/languages/Iso639Mapping.js.map +1 -0
  58. package/lib/common/exceptions/EdgeTranslationException.d.ts +3 -0
  59. package/lib/common/exceptions/EdgeTranslationException.js +17 -0
  60. package/lib/common/exceptions/EdgeTranslationException.js.map +1 -0
  61. package/lib/common/exceptions/TranslationException.d.ts +4 -0
  62. package/lib/common/exceptions/TranslationException.js +17 -0
  63. package/lib/common/exceptions/TranslationException.js.map +1 -0
  64. package/lib/common/requests/RestClient.d.ts +34 -0
  65. package/lib/common/requests/RestClient.js +331 -0
  66. package/lib/common/requests/RestClient.js.map +1 -0
  67. package/lib/common/requests/TraceRequestInfo.d.ts +9 -0
  68. package/lib/common/requests/TraceRequestInfo.js +20 -0
  69. package/lib/common/requests/TraceRequestInfo.js.map +1 -0
  70. package/lib/common/utils/HttpUtils.d.ts +5 -0
  71. package/lib/common/utils/HttpUtils.js +26 -0
  72. package/lib/common/utils/HttpUtils.js.map +1 -0
  73. package/lib/common/utils/Utils.d.ts +34 -0
  74. package/lib/common/utils/Utils.js +319 -0
  75. package/lib/common/utils/Utils.js.map +1 -0
  76. package/lib/index.d.ts +51 -0
  77. package/lib/index.js +99 -0
  78. package/lib/index.js.map +1 -0
  79. package/lib/translation/common/Format.d.ts +39 -0
  80. package/lib/translation/common/Format.js +52 -0
  81. package/lib/translation/common/Format.js.map +1 -0
  82. package/lib/translation/common/Product.d.ts +4 -0
  83. package/lib/translation/common/Product.js +9 -0
  84. package/lib/translation/common/Product.js.map +1 -0
  85. package/lib/translation/common/Regions.d.ts +4 -0
  86. package/lib/translation/common/Regions.js +9 -0
  87. package/lib/translation/common/Regions.js.map +1 -0
  88. package/lib/translation/common/Statuses.d.ts +6 -0
  89. package/lib/translation/common/Statuses.js +10 -0
  90. package/lib/translation/common/Statuses.js.map +1 -0
  91. package/lib/translation/translate/request/TranslateBatchFileRequest.d.ts +21 -0
  92. package/lib/translation/translate/request/TranslateBatchFileRequest.js +84 -0
  93. package/lib/translation/translate/request/TranslateBatchFileRequest.js.map +1 -0
  94. package/lib/translation/translate/request/TranslateFileRequest.d.ts +12 -0
  95. package/lib/translation/translate/request/TranslateFileRequest.js +68 -0
  96. package/lib/translation/translate/request/TranslateFileRequest.js.map +1 -0
  97. package/lib/translation/translate/request/TranslateRequest.d.ts +19 -0
  98. package/lib/translation/translate/request/TranslateRequest.js +67 -0
  99. package/lib/translation/translate/request/TranslateRequest.js.map +1 -0
  100. package/lib/translation/translate/request/TranslateTextRequest.d.ts +7 -0
  101. package/lib/translation/translate/request/TranslateTextRequest.js +46 -0
  102. package/lib/translation/translate/request/TranslateTextRequest.js.map +1 -0
  103. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.d.ts +3 -0
  104. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js +30 -0
  105. package/lib/translation/translate/request/cloud/CloudTranslateBatchFileRequest.js.map +1 -0
  106. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.d.ts +3 -0
  107. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js +30 -0
  108. package/lib/translation/translate/request/cloud/CloudTranslateFileRequest.js.map +1 -0
  109. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.d.ts +3 -0
  110. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js +30 -0
  111. package/lib/translation/translate/request/cloud/CloudTranslateTextRequest.js.map +1 -0
  112. package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.d.ts +16 -0
  113. package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.js +70 -0
  114. package/lib/translation/translate/request/edge/EdgeTranslateBatchFileRequest.js.map +1 -0
  115. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.d.ts +16 -0
  116. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js +70 -0
  117. package/lib/translation/translate/request/edge/EdgeTranslateFileRequest.js.map +1 -0
  118. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.d.ts +16 -0
  119. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js +70 -0
  120. package/lib/translation/translate/request/edge/EdgeTranslateTextRequest.js.map +1 -0
  121. package/lib/translation/translate/response/AsyncTranslationResponse.d.ts +20 -0
  122. package/lib/translation/translate/response/AsyncTranslationResponse.js +69 -0
  123. package/lib/translation/translate/response/AsyncTranslationResponse.js.map +1 -0
  124. package/lib/translation/translate/response/DictionaryResponse.d.ts +11 -0
  125. package/lib/translation/translate/response/DictionaryResponse.js +39 -0
  126. package/lib/translation/translate/response/DictionaryResponse.js.map +1 -0
  127. package/lib/translation/translate/response/LanguagePair.d.ts +14 -0
  128. package/lib/translation/translate/response/LanguagePair.js +49 -0
  129. package/lib/translation/translate/response/LanguagePair.js.map +1 -0
  130. package/lib/translation/translate/response/StatusTranslationResponse.d.ts +19 -0
  131. package/lib/translation/translate/response/StatusTranslationResponse.js +59 -0
  132. package/lib/translation/translate/response/StatusTranslationResponse.js.map +1 -0
  133. package/lib/translation/translate/response/TranslationStatistics.d.ts +20 -0
  134. package/lib/translation/translate/response/TranslationStatistics.js +69 -0
  135. package/lib/translation/translate/response/TranslationStatistics.js.map +1 -0
  136. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.d.ts +32 -0
  137. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js +110 -0
  138. package/lib/translation/translate/response/cloud/CloudDictionaryResponse.js.map +1 -0
  139. package/lib/translation/translate/response/cloud/CloudLanguagePair.d.ts +17 -0
  140. package/lib/translation/translate/response/cloud/CloudLanguagePair.js +59 -0
  141. package/lib/translation/translate/response/cloud/CloudLanguagePair.js.map +1 -0
  142. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.d.ts +5 -0
  143. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js +19 -0
  144. package/lib/translation/translate/response/edge/EdgeAsyncTranslationResponse.js.map +1 -0
  145. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.d.ts +11 -0
  146. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js +39 -0
  147. package/lib/translation/translate/response/edge/EdgeDictionaryResponse.js.map +1 -0
  148. package/lib/translation/translate/response/edge/EdgeLanguagePair.d.ts +9 -0
  149. package/lib/translation/translate/response/edge/EdgeLanguagePair.js +50 -0
  150. package/lib/translation/translate/response/edge/EdgeLanguagePair.js.map +1 -0
  151. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.d.ts +26 -0
  152. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js +79 -0
  153. package/lib/translation/translate/response/edge/EdgeStatusTranslationResponse.js.map +1 -0
  154. package/lib/translation/translate/response/edge/MemberPair.d.ts +29 -0
  155. package/lib/translation/translate/response/edge/MemberPair.js +99 -0
  156. package/lib/translation/translate/response/edge/MemberPair.js.map +1 -0
  157. package/lib/translation/translate/response/edge/Profile.d.ts +26 -0
  158. package/lib/translation/translate/response/edge/Profile.js +89 -0
  159. package/lib/translation/translate/response/edge/Profile.js.map +1 -0
  160. package/lib/translation/translate/response/edge/Result.d.ts +32 -0
  161. package/lib/translation/translate/response/edge/Result.js +109 -0
  162. package/lib/translation/translate/response/edge/Result.js.map +1 -0
  163. package/lib/translation/translate/response/edge/Timestamps.d.ts +11 -0
  164. package/lib/translation/translate/response/edge/Timestamps.js +39 -0
  165. package/lib/translation/translate/response/edge/Timestamps.js.map +1 -0
  166. package/lib/translation/translate/result/DictionariesResult.d.ts +6 -0
  167. package/lib/translation/translate/result/DictionariesResult.js +19 -0
  168. package/lib/translation/translate/result/DictionariesResult.js.map +1 -0
  169. package/lib/translation/translate/result/LanguagePairsResult.d.ts +6 -0
  170. package/lib/translation/translate/result/LanguagePairsResult.js +19 -0
  171. package/lib/translation/translate/result/LanguagePairsResult.js.map +1 -0
  172. package/lib/translation/translate/result/TranslateTextResult.d.ts +5 -0
  173. package/lib/translation/translate/result/TranslateTextResult.js +19 -0
  174. package/lib/translation/translate/result/TranslateTextResult.js.map +1 -0
  175. package/lib/translation/translate/result/TranslationBatchFileResult.d.ts +6 -0
  176. package/lib/translation/translate/result/TranslationBatchFileResult.js +19 -0
  177. package/lib/translation/translate/result/TranslationBatchFileResult.js.map +1 -0
  178. package/lib/translation/translate/result/TranslationFileResult.d.ts +11 -0
  179. package/lib/translation/translate/result/TranslationFileResult.js +39 -0
  180. package/lib/translation/translate/result/TranslationFileResult.js.map +1 -0
  181. package/lib/translation/translate/result/cloud/CloudDictionariesResult.d.ts +18 -0
  182. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js +59 -0
  183. package/lib/translation/translate/result/cloud/CloudDictionariesResult.js.map +1 -0
  184. package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.d.ts +9 -0
  185. package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.js +29 -0
  186. package/lib/translation/translate/result/cloud/CloudLanguagePairsResult.js.map +1 -0
  187. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.d.ts +3 -0
  188. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js +30 -0
  189. package/lib/translation/translate/result/cloud/CloudTranslationBatchFileResult.js.map +1 -0
  190. package/lib/translation/translate/result/cloud/CloudTranslationFileResult.d.ts +26 -0
  191. package/lib/translation/translate/result/cloud/CloudTranslationFileResult.js +100 -0
  192. package/lib/translation/translate/result/cloud/CloudTranslationFileResult.js.map +1 -0
  193. package/lib/translation/translate/result/cloud/CloudTranslationTextResult.d.ts +28 -0
  194. package/lib/translation/translate/result/cloud/CloudTranslationTextResult.js +89 -0
  195. package/lib/translation/translate/result/cloud/CloudTranslationTextResult.js.map +1 -0
  196. package/lib/translation/translate/result/edge/EdgeDictionariesResult.d.ts +18 -0
  197. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js +59 -0
  198. package/lib/translation/translate/result/edge/EdgeDictionariesResult.js.map +1 -0
  199. package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.d.ts +6 -0
  200. package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.js +20 -0
  201. package/lib/translation/translate/result/edge/EdgeLanguagePairsResult.js.map +1 -0
  202. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.d.ts +3 -0
  203. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js +30 -0
  204. package/lib/translation/translate/result/edge/EdgeTranslationBatchFileResult.js.map +1 -0
  205. package/lib/translation/translate/result/edge/EdgeTranslationFileResult.d.ts +9 -0
  206. package/lib/translation/translate/result/edge/EdgeTranslationFileResult.js +50 -0
  207. package/lib/translation/translate/result/edge/EdgeTranslationFileResult.js.map +1 -0
  208. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.d.ts +6 -0
  209. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js +40 -0
  210. package/lib/translation/translate/result/edge/EdgeTranslationTextResult.js.map +1 -0
  211. package/lib/translation/translate/utils/TranslateFileUtil.d.ts +8 -0
  212. package/lib/translation/translate/utils/TranslateFileUtil.js +266 -0
  213. package/lib/translation/translate/utils/TranslateFileUtil.js.map +1 -0
  214. package/lib/version.d.ts +1 -0
  215. package/lib/version.js +5 -0
  216. package/lib/version.js.map +1 -0
  217. package/package.json +45 -0
  218. package/readme.md +17 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EdgeLanguageWeaverClient.js","sourceRoot":"","sources":["../src/EdgeLanguageWeaverClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oGAA8E;AAC9E,8DAAwC;AACxC,wDAAuD;AACvD,gFAqBiD;AAGjD,4EAAsD;AAEtD,2HAAqG;AACrG,4HAAsG;AAItG,gEAA+E;AAC/E,gFAAsF;AACtF,0GAAoF;AACpF,0DAAuE;AAEvE,+DAAyC;AAGzC,2HAAqG;AACrG,4HAAsG;AACtG,qFAKyD;AACzD,2GAAqF;AACrF,+FAAyE;AACzE,qIAA+G;AAC/G,sIAAgH;AAGhH,yGAAmF;AAEnF,2GAAqF;AACrF,wEAAuE;AAEvE;IASI;QARQ,yBAAoB,GAAoC,IAAI,6BAAmB,EAAE,CAAC;QAClF,SAAI,GAAW,uCAAgB,CAAC;QAQpC,IAAI,CAAC,OAAO,GAAG,IAAI,oBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,qDAAkB,GAAlB,UAAmB,mBAAwC;QACvD,IAAI,CAAC,oBAAoB,GAAG,mBAAmB,CAAC;QAChD,IAAI,CAAC,oBAAoB,CAAC,OAAO,GAAG,iBAAO,CAAC,IAAI,CAAC;QACjD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,mCAAmC,CAAC,oBAA8C;IACvF,IAAM,QAAQ,GAAG,eAAK,CAAC,oBAAoB,EAAE,CAAC;IAE9C,QAAQ,CAAC,MAAM,CAAC,4BAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtD,IAAI,oBAAoB,CAAC,cAAc,EAAE;QACrC,QAAQ,CAAC,MAAM,CAAC,uCAAgB,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;KAC1E;IAED,IAAI,oBAAoB,CAAC,YAAY,IAAI,oBAAoB,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QACnF,QAAQ,CAAC,MAAM,CAAC,qCAAc,EAAE,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;KAChF;IAED,IAAI,oBAAoB,CAAC,WAAW,EAAE;QAClC,QAAQ,CAAC,MAAM,CAAC,mCAAY,EAAE,mCAAgB,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC;KACrF;IAED,IAAI,oBAAoB,CAAC,KAAK,EAAE;QAC5B,QAAQ,CAAC,MAAM,CAAC,4BAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;KACtD;IAED,IAAI,oBAAoB,CAAC,YAAY,EAAE;QACnC,QAAQ,CAAC,MAAM,CAAC,oCAAa,EAAE,mCAAgB,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC,CAAC;KACvF;IAED,IAAI,oBAAoB,CAAC,QAAQ,EAAE;QAC/B,QAAQ,CAAC,MAAM,CAAC,+BAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;KAC5D;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import TranslateTextRequest from './translation/translate/request/TranslateTextRequest';
2
+ import TranslateTextResult from './translation/translate/result/TranslateTextResult';
3
+ import TranslateFileRequest from './translation/translate/request/TranslateFileRequest';
4
+ import TranslationFileResult from './translation/translate/result/TranslationFileResult';
5
+ import LanguagePairsResult from './translation/translate/result/LanguagePairsResult';
6
+ import TranslateBatchFileRequest from './translation/translate/request/TranslateBatchFileRequest';
7
+ import TranslationBatchFileResult from './translation/translate/result/TranslationBatchFileResult';
8
+ import DictionariesResult from './translation/translate/result/DictionariesResult';
9
+ export interface LanguageWeaverClient {
10
+ translateText(translateTextRequest: TranslateTextRequest): Promise<TranslateTextResult>;
11
+ translateFile(translateFileRequest: TranslateFileRequest): Promise<TranslationFileResult>;
12
+ translateBatchFile(translateBatchFileRequest: TranslateBatchFileRequest): Promise<TranslationBatchFileResult>;
13
+ getLanguagePairs(): Promise<LanguagePairsResult>;
14
+ getDictionaries(pageNumber: number, pageSize?: number): Promise<DictionariesResult>;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LanguageWeaverClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguageWeaverClient.js","sourceRoot":"","sources":["../src/LanguageWeaverClient.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import ClientConfiguration from './common/configurations/ClientConfiguration';
2
+ import TokenConfiguration from './common/configurations/TokenConfiguration';
3
+ import { LanguageWeaverClient } from './LanguageWeaverClient';
4
+ export default class SdkFactory {
5
+ static getLanguageWeaverClient(configuration: ClientConfiguration | TokenConfiguration): Promise<LanguageWeaverClient>;
6
+ private static getLanguageWeaverImplementation;
7
+ private static getLanguageWeaverImplementationForClientConfiguration;
8
+ private static getLanguageWeaverImplementationForTokenConfiguration;
9
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var ClientConfiguration_1 = __importDefault(require("./common/configurations/ClientConfiguration"));
7
+ var CloudLanguageWeaverClient_1 = __importDefault(require("./CloudLanguageWeaverClient"));
8
+ var Product_1 = require("./translation/common/Product");
9
+ var EdgeLanguageWeaverClient_1 = __importDefault(require("./EdgeLanguageWeaverClient"));
10
+ var Utils_1 = __importDefault(require("./common/utils/Utils"));
11
+ var SdkFactory = /** @class */ (function () {
12
+ function SdkFactory() {
13
+ }
14
+ SdkFactory.getLanguageWeaverClient = function (configuration) {
15
+ if (!configuration.product) {
16
+ var environmentImplementationType = Utils_1.default.getProductEnvVar();
17
+ if (!environmentImplementationType) {
18
+ configuration.product = Product_1.Product.CLOUD;
19
+ }
20
+ else {
21
+ configuration.product =
22
+ environmentImplementationType.toUpperCase() === Product_1.Product[Product_1.Product.EDGE]
23
+ ? Product_1.Product.EDGE
24
+ : Product_1.Product.CLOUD;
25
+ }
26
+ }
27
+ return this.getLanguageWeaverImplementation(configuration);
28
+ };
29
+ SdkFactory.getLanguageWeaverImplementation = function (configuration) {
30
+ if (configuration instanceof ClientConfiguration_1.default) {
31
+ return this.getLanguageWeaverImplementationForClientConfiguration(configuration);
32
+ }
33
+ else {
34
+ return this.getLanguageWeaverImplementationForTokenConfiguration(configuration);
35
+ }
36
+ };
37
+ SdkFactory.getLanguageWeaverImplementationForClientConfiguration = function (configuration) {
38
+ if (configuration.product === Product_1.Product.EDGE) {
39
+ return new EdgeLanguageWeaverClient_1.default().withConfigurations(configuration).build();
40
+ }
41
+ else {
42
+ return new CloudLanguageWeaverClient_1.default().withConfigurations(configuration).build();
43
+ }
44
+ };
45
+ SdkFactory.getLanguageWeaverImplementationForTokenConfiguration = function (configuration) {
46
+ if (configuration.product === Product_1.Product.EDGE) {
47
+ return new EdgeLanguageWeaverClient_1.default().withTokenConfigurations(configuration).build();
48
+ }
49
+ else {
50
+ return new CloudLanguageWeaverClient_1.default().withTokenConfigurations(configuration).build();
51
+ }
52
+ };
53
+ return SdkFactory;
54
+ }());
55
+ exports.default = SdkFactory;
56
+ //# sourceMappingURL=SdkFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":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QACjG,IAAI,aAAa,CAAC,OAAO,KAAK,iBAAO,CAAC,IAAI,EAAE;YACxC,OAAO,IAAI,kCAAwB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;SACxF;aAAM;YACH,OAAO,IAAI,mCAAyB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC;SACzF;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AA3CD,IA2CC"}
@@ -0,0 +1,12 @@
1
+ import CredentialsConfiguration from '../common/configurations/CredentialsConfiguration';
2
+ import Token from './domain/Token';
3
+ import RestClient from '../common/requests/RestClient';
4
+ import SelfInformation from './domain/SelfInformation';
5
+ import UserSelfInformation from './domain/UserSelfInformation';
6
+ export default class LanguageWeaverAuthentication {
7
+ private _client;
8
+ constructor(client: RestClient);
9
+ requestCredentialsToken(credentialsConfiguration: CredentialsConfiguration): Promise<Token>;
10
+ getSelfInformation(token: Token | undefined): Promise<SelfInformation>;
11
+ getUserSelfInformation(token: Token | undefined): Promise<UserSelfInformation>;
12
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var TranslationConstants_1 = require("../common/constants/TranslationConstants");
4
+ var LanguageWeaverAuthentication = /** @class */ (function () {
5
+ function LanguageWeaverAuthentication(client) {
6
+ this._client = client;
7
+ }
8
+ LanguageWeaverAuthentication.prototype.requestCredentialsToken = function (credentialsConfiguration) {
9
+ var _a;
10
+ var body = (_a = {},
11
+ _a[TranslationConstants_1.CLIENT_ID] = credentialsConfiguration.clientId,
12
+ _a[TranslationConstants_1.CLIENT_SECRET] = credentialsConfiguration.clientSecret,
13
+ _a);
14
+ return this._client.requestJson(undefined, 'POST', TranslationConstants_1.CREDENTIALS_LOGIN_PATH, body);
15
+ };
16
+ LanguageWeaverAuthentication.prototype.getSelfInformation = function (token) {
17
+ return this._client.requestJson(token, 'GET', TranslationConstants_1.SELF_PATH);
18
+ };
19
+ LanguageWeaverAuthentication.prototype.getUserSelfInformation = function (token) {
20
+ return this._client.requestJson(token, 'GET', TranslationConstants_1.USER_SELF_PATH);
21
+ };
22
+ return LanguageWeaverAuthentication;
23
+ }());
24
+ exports.default = LanguageWeaverAuthentication;
25
+ //# sourceMappingURL=LanguageWeaverAuthentication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguageWeaverAuthentication.js","sourceRoot":"","sources":["../../src/auth/LanguageWeaverAuthentication.ts"],"names":[],"mappings":";;AAEA,iFAMkD;AAKlD;IAGI,sCAAY,MAAkB;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,8DAAuB,GAAvB,UAAwB,wBAAkD;;QACtE,IAAM,IAAI;YACN,GAAC,gCAAS,IAAG,wBAAwB,CAAC,QAAQ;YAC9C,GAAC,oCAAa,IAAG,wBAAwB,CAAC,YAAY;eACzD,CAAC;QAEF,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,6CAAsB,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;IAED,yDAAkB,GAAlB,UAAmB,KAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,gCAAS,CAAC,CAAC;IAC7D,CAAC;IAED,6DAAsB,GAAtB,UAAuB,KAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,qCAAc,CAAC,CAAC;IAClE,CAAC;IACL,mCAAC;AAAD,CAAC,AAvBD,IAuBC"}
@@ -0,0 +1,8 @@
1
+ export default class SelfInformation {
2
+ private _accountId;
3
+ private _clientId;
4
+ get accountId(): number | undefined;
5
+ set accountId(value: number | undefined);
6
+ get clientId(): string | undefined;
7
+ set clientId(value: string | undefined);
8
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var SelfInformation = /** @class */ (function () {
4
+ function SelfInformation() {
5
+ }
6
+ Object.defineProperty(SelfInformation.prototype, "accountId", {
7
+ get: function () {
8
+ return this._accountId;
9
+ },
10
+ set: function (value) {
11
+ this._accountId = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ Object.defineProperty(SelfInformation.prototype, "clientId", {
17
+ get: function () {
18
+ return this._clientId;
19
+ },
20
+ set: function (value) {
21
+ this._clientId = value;
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ return SelfInformation;
27
+ }());
28
+ exports.default = SelfInformation;
29
+ //# sourceMappingURL=SelfInformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfInformation.js","sourceRoot":"","sources":["../../../src/auth/domain/SelfInformation.ts"],"names":[],"mappings":";;AAAA;IAAA;IAmBA,CAAC;IAfG,sBAAI,sCAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,qCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,sBAAC;AAAD,CAAC,AAnBD,IAmBC"}
@@ -0,0 +1,15 @@
1
+ export default class Token {
2
+ private _accessToken;
3
+ private _validityInSeconds;
4
+ private _tokenType;
5
+ private _expiresAt;
6
+ constructor(accessToken?: string, validityInSeconds?: number, tokenType?: string, expiresAt?: number);
7
+ get accessToken(): string | undefined;
8
+ set accessToken(value: string | undefined);
9
+ get validityInSeconds(): number | undefined;
10
+ set validityInSeconds(value: number | undefined);
11
+ get tokenType(): string | undefined;
12
+ set tokenType(value: string | undefined);
13
+ get expiresAt(): number | undefined;
14
+ set expiresAt(value: number | undefined);
15
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var Token = /** @class */ (function () {
4
+ function Token(accessToken, validityInSeconds, tokenType, expiresAt) {
5
+ this._accessToken = accessToken;
6
+ this._validityInSeconds = validityInSeconds;
7
+ this._tokenType = tokenType;
8
+ this._expiresAt = expiresAt;
9
+ }
10
+ Object.defineProperty(Token.prototype, "accessToken", {
11
+ get: function () {
12
+ return this._accessToken;
13
+ },
14
+ set: function (value) {
15
+ this._accessToken = value;
16
+ },
17
+ enumerable: false,
18
+ configurable: true
19
+ });
20
+ Object.defineProperty(Token.prototype, "validityInSeconds", {
21
+ get: function () {
22
+ return this._validityInSeconds;
23
+ },
24
+ set: function (value) {
25
+ this._validityInSeconds = value;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ Object.defineProperty(Token.prototype, "tokenType", {
31
+ get: function () {
32
+ return this._tokenType;
33
+ },
34
+ set: function (value) {
35
+ this._tokenType = value;
36
+ },
37
+ enumerable: false,
38
+ configurable: true
39
+ });
40
+ Object.defineProperty(Token.prototype, "expiresAt", {
41
+ get: function () {
42
+ return this._expiresAt;
43
+ },
44
+ set: function (value) {
45
+ this._expiresAt = value;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ return Token;
51
+ }());
52
+ exports.default = Token;
53
+ //# sourceMappingURL=Token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../src/auth/domain/Token.ts"],"names":[],"mappings":";;AAAA;IAMI,eAAY,WAAoB,EAAE,iBAA0B,EAAE,SAAkB,EAAE,SAAkB;QAChG,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAChC,CAAC;IAED,sBAAI,8BAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAyB;YACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAMD,sBAAI,oCAAiB;aAArB;YACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;aAED,UAAsB,KAAyB;YAC3C,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QACpC,CAAC;;;OAJA;IAMD,sBAAI,4BAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAMD,sBAAI,4BAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJA;IAKL,YAAC;AAAD,CAAC,AA5CD,IA4CC"}
@@ -0,0 +1,38 @@
1
+ export default class UserSelfInformation {
2
+ private _accountId;
3
+ private _userId;
4
+ private _firstName;
5
+ private _middleName;
6
+ private _lastName;
7
+ private _email;
8
+ private _userRole;
9
+ private _active;
10
+ private _accountCategory;
11
+ private _eulaAccepted;
12
+ private _allowChangePassword;
13
+ private _deleteContentEnabled;
14
+ get accountId(): number | undefined;
15
+ set accountId(value: number | undefined);
16
+ get userId(): string | undefined;
17
+ set userId(value: string | undefined);
18
+ get firstName(): string | undefined;
19
+ set firstName(value: string | undefined);
20
+ get middleName(): string | undefined;
21
+ set middleName(value: string | undefined);
22
+ get lastName(): string | undefined;
23
+ set lastName(value: string | undefined);
24
+ get email(): string | undefined;
25
+ set email(value: string | undefined);
26
+ get userRole(): string | undefined;
27
+ set userRole(value: string | undefined);
28
+ get active(): string | undefined;
29
+ set active(value: string | undefined);
30
+ get accountCategory(): string | undefined;
31
+ set accountCategory(value: string | undefined);
32
+ get eulaAccepted(): string | undefined;
33
+ set eulaAccepted(value: string | undefined);
34
+ get allowChangePassword(): boolean | undefined;
35
+ set allowChangePassword(value: boolean | undefined);
36
+ get deleteContentEnabled(): boolean | undefined;
37
+ set deleteContentEnabled(value: boolean | undefined);
38
+ }
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var UserSelfInformation = /** @class */ (function () {
4
+ function UserSelfInformation() {
5
+ }
6
+ Object.defineProperty(UserSelfInformation.prototype, "accountId", {
7
+ get: function () {
8
+ return this._accountId;
9
+ },
10
+ set: function (value) {
11
+ this._accountId = value;
12
+ },
13
+ enumerable: false,
14
+ configurable: true
15
+ });
16
+ Object.defineProperty(UserSelfInformation.prototype, "userId", {
17
+ get: function () {
18
+ return this._userId;
19
+ },
20
+ set: function (value) {
21
+ this._userId = value;
22
+ },
23
+ enumerable: false,
24
+ configurable: true
25
+ });
26
+ Object.defineProperty(UserSelfInformation.prototype, "firstName", {
27
+ get: function () {
28
+ return this._firstName;
29
+ },
30
+ set: function (value) {
31
+ this._firstName = value;
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ Object.defineProperty(UserSelfInformation.prototype, "middleName", {
37
+ get: function () {
38
+ return this._middleName;
39
+ },
40
+ set: function (value) {
41
+ this._middleName = value;
42
+ },
43
+ enumerable: false,
44
+ configurable: true
45
+ });
46
+ Object.defineProperty(UserSelfInformation.prototype, "lastName", {
47
+ get: function () {
48
+ return this._lastName;
49
+ },
50
+ set: function (value) {
51
+ this._lastName = value;
52
+ },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
56
+ Object.defineProperty(UserSelfInformation.prototype, "email", {
57
+ get: function () {
58
+ return this._email;
59
+ },
60
+ set: function (value) {
61
+ this._email = value;
62
+ },
63
+ enumerable: false,
64
+ configurable: true
65
+ });
66
+ Object.defineProperty(UserSelfInformation.prototype, "userRole", {
67
+ get: function () {
68
+ return this._userRole;
69
+ },
70
+ set: function (value) {
71
+ this._userRole = value;
72
+ },
73
+ enumerable: false,
74
+ configurable: true
75
+ });
76
+ Object.defineProperty(UserSelfInformation.prototype, "active", {
77
+ get: function () {
78
+ return this._active;
79
+ },
80
+ set: function (value) {
81
+ this._active = value;
82
+ },
83
+ enumerable: false,
84
+ configurable: true
85
+ });
86
+ Object.defineProperty(UserSelfInformation.prototype, "accountCategory", {
87
+ get: function () {
88
+ return this._accountCategory;
89
+ },
90
+ set: function (value) {
91
+ this._accountCategory = value;
92
+ },
93
+ enumerable: false,
94
+ configurable: true
95
+ });
96
+ Object.defineProperty(UserSelfInformation.prototype, "eulaAccepted", {
97
+ get: function () {
98
+ return this._eulaAccepted;
99
+ },
100
+ set: function (value) {
101
+ this._eulaAccepted = value;
102
+ },
103
+ enumerable: false,
104
+ configurable: true
105
+ });
106
+ Object.defineProperty(UserSelfInformation.prototype, "allowChangePassword", {
107
+ get: function () {
108
+ return this._allowChangePassword;
109
+ },
110
+ set: function (value) {
111
+ this._allowChangePassword = value;
112
+ },
113
+ enumerable: false,
114
+ configurable: true
115
+ });
116
+ Object.defineProperty(UserSelfInformation.prototype, "deleteContentEnabled", {
117
+ get: function () {
118
+ return this._deleteContentEnabled;
119
+ },
120
+ set: function (value) {
121
+ this._deleteContentEnabled = value;
122
+ },
123
+ enumerable: false,
124
+ configurable: true
125
+ });
126
+ return UserSelfInformation;
127
+ }());
128
+ exports.default = UserSelfInformation;
129
+ //# sourceMappingURL=UserSelfInformation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSelfInformation.js","sourceRoot":"","sources":["../../../src/auth/domain/UserSelfInformation.ts"],"names":[],"mappings":";;AAAA;IAAA;IA6GA,CAAC;IA/FG,sBAAI,0CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;aAED,UAAc,KAAyB;YACnC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC;;;OAJ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AAC;QAClC,CAAC;;;OAJA;IAMD,sBAAI,6CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAMD,sBAAI,oDAAmB;aAAvB;YACI,OAAO,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAAwB,KAA0B;YAC9C,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QACtC,CAAC;;;OAJA;IAMD,sBAAI,qDAAoB;aAAxB;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC;aAED,UAAyB,KAA0B;YAC/C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACvC,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AA7GD,IA6GC"}
@@ -0,0 +1,9 @@
1
+ export default class ErrorResponse {
2
+ private _code;
3
+ private _description;
4
+ constructor(code: number, description: string);
5
+ get code(): number;
6
+ set code(value: number);
7
+ get description(): string;
8
+ set description(value: string);
9
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ErrorResponse = /** @class */ (function () {
4
+ function ErrorResponse(code, description) {
5
+ this._code = code;
6
+ this._description = description;
7
+ }
8
+ Object.defineProperty(ErrorResponse.prototype, "code", {
9
+ get: function () {
10
+ return this._code;
11
+ },
12
+ set: function (value) {
13
+ this._code = value;
14
+ },
15
+ enumerable: false,
16
+ configurable: true
17
+ });
18
+ Object.defineProperty(ErrorResponse.prototype, "description", {
19
+ get: function () {
20
+ return this._description;
21
+ },
22
+ set: function (value) {
23
+ this._description = value;
24
+ },
25
+ enumerable: false,
26
+ configurable: true
27
+ });
28
+ return ErrorResponse;
29
+ }());
30
+ exports.default = ErrorResponse;
31
+ //# sourceMappingURL=ErrorResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../src/common/api/ErrorResponse.ts"],"names":[],"mappings":";;AAAA;IAII,uBAAY,IAAY,EAAE,WAAmB;QACzC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IACpC,CAAC;IAED,sBAAI,+BAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;aAED,UAAS,KAAa;YAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvB,CAAC;;;OAJA;IAMD,sBAAI,sCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;aAED,UAAgB,KAAa;YACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC9B,CAAC;;;OAJA;IAKL,oBAAC;AAAD,CAAC,AAxBD,IAwBC"}
@@ -0,0 +1,14 @@
1
+ import CredentialsConfiguration from './CredentialsConfiguration';
2
+ import RetryConfiguration from './RetryConfiguration';
3
+ import { Product } from '../../translation/common/Product';
4
+ export default class ClientConfiguration {
5
+ private _credentialsConfiguration;
6
+ private _retryConfiguration;
7
+ private _product;
8
+ get credentialsConfiguration(): CredentialsConfiguration;
9
+ set credentialsConfiguration(value: CredentialsConfiguration);
10
+ get retryConfiguration(): RetryConfiguration;
11
+ set retryConfiguration(value: RetryConfiguration);
12
+ get product(): Product | undefined;
13
+ set product(value: Product | undefined);
14
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var CredentialsConfiguration_1 = __importDefault(require("./CredentialsConfiguration"));
7
+ var RetryConfiguration_1 = __importDefault(require("./RetryConfiguration"));
8
+ var ClientConfiguration = /** @class */ (function () {
9
+ function ClientConfiguration() {
10
+ this._credentialsConfiguration = new CredentialsConfiguration_1.default();
11
+ this._retryConfiguration = new RetryConfiguration_1.default();
12
+ }
13
+ Object.defineProperty(ClientConfiguration.prototype, "credentialsConfiguration", {
14
+ get: function () {
15
+ return this._credentialsConfiguration;
16
+ },
17
+ set: function (value) {
18
+ this._credentialsConfiguration = value;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ Object.defineProperty(ClientConfiguration.prototype, "retryConfiguration", {
24
+ get: function () {
25
+ return this._retryConfiguration;
26
+ },
27
+ set: function (value) {
28
+ this._retryConfiguration = value;
29
+ },
30
+ enumerable: false,
31
+ configurable: true
32
+ });
33
+ Object.defineProperty(ClientConfiguration.prototype, "product", {
34
+ get: function () {
35
+ return this._product;
36
+ },
37
+ set: function (value) {
38
+ this._product = value;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ return ClientConfiguration;
44
+ }());
45
+ exports.default = ClientConfiguration;
46
+ //# sourceMappingURL=ClientConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientConfiguration.js","sourceRoot":"","sources":["../../../src/common/configurations/ClientConfiguration.ts"],"names":[],"mappings":";;;;;AAAA,wFAAkE;AAClE,4EAAsD;AAGtD;IAAA;QACY,8BAAyB,GAA6B,IAAI,kCAAwB,EAAE,CAAC;QACrF,wBAAmB,GAAuB,IAAI,4BAAkB,EAAE,CAAC;IA0B/E,CAAC;IAvBG,sBAAI,yDAAwB;aAA5B;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC;QAC1C,CAAC;aAED,UAA6B,KAA+B;YACxD,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;QAC3C,CAAC;;;OAJA;IAMD,sBAAI,mDAAkB;aAAtB;YACI,OAAO,IAAI,CAAC,mBAAmB,CAAC;QACpC,CAAC;aAED,UAAuB,KAAyB;YAC5C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACrC,CAAC;;;OAJA;IAMD,sBAAI,wCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAAY,KAA0B;YAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAKL,0BAAC;AAAD,CAAC,AA5BD,IA4BC"}
@@ -0,0 +1,9 @@
1
+ export default class CredentialsConfiguration {
2
+ private _clientId;
3
+ private _clientSecret;
4
+ constructor(clientId?: string, clientSecret?: string);
5
+ get clientSecret(): string | undefined;
6
+ set clientSecret(value: string | undefined);
7
+ get clientId(): string | undefined;
8
+ set clientId(value: string | undefined);
9
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var Utils_1 = __importDefault(require("../utils/Utils"));
7
+ var CredentialsConfiguration = /** @class */ (function () {
8
+ function CredentialsConfiguration(clientId, clientSecret) {
9
+ this._clientId = clientId || Utils_1.default.getCloudClientIdEnvVar();
10
+ this._clientSecret = clientSecret || Utils_1.default.getCloudClientSecretEnvVar();
11
+ }
12
+ Object.defineProperty(CredentialsConfiguration.prototype, "clientSecret", {
13
+ get: function () {
14
+ return this._clientSecret;
15
+ },
16
+ set: function (value) {
17
+ this._clientSecret = value;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ Object.defineProperty(CredentialsConfiguration.prototype, "clientId", {
23
+ get: function () {
24
+ return this._clientId;
25
+ },
26
+ set: function (value) {
27
+ this._clientId = value;
28
+ },
29
+ enumerable: false,
30
+ configurable: true
31
+ });
32
+ return CredentialsConfiguration;
33
+ }());
34
+ exports.default = CredentialsConfiguration;
35
+ //# sourceMappingURL=CredentialsConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CredentialsConfiguration.js","sourceRoot":"","sources":["../../../src/common/configurations/CredentialsConfiguration.ts"],"names":[],"mappings":";;;;;AAAA,yDAAmC;AAEnC;IAII,kCAAY,QAAiB,EAAE,YAAqB;QAChD,IAAI,CAAC,SAAS,GAAG,QAAQ,IAAI,eAAK,CAAC,sBAAsB,EAAE,CAAC;QAC5D,IAAI,CAAC,aAAa,GAAG,YAAY,IAAI,eAAK,CAAC,0BAA0B,EAAE,CAAC;IAC5E,CAAC;IAED,sBAAI,kDAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;aAED,UAAiB,KAAyB;YACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC/B,CAAC;;;OAJA;IAKD,sBAAI,8CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAED,UAAa,KAAyB;YAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,CAAC;;;OAJA;IAKL,+BAAC;AAAD,CAAC,AAvBD,IAuBC"}
@@ -0,0 +1,8 @@
1
+ export default class RetryConfiguration {
2
+ private _attempts;
3
+ private _delay;
4
+ get attempts(): number;
5
+ set attempts(value: number);
6
+ get delay(): number;
7
+ set delay(value: number);
8
+ }