@stigmer/sdk 3.38.0 → 3.38.2
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/gen/subscription.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Transport } from "@connectrpc/connect";
|
|
2
2
|
import { type Subscription } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/api_pb";
|
|
3
|
-
import { type ChangePlanInput, type CancelSubscriptionInput, type GetSubscriptionForOrganizationInput, type GetEntitlementsInput, type GetEntitlementsOutput } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/io_pb";
|
|
3
|
+
import { type ChangePlanInput, type CancelSubscriptionInput, type GetSubscriptionForOrganizationInput, type GetEntitlementsInput, type GetEntitlementsOutput, type GetPeriodEstimateInput, type PeriodEstimate } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/io_pb";
|
|
4
4
|
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
5
5
|
/** Provides operations on subscription resources. */
|
|
6
6
|
export declare class SubscriptionClient {
|
|
@@ -11,6 +11,7 @@ export declare class SubscriptionClient {
|
|
|
11
11
|
cancel(input: CancelSubscriptionInput): Promise<Subscription>;
|
|
12
12
|
getForOrganization(input: GetSubscriptionForOrganizationInput): Promise<Subscription>;
|
|
13
13
|
getEntitlements(input: GetEntitlementsInput): Promise<GetEntitlementsOutput>;
|
|
14
|
+
getPeriodEstimate(input: GetPeriodEstimateInput): Promise<PeriodEstimate>;
|
|
14
15
|
}
|
|
15
16
|
/** Input for creating/updating a Subscription. */
|
|
16
17
|
export interface SubscriptionInput {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../src/gen/subscription.ts"],"names":[],"mappings":"AAKA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM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AAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY,CAgB7E"}
|
package/gen/subscription.js
CHANGED
|
@@ -48,6 +48,14 @@ export class SubscriptionClient {
|
|
|
48
48
|
throw wrapError(e);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
async getPeriodEstimate(input) {
|
|
52
|
+
try {
|
|
53
|
+
return await this.query.getPeriodEstimate(input);
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
throw wrapError(e);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
51
59
|
}
|
|
52
60
|
export function buildSubscriptionProto(input) {
|
|
53
61
|
return Object.assign(create(SubscriptionSchema), {
|
package/gen/subscription.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../src/gen/subscription.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAA+B,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAqB,MAAM,2DAA2D,CAAC;AAClH,OAAO,EAAE,6BAA6B,EAAE,MAAM,+DAA+D,CAAC;AAE9G,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAEpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AAEvG,qDAAqD;AACrD,MAAM,OAAO,kBAAkB;IACZ,OAAO,CAA+C;IACtD,KAAK,CAA6C;IAEnE,YAAY,SAAoB;QAC9B,IAAI,CAAC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
|
3
|
+
"version": "3.38.2",
|
|
4
4
|
"description": "Stigmer TypeScript SDK — typed API client for all Stigmer platform resources",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@bufbuild/protobuf": "^2.0.0",
|
|
43
43
|
"@connectrpc/connect-node": "^2.0.0",
|
|
44
|
-
"@stigmer/protos": "3.38.
|
|
44
|
+
"@stigmer/protos": "3.38.2"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/src/gen/subscription.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { create } from "@bufbuild/protobuf";
|
|
|
6
6
|
import { createClient, type Client, type Transport } from "@connectrpc/connect";
|
|
7
7
|
import { SubscriptionSchema, type Subscription } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/api_pb";
|
|
8
8
|
import { SubscriptionCommandController } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/command_pb";
|
|
9
|
-
import { ChangePlanInputSchema, CancelSubscriptionInputSchema, GetSubscriptionForOrganizationInputSchema, GetEntitlementsInputSchema, GetEntitlementsOutputSchema, type ChangePlanInput, type CancelSubscriptionInput, type GetSubscriptionForOrganizationInput, type GetEntitlementsInput, type GetEntitlementsOutput } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/io_pb";
|
|
9
|
+
import { ChangePlanInputSchema, CancelSubscriptionInputSchema, GetSubscriptionForOrganizationInputSchema, GetEntitlementsInputSchema, GetEntitlementsOutputSchema, GetPeriodEstimateInputSchema, PeriodEstimateSchema, type ChangePlanInput, type CancelSubscriptionInput, type GetSubscriptionForOrganizationInput, type GetEntitlementsInput, type GetEntitlementsOutput, type GetPeriodEstimateInput, type PeriodEstimate } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/io_pb";
|
|
10
10
|
import { SubscriptionQueryController } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/query_pb";
|
|
11
11
|
import { SubscriptionSpecSchema } from "@stigmer/protos/ai/stigmer/billing/subscription/v1/spec_pb";
|
|
12
12
|
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
@@ -45,6 +45,12 @@ export class SubscriptionClient {
|
|
|
45
45
|
return await this.query.getEntitlements(input);
|
|
46
46
|
} catch (e) { throw wrapError(e); }
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
async getPeriodEstimate(input: GetPeriodEstimateInput): Promise<PeriodEstimate> {
|
|
50
|
+
try {
|
|
51
|
+
return await this.query.getPeriodEstimate(input);
|
|
52
|
+
} catch (e) { throw wrapError(e); }
|
|
53
|
+
}
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
/** Input for creating/updating a Subscription. */
|