@contractspec/example.saas-boilerplate 1.52.0 → 1.53.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/.turbo/turbo-build$colon$bundle.log +8 -8
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +22 -0
- package/dist/billing/billing.entity.d.ts +41 -41
- package/dist/billing/billing.entity.d.ts.map +1 -1
- package/dist/billing/billing.enum.d.ts +3 -3
- package/dist/billing/billing.enum.d.ts.map +1 -1
- package/dist/billing/billing.event.d.ts +21 -21
- package/dist/billing/billing.event.d.ts.map +1 -1
- package/dist/billing/billing.operations.d.ts +42 -42
- package/dist/billing/billing.operations.d.ts.map +1 -1
- package/dist/billing/billing.presentation.d.ts +3 -3
- package/dist/billing/billing.schema.d.ts +47 -47
- package/dist/billing/billing.schema.d.ts.map +1 -1
- package/dist/dashboard/dashboard.presentation.d.ts +3 -3
- package/dist/dashboard/dashboard.presentation.d.ts.map +1 -1
- package/dist/example.d.ts +2 -2
- package/dist/project/project.entity.d.ts +24 -24
- package/dist/project/project.enum.d.ts +3 -3
- package/dist/project/project.schema.d.ts +54 -54
- package/dist/saas-boilerplate.feature.d.ts +2 -2
- package/dist/settings/settings.entity.d.ts +24 -24
- package/dist/settings/settings.enum.d.ts +2 -2
- package/dist/ui/modals/CreateProjectModal.d.ts +2 -2
- package/dist/ui/modals/ProjectActionsModal.d.ts +2 -2
- package/package.json +12 -12
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$ tsdown
|
|
2
2
|
[34mℹ[39m tsdown [2mv0.19.0[22m powered by rolldown [2mv1.0.0-beta.59[22m
|
|
3
3
|
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/saas-boilerplate/tsdown.config.js[24m
|
|
4
|
-
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/saas-boilerplate.feature.ts, src/
|
|
4
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/saas-boilerplate.feature.ts, src/dashboard/dashboard.presentation.ts, src/dashboard/index.ts, src/docs/index.ts, src/docs/saas-boilerplate.docblock.ts, src/billing/billing.entity.ts, src/billing/billing.enum.ts, src/billing/billing.event.ts, src/billing/billing.handler.ts, src/billing/billing.operations.ts, src/billing/billing.presentation.ts, src/billing/billing.schema.ts, src/billing/index.ts, src/handlers/index.ts, src/handlers/saas.handlers.ts, src/presentations/index.ts, src/project/index.ts, src/project/project.entity.ts, src/project/project.enum.ts, src/project/project.event.ts, src/project/project.handler.ts, src/project/project.operations.ts, src/project/project.presentation.ts, src/project/project.schema.ts, src/seeders/index.ts, src/settings/index.ts, src/settings/settings.entity.ts, src/settings/settings.enum.ts, src/shared/mock-data.ts, src/shared/overlay-types.ts, src/tests/operations.test-spec.ts, src/ui/SaasDashboard.tsx, src/ui/SaasProjectList.tsx, src/ui/SaasSettingsPanel.tsx, src/ui/index.ts, src/ui/hooks/index.ts, src/ui/hooks/useProjectList.ts, src/ui/hooks/useProjectMutations.ts, src/ui/modals/CreateProjectModal.tsx, src/ui/modals/ProjectActionsModal.tsx, src/ui/modals/index.ts, src/ui/overlays/demo-overlays.ts, src/ui/overlays/index.ts, src/ui/renderers/index.ts, src/ui/renderers/project-list.markdown.ts, src/ui/renderers/project-list.renderer.tsx[39m
|
|
5
5
|
[34mℹ[39m target: [34mesnext[39m
|
|
6
6
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
7
7
|
[34mℹ[39m Build start
|
|
@@ -103,7 +103,7 @@ $ tsdown
|
|
|
103
103
|
[34mℹ[39m [2mdist/[22msettings/settings.enum.js.map [2m 0.54 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
104
104
|
[34mℹ[39m [2mdist/[22mui/modals/CreateProjectModal.d.ts.map [2m 0.51 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
105
105
|
[34mℹ[39m [2mdist/[22mshared/overlay-types.d.ts.map [2m 0.48 kB[22m [2m│ gzip: 0.27 kB[22m
|
|
106
|
-
[34mℹ[39m [2mdist/[22mbilling/billing.entity.d.ts.map [2m 0.44 kB[22m [2m│ gzip: 0.
|
|
106
|
+
[34mℹ[39m [2mdist/[22mbilling/billing.entity.d.ts.map [2m 0.44 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
107
107
|
[34mℹ[39m [2mdist/[22mui/hooks/useProjectList.d.ts.map [2m 0.34 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
108
108
|
[34mℹ[39m [2mdist/[22mproject/project.entity.d.ts.map [2m 0.34 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
109
109
|
[34mℹ[39m [2mdist/[22msettings/settings.entity.d.ts.map [2m 0.29 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
@@ -129,11 +129,11 @@ $ tsdown
|
|
|
129
129
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.operations.d.ts[22m[39m [2m11.81 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
130
130
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.schema.d.ts[22m[39m [2m 6.56 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
131
131
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m 6.36 kB[22m [2m│ gzip: 1.30 kB[22m
|
|
132
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.schema.d.ts[22m[39m [2m 5.
|
|
133
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.operations.d.ts[22m[39m [2m 4.
|
|
134
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.entity.d.ts[22m[39m [2m 2.
|
|
132
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.schema.d.ts[22m[39m [2m 5.68 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
133
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.operations.d.ts[22m[39m [2m 4.89 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
134
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.entity.d.ts[22m[39m [2m 2.95 kB[22m [2m│ gzip: 0.52 kB[22m
|
|
135
135
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.event.d.ts[22m[39m [2m 2.77 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
136
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.event.d.ts[22m[39m [2m 2.
|
|
136
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.event.d.ts[22m[39m [2m 2.60 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
137
137
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.handler.d.ts[22m[39m [2m 2.12 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
138
138
|
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/saas.handlers.d.ts[22m[39m [2m 1.95 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
139
139
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.handler.d.ts[22m[39m [2m 1.93 kB[22m [2m│ gzip: 0.53 kB[22m
|
|
@@ -174,7 +174,7 @@ $ tsdown
|
|
|
174
174
|
[34mℹ[39m [2mdist/[22m[32m[1mui/overlays/index.d.ts[22m[39m [2m 0.15 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
175
175
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
176
176
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/saas-boilerplate.docblock.d.ts[22m[39m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
177
|
-
[34mℹ[39m 168 files, total: 388.
|
|
177
|
+
[34mℹ[39m 168 files, total: 388.42 kB
|
|
178
178
|
src/ui/renderers/project-list.markdown.ts (10:7) [33m[UNRESOLVED_IMPORT] Warning:[0m Could not resolve '@contractspec/example.saas-boilerplate/handlers' in src/ui/renderers/project-list.markdown.ts
|
|
179
179
|
[38;5;246m╭[0m[38;5;246m─[0m[38;5;246m[[0m src/ui/renderers/project-list.markdown.ts:10:8 [38;5;246m][0m
|
|
180
180
|
[38;5;246m│[0m
|
|
@@ -185,4 +185,4 @@ src/ui/renderers/project-list.markdown.ts (10:7) [33m[UNRESOLVED_IMPORT] Warnin
|
|
|
185
185
|
[38;5;240m │[0m [38;5;115mHelp[0m: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
|
|
186
186
|
[38;5;246m────╯[0m
|
|
187
187
|
|
|
188
|
-
[32m✔[39m Build complete in [
|
|
188
|
+
[32m✔[39m Build complete in [32m34129ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -186,4 +186,4 @@ src/ui/renderers/project-list.markdown.ts (10:7) [33m[UNRESOLVED_IMPORT] Warnin
|
|
|
186
186
|
[38;5;240m │[0m [38;5;115mHelp[0m: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
|
|
187
187
|
[38;5;246m────╯[0m
|
|
188
188
|
|
|
189
|
-
[32m✔[39m Build complete in [
|
|
189
|
+
[32m✔[39m Build complete in [32m17477ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @contractspec/example.saas-boilerplate
|
|
2
2
|
|
|
3
|
+
## 1.53.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f4180d4: fix: performance improvement
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [eefeb1b]
|
|
12
|
+
- Updated dependencies [5b371b1]
|
|
13
|
+
- Updated dependencies [f4180d4]
|
|
14
|
+
- Updated dependencies [64d84e1]
|
|
15
|
+
- @contractspec/lib.design-system@1.53.0
|
|
16
|
+
- @contractspec/lib.contracts@1.53.0
|
|
17
|
+
- @contractspec/lib.schema@1.53.0
|
|
18
|
+
- @contractspec/lib.example-shared-ui@1.7.0
|
|
19
|
+
- @contractspec/lib.identity-rbac@1.53.0
|
|
20
|
+
- @contractspec/lib.jobs@1.53.0
|
|
21
|
+
- @contractspec/lib.runtime-sandbox@0.8.0
|
|
22
|
+
- @contractspec/module.audit-trail@1.53.0
|
|
23
|
+
- @contractspec/module.notifications@1.53.0
|
|
24
|
+
|
|
3
25
|
## 1.52.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema86 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/billing/billing.entity.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Subscription status enum for entities.
|
|
6
6
|
*/
|
|
7
|
-
declare const SubscriptionStatusEnum:
|
|
7
|
+
declare const SubscriptionStatusEnum: _contractspec_lib_schema86.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Subscription entity - organization subscription info.
|
|
10
10
|
*/
|
|
11
|
-
declare const SubscriptionEntity:
|
|
12
|
-
id:
|
|
13
|
-
organizationId:
|
|
14
|
-
planId:
|
|
15
|
-
planName:
|
|
16
|
-
status:
|
|
17
|
-
currentPeriodStart:
|
|
18
|
-
currentPeriodEnd:
|
|
19
|
-
trialEndsAt:
|
|
20
|
-
cancelAtPeriodEnd:
|
|
21
|
-
canceledAt:
|
|
22
|
-
stripeSubscriptionId:
|
|
23
|
-
stripeCustomerId:
|
|
24
|
-
metadata:
|
|
25
|
-
createdAt:
|
|
26
|
-
updatedAt:
|
|
11
|
+
declare const SubscriptionEntity: _contractspec_lib_schema86.EntitySpec<{
|
|
12
|
+
id: _contractspec_lib_schema86.EntityScalarField;
|
|
13
|
+
organizationId: _contractspec_lib_schema86.EntityScalarField;
|
|
14
|
+
planId: _contractspec_lib_schema86.EntityScalarField;
|
|
15
|
+
planName: _contractspec_lib_schema86.EntityScalarField;
|
|
16
|
+
status: _contractspec_lib_schema86.EntityEnumField;
|
|
17
|
+
currentPeriodStart: _contractspec_lib_schema86.EntityScalarField;
|
|
18
|
+
currentPeriodEnd: _contractspec_lib_schema86.EntityScalarField;
|
|
19
|
+
trialEndsAt: _contractspec_lib_schema86.EntityScalarField;
|
|
20
|
+
cancelAtPeriodEnd: _contractspec_lib_schema86.EntityScalarField;
|
|
21
|
+
canceledAt: _contractspec_lib_schema86.EntityScalarField;
|
|
22
|
+
stripeSubscriptionId: _contractspec_lib_schema86.EntityScalarField;
|
|
23
|
+
stripeCustomerId: _contractspec_lib_schema86.EntityScalarField;
|
|
24
|
+
metadata: _contractspec_lib_schema86.EntityScalarField;
|
|
25
|
+
createdAt: _contractspec_lib_schema86.EntityScalarField;
|
|
26
|
+
updatedAt: _contractspec_lib_schema86.EntityScalarField;
|
|
27
27
|
}>;
|
|
28
28
|
/**
|
|
29
29
|
* BillingUsage entity - track feature usage.
|
|
30
30
|
*/
|
|
31
|
-
declare const BillingUsageEntity:
|
|
32
|
-
id:
|
|
33
|
-
organizationId:
|
|
34
|
-
feature:
|
|
35
|
-
quantity:
|
|
36
|
-
unit:
|
|
37
|
-
billingPeriod:
|
|
38
|
-
recordedAt:
|
|
39
|
-
sourceId:
|
|
40
|
-
sourceType:
|
|
41
|
-
metadata:
|
|
31
|
+
declare const BillingUsageEntity: _contractspec_lib_schema86.EntitySpec<{
|
|
32
|
+
id: _contractspec_lib_schema86.EntityScalarField;
|
|
33
|
+
organizationId: _contractspec_lib_schema86.EntityScalarField;
|
|
34
|
+
feature: _contractspec_lib_schema86.EntityScalarField;
|
|
35
|
+
quantity: _contractspec_lib_schema86.EntityScalarField;
|
|
36
|
+
unit: _contractspec_lib_schema86.EntityScalarField;
|
|
37
|
+
billingPeriod: _contractspec_lib_schema86.EntityScalarField;
|
|
38
|
+
recordedAt: _contractspec_lib_schema86.EntityScalarField;
|
|
39
|
+
sourceId: _contractspec_lib_schema86.EntityScalarField;
|
|
40
|
+
sourceType: _contractspec_lib_schema86.EntityScalarField;
|
|
41
|
+
metadata: _contractspec_lib_schema86.EntityScalarField;
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
44
44
|
* UsageLimit entity - feature usage limits per plan.
|
|
45
45
|
*/
|
|
46
|
-
declare const UsageLimitEntity:
|
|
47
|
-
id:
|
|
48
|
-
planId:
|
|
49
|
-
organizationId:
|
|
50
|
-
feature:
|
|
51
|
-
limit:
|
|
52
|
-
resetPeriod:
|
|
53
|
-
isSoftLimit:
|
|
54
|
-
overage:
|
|
55
|
-
overageRate:
|
|
56
|
-
createdAt:
|
|
57
|
-
updatedAt:
|
|
46
|
+
declare const UsageLimitEntity: _contractspec_lib_schema86.EntitySpec<{
|
|
47
|
+
id: _contractspec_lib_schema86.EntityScalarField;
|
|
48
|
+
planId: _contractspec_lib_schema86.EntityScalarField;
|
|
49
|
+
organizationId: _contractspec_lib_schema86.EntityScalarField;
|
|
50
|
+
feature: _contractspec_lib_schema86.EntityScalarField;
|
|
51
|
+
limit: _contractspec_lib_schema86.EntityScalarField;
|
|
52
|
+
resetPeriod: _contractspec_lib_schema86.EntityScalarField;
|
|
53
|
+
isSoftLimit: _contractspec_lib_schema86.EntityScalarField;
|
|
54
|
+
overage: _contractspec_lib_schema86.EntityScalarField;
|
|
55
|
+
overageRate: _contractspec_lib_schema86.EntityScalarField;
|
|
56
|
+
createdAt: _contractspec_lib_schema86.EntityScalarField;
|
|
57
|
+
updatedAt: _contractspec_lib_schema86.EntityScalarField;
|
|
58
58
|
}>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { BillingUsageEntity, SubscriptionEntity, SubscriptionStatusEnum, UsageLimitEntity };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.entity.d.ts","names":[],"sources":["../../src/billing/billing.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,sBAKX,EAAA,
|
|
1
|
+
{"version":3,"file":"billing.entity.d.ts","names":[],"sources":["../../src/billing/billing.entity.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,sBAKX,EAAA,0BAAA,CALiC,aAKjC;AAKF;;;cAAa,+CAAkB;MAuC7B,0BAAA,CAAA;;;;;;;;;;;;wDAvC6B;EAAA,SAAA,8CAAA;EA4ClB,SAAA,8CA2CX;CAAA,CAAA;;;;cA3CW,+CAAkB;MA2C7B,0BAAA,CAAA;;;;;6DA3C6B;EAAA,UAAA,8CAAA;EAgDlB,QAAA,8CA6CX;EAAA,UAAA,8CAAA;;;;;;cA7CW,6CAAgB;MA6C3B,0BAAA,CAAA;;;;qDA7C2B;EAAA,WAAA,8CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema149 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/billing/billing.enum.d.ts
|
|
4
4
|
|
|
@@ -6,11 +6,11 @@ import * as _contractspec_lib_schema39 from "@contractspec/lib.schema";
|
|
|
6
6
|
* Subscription status enum for contract schemas.
|
|
7
7
|
* Note: Entity enum is defined separately in billing.entity.ts
|
|
8
8
|
*/
|
|
9
|
-
declare const SubscriptionStatusSchemaEnum:
|
|
9
|
+
declare const SubscriptionStatusSchemaEnum: _contractspec_lib_schema149.EnumType<[string, string, string, string, string]>;
|
|
10
10
|
/**
|
|
11
11
|
* Feature access reason enum.
|
|
12
12
|
*/
|
|
13
|
-
declare const FeatureAccessReasonEnum:
|
|
13
|
+
declare const FeatureAccessReasonEnum: _contractspec_lib_schema149.EnumType<[string, string, string, string]>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { FeatureAccessReasonEnum, SubscriptionStatusSchemaEnum };
|
|
16
16
|
//# sourceMappingURL=billing.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.enum.d.ts","names":[],"sources":["../../src/billing/billing.enum.ts"],"sourcesContent":[],"mappings":";;;;;;;AAMA;AAWa,cAXA,4BAgBX,EAVA,
|
|
1
|
+
{"version":3,"file":"billing.enum.d.ts","names":[],"sources":["../../src/billing/billing.enum.ts"],"sourcesContent":[],"mappings":";;;;;;;AAMA;AAWa,cAXA,4BAgBX,EAVA,2BAAA,CANuC,QAWL,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;;;;cAAvB,yBAKX,2BAAA,CALkC"}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts9 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema153 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/billing/billing.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Event: Feature usage has been recorded.
|
|
7
7
|
*/
|
|
8
|
-
declare const UsageRecordedEvent:
|
|
8
|
+
declare const UsageRecordedEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema153.SchemaModel<{
|
|
9
9
|
organizationId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
feature: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
quantity: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema153.FieldType<number, number>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
billingPeriod: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
recordedAt: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema153.FieldType<Date, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
}>>;
|
|
30
30
|
/**
|
|
31
31
|
* Event: Usage limit has been reached for a feature.
|
|
32
32
|
*/
|
|
33
|
-
declare const UsageLimitReachedEvent:
|
|
33
|
+
declare const UsageLimitReachedEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema153.SchemaModel<{
|
|
34
34
|
organizationId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
feature: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
limit: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema153.FieldType<number, number>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
currentUsage: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema153.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
reachedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema153.FieldType<Date, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
}>>;
|
|
55
55
|
/**
|
|
56
56
|
* Event: Subscription status has changed.
|
|
57
57
|
*/
|
|
58
|
-
declare const SubscriptionChangedEvent:
|
|
58
|
+
declare const SubscriptionChangedEvent: _contractspec_lib_contracts9.EventSpec<_contractspec_lib_schema153.SchemaModel<{
|
|
59
59
|
organizationId: {
|
|
60
|
-
type:
|
|
60
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
previousPlan: {
|
|
64
|
-
type:
|
|
64
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
65
65
|
isOptional: true;
|
|
66
66
|
};
|
|
67
67
|
newPlan: {
|
|
68
|
-
type:
|
|
68
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
previousStatus: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
73
73
|
isOptional: true;
|
|
74
74
|
};
|
|
75
75
|
newStatus: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema153.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
changedAt: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema153.FieldType<Date, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.event.d.ts","names":[],"sources":["../../src/billing/billing.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmEa,oBAAkB,4BAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"billing.event.d.ts","names":[],"sources":["../../src/billing/billing.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmEa,oBAAkB,4BAAA,CAAA,sCAAA;EAAlB,cAAA,EAAA;IAUX,IAAA,EAAA,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAV6B,QAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAelB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;+CAViC,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;AAenC,CAAA,CAAA,CAAA;;;;cAfa,wBAAsB,4BAAA,CAAA,sCAAA;;UAUjC,2BAAA,CAAA;;;EAKmC,OAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAAxB,0BAAwB,4BAAA,CAAA,sCAAA;;UAUnC,2BAAA,CAAA"}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
+
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/billing/billing.operations.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Get subscription status.
|
|
7
7
|
*/
|
|
8
|
-
declare const GetSubscriptionContract:
|
|
8
|
+
declare const GetSubscriptionContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.AnySchemaModel, _contractspec_lib_schema0.SchemaModel<{
|
|
9
9
|
id: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
organizationId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
planId: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
planName: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
status: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
currentPeriodStart: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
currentPeriodEnd: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
trialEndsAt: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
39
39
|
isOptional: true;
|
|
40
40
|
};
|
|
41
41
|
cancelAtPeriodEnd: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
}>, undefined>;
|
|
46
46
|
/**
|
|
47
47
|
* Record feature usage.
|
|
48
48
|
*/
|
|
49
|
-
declare const RecordUsageContract:
|
|
49
|
+
declare const RecordUsageContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
50
50
|
feature: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
quantity: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
sourceId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
sourceType: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
metadata: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
|
-
}>,
|
|
70
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
71
71
|
recorded: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
currentUsage: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
limit: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
81
81
|
isOptional: true;
|
|
82
82
|
};
|
|
83
83
|
limitReached: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
}>, {
|
|
88
88
|
key: string;
|
|
89
89
|
version: string;
|
|
90
90
|
when: string;
|
|
91
|
-
payload:
|
|
91
|
+
payload: _contractspec_lib_schema0.SchemaModel<{
|
|
92
92
|
feature: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
quantity: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
}>;
|
|
@@ -102,36 +102,36 @@ declare const RecordUsageContract: _contractspec_lib_contracts4.OperationSpec<_c
|
|
|
102
102
|
/**
|
|
103
103
|
* Get usage summary.
|
|
104
104
|
*/
|
|
105
|
-
declare const GetUsageSummaryContract:
|
|
105
|
+
declare const GetUsageSummaryContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
106
106
|
billingPeriod: {
|
|
107
|
-
type:
|
|
107
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
108
108
|
isOptional: true;
|
|
109
109
|
};
|
|
110
|
-
}>,
|
|
110
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
111
111
|
billingPeriod: {
|
|
112
|
-
type:
|
|
112
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
usage: {
|
|
116
|
-
type:
|
|
116
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
117
117
|
feature: {
|
|
118
|
-
type:
|
|
118
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
used: {
|
|
122
|
-
type:
|
|
122
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
limit: {
|
|
126
|
-
type:
|
|
126
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
127
127
|
isOptional: true;
|
|
128
128
|
};
|
|
129
129
|
unit: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
131
131
|
isOptional: true;
|
|
132
132
|
};
|
|
133
133
|
percentage: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
@@ -142,22 +142,22 @@ declare const GetUsageSummaryContract: _contractspec_lib_contracts4.OperationSpe
|
|
|
142
142
|
/**
|
|
143
143
|
* Check feature access.
|
|
144
144
|
*/
|
|
145
|
-
declare const CheckFeatureAccessContract:
|
|
145
|
+
declare const CheckFeatureAccessContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
146
146
|
feature: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
|
-
}>,
|
|
150
|
+
}>, _contractspec_lib_schema0.SchemaModel<{
|
|
151
151
|
hasAccess: {
|
|
152
|
-
type:
|
|
152
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
reason: {
|
|
156
|
-
type:
|
|
156
|
+
type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
|
|
157
157
|
isOptional: true;
|
|
158
158
|
};
|
|
159
159
|
upgradeUrl: {
|
|
160
|
-
type:
|
|
160
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
161
161
|
isOptional: true;
|
|
162
162
|
};
|
|
163
163
|
}>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.operations.d.ts","names":[],"sources":["../../src/billing/billing.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAiBa,yBAAuB,4BAAA,CAAA,cAuClC,
|
|
1
|
+
{"version":3,"file":"billing.operations.d.ts","names":[],"sources":["../../src/billing/billing.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAiBa,yBAAuB,4BAAA,CAAA,cAuClC,yBAAA,CAvCkC,cAAA,4BAAA;EAAvB,EAAA,EAAA;IAuCX,IAAA,EAvCkC,yBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;EAAA,CAAA;EAAA,MAAA,EAAA;IA4CvB,IAAA,oCA6CX,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;6CA7C8B,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;EAAA,CAAA;AAkDhC,CAAA,CAAA,EAAa,SAAA,CAAA;;;;cAlDA,kDAAmB,wCAAA;;UA6C9B,yBAAA,CAAA;;;;;;EAKkC,CAAA;EAwCvB,QAAA,EAAA;IAmCX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;EAnCqC,CAAA;;;;;EAAA,QAAA,EAAA;;;;;;UA1FP,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkDnB,sDAAuB,wCAAA;;UAmClC,yBAAA,CAAA;;;;;UAnCkC,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCvB,yDAA0B,wCAAA;;UAmCrC,yBAAA,CAAA;;;;;UAnCqC,yBAAA,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts4 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/billing/billing.presentation.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Presentation for subscription overview.
|
|
6
6
|
*/
|
|
7
|
-
declare const SubscriptionPresentation:
|
|
7
|
+
declare const SubscriptionPresentation: _contractspec_lib_contracts4.PresentationSpec;
|
|
8
8
|
/**
|
|
9
9
|
* Presentation for usage dashboard.
|
|
10
10
|
*/
|
|
11
|
-
declare const UsageDashboardPresentation:
|
|
11
|
+
declare const UsageDashboardPresentation: _contractspec_lib_contracts4.PresentationSpec;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SubscriptionPresentation, UsageDashboardPresentation };
|
|
14
14
|
//# sourceMappingURL=billing.presentation.d.ts.map
|