flexprice-ts-temp 0.0.56 → 0.0.57
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/commonjs/index.extras.d.ts +1 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +27 -2
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -11
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +7 -17
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/windowsize.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/windowsize.js +1 -1
- package/dist/commonjs/sdk/models/shared/windowsize.js.map +1 -1
- package/dist/esm/index.extras.d.ts +1 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +4 -2
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -11
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +6 -16
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/shared/windowsize.d.ts +1 -1
- package/dist/esm/sdk/models/shared/windowsize.js +1 -1
- package/dist/esm/sdk/models/shared/windowsize.js.map +1 -1
- package/docs/sdk/models/shared/windowsize.md +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/index.extras.ts +4 -2
- package/src/lib/config.ts +8 -23
- package/src/sdk/models/shared/windowsize.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAMA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,cAAc,sBAAsB,CAAC"}
|
|
@@ -10,16 +10,41 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
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
|
+
});
|
|
13
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
20
|
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
16
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.operations = void 0;
|
|
17
40
|
/*
|
|
18
41
|
* Re-export all Speakeasy-generated SDK modules from the root so consumers can do:
|
|
19
|
-
* import { Flexprice, FeatureType,
|
|
20
|
-
*
|
|
42
|
+
* import { Flexprice, FeatureType, FlexpriceError, operations } from "flexprice-ts-temp";
|
|
43
|
+
* // operations.CreateCustomerRequest, operations.CreateCustomerResponse, etc.
|
|
44
|
+
* Shared, errors, and types are at top level; operations are under "operations" to avoid name collisions.
|
|
21
45
|
*/
|
|
22
46
|
__exportStar(require("./sdk/models/shared/index.js"), exports);
|
|
23
47
|
__exportStar(require("./sdk/models/errors/index.js"), exports);
|
|
48
|
+
exports.operations = __importStar(require("./sdk/models/operations/index.js"));
|
|
24
49
|
__exportStar(require("./sdk/types/index.js"), exports);
|
|
25
50
|
//# sourceMappingURL=index.extras.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,+DAA6C;AAC7C,+DAA6C;AAC7C,+EAA+D;AAC/D,uDAAqC"}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { HTTPClient } from "./http.js";
|
|
2
2
|
import { Logger } from "./logger.js";
|
|
3
3
|
import { RetryConfig } from "./retries.js";
|
|
4
|
-
/**
|
|
5
|
-
* Contains the list of servers available to the SDK
|
|
6
|
-
*/
|
|
7
|
-
export declare const ServerList: readonly ["/v1"];
|
|
8
4
|
export type SDKOptions = {
|
|
9
5
|
apiKeyAuth?: string | (() => Promise<string>) | undefined;
|
|
10
6
|
httpClient?: HTTPClient;
|
|
11
|
-
/**
|
|
12
|
-
* Allows overriding the default server used by the SDK
|
|
13
|
-
*/
|
|
14
|
-
serverIdx?: number | undefined;
|
|
15
7
|
/**
|
|
16
8
|
* Specifies the server URL to be used by the SDK
|
|
17
9
|
*/
|
|
@@ -31,8 +23,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
23
|
export declare const SDK_METADATA: {
|
|
32
24
|
readonly language: "typescript";
|
|
33
25
|
readonly openapiDocVersion: "1.0";
|
|
34
|
-
readonly sdkVersion: "0.0.
|
|
35
|
-
readonly genVersion: "2.845.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
26
|
+
readonly sdkVersion: "0.0.57";
|
|
27
|
+
readonly genVersion: "2.845.12";
|
|
28
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.57 2.845.12 1.0 flexprice-ts-temp";
|
|
37
29
|
};
|
|
38
30
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAWpE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
|
@@ -3,33 +3,23 @@
|
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SDK_METADATA =
|
|
6
|
+
exports.SDK_METADATA = void 0;
|
|
7
7
|
exports.serverURLFromOptions = serverURLFromOptions;
|
|
8
8
|
const url_js_1 = require("./url.js");
|
|
9
|
-
/**
|
|
10
|
-
* Contains the list of servers available to the SDK
|
|
11
|
-
*/
|
|
12
|
-
exports.ServerList = [
|
|
13
|
-
"/v1",
|
|
14
|
-
];
|
|
15
9
|
function serverURLFromOptions(options) {
|
|
16
|
-
|
|
17
|
-
const params = {};
|
|
10
|
+
const serverURL = options.serverURL;
|
|
18
11
|
if (!serverURL) {
|
|
19
|
-
|
|
20
|
-
if (serverIdx < 0 || serverIdx >= exports.ServerList.length) {
|
|
21
|
-
throw new Error(`Invalid server index ${serverIdx}`);
|
|
22
|
-
}
|
|
23
|
-
serverURL = exports.ServerList[serverIdx] || "";
|
|
12
|
+
return null;
|
|
24
13
|
}
|
|
14
|
+
const params = {};
|
|
25
15
|
const u = (0, url_js_1.pathToFunc)(serverURL)(params);
|
|
26
16
|
return new URL(u);
|
|
27
17
|
}
|
|
28
18
|
exports.SDK_METADATA = {
|
|
29
19
|
language: "typescript",
|
|
30
20
|
openapiDocVersion: "1.0",
|
|
31
|
-
sdkVersion: "0.0.
|
|
32
|
-
genVersion: "2.845.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
21
|
+
sdkVersion: "0.0.57",
|
|
22
|
+
genVersion: "2.845.12",
|
|
23
|
+
userAgent: "speakeasy-sdk/typescript 0.0.57 2.845.12 1.0 flexprice-ts-temp",
|
|
34
24
|
};
|
|
35
25
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA2BH,oDAWC;AAjCD,qCAAsC;AAsBtC,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEpC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAuC,EAAE,CAAC;IAEtD,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,UAAU;IACtB,SAAS,EAAE,gEAAgE;CACnE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
export declare const WindowSize: {
|
|
4
|
-
readonly Month: "MONTH";
|
|
5
4
|
readonly Minute: "MINUTE";
|
|
6
5
|
readonly FifteenMIN: "15MIN";
|
|
7
6
|
readonly ThirtyMIN: "30MIN";
|
|
@@ -11,6 +10,7 @@ export declare const WindowSize: {
|
|
|
11
10
|
readonly TwelveHOUR: "12HOUR";
|
|
12
11
|
readonly Day: "DAY";
|
|
13
12
|
readonly Week: "WEEK";
|
|
13
|
+
readonly Month: "MONTH";
|
|
14
14
|
};
|
|
15
15
|
export type WindowSize = ClosedEnum<typeof WindowSize>;
|
|
16
16
|
/** @internal */
|
|
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.WindowSize$outboundSchema = exports.WindowSize$inboundSchema = exports.WindowSize = void 0;
|
|
40
40
|
const z = __importStar(require("zod/v3"));
|
|
41
41
|
exports.WindowSize = {
|
|
42
|
-
Month: "MONTH",
|
|
43
42
|
Minute: "MINUTE",
|
|
44
43
|
FifteenMIN: "15MIN",
|
|
45
44
|
ThirtyMIN: "30MIN",
|
|
@@ -49,6 +48,7 @@ exports.WindowSize = {
|
|
|
49
48
|
TwelveHOUR: "12HOUR",
|
|
50
49
|
Day: "DAY",
|
|
51
50
|
Week: "WEEK",
|
|
51
|
+
Month: "MONTH",
|
|
52
52
|
};
|
|
53
53
|
/** @internal */
|
|
54
54
|
exports.WindowSize$inboundSchema = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windowsize.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/windowsize.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,UAAU,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"windowsize.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/windowsize.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,QAAQ;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAC1B,gBAAgB;AACH,QAAA,yBAAyB,GACpC,gCAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.extras.d.ts","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAMA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,cAAc,sBAAsB,CAAC"}
|
package/dist/esm/index.extras.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Re-export all Speakeasy-generated SDK modules from the root so consumers can do:
|
|
3
|
-
* import { Flexprice, FeatureType,
|
|
4
|
-
*
|
|
3
|
+
* import { Flexprice, FeatureType, FlexpriceError, operations } from "flexprice-ts-temp";
|
|
4
|
+
* // operations.CreateCustomerRequest, operations.CreateCustomerResponse, etc.
|
|
5
|
+
* Shared, errors, and types are at top level; operations are under "operations" to avoid name collisions.
|
|
5
6
|
*/
|
|
6
7
|
export * from "./sdk/models/shared/index.js";
|
|
7
8
|
export * from "./sdk/models/errors/index.js";
|
|
9
|
+
export * as operations from "./sdk/models/operations/index.js";
|
|
8
10
|
export * from "./sdk/types/index.js";
|
|
9
11
|
//# sourceMappingURL=index.extras.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.extras.js","sourceRoot":"","sources":["../../src/index.extras.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,cAAc,sBAAsB,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { HTTPClient } from "./http.js";
|
|
2
2
|
import { Logger } from "./logger.js";
|
|
3
3
|
import { RetryConfig } from "./retries.js";
|
|
4
|
-
/**
|
|
5
|
-
* Contains the list of servers available to the SDK
|
|
6
|
-
*/
|
|
7
|
-
export declare const ServerList: readonly ["/v1"];
|
|
8
4
|
export type SDKOptions = {
|
|
9
5
|
apiKeyAuth?: string | (() => Promise<string>) | undefined;
|
|
10
6
|
httpClient?: HTTPClient;
|
|
11
|
-
/**
|
|
12
|
-
* Allows overriding the default server used by the SDK
|
|
13
|
-
*/
|
|
14
|
-
serverIdx?: number | undefined;
|
|
15
7
|
/**
|
|
16
8
|
* Specifies the server URL to be used by the SDK
|
|
17
9
|
*/
|
|
@@ -31,8 +23,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
23
|
export declare const SDK_METADATA: {
|
|
32
24
|
readonly language: "typescript";
|
|
33
25
|
readonly openapiDocVersion: "1.0";
|
|
34
|
-
readonly sdkVersion: "0.0.
|
|
35
|
-
readonly genVersion: "2.845.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
26
|
+
readonly sdkVersion: "0.0.57";
|
|
27
|
+
readonly genVersion: "2.845.12";
|
|
28
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.57 2.845.12 1.0 flexprice-ts-temp";
|
|
37
29
|
};
|
|
38
30
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAWpE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -2,30 +2,20 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import { pathToFunc } from "./url.js";
|
|
5
|
-
/**
|
|
6
|
-
* Contains the list of servers available to the SDK
|
|
7
|
-
*/
|
|
8
|
-
export const ServerList = [
|
|
9
|
-
"/v1",
|
|
10
|
-
];
|
|
11
5
|
export function serverURLFromOptions(options) {
|
|
12
|
-
|
|
13
|
-
const params = {};
|
|
6
|
+
const serverURL = options.serverURL;
|
|
14
7
|
if (!serverURL) {
|
|
15
|
-
|
|
16
|
-
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
17
|
-
throw new Error(`Invalid server index ${serverIdx}`);
|
|
18
|
-
}
|
|
19
|
-
serverURL = ServerList[serverIdx] || "";
|
|
8
|
+
return null;
|
|
20
9
|
}
|
|
10
|
+
const params = {};
|
|
21
11
|
const u = pathToFunc(serverURL)(params);
|
|
22
12
|
return new URL(u);
|
|
23
13
|
}
|
|
24
14
|
export const SDK_METADATA = {
|
|
25
15
|
language: "typescript",
|
|
26
16
|
openapiDocVersion: "1.0",
|
|
27
|
-
sdkVersion: "0.0.
|
|
28
|
-
genVersion: "2.845.
|
|
29
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
17
|
+
sdkVersion: "0.0.57",
|
|
18
|
+
genVersion: "2.845.12",
|
|
19
|
+
userAgent: "speakeasy-sdk/typescript 0.0.57 2.845.12 1.0 flexprice-ts-temp",
|
|
30
20
|
};
|
|
31
21
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAsBtC,MAAM,UAAU,oBAAoB,CAAC,OAAmB;IACtD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEpC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAuC,EAAE,CAAC;IAEtD,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,UAAU;IACtB,SAAS,EAAE,gEAAgE;CACnE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
export declare const WindowSize: {
|
|
4
|
-
readonly Month: "MONTH";
|
|
5
4
|
readonly Minute: "MINUTE";
|
|
6
5
|
readonly FifteenMIN: "15MIN";
|
|
7
6
|
readonly ThirtyMIN: "30MIN";
|
|
@@ -11,6 +10,7 @@ export declare const WindowSize: {
|
|
|
11
10
|
readonly TwelveHOUR: "12HOUR";
|
|
12
11
|
readonly Day: "DAY";
|
|
13
12
|
readonly Week: "WEEK";
|
|
13
|
+
readonly Month: "MONTH";
|
|
14
14
|
};
|
|
15
15
|
export type WindowSize = ClosedEnum<typeof WindowSize>;
|
|
16
16
|
/** @internal */
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
export const WindowSize = {
|
|
6
|
-
Month: "MONTH",
|
|
7
6
|
Minute: "MINUTE",
|
|
8
7
|
FifteenMIN: "15MIN",
|
|
9
8
|
ThirtyMIN: "30MIN",
|
|
@@ -13,6 +12,7 @@ export const WindowSize = {
|
|
|
13
12
|
TwelveHOUR: "12HOUR",
|
|
14
13
|
Day: "DAY",
|
|
15
14
|
Week: "WEEK",
|
|
15
|
+
Month: "MONTH",
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
18
|
export const WindowSize$inboundSchema = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windowsize.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/windowsize.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"windowsize.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/windowsize.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,QAAQ;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,UAAU,CAAC,CAAC;AAC1B,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GACpC,wBAAwB,CAAC"}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
```typescript
|
|
6
6
|
import { WindowSize } from "flexprice-ts-temp/sdk/models/shared";
|
|
7
7
|
|
|
8
|
-
let value: WindowSize = "
|
|
8
|
+
let value: WindowSize = "12HOUR";
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Values
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
"
|
|
14
|
+
"MINUTE" | "15MIN" | "30MIN" | "HOUR" | "3HOUR" | "6HOUR" | "12HOUR" | "DAY" | "WEEK" | "MONTH"
|
|
15
15
|
```
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/index.extras.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Re-export all Speakeasy-generated SDK modules from the root so consumers can do:
|
|
3
|
-
* import { Flexprice, FeatureType,
|
|
4
|
-
*
|
|
3
|
+
* import { Flexprice, FeatureType, FlexpriceError, operations } from "flexprice-ts-temp";
|
|
4
|
+
* // operations.CreateCustomerRequest, operations.CreateCustomerResponse, etc.
|
|
5
|
+
* Shared, errors, and types are at top level; operations are under "operations" to avoid name collisions.
|
|
5
6
|
*/
|
|
6
7
|
export * from "./sdk/models/shared/index.js";
|
|
7
8
|
export * from "./sdk/models/errors/index.js";
|
|
9
|
+
export * as operations from "./sdk/models/operations/index.js";
|
|
8
10
|
export * from "./sdk/types/index.js";
|
package/src/lib/config.ts
CHANGED
|
@@ -5,23 +5,12 @@
|
|
|
5
5
|
import { HTTPClient } from "./http.js";
|
|
6
6
|
import { Logger } from "./logger.js";
|
|
7
7
|
import { RetryConfig } from "./retries.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Contains the list of servers available to the SDK
|
|
12
|
-
*/
|
|
13
|
-
export const ServerList = [
|
|
14
|
-
"/v1",
|
|
15
|
-
] as const;
|
|
8
|
+
import { pathToFunc } from "./url.js";
|
|
16
9
|
|
|
17
10
|
export type SDKOptions = {
|
|
18
11
|
apiKeyAuth?: string | (() => Promise<string>) | undefined;
|
|
19
12
|
|
|
20
13
|
httpClient?: HTTPClient;
|
|
21
|
-
/**
|
|
22
|
-
* Allows overriding the default server used by the SDK
|
|
23
|
-
*/
|
|
24
|
-
serverIdx?: number | undefined;
|
|
25
14
|
/**
|
|
26
15
|
* Specifies the server URL to be used by the SDK
|
|
27
16
|
*/
|
|
@@ -39,18 +28,14 @@ export type SDKOptions = {
|
|
|
39
28
|
};
|
|
40
29
|
|
|
41
30
|
export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const params: Params = {};
|
|
31
|
+
const serverURL = options.serverURL;
|
|
45
32
|
|
|
46
33
|
if (!serverURL) {
|
|
47
|
-
|
|
48
|
-
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
49
|
-
throw new Error(`Invalid server index ${serverIdx}`);
|
|
50
|
-
}
|
|
51
|
-
serverURL = ServerList[serverIdx] || "";
|
|
34
|
+
return null;
|
|
52
35
|
}
|
|
53
36
|
|
|
37
|
+
const params: Record<string, string | undefined> = {};
|
|
38
|
+
|
|
54
39
|
const u = pathToFunc(serverURL)(params);
|
|
55
40
|
return new URL(u);
|
|
56
41
|
}
|
|
@@ -58,7 +43,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
43
|
export const SDK_METADATA = {
|
|
59
44
|
language: "typescript",
|
|
60
45
|
openapiDocVersion: "1.0",
|
|
61
|
-
sdkVersion: "0.0.
|
|
62
|
-
genVersion: "2.845.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
46
|
+
sdkVersion: "0.0.57",
|
|
47
|
+
genVersion: "2.845.12",
|
|
48
|
+
userAgent: "speakeasy-sdk/typescript 0.0.57 2.845.12 1.0 flexprice-ts-temp",
|
|
64
49
|
} as const;
|
|
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const WindowSize = {
|
|
9
|
-
Month: "MONTH",
|
|
10
9
|
Minute: "MINUTE",
|
|
11
10
|
FifteenMIN: "15MIN",
|
|
12
11
|
ThirtyMIN: "30MIN",
|
|
@@ -16,6 +15,7 @@ export const WindowSize = {
|
|
|
16
15
|
TwelveHOUR: "12HOUR",
|
|
17
16
|
Day: "DAY",
|
|
18
17
|
Week: "WEEK",
|
|
18
|
+
Month: "MONTH",
|
|
19
19
|
} as const;
|
|
20
20
|
export type WindowSize = ClosedEnum<typeof WindowSize>;
|
|
21
21
|
|