conductor-node 7.4.10 → 7.4.11
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/package.json
CHANGED
package/dist/src/Client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Environment } from "./environment";
|
|
2
1
|
import type { GraphqlCreateIntegrationConnectionInput, GraphqlCreateIntegrationConnectionMutation, GraphqlGetConnectionStatusQuery, GraphqlGetConnectionStatusQueryVariables, GraphqlGetIntegrationConnectionQuery, GraphqlGetIntegrationConnectionQueryVariables, GraphqlGetIntegrationConnectionsQuery, GraphqlSendIntegrationRequestInput, GraphqlSendIntegrationRequestMutation } from "./graphql/__generated__/operationTypes";
|
|
3
2
|
import QbdIntegration from "./integrations/qbd/QbdIntegration";
|
|
3
|
+
import type { Environment } from "./utils/environment";
|
|
4
4
|
export interface ClientOptions {
|
|
5
5
|
/** Log each request and response. */
|
|
6
6
|
readonly verbose?: boolean;
|
package/dist/src/Client.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const package_json_1 = __importDefault(require("./../package.json"));
|
|
7
|
-
const environment_1 = require("./environment");
|
|
8
7
|
const operationTypes_1 = require("./graphql/__generated__/operationTypes");
|
|
9
8
|
const QbdIntegration_1 = __importDefault(require("./integrations/qbd/QbdIntegration"));
|
|
9
|
+
const environment_1 = require("./utils/environment");
|
|
10
10
|
const chalk_1 = __importDefault(require("chalk"));
|
|
11
11
|
const graphql_request_1 = require("graphql-request");
|
|
12
12
|
const node_child_process_1 = require("node:child_process");
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export type Environment = "development" | "production" | "
|
|
1
|
+
export type Environment = "development" | "production" | "test";
|
|
2
2
|
export declare const currentEnvironment: {
|
|
3
3
|
name: Environment;
|
|
4
4
|
isTest: boolean;
|
|
5
5
|
isDevelopment: boolean;
|
|
6
|
-
isStaging: boolean;
|
|
7
6
|
isProduction: boolean;
|
|
8
7
|
};
|
|
9
8
|
export declare function getServerUrlForEnvironment(environment: Environment): string;
|
|
@@ -6,7 +6,6 @@ exports.currentEnvironment = {
|
|
|
6
6
|
name: currentEnvironmentName,
|
|
7
7
|
isTest: currentEnvironmentName === "test",
|
|
8
8
|
isDevelopment: currentEnvironmentName === "development",
|
|
9
|
-
isStaging: currentEnvironmentName === "staging",
|
|
10
9
|
isProduction: currentEnvironmentName === "production",
|
|
11
10
|
};
|
|
12
11
|
function getServerUrlForEnvironment(environment) {
|
|
@@ -18,9 +17,6 @@ function getServerUrlForEnvironment(environment) {
|
|
|
18
17
|
case "development": {
|
|
19
18
|
return "https://conductor.ngrok.io";
|
|
20
19
|
}
|
|
21
|
-
case "staging": {
|
|
22
|
-
return "https://staging.api.conductor.is";
|
|
23
|
-
}
|
|
24
20
|
case "production": {
|
|
25
21
|
return "https://production.api.conductor.is";
|
|
26
22
|
}
|
package/package.json
CHANGED