@openmeter/sdk 1.0.0-beta.223 → 1.0.0-beta.225
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/README.md +200 -0
- package/biome.json +67 -0
- package/dist/cjs/src/client/addons.d.cts +8 -8
- package/dist/cjs/src/client/addons.js.map +1 -1
- package/dist/cjs/src/client/apps.d.cts +10 -10
- package/dist/cjs/src/client/apps.js.map +1 -1
- package/dist/cjs/src/client/billing.d.cts +19 -19
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/common.d.cts +3 -3
- package/dist/cjs/src/client/common.js.map +1 -1
- package/dist/cjs/src/client/customers.d.cts +25 -24
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/debug.d.cts +2 -2
- package/dist/cjs/src/client/debug.js.map +1 -1
- package/dist/cjs/src/client/entitlements.d.cts +15 -13
- package/dist/cjs/src/client/entitlements.js.map +1 -1
- package/dist/cjs/src/client/events.d.cts +4 -4
- package/dist/cjs/src/client/events.js.map +1 -1
- package/dist/cjs/src/client/features.d.cts +12 -3
- package/dist/cjs/src/client/features.js.map +1 -1
- package/dist/cjs/src/client/index.cjs +1 -1
- package/dist/cjs/src/client/index.d.cts +2 -2
- package/dist/cjs/src/client/index.js.map +1 -1
- package/dist/cjs/src/client/info.d.cts +3 -3
- package/dist/cjs/src/client/info.js.map +1 -1
- package/dist/cjs/src/client/meters.d.cts +5 -5
- package/dist/cjs/src/client/meters.js.map +1 -1
- package/dist/cjs/src/client/notifications.d.cts +17 -11
- package/dist/cjs/src/client/notifications.js.map +1 -1
- package/dist/cjs/src/client/plans.d.cts +12 -12
- package/dist/cjs/src/client/plans.js.map +1 -1
- package/dist/cjs/src/client/portal.d.cts +4 -4
- package/dist/cjs/src/client/portal.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +1046 -139
- package/dist/cjs/src/client/subjects.d.cts +4 -4
- package/dist/cjs/src/client/subjects.js.map +1 -1
- package/dist/cjs/src/client/subscription-addons.d.cts +5 -5
- package/dist/cjs/src/client/subscription-addons.js.map +1 -1
- package/dist/cjs/src/client/subscriptions.d.cts +13 -8
- package/dist/cjs/src/client/subscriptions.js.map +1 -1
- package/dist/cjs/src/client/utils.cjs +1 -3
- package/dist/cjs/src/client/utils.d.cts +1 -1
- package/dist/cjs/src/client/utils.js.map +1 -1
- package/dist/cjs/src/portal/index.d.cts +1 -1
- package/dist/cjs/src/portal/index.js.map +1 -1
- package/dist/cjs/src/zod/index.cjs +1230 -634
- package/dist/cjs/src/zod/index.d.cts +1304 -615
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/tsconfig.7db92107.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.94dd8c51.tsbuildinfo +1 -0
- package/dist/src/client/addons.d.ts +8 -8
- package/dist/src/client/addons.js.map +1 -1
- package/dist/src/client/apps.d.ts +10 -10
- package/dist/src/client/apps.js.map +1 -1
- package/dist/src/client/billing.d.ts +19 -19
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/common.d.ts +3 -3
- package/dist/src/client/common.js.map +1 -1
- package/dist/src/client/customers.d.ts +25 -24
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/debug.d.ts +2 -2
- package/dist/src/client/debug.js.map +1 -1
- package/dist/src/client/entitlements.d.ts +15 -13
- package/dist/src/client/entitlements.js.map +1 -1
- package/dist/src/client/events.d.ts +4 -4
- package/dist/src/client/events.js.map +1 -1
- package/dist/src/client/features.d.ts +12 -3
- package/dist/src/client/features.js.map +1 -1
- package/dist/src/client/index.d.ts +2 -2
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/info.d.ts +3 -3
- package/dist/src/client/info.js.map +1 -1
- package/dist/src/client/meters.d.ts +5 -5
- package/dist/src/client/meters.js.map +1 -1
- package/dist/src/client/notifications.d.ts +17 -11
- package/dist/src/client/notifications.js.map +1 -1
- package/dist/src/client/plans.d.ts +12 -12
- package/dist/src/client/plans.js.map +1 -1
- package/dist/src/client/portal.d.ts +4 -4
- package/dist/src/client/portal.js.map +1 -1
- package/dist/src/client/schemas.d.ts +1046 -139
- package/dist/src/client/subjects.d.ts +4 -4
- package/dist/src/client/subjects.js.map +1 -1
- package/dist/src/client/subscription-addons.d.ts +5 -5
- package/dist/src/client/subscription-addons.js.map +1 -1
- package/dist/src/client/subscriptions.d.ts +13 -8
- package/dist/src/client/subscriptions.js.map +1 -1
- package/dist/src/client/utils.d.ts +1 -1
- package/dist/src/client/utils.js +1 -3
- package/dist/src/client/utils.js.map +1 -1
- package/dist/src/portal/index.d.ts +1 -1
- package/dist/src/portal/index.js.map +1 -1
- package/dist/src/zod/index.d.ts +1304 -615
- package/dist/src/zod/index.js +1147 -554
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/orval.config.ts +2 -6
- package/package.json +21 -35
- package/dist/cjs/tsconfig.07c9b9a6.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.5c5dbdc6.tsbuildinfo +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.cjs';
|
|
2
3
|
import type { MeterCreate, operations, paths } from './schemas.cjs';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Meters
|
|
6
6
|
* @description Meters are used to track and manage usage of your application.
|
|
@@ -30,7 +30,7 @@ export declare class Meters {
|
|
|
30
30
|
groupBy?: {
|
|
31
31
|
[key: string]: string;
|
|
32
32
|
};
|
|
33
|
-
}>;
|
|
33
|
+
} | undefined>;
|
|
34
34
|
/**
|
|
35
35
|
* Get a meter by ID or slug
|
|
36
36
|
* @param idOrSlug - The ID or slug of the meter
|
|
@@ -53,7 +53,7 @@ export declare class Meters {
|
|
|
53
53
|
groupBy?: {
|
|
54
54
|
[key: string]: string;
|
|
55
55
|
};
|
|
56
|
-
}>;
|
|
56
|
+
} | undefined>;
|
|
57
57
|
/**
|
|
58
58
|
* List meters
|
|
59
59
|
* @param signal - An optional abort signal
|
|
@@ -75,7 +75,7 @@ export declare class Meters {
|
|
|
75
75
|
groupBy?: {
|
|
76
76
|
[key: string]: string;
|
|
77
77
|
};
|
|
78
|
-
}[]>;
|
|
78
|
+
}[] | undefined>;
|
|
79
79
|
/**
|
|
80
80
|
* Query usage data for a meter by ID or slug
|
|
81
81
|
* @param idOrSlug - The ID or slug of the meter
|
|
@@ -112,7 +112,7 @@ export declare class Meters {
|
|
|
112
112
|
groupBy?: {
|
|
113
113
|
[key: string]: string;
|
|
114
114
|
};
|
|
115
|
-
}>;
|
|
115
|
+
} | undefined>;
|
|
116
116
|
/**
|
|
117
117
|
* Delete a meter by ID or slug
|
|
118
118
|
* @param idOrSlug - The ID or slug of the meter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meters.js","sourceRoot":"","sources":["../../../../src/client/meters.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"meters.js","sourceRoot":"","sources":["../../../../src/client/meters.ts"],"names":[],"mappings":";;;AAGA,yCAA8C;AAE9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,KAAkB,EAAE,OAAwB;QAC9D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACpD,IAAI,EAAE,KAAK;YACX,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,QAAuE,EACvE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC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QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gCAAgC,EAAE;YACtE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,aAAa,EAAE,QAAQ;iBACxB;aACF;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAjID,wBAiIC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.cjs';
|
|
2
3
|
import type { NotificationChannel, NotificationRuleCreateRequest, operations, paths } from './schemas.cjs';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Notifications
|
|
6
6
|
* @description Notifications provide automated triggers when specific entitlement balances and usage thresholds are reached, ensuring that your customers and sales teams are always informed. Notify customers and internal teams when specific conditions are met, like reaching 75%, 100%, and 150% of their monthly usage allowance.
|
|
@@ -33,12 +33,14 @@ export declare class NotificationChannels {
|
|
|
33
33
|
type: "WEBHOOK";
|
|
34
34
|
name: string;
|
|
35
35
|
disabled?: boolean;
|
|
36
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
37
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
36
38
|
url: string;
|
|
37
39
|
customHeaders?: {
|
|
38
40
|
[key: string]: string;
|
|
39
41
|
};
|
|
40
42
|
signingSecret?: string;
|
|
41
|
-
}>;
|
|
43
|
+
} | undefined>;
|
|
42
44
|
/**
|
|
43
45
|
* Get a notification channel by ID
|
|
44
46
|
* @param id - The ID of the notification channel
|
|
@@ -53,12 +55,14 @@ export declare class NotificationChannels {
|
|
|
53
55
|
type: "WEBHOOK";
|
|
54
56
|
name: string;
|
|
55
57
|
disabled?: boolean;
|
|
58
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
59
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
56
60
|
url: string;
|
|
57
61
|
customHeaders?: {
|
|
58
62
|
[key: string]: string;
|
|
59
63
|
};
|
|
60
64
|
signingSecret?: string;
|
|
61
|
-
}>;
|
|
65
|
+
} | undefined>;
|
|
62
66
|
/**
|
|
63
67
|
* Update a notification channel
|
|
64
68
|
* @param id - The ID of the notification channel
|
|
@@ -74,12 +78,14 @@ export declare class NotificationChannels {
|
|
|
74
78
|
type: "WEBHOOK";
|
|
75
79
|
name: string;
|
|
76
80
|
disabled?: boolean;
|
|
81
|
+
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
82
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
77
83
|
url: string;
|
|
78
84
|
customHeaders?: {
|
|
79
85
|
[key: string]: string;
|
|
80
86
|
};
|
|
81
87
|
signingSecret?: string;
|
|
82
|
-
}>;
|
|
88
|
+
} | undefined>;
|
|
83
89
|
/**
|
|
84
90
|
* List notification channels
|
|
85
91
|
* @param query - The query parameters
|
|
@@ -91,7 +97,7 @@ export declare class NotificationChannels {
|
|
|
91
97
|
page: number;
|
|
92
98
|
pageSize: number;
|
|
93
99
|
items: import("./schemas.cjs").components["schemas"]["NotificationChannel"][];
|
|
94
|
-
}>;
|
|
100
|
+
} | undefined>;
|
|
95
101
|
/**
|
|
96
102
|
* Delete a notification channel
|
|
97
103
|
* @param id - The ID of the notification channel
|
|
@@ -178,7 +184,7 @@ export declare class NotificationRules {
|
|
|
178
184
|
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
179
185
|
};
|
|
180
186
|
};
|
|
181
|
-
}, `${string}/${string}
|
|
187
|
+
}, `${string}/${string}`> | undefined>;
|
|
182
188
|
/**
|
|
183
189
|
* Get a notification rule by ID
|
|
184
190
|
* @param id - The ID of the notification rule
|
|
@@ -258,7 +264,7 @@ export declare class NotificationRules {
|
|
|
258
264
|
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
259
265
|
};
|
|
260
266
|
};
|
|
261
|
-
}, `${string}/${string}
|
|
267
|
+
}, `${string}/${string}`> | undefined>;
|
|
262
268
|
/**
|
|
263
269
|
* Update a notification rule
|
|
264
270
|
* @param id - The ID of the notification rule
|
|
@@ -339,7 +345,7 @@ export declare class NotificationRules {
|
|
|
339
345
|
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
340
346
|
};
|
|
341
347
|
};
|
|
342
|
-
}, `${string}/${string}
|
|
348
|
+
}, `${string}/${string}`> | undefined>;
|
|
343
349
|
/**
|
|
344
350
|
* List notification rules
|
|
345
351
|
* @param query - The query parameters
|
|
@@ -351,7 +357,7 @@ export declare class NotificationRules {
|
|
|
351
357
|
page: number;
|
|
352
358
|
pageSize: number;
|
|
353
359
|
items: import("./schemas.cjs").components["schemas"]["NotificationRule"][];
|
|
354
|
-
}>;
|
|
360
|
+
} | undefined>;
|
|
355
361
|
/**
|
|
356
362
|
* Delete a notification rule
|
|
357
363
|
* @param id - The ID of the notification rule
|
|
@@ -381,7 +387,7 @@ export declare class NotificationEvents {
|
|
|
381
387
|
readonly deliveryStatus: import("./schemas.cjs").components["schemas"]["NotificationEventDeliveryStatus"][];
|
|
382
388
|
readonly payload: import("./schemas.cjs").components["schemas"]["NotificationEventPayload"];
|
|
383
389
|
readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
384
|
-
}>;
|
|
390
|
+
} | undefined>;
|
|
385
391
|
/**
|
|
386
392
|
* List notification events
|
|
387
393
|
* @param query - The query parameters
|
|
@@ -393,5 +399,5 @@ export declare class NotificationEvents {
|
|
|
393
399
|
page: number;
|
|
394
400
|
pageSize: number;
|
|
395
401
|
items: import("./schemas.cjs").components["schemas"]["NotificationEvent"][];
|
|
396
|
-
}>;
|
|
402
|
+
} | undefined>;
|
|
397
403
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/client/notifications.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/client/notifications.ts"],"names":[],"mappings":";;;AAQA,yCAA8C;AAE9C;;;GAGG;AACH,MAAa,aAAa;IAKJ;IAJb,QAAQ,CAAsB;IAC9B,KAAK,CAAmB;IACxB,MAAM,CAAoB;IAEjC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrD,IAAI,CAAC,KAAK,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACnD,CAAC;CACF;AAVD,sCAUC;AAED;;;GAGG;AACH,MAAa,oBAAoB;IACX;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CACjB,YAAiC,EACjC,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACnE,IAAI,EAAE,YAAY;YAClB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,EAA2E,EAC3E,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,2CAA2C,EAC3C;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,SAAS,EAAE,EAAE;iBACd;aACF;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OA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,EACrC;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,MAAM,EAAE,EAAE;iBACX;aACF;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAhHD,8CAgHC;AAED;;;GAGG;AACH,MAAa,kBAAkB;IACT;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,EAAuE,EACvE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,uCAAuC,EACvC;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACf,KAAmE,EACnE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,6BAA6B,EAAE;YAChE,MAAM,EAAE;gBACN,KAAK;aACN;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AA/CD,gDA+CC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RequestOptions } from './common.cjs';
|
|
2
|
-
import type { operations, paths, PlanCreate, PlanReplaceUpdate } from './schemas.cjs';
|
|
3
1
|
import type { Client } from 'openapi-fetch';
|
|
2
|
+
import type { RequestOptions } from './common.cjs';
|
|
3
|
+
import type { operations, PlanCreate, PlanReplaceUpdate, paths } from './schemas.cjs';
|
|
4
4
|
/**
|
|
5
5
|
* Plans
|
|
6
6
|
* Manage customer subscription plans and addon assignments.
|
|
@@ -34,7 +34,7 @@ export declare class Plans {
|
|
|
34
34
|
readonly status: import("./schemas.cjs").components["schemas"]["PlanStatus"];
|
|
35
35
|
phases: import("./schemas.cjs").components["schemas"]["PlanPhase"][];
|
|
36
36
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
37
|
-
}>;
|
|
37
|
+
} | undefined>;
|
|
38
38
|
/**
|
|
39
39
|
* Get a plan by ID
|
|
40
40
|
* @param planId - The ID of the plan to retrieve
|
|
@@ -61,7 +61,7 @@ export declare class Plans {
|
|
|
61
61
|
readonly status: import("./schemas.cjs").components["schemas"]["PlanStatus"];
|
|
62
62
|
phases: import("./schemas.cjs").components["schemas"]["PlanPhase"][];
|
|
63
63
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
64
|
-
}>;
|
|
64
|
+
} | undefined>;
|
|
65
65
|
/**
|
|
66
66
|
* List plans
|
|
67
67
|
* @param params - Optional parameters for listing plans
|
|
@@ -73,7 +73,7 @@ export declare class Plans {
|
|
|
73
73
|
page: number;
|
|
74
74
|
pageSize: number;
|
|
75
75
|
items: import("./schemas.cjs").components["schemas"]["Plan"][];
|
|
76
|
-
}>;
|
|
76
|
+
} | undefined>;
|
|
77
77
|
/**
|
|
78
78
|
* Update a plan
|
|
79
79
|
* @param planId - The ID of the plan to update
|
|
@@ -100,7 +100,7 @@ export declare class Plans {
|
|
|
100
100
|
readonly status: import("./schemas.cjs").components["schemas"]["PlanStatus"];
|
|
101
101
|
phases: import("./schemas.cjs").components["schemas"]["PlanPhase"][];
|
|
102
102
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
103
|
-
}>;
|
|
103
|
+
} | undefined>;
|
|
104
104
|
/**
|
|
105
105
|
* Delete a plan by ID
|
|
106
106
|
* @param planId - The ID of the plan to delete
|
|
@@ -133,7 +133,7 @@ export declare class Plans {
|
|
|
133
133
|
readonly status: import("./schemas.cjs").components["schemas"]["PlanStatus"];
|
|
134
134
|
phases: import("./schemas.cjs").components["schemas"]["PlanPhase"][];
|
|
135
135
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
136
|
-
}>;
|
|
136
|
+
} | undefined>;
|
|
137
137
|
/**
|
|
138
138
|
* Publish a plan
|
|
139
139
|
* @param planId - The ID of the plan to publish
|
|
@@ -159,7 +159,7 @@ export declare class Plans {
|
|
|
159
159
|
readonly status: import("./schemas.cjs").components["schemas"]["PlanStatus"];
|
|
160
160
|
phases: import("./schemas.cjs").components["schemas"]["PlanPhase"][];
|
|
161
161
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
162
|
-
}>;
|
|
162
|
+
} | undefined>;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Plan Addons
|
|
@@ -180,7 +180,7 @@ export declare class PlanAddons {
|
|
|
180
180
|
page: number;
|
|
181
181
|
pageSize: number;
|
|
182
182
|
items: import("./schemas.cjs").components["schemas"]["PlanAddon"][];
|
|
183
|
-
}>;
|
|
183
|
+
} | undefined>;
|
|
184
184
|
/**
|
|
185
185
|
* Create a plan addon
|
|
186
186
|
* @param planId - The ID of the plan
|
|
@@ -198,7 +198,7 @@ export declare class PlanAddons {
|
|
|
198
198
|
fromPlanPhase: string;
|
|
199
199
|
maxQuantity?: number;
|
|
200
200
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
201
|
-
}>;
|
|
201
|
+
} | undefined>;
|
|
202
202
|
/**
|
|
203
203
|
* Get a plan addon by ID
|
|
204
204
|
* @param planId - The ID of the plan
|
|
@@ -216,7 +216,7 @@ export declare class PlanAddons {
|
|
|
216
216
|
fromPlanPhase: string;
|
|
217
217
|
maxQuantity?: number;
|
|
218
218
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
219
|
-
}>;
|
|
219
|
+
} | undefined>;
|
|
220
220
|
/**
|
|
221
221
|
* Update a plan addon
|
|
222
222
|
* @param planId - The ID of the plan
|
|
@@ -235,7 +235,7 @@ export declare class PlanAddons {
|
|
|
235
235
|
fromPlanPhase: string;
|
|
236
236
|
maxQuantity?: number;
|
|
237
237
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
238
|
-
}>;
|
|
238
|
+
} | undefined>;
|
|
239
239
|
/**
|
|
240
240
|
* Delete a plan addon by ID
|
|
241
241
|
* @param planId - The ID of the plan
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../../src/client/plans.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../../../src/client/plans.ts"],"names":[],"mappings":";;;AAQA,yCAA8C;AAE9C;;;GAGG;AACH,MAAa,KAAK;IAGI;IAFb,MAAM,CAAY;IAEzB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC3C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAgB,EAAE,OAAwB;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE;YACnD,IAAI,EAAE,IAAI;YACV,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,MAA6D,EAC7D,MAAqD,EACrD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAC3D,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,MAAM,EAAE;gBAChB,KAAK,EAAE,MAAM;aACd;YACD,GAAG,OAAO;SACX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CACd,MAAkE,EAClE,WAA4E,EAC5E,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,6CAA6C,EAC7C;YACE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE;aAC9B;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,MAAM,CACjB,MAAqE,EACrE,WAA+E,EAC/E,SAAsF,EACtF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAChC,6CAA6C,EAC7C;YACE,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE;YACzC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,MAAqE,EACrE,WAA+E,EAC/E,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACnC,6CAA6C,EAC7C;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE;YACzC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAxHD,gCAwHC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RequestOptions } from './common.cjs';
|
|
2
|
-
import type { operations, paths, PortalToken } from './schemas.cjs';
|
|
3
1
|
import type { Client } from 'openapi-fetch';
|
|
2
|
+
import type { RequestOptions } from './common.cjs';
|
|
3
|
+
import type { operations, PortalToken, paths } from './schemas.cjs';
|
|
4
4
|
/**
|
|
5
5
|
* Portal
|
|
6
6
|
* Manage portal tokens.
|
|
@@ -22,7 +22,7 @@ export declare class Portal {
|
|
|
22
22
|
readonly createdAt?: Date;
|
|
23
23
|
readonly token?: string;
|
|
24
24
|
allowedMeterSlugs?: string[];
|
|
25
|
-
}>;
|
|
25
|
+
} | undefined>;
|
|
26
26
|
/**
|
|
27
27
|
* List consumer portal tokens
|
|
28
28
|
* @param query - The query parameters
|
|
@@ -37,7 +37,7 @@ export declare class Portal {
|
|
|
37
37
|
readonly createdAt?: Date;
|
|
38
38
|
readonly token?: string;
|
|
39
39
|
allowedMeterSlugs?: string[];
|
|
40
|
-
}[]>;
|
|
40
|
+
}[] | undefined>;
|
|
41
41
|
/**
|
|
42
42
|
* Invalidate consumer portal tokens
|
|
43
43
|
* @param body - The id or subject to invalidate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../../src/client/portal.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../../src/client/portal.ts"],"names":[],"mappings":";;;AAGA,yCAA8C;AAE9C;;;GAGG;AACH,MAAa,MAAM;IACG;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,IAAiB,EAAE,OAAwB;QAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACf,KAA6D,EAC7D,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC1D,MAAM,EAAE,EAAE,KAAK,EAAE;YACjB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,UAAU,CACrB,IAAwF,EACxF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AArDD,wBAqDC"}
|