@lssm/example.crm-pipeline 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221132705

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 (180) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +224 -176
  2. package/.turbo/turbo-build.log +200 -152
  3. package/CHANGELOG.md +8 -8
  4. package/dist/contracts/index.d.ts +1 -1
  5. package/dist/contracts/index.js +1 -1
  6. package/dist/deal/deal.enum.d.ts +3 -3
  7. package/dist/deal/deal.enum.d.ts.map +1 -1
  8. package/dist/deal/deal.operation.d.ts +513 -0
  9. package/dist/deal/deal.operation.d.ts.map +1 -0
  10. package/dist/deal/{deal.contracts.js → deal.operation.js} +3 -3
  11. package/dist/deal/deal.operation.js.map +1 -0
  12. package/dist/deal/deal.schema.d.ts +71 -71
  13. package/dist/deal/index.d.ts +1 -1
  14. package/dist/deal/index.js +1 -1
  15. package/dist/entities/company.entity.d.ts +28 -28
  16. package/dist/entities/contact.entity.d.ts +32 -32
  17. package/dist/entities/deal.entity.d.ts +53 -53
  18. package/dist/entities/deal.entity.d.ts.map +1 -1
  19. package/dist/entities/task.entity.d.ts +43 -43
  20. package/dist/entities/task.entity.d.ts.map +1 -1
  21. package/dist/events/contact.event.d.ts +8 -8
  22. package/dist/events/deal.event.d.ts +30 -30
  23. package/dist/events/task.event.d.ts +8 -8
  24. package/dist/index.d.ts +3 -3
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
  28. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
  29. package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  30. package/dist/libs/contracts/dist/data-views.js +1 -0
  31. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
  32. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
  33. package/dist/libs/contracts/dist/features.js +1 -0
  34. package/dist/libs/contracts/dist/forms.js +1 -0
  35. package/dist/libs/contracts/dist/index.js +14 -1
  36. package/dist/libs/contracts/dist/index.js.map +1 -0
  37. package/dist/libs/contracts/dist/integrations/contracts.js +1 -1
  38. package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
  39. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
  40. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
  41. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
  42. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
  43. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
  44. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
  45. package/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
  46. package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
  47. package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
  48. package/dist/libs/contracts/dist/onboarding-base.js +1 -1
  49. package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
  50. package/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
  51. package/dist/libs/contracts/dist/operation.js.map +1 -0
  52. package/dist/libs/contracts/dist/presentations.js +1 -0
  53. package/dist/libs/contracts/dist/registry-utils.js +24 -0
  54. package/dist/libs/contracts/dist/registry-utils.js.map +1 -0
  55. package/dist/libs/contracts/dist/registry.js +1 -0
  56. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  57. package/dist/libs/contracts/dist/workflow/spec.js +1 -0
  58. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +122 -0
  59. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
  60. package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
  61. package/dist/libs/identity-rbac/dist/contracts/dist/_virtual/rolldown_runtime.js +6 -0
  62. package/dist/libs/identity-rbac/dist/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
  63. package/dist/libs/identity-rbac/dist/contracts/dist/client/react/form-render.js +1 -0
  64. package/dist/libs/identity-rbac/dist/contracts/dist/data-views.js +1 -0
  65. package/dist/libs/identity-rbac/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
  66. package/dist/libs/identity-rbac/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
  67. package/dist/libs/identity-rbac/dist/contracts/dist/features.js +1 -0
  68. package/dist/libs/identity-rbac/dist/contracts/dist/forms.js +1 -0
  69. package/dist/libs/identity-rbac/dist/contracts/dist/index.js +13 -0
  70. package/dist/libs/identity-rbac/dist/contracts/dist/index.js.map +1 -0
  71. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/contracts.js +1 -1
  72. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/contracts.js.map +1 -1
  73. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
  74. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
  75. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
  76. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
  77. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
  78. package/dist/libs/identity-rbac/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
  79. package/dist/libs/identity-rbac/dist/contracts/dist/knowledge/contracts.js +1 -1
  80. package/dist/libs/identity-rbac/dist/contracts/dist/knowledge/contracts.js.map +1 -1
  81. package/dist/libs/identity-rbac/dist/contracts/dist/onboarding-base.js +1 -1
  82. package/dist/libs/identity-rbac/dist/contracts/dist/onboarding-base.js.map +1 -1
  83. package/dist/libs/identity-rbac/dist/contracts/dist/{spec.js → operation.js} +2 -2
  84. package/dist/libs/identity-rbac/dist/contracts/dist/operation.js.map +1 -0
  85. package/dist/libs/identity-rbac/dist/contracts/dist/presentations.js +1 -0
  86. package/dist/libs/identity-rbac/dist/contracts/dist/registry-utils.js +24 -0
  87. package/dist/libs/identity-rbac/dist/contracts/dist/registry-utils.js.map +1 -0
  88. package/dist/libs/identity-rbac/dist/contracts/dist/registry.js +1 -0
  89. package/dist/libs/identity-rbac/dist/contracts/dist/workflow/index.js +1 -0
  90. package/dist/libs/identity-rbac/dist/contracts/dist/workflow/spec.js +1 -0
  91. package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/contractsrc-schema.js +118 -0
  92. package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
  93. package/dist/libs/identity-rbac/dist/contracts/dist/workspace-config/index.js +1 -0
  94. package/dist/libs/identity-rbac/dist/contracts/organization.js +1 -1
  95. package/dist/libs/identity-rbac/dist/contracts/organization.js.map +1 -1
  96. package/dist/libs/identity-rbac/dist/contracts/rbac.js +1 -1
  97. package/dist/libs/identity-rbac/dist/contracts/rbac.js.map +1 -1
  98. package/dist/libs/identity-rbac/dist/contracts/user.js +1 -1
  99. package/dist/libs/identity-rbac/dist/contracts/user.js.map +1 -1
  100. package/dist/modules/audit-trail/dist/contracts/index.js +1 -1
  101. package/dist/modules/audit-trail/dist/contracts/index.js.map +1 -1
  102. package/dist/modules/audit-trail/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
  103. package/dist/modules/audit-trail/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
  104. package/dist/modules/audit-trail/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  105. package/dist/modules/audit-trail/dist/libs/contracts/dist/data-views.js +1 -0
  106. package/dist/modules/audit-trail/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
  107. package/dist/modules/audit-trail/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
  108. package/dist/modules/audit-trail/dist/libs/contracts/dist/features.js +1 -0
  109. package/dist/modules/audit-trail/dist/libs/contracts/dist/forms.js +1 -0
  110. package/dist/modules/audit-trail/dist/libs/contracts/dist/index.js +13 -0
  111. package/dist/modules/audit-trail/dist/libs/contracts/dist/index.js.map +1 -0
  112. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/contracts.js +1 -1
  113. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
  114. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
  115. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
  116. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
  117. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
  118. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
  119. package/dist/modules/audit-trail/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
  120. package/dist/modules/audit-trail/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
  121. package/dist/modules/audit-trail/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
  122. package/dist/modules/audit-trail/dist/libs/contracts/dist/onboarding-base.js +1 -1
  123. package/dist/modules/audit-trail/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
  124. package/dist/modules/audit-trail/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
  125. package/dist/modules/audit-trail/dist/libs/contracts/dist/operation.js.map +1 -0
  126. package/dist/modules/audit-trail/dist/libs/contracts/dist/presentations.js +1 -0
  127. package/dist/modules/audit-trail/dist/libs/contracts/dist/registry-utils.js +24 -0
  128. package/dist/modules/audit-trail/dist/libs/contracts/dist/registry-utils.js.map +1 -0
  129. package/dist/modules/audit-trail/dist/libs/contracts/dist/registry.js +1 -0
  130. package/dist/modules/audit-trail/dist/libs/contracts/dist/workflow/index.js +1 -0
  131. package/dist/modules/audit-trail/dist/libs/contracts/dist/workflow/spec.js +1 -0
  132. package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +118 -0
  133. package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
  134. package/dist/modules/audit-trail/dist/libs/contracts/dist/workspace-config/index.js +1 -0
  135. package/dist/modules/notifications/dist/contracts/index.js +1 -1
  136. package/dist/modules/notifications/dist/contracts/index.js.map +1 -1
  137. package/dist/modules/notifications/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
  138. package/dist/modules/notifications/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
  139. package/dist/modules/notifications/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  140. package/dist/modules/notifications/dist/libs/contracts/dist/data-views.js +1 -0
  141. package/dist/modules/notifications/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
  142. package/dist/modules/notifications/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
  143. package/dist/modules/notifications/dist/libs/contracts/dist/features.js +1 -0
  144. package/dist/modules/notifications/dist/libs/contracts/dist/forms.js +1 -0
  145. package/dist/modules/notifications/dist/libs/contracts/dist/index.js +13 -0
  146. package/dist/modules/notifications/dist/libs/contracts/dist/index.js.map +1 -0
  147. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/contracts.js +1 -1
  148. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
  149. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
  150. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
  151. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
  152. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
  153. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
  154. package/dist/modules/notifications/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
  155. package/dist/modules/notifications/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
  156. package/dist/modules/notifications/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
  157. package/dist/modules/notifications/dist/libs/contracts/dist/onboarding-base.js +1 -1
  158. package/dist/modules/notifications/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
  159. package/dist/modules/notifications/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
  160. package/dist/modules/notifications/dist/libs/contracts/dist/operation.js.map +1 -0
  161. package/dist/modules/notifications/dist/libs/contracts/dist/presentations.js +1 -0
  162. package/dist/modules/notifications/dist/libs/contracts/dist/registry-utils.js +24 -0
  163. package/dist/modules/notifications/dist/libs/contracts/dist/registry-utils.js.map +1 -0
  164. package/dist/modules/notifications/dist/libs/contracts/dist/registry.js +1 -0
  165. package/dist/modules/notifications/dist/libs/contracts/dist/workflow/index.js +1 -0
  166. package/dist/modules/notifications/dist/libs/contracts/dist/workflow/spec.js +1 -0
  167. package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +118 -0
  168. package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
  169. package/dist/modules/notifications/dist/libs/contracts/dist/workspace-config/index.js +1 -0
  170. package/package.json +12 -12
  171. package/src/deal/{deal.contracts.ts → deal.operation.ts} +1 -1
  172. package/src/deal/index.ts +1 -1
  173. package/tsconfig.tsbuildinfo +1 -1
  174. package/dist/deal/deal.contracts.d.ts +0 -513
  175. package/dist/deal/deal.contracts.d.ts.map +0 -1
  176. package/dist/deal/deal.contracts.js.map +0 -1
  177. package/dist/libs/contracts/dist/spec.js.map +0 -1
  178. package/dist/libs/identity-rbac/dist/contracts/dist/spec.js.map +0 -1
  179. package/dist/modules/audit-trail/dist/libs/contracts/dist/spec.js.map +0 -1
  180. package/dist/modules/notifications/dist/libs/contracts/dist/spec.js.map +0 -1
