@flexprice/sdk 2.1.44-dev.6 → 2.1.44-dev.7
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/docs/sdk/models/create-entitlement-request.md +24 -27
- package/docs/sdk/models/create-subscription-entitlement-grant-request.md +24 -0
- package/docs/sdk/models/create-subscription-request.md +1 -0
- package/docs/sdk/models/entitlement-filter.md +19 -18
- package/docs/sdk/models/entitlement-grant-scope-entity-type.md +17 -0
- package/docs/sdk/models/entitlement-response.md +1 -0
- package/docs/sdk/models/grouped-invoicing-child-request.md +1 -0
- package/docs/sdk/models/subscription-entitlement-grants-response.md +50 -0
- package/docs/sdk/models/subscription-entitlements-response.md +41 -5
- package/docs/sdks/entitlements/README.md +4 -16
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/models/create-entitlement-request.d.ts +7 -4
- package/esm/sdk/models/create-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/create-entitlement-request.js +2 -2
- package/esm/sdk/models/create-entitlement-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts +30 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.d.ts.map +1 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.js +32 -0
- package/esm/sdk/models/create-subscription-entitlement-grant-request.js.map +1 -0
- package/esm/sdk/models/create-subscription-request.d.ts +6 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +3 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/entitlement-filter.d.ts +9 -0
- package/esm/sdk/models/entitlement-filter.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-filter.js +3 -0
- package/esm/sdk/models/entitlement-filter.js.map +1 -1
- package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts +13 -0
- package/esm/sdk/models/entitlement-grant-scope-entity-type.d.ts.map +1 -0
- package/esm/sdk/models/entitlement-grant-scope-entity-type.js +14 -0
- package/esm/sdk/models/entitlement-grant-scope-entity-type.js.map +1 -0
- package/esm/sdk/models/entitlement-response.d.ts +2 -0
- package/esm/sdk/models/entitlement-response.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-response.js +3 -0
- package/esm/sdk/models/entitlement-response.js.map +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts +6 -0
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts.map +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.js +3 -0
- package/esm/sdk/models/grouped-invoicing-child-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +3 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +3 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/subscription-entitlement-grants-response.d.ts +13 -0
- package/esm/sdk/models/subscription-entitlement-grants-response.d.ts.map +1 -0
- package/esm/sdk/models/subscription-entitlement-grants-response.js +22 -0
- package/esm/sdk/models/subscription-entitlement-grants-response.js.map +1 -0
- package/esm/sdk/models/subscription-entitlements-response.d.ts +2 -0
- package/esm/sdk/models/subscription-entitlements-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-entitlements-response.js +3 -0
- package/esm/sdk/models/subscription-entitlements-response.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/create-entitlement-request.ts +9 -6
- package/src/sdk/models/create-subscription-entitlement-grant-request.ts +85 -0
- package/src/sdk/models/create-subscription-request.ts +18 -0
- package/src/sdk/models/entitlement-filter.ts +16 -0
- package/src/sdk/models/entitlement-grant-scope-entity-type.ts +27 -0
- package/src/sdk/models/entitlement-response.ts +7 -0
- package/src/sdk/models/grouped-invoicing-child-request.ts +18 -0
- package/src/sdk/models/index.ts +3 -0
- package/src/sdk/models/subscription-entitlement-grants-response.ts +47 -0
- package/src/sdk/models/subscription-entitlements-response.ts +11 -0
|
@@ -5,34 +5,31 @@
|
|
|
5
5
|
```typescript
|
|
6
6
|
import { CreateEntitlementRequest } from "@flexprice/sdk/sdk/models";
|
|
7
7
|
|
|
8
|
-
let value: CreateEntitlementRequest = {
|
|
9
|
-
featureId: "<id>",
|
|
10
|
-
featureType: "metered",
|
|
11
|
-
};
|
|
8
|
+
let value: CreateEntitlementRequest = {};
|
|
12
9
|
```
|
|
13
10
|
|
|
14
11
|
## Fields
|
|
15
12
|
|
|
16
|
-
| Field
|
|
17
|
-
|
|
|
18
|
-
| `aggregationMode`
|
|
19
|
-
| `configValue`
|
|
20
|
-
| `endDate`
|
|
21
|
-
| `entityId`
|
|
22
|
-
| `entityType`
|
|
23
|
-
| `featureId`
|
|
24
|
-
| `featureType`
|
|
25
|
-
| `grantAllocationBehavior`
|
|
26
|
-
| `grantDurationUnit`
|
|
27
|
-
| `grantDurationValue`
|
|
28
|
-
| `grantMeasure`
|
|
29
|
-
| `grantQuota`
|
|
30
|
-
| `grantUnlimited`
|
|
31
|
-
| `isEnabled`
|
|
32
|
-
| `isSoftLimit`
|
|
33
|
-
| `parentEntitlementId`
|
|
34
|
-
| `planId`
|
|
35
|
-
| `startDate`
|
|
36
|
-
| `staticValue`
|
|
37
|
-
| `usageLimit`
|
|
38
|
-
| `usageResetPeriod`
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
15
|
+
| `aggregationMode` | [models.EntitlementAggregationMode](../../sdk/models/entitlement-aggregation-mode.md) | :heavy_minus_sign: | N/A |
|
|
16
|
+
| `configValue` | Record<string, *any*> | :heavy_minus_sign: | N/A |
|
|
17
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
18
|
+
| `entityId` | *string* | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `entityType` | [models.EntitlementEntityType](../../sdk/models/entitlement-entity-type.md) | :heavy_minus_sign: | N/A |
|
|
20
|
+
| `featureId` | *string* | :heavy_minus_sign: | Required, except on a subscription entitlement grant (entity_type SUBSCRIPTION with grant config), which has no feature. |
|
|
21
|
+
| `featureType` | [models.FeatureType](../../sdk/models/feature-type.md) | :heavy_minus_sign: | N/A |
|
|
22
|
+
| `grantAllocationBehavior` | [models.EntitlementGrantAllocationBehavior](../../sdk/models/entitlement-grant-allocation-behavior.md) | :heavy_minus_sign: | N/A |
|
|
23
|
+
| `grantDurationUnit` | [models.EntitlementGrantDurationUnit](../../sdk/models/entitlement-grant-duration-unit.md) | :heavy_minus_sign: | N/A |
|
|
24
|
+
| `grantDurationValue` | *number* | :heavy_minus_sign: | N/A |
|
|
25
|
+
| `grantMeasure` | [models.EntitlementGrantMeasure](../../sdk/models/entitlement-grant-measure.md) | :heavy_minus_sign: | N/A |
|
|
26
|
+
| `grantQuota` | *string* | :heavy_minus_sign: | N/A |
|
|
27
|
+
| `grantUnlimited` | *boolean* | :heavy_minus_sign: | N/A |
|
|
28
|
+
| `isEnabled` | *boolean* | :heavy_minus_sign: | N/A |
|
|
29
|
+
| `isSoftLimit` | *boolean* | :heavy_minus_sign: | N/A |
|
|
30
|
+
| `parentEntitlementId` | *string* | :heavy_minus_sign: | N/A |
|
|
31
|
+
| `planId` | *string* | :heavy_minus_sign: | N/A |
|
|
32
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
33
|
+
| `staticValue` | *string* | :heavy_minus_sign: | N/A |
|
|
34
|
+
| `usageLimit` | *number* | :heavy_minus_sign: | Deprecated: use grant_quota; a metered usage_limit is converted to a grant on create. |
|
|
35
|
+
| `usageResetPeriod` | [models.EntitlementUsageResetPeriod](../../sdk/models/entitlement-usage-reset-period.md) | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreateSubscriptionEntitlementGrantRequest
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CreateSubscriptionEntitlementGrantRequest } from "@flexprice/sdk/sdk/models";
|
|
7
|
+
|
|
8
|
+
let value: CreateSubscriptionEntitlementGrantRequest = {
|
|
9
|
+
grantDurationUnit: "hour",
|
|
10
|
+
grantQuota: "<value>",
|
|
11
|
+
};
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Fields
|
|
15
|
+
|
|
16
|
+
| Field | Type | Required | Description |
|
|
17
|
+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
|
18
|
+
| `aggregationMode` | [models.EntitlementAggregationMode](../../sdk/models/entitlement-aggregation-mode.md) | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `endDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
20
|
+
| `grantAllocationBehavior` | [models.EntitlementGrantAllocationBehavior](../../sdk/models/entitlement-grant-allocation-behavior.md) | :heavy_minus_sign: | N/A |
|
|
21
|
+
| `grantDurationUnit` | [models.EntitlementGrantDurationUnit](../../sdk/models/entitlement-grant-duration-unit.md) | :heavy_check_mark: | N/A |
|
|
22
|
+
| `grantDurationValue` | *number* | :heavy_minus_sign: | N/A |
|
|
23
|
+
| `grantQuota` | *string* | :heavy_check_mark: | N/A |
|
|
24
|
+
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | StartDate defaults to the subscription's start; EndDate leaves the grant open. |
|
|
@@ -54,6 +54,7 @@ let value: CreateSubscriptionRequest = {
|
|
|
54
54
|
| `prorationBehavior` | [models.ProrationBehavior](../../sdk/models/proration-behavior.md) | :heavy_minus_sign: | N/A |
|
|
55
55
|
| `startDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
56
56
|
| `subscriptionCoupons` | [models.SubscriptionCouponInput](../../sdk/models/subscription-coupon-input.md)[] | :heavy_minus_sign: | SubscriptionCoupons is the preferred way to attach coupons at creation.<br/>Accepts coupon_code; optionally targets a line item via price_id. |
|
|
57
|
+
| `subscriptionEntitlementGrants` | [models.CreateSubscriptionEntitlementGrantRequest](../../sdk/models/create-subscription-entitlement-grant-request.md)[] | :heavy_minus_sign: | SubscriptionEntitlementGrants are dollar entitlement grants shared by every usage line, created with the subscription. |
|
|
57
58
|
| `subscriptionStatus` | [models.SubscriptionStatus](../../sdk/models/subscription-status.md) | :heavy_minus_sign: | N/A |
|
|
58
59
|
| `taxRateOverrides` | [models.TaxRateOverride](../../sdk/models/tax-rate-override.md)[] | :heavy_minus_sign: | N/A |
|
|
59
60
|
| `timezone` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -10,21 +10,22 @@ let value: EntitlementFilter = {};
|
|
|
10
10
|
|
|
11
11
|
## Fields
|
|
12
12
|
|
|
13
|
-
| Field
|
|
14
|
-
|
|
|
15
|
-
| `endTime`
|
|
16
|
-
| `entityIds`
|
|
17
|
-
| `entityType`
|
|
18
|
-
| `expand`
|
|
19
|
-
| `featureIds`
|
|
20
|
-
| `featureType`
|
|
21
|
-
| `filters`
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
13
|
+
| Field | Type | Required | Description |
|
|
14
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
16
|
+
| `entityIds` | *string*[] | :heavy_minus_sign: | N/A |
|
|
17
|
+
| `entityType` | [models.EntitlementEntityType](../../sdk/models/entitlement-entity-type.md) | :heavy_minus_sign: | N/A |
|
|
18
|
+
| `expand` | *string* | :heavy_minus_sign: | N/A |
|
|
19
|
+
| `featureIds` | *string*[] | :heavy_minus_sign: | N/A |
|
|
20
|
+
| `featureType` | [models.FeatureType](../../sdk/models/feature-type.md) | :heavy_minus_sign: | N/A |
|
|
21
|
+
| `filters` | [models.FilterCondition](../../sdk/models/filter-condition.md)[] | :heavy_minus_sign: | Specific filters for entitlements |
|
|
22
|
+
| `grantScopes` | [models.EntitlementGrantScopeEntityType](../../sdk/models/entitlement-grant-scope-entity-type.md)[] | :heavy_minus_sign: | GrantScopes selects entitlements by grant scope. Empty means feature only, so<br/>subscription entitlement grants, which have no feature, never reach feature-based reads. |
|
|
23
|
+
| `hasGrantConfig` | *boolean* | :heavy_minus_sign: | HasGrantConfig filters on grant-config presence (grant_quota set or not). |
|
|
24
|
+
| `isEnabled` | *boolean* | :heavy_minus_sign: | N/A |
|
|
25
|
+
| `limit` | *number* | :heavy_minus_sign: | N/A |
|
|
26
|
+
| `offset` | *number* | :heavy_minus_sign: | N/A |
|
|
27
|
+
| `order` | [models.EntitlementFilterOrder](../../sdk/models/entitlement-filter-order.md) | :heavy_minus_sign: | N/A |
|
|
28
|
+
| `planIds` | *string*[] | :heavy_minus_sign: | N/A |
|
|
29
|
+
| `sort` | [models.SortCondition](../../sdk/models/sort-condition.md)[] | :heavy_minus_sign: | N/A |
|
|
30
|
+
| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
|
|
31
|
+
| `status` | [models.Status](../../sdk/models/status.md) | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# EntitlementGrantScopeEntityType
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { EntitlementGrantScopeEntityType } from "@flexprice/sdk/sdk/models";
|
|
7
|
+
|
|
8
|
+
let value: EntitlementGrantScopeEntityType = "subscription";
|
|
9
|
+
|
|
10
|
+
// Open enum: unrecognized values are captured as Unrecognized<string>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Values
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
"feature" | "subscription" | "group" | Unrecognized<string>
|
|
17
|
+
```
|
|
@@ -60,6 +60,7 @@ let value: EntitlementResponse = {
|
|
|
60
60
|
| `grantDurationValue` | *number* | :heavy_minus_sign: | N/A |
|
|
61
61
|
| `grantMeasure` | [models.EntitlementGrantMeasure](../../sdk/models/entitlement-grant-measure.md) | :heavy_minus_sign: | N/A |
|
|
62
62
|
| `grantQuota` | *string* | :heavy_minus_sign: | N/A |
|
|
63
|
+
| `grantScope` | [models.EntitlementGrantScopeEntityType](../../sdk/models/entitlement-grant-scope-entity-type.md) | :heavy_minus_sign: | N/A |
|
|
63
64
|
| `id` | *string* | :heavy_minus_sign: | N/A |
|
|
64
65
|
| `isEnabled` | *boolean* | :heavy_minus_sign: | N/A |
|
|
65
66
|
| `isSoftLimit` | *boolean* | :heavy_minus_sign: | N/A |
|
|
@@ -31,5 +31,6 @@ let value: GroupedInvoicingChildRequest = {
|
|
|
31
31
|
| `phases` | [models.SubscriptionPhaseCreateRequest](../../sdk/models/subscription-phase-create-request.md)[] | :heavy_minus_sign: | N/A |
|
|
32
32
|
| `planId` | *string* | :heavy_check_mark: | N/A |
|
|
33
33
|
| `subscriptionCoupons` | [models.SubscriptionCouponInput](../../sdk/models/subscription-coupon-input.md)[] | :heavy_minus_sign: | SubscriptionCoupons is the preferred way to attach coupons at creation.<br/>Accepts coupon_code; optionally targets a line item via price_id. |
|
|
34
|
+
| `subscriptionEntitlementGrants` | [models.CreateSubscriptionEntitlementGrantRequest](../../sdk/models/create-subscription-entitlement-grant-request.md)[] | :heavy_minus_sign: | SubscriptionEntitlementGrants are dollar entitlement grants shared by every usage line, created with the subscription. |
|
|
34
35
|
| `taxRateOverrides` | [models.TaxRateOverride](../../sdk/models/tax-rate-override.md)[] | :heavy_minus_sign: | N/A |
|
|
35
36
|
| `trialPeriodDays` | *number* | :heavy_minus_sign: | TrialPeriodDays: nil = inherit from plan prices, 0 = no trial, >0 = override in days. |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# SubscriptionEntitlementGrantsResponse
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SubscriptionEntitlementGrantsResponse } from "@flexprice/sdk/sdk/models";
|
|
7
|
+
|
|
8
|
+
let value: SubscriptionEntitlementGrantsResponse = {
|
|
9
|
+
entitlements: [
|
|
10
|
+
{
|
|
11
|
+
addon: {
|
|
12
|
+
prices: [
|
|
13
|
+
{
|
|
14
|
+
addon: {},
|
|
15
|
+
meter: {
|
|
16
|
+
createdAt: new Date("2024-03-20T15:04:05Z"),
|
|
17
|
+
eventName: "api_request",
|
|
18
|
+
id: "550e8400-e29b-41d4-a716-446655440000",
|
|
19
|
+
name: "API Usage Meter",
|
|
20
|
+
status: "published",
|
|
21
|
+
tenantId: "tenant123",
|
|
22
|
+
updatedAt: new Date("2024-03-20T15:04:05Z"),
|
|
23
|
+
},
|
|
24
|
+
plan: {},
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
feature: {
|
|
29
|
+
meter: {
|
|
30
|
+
createdAt: new Date("2024-03-20T15:04:05Z"),
|
|
31
|
+
eventName: "api_request",
|
|
32
|
+
id: "550e8400-e29b-41d4-a716-446655440000",
|
|
33
|
+
name: "API Usage Meter",
|
|
34
|
+
status: "published",
|
|
35
|
+
tenantId: "tenant123",
|
|
36
|
+
updatedAt: new Date("2024-03-20T15:04:05Z"),
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
plan: {},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Fields
|
|
46
|
+
|
|
47
|
+
| Field | Type | Required | Description |
|
|
48
|
+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
|
|
49
|
+
| `entitlements` | [models.EntitlementResponse](../../sdk/models/entitlement-response.md)[] | :heavy_minus_sign: | N/A |
|
|
50
|
+
| `grantState` | [models.GrantState](../../sdk/models/grant-state.md) | :heavy_minus_sign: | N/A |
|
|
@@ -21,13 +21,49 @@ let value: SubscriptionEntitlementsResponse = {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
|
+
subscriptionEntitlementGrants: {
|
|
25
|
+
entitlements: [
|
|
26
|
+
{
|
|
27
|
+
addon: {
|
|
28
|
+
prices: [
|
|
29
|
+
{
|
|
30
|
+
addon: {},
|
|
31
|
+
meter: {
|
|
32
|
+
createdAt: new Date("2024-03-20T15:04:05Z"),
|
|
33
|
+
eventName: "api_request",
|
|
34
|
+
id: "550e8400-e29b-41d4-a716-446655440000",
|
|
35
|
+
name: "API Usage Meter",
|
|
36
|
+
status: "published",
|
|
37
|
+
tenantId: "tenant123",
|
|
38
|
+
updatedAt: new Date("2024-03-20T15:04:05Z"),
|
|
39
|
+
},
|
|
40
|
+
plan: {},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
feature: {
|
|
45
|
+
meter: {
|
|
46
|
+
createdAt: new Date("2024-03-20T15:04:05Z"),
|
|
47
|
+
eventName: "api_request",
|
|
48
|
+
id: "550e8400-e29b-41d4-a716-446655440000",
|
|
49
|
+
name: "API Usage Meter",
|
|
50
|
+
status: "published",
|
|
51
|
+
tenantId: "tenant123",
|
|
52
|
+
updatedAt: new Date("2024-03-20T15:04:05Z"),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
plan: {},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
24
59
|
};
|
|
25
60
|
```
|
|
26
61
|
|
|
27
62
|
## Fields
|
|
28
63
|
|
|
29
|
-
| Field
|
|
30
|
-
|
|
|
31
|
-
| `features`
|
|
32
|
-
| `planId`
|
|
33
|
-
| `
|
|
64
|
+
| Field | Type | Required | Description |
|
|
65
|
+
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
66
|
+
| `features` | [models.AggregatedFeature](../../sdk/models/aggregated-feature.md)[] | :heavy_minus_sign: | N/A |
|
|
67
|
+
| `planId` | *string* | :heavy_minus_sign: | N/A |
|
|
68
|
+
| `subscriptionEntitlementGrants` | [models.SubscriptionEntitlementGrantsResponse](../../sdk/models/subscription-entitlement-grants-response.md) | :heavy_minus_sign: | N/A |
|
|
69
|
+
| `subscriptionId` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -99,10 +99,7 @@ const flexprice = new Flexprice({
|
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
async function run() {
|
|
102
|
-
const result = await flexprice.entitlements.createEntitlement({
|
|
103
|
-
featureId: "<id>",
|
|
104
|
-
featureType: "metered",
|
|
105
|
-
});
|
|
102
|
+
const result = await flexprice.entitlements.createEntitlement({});
|
|
106
103
|
|
|
107
104
|
console.log(result);
|
|
108
105
|
}
|
|
@@ -125,10 +122,7 @@ const flexprice = new FlexpriceCore({
|
|
|
125
122
|
});
|
|
126
123
|
|
|
127
124
|
async function run() {
|
|
128
|
-
const res = await entitlementsCreateEntitlement(flexprice, {
|
|
129
|
-
featureId: "<id>",
|
|
130
|
-
featureType: "metered",
|
|
131
|
-
});
|
|
125
|
+
const res = await entitlementsCreateEntitlement(flexprice, {});
|
|
132
126
|
if (res.ok) {
|
|
133
127
|
const { value: result } = res;
|
|
134
128
|
console.log(result);
|
|
@@ -178,10 +172,7 @@ const flexprice = new Flexprice({
|
|
|
178
172
|
async function run() {
|
|
179
173
|
const result = await flexprice.entitlements.createEntitlementsBulk({
|
|
180
174
|
items: [
|
|
181
|
-
{
|
|
182
|
-
featureId: "<id>",
|
|
183
|
-
featureType: "config",
|
|
184
|
-
},
|
|
175
|
+
{},
|
|
185
176
|
],
|
|
186
177
|
});
|
|
187
178
|
|
|
@@ -208,10 +199,7 @@ const flexprice = new FlexpriceCore({
|
|
|
208
199
|
async function run() {
|
|
209
200
|
const res = await entitlementsCreateEntitlementsBulk(flexprice, {
|
|
210
201
|
items: [
|
|
211
|
-
{
|
|
212
|
-
featureId: "<id>",
|
|
213
|
-
featureType: "config",
|
|
214
|
-
},
|
|
202
|
+
{},
|
|
215
203
|
],
|
|
216
204
|
});
|
|
217
205
|
if (res.ok) {
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "1.0";
|
|
38
|
-
readonly sdkVersion: "2.1.44-dev.
|
|
38
|
+
readonly sdkVersion: "2.1.44-dev.7";
|
|
39
39
|
readonly genVersion: "2.954.8";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.1.44-dev.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.1.44-dev.7 2.954.8 1.0 @flexprice/sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "1.0",
|
|
34
|
-
sdkVersion: "2.1.44-dev.
|
|
34
|
+
sdkVersion: "2.1.44-dev.7",
|
|
35
35
|
genVersion: "2.954.8",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 2.1.44-dev.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 2.1.44-dev.7 2.954.8 1.0 @flexprice/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -14,8 +14,11 @@ export type CreateEntitlementRequest = {
|
|
|
14
14
|
endDate?: Date | undefined;
|
|
15
15
|
entityId?: string | undefined;
|
|
16
16
|
entityType?: EntitlementEntityType | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Required, except on a subscription entitlement grant (entity_type SUBSCRIPTION with grant config), which has no feature.
|
|
19
|
+
*/
|
|
20
|
+
featureId?: string | undefined;
|
|
21
|
+
featureType?: FeatureType | undefined;
|
|
19
22
|
grantAllocationBehavior?: EntitlementGrantAllocationBehavior | undefined;
|
|
20
23
|
grantDurationUnit?: EntitlementGrantDurationUnit | undefined;
|
|
21
24
|
grantDurationValue?: number | undefined;
|
|
@@ -43,8 +46,8 @@ export type CreateEntitlementRequest$Outbound = {
|
|
|
43
46
|
end_date?: string | undefined;
|
|
44
47
|
entity_id?: string | undefined;
|
|
45
48
|
entity_type?: string | undefined;
|
|
46
|
-
feature_id
|
|
47
|
-
feature_type
|
|
49
|
+
feature_id?: string | undefined;
|
|
50
|
+
feature_type?: string | undefined;
|
|
48
51
|
grant_allocation_behavior?: string | undefined;
|
|
49
52
|
grant_duration_unit?: string | undefined;
|
|
50
53
|
grant_duration_value?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-entitlement-request.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/create-entitlement-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qBAAqB,EAEtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,kCAAkC,EAEnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,4BAA4B,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,uBAAuB,EAExB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,2BAA2B,EAE5B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,WAAW,EAA8B,MAAM,mBAAmB,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IACzD,WAAW,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-entitlement-request.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/create-entitlement-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qBAAqB,EAEtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,kCAAkC,EAEnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,4BAA4B,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,uBAAuB,EAExB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,2BAA2B,EAE5B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,WAAW,EAA8B,MAAM,mBAAmB,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IACrC,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 +17,8 @@ export const CreateEntitlementRequest$outboundSchema = z.pipe(z.object({
|
|
|
17
17
|
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
18
18
|
entityId: z.optional(z.string()),
|
|
19
19
|
entityType: z.optional(EntitlementEntityType$outboundSchema),
|
|
20
|
-
featureId: z.string(),
|
|
21
|
-
featureType: FeatureType$outboundSchema,
|
|
20
|
+
featureId: z.optional(z.string()),
|
|
21
|
+
featureType: z.optional(FeatureType$outboundSchema),
|
|
22
22
|
grantAllocationBehavior: z.optional(EntitlementGrantAllocationBehavior$outboundSchema),
|
|
23
23
|
grantDurationUnit: z.optional(EntitlementGrantDurationUnit$outboundSchema),
|
|
24
24
|
grantDurationValue: z.optional(z.int()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-entitlement-request.js","sourceRoot":"","sources":["../../../src/sdk/models/create-entitlement-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,yCAAyC,GAC1C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,oCAAoC,GACrC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,iDAAiD,GAClD,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAEL,2CAA2C,GAC5C,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,sCAAsC,GACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,0CAA0C,GAC3C,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAe,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"create-entitlement-request.js","sourceRoot":"","sources":["../../../src/sdk/models/create-entitlement-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACj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nB,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;QAC3B,uBAAuB,EAAE,2BAA2B;QACpD,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,sBAAsB;QAC1C,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,aAAa;QACzB,cAAc,EAAE,iBAAiB;QACjC,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,eAAe;QAC5B,mBAAmB,EAAE,uBAAuB;QAC5C,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,gBAAgB,EAAE,oBAAoB;KACvC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD,EAC1C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { EntitlementAggregationMode } from "./entitlement-aggregation-mode.js";
|
|
3
|
+
import { EntitlementGrantAllocationBehavior } from "./entitlement-grant-allocation-behavior.js";
|
|
4
|
+
import { EntitlementGrantDurationUnit } from "./entitlement-grant-duration-unit.js";
|
|
5
|
+
export type CreateSubscriptionEntitlementGrantRequest = {
|
|
6
|
+
aggregationMode?: EntitlementAggregationMode | undefined;
|
|
7
|
+
endDate?: Date | undefined;
|
|
8
|
+
grantAllocationBehavior?: EntitlementGrantAllocationBehavior | undefined;
|
|
9
|
+
grantDurationUnit: EntitlementGrantDurationUnit;
|
|
10
|
+
grantDurationValue?: number | undefined;
|
|
11
|
+
grantQuota: string;
|
|
12
|
+
/**
|
|
13
|
+
* StartDate defaults to the subscription's start; EndDate leaves the grant open.
|
|
14
|
+
*/
|
|
15
|
+
startDate?: Date | undefined;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type CreateSubscriptionEntitlementGrantRequest$Outbound = {
|
|
19
|
+
aggregation_mode?: string | undefined;
|
|
20
|
+
end_date?: string | undefined;
|
|
21
|
+
grant_allocation_behavior?: string | undefined;
|
|
22
|
+
grant_duration_unit: string;
|
|
23
|
+
grant_duration_value?: number | undefined;
|
|
24
|
+
grant_quota: string;
|
|
25
|
+
start_date?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const CreateSubscriptionEntitlementGrantRequest$outboundSchema: z.ZodMiniType<CreateSubscriptionEntitlementGrantRequest$Outbound, CreateSubscriptionEntitlementGrantRequest>;
|
|
29
|
+
export declare function createSubscriptionEntitlementGrantRequestToJSON(createSubscriptionEntitlementGrantRequest: CreateSubscriptionEntitlementGrantRequest): string;
|
|
30
|
+
//# sourceMappingURL=create-subscription-entitlement-grant-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-subscription-entitlement-grant-request.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/create-subscription-entitlement-grant-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,kCAAkC,EAEnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,4BAA4B,EAE7B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,yCAAyC,GAAG;IACtD,eAAe,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IACzD,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,uBAAuB,CAAC,EAAE,kCAAkC,GAAG,SAAS,CAAC;IACzE,iBAAiB,EAAE,4BAA4B,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kDAAkD,GAAG;IAC/D,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,yBAAyB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wDAAwD,EACnE,CAAC,CAAC,WAAW,CACX,kDAAkD,EAClD,yCAAyC,CA0B1C,CAAC;AAEJ,wBAAgB,+CAA+C,CAC7D,yCAAyC,EACvC,yCAAyC,GAC1C,MAAM,CAMR"}
|