@lssm/example.saas-boilerplate 1.41.0 → 1.42.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.
Files changed (122) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +113 -0
  2. package/.turbo/turbo-build.log +109 -35
  3. package/CHANGELOG.md +46 -0
  4. package/LICENSE +21 -0
  5. package/README.md +3 -0
  6. package/dist/billing/billing.entity.d.ts +61 -0
  7. package/dist/billing/billing.entity.d.ts.map +1 -0
  8. package/dist/billing/billing.entity.js +122 -1
  9. package/dist/billing/billing.entity.js.map +1 -0
  10. package/dist/billing/billing.enum.d.ts +16 -0
  11. package/dist/billing/billing.enum.d.ts.map +1 -0
  12. package/dist/billing/billing.enum.js +27 -1
  13. package/dist/billing/billing.enum.js.map +1 -0
  14. package/dist/billing/billing.event.d.ts +86 -0
  15. package/dist/billing/billing.event.d.ts.map +1 -0
  16. package/dist/billing/billing.event.js +153 -1
  17. package/dist/billing/billing.event.js.map +1 -0
  18. package/dist/billing/billing.handler.d.ts +82 -0
  19. package/dist/billing/billing.handler.d.ts.map +1 -0
  20. package/dist/billing/billing.handler.js +58 -1
  21. package/dist/billing/billing.handler.js.map +1 -0
  22. package/dist/billing/billing.operations.d.ts +166 -0
  23. package/dist/billing/billing.operations.d.ts.map +1 -0
  24. package/dist/billing/billing.operations.js +181 -0
  25. package/dist/billing/billing.operations.js.map +1 -0
  26. package/dist/billing/billing.presentation.d.ts +15 -0
  27. package/dist/billing/billing.presentation.d.ts.map +1 -0
  28. package/dist/billing/billing.presentation.js +59 -1
  29. package/dist/billing/billing.presentation.js.map +1 -0
  30. package/dist/billing/billing.schema.d.ts +201 -0
  31. package/dist/billing/billing.schema.d.ts.map +1 -0
  32. package/dist/billing/billing.schema.js +214 -1
  33. package/dist/billing/billing.schema.js.map +1 -0
  34. package/dist/billing/index.d.ts +8 -0
  35. package/dist/billing/index.js +9 -1
  36. package/dist/dashboard/dashboard.presentation.d.ts +15 -0
  37. package/dist/dashboard/dashboard.presentation.d.ts.map +1 -0
  38. package/dist/dashboard/dashboard.presentation.js +55 -1
  39. package/dist/dashboard/dashboard.presentation.js.map +1 -0
  40. package/dist/dashboard/index.d.ts +2 -0
  41. package/dist/dashboard/index.js +3 -1
  42. package/dist/docs/index.d.ts +1 -0
  43. package/dist/docs/index.js +1 -1
  44. package/dist/docs/saas-boilerplate.docblock.d.ts +1 -0
  45. package/dist/docs/saas-boilerplate.docblock.js +56 -5
  46. package/dist/docs/saas-boilerplate.docblock.js.map +1 -0
  47. package/dist/example.d.ts +37 -0
  48. package/dist/example.d.ts.map +1 -0
  49. package/dist/example.js +46 -1
  50. package/dist/example.js.map +1 -0
  51. package/dist/handlers/index.d.ts +3 -0
  52. package/dist/handlers/index.js +4 -1
  53. package/dist/index.d.ts +42 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.js +69 -1
  56. package/dist/index.js.map +1 -0
  57. package/dist/presentations/index.d.ts +17 -0
  58. package/dist/presentations/index.d.ts.map +1 -0
  59. package/dist/presentations/index.js +17 -1
  60. package/dist/presentations/index.js.map +1 -0
  61. package/dist/project/index.d.ts +8 -0
  62. package/dist/project/index.js +9 -1
  63. package/dist/project/project.entity.d.ts +40 -0
  64. package/dist/project/project.entity.d.ts.map +1 -0
  65. package/dist/project/project.entity.js +85 -1
  66. package/dist/project/project.entity.js.map +1 -0
  67. package/dist/project/project.enum.d.ts +16 -0
  68. package/dist/project/project.enum.d.ts.map +1 -0
  69. package/dist/project/project.enum.js +26 -1
  70. package/dist/project/project.enum.js.map +1 -0
  71. package/dist/project/project.event.d.ts +92 -0
  72. package/dist/project/project.event.d.ts.map +1 -0
  73. package/dist/project/project.event.js +165 -1
  74. package/dist/project/project.event.js.map +1 -0
  75. package/dist/project/project.handler.d.ts +72 -0
  76. package/dist/project/project.handler.d.ts.map +1 -0
  77. package/dist/project/project.handler.js +82 -1
  78. package/dist/project/project.handler.js.map +1 -0
  79. package/dist/project/project.operations.d.ts +419 -0
  80. package/dist/project/project.operations.d.ts.map +1 -0
  81. package/dist/project/project.operations.js +260 -0
  82. package/dist/project/project.operations.js.map +1 -0
  83. package/dist/project/project.presentation.d.ts +15 -0
  84. package/dist/project/project.presentation.d.ts.map +1 -0
  85. package/dist/project/project.presentation.js +65 -1
  86. package/dist/project/project.presentation.js.map +1 -0
  87. package/dist/project/project.schema.d.ts +235 -0
  88. package/dist/project/project.schema.d.ts.map +1 -0
  89. package/dist/project/project.schema.js +215 -1
  90. package/dist/project/project.schema.js.map +1 -0
  91. package/dist/saas-boilerplate.feature.d.ts +12 -0
  92. package/dist/saas-boilerplate.feature.d.ts.map +1 -0
  93. package/dist/saas-boilerplate.feature.js +201 -1
  94. package/dist/saas-boilerplate.feature.js.map +1 -0
  95. package/dist/settings/index.d.ts +3 -0
  96. package/dist/settings/index.js +4 -1
  97. package/dist/settings/settings.entity.d.ts +37 -0
  98. package/dist/settings/settings.entity.d.ts.map +1 -0
  99. package/dist/settings/settings.entity.js +78 -1
  100. package/dist/settings/settings.entity.js.map +1 -0
  101. package/dist/settings/settings.enum.d.ts +10 -0
  102. package/dist/settings/settings.enum.d.ts.map +1 -0
  103. package/dist/settings/settings.enum.js +21 -1
  104. package/dist/settings/settings.enum.js.map +1 -0
  105. package/dist/shared/mock-data.d.ts +86 -0
  106. package/dist/shared/mock-data.d.ts.map +1 -0
  107. package/dist/shared/mock-data.js +138 -1
  108. package/dist/shared/mock-data.js.map +1 -0
  109. package/package.json +54 -44
  110. package/src/billing/billing.event.ts +24 -9
  111. package/src/billing/{billing.contracts.ts → billing.operations.ts} +82 -10
  112. package/src/billing/billing.presentation.ts +14 -5
  113. package/src/billing/index.ts +1 -1
  114. package/src/dashboard/dashboard.presentation.ts +14 -5
  115. package/src/project/index.ts +1 -1
  116. package/src/project/project.event.ts +32 -12
  117. package/src/project/{project.contracts.ts → project.operations.ts} +98 -13
  118. package/src/project/project.presentation.ts +14 -5
  119. package/src/saas-boilerplate.feature.ts +35 -34
  120. package/tsconfig.tsbuildinfo +1 -1
  121. package/dist/billing/billing.contracts.js +0 -1
  122. package/dist/project/project.contracts.js +0 -1