@@ -1,513 +0,0 @@
1
- import * as _lssm_lib_schema94 from "@lssm/lib.schema";
2
- import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
-
4
- //#region src/deal/deal.contracts.d.ts
5
- /**
6
- * Create a new deal.
7
- */
8
- declare const CreateDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema94.SchemaModel<{
9
- name: {
10
- type: _lssm_lib_schema94.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- value: {
14
- type: _lssm_lib_schema94.FieldType<number, number>;
15
- isOptional: false;
16
- };
17
- currency: {
18
- type: _lssm_lib_schema94.FieldType<string, string>;
19
- isOptional: true;
20
- };
21
- pipelineId: {
22
- type: _lssm_lib_schema94.FieldType<string, string>;
23
- isOptional: false;
24
- };
25
- stageId: {
26
- type: _lssm_lib_schema94.FieldType<string, string>;
27
- isOptional: false;
28
- };
29
- contactId: {
30
- type: _lssm_lib_schema94.FieldType<string, string>;
31
- isOptional: true;
32
- };
33
- companyId: {
34
- type: _lssm_lib_schema94.FieldType<string, string>;
35
- isOptional: true;
36
- };
37
- expectedCloseDate: {
38
- type: _lssm_lib_schema94.FieldType<Date, string>;
39
- isOptional: true;
40
- };
41
- }>, _lssm_lib_schema94.SchemaModel<{
42
- id: {
43
- type: _lssm_lib_schema94.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- name: {
47
- type: _lssm_lib_schema94.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- value: {
51
- type: _lssm_lib_schema94.FieldType<number, number>;
52
- isOptional: false;
53
- };
54
- currency: {
55
- type: _lssm_lib_schema94.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- pipelineId: {
59
- type: _lssm_lib_schema94.FieldType<string, string>;
60
- isOptional: false;
61
- };
62
- stageId: {
63
- type: _lssm_lib_schema94.FieldType<string, string>;
64
- isOptional: false;
65
- };
66
- status: {
67
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
68
- isOptional: false;
69
- };
70
- contactId: {
71
- type: _lssm_lib_schema94.FieldType<string, string>;
72
- isOptional: true;
73
- };
74
- companyId: {
75
- type: _lssm_lib_schema94.FieldType<string, string>;
76
- isOptional: true;
77
- };
78
- ownerId: {
79
- type: _lssm_lib_schema94.FieldType<string, string>;
80
- isOptional: false;
81
- };
82
- expectedCloseDate: {
83
- type: _lssm_lib_schema94.FieldType<Date, string>;
84
- isOptional: true;
85
- };
86
- createdAt: {
87
- type: _lssm_lib_schema94.FieldType<Date, string>;
88
- isOptional: false;
89
- };
90
- updatedAt: {
91
- type: _lssm_lib_schema94.FieldType<Date, string>;
92
- isOptional: false;
93
- };
94
- }>, {
95
- name: string;
96
- version: number;
97
- when: string;
98
- payload: _lssm_lib_schema94.SchemaModel<{
99
- id: {
100
- type: _lssm_lib_schema94.FieldType<string, string>;
101
- isOptional: false;
102
- };
103
- name: {
104
- type: _lssm_lib_schema94.FieldType<string, string>;
105
- isOptional: false;
106
- };
107
- value: {
108
- type: _lssm_lib_schema94.FieldType<number, number>;
109
- isOptional: false;
110
- };
111
- currency: {
112
- type: _lssm_lib_schema94.FieldType<string, string>;
113
- isOptional: false;
114
- };
115
- pipelineId: {
116
- type: _lssm_lib_schema94.FieldType<string, string>;
117
- isOptional: false;
118
- };
119
- stageId: {
120
- type: _lssm_lib_schema94.FieldType<string, string>;
121
- isOptional: false;
122
- };
123
- status: {
124
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
125
- isOptional: false;
126
- };
127
- contactId: {
128
- type: _lssm_lib_schema94.FieldType<string, string>;
129
- isOptional: true;
130
- };
131
- companyId: {
132
- type: _lssm_lib_schema94.FieldType<string, string>;
133
- isOptional: true;
134
- };
135
- ownerId: {
136
- type: _lssm_lib_schema94.FieldType<string, string>;
137
- isOptional: false;
138
- };
139
- expectedCloseDate: {
140
- type: _lssm_lib_schema94.FieldType<Date, string>;
141
- isOptional: true;
142
- };
143
- createdAt: {
144
- type: _lssm_lib_schema94.FieldType<Date, string>;
145
- isOptional: false;
146
- };
147
- updatedAt: {
148
- type: _lssm_lib_schema94.FieldType<Date, string>;
149
- isOptional: false;
150
- };
151
- }>;
152
- }[]>;
153
- /**
154
- * Move deal to a different stage.
155
- */
156
- declare const MoveDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema94.SchemaModel<{
157
- dealId: {
158
- type: _lssm_lib_schema94.FieldType<string, string>;
159
- isOptional: false;
160
- };
161
- stageId: {
162
- type: _lssm_lib_schema94.FieldType<string, string>;
163
- isOptional: false;
164
- };
165
- position: {
166
- type: _lssm_lib_schema94.FieldType<number, number>;
167
- isOptional: true;
168
- };
169
- }>, _lssm_lib_schema94.SchemaModel<{
170
- id: {
171
- type: _lssm_lib_schema94.FieldType<string, string>;
172
- isOptional: false;
173
- };
174
- name: {
175
- type: _lssm_lib_schema94.FieldType<string, string>;
176
- isOptional: false;
177
- };
178
- value: {
179
- type: _lssm_lib_schema94.FieldType<number, number>;
180
- isOptional: false;
181
- };
182
- currency: {
183
- type: _lssm_lib_schema94.FieldType<string, string>;
184
- isOptional: false;
185
- };
186
- pipelineId: {
187
- type: _lssm_lib_schema94.FieldType<string, string>;
188
- isOptional: false;
189
- };
190
- stageId: {
191
- type: _lssm_lib_schema94.FieldType<string, string>;
192
- isOptional: false;
193
- };
194
- status: {
195
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
196
- isOptional: false;
197
- };
198
- contactId: {
199
- type: _lssm_lib_schema94.FieldType<string, string>;
200
- isOptional: true;
201
- };
202
- companyId: {
203
- type: _lssm_lib_schema94.FieldType<string, string>;
204
- isOptional: true;
205
- };
206
- ownerId: {
207
- type: _lssm_lib_schema94.FieldType<string, string>;
208
- isOptional: false;
209
- };
210
- expectedCloseDate: {
211
- type: _lssm_lib_schema94.FieldType<Date, string>;
212
- isOptional: true;
213
- };
214
- createdAt: {
215
- type: _lssm_lib_schema94.FieldType<Date, string>;
216
- isOptional: false;
217
- };
218
- updatedAt: {
219
- type: _lssm_lib_schema94.FieldType<Date, string>;
220
- isOptional: false;
221
- };
222
- }>, {
223
- name: string;
224
- version: number;
225
- when: string;
226
- payload: _lssm_lib_schema94.SchemaModel<{
227
- dealId: {
228
- type: _lssm_lib_schema94.FieldType<string, string>;
229
- isOptional: false;
230
- };
231
- fromStage: {
232
- type: _lssm_lib_schema94.FieldType<string, string>;
233
- isOptional: false;
234
- };
235
- toStage: {
236
- type: _lssm_lib_schema94.FieldType<string, string>;
237
- isOptional: false;
238
- };
239
- }>;
240
- }[]>;
241
- /**
242
- * Mark deal as won.
243
- */
244
- declare const WinDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema94.SchemaModel<{
245
- dealId: {
246
- type: _lssm_lib_schema94.FieldType<string, string>;
247
- isOptional: false;
248
- };
249
- wonSource: {
250
- type: _lssm_lib_schema94.FieldType<string, string>;
251
- isOptional: true;
252
- };
253
- notes: {
254
- type: _lssm_lib_schema94.FieldType<string, string>;
255
- isOptional: true;
256
- };
257
- }>, _lssm_lib_schema94.SchemaModel<{
258
- id: {
259
- type: _lssm_lib_schema94.FieldType<string, string>;
260
- isOptional: false;
261
- };
262
- name: {
263
- type: _lssm_lib_schema94.FieldType<string, string>;
264
- isOptional: false;
265
- };
266
- value: {
267
- type: _lssm_lib_schema94.FieldType<number, number>;
268
- isOptional: false;
269
- };
270
- currency: {
271
- type: _lssm_lib_schema94.FieldType<string, string>;
272
- isOptional: false;
273
- };
274
- pipelineId: {
275
- type: _lssm_lib_schema94.FieldType<string, string>;
276
- isOptional: false;
277
- };
278
- stageId: {
279
- type: _lssm_lib_schema94.FieldType<string, string>;
280
- isOptional: false;
281
- };
282
- status: {
283
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
284
- isOptional: false;
285
- };
286
- contactId: {
287
- type: _lssm_lib_schema94.FieldType<string, string>;
288
- isOptional: true;
289
- };
290
- companyId: {
291
- type: _lssm_lib_schema94.FieldType<string, string>;
292
- isOptional: true;
293
- };
294
- ownerId: {
295
- type: _lssm_lib_schema94.FieldType<string, string>;
296
- isOptional: false;
297
- };
298
- expectedCloseDate: {
299
- type: _lssm_lib_schema94.FieldType<Date, string>;
300
- isOptional: true;
301
- };
302
- createdAt: {
303
- type: _lssm_lib_schema94.FieldType<Date, string>;
304
- isOptional: false;
305
- };
306
- updatedAt: {
307
- type: _lssm_lib_schema94.FieldType<Date, string>;
308
- isOptional: false;
309
- };
310
- }>, {
311
- name: string;
312
- version: number;
313
- when: string;
314
- payload: _lssm_lib_schema94.SchemaModel<{
315
- dealId: {
316
- type: _lssm_lib_schema94.FieldType<string, string>;
317
- isOptional: false;
318
- };
319
- value: {
320
- type: _lssm_lib_schema94.FieldType<number, number>;
321
- isOptional: false;
322
- };
323
- }>;
324
- }[]>;
325
- /**
326
- * Mark deal as lost.
327
- */
328
- declare const LoseDealContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema94.SchemaModel<{
329
- dealId: {
330
- type: _lssm_lib_schema94.FieldType<string, string>;
331
- isOptional: false;
332
- };
333
- lostReason: {
334
- type: _lssm_lib_schema94.FieldType<string, string>;
335
- isOptional: false;
336
- };
337
- notes: {
338
- type: _lssm_lib_schema94.FieldType<string, string>;
339
- isOptional: true;
340
- };
341
- }>, _lssm_lib_schema94.SchemaModel<{
342
- id: {
343
- type: _lssm_lib_schema94.FieldType<string, string>;
344
- isOptional: false;
345
- };
346
- name: {
347
- type: _lssm_lib_schema94.FieldType<string, string>;
348
- isOptional: false;
349
- };
350
- value: {
351
- type: _lssm_lib_schema94.FieldType<number, number>;
352
- isOptional: false;
353
- };
354
- currency: {
355
- type: _lssm_lib_schema94.FieldType<string, string>;
356
- isOptional: false;
357
- };
358
- pipelineId: {
359
- type: _lssm_lib_schema94.FieldType<string, string>;
360
- isOptional: false;
361
- };
362
- stageId: {
363
- type: _lssm_lib_schema94.FieldType<string, string>;
364
- isOptional: false;
365
- };
366
- status: {
367
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
368
- isOptional: false;
369
- };
370
- contactId: {
371
- type: _lssm_lib_schema94.FieldType<string, string>;
372
- isOptional: true;
373
- };
374
- companyId: {
375
- type: _lssm_lib_schema94.FieldType<string, string>;
376
- isOptional: true;
377
- };
378
- ownerId: {
379
- type: _lssm_lib_schema94.FieldType<string, string>;
380
- isOptional: false;
381
- };
382
- expectedCloseDate: {
383
- type: _lssm_lib_schema94.FieldType<Date, string>;
384
- isOptional: true;
385
- };
386
- createdAt: {
387
- type: _lssm_lib_schema94.FieldType<Date, string>;
388
- isOptional: false;
389
- };
390
- updatedAt: {
391
- type: _lssm_lib_schema94.FieldType<Date, string>;
392
- isOptional: false;
393
- };
394
- }>, {
395
- name: string;
396
- version: number;
397
- when: string;
398
- payload: _lssm_lib_schema94.SchemaModel<{
399
- dealId: {
400
- type: _lssm_lib_schema94.FieldType<string, string>;
401
- isOptional: false;
402
- };
403
- reason: {
404
- type: _lssm_lib_schema94.FieldType<string, string>;
405
- isOptional: false;
406
- };
407
- }>;
408
- }[]>;
409
- /**
410
- * List deals in pipeline.
411
- */
412
- declare const ListDealsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema94.SchemaModel<{
413
- pipelineId: {
414
- type: _lssm_lib_schema94.FieldType<string, string>;
415
- isOptional: true;
416
- };
417
- stageId: {
418
- type: _lssm_lib_schema94.FieldType<string, string>;
419
- isOptional: true;
420
- };
421
- status: {
422
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
423
- isOptional: true;
424
- };
425
- ownerId: {
426
- type: _lssm_lib_schema94.FieldType<string, string>;
427
- isOptional: true;
428
- };
429
- search: {
430
- type: _lssm_lib_schema94.FieldType<string, string>;
431
- isOptional: true;
432
- };
433
- limit: {
434
- type: _lssm_lib_schema94.FieldType<number, number>;
435
- isOptional: true;
436
- defaultValue: number;
437
- };
438
- offset: {
439
- type: _lssm_lib_schema94.FieldType<number, number>;
440
- isOptional: true;
441
- defaultValue: number;
442
- };
443
- }>, _lssm_lib_schema94.SchemaModel<{
444
- deals: {
445
- type: _lssm_lib_schema94.SchemaModel<{
446
- id: {
447
- type: _lssm_lib_schema94.FieldType<string, string>;
448
- isOptional: false;
449
- };
450
- name: {
451
- type: _lssm_lib_schema94.FieldType<string, string>;
452
- isOptional: false;
453
- };
454
- value: {
455
- type: _lssm_lib_schema94.FieldType<number, number>;
456
- isOptional: false;
457
- };
458
- currency: {
459
- type: _lssm_lib_schema94.FieldType<string, string>;
460
- isOptional: false;
461
- };
462
- pipelineId: {
463
- type: _lssm_lib_schema94.FieldType<string, string>;
464
- isOptional: false;
465
- };
466
- stageId: {
467
- type: _lssm_lib_schema94.FieldType<string, string>;
468
- isOptional: false;
469
- };
470
- status: {
471
- type: _lssm_lib_schema94.EnumType<[string, string, string, string]>;
472
- isOptional: false;
473
- };
474
- contactId: {
475
- type: _lssm_lib_schema94.FieldType<string, string>;
476
- isOptional: true;
477
- };
478
- companyId: {
479
- type: _lssm_lib_schema94.FieldType<string, string>;
480
- isOptional: true;
481
- };
482
- ownerId: {
483
- type: _lssm_lib_schema94.FieldType<string, string>;
484
- isOptional: false;
485
- };
486
- expectedCloseDate: {
487
- type: _lssm_lib_schema94.FieldType<Date, string>;
488
- isOptional: true;
489
- };
490
- createdAt: {
491
- type: _lssm_lib_schema94.FieldType<Date, string>;
492
- isOptional: false;
493
- };
494
- updatedAt: {
495
- type: _lssm_lib_schema94.FieldType<Date, string>;
496
- isOptional: false;
497
- };
498
- }>;
499
- isArray: true;
500
- isOptional: false;
501
- };
502
- total: {
503
- type: _lssm_lib_schema94.FieldType<number, number>;
504
- isOptional: false;
505
- };
506
- totalValue: {
507
- type: _lssm_lib_schema94.FieldType<number, number>;
508
- isOptional: false;
509
- };
510
- }>, undefined>;
511
- //#endregion
512
- export { CreateDealContract, ListDealsContract, LoseDealContract, MoveDealContract, WinDealContract };
513
- //# sourceMappingURL=deal.contracts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deal.contracts.d.ts","names":[],"sources":["../../src/deal/deal.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAmBa,yCAAkB,gCAAA;EAAlB,IAAA,EAAA;IA6BX,IAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;gBA7B6B,IAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;UAAA,kBAAA,CAAA;;;;;;;;;;;;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAkClB,UAAA,EAAA,KA6BX;EAAA,CAAA;;;gBA7B2B,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;qBAAA;IAAA,IAAA,8BAAA,KAAA,EAAA,MAAA,CAAA;IAkChB,UAAA,EAAA,IA6BX;EAAA,CAAA;;;gBA7B0B,KAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;gBAAA,EAAA,KAAA;IAAA,CAAA;IAkCf,QAAA,EAAA;MA6BX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;gBA7B2B;MAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;MAAA,UAAA,EAAA,KAAA;IAkChB,CAAA;IAkBX,iBAAA,EAAA;;;;;;;;IAlB4B,SAAA,EAAA;;;;;;;;;cAtGjB,uCAAgB,gCAAA;;UA6B3B,kBAAA,CAAA;;;;;;;;;oBAyE4B;EAAA,CAAA;;;UAtGD,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkChB,sCAAe,gCAAA;;UA6B1B,kBAAA,CAAA;;;;;;;;;;;;;UA7B0B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCf,uCAAgB,gCAAA;;UA6B3B,kBAAA,CAAA;;;;;;;;;;;;;UA7B2B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkChB,wCAAiB,gCAAA;;UAkB5B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlB4B,kBAAA,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deal.contracts.js","names":[],"sources":["../../src/deal/deal.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/spec';\nimport {\n DealModel,\n CreateDealInputModel,\n MoveDealInputModel,\n DealMovedPayloadModel,\n WinDealInputModel,\n DealWonPayloadModel,\n LoseDealInputModel,\n DealLostPayloadModel,\n ListDealsInputModel,\n ListDealsOutputModel,\n} from './deal.schema';\n\nconst OWNERS = ['@example.crm-pipeline'] as const;\n\n/**\n * Create a new deal.\n */\nexport const CreateDealContract = defineCommand({\n meta: {\n name: 'crm.deal.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'create'],\n description: 'Create a new deal in the pipeline.',\n goal: 'Allow sales reps to create new opportunities.',\n context: 'Deal creation UI, quick add.',\n },\n io: {\n input: CreateDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.created',\n version: 1,\n when: 'Deal is created',\n payload: DealModel,\n },\n ],\n audit: ['deal.created'],\n },\n});\n\n/**\n * Move deal to a different stage.\n */\nexport const MoveDealContract = defineCommand({\n meta: {\n name: 'crm.deal.move',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'move', 'kanban'],\n description: 'Move a deal to a different stage.',\n goal: 'Allow drag-and-drop stage movement in Kanban.',\n context: 'Pipeline Kanban view.',\n },\n io: {\n input: MoveDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.moved',\n version: 1,\n when: 'Deal stage changed',\n payload: DealMovedPayloadModel,\n },\n ],\n audit: ['deal.moved'],\n },\n});\n\n/**\n * Mark deal as won.\n */\nexport const WinDealContract = defineCommand({\n meta: {\n name: 'crm.deal.win',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'won'],\n description: 'Mark a deal as won.',\n goal: 'Close a deal as successful.',\n context: 'Deal closing flow.',\n },\n io: {\n input: WinDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.won',\n version: 1,\n when: 'Deal is won',\n payload: DealWonPayloadModel,\n },\n ],\n audit: ['deal.won'],\n },\n});\n\n/**\n * Mark deal as lost.\n */\nexport const LoseDealContract = defineCommand({\n meta: {\n name: 'crm.deal.lose',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'lost'],\n description: 'Mark a deal as lost.',\n goal: 'Close a deal as unsuccessful.',\n context: 'Deal closing flow.',\n },\n io: {\n input: LoseDealInputModel,\n output: DealModel,\n },\n policy: {\n auth: 'user',\n },\n sideEffects: {\n emits: [\n {\n name: 'deal.lost',\n version: 1,\n when: 'Deal is lost',\n payload: DealLostPayloadModel,\n },\n ],\n audit: ['deal.lost'],\n },\n});\n\n/**\n * List deals in pipeline.\n */\nexport const ListDealsContract = defineQuery({\n meta: {\n name: 'crm.deal.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['crm', 'deal', 'list'],\n description: 'List deals with filters.',\n goal: 'Show pipeline, deal lists, dashboards.',\n context: 'Pipeline view, deal list.',\n },\n io: {\n input: ListDealsInputModel,\n output: ListDealsOutputModel,\n },\n policy: {\n auth: 'user',\n },\n});\n"],"mappings":";;;;AAcA,MAAM,SAAS,CAAC,wBAAwB;;;;AAKxC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAS;EAC/B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,eAAe;EACxB;CACF,CAAC;;;;AAKF,MAAa,mBAAmB,cAAc;CAC5C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAQ;GAAS;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,aAAa;EACtB;CACF,CAAC;;;;AAKF,MAAa,kBAAkB,cAAc;CAC3C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAM;EAC5B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,WAAW;EACpB;CACF,CAAC;;;;AAKF,MAAa,mBAAmB,cAAc;CAC5C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAO;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACD,aAAa;EACX,OAAO,CACL;GACE,MAAM;GACN,SAAS;GACT,MAAM;GACN,SAAS;GACV,CACF;EACD,OAAO,CAAC,YAAY;EACrB;CACF,CAAC;;;;AAKF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAO;GAAQ;GAAO;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../libs/contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../../../libs/identity-rbac/dist/contracts/dist/spec.js"],"sourcesContent":["//#region ../contracts/dist/spec.js\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery };\n//# sourceMappingURL=spec.js.map"],"mappings":";;;;;AAKA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../../../../modules/audit-trail/dist/libs/contracts/dist/spec.js"],"sourcesContent":["//#region ../../libs/contracts/dist/spec.js\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery };\n//# sourceMappingURL=spec.js.map"],"mappings":";;;;;AAKA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.js","names":[],"sources":["../../../../../../../../../modules/notifications/dist/libs/contracts/dist/spec.js"],"sourcesContent":["//#region ../../libs/contracts/dist/spec.js\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery };\n//# sourceMappingURL=spec.js.map"],"mappings":";;;;;AAKA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}