@nizam-os/operator-sdk 6.0.0 → 7.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.
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +10 -6
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/pricing/client/Client.d.ts +30 -0
- package/dist/api/resources/pricing/client/Client.js +108 -0
- package/dist/api/resources/pricing/client/index.d.ts +1 -0
- package/dist/api/resources/pricing/client/index.js +2 -0
- package/dist/api/resources/pricing/exports.d.ts +2 -0
- package/dist/api/resources/pricing/exports.js +21 -0
- package/dist/api/resources/pricing/index.d.ts +1 -0
- package/dist/api/resources/pricing/index.js +17 -0
- package/dist/api/types/CreatePlanRequest.d.ts +49 -0
- package/dist/api/types/CreatePlanRequest.js +25 -0
- package/dist/api/types/ListResponsePricingPlan.d.ts +27 -0
- package/dist/api/types/ListResponsePricingPlan.js +11 -0
- package/dist/api/types/ListResponseSubscriptionPlan.d.ts +27 -0
- package/dist/api/types/ListResponseSubscriptionPlan.js +11 -0
- package/dist/api/types/Money.d.ts +11 -0
- package/dist/api/types/Money.js +3 -0
- package/dist/api/types/PlanFeatures.d.ts +9 -0
- package/dist/api/types/PlanFeatures.js +3 -0
- package/dist/api/types/PlanFeaturesRequest.d.ts +9 -0
- package/dist/api/types/PlanFeaturesRequest.js +3 -0
- package/dist/api/types/PricingPlan.d.ts +48 -0
- package/dist/api/types/PricingPlan.js +28 -0
- package/dist/api/types/SubscriptionPlan.d.ts +89 -0
- package/dist/api/types/SubscriptionPlan.js +47 -0
- package/dist/api/types/UpdatePlanRequest.d.ts +47 -0
- package/dist/api/types/UpdatePlanRequest.js +25 -0
- package/dist/api/types/User.d.ts +2 -0
- package/dist/api/types/User.js +2 -0
- package/dist/api/types/index.d.ts +9 -0
- package/dist/api/types/index.js +9 -0
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { LookupsClient } from "./api/resources/lookups/client/Client.js";
|
|
|
6
6
|
import { NotificationPreferencesClient } from "./api/resources/notificationPreferences/client/Client.js";
|
|
7
7
|
import { NotificationsClient } from "./api/resources/notifications/client/Client.js";
|
|
8
8
|
import { PositionsClient } from "./api/resources/positions/client/Client.js";
|
|
9
|
+
import { PricingClient } from "./api/resources/pricing/client/Client.js";
|
|
9
10
|
import { RealtimeClient } from "./api/resources/realtime/client/Client.js";
|
|
10
11
|
import { TaskAttemptsClient } from "./api/resources/taskAttempts/client/Client.js";
|
|
11
12
|
import { UsersClient } from "./api/resources/users/client/Client.js";
|
|
@@ -28,6 +29,7 @@ export declare class NizamOperatorRuntimeClient {
|
|
|
28
29
|
protected _positions: PositionsClient | undefined;
|
|
29
30
|
protected _notificationPreferences: NotificationPreferencesClient | undefined;
|
|
30
31
|
protected _notifications: NotificationsClient | undefined;
|
|
32
|
+
protected _pricing: PricingClient | undefined;
|
|
31
33
|
protected _realtime: RealtimeClient | undefined;
|
|
32
34
|
protected _taskAttempts: TaskAttemptsClient | undefined;
|
|
33
35
|
constructor(options: NizamOperatorRuntimeClient.Options);
|
|
@@ -40,6 +42,7 @@ export declare class NizamOperatorRuntimeClient {
|
|
|
40
42
|
get positions(): PositionsClient;
|
|
41
43
|
get notificationPreferences(): NotificationPreferencesClient;
|
|
42
44
|
get notifications(): NotificationsClient;
|
|
45
|
+
get pricing(): PricingClient;
|
|
43
46
|
get realtime(): RealtimeClient;
|
|
44
47
|
get taskAttempts(): TaskAttemptsClient;
|
|
45
48
|
/**
|
package/dist/Client.js
CHANGED
|
@@ -43,9 +43,10 @@ const Client_js_5 = require("./api/resources/lookups/client/Client.js");
|
|
|
43
43
|
const Client_js_6 = require("./api/resources/notificationPreferences/client/Client.js");
|
|
44
44
|
const Client_js_7 = require("./api/resources/notifications/client/Client.js");
|
|
45
45
|
const Client_js_8 = require("./api/resources/positions/client/Client.js");
|
|
46
|
-
const Client_js_9 = require("./api/resources/
|
|
47
|
-
const Client_js_10 = require("./api/resources/
|
|
48
|
-
const Client_js_11 = require("./api/resources/
|
|
46
|
+
const Client_js_9 = require("./api/resources/pricing/client/Client.js");
|
|
47
|
+
const Client_js_10 = require("./api/resources/realtime/client/Client.js");
|
|
48
|
+
const Client_js_11 = require("./api/resources/taskAttempts/client/Client.js");
|
|
49
|
+
const Client_js_12 = require("./api/resources/users/client/Client.js");
|
|
49
50
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
50
51
|
const core = __importStar(require("./core/index.js"));
|
|
51
52
|
class NizamOperatorRuntimeClient {
|
|
@@ -62,7 +63,7 @@ class NizamOperatorRuntimeClient {
|
|
|
62
63
|
return (this._lookups ?? (this._lookups = new Client_js_5.LookupsClient(this._options)));
|
|
63
64
|
}
|
|
64
65
|
get users() {
|
|
65
|
-
return (this._users ?? (this._users = new
|
|
66
|
+
return (this._users ?? (this._users = new Client_js_12.UsersClient(this._options)));
|
|
66
67
|
}
|
|
67
68
|
get assets() {
|
|
68
69
|
return (this._assets ?? (this._assets = new Client_js_1.AssetsClient(this._options)));
|
|
@@ -79,11 +80,14 @@ class NizamOperatorRuntimeClient {
|
|
|
79
80
|
get notifications() {
|
|
80
81
|
return (this._notifications ?? (this._notifications = new Client_js_7.NotificationsClient(this._options)));
|
|
81
82
|
}
|
|
83
|
+
get pricing() {
|
|
84
|
+
return (this._pricing ?? (this._pricing = new Client_js_9.PricingClient(this._options)));
|
|
85
|
+
}
|
|
82
86
|
get realtime() {
|
|
83
|
-
return (this._realtime ?? (this._realtime = new
|
|
87
|
+
return (this._realtime ?? (this._realtime = new Client_js_10.RealtimeClient(this._options)));
|
|
84
88
|
}
|
|
85
89
|
get taskAttempts() {
|
|
86
|
-
return (this._taskAttempts ?? (this._taskAttempts = new
|
|
90
|
+
return (this._taskAttempts ?? (this._taskAttempts = new Client_js_11.TaskAttemptsClient(this._options)));
|
|
87
91
|
}
|
|
88
92
|
/**
|
|
89
93
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -14,6 +14,7 @@ export * from "./notifications/client/requests/index.js";
|
|
|
14
14
|
export * as notifications from "./notifications/index.js";
|
|
15
15
|
export * from "./notifications/types/index.js";
|
|
16
16
|
export * as positions from "./positions/index.js";
|
|
17
|
+
export * as pricing from "./pricing/index.js";
|
|
17
18
|
export * as realtime from "./realtime/index.js";
|
|
18
19
|
export * from "./taskAttempts/client/requests/index.js";
|
|
19
20
|
export * as taskAttempts from "./taskAttempts/index.js";
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.taskAttempts = exports.realtime = exports.positions = exports.notifications = exports.notificationPreferences = exports.lookups = exports.invites = exports.files = exports.devices = exports.assets = void 0;
|
|
39
|
+
exports.users = exports.taskAttempts = exports.realtime = exports.pricing = exports.positions = exports.notifications = exports.notificationPreferences = exports.lookups = exports.invites = exports.files = exports.devices = exports.assets = void 0;
|
|
40
40
|
__exportStar(require("./assets/client/requests/index.js"), exports);
|
|
41
41
|
exports.assets = __importStar(require("./assets/index.js"));
|
|
42
42
|
__exportStar(require("./devices/client/requests/index.js"), exports);
|
|
@@ -53,6 +53,7 @@ __exportStar(require("./notifications/client/requests/index.js"), exports);
|
|
|
53
53
|
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
54
54
|
__exportStar(require("./notifications/types/index.js"), exports);
|
|
55
55
|
exports.positions = __importStar(require("./positions/index.js"));
|
|
56
|
+
exports.pricing = __importStar(require("./pricing/index.js"));
|
|
56
57
|
exports.realtime = __importStar(require("./realtime/index.js"));
|
|
57
58
|
__exportStar(require("./taskAttempts/client/requests/index.js"), exports);
|
|
58
59
|
exports.taskAttempts = __importStar(require("./taskAttempts/index.js"));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as NizamOperatorRuntime from "../../../index.js";
|
|
5
|
+
export declare namespace PricingClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Public subscription pricing for the pricing page (no authentication).
|
|
12
|
+
*/
|
|
13
|
+
export declare class PricingClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PricingClient.Options>;
|
|
15
|
+
constructor(options: PricingClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* The active, visible subscription plans for the public pricing page, ordered for display. Anonymous — no authentication required.
|
|
18
|
+
*
|
|
19
|
+
* @param {PricingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
+
*
|
|
21
|
+
* @throws {@link NizamOperatorRuntime.UnauthorizedError}
|
|
22
|
+
* @throws {@link NizamOperatorRuntime.TooManyRequestsError}
|
|
23
|
+
* @throws {@link NizamOperatorRuntime.InternalServerError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.pricing.listPricing()
|
|
27
|
+
*/
|
|
28
|
+
listPricing(requestOptions?: PricingClient.RequestOptions): core.HttpResponsePromise<NizamOperatorRuntime.ListResponsePricingPlan>;
|
|
29
|
+
private __listPricing;
|
|
30
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PricingClient = void 0;
|
|
38
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
39
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
42
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
43
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
44
|
+
const NizamOperatorRuntime = __importStar(require("../../../index.js"));
|
|
45
|
+
/**
|
|
46
|
+
* Public subscription pricing for the pricing page (no authentication).
|
|
47
|
+
*/
|
|
48
|
+
class PricingClient {
|
|
49
|
+
constructor(options) {
|
|
50
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The active, visible subscription plans for the public pricing page, ordered for display. Anonymous — no authentication required.
|
|
54
|
+
*
|
|
55
|
+
* @param {PricingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link NizamOperatorRuntime.UnauthorizedError}
|
|
58
|
+
* @throws {@link NizamOperatorRuntime.TooManyRequestsError}
|
|
59
|
+
* @throws {@link NizamOperatorRuntime.InternalServerError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await client.pricing.listPricing()
|
|
63
|
+
*/
|
|
64
|
+
listPricing(requestOptions) {
|
|
65
|
+
return core.HttpResponsePromise.fromPromise(this.__listPricing(requestOptions));
|
|
66
|
+
}
|
|
67
|
+
async __listPricing(requestOptions) {
|
|
68
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
69
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
70
|
+
const _response = await core.fetcher({
|
|
71
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
72
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
73
|
+
environments.NizamOperatorRuntimeEnvironment.Production, "v1/pricing"),
|
|
74
|
+
method: "GET",
|
|
75
|
+
headers: _headers,
|
|
76
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
77
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
78
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
79
|
+
abortSignal: requestOptions?.abortSignal,
|
|
80
|
+
fetchFn: this._options?.fetch,
|
|
81
|
+
logging: this._options.logging,
|
|
82
|
+
});
|
|
83
|
+
if (_response.ok) {
|
|
84
|
+
return {
|
|
85
|
+
data: _response.body,
|
|
86
|
+
rawResponse: _response.rawResponse,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
if (_response.error.reason === "status-code") {
|
|
90
|
+
switch (_response.error.statusCode) {
|
|
91
|
+
case 401:
|
|
92
|
+
throw new NizamOperatorRuntime.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
93
|
+
case 429:
|
|
94
|
+
throw new NizamOperatorRuntime.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
95
|
+
case 500:
|
|
96
|
+
throw new NizamOperatorRuntime.InternalServerError(_response.error.body, _response.rawResponse);
|
|
97
|
+
default:
|
|
98
|
+
throw new errors.NizamOperatorRuntimeError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.body,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/pricing");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.PricingClient = PricingClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.PricingClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "PricingClient", { enumerable: true, get: function () { return Client_js_1.PricingClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type * as NizamOperatorRuntime from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Author a new draft subscription plan.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePlanRequest {
|
|
6
|
+
/** Stable plan code (natural key) — a lowercase url-safe slug. */
|
|
7
|
+
code: string;
|
|
8
|
+
/** Display name. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Description. */
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
/** Recurring price in the currency's minor units. */
|
|
13
|
+
price_minor_units?: number | undefined;
|
|
14
|
+
/** ISO-4217 currency code. */
|
|
15
|
+
currency: string;
|
|
16
|
+
/** One-time setup fee in minor units (default 0). */
|
|
17
|
+
setup_fee_minor_units?: number | undefined;
|
|
18
|
+
/** Pricing shape. */
|
|
19
|
+
billing_model: CreatePlanRequest.BillingModel;
|
|
20
|
+
/** Billing cadence. */
|
|
21
|
+
billing_period: CreatePlanRequest.BillingPeriod;
|
|
22
|
+
/** Sort position on the pricing page (ascending). */
|
|
23
|
+
position?: number | undefined;
|
|
24
|
+
/** Default free-trial length in days. */
|
|
25
|
+
default_trial_days?: number | undefined;
|
|
26
|
+
features?: NizamOperatorRuntime.PlanFeaturesRequest | undefined;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace CreatePlanRequest {
|
|
29
|
+
/** Pricing shape. */
|
|
30
|
+
const BillingModel: {
|
|
31
|
+
readonly Free: "free";
|
|
32
|
+
readonly Flat: "flat";
|
|
33
|
+
readonly PerSeat: "per_seat";
|
|
34
|
+
readonly PerEvent: "per_event";
|
|
35
|
+
readonly Tiered: "tiered";
|
|
36
|
+
readonly Hybrid: "hybrid";
|
|
37
|
+
};
|
|
38
|
+
type BillingModel = (typeof BillingModel)[keyof typeof BillingModel];
|
|
39
|
+
/** Billing cadence. */
|
|
40
|
+
const BillingPeriod: {
|
|
41
|
+
readonly Weekly: "weekly";
|
|
42
|
+
readonly Biweekly: "biweekly";
|
|
43
|
+
readonly Monthly: "monthly";
|
|
44
|
+
readonly Quarterly: "quarterly";
|
|
45
|
+
readonly Semiannual: "semiannual";
|
|
46
|
+
readonly Yearly: "yearly";
|
|
47
|
+
};
|
|
48
|
+
type BillingPeriod = (typeof BillingPeriod)[keyof typeof BillingPeriod];
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreatePlanRequest = void 0;
|
|
5
|
+
var CreatePlanRequest;
|
|
6
|
+
(function (CreatePlanRequest) {
|
|
7
|
+
/** Pricing shape. */
|
|
8
|
+
CreatePlanRequest.BillingModel = {
|
|
9
|
+
Free: "free",
|
|
10
|
+
Flat: "flat",
|
|
11
|
+
PerSeat: "per_seat",
|
|
12
|
+
PerEvent: "per_event",
|
|
13
|
+
Tiered: "tiered",
|
|
14
|
+
Hybrid: "hybrid",
|
|
15
|
+
};
|
|
16
|
+
/** Billing cadence. */
|
|
17
|
+
CreatePlanRequest.BillingPeriod = {
|
|
18
|
+
Weekly: "weekly",
|
|
19
|
+
Biweekly: "biweekly",
|
|
20
|
+
Monthly: "monthly",
|
|
21
|
+
Quarterly: "quarterly",
|
|
22
|
+
Semiannual: "semiannual",
|
|
23
|
+
Yearly: "yearly",
|
|
24
|
+
};
|
|
25
|
+
})(CreatePlanRequest || (exports.CreatePlanRequest = CreatePlanRequest = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamOperatorRuntime from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponsePricingPlan {
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponsePricingPlan.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamOperatorRuntime.PricingPlan[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponsePricingPlan {
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListResponsePricingPlan = void 0;
|
|
5
|
+
var ListResponsePricingPlan;
|
|
6
|
+
(function (ListResponsePricingPlan) {
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
|
+
ListResponsePricingPlan.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponsePricingPlan || (exports.ListResponsePricingPlan = ListResponsePricingPlan = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamOperatorRuntime from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseSubscriptionPlan {
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseSubscriptionPlan.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamOperatorRuntime.SubscriptionPlan[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseSubscriptionPlan {
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListResponseSubscriptionPlan = void 0;
|
|
5
|
+
var ListResponseSubscriptionPlan;
|
|
6
|
+
(function (ListResponseSubscriptionPlan) {
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
|
+
ListResponseSubscriptionPlan.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseSubscriptionPlan || (exports.ListResponseSubscriptionPlan = ListResponseSubscriptionPlan = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A monetary amount as integer minor units plus its ISO-4217 currency.
|
|
3
|
+
*/
|
|
4
|
+
export interface Money {
|
|
5
|
+
/** ISO-4217 currency code. */
|
|
6
|
+
currency?: string | undefined;
|
|
7
|
+
/** Amount in the currency's minor units (cents for USD, yen for JPY, fils for KWD). */
|
|
8
|
+
minor_units?: number | undefined;
|
|
9
|
+
/** Amount as a major-unit decimal string at the currency's scale. */
|
|
10
|
+
decimal?: string | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A plan's entitlements: capability flags + numeric quota ceilings.
|
|
3
|
+
*/
|
|
4
|
+
export interface PlanFeatures {
|
|
5
|
+
/** Capability flags keyed by feature id. An absent flag means off. */
|
|
6
|
+
flags?: Record<string, boolean> | undefined;
|
|
7
|
+
/** Quota ceilings keyed by meter key or feature id. An absent quota means unlimited; a present 0 means hard-blocked. */
|
|
8
|
+
quotas?: Record<string, number> | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A plan's entitlements: capability flags + numeric quota ceilings.
|
|
3
|
+
*/
|
|
4
|
+
export interface PlanFeaturesRequest {
|
|
5
|
+
/** Capability flags keyed by feature id. */
|
|
6
|
+
flags?: Record<string, boolean> | undefined;
|
|
7
|
+
/** Quota ceilings (non-negative) keyed by meter key or feature id. */
|
|
8
|
+
quotas?: Record<string, number> | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type * as NizamOperatorRuntime from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A publicly sellable subscription plan, for the pricing page.
|
|
4
|
+
*/
|
|
5
|
+
export interface PricingPlan {
|
|
6
|
+
/** Stable plan code. */
|
|
7
|
+
code: string;
|
|
8
|
+
/** Display name. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Marketing description. */
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
price: NizamOperatorRuntime.Money;
|
|
13
|
+
setup_fee: NizamOperatorRuntime.Money;
|
|
14
|
+
/** Pricing shape. */
|
|
15
|
+
billing_model: PricingPlan.BillingModel;
|
|
16
|
+
/** Billing cadence. */
|
|
17
|
+
billing_period: PricingPlan.BillingPeriod;
|
|
18
|
+
/** Free-trial length in days, when the plan offers one. */
|
|
19
|
+
trial_days?: number | undefined;
|
|
20
|
+
features: NizamOperatorRuntime.PlanFeatures;
|
|
21
|
+
object: PricingPlan.Object_;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace PricingPlan {
|
|
24
|
+
/** Pricing shape. */
|
|
25
|
+
const BillingModel: {
|
|
26
|
+
readonly Free: "free";
|
|
27
|
+
readonly Flat: "flat";
|
|
28
|
+
readonly PerSeat: "per_seat";
|
|
29
|
+
readonly PerEvent: "per_event";
|
|
30
|
+
readonly Tiered: "tiered";
|
|
31
|
+
readonly Hybrid: "hybrid";
|
|
32
|
+
};
|
|
33
|
+
type BillingModel = (typeof BillingModel)[keyof typeof BillingModel];
|
|
34
|
+
/** Billing cadence. */
|
|
35
|
+
const BillingPeriod: {
|
|
36
|
+
readonly Weekly: "weekly";
|
|
37
|
+
readonly Biweekly: "biweekly";
|
|
38
|
+
readonly Monthly: "monthly";
|
|
39
|
+
readonly Quarterly: "quarterly";
|
|
40
|
+
readonly Semiannual: "semiannual";
|
|
41
|
+
readonly Yearly: "yearly";
|
|
42
|
+
};
|
|
43
|
+
type BillingPeriod = (typeof BillingPeriod)[keyof typeof BillingPeriod];
|
|
44
|
+
const Object_: {
|
|
45
|
+
readonly PricingPlan: "pricing_plan";
|
|
46
|
+
};
|
|
47
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PricingPlan = void 0;
|
|
5
|
+
var PricingPlan;
|
|
6
|
+
(function (PricingPlan) {
|
|
7
|
+
/** Pricing shape. */
|
|
8
|
+
PricingPlan.BillingModel = {
|
|
9
|
+
Free: "free",
|
|
10
|
+
Flat: "flat",
|
|
11
|
+
PerSeat: "per_seat",
|
|
12
|
+
PerEvent: "per_event",
|
|
13
|
+
Tiered: "tiered",
|
|
14
|
+
Hybrid: "hybrid",
|
|
15
|
+
};
|
|
16
|
+
/** Billing cadence. */
|
|
17
|
+
PricingPlan.BillingPeriod = {
|
|
18
|
+
Weekly: "weekly",
|
|
19
|
+
Biweekly: "biweekly",
|
|
20
|
+
Monthly: "monthly",
|
|
21
|
+
Quarterly: "quarterly",
|
|
22
|
+
Semiannual: "semiannual",
|
|
23
|
+
Yearly: "yearly",
|
|
24
|
+
};
|
|
25
|
+
PricingPlan.Object_ = {
|
|
26
|
+
PricingPlan: "pricing_plan",
|
|
27
|
+
};
|
|
28
|
+
})(PricingPlan || (exports.PricingPlan = PricingPlan = {}));
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type * as NizamOperatorRuntime from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A subscription plan in the platform billing catalog (admin view).
|
|
4
|
+
*/
|
|
5
|
+
export interface SubscriptionPlan {
|
|
6
|
+
/** Stable plan id. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Stable plan code (natural key). */
|
|
9
|
+
code: string;
|
|
10
|
+
/** Display name. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Description. */
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
/** Catalog lifecycle status. */
|
|
15
|
+
status: SubscriptionPlan.Status;
|
|
16
|
+
price: NizamOperatorRuntime.Money;
|
|
17
|
+
setup_fee: NizamOperatorRuntime.Money;
|
|
18
|
+
/** Pricing shape. */
|
|
19
|
+
billing_model: SubscriptionPlan.BillingModel;
|
|
20
|
+
/** Billing cadence. */
|
|
21
|
+
billing_period: SubscriptionPlan.BillingPeriod;
|
|
22
|
+
/** Sort position on the pricing page (ascending). */
|
|
23
|
+
position: number;
|
|
24
|
+
/** Default free-trial length in days. */
|
|
25
|
+
default_trial_days?: number | undefined;
|
|
26
|
+
features: NizamOperatorRuntime.PlanFeatures;
|
|
27
|
+
/** Whether the plan is live (sellable to subscribers). */
|
|
28
|
+
active: boolean;
|
|
29
|
+
/** Whether the plan appears on the public pricing page. */
|
|
30
|
+
visible: boolean;
|
|
31
|
+
/** Processor (Stripe) Product id, once provisioned. */
|
|
32
|
+
processor_product_id?: string | undefined;
|
|
33
|
+
/** Processor (Stripe) Price id, once provisioned. */
|
|
34
|
+
processor_price_id?: string | undefined;
|
|
35
|
+
/** Lifecycle statuses this plan may legally transition to next. */
|
|
36
|
+
allowed_transitions: SubscriptionPlan.AllowedTransitions.Item[];
|
|
37
|
+
/** Creation time. */
|
|
38
|
+
created_at: string;
|
|
39
|
+
/** Last update time. */
|
|
40
|
+
updated_at: string;
|
|
41
|
+
object: SubscriptionPlan.Object_;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace SubscriptionPlan {
|
|
44
|
+
/** Catalog lifecycle status. */
|
|
45
|
+
const Status: {
|
|
46
|
+
readonly Draft: "draft";
|
|
47
|
+
readonly Active: "active";
|
|
48
|
+
readonly Grandfathered: "grandfathered";
|
|
49
|
+
readonly Retired: "retired";
|
|
50
|
+
readonly Archived: "archived";
|
|
51
|
+
};
|
|
52
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
53
|
+
/** Pricing shape. */
|
|
54
|
+
const BillingModel: {
|
|
55
|
+
readonly Free: "free";
|
|
56
|
+
readonly Flat: "flat";
|
|
57
|
+
readonly PerSeat: "per_seat";
|
|
58
|
+
readonly PerEvent: "per_event";
|
|
59
|
+
readonly Tiered: "tiered";
|
|
60
|
+
readonly Hybrid: "hybrid";
|
|
61
|
+
};
|
|
62
|
+
type BillingModel = (typeof BillingModel)[keyof typeof BillingModel];
|
|
63
|
+
/** Billing cadence. */
|
|
64
|
+
const BillingPeriod: {
|
|
65
|
+
readonly Weekly: "weekly";
|
|
66
|
+
readonly Biweekly: "biweekly";
|
|
67
|
+
readonly Monthly: "monthly";
|
|
68
|
+
readonly Quarterly: "quarterly";
|
|
69
|
+
readonly Semiannual: "semiannual";
|
|
70
|
+
readonly Yearly: "yearly";
|
|
71
|
+
};
|
|
72
|
+
type BillingPeriod = (typeof BillingPeriod)[keyof typeof BillingPeriod];
|
|
73
|
+
type AllowedTransitions = AllowedTransitions.Item[];
|
|
74
|
+
namespace AllowedTransitions {
|
|
75
|
+
/** Lifecycle statuses this plan may legally transition to next. */
|
|
76
|
+
const Item: {
|
|
77
|
+
readonly Draft: "draft";
|
|
78
|
+
readonly Active: "active";
|
|
79
|
+
readonly Grandfathered: "grandfathered";
|
|
80
|
+
readonly Retired: "retired";
|
|
81
|
+
readonly Archived: "archived";
|
|
82
|
+
};
|
|
83
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
84
|
+
}
|
|
85
|
+
const Object_: {
|
|
86
|
+
readonly SubscriptionPlan: "subscription_plan";
|
|
87
|
+
};
|
|
88
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
89
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SubscriptionPlan = void 0;
|
|
5
|
+
var SubscriptionPlan;
|
|
6
|
+
(function (SubscriptionPlan) {
|
|
7
|
+
/** Catalog lifecycle status. */
|
|
8
|
+
SubscriptionPlan.Status = {
|
|
9
|
+
Draft: "draft",
|
|
10
|
+
Active: "active",
|
|
11
|
+
Grandfathered: "grandfathered",
|
|
12
|
+
Retired: "retired",
|
|
13
|
+
Archived: "archived",
|
|
14
|
+
};
|
|
15
|
+
/** Pricing shape. */
|
|
16
|
+
SubscriptionPlan.BillingModel = {
|
|
17
|
+
Free: "free",
|
|
18
|
+
Flat: "flat",
|
|
19
|
+
PerSeat: "per_seat",
|
|
20
|
+
PerEvent: "per_event",
|
|
21
|
+
Tiered: "tiered",
|
|
22
|
+
Hybrid: "hybrid",
|
|
23
|
+
};
|
|
24
|
+
/** Billing cadence. */
|
|
25
|
+
SubscriptionPlan.BillingPeriod = {
|
|
26
|
+
Weekly: "weekly",
|
|
27
|
+
Biweekly: "biweekly",
|
|
28
|
+
Monthly: "monthly",
|
|
29
|
+
Quarterly: "quarterly",
|
|
30
|
+
Semiannual: "semiannual",
|
|
31
|
+
Yearly: "yearly",
|
|
32
|
+
};
|
|
33
|
+
let AllowedTransitions;
|
|
34
|
+
(function (AllowedTransitions) {
|
|
35
|
+
/** Lifecycle statuses this plan may legally transition to next. */
|
|
36
|
+
AllowedTransitions.Item = {
|
|
37
|
+
Draft: "draft",
|
|
38
|
+
Active: "active",
|
|
39
|
+
Grandfathered: "grandfathered",
|
|
40
|
+
Retired: "retired",
|
|
41
|
+
Archived: "archived",
|
|
42
|
+
};
|
|
43
|
+
})(AllowedTransitions = SubscriptionPlan.AllowedTransitions || (SubscriptionPlan.AllowedTransitions = {}));
|
|
44
|
+
SubscriptionPlan.Object_ = {
|
|
45
|
+
SubscriptionPlan: "subscription_plan",
|
|
46
|
+
};
|
|
47
|
+
})(SubscriptionPlan || (exports.SubscriptionPlan = SubscriptionPlan = {}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as NizamOperatorRuntime from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Edit a subscription plan's catalog fields (partial update).
|
|
4
|
+
*/
|
|
5
|
+
export interface UpdatePlanRequest {
|
|
6
|
+
/** Display name. */
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
/** Description. */
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
/** Recurring price in minor units. */
|
|
11
|
+
price_minor_units?: number | undefined;
|
|
12
|
+
/** ISO-4217 currency code. */
|
|
13
|
+
currency?: string | undefined;
|
|
14
|
+
/** One-time setup fee in minor units. */
|
|
15
|
+
setup_fee_minor_units?: number | undefined;
|
|
16
|
+
/** Pricing shape. */
|
|
17
|
+
billing_model?: UpdatePlanRequest.BillingModel | undefined;
|
|
18
|
+
/** Billing cadence. */
|
|
19
|
+
billing_period?: UpdatePlanRequest.BillingPeriod | undefined;
|
|
20
|
+
/** Sort position on the pricing page. */
|
|
21
|
+
position?: number | undefined;
|
|
22
|
+
/** Default free-trial length in days. */
|
|
23
|
+
default_trial_days?: number | undefined;
|
|
24
|
+
features?: NizamOperatorRuntime.PlanFeaturesRequest | undefined;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace UpdatePlanRequest {
|
|
27
|
+
/** Pricing shape. */
|
|
28
|
+
const BillingModel: {
|
|
29
|
+
readonly Free: "free";
|
|
30
|
+
readonly Flat: "flat";
|
|
31
|
+
readonly PerSeat: "per_seat";
|
|
32
|
+
readonly PerEvent: "per_event";
|
|
33
|
+
readonly Tiered: "tiered";
|
|
34
|
+
readonly Hybrid: "hybrid";
|
|
35
|
+
};
|
|
36
|
+
type BillingModel = (typeof BillingModel)[keyof typeof BillingModel];
|
|
37
|
+
/** Billing cadence. */
|
|
38
|
+
const BillingPeriod: {
|
|
39
|
+
readonly Weekly: "weekly";
|
|
40
|
+
readonly Biweekly: "biweekly";
|
|
41
|
+
readonly Monthly: "monthly";
|
|
42
|
+
readonly Quarterly: "quarterly";
|
|
43
|
+
readonly Semiannual: "semiannual";
|
|
44
|
+
readonly Yearly: "yearly";
|
|
45
|
+
};
|
|
46
|
+
type BillingPeriod = (typeof BillingPeriod)[keyof typeof BillingPeriod];
|
|
47
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UpdatePlanRequest = void 0;
|
|
5
|
+
var UpdatePlanRequest;
|
|
6
|
+
(function (UpdatePlanRequest) {
|
|
7
|
+
/** Pricing shape. */
|
|
8
|
+
UpdatePlanRequest.BillingModel = {
|
|
9
|
+
Free: "free",
|
|
10
|
+
Flat: "flat",
|
|
11
|
+
PerSeat: "per_seat",
|
|
12
|
+
PerEvent: "per_event",
|
|
13
|
+
Tiered: "tiered",
|
|
14
|
+
Hybrid: "hybrid",
|
|
15
|
+
};
|
|
16
|
+
/** Billing cadence. */
|
|
17
|
+
UpdatePlanRequest.BillingPeriod = {
|
|
18
|
+
Weekly: "weekly",
|
|
19
|
+
Biweekly: "biweekly",
|
|
20
|
+
Monthly: "monthly",
|
|
21
|
+
Quarterly: "quarterly",
|
|
22
|
+
Semiannual: "semiannual",
|
|
23
|
+
Yearly: "yearly",
|
|
24
|
+
};
|
|
25
|
+
})(UpdatePlanRequest || (exports.UpdatePlanRequest = UpdatePlanRequest = {}));
|
package/dist/api/types/User.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare namespace User {
|
|
|
51
51
|
readonly KeycloakProjectionAdminister: "keycloak-projection:administer";
|
|
52
52
|
readonly NotificationDeliveryRead: "notification-delivery:read";
|
|
53
53
|
readonly OrgMaintenanceAdminister: "org-maintenance:administer";
|
|
54
|
+
readonly PlanManage: "plan:manage";
|
|
55
|
+
readonly PlanRead: "plan:read";
|
|
54
56
|
readonly ServiceAccountAdminister: "service-account:administer";
|
|
55
57
|
readonly TaskCreate: "task:create";
|
|
56
58
|
readonly UserAdminister: "user:administer";
|
package/dist/api/types/User.js
CHANGED
|
@@ -29,6 +29,8 @@ var User;
|
|
|
29
29
|
KeycloakProjectionAdminister: "keycloak-projection:administer",
|
|
30
30
|
NotificationDeliveryRead: "notification-delivery:read",
|
|
31
31
|
OrgMaintenanceAdminister: "org-maintenance:administer",
|
|
32
|
+
PlanManage: "plan:manage",
|
|
33
|
+
PlanRead: "plan:read",
|
|
32
34
|
ServiceAccountAdminister: "service-account:administer",
|
|
33
35
|
TaskCreate: "task:create",
|
|
34
36
|
UserAdminister: "user:administer",
|
|
@@ -18,6 +18,7 @@ export * from "./CreateImportRequest.js";
|
|
|
18
18
|
export * from "./CreateInviteRequest.js";
|
|
19
19
|
export * from "./CreateOperatorRequest.js";
|
|
20
20
|
export * from "./CreateOrganizationRequest.js";
|
|
21
|
+
export * from "./CreatePlanRequest.js";
|
|
21
22
|
export * from "./CreateTaskRequest.js";
|
|
22
23
|
export * from "./CreateTeleoperatedOperatorRequest.js";
|
|
23
24
|
export * from "./Currency.js";
|
|
@@ -53,12 +54,15 @@ export * from "./ListResponseNotificationDeadLetter.js";
|
|
|
53
54
|
export * from "./ListResponseOperatorPosition.js";
|
|
54
55
|
export * from "./ListResponseOrganization.js";
|
|
55
56
|
export * from "./ListResponsePosition.js";
|
|
57
|
+
export * from "./ListResponsePricingPlan.js";
|
|
58
|
+
export * from "./ListResponseSubscriptionPlan.js";
|
|
56
59
|
export * from "./ListResponseTask.js";
|
|
57
60
|
export * from "./ListResponseTimezone.js";
|
|
58
61
|
export * from "./ListResponseUserResource.js";
|
|
59
62
|
export * from "./Membership.js";
|
|
60
63
|
export * from "./MembershipChoice.js";
|
|
61
64
|
export * from "./MembershipDriftResponse.js";
|
|
65
|
+
export * from "./Money.js";
|
|
62
66
|
export * from "./MqttToken.js";
|
|
63
67
|
export * from "./Notification.js";
|
|
64
68
|
export * from "./NotificationCategoryCount.js";
|
|
@@ -75,18 +79,23 @@ export * from "./Operator.js";
|
|
|
75
79
|
export * from "./OperatorAsset.js";
|
|
76
80
|
export * from "./OperatorPosition.js";
|
|
77
81
|
export * from "./Organization.js";
|
|
82
|
+
export * from "./PlanFeatures.js";
|
|
83
|
+
export * from "./PlanFeaturesRequest.js";
|
|
78
84
|
export * from "./Position.js";
|
|
85
|
+
export * from "./PricingPlan.js";
|
|
79
86
|
export * from "./ProblemDetail.js";
|
|
80
87
|
export * from "./QuietHours.js";
|
|
81
88
|
export * from "./RealtimeTicket.js";
|
|
82
89
|
export * from "./ReconcileResponse.js";
|
|
83
90
|
export * from "./SetActiveOrganizationRequest.js";
|
|
91
|
+
export * from "./SubscriptionPlan.js";
|
|
84
92
|
export * from "./Task.js";
|
|
85
93
|
export * from "./TaskAttemptPhoto.js";
|
|
86
94
|
export * from "./TaskAttemptPhotoThumbnail.js";
|
|
87
95
|
export * from "./Timezone.js";
|
|
88
96
|
export * from "./UpdateAssetRequest.js";
|
|
89
97
|
export * from "./UpdateOrganizationRequest.js";
|
|
98
|
+
export * from "./UpdatePlanRequest.js";
|
|
90
99
|
export * from "./UpdateTaskRequest.js";
|
|
91
100
|
export * from "./UploadInitiation.js";
|
|
92
101
|
export * from "./UploadInitiationPart.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./CreateImportRequest.js"), exports);
|
|
|
34
34
|
__exportStar(require("./CreateInviteRequest.js"), exports);
|
|
35
35
|
__exportStar(require("./CreateOperatorRequest.js"), exports);
|
|
36
36
|
__exportStar(require("./CreateOrganizationRequest.js"), exports);
|
|
37
|
+
__exportStar(require("./CreatePlanRequest.js"), exports);
|
|
37
38
|
__exportStar(require("./CreateTaskRequest.js"), exports);
|
|
38
39
|
__exportStar(require("./CreateTeleoperatedOperatorRequest.js"), exports);
|
|
39
40
|
__exportStar(require("./Currency.js"), exports);
|
|
@@ -69,12 +70,15 @@ __exportStar(require("./ListResponseNotificationDeadLetter.js"), exports);
|
|
|
69
70
|
__exportStar(require("./ListResponseOperatorPosition.js"), exports);
|
|
70
71
|
__exportStar(require("./ListResponseOrganization.js"), exports);
|
|
71
72
|
__exportStar(require("./ListResponsePosition.js"), exports);
|
|
73
|
+
__exportStar(require("./ListResponsePricingPlan.js"), exports);
|
|
74
|
+
__exportStar(require("./ListResponseSubscriptionPlan.js"), exports);
|
|
72
75
|
__exportStar(require("./ListResponseTask.js"), exports);
|
|
73
76
|
__exportStar(require("./ListResponseTimezone.js"), exports);
|
|
74
77
|
__exportStar(require("./ListResponseUserResource.js"), exports);
|
|
75
78
|
__exportStar(require("./Membership.js"), exports);
|
|
76
79
|
__exportStar(require("./MembershipChoice.js"), exports);
|
|
77
80
|
__exportStar(require("./MembershipDriftResponse.js"), exports);
|
|
81
|
+
__exportStar(require("./Money.js"), exports);
|
|
78
82
|
__exportStar(require("./MqttToken.js"), exports);
|
|
79
83
|
__exportStar(require("./Notification.js"), exports);
|
|
80
84
|
__exportStar(require("./NotificationCategoryCount.js"), exports);
|
|
@@ -91,18 +95,23 @@ __exportStar(require("./Operator.js"), exports);
|
|
|
91
95
|
__exportStar(require("./OperatorAsset.js"), exports);
|
|
92
96
|
__exportStar(require("./OperatorPosition.js"), exports);
|
|
93
97
|
__exportStar(require("./Organization.js"), exports);
|
|
98
|
+
__exportStar(require("./PlanFeatures.js"), exports);
|
|
99
|
+
__exportStar(require("./PlanFeaturesRequest.js"), exports);
|
|
94
100
|
__exportStar(require("./Position.js"), exports);
|
|
101
|
+
__exportStar(require("./PricingPlan.js"), exports);
|
|
95
102
|
__exportStar(require("./ProblemDetail.js"), exports);
|
|
96
103
|
__exportStar(require("./QuietHours.js"), exports);
|
|
97
104
|
__exportStar(require("./RealtimeTicket.js"), exports);
|
|
98
105
|
__exportStar(require("./ReconcileResponse.js"), exports);
|
|
99
106
|
__exportStar(require("./SetActiveOrganizationRequest.js"), exports);
|
|
107
|
+
__exportStar(require("./SubscriptionPlan.js"), exports);
|
|
100
108
|
__exportStar(require("./Task.js"), exports);
|
|
101
109
|
__exportStar(require("./TaskAttemptPhoto.js"), exports);
|
|
102
110
|
__exportStar(require("./TaskAttemptPhotoThumbnail.js"), exports);
|
|
103
111
|
__exportStar(require("./Timezone.js"), exports);
|
|
104
112
|
__exportStar(require("./UpdateAssetRequest.js"), exports);
|
|
105
113
|
__exportStar(require("./UpdateOrganizationRequest.js"), exports);
|
|
114
|
+
__exportStar(require("./UpdatePlanRequest.js"), exports);
|
|
106
115
|
__exportStar(require("./UpdateTaskRequest.js"), exports);
|
|
107
116
|
__exportStar(require("./UploadInitiation.js"), exports);
|
|
108
117
|
__exportStar(require("./UploadInitiationPart.js"), exports);
|