@petrominds/corr-select-mind 0.1.0-beta.1
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.
- package/dist/cjs/BaseClient.d.ts +42 -0
- package/dist/cjs/BaseClient.js +77 -0
- package/dist/cjs/Client.d.ts +26 -0
- package/dist/cjs/Client.js +83 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +6 -0
- package/dist/cjs/api/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +6 -0
- package/dist/cjs/api/errors/TooManyRequestsError.js +54 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +6 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +4 -0
- package/dist/cjs/api/errors/index.js +20 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +41 -0
- package/dist/cjs/api/resources/pvt/client/Client.d.ts +38 -0
- package/dist/cjs/api/resources/pvt/client/Client.js +131 -0
- package/dist/cjs/api/resources/pvt/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pvt/client/index.js +17 -0
- package/dist/cjs/api/resources/pvt/client/requests/GetPvtBestCorrelationQuery.d.ts +31 -0
- package/dist/cjs/api/resources/pvt/client/requests/GetPvtBestCorrelationQuery.js +3 -0
- package/dist/cjs/api/resources/pvt/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/pvt/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pvt/exports.d.ts +2 -0
- package/dist/cjs/api/resources/pvt/exports.js +21 -0
- package/dist/cjs/api/resources/pvt/index.d.ts +1 -0
- package/dist/cjs/api/resources/pvt/index.js +17 -0
- package/dist/cjs/api/types/Correlation.d.ts +6 -0
- package/dist/cjs/api/types/Correlation.js +3 -0
- package/dist/cjs/api/types/ErrorResponse.d.ts +8 -0
- package/dist/cjs/api/types/ErrorResponse.js +3 -0
- package/dist/cjs/api/types/GetPvtBestCorrelationResponse.d.ts +36 -0
- package/dist/cjs/api/types/GetPvtBestCorrelationResponse.js +17 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +19 -0
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +20 -0
- package/dist/cjs/auth/HeaderAuthProvider.js +80 -0
- package/dist/cjs/auth/index.d.ts +1 -0
- package/dist/cjs/auth/index.js +5 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +8 -0
- package/dist/cjs/core/auth/AuthProvider.js +9 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +33 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
- package/dist/cjs/core/auth/BearerToken.js +16 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/cjs/core/auth/index.d.ts +5 -0
- package/dist/cjs/core/auth/index.js +11 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +56 -0
- package/dist/cjs/core/fetcher/Fetcher.js +327 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +80 -0
- package/dist/cjs/core/fetcher/index.d.ts +13 -0
- package/dist/cjs/core/fetcher/index.js +19 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -0
- package/dist/cjs/core/fetcher/makeRequest.js +61 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +70 -0
- package/dist/cjs/core/fetcher/signals.d.ts +5 -0
- package/dist/cjs/core/fetcher/signals.js +24 -0
- package/dist/cjs/core/headers.d.ts +2 -0
- package/dist/cjs/core/headers.js +31 -0
- package/dist/cjs/core/index.d.ts +6 -0
- package/dist/cjs/core/index.js +45 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +104 -0
- package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +4 -0
- package/dist/cjs/core/url/index.js +11 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +68 -0
- package/dist/cjs/core/url/qs.d.ts +7 -0
- package/dist/cjs/core/url/qs.js +76 -0
- package/dist/cjs/environments.d.ts +4 -0
- package/dist/cjs/environments.js +7 -0
- package/dist/cjs/errors/CorrSelectMindError.d.ts +14 -0
- package/dist/cjs/errors/CorrSelectMindError.js +35 -0
- package/dist/cjs/errors/CorrSelectMindTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/CorrSelectMindTimeoutError.js +18 -0
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +68 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +48 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +42 -0
- package/dist/esm/BaseClient.mjs +40 -0
- package/dist/esm/Client.d.mts +26 -0
- package/dist/esm/Client.mjs +46 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +6 -0
- package/dist/esm/api/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +6 -0
- package/dist/esm/api/errors/TooManyRequestsError.mjs +17 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +6 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +4 -0
- package/dist/esm/api/errors/index.mjs +4 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/pvt/client/Client.d.mts +38 -0
- package/dist/esm/api/resources/pvt/client/Client.mjs +94 -0
- package/dist/esm/api/resources/pvt/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pvt/client/index.mjs +1 -0
- package/dist/esm/api/resources/pvt/client/requests/GetPvtBestCorrelationQuery.d.mts +31 -0
- package/dist/esm/api/resources/pvt/client/requests/GetPvtBestCorrelationQuery.mjs +2 -0
- package/dist/esm/api/resources/pvt/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/pvt/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pvt/exports.d.mts +2 -0
- package/dist/esm/api/resources/pvt/exports.mjs +3 -0
- package/dist/esm/api/resources/pvt/index.d.mts +1 -0
- package/dist/esm/api/resources/pvt/index.mjs +1 -0
- package/dist/esm/api/types/Correlation.d.mts +6 -0
- package/dist/esm/api/types/Correlation.mjs +2 -0
- package/dist/esm/api/types/ErrorResponse.d.mts +8 -0
- package/dist/esm/api/types/ErrorResponse.mjs +2 -0
- package/dist/esm/api/types/GetPvtBestCorrelationResponse.d.mts +36 -0
- package/dist/esm/api/types/GetPvtBestCorrelationResponse.mjs +14 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/auth/HeaderAuthProvider.d.mts +20 -0
- package/dist/esm/auth/HeaderAuthProvider.mjs +43 -0
- package/dist/esm/auth/index.d.mts +1 -0
- package/dist/esm/auth/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +8 -0
- package/dist/esm/core/auth/AuthProvider.mjs +6 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +30 -0
- package/dist/esm/core/auth/BearerToken.d.mts +7 -0
- package/dist/esm/core/auth/BearerToken.mjs +13 -0
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
- package/dist/esm/core/auth/index.d.mts +5 -0
- package/dist/esm/core/auth/index.mjs +4 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +56 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +323 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +77 -0
- package/dist/esm/core/fetcher/index.d.mts +13 -0
- package/dist/esm/core/fetcher/index.mjs +7 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +55 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +67 -0
- package/dist/esm/core/fetcher/signals.d.mts +5 -0
- package/dist/esm/core/fetcher/signals.mjs +20 -0
- package/dist/esm/core/headers.d.mts +2 -0
- package/dist/esm/core/headers.mjs +27 -0
- package/dist/esm/core/index.d.mts +6 -0
- package/dist/esm/core/index.mjs +6 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +101 -0
- package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
- package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +4 -0
- package/dist/esm/core/url/index.mjs +4 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +65 -0
- package/dist/esm/core/url/qs.d.mts +7 -0
- package/dist/esm/core/url/qs.mjs +73 -0
- package/dist/esm/environments.d.mts +4 -0
- package/dist/esm/environments.mjs +4 -0
- package/dist/esm/errors/CorrSelectMindError.d.mts +14 -0
- package/dist/esm/errors/CorrSelectMindError.mjs +31 -0
- package/dist/esm/errors/CorrSelectMindTimeoutError.d.mts +6 -0
- package/dist/esm/errors/CorrSelectMindTimeoutError.mjs +14 -0
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +32 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +6 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CorrSelectMindTimeoutError = exports.CorrSelectMindError = exports.CorrSelectMindEnvironment = exports.CorrSelectMindClient = exports.CorrSelectMind = void 0;
|
|
40
|
+
exports.CorrSelectMind = __importStar(require("./api/index.js"));
|
|
41
|
+
var Client_js_1 = require("./Client.js");
|
|
42
|
+
Object.defineProperty(exports, "CorrSelectMindClient", { enumerable: true, get: function () { return Client_js_1.CorrSelectMindClient; } });
|
|
43
|
+
var environments_js_1 = require("./environments.js");
|
|
44
|
+
Object.defineProperty(exports, "CorrSelectMindEnvironment", { enumerable: true, get: function () { return environments_js_1.CorrSelectMindEnvironment; } });
|
|
45
|
+
var index_js_1 = require("./errors/index.js");
|
|
46
|
+
Object.defineProperty(exports, "CorrSelectMindError", { enumerable: true, get: function () { return index_js_1.CorrSelectMindError; } });
|
|
47
|
+
Object.defineProperty(exports, "CorrSelectMindTimeoutError", { enumerable: true, get: function () { return index_js_1.CorrSelectMindTimeoutError; } });
|
|
48
|
+
__exportStar(require("./exports.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SDK_VERSION = "0.1.0-beta.1";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
|
|
2
|
+
import * as core from "./core/index.mjs";
|
|
3
|
+
import type * as environments from "./environments.mjs";
|
|
4
|
+
export type AuthOption = false | core.AuthProvider["getAuthRequest"] | core.AuthProvider | HeaderAuthProvider.AuthOptions;
|
|
5
|
+
export type BaseClientOptions = {
|
|
6
|
+
environment?: core.Supplier<environments.CorrSelectMindEnvironment | string>;
|
|
7
|
+
/** Specify a custom URL to connect the client to. */
|
|
8
|
+
baseUrl?: core.Supplier<string>;
|
|
9
|
+
/** Additional headers to include in requests. */
|
|
10
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
11
|
+
/** The default maximum time to wait for a response in seconds. */
|
|
12
|
+
timeoutInSeconds?: number;
|
|
13
|
+
/** The default number of times to retry the request. Defaults to 2. */
|
|
14
|
+
maxRetries?: number;
|
|
15
|
+
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
16
|
+
fetch?: typeof fetch;
|
|
17
|
+
/** Configure logging for the client. */
|
|
18
|
+
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
19
|
+
/** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
|
|
20
|
+
auth?: AuthOption;
|
|
21
|
+
} & HeaderAuthProvider.AuthOptions;
|
|
22
|
+
export interface BaseRequestOptions {
|
|
23
|
+
/** The maximum time to wait for a response in seconds. */
|
|
24
|
+
timeoutInSeconds?: number;
|
|
25
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
26
|
+
maxRetries?: number;
|
|
27
|
+
/** A hook to abort the request. */
|
|
28
|
+
abortSignal?: AbortSignal;
|
|
29
|
+
/** Additional query string parameters to include in the request. */
|
|
30
|
+
queryParams?: Record<string, unknown>;
|
|
31
|
+
/** Additional headers to include in the request. */
|
|
32
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
33
|
+
}
|
|
34
|
+
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
35
|
+
logging: core.logging.Logger;
|
|
36
|
+
authProvider?: core.AuthProvider;
|
|
37
|
+
};
|
|
38
|
+
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
|
|
39
|
+
authProvider: core.AuthProvider;
|
|
40
|
+
};
|
|
41
|
+
export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
|
|
42
|
+
export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
|
|
3
|
+
import { mergeHeaders } from "./core/headers.mjs";
|
|
4
|
+
import * as core from "./core/index.mjs";
|
|
5
|
+
export function normalizeClientOptions(options) {
|
|
6
|
+
const headers = mergeHeaders({
|
|
7
|
+
"X-Fern-Language": "JavaScript",
|
|
8
|
+
"X-Fern-SDK-Name": "@petrominds/corr-select-mind",
|
|
9
|
+
"X-Fern-SDK-Version": "0.1.0-beta.1",
|
|
10
|
+
"User-Agent": "@petrominds/corr-select-mind/0.1.0-beta.1",
|
|
11
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
|
+
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
14
|
+
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
15
|
+
}
|
|
16
|
+
export function normalizeClientOptionsWithAuth(options) {
|
|
17
|
+
var _a;
|
|
18
|
+
const normalized = normalizeClientOptions(options);
|
|
19
|
+
if (options.auth === false) {
|
|
20
|
+
normalized.authProvider = new core.NoOpAuthProvider();
|
|
21
|
+
return normalized;
|
|
22
|
+
}
|
|
23
|
+
if (options.auth != null) {
|
|
24
|
+
if (typeof options.auth === "function") {
|
|
25
|
+
normalized.authProvider = { getAuthRequest: options.auth };
|
|
26
|
+
return normalized;
|
|
27
|
+
}
|
|
28
|
+
if (core.isAuthProvider(options.auth)) {
|
|
29
|
+
normalized.authProvider = options.auth;
|
|
30
|
+
return normalized;
|
|
31
|
+
}
|
|
32
|
+
Object.assign(normalized, options.auth);
|
|
33
|
+
}
|
|
34
|
+
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
35
|
+
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new HeaderAuthProvider(normalizedWithNoOpAuthProvider));
|
|
36
|
+
return normalized;
|
|
37
|
+
}
|
|
38
|
+
function withNoOpAuthProvider(options) {
|
|
39
|
+
return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PvtClient } from "./api/resources/pvt/client/Client.mjs";
|
|
2
|
+
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
3
|
+
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
4
|
+
import * as core from "./core/index.mjs";
|
|
5
|
+
export declare namespace CorrSelectMindClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CorrSelectMindClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CorrSelectMindClient.Options>;
|
|
12
|
+
protected _pvt: PvtClient | undefined;
|
|
13
|
+
constructor(options: CorrSelectMindClient.Options);
|
|
14
|
+
get pvt(): PvtClient;
|
|
15
|
+
/**
|
|
16
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
17
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
18
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
19
|
+
*
|
|
20
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
21
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
22
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
23
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
24
|
+
*/
|
|
25
|
+
fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { PvtClient } from "./api/resources/pvt/client/Client.mjs";
|
|
12
|
+
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
13
|
+
import * as core from "./core/index.mjs";
|
|
14
|
+
export class CorrSelectMindClient {
|
|
15
|
+
constructor(options) {
|
|
16
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
17
|
+
}
|
|
18
|
+
get pvt() {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = this._pvt) !== null && _a !== void 0 ? _a : (this._pvt = new PvtClient(this._options)));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
24
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
25
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
26
|
+
*
|
|
27
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
28
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
29
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
30
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
31
|
+
*/
|
|
32
|
+
fetch(input, init, requestOptions) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
var _a;
|
|
35
|
+
return core.makePassthroughRequest(input, init, {
|
|
36
|
+
baseUrl: (_a = this._options.baseUrl) !== null && _a !== void 0 ? _a : this._options.environment,
|
|
37
|
+
headers: this._options.headers,
|
|
38
|
+
timeoutInSeconds: this._options.timeoutInSeconds,
|
|
39
|
+
maxRetries: this._options.maxRetries,
|
|
40
|
+
fetch: this._options.fetch,
|
|
41
|
+
logging: this._options.logging,
|
|
42
|
+
getAuthHeaders: () => __awaiter(this, void 0, void 0, function* () { return (yield this._options.authProvider.getAuthRequest()).headers; }),
|
|
43
|
+
}, requestOptions);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CorrSelectMind from "../index.mjs";
|
|
4
|
+
export declare class BadRequestError extends errors.CorrSelectMindError {
|
|
5
|
+
constructor(body: CorrSelectMind.ErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class BadRequestError extends errors.CorrSelectMindError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "BadRequestError",
|
|
7
|
+
statusCode: 400,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CorrSelectMind from "../index.mjs";
|
|
4
|
+
export declare class TooManyRequestsError extends errors.CorrSelectMindError {
|
|
5
|
+
constructor(body: CorrSelectMind.ErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class TooManyRequestsError extends errors.CorrSelectMindError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "TooManyRequestsError",
|
|
7
|
+
statusCode: 429,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CorrSelectMind from "../index.mjs";
|
|
4
|
+
export declare class UnauthorizedError extends errors.CorrSelectMindError {
|
|
5
|
+
constructor(body: CorrSelectMind.ErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class UnauthorizedError extends errors.CorrSelectMindError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "UnauthorizedError",
|
|
7
|
+
statusCode: 401,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CorrSelectMind from "../index.mjs";
|
|
4
|
+
export declare class UnprocessableEntityError extends errors.CorrSelectMindError {
|
|
5
|
+
constructor(body: CorrSelectMind.ErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class UnprocessableEntityError extends errors.CorrSelectMindError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "UnprocessableEntityError",
|
|
7
|
+
statusCode: 422,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = this.constructor.name;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as CorrSelectMind from "../../../index.mjs";
|
|
5
|
+
export declare namespace PvtClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PvtClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PvtClient.Options>;
|
|
12
|
+
constructor(options: PvtClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Automatically evaluates and selects the best-fit PVT correlation for fluid property calculations. Compares candidate correlations against measured or laboratory data using statistical analysis and calibration to improve accuracy of pressure, temperature, and production performance modelling.
|
|
15
|
+
*
|
|
16
|
+
* @param {CorrSelectMind.GetPvtBestCorrelationQuery} request
|
|
17
|
+
* @param {PvtClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link CorrSelectMind.BadRequestError}
|
|
20
|
+
* @throws {@link CorrSelectMind.UnauthorizedError}
|
|
21
|
+
* @throws {@link CorrSelectMind.UnprocessableEntityError}
|
|
22
|
+
* @throws {@link CorrSelectMind.TooManyRequestsError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.pvt.selectPvt({
|
|
26
|
+
* tr: 1.1,
|
|
27
|
+
* yo: 1.1,
|
|
28
|
+
* yg: 1.1,
|
|
29
|
+
* pb: 1.1,
|
|
30
|
+
* tSep: 1.1,
|
|
31
|
+
* pSep: 1.1,
|
|
32
|
+
* pressures: [1.1],
|
|
33
|
+
* solutionGas: [1.1]
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
selectPvt(request: CorrSelectMind.GetPvtBestCorrelationQuery, requestOptions?: PvtClient.RequestOptions): core.HttpResponsePromise<CorrSelectMind.GetPvtBestCorrelationResponse>;
|
|
37
|
+
private __selectPvt;
|
|
38
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as CorrSelectMind from "../../../index.mjs";
|
|
18
|
+
export class PvtClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Automatically evaluates and selects the best-fit PVT correlation for fluid property calculations. Compares candidate correlations against measured or laboratory data using statistical analysis and calibration to improve accuracy of pressure, temperature, and production performance modelling.
|
|
24
|
+
*
|
|
25
|
+
* @param {CorrSelectMind.GetPvtBestCorrelationQuery} request
|
|
26
|
+
* @param {PvtClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link CorrSelectMind.BadRequestError}
|
|
29
|
+
* @throws {@link CorrSelectMind.UnauthorizedError}
|
|
30
|
+
* @throws {@link CorrSelectMind.UnprocessableEntityError}
|
|
31
|
+
* @throws {@link CorrSelectMind.TooManyRequestsError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.pvt.selectPvt({
|
|
35
|
+
* tr: 1.1,
|
|
36
|
+
* yo: 1.1,
|
|
37
|
+
* yg: 1.1,
|
|
38
|
+
* pb: 1.1,
|
|
39
|
+
* tSep: 1.1,
|
|
40
|
+
* pSep: 1.1,
|
|
41
|
+
* pressures: [1.1],
|
|
42
|
+
* solutionGas: [1.1]
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
selectPvt(request, requestOptions) {
|
|
46
|
+
return core.HttpResponsePromise.fromPromise(this.__selectPvt(request, requestOptions));
|
|
47
|
+
}
|
|
48
|
+
__selectPvt(request, requestOptions) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
51
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
52
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
53
|
+
const _response = yield core.fetcher({
|
|
54
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CorrSelectMindEnvironment.Default, "pvt"),
|
|
55
|
+
method: "POST",
|
|
56
|
+
headers: _headers,
|
|
57
|
+
contentType: "application/json",
|
|
58
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
59
|
+
requestType: "json",
|
|
60
|
+
body: request,
|
|
61
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
62
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
63
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
64
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
65
|
+
logging: this._options.logging,
|
|
66
|
+
});
|
|
67
|
+
if (_response.ok) {
|
|
68
|
+
return {
|
|
69
|
+
data: _response.body,
|
|
70
|
+
rawResponse: _response.rawResponse,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
if (_response.error.reason === "status-code") {
|
|
74
|
+
switch (_response.error.statusCode) {
|
|
75
|
+
case 400:
|
|
76
|
+
throw new CorrSelectMind.BadRequestError(_response.error.body, _response.rawResponse);
|
|
77
|
+
case 401:
|
|
78
|
+
throw new CorrSelectMind.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 422:
|
|
80
|
+
throw new CorrSelectMind.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 429:
|
|
82
|
+
throw new CorrSelectMind.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
83
|
+
default:
|
|
84
|
+
throw new errors.CorrSelectMindError({
|
|
85
|
+
statusCode: _response.error.statusCode,
|
|
86
|
+
body: _response.error.body,
|
|
87
|
+
rawResponse: _response.rawResponse,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/pvt");
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* tr: 1.1,
|
|
5
|
+
* yo: 1.1,
|
|
6
|
+
* yg: 1.1,
|
|
7
|
+
* pb: 1.1,
|
|
8
|
+
* tSep: 1.1,
|
|
9
|
+
* pSep: 1.1,
|
|
10
|
+
* pressures: [1.1],
|
|
11
|
+
* solutionGas: [1.1]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface GetPvtBestCorrelationQuery {
|
|
15
|
+
/** Reservoir temperature */
|
|
16
|
+
tr: number;
|
|
17
|
+
/** Oil specific gravity */
|
|
18
|
+
yo: number;
|
|
19
|
+
/** Gas specific gravity */
|
|
20
|
+
yg: number;
|
|
21
|
+
/** Bubble point pressure */
|
|
22
|
+
pb: number;
|
|
23
|
+
/** Separator temperature */
|
|
24
|
+
tSep: number;
|
|
25
|
+
/** Separator pressure */
|
|
26
|
+
pSep: number;
|
|
27
|
+
/** Laboratory reservoir pressures. Pressures below 25 bar are excluded from the correlation evaluation */
|
|
28
|
+
pressures: number[];
|
|
29
|
+
/** Laboratory solution gas */
|
|
30
|
+
solutionGas: number[];
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GetPvtBestCorrelationQuery } from "./GetPvtBestCorrelationQuery.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ErrorResponse {
|
|
2
|
+
/** Human-readable description of the error */
|
|
3
|
+
message: string;
|
|
4
|
+
/** Machine-readable error code identifying the error type */
|
|
5
|
+
errorCode: string;
|
|
6
|
+
/** Field-level validation errors, keyed by property name */
|
|
7
|
+
errors?: (Record<string, string[] | null> | null) | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as CorrSelectMind from "../index.mjs";
|
|
2
|
+
export interface GetPvtBestCorrelationResponse {
|
|
3
|
+
/** Best correlation */
|
|
4
|
+
bestCorrelation: GetPvtBestCorrelationResponse.BestCorrelation;
|
|
5
|
+
/** Reservoir pressures */
|
|
6
|
+
pressures: number[];
|
|
7
|
+
/** Laboratory solution gas */
|
|
8
|
+
solutionGas: number[];
|
|
9
|
+
/** AI-Marhoun correlation */
|
|
10
|
+
am: CorrSelectMind.Correlation;
|
|
11
|
+
/** Glasso correlation */
|
|
12
|
+
g: CorrSelectMind.Correlation;
|
|
13
|
+
/** Kartoatmadjo-Schmidt correlation */
|
|
14
|
+
ks: CorrSelectMind.Correlation;
|
|
15
|
+
/** Lasater correlation */
|
|
16
|
+
l: CorrSelectMind.Correlation;
|
|
17
|
+
/** Petrosky-Farshad correlation */
|
|
18
|
+
pf: CorrSelectMind.Correlation;
|
|
19
|
+
/** Standing correlation */
|
|
20
|
+
s: CorrSelectMind.Correlation;
|
|
21
|
+
/** Vasquez-Beggs correlation */
|
|
22
|
+
vb: CorrSelectMind.Correlation;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace GetPvtBestCorrelationResponse {
|
|
25
|
+
/** Best correlation */
|
|
26
|
+
const BestCorrelation: {
|
|
27
|
+
readonly Standing: "STANDING";
|
|
28
|
+
readonly VasquezBeggs: "VASQUEZ_BEGGS";
|
|
29
|
+
readonly Glaso: "GLASO";
|
|
30
|
+
readonly MECO: "M_E_C_O";
|
|
31
|
+
readonly KartoatmadjoSchmidt: "KARTOATMADJO_SCHMIDT";
|
|
32
|
+
readonly PetroskyFarshad: "PETROSKY_FARSHAD";
|
|
33
|
+
readonly Lasater: "LASATER";
|
|
34
|
+
};
|
|
35
|
+
type BestCorrelation = (typeof BestCorrelation)[keyof typeof BestCorrelation];
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var GetPvtBestCorrelationResponse;
|
|
3
|
+
(function (GetPvtBestCorrelationResponse) {
|
|
4
|
+
/** Best correlation */
|
|
5
|
+
GetPvtBestCorrelationResponse.BestCorrelation = {
|
|
6
|
+
Standing: "STANDING",
|
|
7
|
+
VasquezBeggs: "VASQUEZ_BEGGS",
|
|
8
|
+
Glaso: "GLASO",
|
|
9
|
+
MECO: "M_E_C_O",
|
|
10
|
+
KartoatmadjoSchmidt: "KARTOATMADJO_SCHMIDT",
|
|
11
|
+
PetroskyFarshad: "PETROSKY_FARSHAD",
|
|
12
|
+
Lasater: "LASATER",
|
|
13
|
+
};
|
|
14
|
+
})(GetPvtBestCorrelationResponse || (GetPvtBestCorrelationResponse = {}));
|