@contractspec/example.saas-boilerplate 1.45.2 → 1.45.4
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 +7 -7
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +26 -0
- package/dist/billing/billing.entity.d.ts +41 -41
- 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.schema.d.ts +47 -47
- package/dist/billing/billing.schema.d.ts.map +1 -1
- package/dist/project/project.entity.d.ts +24 -24
- package/dist/project/project.enum.d.ts +3 -3
- package/dist/project/project.event.d.ts +21 -21
- package/dist/settings/settings.entity.d.ts +24 -24
- package/dist/settings/settings.enum.d.ts +2 -2
- package/package.json +9 -9
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$ tsdown
|
|
2
2
|
[34mℹ[39m tsdown [2mv0.18.3[22m powered by rolldown [2mv1.0.0-beta.57[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/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/dashboard/dashboard.presentation.ts, src/dashboard/index.ts, src/docs/index.ts, src/docs/saas-boilerplate.docblock.ts, src/handlers/index.ts, src/presentations/index.ts, src/
|
|
4
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/saas-boilerplate.feature.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/dashboard/dashboard.presentation.ts, src/dashboard/index.ts, src/docs/index.ts, src/docs/saas-boilerplate.docblock.ts, src/handlers/index.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/settings/index.ts, src/settings/settings.entity.ts, src/settings/settings.enum.ts, src/shared/mock-data.ts[39m
|
|
5
5
|
[34mℹ[39m target: [34mesnext[39m
|
|
6
6
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
7
7
|
[34mℹ[39m Build start
|
|
@@ -82,17 +82,17 @@ $ tsdown
|
|
|
82
82
|
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m 0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
83
83
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.operations.d.ts[22m[39m [2m11.81 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
84
84
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.schema.d.ts[22m[39m [2m 6.56 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
85
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.schema.d.ts[22m[39m [2m 5.
|
|
85
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.schema.d.ts[22m[39m [2m 5.63 kB[22m [2m│ gzip: 0.78 kB[22m
|
|
86
86
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m 5.02 kB[22m [2m│ gzip: 1.06 kB[22m
|
|
87
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.operations.d.ts[22m[39m [2m 4.
|
|
87
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.operations.d.ts[22m[39m [2m 4.97 kB[22m [2m│ gzip: 0.77 kB[22m
|
|
88
88
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.entity.d.ts[22m[39m [2m 2.95 kB[22m [2m│ gzip: 0.52 kB[22m
|
|
89
89
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.event.d.ts[22m[39m [2m 2.77 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
90
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.event.d.ts[22m[39m [2m 2.
|
|
90
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.event.d.ts[22m[39m [2m 2.58 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
91
91
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.handler.d.ts[22m[39m [2m 2.12 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
92
92
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.handler.d.ts[22m[39m [2m 1.93 kB[22m [2m│ gzip: 0.53 kB[22m
|
|
93
93
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/index.d.ts[22m[39m [2m 1.90 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
94
94
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/index.d.ts[22m[39m [2m 1.87 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
95
|
-
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.entity.d.ts[22m[39m [2m 1.79 kB[22m [2m│ gzip: 0.
|
|
95
|
+
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.entity.d.ts[22m[39m [2m 1.79 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
96
96
|
[34mℹ[39m [2mdist/[22m[32m[1msettings/settings.entity.d.ts[22m[39m [2m 1.71 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
97
97
|
[34mℹ[39m [2mdist/[22m[32m[1mshared/mock-data.d.ts[22m[39m [2m 1.68 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
98
98
|
[34mℹ[39m [2mdist/[22m[32m[1mpresentations/index.d.ts[22m[39m [2m 0.90 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
@@ -109,5 +109,5 @@ $ tsdown
|
|
|
109
109
|
[34mℹ[39m [2mdist/[22m[32m[1mdashboard/index.d.ts[22m[39m [2m 0.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
110
110
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
111
111
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/saas-boilerplate.docblock.d.ts[22m[39m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
112
|
-
[34mℹ[39m 103 files, total: 230.
|
|
113
|
-
[32m✔[39m Build complete in [
|
|
112
|
+
[34mℹ[39m 103 files, total: 230.80 kB
|
|
113
|
+
[32m✔[39m Build complete in [32m24278ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -67,7 +67,7 @@ $ tsdown
|
|
|
67
67
|
[34mℹ[39m [2mdist/[22mbilling/billing.handler.d.ts.map [2m 0.66 kB[22m [2m│ gzip: 0.32 kB[22m
|
|
68
68
|
[34mℹ[39m [2mdist/[22mbilling/billing.event.d.ts.map [2m 0.59 kB[22m [2m│ gzip: 0.27 kB[22m
|
|
69
69
|
[34mℹ[39m [2mdist/[22msettings/settings.enum.js.map [2m 0.54 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
70
|
-
[34mℹ[39m [2mdist/[22mbilling/billing.entity.d.ts.map [2m 0.44 kB[22m [2m│ gzip: 0.
|
|
70
|
+
[34mℹ[39m [2mdist/[22mbilling/billing.entity.d.ts.map [2m 0.44 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
71
71
|
[34mℹ[39m [2mdist/[22mproject/project.entity.d.ts.map [2m 0.34 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
72
72
|
[34mℹ[39m [2mdist/[22msettings/settings.entity.d.ts.map [2m 0.29 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
73
73
|
[34mℹ[39m [2mdist/[22mbilling/billing.enum.d.ts.map [2m 0.28 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
@@ -81,14 +81,14 @@ $ tsdown
|
|
|
81
81
|
[34mℹ[39m [2mdist/[22msaas-boilerplate.feature.d.ts.map [2m 0.17 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
82
82
|
[34mℹ[39m [2mdist/[22mpresentations/index.d.ts.map [2m 0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
83
83
|
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m 0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
84
|
-
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.operations.d.ts[22m[39m [2m11.
|
|
84
|
+
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.operations.d.ts[22m[39m [2m11.81 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
85
85
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.schema.d.ts[22m[39m [2m 6.56 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
86
86
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.schema.d.ts[22m[39m [2m 5.68 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
87
87
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m 5.02 kB[22m [2m│ gzip: 1.06 kB[22m
|
|
88
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.operations.d.ts[22m[39m [2m 4.
|
|
89
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.entity.d.ts[22m[39m [2m 2.
|
|
88
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.operations.d.ts[22m[39m [2m 4.97 kB[22m [2m│ gzip: 0.77 kB[22m
|
|
89
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.entity.d.ts[22m[39m [2m 2.91 kB[22m [2m│ gzip: 0.52 kB[22m
|
|
90
90
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.event.d.ts[22m[39m [2m 2.77 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
91
|
-
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.event.d.ts[22m[39m [2m 2.
|
|
91
|
+
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.event.d.ts[22m[39m [2m 2.58 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
92
92
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/billing.handler.d.ts[22m[39m [2m 2.12 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
93
93
|
[34mℹ[39m [2mdist/[22m[32m[1mproject/project.handler.d.ts[22m[39m [2m 1.93 kB[22m [2m│ gzip: 0.53 kB[22m
|
|
94
94
|
[34mℹ[39m [2mdist/[22m[32m[1mbilling/index.d.ts[22m[39m [2m 1.90 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
@@ -110,5 +110,5 @@ $ tsdown
|
|
|
110
110
|
[34mℹ[39m [2mdist/[22m[32m[1mdashboard/index.d.ts[22m[39m [2m 0.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
111
111
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
112
112
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/saas-boilerplate.docblock.d.ts[22m[39m [2m 0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
113
|
-
[34mℹ[39m 103 files, total: 230.
|
|
114
|
-
[32m✔[39m Build complete in [
|
|
113
|
+
[34mℹ[39m 103 files, total: 230.81 kB
|
|
114
|
+
[32m✔[39m Build complete in [32m27151ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @contractspec/example.saas-boilerplate
|
|
2
2
|
|
|
3
|
+
## 1.45.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: github action
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @contractspec/module.notifications@1.45.4
|
|
10
|
+
- @contractspec/module.audit-trail@1.45.4
|
|
11
|
+
- @contractspec/lib.identity-rbac@1.45.4
|
|
12
|
+
- @contractspec/lib.contracts@1.45.4
|
|
13
|
+
- @contractspec/lib.schema@1.45.4
|
|
14
|
+
- @contractspec/lib.jobs@1.45.4
|
|
15
|
+
|
|
16
|
+
## 1.45.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- e74ea9e: feat: version management
|
|
21
|
+
- Updated dependencies [e74ea9e]
|
|
22
|
+
- @contractspec/module.notifications@1.45.3
|
|
23
|
+
- @contractspec/module.audit-trail@1.45.3
|
|
24
|
+
- @contractspec/lib.identity-rbac@1.45.3
|
|
25
|
+
- @contractspec/lib.contracts@1.45.3
|
|
26
|
+
- @contractspec/lib.schema@1.45.3
|
|
27
|
+
- @contractspec/lib.jobs@1.45.3
|
|
28
|
+
|
|
3
29
|
## 1.45.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema45 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_schema45.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_schema45.EntitySpec<{
|
|
12
|
+
id: _contractspec_lib_schema45.EntityScalarField;
|
|
13
|
+
organizationId: _contractspec_lib_schema45.EntityScalarField;
|
|
14
|
+
planId: _contractspec_lib_schema45.EntityScalarField;
|
|
15
|
+
planName: _contractspec_lib_schema45.EntityScalarField;
|
|
16
|
+
status: _contractspec_lib_schema45.EntityEnumField;
|
|
17
|
+
currentPeriodStart: _contractspec_lib_schema45.EntityScalarField;
|
|
18
|
+
currentPeriodEnd: _contractspec_lib_schema45.EntityScalarField;
|
|
19
|
+
trialEndsAt: _contractspec_lib_schema45.EntityScalarField;
|
|
20
|
+
cancelAtPeriodEnd: _contractspec_lib_schema45.EntityScalarField;
|
|
21
|
+
canceledAt: _contractspec_lib_schema45.EntityScalarField;
|
|
22
|
+
stripeSubscriptionId: _contractspec_lib_schema45.EntityScalarField;
|
|
23
|
+
stripeCustomerId: _contractspec_lib_schema45.EntityScalarField;
|
|
24
|
+
metadata: _contractspec_lib_schema45.EntityScalarField;
|
|
25
|
+
createdAt: _contractspec_lib_schema45.EntityScalarField;
|
|
26
|
+
updatedAt: _contractspec_lib_schema45.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_schema45.EntitySpec<{
|
|
32
|
+
id: _contractspec_lib_schema45.EntityScalarField;
|
|
33
|
+
organizationId: _contractspec_lib_schema45.EntityScalarField;
|
|
34
|
+
feature: _contractspec_lib_schema45.EntityScalarField;
|
|
35
|
+
quantity: _contractspec_lib_schema45.EntityScalarField;
|
|
36
|
+
unit: _contractspec_lib_schema45.EntityScalarField;
|
|
37
|
+
billingPeriod: _contractspec_lib_schema45.EntityScalarField;
|
|
38
|
+
recordedAt: _contractspec_lib_schema45.EntityScalarField;
|
|
39
|
+
sourceId: _contractspec_lib_schema45.EntityScalarField;
|
|
40
|
+
sourceType: _contractspec_lib_schema45.EntityScalarField;
|
|
41
|
+
metadata: _contractspec_lib_schema45.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_schema45.EntitySpec<{
|
|
47
|
+
id: _contractspec_lib_schema45.EntityScalarField;
|
|
48
|
+
planId: _contractspec_lib_schema45.EntityScalarField;
|
|
49
|
+
organizationId: _contractspec_lib_schema45.EntityScalarField;
|
|
50
|
+
feature: _contractspec_lib_schema45.EntityScalarField;
|
|
51
|
+
limit: _contractspec_lib_schema45.EntityScalarField;
|
|
52
|
+
resetPeriod: _contractspec_lib_schema45.EntityScalarField;
|
|
53
|
+
isSoftLimit: _contractspec_lib_schema45.EntityScalarField;
|
|
54
|
+
overage: _contractspec_lib_schema45.EntityScalarField;
|
|
55
|
+
overageRate: _contractspec_lib_schema45.EntityScalarField;
|
|
56
|
+
createdAt: _contractspec_lib_schema45.EntityScalarField;
|
|
57
|
+
updatedAt: _contractspec_lib_schema45.EntityScalarField;
|
|
58
58
|
}>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { BillingUsageEntity, SubscriptionEntity, SubscriptionStatusEnum, UsageLimitEntity };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema85 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_schema126 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_schema85.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_schema85.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,0BAAA,CANuC,QAWL,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;;;;cAAvB,yBAKX,0BAAA,CALkC"}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema87 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
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_contracts0.EventSpec<_contractspec_lib_schema87.SchemaModel<{
|
|
9
9
|
organizationId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
feature: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
quantity: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema87.FieldType<number, number>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
billingPeriod: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
recordedAt: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema87.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_contracts0.EventSpec<_contractspec_lib_schema87.SchemaModel<{
|
|
34
34
|
organizationId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
feature: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
limit: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema87.FieldType<number, number>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
currentUsage: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema87.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
reachedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema87.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_contracts0.EventSpec<_contractspec_lib_schema87.SchemaModel<{
|
|
59
59
|
organizationId: {
|
|
60
|
-
type:
|
|
60
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
previousPlan: {
|
|
64
|
-
type:
|
|
64
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
65
65
|
isOptional: true;
|
|
66
66
|
};
|
|
67
67
|
newPlan: {
|
|
68
|
-
type:
|
|
68
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
previousStatus: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
73
73
|
isOptional: true;
|
|
74
74
|
};
|
|
75
75
|
newStatus: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema87.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
changedAt: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema87.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,qCAAA;EAAlB,cAAA,EAAA;IAUX,IAAA,EAAA,0BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAV6B,QAAA,EAAA;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAelB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;8CAViC,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;AAenC,CAAA,CAAA,CAAA;;;;cAfa,wBAAsB,4BAAA,CAAA,qCAAA;;UAUjC,0BAAA,CAAA;;;EAKmC,OAAA,EAAA;IAAA,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAAxB,0BAAwB,4BAAA,CAAA,qCAAA;;UAUnC,0BAAA,CAAA"}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema106 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts2 from "@contractspec/lib.contracts";
|
|
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_contracts2.OperationSpec<_contractspec_lib_schema106.AnySchemaModel, _contractspec_lib_schema106.SchemaModel<{
|
|
9
9
|
id: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
organizationId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
planId: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
planName: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
status: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema106.EnumType<[string, string, string, string, string]>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
currentPeriodStart: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema106.FieldType<Date, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
currentPeriodEnd: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema106.FieldType<Date, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
trialEndsAt: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema106.FieldType<Date, string>;
|
|
39
39
|
isOptional: true;
|
|
40
40
|
};
|
|
41
41
|
cancelAtPeriodEnd: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema106.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_contracts2.OperationSpec<_contractspec_lib_schema106.SchemaModel<{
|
|
50
50
|
feature: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
quantity: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
sourceId: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
sourceType: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
64
64
|
isOptional: true;
|
|
65
65
|
};
|
|
66
66
|
metadata: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema106.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
|
-
}>,
|
|
70
|
+
}>, _contractspec_lib_schema106.SchemaModel<{
|
|
71
71
|
recorded: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema106.FieldType<boolean, boolean>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
currentUsage: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
limit: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
81
81
|
isOptional: true;
|
|
82
82
|
};
|
|
83
83
|
limitReached: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema106.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_schema106.SchemaModel<{
|
|
92
92
|
feature: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
quantity: {
|
|
97
|
-
type:
|
|
97
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
}>;
|
|
@@ -102,36 +102,36 @@ declare const RecordUsageContract: _contractspec_lib_contracts0.OperationSpec<_c
|
|
|
102
102
|
/**
|
|
103
103
|
* Get usage summary.
|
|
104
104
|
*/
|
|
105
|
-
declare const GetUsageSummaryContract:
|
|
105
|
+
declare const GetUsageSummaryContract: _contractspec_lib_contracts2.OperationSpec<_contractspec_lib_schema106.SchemaModel<{
|
|
106
106
|
billingPeriod: {
|
|
107
|
-
type:
|
|
107
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
108
108
|
isOptional: true;
|
|
109
109
|
};
|
|
110
|
-
}>,
|
|
110
|
+
}>, _contractspec_lib_schema106.SchemaModel<{
|
|
111
111
|
billingPeriod: {
|
|
112
|
-
type:
|
|
112
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
usage: {
|
|
116
|
-
type:
|
|
116
|
+
type: _contractspec_lib_schema106.SchemaModel<{
|
|
117
117
|
feature: {
|
|
118
|
-
type:
|
|
118
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
used: {
|
|
122
|
-
type:
|
|
122
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
limit: {
|
|
126
|
-
type:
|
|
126
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
127
127
|
isOptional: true;
|
|
128
128
|
};
|
|
129
129
|
unit: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
131
131
|
isOptional: true;
|
|
132
132
|
};
|
|
133
133
|
percentage: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema106.FieldType<number, number>;
|
|
135
135
|
isOptional: true;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
@@ -142,22 +142,22 @@ declare const GetUsageSummaryContract: _contractspec_lib_contracts0.OperationSpe
|
|
|
142
142
|
/**
|
|
143
143
|
* Check feature access.
|
|
144
144
|
*/
|
|
145
|
-
declare const CheckFeatureAccessContract:
|
|
145
|
+
declare const CheckFeatureAccessContract: _contractspec_lib_contracts2.OperationSpec<_contractspec_lib_schema106.SchemaModel<{
|
|
146
146
|
feature: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema106.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
|
-
}>,
|
|
150
|
+
}>, _contractspec_lib_schema106.SchemaModel<{
|
|
151
151
|
hasAccess: {
|
|
152
|
-
type:
|
|
152
|
+
type: _contractspec_lib_schema106.FieldType<boolean, boolean>;
|
|
153
153
|
isOptional: false;
|
|
154
154
|
};
|
|
155
155
|
reason: {
|
|
156
|
-
type:
|
|
156
|
+
type: _contractspec_lib_schema106.EnumType<[string, string, string, string]>;
|
|
157
157
|
isOptional: true;
|
|
158
158
|
};
|
|
159
159
|
upgradeUrl: {
|
|
160
|
-
type:
|
|
160
|
+
type: _contractspec_lib_schema106.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,2BAAA,CAvCkC,cAAA,8BAAA;EAAvB,EAAA,EAAA;IAuCX,IAAA,EAvCkC,2BAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;EAAA,CAAA;EAAA,MAAA,EAAA;IA4CvB,IAAA,sCA6CX,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;+CA7C8B,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;EAAA,CAAA;AAkDhC,CAAA,CAAA,EAAa,SAAA,CAAA;;;;cAlDA,kDAAmB,0CAAA;;UA6C9B,2BAAA,CAAA;;;;;;EAKkC,CAAA;EAwCvB,QAAA,EAAA;IAmCX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;EAnCqC,CAAA;;;;;EAAA,QAAA,EAAA;;;;;;UA1FP,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkDnB,sDAAuB,0CAAA;;UAmClC,2BAAA,CAAA;;;;;UAnCkC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCvB,yDAA0B,0CAAA;;UAmCrC,2BAAA,CAAA;;;;;UAnCqC,2BAAA,CAAA"}
|