@@ -1 +1,27 @@
1
- import{defineEnum as e}from"@lssm/lib.schema";const t=e(`SubscriptionStatus`,[`TRIALING`,`ACTIVE`,`PAST_DUE`,`CANCELED`,`PAUSED`]),n=e(`FeatureAccessReason`,[`included`,`limit_available`,`limit_reached`,`not_in_plan`]);export{n as FeatureAccessReasonEnum,t as SubscriptionStatusSchemaEnum};
1
+ import { defineEnum } from "@lssm/lib.schema";
2
+
3
+ //#region src/billing/billing.enum.ts
4
+ /**
5
+ * Subscription status enum for contract schemas.
6
+ * Note: Entity enum is defined separately in billing.entity.ts
7
+ */
8
+ const SubscriptionStatusSchemaEnum = defineEnum("SubscriptionStatus", [
9
+ "TRIALING",
10
+ "ACTIVE",
11
+ "PAST_DUE",
12
+ "CANCELED",
13
+ "PAUSED"
14
+ ]);
15
+ /**
16
+ * Feature access reason enum.
17
+ */
18
+ const FeatureAccessReasonEnum = defineEnum("FeatureAccessReason", [
19
+ "included",
20
+ "limit_available",
21
+ "limit_reached",
22
+ "not_in_plan"
23
+ ]);
24
+
25
+ //#endregion
26
+ export { FeatureAccessReasonEnum, SubscriptionStatusSchemaEnum };
27
+ //# sourceMappingURL=billing.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.enum.js","names":[],"sources":["../../src/billing/billing.enum.ts"],"sourcesContent":["import { defineEnum } from '@lssm/lib.schema';\n\n/**\n * Subscription status enum for contract schemas.\n * Note: Entity enum is defined separately in billing.entity.ts\n */\nexport const SubscriptionStatusSchemaEnum = defineEnum('SubscriptionStatus', [\n 'TRIALING',\n 'ACTIVE',\n 'PAST_DUE',\n 'CANCELED',\n 'PAUSED',\n]);\n\n/**\n * Feature access reason enum.\n */\nexport const FeatureAccessReasonEnum = defineEnum('FeatureAccessReason', [\n 'included',\n 'limit_available',\n 'limit_reached',\n 'not_in_plan',\n]);\n"],"mappings":";;;;;;;AAMA,MAAa,+BAA+B,WAAW,sBAAsB;CAC3E;CACA;CACA;CACA;CACA;CACD,CAAC;;;;AAKF,MAAa,0BAA0B,WAAW,uBAAuB;CACvE;CACA;CACA;CACA;CACD,CAAC"}
@@ -0,0 +1,86 @@
1
+ import * as _lssm_lib_schema82 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
3
+
4
+ //#region src/billing/billing.event.d.ts
5
+ /**
6
+ * Event: Feature usage has been recorded.
7
+ */
8
+ declare const UsageRecordedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema82.SchemaModel<{
9
+ organizationId: {
10
+ type: _lssm_lib_schema82.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ feature: {
14
+ type: _lssm_lib_schema82.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ quantity: {
18
+ type: _lssm_lib_schema82.FieldType<number, number>;
19
+ isOptional: false;
20
+ };
21
+ billingPeriod: {
22
+ type: _lssm_lib_schema82.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ recordedAt: {
26
+ type: _lssm_lib_schema82.FieldType<Date, string>;
27
+ isOptional: false;
28
+ };
29
+ }>>;
30
+ /**
31
+ * Event: Usage limit has been reached for a feature.
32
+ */
33
+ declare const UsageLimitReachedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema82.SchemaModel<{
34
+ organizationId: {
35
+ type: _lssm_lib_schema82.FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ feature: {
39
+ type: _lssm_lib_schema82.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ limit: {
43
+ type: _lssm_lib_schema82.FieldType<number, number>;
44
+ isOptional: false;
45
+ };
46
+ currentUsage: {
47
+ type: _lssm_lib_schema82.FieldType<number, number>;
48
+ isOptional: false;
49
+ };
50
+ reachedAt: {
51
+ type: _lssm_lib_schema82.FieldType<Date, string>;
52
+ isOptional: false;
53
+ };
54
+ }>>;
55
+ /**
56
+ * Event: Subscription status has changed.
57
+ */
58
+ declare const SubscriptionChangedEvent: _lssm_lib_contracts3.EventSpec<_lssm_lib_schema82.SchemaModel<{
59
+ organizationId: {
60
+ type: _lssm_lib_schema82.FieldType<string, string>;
61
+ isOptional: false;
62
+ };
63
+ previousPlan: {
64
+ type: _lssm_lib_schema82.FieldType<string, string>;
65
+ isOptional: true;
66
+ };
67
+ newPlan: {
68
+ type: _lssm_lib_schema82.FieldType<string, string>;
69
+ isOptional: false;
70
+ };
71
+ previousStatus: {
72
+ type: _lssm_lib_schema82.FieldType<string, string>;
73
+ isOptional: true;
74
+ };
75
+ newStatus: {
76
+ type: _lssm_lib_schema82.FieldType<string, string>;
77
+ isOptional: false;
78
+ };
79
+ changedAt: {
80
+ type: _lssm_lib_schema82.FieldType<Date, string>;
81
+ isOptional: false;
82
+ };
83
+ }>>;
84
+ //#endregion
85
+ export { SubscriptionChangedEvent, UsageLimitReachedEvent, UsageRecordedEvent };
86
+ //# sourceMappingURL=billing.event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.event.d.ts","names":[],"sources":["../../src/billing/billing.event.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmEa,oBAAkB,oBAAA,CAAA,6BAAA;EAAlB,cAAA,EAAA;IAUX,IAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EAV6B,QAAA,EAAA;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAelB,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;sCAViC,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;AAenC,CAAA,CAAA,CAAA;;;;cAfa,wBAAsB,oBAAA,CAAA,6BAAA;;UAUjC,kBAAA,CAAA;;;EAKmC,OAAA,EAAA;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAAxB,0BAAwB,oBAAA,CAAA,6BAAA;;UAUnC,kBAAA,CAAA"}
@@ -1 +1,153 @@
1
- import{ScalarTypeEnum as e,defineSchemaModel as t}from"@lssm/lib.schema";import{defineEvent as n}from"@lssm/lib.contracts";const r=t({name:`UsageRecordedPayload`,description:`Payload when feature usage is recorded`,fields:{organizationId:{type:e.String_unsecure(),isOptional:!1},feature:{type:e.String_unsecure(),isOptional:!1},quantity:{type:e.Int_unsecure(),isOptional:!1},billingPeriod:{type:e.String_unsecure(),isOptional:!1},recordedAt:{type:e.DateTime(),isOptional:!1}}}),i=t({name:`UsageLimitReachedPayload`,description:`Payload when usage limit is reached`,fields:{organizationId:{type:e.String_unsecure(),isOptional:!1},feature:{type:e.String_unsecure(),isOptional:!1},limit:{type:e.Int_unsecure(),isOptional:!1},currentUsage:{type:e.Int_unsecure(),isOptional:!1},reachedAt:{type:e.DateTime(),isOptional:!1}}}),a=t({name:`SubscriptionChangedPayload`,description:`Payload when subscription status changes`,fields:{organizationId:{type:e.String_unsecure(),isOptional:!1},previousPlan:{type:e.String_unsecure(),isOptional:!0},newPlan:{type:e.String_unsecure(),isOptional:!1},previousStatus:{type:e.String_unsecure(),isOptional:!0},newStatus:{type:e.String_unsecure(),isOptional:!1},changedAt:{type:e.DateTime(),isOptional:!1}}}),o=n({name:`billing.usage.recorded`,version:1,description:`Feature usage has been recorded.`,payload:r}),s=n({name:`billing.limit.reached`,version:1,description:`Usage limit has been reached for a feature.`,payload:i}),c=n({name:`billing.subscription.changed`,version:1,description:`Subscription status has changed.`,payload:a});export{c as SubscriptionChangedEvent,s as UsageLimitReachedEvent,o as UsageRecordedEvent};
1
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
2
+ import { defineEvent } from "@lssm/lib.contracts";
3
+
4
+ //#region src/billing/billing.event.ts
5
+ /**
6
+ * Payload when feature usage is recorded.
7
+ */
8
+ const UsageRecordedPayload = defineSchemaModel({
9
+ name: "UsageRecordedPayload",
10
+ description: "Payload when feature usage is recorded",
11
+ fields: {
12
+ organizationId: {
13
+ type: ScalarTypeEnum.String_unsecure(),
14
+ isOptional: false
15
+ },
16
+ feature: {
17
+ type: ScalarTypeEnum.String_unsecure(),
18
+ isOptional: false
19
+ },
20
+ quantity: {
21
+ type: ScalarTypeEnum.Int_unsecure(),
22
+ isOptional: false
23
+ },
24
+ billingPeriod: {
25
+ type: ScalarTypeEnum.String_unsecure(),
26
+ isOptional: false
27
+ },
28
+ recordedAt: {
29
+ type: ScalarTypeEnum.DateTime(),
30
+ isOptional: false
31
+ }
32
+ }
33
+ });
34
+ /**
35
+ * Payload when usage limit is reached.
36
+ */
37
+ const UsageLimitReachedPayload = defineSchemaModel({
38
+ name: "UsageLimitReachedPayload",
39
+ description: "Payload when usage limit is reached",
40
+ fields: {
41
+ organizationId: {
42
+ type: ScalarTypeEnum.String_unsecure(),
43
+ isOptional: false
44
+ },
45
+ feature: {
46
+ type: ScalarTypeEnum.String_unsecure(),
47
+ isOptional: false
48
+ },
49
+ limit: {
50
+ type: ScalarTypeEnum.Int_unsecure(),
51
+ isOptional: false
52
+ },
53
+ currentUsage: {
54
+ type: ScalarTypeEnum.Int_unsecure(),
55
+ isOptional: false
56
+ },
57
+ reachedAt: {
58
+ type: ScalarTypeEnum.DateTime(),
59
+ isOptional: false
60
+ }
61
+ }
62
+ });
63
+ /**
64
+ * Payload when subscription status changes.
65
+ */
66
+ const SubscriptionChangedPayload = defineSchemaModel({
67
+ name: "SubscriptionChangedPayload",
68
+ description: "Payload when subscription status changes",
69
+ fields: {
70
+ organizationId: {
71
+ type: ScalarTypeEnum.String_unsecure(),
72
+ isOptional: false
73
+ },
74
+ previousPlan: {
75
+ type: ScalarTypeEnum.String_unsecure(),
76
+ isOptional: true
77
+ },
78
+ newPlan: {
79
+ type: ScalarTypeEnum.String_unsecure(),
80
+ isOptional: false
81
+ },
82
+ previousStatus: {
83
+ type: ScalarTypeEnum.String_unsecure(),
84
+ isOptional: true
85
+ },
86
+ newStatus: {
87
+ type: ScalarTypeEnum.String_unsecure(),
88
+ isOptional: false
89
+ },
90
+ changedAt: {
91
+ type: ScalarTypeEnum.DateTime(),
92
+ isOptional: false
93
+ }
94
+ }
95
+ });
96
+ /**
97
+ * Event: Feature usage has been recorded.
98
+ */
99
+ const UsageRecordedEvent = defineEvent({
100
+ meta: {
101
+ key: "billing.usage.recorded",
102
+ version: 1,
103
+ description: "Feature usage has been recorded.",
104
+ stability: "stable",
105
+ owners: ["@saas-team"],
106
+ tags: [
107
+ "billing",
108
+ "usage",
109
+ "recorded"
110
+ ]
111
+ },
112
+ payload: UsageRecordedPayload
113
+ });
114
+ /**
115
+ * Event: Usage limit has been reached for a feature.
116
+ */
117
+ const UsageLimitReachedEvent = defineEvent({
118
+ meta: {
119
+ key: "billing.limit.reached",
120
+ version: 1,
121
+ description: "Usage limit has been reached for a feature.",
122
+ stability: "stable",
123
+ owners: ["@saas-team"],
124
+ tags: [
125
+ "billing",
126
+ "limit",
127
+ "reached"
128
+ ]
129
+ },
130
+ payload: UsageLimitReachedPayload
131
+ });
132
+ /**
133
+ * Event: Subscription status has changed.
134
+ */
135
+ const SubscriptionChangedEvent = defineEvent({
136
+ meta: {
137
+ key: "billing.subscription.changed",
138
+ version: 1,
139
+ description: "Subscription status has changed.",
140
+ stability: "stable",
141
+ owners: ["@saas-team"],
142
+ tags: [
143
+ "billing",
144
+ "subscription",
145
+ "changed"
146
+ ]
147
+ },
148
+ payload: SubscriptionChangedPayload
149
+ });
150
+
151
+ //#endregion
152
+ export { SubscriptionChangedEvent, UsageLimitReachedEvent, UsageRecordedEvent };
153
+ //# sourceMappingURL=billing.event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.event.js","names":[],"sources":["../../src/billing/billing.event.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineEvent } from '@lssm/lib.contracts';\n\n/**\n * Payload when feature usage is recorded.\n */\nconst UsageRecordedPayload = defineSchemaModel({\n name: 'UsageRecordedPayload',\n description: 'Payload when feature usage is recorded',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n feature: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n quantity: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n billingPeriod: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n recordedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Payload when usage limit is reached.\n */\nconst UsageLimitReachedPayload = defineSchemaModel({\n name: 'UsageLimitReachedPayload',\n description: 'Payload when usage limit is reached',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n feature: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n limit: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n currentUsage: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n reachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Payload when subscription status changes.\n */\nconst SubscriptionChangedPayload = defineSchemaModel({\n name: 'SubscriptionChangedPayload',\n description: 'Payload when subscription status changes',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n previousPlan: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n newPlan: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n previousStatus: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n newStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Event: Feature usage has been recorded.\n */\nexport const UsageRecordedEvent = defineEvent({\n meta: {\n key: 'billing.usage.recorded',\n version: 1,\n description: 'Feature usage has been recorded.',\n stability: 'stable',\n owners: ['@saas-team'],\n tags: ['billing', 'usage', 'recorded'],\n },\n payload: UsageRecordedPayload,\n});\n\n/**\n * Event: Usage limit has been reached for a feature.\n */\nexport const UsageLimitReachedEvent = defineEvent({\n meta: {\n key: 'billing.limit.reached',\n version: 1,\n description: 'Usage limit has been reached for a feature.',\n stability: 'stable',\n owners: ['@saas-team'],\n tags: ['billing', 'limit', 'reached'],\n },\n payload: UsageLimitReachedPayload,\n});\n\n/**\n * Event: Subscription status has changed.\n */\nexport const SubscriptionChangedEvent = defineEvent({\n meta: {\n key: 'billing.subscription.changed',\n version: 1,\n description: 'Subscription status has changed.',\n stability: 'stable',\n owners: ['@saas-team'],\n tags: ['billing', 'subscription', 'changed'],\n },\n payload: SubscriptionChangedPayload,\n});\n"],"mappings":";;;;;;;AAMA,MAAM,uBAAuB,kBAAkB;CAC7C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,UAAU;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACpE,eAAe;GACb,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,YAAY;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;;;;AAKF,MAAM,2BAA2B,kBAAkB;CACjD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,OAAO;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAM,6BAA6B,kBAAkB;CACnD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EAC1E,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,qBAAqB,YAAY;CAC5C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,aAAa;EACtB,MAAM;GAAC;GAAW;GAAS;GAAW;EACvC;CACD,SAAS;CACV,CAAC;;;;AAKF,MAAa,yBAAyB,YAAY;CAChD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,aAAa;EACtB,MAAM;GAAC;GAAW;GAAS;GAAU;EACtC;CACD,SAAS;CACV,CAAC;;;;AAKF,MAAa,2BAA2B,YAAY;CAClD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,aAAa;EACtB,MAAM;GAAC;GAAW;GAAgB;GAAU;EAC7C;CACD,SAAS;CACV,CAAC"}
@@ -0,0 +1,82 @@
1
+ //#region src/billing/billing.handler.d.ts
2
+ interface Subscription {
3
+ id: string;
4
+ organizationId: string;
5
+ planId: string;
6
+ planName: string;
7
+ status: 'ACTIVE' | 'TRIALING' | 'PAST_DUE' | 'CANCELED' | 'UNPAID';
8
+ currentPeriodStart: Date;
9
+ currentPeriodEnd: Date;
10
+ limits: {
11
+ projects: number;
12
+ users: number;
13
+ storage: number;
14
+ apiCalls: number;
15
+ };
16
+ usage: {
17
+ projects: number;
18
+ users: number;
19
+ storage: number;
20
+ apiCalls: number;
21
+ };
22
+ }
23
+ interface UsageSummary {
24
+ organizationId: string;
25
+ period: string;
26
+ apiCalls: {
27
+ total: number;
28
+ limit: number;
29
+ percentUsed: number;
30
+ };
31
+ storage: {
32
+ totalGb: number;
33
+ limitGb: number;
34
+ percentUsed: number;
35
+ };
36
+ activeProjects: number;
37
+ activeUsers: number;
38
+ breakdown: {
39
+ date: string;
40
+ apiCalls: number;
41
+ storageGb: number;
42
+ }[];
43
+ }
44
+ interface RecordUsageInput {
45
+ metric: string;
46
+ quantity: number;
47
+ timestamp?: Date;
48
+ metadata?: Record<string, unknown>;
49
+ }
50
+ interface CheckFeatureAccessInput {
51
+ feature: string;
52
+ }
53
+ interface CheckFeatureAccessOutput {
54
+ allowed: boolean;
55
+ reason?: 'PLAN_LIMIT' | 'FEATURE_NOT_INCLUDED' | 'QUOTA_EXCEEDED' | 'SUBSCRIPTION_INACTIVE';
56
+ currentUsage?: number;
57
+ limit?: number;
58
+ }
59
+ /**
60
+ * Mock handler for GetSubscriptionContract.
61
+ */
62
+ declare function mockGetSubscriptionHandler(): Promise<Subscription>;
63
+ /**
64
+ * Mock handler for GetUsageSummaryContract.
65
+ */
66
+ declare function mockGetUsageSummaryHandler(input: {
67
+ period?: string;
68
+ }): Promise<UsageSummary>;
69
+ /**
70
+ * Mock handler for RecordUsageContract.
71
+ */
72
+ declare function mockRecordUsageHandler(input: RecordUsageInput): Promise<{
73
+ recorded: boolean;
74
+ newTotal: number;
75
+ }>;
76
+ /**
77
+ * Mock handler for CheckFeatureAccessContract.
78
+ */
79
+ declare function mockCheckFeatureAccessHandler(input: CheckFeatureAccessInput): Promise<CheckFeatureAccessOutput>;
80
+ //#endregion
81
+ export { CheckFeatureAccessInput, CheckFeatureAccessOutput, RecordUsageInput, Subscription, UsageSummary, mockCheckFeatureAccessHandler, mockGetSubscriptionHandler, mockGetUsageSummaryHandler, mockRecordUsageHandler };
82
+ //# sourceMappingURL=billing.handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.handler.d.ts","names":[],"sources":["../../src/billing/billing.handler.ts"],"sourcesContent":[],"mappings":";UAMiB,YAAA;EAAA,EAAA,EAAA,MAAA;EAsBA,cAAA,EAAY,MAAA;EAsBZ,MAAA,EAAA,MAAA;EAOA,QAAA,EAAA,MAAA;EAIA,MAAA,EAAA,QAAA,GAAA,UAAwB,GAAA,UAAA,GAAA,UAAA,GAAA,QAAA;EAcnB,kBAAA,EA/DA,IA+DA;EAOA,gBAAA,EArEF,IAqEE;EAYA,MAAA,EAAA;IAeA,QAAA,EAAA,MAAA;IACb,KAAA,EAAA,MAAA;IACE,OAAA,EAAA,MAAA;IAAR,QAAA,EAAA,MAAA;EAAO,CAAA;;;;;;;;UAnFO,YAAA;;;;;;;;;;;;;;;;;;;;;UAsBA,gBAAA;;;cAGH;aACD;;UAGI,uBAAA;;;UAIA,wBAAA;;;;;;;;;iBAcK,0BAAA,CAAA,GAA8B,QAAQ;;;;iBAOtC,0BAAA;;IAElB,QAAQ;;;;iBAUU,sBAAA,QACb,mBACN;;;;;;;iBAamB,6BAAA,QACb,0BACN,QAAQ"}
@@ -1 +1,58 @@
1
- import{MOCK_SUBSCRIPTION as e,MOCK_USAGE_SUMMARY as t}from"../shared/mock-data.js";async function n(){return e}async function r(e){return{...t,period:e.period??`current_month`}}async function i(e){return{recorded:!0,newTotal:t.apiCalls.total+e.quantity}}async function a(n){let{feature:r}=n;return{custom_domains:{allowed:!0},api_access:{allowed:!0,currentUsage:t.apiCalls.total,limit:t.apiCalls.limit},advanced_analytics:{allowed:!1,reason:`FEATURE_NOT_INCLUDED`},unlimited_projects:{allowed:!1,reason:`PLAN_LIMIT`,currentUsage:e.usage.projects,limit:e.limits.projects}}[r]??{allowed:!0}}export{a as mockCheckFeatureAccessHandler,n as mockGetSubscriptionHandler,r as mockGetUsageSummaryHandler,i as mockRecordUsageHandler};
1
+ import { MOCK_SUBSCRIPTION, MOCK_USAGE_SUMMARY } from "../shared/mock-data.js";
2
+
3
+ //#region src/billing/billing.handler.ts
4
+ /**
5
+ * Mock handlers for Billing contracts.
6
+ */
7
+ /**
8
+ * Mock handler for GetSubscriptionContract.
9
+ */
10
+ async function mockGetSubscriptionHandler() {
11
+ return MOCK_SUBSCRIPTION;
12
+ }
13
+ /**
14
+ * Mock handler for GetUsageSummaryContract.
15
+ */
16
+ async function mockGetUsageSummaryHandler(input) {
17
+ return {
18
+ ...MOCK_USAGE_SUMMARY,
19
+ period: input.period ?? "current_month"
20
+ };
21
+ }
22
+ /**
23
+ * Mock handler for RecordUsageContract.
24
+ */
25
+ async function mockRecordUsageHandler(input) {
26
+ return {
27
+ recorded: true,
28
+ newTotal: MOCK_USAGE_SUMMARY.apiCalls.total + input.quantity
29
+ };
30
+ }
31
+ /**
32
+ * Mock handler for CheckFeatureAccessContract.
33
+ */
34
+ async function mockCheckFeatureAccessHandler(input) {
35
+ const { feature } = input;
36
+ return {
37
+ custom_domains: { allowed: true },
38
+ api_access: {
39
+ allowed: true,
40
+ currentUsage: MOCK_USAGE_SUMMARY.apiCalls.total,
41
+ limit: MOCK_USAGE_SUMMARY.apiCalls.limit
42
+ },
43
+ advanced_analytics: {
44
+ allowed: false,
45
+ reason: "FEATURE_NOT_INCLUDED"
46
+ },
47
+ unlimited_projects: {
48
+ allowed: false,
49
+ reason: "PLAN_LIMIT",
50
+ currentUsage: MOCK_SUBSCRIPTION.usage.projects,
51
+ limit: MOCK_SUBSCRIPTION.limits.projects
52
+ }
53
+ }[feature] ?? { allowed: true };
54
+ }
55
+
56
+ //#endregion
57
+ export { mockCheckFeatureAccessHandler, mockGetSubscriptionHandler, mockGetUsageSummaryHandler, mockRecordUsageHandler };
58
+ //# sourceMappingURL=billing.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.handler.js","names":[],"sources":["../../src/billing/billing.handler.ts"],"sourcesContent":["/**\n * Mock handlers for Billing contracts.\n */\nimport { MOCK_SUBSCRIPTION, MOCK_USAGE_SUMMARY } from '../shared/mock-data';\n\n// Types inferred from contract schemas\nexport interface Subscription {\n id: string;\n organizationId: string;\n planId: string;\n planName: string;\n status: 'ACTIVE' | 'TRIALING' | 'PAST_DUE' | 'CANCELED' | 'UNPAID';\n currentPeriodStart: Date;\n currentPeriodEnd: Date;\n limits: {\n projects: number;\n users: number;\n storage: number;\n apiCalls: number;\n };\n usage: {\n projects: number;\n users: number;\n storage: number;\n apiCalls: number;\n };\n}\n\nexport interface UsageSummary {\n organizationId: string;\n period: string;\n apiCalls: {\n total: number;\n limit: number;\n percentUsed: number;\n };\n storage: {\n totalGb: number;\n limitGb: number;\n percentUsed: number;\n };\n activeProjects: number;\n activeUsers: number;\n breakdown: {\n date: string;\n apiCalls: number;\n storageGb: number;\n }[];\n}\n\nexport interface RecordUsageInput {\n metric: string;\n quantity: number;\n timestamp?: Date;\n metadata?: Record<string, unknown>;\n}\n\nexport interface CheckFeatureAccessInput {\n feature: string;\n}\n\nexport interface CheckFeatureAccessOutput {\n allowed: boolean;\n reason?:\n | 'PLAN_LIMIT'\n | 'FEATURE_NOT_INCLUDED'\n | 'QUOTA_EXCEEDED'\n | 'SUBSCRIPTION_INACTIVE';\n currentUsage?: number;\n limit?: number;\n}\n\n/**\n * Mock handler for GetSubscriptionContract.\n */\nexport async function mockGetSubscriptionHandler(): Promise<Subscription> {\n return MOCK_SUBSCRIPTION;\n}\n\n/**\n * Mock handler for GetUsageSummaryContract.\n */\nexport async function mockGetUsageSummaryHandler(input: {\n period?: string;\n}): Promise<UsageSummary> {\n return {\n ...MOCK_USAGE_SUMMARY,\n period: input.period ?? 'current_month',\n };\n}\n\n/**\n * Mock handler for RecordUsageContract.\n */\nexport async function mockRecordUsageHandler(\n input: RecordUsageInput\n): Promise<{ recorded: boolean; newTotal: number }> {\n const currentUsage = MOCK_USAGE_SUMMARY.apiCalls.total;\n const newTotal = currentUsage + input.quantity;\n\n return {\n recorded: true,\n newTotal,\n };\n}\n\n/**\n * Mock handler for CheckFeatureAccessContract.\n */\nexport async function mockCheckFeatureAccessHandler(\n input: CheckFeatureAccessInput\n): Promise<CheckFeatureAccessOutput> {\n const { feature } = input;\n\n const featureMap: Record<string, CheckFeatureAccessOutput> = {\n custom_domains: {\n allowed: true,\n },\n api_access: {\n allowed: true,\n currentUsage: MOCK_USAGE_SUMMARY.apiCalls.total,\n limit: MOCK_USAGE_SUMMARY.apiCalls.limit,\n },\n advanced_analytics: {\n allowed: false,\n reason: 'FEATURE_NOT_INCLUDED',\n },\n unlimited_projects: {\n allowed: false,\n reason: 'PLAN_LIMIT',\n currentUsage: MOCK_SUBSCRIPTION.usage.projects,\n limit: MOCK_SUBSCRIPTION.limits.projects,\n },\n };\n\n return featureMap[feature] ?? { allowed: true };\n}\n"],"mappings":";;;;;;;;;AA2EA,eAAsB,6BAAoD;AACxE,QAAO;;;;;AAMT,eAAsB,2BAA2B,OAEvB;AACxB,QAAO;EACL,GAAG;EACH,QAAQ,MAAM,UAAU;EACzB;;;;;AAMH,eAAsB,uBACpB,OACkD;AAIlD,QAAO;EACL,UAAU;EACV,UALmB,mBAAmB,SAAS,QACjB,MAAM;EAKrC;;;;;AAMH,eAAsB,8BACpB,OACmC;CACnC,MAAM,EAAE,YAAY;AAuBpB,QArB6D;EAC3D,gBAAgB,EACd,SAAS,MACV;EACD,YAAY;GACV,SAAS;GACT,cAAc,mBAAmB,SAAS;GAC1C,OAAO,mBAAmB,SAAS;GACpC;EACD,oBAAoB;GAClB,SAAS;GACT,QAAQ;GACT;EACD,oBAAoB;GAClB,SAAS;GACT,QAAQ;GACR,cAAc,kBAAkB,MAAM;GACtC,OAAO,kBAAkB,OAAO;GACjC;EACF,CAEiB,YAAY,EAAE,SAAS,MAAM"}
@@ -0,0 +1,166 @@
1
+ import * as _lssm_lib_schema41 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
+
4
+ //#region src/billing/billing.operations.d.ts
5
+ /**
6
+ * Get subscription status.
7
+ */
8
+ declare const GetSubscriptionContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema41.AnySchemaModel, _lssm_lib_schema41.SchemaModel<{
9
+ id: {
10
+ type: _lssm_lib_schema41.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ organizationId: {
14
+ type: _lssm_lib_schema41.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ planId: {
18
+ type: _lssm_lib_schema41.FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ planName: {
22
+ type: _lssm_lib_schema41.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ status: {
26
+ type: _lssm_lib_schema41.EnumType<[string, string, string, string, string]>;
27
+ isOptional: false;
28
+ };
29
+ currentPeriodStart: {
30
+ type: _lssm_lib_schema41.FieldType<Date, string>;
31
+ isOptional: false;
32
+ };
33
+ currentPeriodEnd: {
34
+ type: _lssm_lib_schema41.FieldType<Date, string>;
35
+ isOptional: false;
36
+ };
37
+ trialEndsAt: {
38
+ type: _lssm_lib_schema41.FieldType<Date, string>;
39
+ isOptional: true;
40
+ };
41
+ cancelAtPeriodEnd: {
42
+ type: _lssm_lib_schema41.FieldType<boolean, boolean>;
43
+ isOptional: false;
44
+ };
45
+ }>, undefined>;
46
+ /**
47
+ * Record feature usage.
48
+ */
49
+ declare const RecordUsageContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema41.SchemaModel<{
50
+ feature: {
51
+ type: _lssm_lib_schema41.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ quantity: {
55
+ type: _lssm_lib_schema41.FieldType<number, number>;
56
+ isOptional: false;
57
+ };
58
+ sourceId: {
59
+ type: _lssm_lib_schema41.FieldType<string, string>;
60
+ isOptional: true;
61
+ };
62
+ sourceType: {
63
+ type: _lssm_lib_schema41.FieldType<string, string>;
64
+ isOptional: true;
65
+ };
66
+ metadata: {
67
+ type: _lssm_lib_schema41.FieldType<Record<string, unknown>, Record<string, unknown>>;
68
+ isOptional: true;
69
+ };
70
+ }>, _lssm_lib_schema41.SchemaModel<{
71
+ recorded: {
72
+ type: _lssm_lib_schema41.FieldType<boolean, boolean>;
73
+ isOptional: false;
74
+ };
75
+ currentUsage: {
76
+ type: _lssm_lib_schema41.FieldType<number, number>;
77
+ isOptional: false;
78
+ };
79
+ limit: {
80
+ type: _lssm_lib_schema41.FieldType<number, number>;
81
+ isOptional: true;
82
+ };
83
+ limitReached: {
84
+ type: _lssm_lib_schema41.FieldType<boolean, boolean>;
85
+ isOptional: false;
86
+ };
87
+ }>, {
88
+ key: string;
89
+ version: number;
90
+ when: string;
91
+ payload: _lssm_lib_schema41.SchemaModel<{
92
+ feature: {
93
+ type: _lssm_lib_schema41.FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ quantity: {
97
+ type: _lssm_lib_schema41.FieldType<number, number>;
98
+ isOptional: false;
99
+ };
100
+ }>;
101
+ }[]>;
102
+ /**
103
+ * Get usage summary.
104
+ */
105
+ declare const GetUsageSummaryContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema41.SchemaModel<{
106
+ billingPeriod: {
107
+ type: _lssm_lib_schema41.FieldType<string, string>;
108
+ isOptional: true;
109
+ };
110
+ }>, _lssm_lib_schema41.SchemaModel<{
111
+ billingPeriod: {
112
+ type: _lssm_lib_schema41.FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ usage: {
116
+ type: _lssm_lib_schema41.SchemaModel<{
117
+ feature: {
118
+ type: _lssm_lib_schema41.FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ used: {
122
+ type: _lssm_lib_schema41.FieldType<number, number>;
123
+ isOptional: false;
124
+ };
125
+ limit: {
126
+ type: _lssm_lib_schema41.FieldType<number, number>;
127
+ isOptional: true;
128
+ };
129
+ unit: {
130
+ type: _lssm_lib_schema41.FieldType<string, string>;
131
+ isOptional: true;
132
+ };
133
+ percentage: {
134
+ type: _lssm_lib_schema41.FieldType<number, number>;
135
+ isOptional: true;
136
+ };
137
+ }>;
138
+ isArray: true;
139
+ isOptional: false;
140
+ };
141
+ }>, undefined>;
142
+ /**
143
+ * Check feature access.
144
+ */
145
+ declare const CheckFeatureAccessContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema41.SchemaModel<{
146
+ feature: {
147
+ type: _lssm_lib_schema41.FieldType<string, string>;
148
+ isOptional: false;
149
+ };
150
+ }>, _lssm_lib_schema41.SchemaModel<{
151
+ hasAccess: {
152
+ type: _lssm_lib_schema41.FieldType<boolean, boolean>;
153
+ isOptional: false;
154
+ };
155
+ reason: {
156
+ type: _lssm_lib_schema41.EnumType<[string, string, string, string]>;
157
+ isOptional: true;
158
+ };
159
+ upgradeUrl: {
160
+ type: _lssm_lib_schema41.FieldType<string, string>;
161
+ isOptional: true;
162
+ };
163
+ }>, undefined>;
164
+ //#endregion
165
+ export { CheckFeatureAccessContract, GetSubscriptionContract, GetUsageSummaryContract, RecordUsageContract };
166
+ //# sourceMappingURL=billing.operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.operations.d.ts","names":[],"sources":["../../src/billing/billing.operations.ts"],"sourcesContent":[],"mappings":";;;;;;;cAiBa,yBAAuB,oBAAA,CAAA,cAuClC,kBAAA,CAvCkC,cAAA,qBAAA;EAAvB,EAAA,EAAA;IAuCX,IAAA,EAvCkC,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;gBAAA,KAAA;EAAA,CAAA;EAAA,MAAA,EAAA;IA4CvB,IAAA,6BA6CX,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;sCA7C8B,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;qBAAA;EAAA,CAAA;AAkDhC,CAAA,CAAA,EAAa,SAAA,CAAA;;;;cAlDA,0CAAmB,iCAAA;;UA6C9B,kBAAA,CAAA;;;;;qBAKkC;EAAA,CAAA;EAwCvB,QAAA,EAAA;IAmCX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;gBAnCqC,IAAA;EAAA,CAAA;;;;;EAAA,QAAA,EAAA;;;;;;UA1FP,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkDnB,8CAAuB,iCAAA;;UAmClC,kBAAA,CAAA;;;;;UAnCkC,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCvB,iDAA0B,iCAAA;;UAmCrC,kBAAA,CAAA;;;;;UAnCqC,kBAAA,CAAA"}