@happyvertical/smrt-sales 0.40.70 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agreements.js +1 -1
- package/dist/chunks/__smrt-register__-CG-Me1hH.js +6 -0
- package/dist/chunks/{__smrt-register__-BT2oZjFY.js.map → __smrt-register__-CG-Me1hH.js.map} +1 -1
- package/dist/commissions.js +1 -1
- package/dist/crm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +1937 -1570
- package/dist/referrals.js +1 -1
- package/dist/smrt-knowledge.json +384 -319
- package/package.json +6 -6
- package/dist/chunks/__smrt-register__-BT2oZjFY.js +0 -6
package/dist/manifest.json
CHANGED
|
@@ -2,308 +2,195 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-sales",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.41.0",
|
|
6
6
|
"objects": {
|
|
7
|
-
"@happyvertical/smrt-sales:
|
|
8
|
-
"name": "
|
|
9
|
-
"className": "
|
|
10
|
-
"qualifiedName": "@happyvertical/smrt-sales:
|
|
7
|
+
"@happyvertical/smrt-sales:AgreementExecutionCollection": {
|
|
8
|
+
"name": "agreementexecutioncollection",
|
|
9
|
+
"className": "AgreementExecutionCollection",
|
|
10
|
+
"qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionCollection",
|
|
11
11
|
"collection": "agreementexecutions",
|
|
12
|
-
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/
|
|
12
|
+
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/collections/AgreementExecutionCollection.ts",
|
|
13
13
|
"packageName": "@happyvertical/smrt-sales",
|
|
14
|
-
"fields": {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"autoPopulate": true,
|
|
25
|
-
"nullable": false,
|
|
26
|
-
"mode": "required",
|
|
27
|
-
"field": "tenantId",
|
|
28
|
-
"allowSuperAdminBypass": false
|
|
14
|
+
"fields": {},
|
|
15
|
+
"methods": {
|
|
16
|
+
"findByIdempotencyKey": {
|
|
17
|
+
"name": "findByIdempotencyKey",
|
|
18
|
+
"async": true,
|
|
19
|
+
"parameters": [
|
|
20
|
+
{
|
|
21
|
+
"name": "idempotencyKey",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"optional": false
|
|
29
24
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"required": true,
|
|
35
|
-
"default": "",
|
|
36
|
-
"_meta": {
|
|
37
|
-
"required": true
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"providerAccountRef": {
|
|
41
|
-
"type": "text",
|
|
42
|
-
"required": false,
|
|
43
|
-
"default": ""
|
|
44
|
-
},
|
|
45
|
-
"credentialRef": {
|
|
46
|
-
"type": "text",
|
|
47
|
-
"required": false,
|
|
48
|
-
"default": ""
|
|
49
|
-
},
|
|
50
|
-
"idempotencyKey": {
|
|
51
|
-
"type": "text",
|
|
52
|
-
"required": true,
|
|
53
|
-
"default": "",
|
|
54
|
-
"_meta": {
|
|
55
|
-
"required": true
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"sourceKind": {
|
|
59
|
-
"type": "text",
|
|
60
|
-
"required": true,
|
|
61
|
-
"default": "",
|
|
62
|
-
"_meta": {
|
|
63
|
-
"required": true
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"sourceId": {
|
|
67
|
-
"type": "text",
|
|
68
|
-
"required": true,
|
|
69
|
-
"default": "",
|
|
70
|
-
"_meta": {
|
|
71
|
-
"required": true
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"sourceVersion": {
|
|
75
|
-
"type": "integer",
|
|
76
|
-
"required": false,
|
|
77
|
-
"default": 1
|
|
25
|
+
],
|
|
26
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
27
|
+
"isStatic": false,
|
|
28
|
+
"isPublic": true
|
|
78
29
|
},
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
30
|
+
"findByProviderRequest": {
|
|
31
|
+
"name": "findByProviderRequest",
|
|
32
|
+
"async": true,
|
|
33
|
+
"parameters": [
|
|
34
|
+
{
|
|
35
|
+
"name": "provider",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"optional": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "providerRequestId",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"optional": false
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
46
|
+
"isStatic": false,
|
|
47
|
+
"isPublic": true
|
|
83
48
|
},
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
49
|
+
"claimCreateAttempt": {
|
|
50
|
+
"name": "claimCreateAttempt",
|
|
51
|
+
"async": true,
|
|
52
|
+
"parameters": [
|
|
53
|
+
{
|
|
54
|
+
"name": "input",
|
|
55
|
+
"type": "ClaimAgreementCreateAttemptInput",
|
|
56
|
+
"optional": false
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
60
|
+
"isStatic": false,
|
|
61
|
+
"isPublic": true
|
|
88
62
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
63
|
+
"completeCreateAttempt": {
|
|
64
|
+
"name": "completeCreateAttempt",
|
|
65
|
+
"async": true,
|
|
66
|
+
"parameters": [
|
|
67
|
+
{
|
|
68
|
+
"name": "input",
|
|
69
|
+
"type": "CompleteAgreementCreateAttemptInput",
|
|
70
|
+
"optional": false
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
74
|
+
"isStatic": false,
|
|
75
|
+
"isPublic": true
|
|
93
76
|
},
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
77
|
+
"failCreateAttempt": {
|
|
78
|
+
"name": "failCreateAttempt",
|
|
79
|
+
"async": true,
|
|
80
|
+
"parameters": [
|
|
81
|
+
{
|
|
82
|
+
"name": "input",
|
|
83
|
+
"type": "FailAgreementCreateAttemptInput",
|
|
84
|
+
"optional": false
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
88
|
+
"isStatic": false,
|
|
89
|
+
"isPublic": true
|
|
98
90
|
},
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
91
|
+
"bindProviderRequest": {
|
|
92
|
+
"name": "bindProviderRequest",
|
|
93
|
+
"async": true,
|
|
94
|
+
"parameters": [
|
|
95
|
+
{
|
|
96
|
+
"name": "input",
|
|
97
|
+
"type": "BindAgreementProviderRequestInput",
|
|
98
|
+
"optional": false
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
102
|
+
"isStatic": false,
|
|
103
|
+
"isPublic": true
|
|
103
104
|
},
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
105
|
+
"compareAndSetLifecycle": {
|
|
106
|
+
"name": "compareAndSetLifecycle",
|
|
107
|
+
"async": true,
|
|
108
|
+
"parameters": [
|
|
109
|
+
{
|
|
110
|
+
"name": "input",
|
|
111
|
+
"type": "CompareAndSetAgreementLifecycleInput",
|
|
112
|
+
"optional": false
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
116
|
+
"isStatic": false,
|
|
117
|
+
"isPublic": true
|
|
108
118
|
},
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
119
|
+
"incrementAttemptCount": {
|
|
120
|
+
"name": "incrementAttemptCount",
|
|
121
|
+
"async": true,
|
|
122
|
+
"parameters": [
|
|
123
|
+
{
|
|
124
|
+
"name": "tenantId",
|
|
125
|
+
"type": "string",
|
|
126
|
+
"optional": false
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "executionId",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"optional": false
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"returnType": "Promise<AgreementExecution>",
|
|
135
|
+
"isStatic": false,
|
|
136
|
+
"isPublic": true
|
|
113
137
|
},
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
138
|
+
"updateLastError": {
|
|
139
|
+
"name": "updateLastError",
|
|
140
|
+
"async": true,
|
|
141
|
+
"parameters": [
|
|
142
|
+
{
|
|
143
|
+
"name": "input",
|
|
144
|
+
"type": "UpdateAgreementExecutionErrorInput",
|
|
145
|
+
"optional": false
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"returnType": "Promise<AgreementExecution>",
|
|
149
|
+
"isStatic": false,
|
|
150
|
+
"isPublic": true
|
|
121
151
|
},
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
152
|
+
"bindEvidenceArtifact": {
|
|
153
|
+
"name": "bindEvidenceArtifact",
|
|
154
|
+
"async": true,
|
|
155
|
+
"parameters": [
|
|
156
|
+
{
|
|
157
|
+
"name": "input",
|
|
158
|
+
"type": "BindAgreementEvidenceArtifactInput",
|
|
159
|
+
"optional": false
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"returnType": "Promise<AgreementExecution | null>",
|
|
163
|
+
"isStatic": false,
|
|
164
|
+
"isPublic": true
|
|
126
165
|
},
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"required": false
|
|
130
|
-
},
|
|
131
|
-
"cancellationReason": {
|
|
132
|
-
"type": "text",
|
|
133
|
-
"required": false,
|
|
134
|
-
"default": ""
|
|
135
|
-
},
|
|
136
|
-
"lastProviderEventAt": {
|
|
137
|
-
"type": "datetime",
|
|
138
|
-
"required": false
|
|
139
|
-
},
|
|
140
|
-
"lastReconciledAt": {
|
|
141
|
-
"type": "datetime",
|
|
142
|
-
"required": false
|
|
143
|
-
},
|
|
144
|
-
"completedAt": {
|
|
145
|
-
"type": "datetime",
|
|
146
|
-
"required": false
|
|
147
|
-
},
|
|
148
|
-
"effectiveFrom": {
|
|
149
|
-
"type": "datetime",
|
|
150
|
-
"required": false
|
|
151
|
-
},
|
|
152
|
-
"effectiveTo": {
|
|
153
|
-
"type": "datetime",
|
|
154
|
-
"required": false
|
|
155
|
-
},
|
|
156
|
-
"supersedesExecutedAgreementId": {
|
|
157
|
-
"type": "text",
|
|
158
|
-
"required": false,
|
|
159
|
-
"default": ""
|
|
160
|
-
},
|
|
161
|
-
"signedDocumentAssetId": {
|
|
162
|
-
"type": "crossPackageRef",
|
|
163
|
-
"required": false,
|
|
164
|
-
"related": "@happyvertical/smrt-assets:Asset"
|
|
165
|
-
},
|
|
166
|
-
"signedDocumentSha256": {
|
|
167
|
-
"type": "text",
|
|
168
|
-
"required": false,
|
|
169
|
-
"default": ""
|
|
170
|
-
},
|
|
171
|
-
"signedDocumentSizeBytes": {
|
|
172
|
-
"type": "integer",
|
|
173
|
-
"required": false,
|
|
174
|
-
"default": 0
|
|
175
|
-
},
|
|
176
|
-
"signedDocumentMediaType": {
|
|
177
|
-
"type": "text",
|
|
178
|
-
"required": false,
|
|
179
|
-
"default": ""
|
|
180
|
-
},
|
|
181
|
-
"signedDocumentFilename": {
|
|
182
|
-
"type": "text",
|
|
183
|
-
"required": false,
|
|
184
|
-
"default": ""
|
|
185
|
-
},
|
|
186
|
-
"auditTrailAssetId": {
|
|
187
|
-
"type": "crossPackageRef",
|
|
188
|
-
"required": false,
|
|
189
|
-
"related": "@happyvertical/smrt-assets:Asset"
|
|
190
|
-
},
|
|
191
|
-
"auditTrailSha256": {
|
|
192
|
-
"type": "text",
|
|
193
|
-
"required": false,
|
|
194
|
-
"default": ""
|
|
195
|
-
},
|
|
196
|
-
"auditTrailSizeBytes": {
|
|
197
|
-
"type": "integer",
|
|
198
|
-
"required": false,
|
|
199
|
-
"default": 0
|
|
200
|
-
},
|
|
201
|
-
"auditTrailMediaType": {
|
|
202
|
-
"type": "text",
|
|
203
|
-
"required": false,
|
|
204
|
-
"default": ""
|
|
205
|
-
},
|
|
206
|
-
"auditTrailFilename": {
|
|
207
|
-
"type": "text",
|
|
208
|
-
"required": false,
|
|
209
|
-
"default": ""
|
|
210
|
-
},
|
|
211
|
-
"attemptCount": {
|
|
212
|
-
"type": "integer",
|
|
213
|
-
"required": false,
|
|
214
|
-
"default": 0
|
|
215
|
-
},
|
|
216
|
-
"createLeaseId": {
|
|
217
|
-
"type": "text",
|
|
218
|
-
"required": false,
|
|
219
|
-
"default": ""
|
|
220
|
-
},
|
|
221
|
-
"createLeaseExpiresAt": {
|
|
222
|
-
"type": "datetime",
|
|
223
|
-
"required": false
|
|
224
|
-
},
|
|
225
|
-
"lastError": {
|
|
226
|
-
"type": "text",
|
|
227
|
-
"required": false,
|
|
228
|
-
"default": ""
|
|
229
|
-
},
|
|
230
|
-
"metadata": {
|
|
231
|
-
"type": "text",
|
|
232
|
-
"required": false,
|
|
233
|
-
"default": "{}"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"methods": {
|
|
237
|
-
"initialize": {
|
|
238
|
-
"name": "initialize",
|
|
239
|
-
"async": true,
|
|
240
|
-
"parameters": [],
|
|
241
|
-
"returnType": "Promise",
|
|
242
|
-
"isStatic": false,
|
|
243
|
-
"isPublic": true
|
|
244
|
-
},
|
|
245
|
-
"save": {
|
|
246
|
-
"name": "save",
|
|
166
|
+
"findBySource": {
|
|
167
|
+
"name": "findBySource",
|
|
247
168
|
"async": true,
|
|
248
|
-
"parameters": [
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
169
|
+
"parameters": [
|
|
170
|
+
{
|
|
171
|
+
"name": "sourceKind",
|
|
172
|
+
"type": "string",
|
|
173
|
+
"optional": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "sourceId",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"optional": false
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"returnType": "Promise<AgreementExecution[]>",
|
|
258
182
|
"isStatic": false,
|
|
259
183
|
"isPublic": true
|
|
260
184
|
}
|
|
261
185
|
},
|
|
262
|
-
"decoratorConfig": {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
"api": false,
|
|
268
|
-
"mcp": false,
|
|
269
|
-
"cli": false,
|
|
270
|
-
"tenantScoped": {
|
|
271
|
-
"mode": "required"
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
"extends": "SmrtObject",
|
|
275
|
-
"exportName": "AgreementExecution",
|
|
276
|
-
"collectionExportName": "AgreementExecutionCollection",
|
|
277
|
-
"validationRules": [
|
|
278
|
-
{
|
|
279
|
-
"field": "tenantId",
|
|
280
|
-
"rule": "required",
|
|
281
|
-
"fieldType": "text"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"field": "provider",
|
|
285
|
-
"rule": "required",
|
|
286
|
-
"fieldType": "text"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"field": "idempotencyKey",
|
|
290
|
-
"rule": "required",
|
|
291
|
-
"fieldType": "text"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"field": "sourceKind",
|
|
295
|
-
"rule": "required",
|
|
296
|
-
"fieldType": "text"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"field": "sourceId",
|
|
300
|
-
"rule": "required",
|
|
301
|
-
"fieldType": "text"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
186
|
+
"decoratorConfig": {},
|
|
187
|
+
"extends": "SmrtCollection",
|
|
188
|
+
"extendsTypeArg": "AgreementExecution",
|
|
189
|
+
"exportName": "AgreementExecutionCollection",
|
|
190
|
+
"collectionExportName": "AgreementExecutionCollectionCollection",
|
|
304
191
|
"schema": {
|
|
305
|
-
"tableName": "
|
|
306
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
192
|
+
"tableName": "agreement_execution_collections",
|
|
193
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"agreement_execution_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
|
|
307
194
|
"columns": {
|
|
308
195
|
"id": {
|
|
309
196
|
"type": "UUID",
|
|
@@ -327,414 +214,103 @@
|
|
|
327
214
|
},
|
|
328
215
|
"updated_at": {
|
|
329
216
|
"type": "TIMESTAMP",
|
|
330
|
-
"notNull": true,
|
|
331
|
-
"default": "current_timestamp"
|
|
332
|
-
}
|
|
333
|
-
"tenant_id": {
|
|
334
|
-
"type": "UUID",
|
|
335
|
-
"referenceKind": "tenantId",
|
|
336
|
-
"notNull": true,
|
|
337
|
-
"unique": false
|
|
338
|
-
},
|
|
339
|
-
"provider": {
|
|
340
|
-
"type": "TEXT",
|
|
341
|
-
"notNull": true,
|
|
342
|
-
"unique": false,
|
|
343
|
-
"default": ""
|
|
344
|
-
},
|
|
345
|
-
"provider_account_ref": {
|
|
346
|
-
"type": "TEXT",
|
|
347
|
-
"notNull": false,
|
|
348
|
-
"unique": false,
|
|
349
|
-
"default": ""
|
|
350
|
-
},
|
|
351
|
-
"credential_ref": {
|
|
352
|
-
"type": "TEXT",
|
|
353
|
-
"notNull": false,
|
|
354
|
-
"unique": false,
|
|
355
|
-
"default": ""
|
|
356
|
-
},
|
|
357
|
-
"idempotency_key": {
|
|
358
|
-
"type": "TEXT",
|
|
359
|
-
"notNull": true,
|
|
360
|
-
"unique": false,
|
|
361
|
-
"default": ""
|
|
362
|
-
},
|
|
363
|
-
"source_kind": {
|
|
364
|
-
"type": "TEXT",
|
|
365
|
-
"notNull": true,
|
|
366
|
-
"unique": false,
|
|
367
|
-
"default": ""
|
|
368
|
-
},
|
|
369
|
-
"source_id": {
|
|
370
|
-
"type": "TEXT",
|
|
371
|
-
"notNull": true,
|
|
372
|
-
"unique": false,
|
|
373
|
-
"default": ""
|
|
374
|
-
},
|
|
375
|
-
"source_version": {
|
|
376
|
-
"type": "INTEGER",
|
|
377
|
-
"notNull": false,
|
|
378
|
-
"unique": false,
|
|
379
|
-
"default": 1
|
|
380
|
-
},
|
|
381
|
-
"source_asset_id": {
|
|
382
|
-
"type": "UUID",
|
|
383
|
-
"referenceKind": "crossPackageRef",
|
|
384
|
-
"notNull": false,
|
|
385
|
-
"unique": false
|
|
386
|
-
},
|
|
387
|
-
"source_sha256": {
|
|
388
|
-
"type": "TEXT",
|
|
389
|
-
"notNull": false,
|
|
390
|
-
"unique": false,
|
|
391
|
-
"default": ""
|
|
392
|
-
},
|
|
393
|
-
"source_size_bytes": {
|
|
394
|
-
"type": "INTEGER",
|
|
395
|
-
"notNull": false,
|
|
396
|
-
"unique": false,
|
|
397
|
-
"default": 0
|
|
398
|
-
},
|
|
399
|
-
"request_intent_sha256": {
|
|
400
|
-
"type": "TEXT",
|
|
401
|
-
"notNull": false,
|
|
402
|
-
"unique": false,
|
|
403
|
-
"default": ""
|
|
404
|
-
},
|
|
405
|
-
"title": {
|
|
406
|
-
"type": "TEXT",
|
|
407
|
-
"notNull": false,
|
|
408
|
-
"unique": false,
|
|
409
|
-
"default": ""
|
|
410
|
-
},
|
|
411
|
-
"signer_intent": {
|
|
412
|
-
"type": "TEXT",
|
|
413
|
-
"notNull": false,
|
|
414
|
-
"unique": false,
|
|
415
|
-
"default": "[]"
|
|
416
|
-
},
|
|
417
|
-
"provider_request_id": {
|
|
418
|
-
"type": "TEXT",
|
|
419
|
-
"notNull": false,
|
|
420
|
-
"unique": false,
|
|
421
|
-
"default": ""
|
|
422
|
-
},
|
|
423
|
-
"provider_request_key": {
|
|
424
|
-
"type": "TEXT",
|
|
425
|
-
"notNull": false,
|
|
426
|
-
"unique": true
|
|
427
|
-
},
|
|
428
|
-
"status": {
|
|
429
|
-
"type": "TEXT",
|
|
430
|
-
"notNull": false,
|
|
431
|
-
"unique": false,
|
|
432
|
-
"default": "prepared"
|
|
433
|
-
},
|
|
434
|
-
"expires_at": {
|
|
435
|
-
"type": "TIMESTAMP",
|
|
436
|
-
"notNull": false,
|
|
437
|
-
"unique": false
|
|
438
|
-
},
|
|
439
|
-
"cancellation_reason": {
|
|
440
|
-
"type": "TEXT",
|
|
441
|
-
"notNull": false,
|
|
442
|
-
"unique": false,
|
|
443
|
-
"default": ""
|
|
444
|
-
},
|
|
445
|
-
"last_provider_event_at": {
|
|
446
|
-
"type": "TIMESTAMP",
|
|
447
|
-
"notNull": false,
|
|
448
|
-
"unique": false
|
|
449
|
-
},
|
|
450
|
-
"last_reconciled_at": {
|
|
451
|
-
"type": "TIMESTAMP",
|
|
452
|
-
"notNull": false,
|
|
453
|
-
"unique": false
|
|
454
|
-
},
|
|
455
|
-
"completed_at": {
|
|
456
|
-
"type": "TIMESTAMP",
|
|
457
|
-
"notNull": false,
|
|
458
|
-
"unique": false
|
|
459
|
-
},
|
|
460
|
-
"effective_from": {
|
|
461
|
-
"type": "TIMESTAMP",
|
|
462
|
-
"notNull": false,
|
|
463
|
-
"unique": false
|
|
464
|
-
},
|
|
465
|
-
"effective_to": {
|
|
466
|
-
"type": "TIMESTAMP",
|
|
467
|
-
"notNull": false,
|
|
468
|
-
"unique": false
|
|
469
|
-
},
|
|
470
|
-
"supersedes_executed_agreement_id": {
|
|
471
|
-
"type": "TEXT",
|
|
472
|
-
"notNull": false,
|
|
473
|
-
"unique": false,
|
|
474
|
-
"default": ""
|
|
475
|
-
},
|
|
476
|
-
"signed_document_asset_id": {
|
|
477
|
-
"type": "UUID",
|
|
478
|
-
"referenceKind": "crossPackageRef",
|
|
479
|
-
"notNull": false,
|
|
480
|
-
"unique": false
|
|
481
|
-
},
|
|
482
|
-
"signed_document_sha256": {
|
|
483
|
-
"type": "TEXT",
|
|
484
|
-
"notNull": false,
|
|
485
|
-
"unique": false,
|
|
486
|
-
"default": ""
|
|
487
|
-
},
|
|
488
|
-
"signed_document_size_bytes": {
|
|
489
|
-
"type": "INTEGER",
|
|
490
|
-
"notNull": false,
|
|
491
|
-
"unique": false,
|
|
492
|
-
"default": 0
|
|
493
|
-
},
|
|
494
|
-
"signed_document_media_type": {
|
|
495
|
-
"type": "TEXT",
|
|
496
|
-
"notNull": false,
|
|
497
|
-
"unique": false,
|
|
498
|
-
"default": ""
|
|
499
|
-
},
|
|
500
|
-
"signed_document_filename": {
|
|
501
|
-
"type": "TEXT",
|
|
502
|
-
"notNull": false,
|
|
503
|
-
"unique": false,
|
|
504
|
-
"default": ""
|
|
505
|
-
},
|
|
506
|
-
"audit_trail_asset_id": {
|
|
507
|
-
"type": "UUID",
|
|
508
|
-
"referenceKind": "crossPackageRef",
|
|
509
|
-
"notNull": false,
|
|
510
|
-
"unique": false
|
|
511
|
-
},
|
|
512
|
-
"audit_trail_sha256": {
|
|
513
|
-
"type": "TEXT",
|
|
514
|
-
"notNull": false,
|
|
515
|
-
"unique": false,
|
|
516
|
-
"default": ""
|
|
517
|
-
},
|
|
518
|
-
"audit_trail_size_bytes": {
|
|
519
|
-
"type": "INTEGER",
|
|
520
|
-
"notNull": false,
|
|
521
|
-
"unique": false,
|
|
522
|
-
"default": 0
|
|
523
|
-
},
|
|
524
|
-
"audit_trail_media_type": {
|
|
525
|
-
"type": "TEXT",
|
|
526
|
-
"notNull": false,
|
|
527
|
-
"unique": false,
|
|
528
|
-
"default": ""
|
|
529
|
-
},
|
|
530
|
-
"audit_trail_filename": {
|
|
531
|
-
"type": "TEXT",
|
|
532
|
-
"notNull": false,
|
|
533
|
-
"unique": false,
|
|
534
|
-
"default": ""
|
|
535
|
-
},
|
|
536
|
-
"attempt_count": {
|
|
537
|
-
"type": "INTEGER",
|
|
538
|
-
"notNull": false,
|
|
539
|
-
"unique": false,
|
|
540
|
-
"default": 0
|
|
541
|
-
},
|
|
542
|
-
"create_lease_id": {
|
|
543
|
-
"type": "TEXT",
|
|
544
|
-
"notNull": false,
|
|
545
|
-
"unique": false,
|
|
546
|
-
"default": ""
|
|
547
|
-
},
|
|
548
|
-
"create_lease_expires_at": {
|
|
549
|
-
"type": "TIMESTAMP",
|
|
550
|
-
"notNull": false,
|
|
551
|
-
"unique": false
|
|
552
|
-
},
|
|
553
|
-
"last_error": {
|
|
554
|
-
"type": "TEXT",
|
|
555
|
-
"notNull": false,
|
|
556
|
-
"unique": false,
|
|
557
|
-
"default": ""
|
|
558
|
-
},
|
|
559
|
-
"metadata": {
|
|
560
|
-
"type": "TEXT",
|
|
561
|
-
"notNull": false,
|
|
562
|
-
"unique": false,
|
|
563
|
-
"default": "{}"
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
"indexes": [
|
|
567
|
-
{
|
|
568
|
-
"name": "agreement_executions_id_idx",
|
|
569
|
-
"columns": [
|
|
570
|
-
"id"
|
|
571
|
-
]
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
"name": "agreement_executions_tenant_id_idempotency_key_idx",
|
|
575
|
-
"columns": [
|
|
576
|
-
"tenant_id",
|
|
577
|
-
"idempotency_key"
|
|
578
|
-
],
|
|
579
|
-
"unique": true
|
|
580
|
-
}
|
|
581
|
-
],
|
|
582
|
-
"version": "33a93a76"
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
"@happyvertical/smrt-sales:AgreementExecutionEvent": {
|
|
586
|
-
"name": "agreementexecutionevent",
|
|
587
|
-
"className": "AgreementExecutionEvent",
|
|
588
|
-
"qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionEvent",
|
|
589
|
-
"collection": "agreementexecutionevents",
|
|
590
|
-
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/models/AgreementExecutionEvent.ts",
|
|
591
|
-
"packageName": "@happyvertical/smrt-sales",
|
|
592
|
-
"fields": {
|
|
593
|
-
"tenantId": {
|
|
594
|
-
"type": "text",
|
|
595
|
-
"required": true,
|
|
596
|
-
"_meta": {
|
|
597
|
-
"sqlType": "UUID",
|
|
598
|
-
"__tenancy": {
|
|
599
|
-
"isTenantIdField": true,
|
|
600
|
-
"autoFilter": true,
|
|
601
|
-
"required": true,
|
|
602
|
-
"autoPopulate": true,
|
|
603
|
-
"nullable": false,
|
|
604
|
-
"mode": "required",
|
|
605
|
-
"field": "tenantId",
|
|
606
|
-
"allowSuperAdminBypass": false
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
"executionId": {
|
|
611
|
-
"type": "foreignKey",
|
|
612
|
-
"required": true,
|
|
613
|
-
"related": "AgreementExecution",
|
|
614
|
-
"_meta": {
|
|
615
|
-
"required": true
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
"provider": {
|
|
619
|
-
"type": "text",
|
|
620
|
-
"required": false,
|
|
621
|
-
"default": ""
|
|
622
|
-
},
|
|
623
|
-
"providerEventId": {
|
|
624
|
-
"type": "text",
|
|
625
|
-
"required": false,
|
|
626
|
-
"default": ""
|
|
627
|
-
},
|
|
628
|
-
"eventOrigin": {
|
|
629
|
-
"type": "text",
|
|
630
|
-
"required": false,
|
|
631
|
-
"default": "provider_webhook"
|
|
632
|
-
},
|
|
633
|
-
"operationId": {
|
|
634
|
-
"type": "text",
|
|
635
|
-
"required": false,
|
|
636
|
-
"default": ""
|
|
637
|
-
},
|
|
638
|
-
"dedupeKey": {
|
|
639
|
-
"type": "text",
|
|
640
|
-
"required": true,
|
|
641
|
-
"default": "",
|
|
642
|
-
"_meta": {
|
|
643
|
-
"required": true
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
|
-
"orderingKey": {
|
|
647
|
-
"type": "text",
|
|
648
|
-
"required": false,
|
|
649
|
-
"default": ""
|
|
650
|
-
},
|
|
651
|
-
"eventType": {
|
|
652
|
-
"type": "text",
|
|
653
|
-
"required": false,
|
|
654
|
-
"default": ""
|
|
655
|
-
},
|
|
656
|
-
"status": {
|
|
657
|
-
"type": "text",
|
|
658
|
-
"required": false,
|
|
659
|
-
"default": "prepared"
|
|
660
|
-
},
|
|
661
|
-
"occurredAt": {
|
|
662
|
-
"type": "datetime",
|
|
663
|
-
"required": false
|
|
664
|
-
},
|
|
665
|
-
"receivedAt": {
|
|
666
|
-
"type": "datetime",
|
|
667
|
-
"required": false
|
|
668
|
-
},
|
|
669
|
-
"payloadSha256": {
|
|
670
|
-
"type": "text",
|
|
671
|
-
"required": false,
|
|
672
|
-
"default": ""
|
|
673
|
-
},
|
|
674
|
-
"signerEvidence": {
|
|
675
|
-
"type": "text",
|
|
676
|
-
"required": false,
|
|
677
|
-
"default": "[]"
|
|
217
|
+
"notNull": true,
|
|
218
|
+
"default": "current_timestamp"
|
|
219
|
+
}
|
|
678
220
|
},
|
|
679
|
-
"
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
221
|
+
"indexes": [
|
|
222
|
+
{
|
|
223
|
+
"name": "agreement_execution_collections_slug_context_idx",
|
|
224
|
+
"columns": [
|
|
225
|
+
"slug",
|
|
226
|
+
"context"
|
|
227
|
+
],
|
|
228
|
+
"unique": true
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "agreement_execution_collections_created_at_idx",
|
|
232
|
+
"columns": [
|
|
233
|
+
"created_at"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"version": "801c5482"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"@happyvertical/smrt-sales:AgreementExecutionEventCollection": {
|
|
241
|
+
"name": "agreementexecutioneventcollection",
|
|
242
|
+
"className": "AgreementExecutionEventCollection",
|
|
243
|
+
"qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionEventCollection",
|
|
244
|
+
"collection": "agreementexecutionevents",
|
|
245
|
+
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/collections/AgreementExecutionEventCollection.ts",
|
|
246
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
247
|
+
"fields": {},
|
|
685
248
|
"methods": {
|
|
686
|
-
"
|
|
687
|
-
"name": "
|
|
249
|
+
"findByDedupeKey": {
|
|
250
|
+
"name": "findByDedupeKey",
|
|
688
251
|
"async": true,
|
|
689
|
-
"parameters": [
|
|
690
|
-
|
|
252
|
+
"parameters": [
|
|
253
|
+
{
|
|
254
|
+
"name": "dedupeKey",
|
|
255
|
+
"type": "string",
|
|
256
|
+
"optional": false
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"returnType": "Promise<AgreementExecutionEvent | null>",
|
|
691
260
|
"isStatic": false,
|
|
692
261
|
"isPublic": true
|
|
693
262
|
},
|
|
694
|
-
"
|
|
695
|
-
"name": "
|
|
263
|
+
"recordVerified": {
|
|
264
|
+
"name": "recordVerified",
|
|
696
265
|
"async": true,
|
|
697
|
-
"parameters": [
|
|
698
|
-
|
|
266
|
+
"parameters": [
|
|
267
|
+
{
|
|
268
|
+
"name": "options",
|
|
269
|
+
"type": "VerifiedAgreementExecutionEventOptions",
|
|
270
|
+
"optional": false
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"returnType": "Promise<object>",
|
|
699
274
|
"isStatic": false,
|
|
700
275
|
"isPublic": true
|
|
701
|
-
}
|
|
702
|
-
},
|
|
703
|
-
"decoratorConfig": {
|
|
704
|
-
"conflictColumns": [
|
|
705
|
-
"tenant_id",
|
|
706
|
-
"dedupe_key"
|
|
707
|
-
],
|
|
708
|
-
"api": false,
|
|
709
|
-
"mcp": false,
|
|
710
|
-
"cli": false,
|
|
711
|
-
"tenantScoped": {
|
|
712
|
-
"mode": "required"
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
"extends": "SmrtObject",
|
|
716
|
-
"exportName": "AgreementExecutionEvent",
|
|
717
|
-
"collectionExportName": "AgreementExecutionEventCollection",
|
|
718
|
-
"validationRules": [
|
|
719
|
-
{
|
|
720
|
-
"field": "tenantId",
|
|
721
|
-
"rule": "required",
|
|
722
|
-
"fieldType": "text"
|
|
723
276
|
},
|
|
724
|
-
{
|
|
725
|
-
"
|
|
726
|
-
"
|
|
727
|
-
"
|
|
277
|
+
"findByExecution": {
|
|
278
|
+
"name": "findByExecution",
|
|
279
|
+
"async": true,
|
|
280
|
+
"parameters": [
|
|
281
|
+
{
|
|
282
|
+
"name": "executionId",
|
|
283
|
+
"type": "string",
|
|
284
|
+
"optional": false
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"returnType": "Promise<AgreementExecutionEvent[]>",
|
|
288
|
+
"isStatic": false,
|
|
289
|
+
"isPublic": true
|
|
728
290
|
},
|
|
729
|
-
{
|
|
730
|
-
"
|
|
731
|
-
"
|
|
732
|
-
"
|
|
291
|
+
"findProviderEventsByExecution": {
|
|
292
|
+
"name": "findProviderEventsByExecution",
|
|
293
|
+
"async": true,
|
|
294
|
+
"parameters": [
|
|
295
|
+
{
|
|
296
|
+
"name": "executionId",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"optional": false
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"returnType": "Promise<AgreementExecutionEvent[]>",
|
|
302
|
+
"isStatic": false,
|
|
303
|
+
"isPublic": true
|
|
733
304
|
}
|
|
734
|
-
|
|
305
|
+
},
|
|
306
|
+
"decoratorConfig": {},
|
|
307
|
+
"extends": "SmrtCollection",
|
|
308
|
+
"extendsTypeArg": "AgreementExecutionEvent",
|
|
309
|
+
"exportName": "AgreementExecutionEventCollection",
|
|
310
|
+
"collectionExportName": "AgreementExecutionEventCollectionCollection",
|
|
735
311
|
"schema": {
|
|
736
|
-
"tableName": "
|
|
737
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
312
|
+
"tableName": "agreement_execution_event_collections",
|
|
313
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"agreement_execution_event_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
|
|
738
314
|
"columns": {
|
|
739
315
|
"id": {
|
|
740
316
|
"type": "UUID",
|
|
@@ -760,121 +336,168 @@
|
|
|
760
336
|
"type": "TIMESTAMP",
|
|
761
337
|
"notNull": true,
|
|
762
338
|
"default": "current_timestamp"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"indexes": [
|
|
342
|
+
{
|
|
343
|
+
"name": "agreement_execution_event_collections_slug_context_idx",
|
|
344
|
+
"columns": [
|
|
345
|
+
"slug",
|
|
346
|
+
"context"
|
|
347
|
+
],
|
|
348
|
+
"unique": true
|
|
763
349
|
},
|
|
764
|
-
|
|
765
|
-
"
|
|
766
|
-
"
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
350
|
+
{
|
|
351
|
+
"name": "agreement_execution_event_collections_created_at_idx",
|
|
352
|
+
"columns": [
|
|
353
|
+
"created_at"
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"version": "055a9e0f"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"@happyvertical/smrt-sales:ExecutedAgreementCollection": {
|
|
361
|
+
"name": "executedagreementcollection",
|
|
362
|
+
"className": "ExecutedAgreementCollection",
|
|
363
|
+
"qualifiedName": "@happyvertical/smrt-sales:ExecutedAgreementCollection",
|
|
364
|
+
"collection": "executedagreements",
|
|
365
|
+
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/collections/ExecutedAgreementCollection.ts",
|
|
366
|
+
"packageName": "@happyvertical/smrt-sales",
|
|
367
|
+
"fields": {},
|
|
368
|
+
"methods": {
|
|
369
|
+
"findByExecution": {
|
|
370
|
+
"name": "findByExecution",
|
|
371
|
+
"async": true,
|
|
372
|
+
"parameters": [
|
|
373
|
+
{
|
|
374
|
+
"name": "executionId",
|
|
375
|
+
"type": "string",
|
|
376
|
+
"optional": false
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"returnType": "Promise<ExecutedAgreement | null>",
|
|
380
|
+
"isStatic": false,
|
|
381
|
+
"isPublic": true
|
|
382
|
+
},
|
|
383
|
+
"createImmutable": {
|
|
384
|
+
"name": "createImmutable",
|
|
385
|
+
"async": true,
|
|
386
|
+
"parameters": [
|
|
387
|
+
{
|
|
388
|
+
"name": "options",
|
|
389
|
+
"type": "ExecutedAgreementOptions",
|
|
390
|
+
"optional": false
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"returnType": "Promise<object>",
|
|
394
|
+
"isStatic": false,
|
|
395
|
+
"isPublic": true
|
|
396
|
+
},
|
|
397
|
+
"findVersionsBySource": {
|
|
398
|
+
"name": "findVersionsBySource",
|
|
399
|
+
"async": true,
|
|
400
|
+
"parameters": [
|
|
401
|
+
{
|
|
402
|
+
"name": "sourceKind",
|
|
403
|
+
"type": "string",
|
|
404
|
+
"optional": false
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "sourceId",
|
|
408
|
+
"type": "string",
|
|
409
|
+
"optional": false
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"returnType": "Promise<ExecutedAgreement[]>",
|
|
413
|
+
"isStatic": false,
|
|
414
|
+
"isPublic": true
|
|
415
|
+
},
|
|
416
|
+
"effectiveForSource": {
|
|
417
|
+
"name": "effectiveForSource",
|
|
418
|
+
"async": true,
|
|
419
|
+
"parameters": [
|
|
420
|
+
{
|
|
421
|
+
"name": "sourceKind",
|
|
422
|
+
"type": "string",
|
|
423
|
+
"optional": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "sourceId",
|
|
427
|
+
"type": "string",
|
|
428
|
+
"optional": false
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "at",
|
|
432
|
+
"type": "Date",
|
|
433
|
+
"optional": true
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"returnType": "Promise<ExecutedAgreement | null>",
|
|
437
|
+
"isStatic": false,
|
|
438
|
+
"isPublic": true
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"decoratorConfig": {},
|
|
442
|
+
"extends": "SmrtCollection",
|
|
443
|
+
"extendsTypeArg": "ExecutedAgreement",
|
|
444
|
+
"exportName": "ExecutedAgreementCollection",
|
|
445
|
+
"collectionExportName": "ExecutedAgreementCollectionCollection",
|
|
446
|
+
"schema": {
|
|
447
|
+
"tableName": "executed_agreement_collections",
|
|
448
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"executed_agreement_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
|
|
449
|
+
"columns": {
|
|
450
|
+
"id": {
|
|
451
|
+
"type": "UUID",
|
|
452
|
+
"primaryKey": true,
|
|
453
|
+
"referenceKind": "id",
|
|
454
|
+
"notNull": true
|
|
793
455
|
},
|
|
794
|
-
"
|
|
456
|
+
"slug": {
|
|
795
457
|
"type": "TEXT",
|
|
796
|
-
"notNull":
|
|
797
|
-
"unique": false,
|
|
798
|
-
"default": ""
|
|
458
|
+
"notNull": true
|
|
799
459
|
},
|
|
800
|
-
"
|
|
460
|
+
"context": {
|
|
801
461
|
"type": "TEXT",
|
|
802
462
|
"notNull": true,
|
|
803
|
-
"unique": false,
|
|
804
|
-
"default": ""
|
|
805
|
-
},
|
|
806
|
-
"ordering_key": {
|
|
807
|
-
"type": "TEXT",
|
|
808
|
-
"notNull": false,
|
|
809
|
-
"unique": false,
|
|
810
|
-
"default": ""
|
|
811
|
-
},
|
|
812
|
-
"event_type": {
|
|
813
|
-
"type": "TEXT",
|
|
814
|
-
"notNull": false,
|
|
815
|
-
"unique": false,
|
|
816
463
|
"default": ""
|
|
817
464
|
},
|
|
818
|
-
"
|
|
819
|
-
"type": "TEXT",
|
|
820
|
-
"notNull": false,
|
|
821
|
-
"unique": false,
|
|
822
|
-
"default": "prepared"
|
|
823
|
-
},
|
|
824
|
-
"occurred_at": {
|
|
465
|
+
"created_at": {
|
|
825
466
|
"type": "TIMESTAMP",
|
|
826
|
-
"notNull":
|
|
827
|
-
"
|
|
467
|
+
"notNull": true,
|
|
468
|
+
"default": "current_timestamp"
|
|
828
469
|
},
|
|
829
|
-
"
|
|
470
|
+
"updated_at": {
|
|
830
471
|
"type": "TIMESTAMP",
|
|
831
|
-
"notNull":
|
|
832
|
-
"
|
|
833
|
-
},
|
|
834
|
-
"payload_sha256": {
|
|
835
|
-
"type": "TEXT",
|
|
836
|
-
"notNull": false,
|
|
837
|
-
"unique": false,
|
|
838
|
-
"default": ""
|
|
839
|
-
},
|
|
840
|
-
"signer_evidence": {
|
|
841
|
-
"type": "TEXT",
|
|
842
|
-
"notNull": false,
|
|
843
|
-
"unique": false,
|
|
844
|
-
"default": "[]"
|
|
845
|
-
},
|
|
846
|
-
"payload": {
|
|
847
|
-
"type": "TEXT",
|
|
848
|
-
"notNull": false,
|
|
849
|
-
"unique": false,
|
|
850
|
-
"default": "{}"
|
|
472
|
+
"notNull": true,
|
|
473
|
+
"default": "current_timestamp"
|
|
851
474
|
}
|
|
852
475
|
},
|
|
853
476
|
"indexes": [
|
|
854
477
|
{
|
|
855
|
-
"name": "
|
|
478
|
+
"name": "executed_agreement_collections_slug_context_idx",
|
|
856
479
|
"columns": [
|
|
857
|
-
"
|
|
858
|
-
|
|
480
|
+
"slug",
|
|
481
|
+
"context"
|
|
482
|
+
],
|
|
483
|
+
"unique": true
|
|
859
484
|
},
|
|
860
485
|
{
|
|
861
|
-
"name": "
|
|
486
|
+
"name": "executed_agreement_collections_created_at_idx",
|
|
862
487
|
"columns": [
|
|
863
|
-
"
|
|
864
|
-
|
|
865
|
-
],
|
|
866
|
-
"unique": true
|
|
488
|
+
"created_at"
|
|
489
|
+
]
|
|
867
490
|
}
|
|
868
491
|
],
|
|
869
|
-
"version": "
|
|
492
|
+
"version": "73fd604d"
|
|
870
493
|
}
|
|
871
494
|
},
|
|
872
|
-
"@happyvertical/smrt-sales:
|
|
873
|
-
"name": "
|
|
874
|
-
"className": "
|
|
875
|
-
"qualifiedName": "@happyvertical/smrt-sales:
|
|
876
|
-
"collection": "
|
|
877
|
-
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/models/
|
|
495
|
+
"@happyvertical/smrt-sales:AgreementExecution": {
|
|
496
|
+
"name": "agreementexecution",
|
|
497
|
+
"className": "AgreementExecution",
|
|
498
|
+
"qualifiedName": "@happyvertical/smrt-sales:AgreementExecution",
|
|
499
|
+
"collection": "agreementexecutions",
|
|
500
|
+
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/models/AgreementExecution.ts",
|
|
878
501
|
"packageName": "@happyvertical/smrt-sales",
|
|
879
502
|
"fields": {
|
|
880
503
|
"tenantId": {
|
|
@@ -894,10 +517,28 @@
|
|
|
894
517
|
}
|
|
895
518
|
}
|
|
896
519
|
},
|
|
897
|
-
"
|
|
898
|
-
"type": "
|
|
520
|
+
"provider": {
|
|
521
|
+
"type": "text",
|
|
899
522
|
"required": true,
|
|
900
|
-
"
|
|
523
|
+
"default": "",
|
|
524
|
+
"_meta": {
|
|
525
|
+
"required": true
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"providerAccountRef": {
|
|
529
|
+
"type": "text",
|
|
530
|
+
"required": false,
|
|
531
|
+
"default": ""
|
|
532
|
+
},
|
|
533
|
+
"credentialRef": {
|
|
534
|
+
"type": "text",
|
|
535
|
+
"required": false,
|
|
536
|
+
"default": ""
|
|
537
|
+
},
|
|
538
|
+
"idempotencyKey": {
|
|
539
|
+
"type": "text",
|
|
540
|
+
"required": true,
|
|
541
|
+
"default": "",
|
|
901
542
|
"_meta": {
|
|
902
543
|
"required": true
|
|
903
544
|
}
|
|
@@ -938,6 +579,73 @@
|
|
|
938
579
|
"required": false,
|
|
939
580
|
"default": 0
|
|
940
581
|
},
|
|
582
|
+
"requestIntentSha256": {
|
|
583
|
+
"type": "text",
|
|
584
|
+
"required": false,
|
|
585
|
+
"default": ""
|
|
586
|
+
},
|
|
587
|
+
"title": {
|
|
588
|
+
"type": "text",
|
|
589
|
+
"required": false,
|
|
590
|
+
"default": ""
|
|
591
|
+
},
|
|
592
|
+
"signerIntent": {
|
|
593
|
+
"type": "text",
|
|
594
|
+
"required": false,
|
|
595
|
+
"default": "[]"
|
|
596
|
+
},
|
|
597
|
+
"providerRequestId": {
|
|
598
|
+
"type": "text",
|
|
599
|
+
"required": false,
|
|
600
|
+
"default": ""
|
|
601
|
+
},
|
|
602
|
+
"providerRequestKey": {
|
|
603
|
+
"type": "text",
|
|
604
|
+
"required": false,
|
|
605
|
+
"_meta": {
|
|
606
|
+
"nullable": true,
|
|
607
|
+
"unique": true
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"status": {
|
|
611
|
+
"type": "text",
|
|
612
|
+
"required": false,
|
|
613
|
+
"default": "prepared"
|
|
614
|
+
},
|
|
615
|
+
"expiresAt": {
|
|
616
|
+
"type": "datetime",
|
|
617
|
+
"required": false
|
|
618
|
+
},
|
|
619
|
+
"cancellationReason": {
|
|
620
|
+
"type": "text",
|
|
621
|
+
"required": false,
|
|
622
|
+
"default": ""
|
|
623
|
+
},
|
|
624
|
+
"lastProviderEventAt": {
|
|
625
|
+
"type": "datetime",
|
|
626
|
+
"required": false
|
|
627
|
+
},
|
|
628
|
+
"lastReconciledAt": {
|
|
629
|
+
"type": "datetime",
|
|
630
|
+
"required": false
|
|
631
|
+
},
|
|
632
|
+
"completedAt": {
|
|
633
|
+
"type": "datetime",
|
|
634
|
+
"required": false
|
|
635
|
+
},
|
|
636
|
+
"effectiveFrom": {
|
|
637
|
+
"type": "datetime",
|
|
638
|
+
"required": false
|
|
639
|
+
},
|
|
640
|
+
"effectiveTo": {
|
|
641
|
+
"type": "datetime",
|
|
642
|
+
"required": false
|
|
643
|
+
},
|
|
644
|
+
"supersedesExecutedAgreementId": {
|
|
645
|
+
"type": "text",
|
|
646
|
+
"required": false,
|
|
647
|
+
"default": ""
|
|
648
|
+
},
|
|
941
649
|
"signedDocumentAssetId": {
|
|
942
650
|
"type": "crossPackageRef",
|
|
943
651
|
"required": false,
|
|
@@ -988,27 +696,24 @@
|
|
|
988
696
|
"required": false,
|
|
989
697
|
"default": ""
|
|
990
698
|
},
|
|
991
|
-
"
|
|
992
|
-
"type": "
|
|
699
|
+
"attemptCount": {
|
|
700
|
+
"type": "integer",
|
|
993
701
|
"required": false,
|
|
994
|
-
"default":
|
|
995
|
-
},
|
|
996
|
-
"acceptedAt": {
|
|
997
|
-
"type": "datetime",
|
|
998
|
-
"required": false
|
|
702
|
+
"default": 0
|
|
999
703
|
},
|
|
1000
|
-
"
|
|
1001
|
-
"type": "
|
|
1002
|
-
"required": false
|
|
704
|
+
"createLeaseId": {
|
|
705
|
+
"type": "text",
|
|
706
|
+
"required": false,
|
|
707
|
+
"default": ""
|
|
1003
708
|
},
|
|
1004
|
-
"
|
|
709
|
+
"createLeaseExpiresAt": {
|
|
1005
710
|
"type": "datetime",
|
|
1006
711
|
"required": false
|
|
1007
712
|
},
|
|
1008
|
-
"
|
|
1009
|
-
"type": "
|
|
713
|
+
"lastError": {
|
|
714
|
+
"type": "text",
|
|
1010
715
|
"required": false,
|
|
1011
|
-
"
|
|
716
|
+
"default": ""
|
|
1012
717
|
},
|
|
1013
718
|
"metadata": {
|
|
1014
719
|
"type": "text",
|
|
@@ -1025,20 +730,6 @@
|
|
|
1025
730
|
"isStatic": false,
|
|
1026
731
|
"isPublic": true
|
|
1027
732
|
},
|
|
1028
|
-
"isEffectiveAt": {
|
|
1029
|
-
"name": "isEffectiveAt",
|
|
1030
|
-
"async": false,
|
|
1031
|
-
"parameters": [
|
|
1032
|
-
{
|
|
1033
|
-
"name": "at",
|
|
1034
|
-
"type": "Date",
|
|
1035
|
-
"optional": false
|
|
1036
|
-
}
|
|
1037
|
-
],
|
|
1038
|
-
"returnType": "boolean",
|
|
1039
|
-
"isStatic": false,
|
|
1040
|
-
"isPublic": true
|
|
1041
|
-
},
|
|
1042
733
|
"save": {
|
|
1043
734
|
"name": "save",
|
|
1044
735
|
"async": true,
|
|
@@ -1046,33 +737,31 @@
|
|
|
1046
737
|
"returnType": "Promise",
|
|
1047
738
|
"isStatic": false,
|
|
1048
739
|
"isPublic": true
|
|
740
|
+
},
|
|
741
|
+
"getSignerIntent": {
|
|
742
|
+
"name": "getSignerIntent",
|
|
743
|
+
"async": false,
|
|
744
|
+
"parameters": [],
|
|
745
|
+
"returnType": "AgreementSignerIntent[]",
|
|
746
|
+
"isStatic": false,
|
|
747
|
+
"isPublic": true
|
|
1049
748
|
}
|
|
1050
749
|
},
|
|
1051
750
|
"decoratorConfig": {
|
|
1052
751
|
"conflictColumns": [
|
|
1053
752
|
"tenant_id",
|
|
1054
|
-
"
|
|
753
|
+
"idempotency_key"
|
|
1055
754
|
],
|
|
1056
|
-
"api":
|
|
1057
|
-
|
|
1058
|
-
"list",
|
|
1059
|
-
"get"
|
|
1060
|
-
]
|
|
1061
|
-
},
|
|
1062
|
-
"mcp": {
|
|
1063
|
-
"include": [
|
|
1064
|
-
"list",
|
|
1065
|
-
"get"
|
|
1066
|
-
]
|
|
1067
|
-
},
|
|
755
|
+
"api": false,
|
|
756
|
+
"mcp": false,
|
|
1068
757
|
"cli": false,
|
|
1069
758
|
"tenantScoped": {
|
|
1070
759
|
"mode": "required"
|
|
1071
760
|
}
|
|
1072
761
|
},
|
|
1073
762
|
"extends": "SmrtObject",
|
|
1074
|
-
"exportName": "
|
|
1075
|
-
"collectionExportName": "
|
|
763
|
+
"exportName": "AgreementExecution",
|
|
764
|
+
"collectionExportName": "AgreementExecutionCollection",
|
|
1076
765
|
"validationRules": [
|
|
1077
766
|
{
|
|
1078
767
|
"field": "tenantId",
|
|
@@ -1080,9 +769,14 @@
|
|
|
1080
769
|
"fieldType": "text"
|
|
1081
770
|
},
|
|
1082
771
|
{
|
|
1083
|
-
"field": "
|
|
772
|
+
"field": "provider",
|
|
1084
773
|
"rule": "required",
|
|
1085
|
-
"fieldType": "
|
|
774
|
+
"fieldType": "text"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"field": "idempotencyKey",
|
|
778
|
+
"rule": "required",
|
|
779
|
+
"fieldType": "text"
|
|
1086
780
|
},
|
|
1087
781
|
{
|
|
1088
782
|
"field": "sourceKind",
|
|
@@ -1096,8 +790,8 @@
|
|
|
1096
790
|
}
|
|
1097
791
|
],
|
|
1098
792
|
"schema": {
|
|
1099
|
-
"tableName": "
|
|
1100
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
793
|
+
"tableName": "agreement_executions",
|
|
794
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"agreement_executions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"provider\" TEXT NOT NULL DEFAULT '',\n \"provider_account_ref\" TEXT DEFAULT '',\n \"credential_ref\" TEXT DEFAULT '',\n \"idempotency_key\" TEXT NOT NULL DEFAULT '',\n \"source_kind\" TEXT NOT NULL DEFAULT '',\n \"source_id\" TEXT NOT NULL DEFAULT '',\n \"source_version\" INTEGER DEFAULT 1,\n \"source_asset_id\" UUID,\n \"source_sha256\" TEXT DEFAULT '',\n \"source_size_bytes\" INTEGER DEFAULT 0,\n \"request_intent_sha256\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"signer_intent\" TEXT DEFAULT '[]',\n \"provider_request_id\" TEXT DEFAULT '',\n \"provider_request_key\" TEXT UNIQUE,\n \"status\" TEXT DEFAULT 'prepared',\n \"expires_at\" TIMESTAMP,\n \"cancellation_reason\" TEXT DEFAULT '',\n \"last_provider_event_at\" TIMESTAMP,\n \"last_reconciled_at\" TIMESTAMP,\n \"completed_at\" TIMESTAMP,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"supersedes_executed_agreement_id\" TEXT DEFAULT '',\n \"signed_document_asset_id\" UUID,\n \"signed_document_sha256\" TEXT DEFAULT '',\n \"signed_document_size_bytes\" INTEGER DEFAULT 0,\n \"signed_document_media_type\" TEXT DEFAULT '',\n \"signed_document_filename\" TEXT DEFAULT '',\n \"audit_trail_asset_id\" UUID,\n \"audit_trail_sha256\" TEXT DEFAULT '',\n \"audit_trail_size_bytes\" INTEGER DEFAULT 0,\n \"audit_trail_media_type\" TEXT DEFAULT '',\n \"audit_trail_filename\" TEXT DEFAULT '',\n \"attempt_count\" INTEGER DEFAULT 0,\n \"create_lease_id\" TEXT DEFAULT '',\n \"create_lease_expires_at\" TIMESTAMP,\n \"last_error\" TEXT DEFAULT '',\n \"metadata\" TEXT DEFAULT '{}'\n);",
|
|
1101
795
|
"columns": {
|
|
1102
796
|
"id": {
|
|
1103
797
|
"type": "UUID",
|
|
@@ -1130,11 +824,29 @@
|
|
|
1130
824
|
"notNull": true,
|
|
1131
825
|
"unique": false
|
|
1132
826
|
},
|
|
1133
|
-
"
|
|
1134
|
-
"type": "
|
|
1135
|
-
"referenceKind": "foreignKey",
|
|
827
|
+
"provider": {
|
|
828
|
+
"type": "TEXT",
|
|
1136
829
|
"notNull": true,
|
|
1137
|
-
"unique": false
|
|
830
|
+
"unique": false,
|
|
831
|
+
"default": ""
|
|
832
|
+
},
|
|
833
|
+
"provider_account_ref": {
|
|
834
|
+
"type": "TEXT",
|
|
835
|
+
"notNull": false,
|
|
836
|
+
"unique": false,
|
|
837
|
+
"default": ""
|
|
838
|
+
},
|
|
839
|
+
"credential_ref": {
|
|
840
|
+
"type": "TEXT",
|
|
841
|
+
"notNull": false,
|
|
842
|
+
"unique": false,
|
|
843
|
+
"default": ""
|
|
844
|
+
},
|
|
845
|
+
"idempotency_key": {
|
|
846
|
+
"type": "TEXT",
|
|
847
|
+
"notNull": true,
|
|
848
|
+
"unique": false,
|
|
849
|
+
"default": ""
|
|
1138
850
|
},
|
|
1139
851
|
"source_kind": {
|
|
1140
852
|
"type": "TEXT",
|
|
@@ -1172,6 +884,83 @@
|
|
|
1172
884
|
"unique": false,
|
|
1173
885
|
"default": 0
|
|
1174
886
|
},
|
|
887
|
+
"request_intent_sha256": {
|
|
888
|
+
"type": "TEXT",
|
|
889
|
+
"notNull": false,
|
|
890
|
+
"unique": false,
|
|
891
|
+
"default": ""
|
|
892
|
+
},
|
|
893
|
+
"title": {
|
|
894
|
+
"type": "TEXT",
|
|
895
|
+
"notNull": false,
|
|
896
|
+
"unique": false,
|
|
897
|
+
"default": ""
|
|
898
|
+
},
|
|
899
|
+
"signer_intent": {
|
|
900
|
+
"type": "TEXT",
|
|
901
|
+
"notNull": false,
|
|
902
|
+
"unique": false,
|
|
903
|
+
"default": "[]"
|
|
904
|
+
},
|
|
905
|
+
"provider_request_id": {
|
|
906
|
+
"type": "TEXT",
|
|
907
|
+
"notNull": false,
|
|
908
|
+
"unique": false,
|
|
909
|
+
"default": ""
|
|
910
|
+
},
|
|
911
|
+
"provider_request_key": {
|
|
912
|
+
"type": "TEXT",
|
|
913
|
+
"notNull": false,
|
|
914
|
+
"unique": true
|
|
915
|
+
},
|
|
916
|
+
"status": {
|
|
917
|
+
"type": "TEXT",
|
|
918
|
+
"notNull": false,
|
|
919
|
+
"unique": false,
|
|
920
|
+
"default": "prepared"
|
|
921
|
+
},
|
|
922
|
+
"expires_at": {
|
|
923
|
+
"type": "TIMESTAMP",
|
|
924
|
+
"notNull": false,
|
|
925
|
+
"unique": false
|
|
926
|
+
},
|
|
927
|
+
"cancellation_reason": {
|
|
928
|
+
"type": "TEXT",
|
|
929
|
+
"notNull": false,
|
|
930
|
+
"unique": false,
|
|
931
|
+
"default": ""
|
|
932
|
+
},
|
|
933
|
+
"last_provider_event_at": {
|
|
934
|
+
"type": "TIMESTAMP",
|
|
935
|
+
"notNull": false,
|
|
936
|
+
"unique": false
|
|
937
|
+
},
|
|
938
|
+
"last_reconciled_at": {
|
|
939
|
+
"type": "TIMESTAMP",
|
|
940
|
+
"notNull": false,
|
|
941
|
+
"unique": false
|
|
942
|
+
},
|
|
943
|
+
"completed_at": {
|
|
944
|
+
"type": "TIMESTAMP",
|
|
945
|
+
"notNull": false,
|
|
946
|
+
"unique": false
|
|
947
|
+
},
|
|
948
|
+
"effective_from": {
|
|
949
|
+
"type": "TIMESTAMP",
|
|
950
|
+
"notNull": false,
|
|
951
|
+
"unique": false
|
|
952
|
+
},
|
|
953
|
+
"effective_to": {
|
|
954
|
+
"type": "TIMESTAMP",
|
|
955
|
+
"notNull": false,
|
|
956
|
+
"unique": false
|
|
957
|
+
},
|
|
958
|
+
"supersedes_executed_agreement_id": {
|
|
959
|
+
"type": "TEXT",
|
|
960
|
+
"notNull": false,
|
|
961
|
+
"unique": false,
|
|
962
|
+
"default": ""
|
|
963
|
+
},
|
|
1175
964
|
"signed_document_asset_id": {
|
|
1176
965
|
"type": "UUID",
|
|
1177
966
|
"referenceKind": "crossPackageRef",
|
|
@@ -1232,32 +1021,28 @@
|
|
|
1232
1021
|
"unique": false,
|
|
1233
1022
|
"default": ""
|
|
1234
1023
|
},
|
|
1235
|
-
"
|
|
1236
|
-
"type": "
|
|
1024
|
+
"attempt_count": {
|
|
1025
|
+
"type": "INTEGER",
|
|
1237
1026
|
"notNull": false,
|
|
1238
1027
|
"unique": false,
|
|
1239
|
-
"default":
|
|
1240
|
-
},
|
|
1241
|
-
"accepted_at": {
|
|
1242
|
-
"type": "TIMESTAMP",
|
|
1243
|
-
"notNull": false,
|
|
1244
|
-
"unique": false
|
|
1028
|
+
"default": 0
|
|
1245
1029
|
},
|
|
1246
|
-
"
|
|
1247
|
-
"type": "
|
|
1030
|
+
"create_lease_id": {
|
|
1031
|
+
"type": "TEXT",
|
|
1248
1032
|
"notNull": false,
|
|
1249
|
-
"unique": false
|
|
1033
|
+
"unique": false,
|
|
1034
|
+
"default": ""
|
|
1250
1035
|
},
|
|
1251
|
-
"
|
|
1036
|
+
"create_lease_expires_at": {
|
|
1252
1037
|
"type": "TIMESTAMP",
|
|
1253
1038
|
"notNull": false,
|
|
1254
1039
|
"unique": false
|
|
1255
1040
|
},
|
|
1256
|
-
"
|
|
1257
|
-
"type": "
|
|
1258
|
-
"referenceKind": "foreignKey",
|
|
1041
|
+
"last_error": {
|
|
1042
|
+
"type": "TEXT",
|
|
1259
1043
|
"notNull": false,
|
|
1260
|
-
"unique": false
|
|
1044
|
+
"unique": false,
|
|
1045
|
+
"default": ""
|
|
1261
1046
|
},
|
|
1262
1047
|
"metadata": {
|
|
1263
1048
|
"type": "TEXT",
|
|
@@ -1268,210 +1053,202 @@
|
|
|
1268
1053
|
},
|
|
1269
1054
|
"indexes": [
|
|
1270
1055
|
{
|
|
1271
|
-
"name": "
|
|
1056
|
+
"name": "agreement_executions_tenant_id_idempotency_key_idx",
|
|
1057
|
+
"columns": [
|
|
1058
|
+
"tenant_id",
|
|
1059
|
+
"idempotency_key"
|
|
1060
|
+
],
|
|
1061
|
+
"unique": true
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "agreement_executions_slug_context_idx",
|
|
1272
1065
|
"columns": [
|
|
1273
|
-
"
|
|
1066
|
+
"slug",
|
|
1067
|
+
"context"
|
|
1274
1068
|
]
|
|
1275
1069
|
},
|
|
1276
1070
|
{
|
|
1277
|
-
"name": "
|
|
1071
|
+
"name": "agreement_executions_tenant_id_created_at_idx",
|
|
1278
1072
|
"columns": [
|
|
1279
1073
|
"tenant_id",
|
|
1280
|
-
"
|
|
1281
|
-
]
|
|
1282
|
-
|
|
1074
|
+
"created_at"
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "agreement_executions_source_asset_id_idx",
|
|
1079
|
+
"columns": [
|
|
1080
|
+
"source_asset_id"
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "agreement_executions_signed_document_asset_id_idx",
|
|
1085
|
+
"columns": [
|
|
1086
|
+
"signed_document_asset_id"
|
|
1087
|
+
]
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "agreement_executions_audit_trail_asset_id_idx",
|
|
1091
|
+
"columns": [
|
|
1092
|
+
"audit_trail_asset_id"
|
|
1093
|
+
]
|
|
1283
1094
|
}
|
|
1284
1095
|
],
|
|
1285
|
-
"version": "
|
|
1096
|
+
"version": "33a93a76"
|
|
1286
1097
|
}
|
|
1287
1098
|
},
|
|
1288
|
-
"@happyvertical/smrt-sales:
|
|
1289
|
-
"name": "
|
|
1290
|
-
"className": "
|
|
1291
|
-
"qualifiedName": "@happyvertical/smrt-sales:
|
|
1292
|
-
"collection": "
|
|
1293
|
-
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/
|
|
1099
|
+
"@happyvertical/smrt-sales:AgreementExecutionEvent": {
|
|
1100
|
+
"name": "agreementexecutionevent",
|
|
1101
|
+
"className": "AgreementExecutionEvent",
|
|
1102
|
+
"qualifiedName": "@happyvertical/smrt-sales:AgreementExecutionEvent",
|
|
1103
|
+
"collection": "agreementexecutionevents",
|
|
1104
|
+
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/models/AgreementExecutionEvent.ts",
|
|
1294
1105
|
"packageName": "@happyvertical/smrt-sales",
|
|
1295
|
-
"fields": {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
1300
|
-
|
|
1301
|
-
{
|
|
1302
|
-
"
|
|
1303
|
-
"
|
|
1304
|
-
"
|
|
1106
|
+
"fields": {
|
|
1107
|
+
"tenantId": {
|
|
1108
|
+
"type": "text",
|
|
1109
|
+
"required": true,
|
|
1110
|
+
"_meta": {
|
|
1111
|
+
"sqlType": "UUID",
|
|
1112
|
+
"__tenancy": {
|
|
1113
|
+
"isTenantIdField": true,
|
|
1114
|
+
"autoFilter": true,
|
|
1115
|
+
"required": true,
|
|
1116
|
+
"autoPopulate": true,
|
|
1117
|
+
"nullable": false,
|
|
1118
|
+
"mode": "required",
|
|
1119
|
+
"field": "tenantId",
|
|
1120
|
+
"allowSuperAdminBypass": false
|
|
1305
1121
|
}
|
|
1306
|
-
|
|
1307
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1308
|
-
"isStatic": false,
|
|
1309
|
-
"isPublic": true
|
|
1122
|
+
}
|
|
1310
1123
|
},
|
|
1311
|
-
"
|
|
1312
|
-
"
|
|
1313
|
-
"
|
|
1314
|
-
"
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
"
|
|
1327
|
-
"
|
|
1328
|
-
|
|
1124
|
+
"executionId": {
|
|
1125
|
+
"type": "foreignKey",
|
|
1126
|
+
"required": true,
|
|
1127
|
+
"related": "AgreementExecution",
|
|
1128
|
+
"_meta": {
|
|
1129
|
+
"required": true
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
"provider": {
|
|
1133
|
+
"type": "text",
|
|
1134
|
+
"required": false,
|
|
1135
|
+
"default": ""
|
|
1136
|
+
},
|
|
1137
|
+
"providerEventId": {
|
|
1138
|
+
"type": "text",
|
|
1139
|
+
"required": false,
|
|
1140
|
+
"default": ""
|
|
1141
|
+
},
|
|
1142
|
+
"eventOrigin": {
|
|
1143
|
+
"type": "text",
|
|
1144
|
+
"required": false,
|
|
1145
|
+
"default": "provider_webhook"
|
|
1146
|
+
},
|
|
1147
|
+
"operationId": {
|
|
1148
|
+
"type": "text",
|
|
1149
|
+
"required": false,
|
|
1150
|
+
"default": ""
|
|
1329
1151
|
},
|
|
1330
|
-
"
|
|
1331
|
-
"
|
|
1332
|
-
"
|
|
1333
|
-
"
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
"optional": false
|
|
1338
|
-
}
|
|
1339
|
-
],
|
|
1340
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1341
|
-
"isStatic": false,
|
|
1342
|
-
"isPublic": true
|
|
1152
|
+
"dedupeKey": {
|
|
1153
|
+
"type": "text",
|
|
1154
|
+
"required": true,
|
|
1155
|
+
"default": "",
|
|
1156
|
+
"_meta": {
|
|
1157
|
+
"required": true
|
|
1158
|
+
}
|
|
1343
1159
|
},
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1346
|
-
"
|
|
1347
|
-
"
|
|
1348
|
-
{
|
|
1349
|
-
"name": "input",
|
|
1350
|
-
"type": "CompleteAgreementCreateAttemptInput",
|
|
1351
|
-
"optional": false
|
|
1352
|
-
}
|
|
1353
|
-
],
|
|
1354
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1355
|
-
"isStatic": false,
|
|
1356
|
-
"isPublic": true
|
|
1160
|
+
"orderingKey": {
|
|
1161
|
+
"type": "text",
|
|
1162
|
+
"required": false,
|
|
1163
|
+
"default": ""
|
|
1357
1164
|
},
|
|
1358
|
-
"
|
|
1359
|
-
"
|
|
1360
|
-
"
|
|
1361
|
-
"
|
|
1362
|
-
{
|
|
1363
|
-
"name": "input",
|
|
1364
|
-
"type": "FailAgreementCreateAttemptInput",
|
|
1365
|
-
"optional": false
|
|
1366
|
-
}
|
|
1367
|
-
],
|
|
1368
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1369
|
-
"isStatic": false,
|
|
1370
|
-
"isPublic": true
|
|
1165
|
+
"eventType": {
|
|
1166
|
+
"type": "text",
|
|
1167
|
+
"required": false,
|
|
1168
|
+
"default": ""
|
|
1371
1169
|
},
|
|
1372
|
-
"
|
|
1373
|
-
"
|
|
1374
|
-
"
|
|
1375
|
-
"
|
|
1376
|
-
{
|
|
1377
|
-
"name": "input",
|
|
1378
|
-
"type": "BindAgreementProviderRequestInput",
|
|
1379
|
-
"optional": false
|
|
1380
|
-
}
|
|
1381
|
-
],
|
|
1382
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1383
|
-
"isStatic": false,
|
|
1384
|
-
"isPublic": true
|
|
1170
|
+
"status": {
|
|
1171
|
+
"type": "text",
|
|
1172
|
+
"required": false,
|
|
1173
|
+
"default": "prepared"
|
|
1385
1174
|
},
|
|
1386
|
-
"
|
|
1387
|
-
"
|
|
1388
|
-
"
|
|
1389
|
-
"parameters": [
|
|
1390
|
-
{
|
|
1391
|
-
"name": "input",
|
|
1392
|
-
"type": "CompareAndSetAgreementLifecycleInput",
|
|
1393
|
-
"optional": false
|
|
1394
|
-
}
|
|
1395
|
-
],
|
|
1396
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1397
|
-
"isStatic": false,
|
|
1398
|
-
"isPublic": true
|
|
1175
|
+
"occurredAt": {
|
|
1176
|
+
"type": "datetime",
|
|
1177
|
+
"required": false
|
|
1399
1178
|
},
|
|
1400
|
-
"
|
|
1401
|
-
"
|
|
1402
|
-
"
|
|
1403
|
-
"parameters": [
|
|
1404
|
-
{
|
|
1405
|
-
"name": "tenantId",
|
|
1406
|
-
"type": "string",
|
|
1407
|
-
"optional": false
|
|
1408
|
-
},
|
|
1409
|
-
{
|
|
1410
|
-
"name": "executionId",
|
|
1411
|
-
"type": "string",
|
|
1412
|
-
"optional": false
|
|
1413
|
-
}
|
|
1414
|
-
],
|
|
1415
|
-
"returnType": "Promise<AgreementExecution>",
|
|
1416
|
-
"isStatic": false,
|
|
1417
|
-
"isPublic": true
|
|
1179
|
+
"receivedAt": {
|
|
1180
|
+
"type": "datetime",
|
|
1181
|
+
"required": false
|
|
1418
1182
|
},
|
|
1419
|
-
"
|
|
1420
|
-
"
|
|
1421
|
-
"
|
|
1422
|
-
"
|
|
1423
|
-
{
|
|
1424
|
-
"name": "input",
|
|
1425
|
-
"type": "UpdateAgreementExecutionErrorInput",
|
|
1426
|
-
"optional": false
|
|
1427
|
-
}
|
|
1428
|
-
],
|
|
1429
|
-
"returnType": "Promise<AgreementExecution>",
|
|
1430
|
-
"isStatic": false,
|
|
1431
|
-
"isPublic": true
|
|
1183
|
+
"payloadSha256": {
|
|
1184
|
+
"type": "text",
|
|
1185
|
+
"required": false,
|
|
1186
|
+
"default": ""
|
|
1432
1187
|
},
|
|
1433
|
-
"
|
|
1434
|
-
"
|
|
1188
|
+
"signerEvidence": {
|
|
1189
|
+
"type": "text",
|
|
1190
|
+
"required": false,
|
|
1191
|
+
"default": "[]"
|
|
1192
|
+
},
|
|
1193
|
+
"payload": {
|
|
1194
|
+
"type": "text",
|
|
1195
|
+
"required": false,
|
|
1196
|
+
"default": "{}"
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"methods": {
|
|
1200
|
+
"initialize": {
|
|
1201
|
+
"name": "initialize",
|
|
1435
1202
|
"async": true,
|
|
1436
|
-
"parameters": [
|
|
1437
|
-
|
|
1438
|
-
"name": "input",
|
|
1439
|
-
"type": "BindAgreementEvidenceArtifactInput",
|
|
1440
|
-
"optional": false
|
|
1441
|
-
}
|
|
1442
|
-
],
|
|
1443
|
-
"returnType": "Promise<AgreementExecution | null>",
|
|
1203
|
+
"parameters": [],
|
|
1204
|
+
"returnType": "Promise",
|
|
1444
1205
|
"isStatic": false,
|
|
1445
1206
|
"isPublic": true
|
|
1446
1207
|
},
|
|
1447
|
-
"
|
|
1448
|
-
"name": "
|
|
1208
|
+
"save": {
|
|
1209
|
+
"name": "save",
|
|
1449
1210
|
"async": true,
|
|
1450
|
-
"parameters": [
|
|
1451
|
-
|
|
1452
|
-
"name": "sourceKind",
|
|
1453
|
-
"type": "string",
|
|
1454
|
-
"optional": false
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
"name": "sourceId",
|
|
1458
|
-
"type": "string",
|
|
1459
|
-
"optional": false
|
|
1460
|
-
}
|
|
1461
|
-
],
|
|
1462
|
-
"returnType": "Promise<AgreementExecution[]>",
|
|
1211
|
+
"parameters": [],
|
|
1212
|
+
"returnType": "Promise",
|
|
1463
1213
|
"isStatic": false,
|
|
1464
1214
|
"isPublic": true
|
|
1465
1215
|
}
|
|
1466
1216
|
},
|
|
1467
|
-
"decoratorConfig": {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1217
|
+
"decoratorConfig": {
|
|
1218
|
+
"conflictColumns": [
|
|
1219
|
+
"tenant_id",
|
|
1220
|
+
"dedupe_key"
|
|
1221
|
+
],
|
|
1222
|
+
"api": false,
|
|
1223
|
+
"mcp": false,
|
|
1224
|
+
"cli": false,
|
|
1225
|
+
"tenantScoped": {
|
|
1226
|
+
"mode": "required"
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
"extends": "SmrtObject",
|
|
1230
|
+
"exportName": "AgreementExecutionEvent",
|
|
1231
|
+
"collectionExportName": "AgreementExecutionEventCollection",
|
|
1232
|
+
"validationRules": [
|
|
1233
|
+
{
|
|
1234
|
+
"field": "tenantId",
|
|
1235
|
+
"rule": "required",
|
|
1236
|
+
"fieldType": "text"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"field": "executionId",
|
|
1240
|
+
"rule": "required",
|
|
1241
|
+
"fieldType": "foreignKey"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"field": "dedupeKey",
|
|
1245
|
+
"rule": "required",
|
|
1246
|
+
"fieldType": "text"
|
|
1247
|
+
}
|
|
1248
|
+
],
|
|
1472
1249
|
"schema": {
|
|
1473
|
-
"tableName": "
|
|
1474
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
1250
|
+
"tableName": "agreement_execution_events",
|
|
1251
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"agreement_execution_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"execution_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT '',\n \"provider_event_id\" TEXT DEFAULT '',\n \"event_origin\" TEXT DEFAULT 'provider_webhook',\n \"operation_id\" TEXT DEFAULT '',\n \"dedupe_key\" TEXT NOT NULL DEFAULT '',\n \"ordering_key\" TEXT DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'prepared',\n \"occurred_at\" TIMESTAMP,\n \"received_at\" TIMESTAMP,\n \"payload_sha256\" TEXT DEFAULT '',\n \"signer_evidence\" TEXT DEFAULT '[]',\n \"payload\" TEXT DEFAULT '{}'\n);",
|
|
1475
1252
|
"columns": {
|
|
1476
1253
|
"id": {
|
|
1477
1254
|
"type": "UUID",
|
|
@@ -1479,119 +1256,376 @@
|
|
|
1479
1256
|
"referenceKind": "id",
|
|
1480
1257
|
"notNull": true
|
|
1481
1258
|
},
|
|
1482
|
-
"slug": {
|
|
1259
|
+
"slug": {
|
|
1260
|
+
"type": "TEXT",
|
|
1261
|
+
"notNull": true
|
|
1262
|
+
},
|
|
1263
|
+
"context": {
|
|
1264
|
+
"type": "TEXT",
|
|
1265
|
+
"notNull": true,
|
|
1266
|
+
"default": ""
|
|
1267
|
+
},
|
|
1268
|
+
"created_at": {
|
|
1269
|
+
"type": "TIMESTAMP",
|
|
1270
|
+
"notNull": true,
|
|
1271
|
+
"default": "current_timestamp"
|
|
1272
|
+
},
|
|
1273
|
+
"updated_at": {
|
|
1274
|
+
"type": "TIMESTAMP",
|
|
1275
|
+
"notNull": true,
|
|
1276
|
+
"default": "current_timestamp"
|
|
1277
|
+
},
|
|
1278
|
+
"tenant_id": {
|
|
1279
|
+
"type": "UUID",
|
|
1280
|
+
"referenceKind": "tenantId",
|
|
1281
|
+
"notNull": true,
|
|
1282
|
+
"unique": false
|
|
1283
|
+
},
|
|
1284
|
+
"execution_id": {
|
|
1285
|
+
"type": "UUID",
|
|
1286
|
+
"referenceKind": "foreignKey",
|
|
1287
|
+
"notNull": true,
|
|
1288
|
+
"unique": false
|
|
1289
|
+
},
|
|
1290
|
+
"provider": {
|
|
1291
|
+
"type": "TEXT",
|
|
1292
|
+
"notNull": false,
|
|
1293
|
+
"unique": false,
|
|
1294
|
+
"default": ""
|
|
1295
|
+
},
|
|
1296
|
+
"provider_event_id": {
|
|
1297
|
+
"type": "TEXT",
|
|
1298
|
+
"notNull": false,
|
|
1299
|
+
"unique": false,
|
|
1300
|
+
"default": ""
|
|
1301
|
+
},
|
|
1302
|
+
"event_origin": {
|
|
1483
1303
|
"type": "TEXT",
|
|
1484
|
-
"notNull":
|
|
1304
|
+
"notNull": false,
|
|
1305
|
+
"unique": false,
|
|
1306
|
+
"default": "provider_webhook"
|
|
1485
1307
|
},
|
|
1486
|
-
"
|
|
1308
|
+
"operation_id": {
|
|
1309
|
+
"type": "TEXT",
|
|
1310
|
+
"notNull": false,
|
|
1311
|
+
"unique": false,
|
|
1312
|
+
"default": ""
|
|
1313
|
+
},
|
|
1314
|
+
"dedupe_key": {
|
|
1487
1315
|
"type": "TEXT",
|
|
1488
1316
|
"notNull": true,
|
|
1317
|
+
"unique": false,
|
|
1489
1318
|
"default": ""
|
|
1490
1319
|
},
|
|
1491
|
-
"
|
|
1320
|
+
"ordering_key": {
|
|
1321
|
+
"type": "TEXT",
|
|
1322
|
+
"notNull": false,
|
|
1323
|
+
"unique": false,
|
|
1324
|
+
"default": ""
|
|
1325
|
+
},
|
|
1326
|
+
"event_type": {
|
|
1327
|
+
"type": "TEXT",
|
|
1328
|
+
"notNull": false,
|
|
1329
|
+
"unique": false,
|
|
1330
|
+
"default": ""
|
|
1331
|
+
},
|
|
1332
|
+
"status": {
|
|
1333
|
+
"type": "TEXT",
|
|
1334
|
+
"notNull": false,
|
|
1335
|
+
"unique": false,
|
|
1336
|
+
"default": "prepared"
|
|
1337
|
+
},
|
|
1338
|
+
"occurred_at": {
|
|
1492
1339
|
"type": "TIMESTAMP",
|
|
1493
|
-
"notNull":
|
|
1494
|
-
"
|
|
1340
|
+
"notNull": false,
|
|
1341
|
+
"unique": false
|
|
1495
1342
|
},
|
|
1496
|
-
"
|
|
1343
|
+
"received_at": {
|
|
1497
1344
|
"type": "TIMESTAMP",
|
|
1498
|
-
"notNull":
|
|
1499
|
-
"
|
|
1345
|
+
"notNull": false,
|
|
1346
|
+
"unique": false
|
|
1347
|
+
},
|
|
1348
|
+
"payload_sha256": {
|
|
1349
|
+
"type": "TEXT",
|
|
1350
|
+
"notNull": false,
|
|
1351
|
+
"unique": false,
|
|
1352
|
+
"default": ""
|
|
1353
|
+
},
|
|
1354
|
+
"signer_evidence": {
|
|
1355
|
+
"type": "TEXT",
|
|
1356
|
+
"notNull": false,
|
|
1357
|
+
"unique": false,
|
|
1358
|
+
"default": "[]"
|
|
1359
|
+
},
|
|
1360
|
+
"payload": {
|
|
1361
|
+
"type": "TEXT",
|
|
1362
|
+
"notNull": false,
|
|
1363
|
+
"unique": false,
|
|
1364
|
+
"default": "{}"
|
|
1500
1365
|
}
|
|
1501
1366
|
},
|
|
1502
1367
|
"indexes": [
|
|
1503
1368
|
{
|
|
1504
|
-
"name": "
|
|
1369
|
+
"name": "agreement_execution_events_tenant_id_dedupe_key_idx",
|
|
1505
1370
|
"columns": [
|
|
1506
|
-
"
|
|
1507
|
-
|
|
1371
|
+
"tenant_id",
|
|
1372
|
+
"dedupe_key"
|
|
1373
|
+
],
|
|
1374
|
+
"unique": true
|
|
1508
1375
|
},
|
|
1509
1376
|
{
|
|
1510
|
-
"name": "
|
|
1377
|
+
"name": "agreement_execution_events_slug_context_idx",
|
|
1511
1378
|
"columns": [
|
|
1512
1379
|
"slug",
|
|
1513
1380
|
"context"
|
|
1514
|
-
]
|
|
1515
|
-
|
|
1381
|
+
]
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"name": "agreement_execution_events_tenant_id_created_at_idx",
|
|
1385
|
+
"columns": [
|
|
1386
|
+
"tenant_id",
|
|
1387
|
+
"created_at"
|
|
1388
|
+
]
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"name": "agreement_execution_events_execution_id_idx",
|
|
1392
|
+
"columns": [
|
|
1393
|
+
"execution_id"
|
|
1394
|
+
]
|
|
1516
1395
|
}
|
|
1517
1396
|
],
|
|
1518
|
-
"version": "
|
|
1397
|
+
"version": "beeb890c"
|
|
1519
1398
|
}
|
|
1520
1399
|
},
|
|
1521
|
-
"@happyvertical/smrt-sales:
|
|
1522
|
-
"name": "
|
|
1523
|
-
"className": "
|
|
1524
|
-
"qualifiedName": "@happyvertical/smrt-sales:
|
|
1525
|
-
"collection": "
|
|
1526
|
-
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/
|
|
1400
|
+
"@happyvertical/smrt-sales:ExecutedAgreement": {
|
|
1401
|
+
"name": "executedagreement",
|
|
1402
|
+
"className": "ExecutedAgreement",
|
|
1403
|
+
"qualifiedName": "@happyvertical/smrt-sales:ExecutedAgreement",
|
|
1404
|
+
"collection": "executedagreements",
|
|
1405
|
+
"filePath": "/home/runner/_work/smrt/smrt/packages/sales/src/agreements/models/ExecutedAgreement.ts",
|
|
1527
1406
|
"packageName": "@happyvertical/smrt-sales",
|
|
1528
|
-
"fields": {
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
"
|
|
1532
|
-
"
|
|
1533
|
-
|
|
1534
|
-
{
|
|
1535
|
-
"
|
|
1536
|
-
"
|
|
1537
|
-
"
|
|
1407
|
+
"fields": {
|
|
1408
|
+
"tenantId": {
|
|
1409
|
+
"type": "text",
|
|
1410
|
+
"required": true,
|
|
1411
|
+
"_meta": {
|
|
1412
|
+
"sqlType": "UUID",
|
|
1413
|
+
"__tenancy": {
|
|
1414
|
+
"isTenantIdField": true,
|
|
1415
|
+
"autoFilter": true,
|
|
1416
|
+
"required": true,
|
|
1417
|
+
"autoPopulate": true,
|
|
1418
|
+
"nullable": false,
|
|
1419
|
+
"mode": "required",
|
|
1420
|
+
"field": "tenantId",
|
|
1421
|
+
"allowSuperAdminBypass": false
|
|
1538
1422
|
}
|
|
1539
|
-
|
|
1540
|
-
"returnType": "Promise<AgreementExecutionEvent | null>",
|
|
1541
|
-
"isStatic": false,
|
|
1542
|
-
"isPublic": true
|
|
1423
|
+
}
|
|
1543
1424
|
},
|
|
1544
|
-
"
|
|
1545
|
-
"
|
|
1425
|
+
"executionId": {
|
|
1426
|
+
"type": "foreignKey",
|
|
1427
|
+
"required": true,
|
|
1428
|
+
"related": "AgreementExecution",
|
|
1429
|
+
"_meta": {
|
|
1430
|
+
"required": true
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"sourceKind": {
|
|
1434
|
+
"type": "text",
|
|
1435
|
+
"required": true,
|
|
1436
|
+
"default": "",
|
|
1437
|
+
"_meta": {
|
|
1438
|
+
"required": true
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
"sourceId": {
|
|
1442
|
+
"type": "text",
|
|
1443
|
+
"required": true,
|
|
1444
|
+
"default": "",
|
|
1445
|
+
"_meta": {
|
|
1446
|
+
"required": true
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
"sourceVersion": {
|
|
1450
|
+
"type": "integer",
|
|
1451
|
+
"required": false,
|
|
1452
|
+
"default": 1
|
|
1453
|
+
},
|
|
1454
|
+
"sourceAssetId": {
|
|
1455
|
+
"type": "crossPackageRef",
|
|
1456
|
+
"required": false,
|
|
1457
|
+
"related": "@happyvertical/smrt-assets:Asset"
|
|
1458
|
+
},
|
|
1459
|
+
"sourceSha256": {
|
|
1460
|
+
"type": "text",
|
|
1461
|
+
"required": false,
|
|
1462
|
+
"default": ""
|
|
1463
|
+
},
|
|
1464
|
+
"sourceSizeBytes": {
|
|
1465
|
+
"type": "integer",
|
|
1466
|
+
"required": false,
|
|
1467
|
+
"default": 0
|
|
1468
|
+
},
|
|
1469
|
+
"signedDocumentAssetId": {
|
|
1470
|
+
"type": "crossPackageRef",
|
|
1471
|
+
"required": false,
|
|
1472
|
+
"related": "@happyvertical/smrt-assets:Asset"
|
|
1473
|
+
},
|
|
1474
|
+
"signedDocumentSha256": {
|
|
1475
|
+
"type": "text",
|
|
1476
|
+
"required": false,
|
|
1477
|
+
"default": ""
|
|
1478
|
+
},
|
|
1479
|
+
"signedDocumentSizeBytes": {
|
|
1480
|
+
"type": "integer",
|
|
1481
|
+
"required": false,
|
|
1482
|
+
"default": 0
|
|
1483
|
+
},
|
|
1484
|
+
"signedDocumentMediaType": {
|
|
1485
|
+
"type": "text",
|
|
1486
|
+
"required": false,
|
|
1487
|
+
"default": ""
|
|
1488
|
+
},
|
|
1489
|
+
"signedDocumentFilename": {
|
|
1490
|
+
"type": "text",
|
|
1491
|
+
"required": false,
|
|
1492
|
+
"default": ""
|
|
1493
|
+
},
|
|
1494
|
+
"auditTrailAssetId": {
|
|
1495
|
+
"type": "crossPackageRef",
|
|
1496
|
+
"required": false,
|
|
1497
|
+
"related": "@happyvertical/smrt-assets:Asset"
|
|
1498
|
+
},
|
|
1499
|
+
"auditTrailSha256": {
|
|
1500
|
+
"type": "text",
|
|
1501
|
+
"required": false,
|
|
1502
|
+
"default": ""
|
|
1503
|
+
},
|
|
1504
|
+
"auditTrailSizeBytes": {
|
|
1505
|
+
"type": "integer",
|
|
1506
|
+
"required": false,
|
|
1507
|
+
"default": 0
|
|
1508
|
+
},
|
|
1509
|
+
"auditTrailMediaType": {
|
|
1510
|
+
"type": "text",
|
|
1511
|
+
"required": false,
|
|
1512
|
+
"default": ""
|
|
1513
|
+
},
|
|
1514
|
+
"auditTrailFilename": {
|
|
1515
|
+
"type": "text",
|
|
1516
|
+
"required": false,
|
|
1517
|
+
"default": ""
|
|
1518
|
+
},
|
|
1519
|
+
"signerEvidence": {
|
|
1520
|
+
"type": "text",
|
|
1521
|
+
"required": false,
|
|
1522
|
+
"default": "[]"
|
|
1523
|
+
},
|
|
1524
|
+
"acceptedAt": {
|
|
1525
|
+
"type": "datetime",
|
|
1526
|
+
"required": false
|
|
1527
|
+
},
|
|
1528
|
+
"effectiveFrom": {
|
|
1529
|
+
"type": "datetime",
|
|
1530
|
+
"required": false
|
|
1531
|
+
},
|
|
1532
|
+
"effectiveTo": {
|
|
1533
|
+
"type": "datetime",
|
|
1534
|
+
"required": false
|
|
1535
|
+
},
|
|
1536
|
+
"supersedesExecutedAgreementId": {
|
|
1537
|
+
"type": "foreignKey",
|
|
1538
|
+
"required": false,
|
|
1539
|
+
"related": "ExecutedAgreement"
|
|
1540
|
+
},
|
|
1541
|
+
"metadata": {
|
|
1542
|
+
"type": "text",
|
|
1543
|
+
"required": false,
|
|
1544
|
+
"default": "{}"
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
"methods": {
|
|
1548
|
+
"initialize": {
|
|
1549
|
+
"name": "initialize",
|
|
1546
1550
|
"async": true,
|
|
1547
|
-
"parameters": [
|
|
1548
|
-
|
|
1549
|
-
"name": "options",
|
|
1550
|
-
"type": "VerifiedAgreementExecutionEventOptions",
|
|
1551
|
-
"optional": false
|
|
1552
|
-
}
|
|
1553
|
-
],
|
|
1554
|
-
"returnType": "Promise<object>",
|
|
1551
|
+
"parameters": [],
|
|
1552
|
+
"returnType": "Promise",
|
|
1555
1553
|
"isStatic": false,
|
|
1556
1554
|
"isPublic": true
|
|
1557
1555
|
},
|
|
1558
|
-
"
|
|
1559
|
-
"name": "
|
|
1560
|
-
"async":
|
|
1556
|
+
"isEffectiveAt": {
|
|
1557
|
+
"name": "isEffectiveAt",
|
|
1558
|
+
"async": false,
|
|
1561
1559
|
"parameters": [
|
|
1562
1560
|
{
|
|
1563
|
-
"name": "
|
|
1564
|
-
"type": "
|
|
1561
|
+
"name": "at",
|
|
1562
|
+
"type": "Date",
|
|
1565
1563
|
"optional": false
|
|
1566
1564
|
}
|
|
1567
1565
|
],
|
|
1568
|
-
"returnType": "
|
|
1566
|
+
"returnType": "boolean",
|
|
1569
1567
|
"isStatic": false,
|
|
1570
1568
|
"isPublic": true
|
|
1571
1569
|
},
|
|
1572
|
-
"
|
|
1573
|
-
"name": "
|
|
1570
|
+
"save": {
|
|
1571
|
+
"name": "save",
|
|
1574
1572
|
"async": true,
|
|
1575
|
-
"parameters": [
|
|
1576
|
-
|
|
1577
|
-
"name": "executionId",
|
|
1578
|
-
"type": "string",
|
|
1579
|
-
"optional": false
|
|
1580
|
-
}
|
|
1581
|
-
],
|
|
1582
|
-
"returnType": "Promise<AgreementExecutionEvent[]>",
|
|
1573
|
+
"parameters": [],
|
|
1574
|
+
"returnType": "Promise",
|
|
1583
1575
|
"isStatic": false,
|
|
1584
1576
|
"isPublic": true
|
|
1585
1577
|
}
|
|
1586
1578
|
},
|
|
1587
|
-
"decoratorConfig": {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1579
|
+
"decoratorConfig": {
|
|
1580
|
+
"conflictColumns": [
|
|
1581
|
+
"tenant_id",
|
|
1582
|
+
"execution_id"
|
|
1583
|
+
],
|
|
1584
|
+
"api": {
|
|
1585
|
+
"include": [
|
|
1586
|
+
"list",
|
|
1587
|
+
"get"
|
|
1588
|
+
]
|
|
1589
|
+
},
|
|
1590
|
+
"mcp": {
|
|
1591
|
+
"include": [
|
|
1592
|
+
"list",
|
|
1593
|
+
"get"
|
|
1594
|
+
]
|
|
1595
|
+
},
|
|
1596
|
+
"cli": false,
|
|
1597
|
+
"tenantScoped": {
|
|
1598
|
+
"mode": "required"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"extends": "SmrtObject",
|
|
1602
|
+
"exportName": "ExecutedAgreement",
|
|
1603
|
+
"collectionExportName": "ExecutedAgreementCollection",
|
|
1604
|
+
"validationRules": [
|
|
1605
|
+
{
|
|
1606
|
+
"field": "tenantId",
|
|
1607
|
+
"rule": "required",
|
|
1608
|
+
"fieldType": "text"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"field": "executionId",
|
|
1612
|
+
"rule": "required",
|
|
1613
|
+
"fieldType": "foreignKey"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"field": "sourceKind",
|
|
1617
|
+
"rule": "required",
|
|
1618
|
+
"fieldType": "text"
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
"field": "sourceId",
|
|
1622
|
+
"rule": "required",
|
|
1623
|
+
"fieldType": "text"
|
|
1624
|
+
}
|
|
1625
|
+
],
|
|
1592
1626
|
"schema": {
|
|
1593
|
-
"tableName": "
|
|
1594
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
1627
|
+
"tableName": "executed_agreements",
|
|
1628
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"executed_agreements\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"execution_id\" UUID NOT NULL,\n \"source_kind\" TEXT NOT NULL DEFAULT '',\n \"source_id\" TEXT NOT NULL DEFAULT '',\n \"source_version\" INTEGER DEFAULT 1,\n \"source_asset_id\" UUID,\n \"source_sha256\" TEXT DEFAULT '',\n \"source_size_bytes\" INTEGER DEFAULT 0,\n \"signed_document_asset_id\" UUID,\n \"signed_document_sha256\" TEXT DEFAULT '',\n \"signed_document_size_bytes\" INTEGER DEFAULT 0,\n \"signed_document_media_type\" TEXT DEFAULT '',\n \"signed_document_filename\" TEXT DEFAULT '',\n \"audit_trail_asset_id\" UUID,\n \"audit_trail_sha256\" TEXT DEFAULT '',\n \"audit_trail_size_bytes\" INTEGER DEFAULT 0,\n \"audit_trail_media_type\" TEXT DEFAULT '',\n \"audit_trail_filename\" TEXT DEFAULT '',\n \"signer_evidence\" TEXT DEFAULT '[]',\n \"accepted_at\" TIMESTAMP,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"supersedes_executed_agreement_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}'\n);",
|
|
1595
1629
|
"columns": {
|
|
1596
1630
|
"id": {
|
|
1597
1631
|
"type": "UUID",
|
|
@@ -1617,160 +1651,204 @@
|
|
|
1617
1651
|
"type": "TIMESTAMP",
|
|
1618
1652
|
"notNull": true,
|
|
1619
1653
|
"default": "current_timestamp"
|
|
1620
|
-
}
|
|
1621
|
-
},
|
|
1622
|
-
"indexes": [
|
|
1623
|
-
{
|
|
1624
|
-
"name": "agreement_execution_event_collections_id_idx",
|
|
1625
|
-
"columns": [
|
|
1626
|
-
"id"
|
|
1627
|
-
]
|
|
1628
1654
|
},
|
|
1629
|
-
{
|
|
1630
|
-
"
|
|
1631
|
-
"
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
"
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
"
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
"
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
"type": "string",
|
|
1709
|
-
"optional": false
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
"name": "at",
|
|
1713
|
-
"type": "Date",
|
|
1714
|
-
"optional": true
|
|
1715
|
-
}
|
|
1716
|
-
],
|
|
1717
|
-
"returnType": "Promise<ExecutedAgreement | null>",
|
|
1718
|
-
"isStatic": false,
|
|
1719
|
-
"isPublic": true
|
|
1720
|
-
}
|
|
1721
|
-
},
|
|
1722
|
-
"decoratorConfig": {},
|
|
1723
|
-
"extends": "SmrtCollection",
|
|
1724
|
-
"extendsTypeArg": "ExecutedAgreement",
|
|
1725
|
-
"exportName": "ExecutedAgreementCollection",
|
|
1726
|
-
"collectionExportName": "ExecutedAgreementCollectionCollection",
|
|
1727
|
-
"schema": {
|
|
1728
|
-
"tableName": "executed_agreement_collections",
|
|
1729
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"executed_agreement_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
|
|
1730
|
-
"columns": {
|
|
1731
|
-
"id": {
|
|
1655
|
+
"tenant_id": {
|
|
1656
|
+
"type": "UUID",
|
|
1657
|
+
"referenceKind": "tenantId",
|
|
1658
|
+
"notNull": true,
|
|
1659
|
+
"unique": false
|
|
1660
|
+
},
|
|
1661
|
+
"execution_id": {
|
|
1662
|
+
"type": "UUID",
|
|
1663
|
+
"referenceKind": "foreignKey",
|
|
1664
|
+
"notNull": true,
|
|
1665
|
+
"unique": false
|
|
1666
|
+
},
|
|
1667
|
+
"source_kind": {
|
|
1668
|
+
"type": "TEXT",
|
|
1669
|
+
"notNull": true,
|
|
1670
|
+
"unique": false,
|
|
1671
|
+
"default": ""
|
|
1672
|
+
},
|
|
1673
|
+
"source_id": {
|
|
1674
|
+
"type": "TEXT",
|
|
1675
|
+
"notNull": true,
|
|
1676
|
+
"unique": false,
|
|
1677
|
+
"default": ""
|
|
1678
|
+
},
|
|
1679
|
+
"source_version": {
|
|
1680
|
+
"type": "INTEGER",
|
|
1681
|
+
"notNull": false,
|
|
1682
|
+
"unique": false,
|
|
1683
|
+
"default": 1
|
|
1684
|
+
},
|
|
1685
|
+
"source_asset_id": {
|
|
1686
|
+
"type": "UUID",
|
|
1687
|
+
"referenceKind": "crossPackageRef",
|
|
1688
|
+
"notNull": false,
|
|
1689
|
+
"unique": false
|
|
1690
|
+
},
|
|
1691
|
+
"source_sha256": {
|
|
1692
|
+
"type": "TEXT",
|
|
1693
|
+
"notNull": false,
|
|
1694
|
+
"unique": false,
|
|
1695
|
+
"default": ""
|
|
1696
|
+
},
|
|
1697
|
+
"source_size_bytes": {
|
|
1698
|
+
"type": "INTEGER",
|
|
1699
|
+
"notNull": false,
|
|
1700
|
+
"unique": false,
|
|
1701
|
+
"default": 0
|
|
1702
|
+
},
|
|
1703
|
+
"signed_document_asset_id": {
|
|
1704
|
+
"type": "UUID",
|
|
1705
|
+
"referenceKind": "crossPackageRef",
|
|
1706
|
+
"notNull": false,
|
|
1707
|
+
"unique": false
|
|
1708
|
+
},
|
|
1709
|
+
"signed_document_sha256": {
|
|
1710
|
+
"type": "TEXT",
|
|
1711
|
+
"notNull": false,
|
|
1712
|
+
"unique": false,
|
|
1713
|
+
"default": ""
|
|
1714
|
+
},
|
|
1715
|
+
"signed_document_size_bytes": {
|
|
1716
|
+
"type": "INTEGER",
|
|
1717
|
+
"notNull": false,
|
|
1718
|
+
"unique": false,
|
|
1719
|
+
"default": 0
|
|
1720
|
+
},
|
|
1721
|
+
"signed_document_media_type": {
|
|
1722
|
+
"type": "TEXT",
|
|
1723
|
+
"notNull": false,
|
|
1724
|
+
"unique": false,
|
|
1725
|
+
"default": ""
|
|
1726
|
+
},
|
|
1727
|
+
"signed_document_filename": {
|
|
1728
|
+
"type": "TEXT",
|
|
1729
|
+
"notNull": false,
|
|
1730
|
+
"unique": false,
|
|
1731
|
+
"default": ""
|
|
1732
|
+
},
|
|
1733
|
+
"audit_trail_asset_id": {
|
|
1732
1734
|
"type": "UUID",
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1735
|
-
"
|
|
1735
|
+
"referenceKind": "crossPackageRef",
|
|
1736
|
+
"notNull": false,
|
|
1737
|
+
"unique": false
|
|
1736
1738
|
},
|
|
1737
|
-
"
|
|
1739
|
+
"audit_trail_sha256": {
|
|
1738
1740
|
"type": "TEXT",
|
|
1739
|
-
"notNull":
|
|
1741
|
+
"notNull": false,
|
|
1742
|
+
"unique": false,
|
|
1743
|
+
"default": ""
|
|
1740
1744
|
},
|
|
1741
|
-
"
|
|
1745
|
+
"audit_trail_size_bytes": {
|
|
1746
|
+
"type": "INTEGER",
|
|
1747
|
+
"notNull": false,
|
|
1748
|
+
"unique": false,
|
|
1749
|
+
"default": 0
|
|
1750
|
+
},
|
|
1751
|
+
"audit_trail_media_type": {
|
|
1742
1752
|
"type": "TEXT",
|
|
1743
|
-
"notNull":
|
|
1753
|
+
"notNull": false,
|
|
1754
|
+
"unique": false,
|
|
1744
1755
|
"default": ""
|
|
1745
1756
|
},
|
|
1746
|
-
"
|
|
1757
|
+
"audit_trail_filename": {
|
|
1758
|
+
"type": "TEXT",
|
|
1759
|
+
"notNull": false,
|
|
1760
|
+
"unique": false,
|
|
1761
|
+
"default": ""
|
|
1762
|
+
},
|
|
1763
|
+
"signer_evidence": {
|
|
1764
|
+
"type": "TEXT",
|
|
1765
|
+
"notNull": false,
|
|
1766
|
+
"unique": false,
|
|
1767
|
+
"default": "[]"
|
|
1768
|
+
},
|
|
1769
|
+
"accepted_at": {
|
|
1747
1770
|
"type": "TIMESTAMP",
|
|
1748
|
-
"notNull":
|
|
1749
|
-
"
|
|
1771
|
+
"notNull": false,
|
|
1772
|
+
"unique": false
|
|
1750
1773
|
},
|
|
1751
|
-
"
|
|
1774
|
+
"effective_from": {
|
|
1752
1775
|
"type": "TIMESTAMP",
|
|
1753
|
-
"notNull":
|
|
1754
|
-
"
|
|
1776
|
+
"notNull": false,
|
|
1777
|
+
"unique": false
|
|
1778
|
+
},
|
|
1779
|
+
"effective_to": {
|
|
1780
|
+
"type": "TIMESTAMP",
|
|
1781
|
+
"notNull": false,
|
|
1782
|
+
"unique": false
|
|
1783
|
+
},
|
|
1784
|
+
"supersedes_executed_agreement_id": {
|
|
1785
|
+
"type": "UUID",
|
|
1786
|
+
"referenceKind": "foreignKey",
|
|
1787
|
+
"notNull": false,
|
|
1788
|
+
"unique": false
|
|
1789
|
+
},
|
|
1790
|
+
"metadata": {
|
|
1791
|
+
"type": "TEXT",
|
|
1792
|
+
"notNull": false,
|
|
1793
|
+
"unique": false,
|
|
1794
|
+
"default": "{}"
|
|
1755
1795
|
}
|
|
1756
1796
|
},
|
|
1757
1797
|
"indexes": [
|
|
1758
1798
|
{
|
|
1759
|
-
"name": "
|
|
1799
|
+
"name": "executed_agreements_tenant_id_execution_id_idx",
|
|
1760
1800
|
"columns": [
|
|
1761
|
-
"
|
|
1762
|
-
|
|
1801
|
+
"tenant_id",
|
|
1802
|
+
"execution_id"
|
|
1803
|
+
],
|
|
1804
|
+
"unique": true
|
|
1763
1805
|
},
|
|
1764
1806
|
{
|
|
1765
|
-
"name": "
|
|
1807
|
+
"name": "executed_agreements_slug_context_idx",
|
|
1766
1808
|
"columns": [
|
|
1767
1809
|
"slug",
|
|
1768
1810
|
"context"
|
|
1769
|
-
]
|
|
1770
|
-
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "executed_agreements_tenant_id_created_at_idx",
|
|
1815
|
+
"columns": [
|
|
1816
|
+
"tenant_id",
|
|
1817
|
+
"created_at"
|
|
1818
|
+
]
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"name": "executed_agreements_execution_id_idx",
|
|
1822
|
+
"columns": [
|
|
1823
|
+
"execution_id"
|
|
1824
|
+
]
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "executed_agreements_source_asset_id_idx",
|
|
1828
|
+
"columns": [
|
|
1829
|
+
"source_asset_id"
|
|
1830
|
+
]
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"name": "executed_agreements_signed_document_asset_id_idx",
|
|
1834
|
+
"columns": [
|
|
1835
|
+
"signed_document_asset_id"
|
|
1836
|
+
]
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"name": "executed_agreements_audit_trail_asset_id_idx",
|
|
1840
|
+
"columns": [
|
|
1841
|
+
"audit_trail_asset_id"
|
|
1842
|
+
]
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
"name": "executed_agreements_supersedes_executed_agreement_id_idx",
|
|
1846
|
+
"columns": [
|
|
1847
|
+
"supersedes_executed_agreement_id"
|
|
1848
|
+
]
|
|
1771
1849
|
}
|
|
1772
1850
|
],
|
|
1773
|
-
"version": "
|
|
1851
|
+
"version": "9b84eda8"
|
|
1774
1852
|
}
|
|
1775
1853
|
},
|
|
1776
1854
|
"@happyvertical/smrt-sales:CommissionAdjustmentCollection": {
|
|
@@ -1918,12 +1996,6 @@
|
|
|
1918
1996
|
}
|
|
1919
1997
|
},
|
|
1920
1998
|
"indexes": [
|
|
1921
|
-
{
|
|
1922
|
-
"name": "commission_adjustment_collections_id_idx",
|
|
1923
|
-
"columns": [
|
|
1924
|
-
"id"
|
|
1925
|
-
]
|
|
1926
|
-
},
|
|
1927
1999
|
{
|
|
1928
2000
|
"name": "commission_adjustment_collections_slug_context_idx",
|
|
1929
2001
|
"columns": [
|
|
@@ -1931,6 +2003,12 @@
|
|
|
1931
2003
|
"context"
|
|
1932
2004
|
],
|
|
1933
2005
|
"unique": true
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"name": "commission_adjustment_collections_created_at_idx",
|
|
2009
|
+
"columns": [
|
|
2010
|
+
"created_at"
|
|
2011
|
+
]
|
|
1934
2012
|
}
|
|
1935
2013
|
],
|
|
1936
2014
|
"version": "1739b6be"
|
|
@@ -2010,12 +2088,6 @@
|
|
|
2010
2088
|
}
|
|
2011
2089
|
},
|
|
2012
2090
|
"indexes": [
|
|
2013
|
-
{
|
|
2014
|
-
"name": "commission_adjustment_operation_collections_id_idx",
|
|
2015
|
-
"columns": [
|
|
2016
|
-
"id"
|
|
2017
|
-
]
|
|
2018
|
-
},
|
|
2019
2091
|
{
|
|
2020
2092
|
"name": "commission_adjustment_operation_collections_slug_context_idx",
|
|
2021
2093
|
"columns": [
|
|
@@ -2023,6 +2095,12 @@
|
|
|
2023
2095
|
"context"
|
|
2024
2096
|
],
|
|
2025
2097
|
"unique": true
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
"name": "commission_adjustment_operation_collections_created_at_idx",
|
|
2101
|
+
"columns": [
|
|
2102
|
+
"created_at"
|
|
2103
|
+
]
|
|
2026
2104
|
}
|
|
2027
2105
|
],
|
|
2028
2106
|
"version": "b5449b28"
|
|
@@ -2220,12 +2298,6 @@
|
|
|
2220
2298
|
}
|
|
2221
2299
|
},
|
|
2222
2300
|
"indexes": [
|
|
2223
|
-
{
|
|
2224
|
-
"name": "commission_collections_id_idx",
|
|
2225
|
-
"columns": [
|
|
2226
|
-
"id"
|
|
2227
|
-
]
|
|
2228
|
-
},
|
|
2229
2301
|
{
|
|
2230
2302
|
"name": "commission_collections_slug_context_idx",
|
|
2231
2303
|
"columns": [
|
|
@@ -2233,6 +2305,12 @@
|
|
|
2233
2305
|
"context"
|
|
2234
2306
|
],
|
|
2235
2307
|
"unique": true
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"name": "commission_collections_created_at_idx",
|
|
2311
|
+
"columns": [
|
|
2312
|
+
"created_at"
|
|
2313
|
+
]
|
|
2236
2314
|
}
|
|
2237
2315
|
],
|
|
2238
2316
|
"version": "7ea864a7"
|
|
@@ -2369,12 +2447,6 @@
|
|
|
2369
2447
|
}
|
|
2370
2448
|
},
|
|
2371
2449
|
"indexes": [
|
|
2372
|
-
{
|
|
2373
|
-
"name": "commission_payout_collections_id_idx",
|
|
2374
|
-
"columns": [
|
|
2375
|
-
"id"
|
|
2376
|
-
]
|
|
2377
|
-
},
|
|
2378
2450
|
{
|
|
2379
2451
|
"name": "commission_payout_collections_slug_context_idx",
|
|
2380
2452
|
"columns": [
|
|
@@ -2382,6 +2454,12 @@
|
|
|
2382
2454
|
"context"
|
|
2383
2455
|
],
|
|
2384
2456
|
"unique": true
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"name": "commission_payout_collections_created_at_idx",
|
|
2460
|
+
"columns": [
|
|
2461
|
+
"created_at"
|
|
2462
|
+
]
|
|
2385
2463
|
}
|
|
2386
2464
|
],
|
|
2387
2465
|
"version": "38629400"
|
|
@@ -2504,12 +2582,6 @@
|
|
|
2504
2582
|
}
|
|
2505
2583
|
},
|
|
2506
2584
|
"indexes": [
|
|
2507
|
-
{
|
|
2508
|
-
"name": "commission_plan_collections_id_idx",
|
|
2509
|
-
"columns": [
|
|
2510
|
-
"id"
|
|
2511
|
-
]
|
|
2512
|
-
},
|
|
2513
2585
|
{
|
|
2514
2586
|
"name": "commission_plan_collections_slug_context_idx",
|
|
2515
2587
|
"columns": [
|
|
@@ -2517,6 +2589,12 @@
|
|
|
2517
2589
|
"context"
|
|
2518
2590
|
],
|
|
2519
2591
|
"unique": true
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"name": "commission_plan_collections_created_at_idx",
|
|
2595
|
+
"columns": [
|
|
2596
|
+
"created_at"
|
|
2597
|
+
]
|
|
2520
2598
|
}
|
|
2521
2599
|
],
|
|
2522
2600
|
"version": "22d7b2a6"
|
|
@@ -2604,12 +2682,6 @@
|
|
|
2604
2682
|
}
|
|
2605
2683
|
},
|
|
2606
2684
|
"indexes": [
|
|
2607
|
-
{
|
|
2608
|
-
"name": "earner_collections_id_idx",
|
|
2609
|
-
"columns": [
|
|
2610
|
-
"id"
|
|
2611
|
-
]
|
|
2612
|
-
},
|
|
2613
2685
|
{
|
|
2614
2686
|
"name": "earner_collections_slug_context_idx",
|
|
2615
2687
|
"columns": [
|
|
@@ -2617,6 +2689,12 @@
|
|
|
2617
2689
|
"context"
|
|
2618
2690
|
],
|
|
2619
2691
|
"unique": true
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
"name": "earner_collections_created_at_idx",
|
|
2695
|
+
"columns": [
|
|
2696
|
+
"created_at"
|
|
2697
|
+
]
|
|
2620
2698
|
}
|
|
2621
2699
|
],
|
|
2622
2700
|
"version": "dde199e5"
|
|
@@ -2720,12 +2798,6 @@
|
|
|
2720
2798
|
}
|
|
2721
2799
|
},
|
|
2722
2800
|
"indexes": [
|
|
2723
|
-
{
|
|
2724
|
-
"name": "earner_source_attribution_collections_id_idx",
|
|
2725
|
-
"columns": [
|
|
2726
|
-
"id"
|
|
2727
|
-
]
|
|
2728
|
-
},
|
|
2729
2801
|
{
|
|
2730
2802
|
"name": "earner_source_attribution_collections_slug_context_idx",
|
|
2731
2803
|
"columns": [
|
|
@@ -2733,6 +2805,12 @@
|
|
|
2733
2805
|
"context"
|
|
2734
2806
|
],
|
|
2735
2807
|
"unique": true
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"name": "earner_source_attribution_collections_created_at_idx",
|
|
2811
|
+
"columns": [
|
|
2812
|
+
"created_at"
|
|
2813
|
+
]
|
|
2736
2814
|
}
|
|
2737
2815
|
],
|
|
2738
2816
|
"version": "df30bdeb"
|
|
@@ -2845,12 +2923,6 @@
|
|
|
2845
2923
|
}
|
|
2846
2924
|
},
|
|
2847
2925
|
"indexes": [
|
|
2848
|
-
{
|
|
2849
|
-
"name": "earning_event_collections_id_idx",
|
|
2850
|
-
"columns": [
|
|
2851
|
-
"id"
|
|
2852
|
-
]
|
|
2853
|
-
},
|
|
2854
2926
|
{
|
|
2855
2927
|
"name": "earning_event_collections_slug_context_idx",
|
|
2856
2928
|
"columns": [
|
|
@@ -2858,6 +2930,12 @@
|
|
|
2858
2930
|
"context"
|
|
2859
2931
|
],
|
|
2860
2932
|
"unique": true
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"name": "earning_event_collections_created_at_idx",
|
|
2936
|
+
"columns": [
|
|
2937
|
+
"created_at"
|
|
2938
|
+
]
|
|
2861
2939
|
}
|
|
2862
2940
|
],
|
|
2863
2941
|
"version": "bce0b6e2"
|
|
@@ -3412,12 +3490,6 @@
|
|
|
3412
3490
|
}
|
|
3413
3491
|
},
|
|
3414
3492
|
"indexes": [
|
|
3415
|
-
{
|
|
3416
|
-
"name": "commissions_id_idx",
|
|
3417
|
-
"columns": [
|
|
3418
|
-
"id"
|
|
3419
|
-
]
|
|
3420
|
-
},
|
|
3421
3493
|
{
|
|
3422
3494
|
"name": "commissions_dedupe_key_idx",
|
|
3423
3495
|
"columns": [
|
|
@@ -3426,9 +3498,35 @@
|
|
|
3426
3498
|
"unique": true
|
|
3427
3499
|
},
|
|
3428
3500
|
{
|
|
3429
|
-
"name": "
|
|
3501
|
+
"name": "commissions_slug_context_idx",
|
|
3502
|
+
"columns": [
|
|
3503
|
+
"slug",
|
|
3504
|
+
"context"
|
|
3505
|
+
]
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
"name": "commissions_tenant_id_created_at_idx",
|
|
3509
|
+
"columns": [
|
|
3510
|
+
"tenant_id",
|
|
3511
|
+
"created_at"
|
|
3512
|
+
]
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"name": "commissions_earner_id_idx",
|
|
3516
|
+
"columns": [
|
|
3517
|
+
"earner_id"
|
|
3518
|
+
]
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"name": "commissions_earning_event_id_idx",
|
|
3522
|
+
"columns": [
|
|
3523
|
+
"earning_event_id"
|
|
3524
|
+
]
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
"name": "commissions_payout_id_idx",
|
|
3430
3528
|
"columns": [
|
|
3431
|
-
"
|
|
3529
|
+
"payout_id"
|
|
3432
3530
|
]
|
|
3433
3531
|
}
|
|
3434
3532
|
],
|
|
@@ -3581,7 +3679,12 @@
|
|
|
3581
3679
|
"cli": false,
|
|
3582
3680
|
"tenantScoped": {
|
|
3583
3681
|
"mode": "optional"
|
|
3584
|
-
}
|
|
3682
|
+
},
|
|
3683
|
+
"conflictColumns": [
|
|
3684
|
+
"tenant_id",
|
|
3685
|
+
"slug",
|
|
3686
|
+
"context"
|
|
3687
|
+
]
|
|
3585
3688
|
},
|
|
3586
3689
|
"extends": "SmrtObject",
|
|
3587
3690
|
"exportName": "CommissionAdjustment",
|
|
@@ -3694,24 +3797,44 @@
|
|
|
3694
3797
|
}
|
|
3695
3798
|
},
|
|
3696
3799
|
"indexes": [
|
|
3697
|
-
{
|
|
3698
|
-
"name": "commission_adjustments_id_idx",
|
|
3699
|
-
"columns": [
|
|
3700
|
-
"id"
|
|
3701
|
-
]
|
|
3702
|
-
},
|
|
3703
3800
|
{
|
|
3704
3801
|
"name": "commission_adjustments_slug_context_idx",
|
|
3705
3802
|
"columns": [
|
|
3803
|
+
"tenant_id",
|
|
3706
3804
|
"slug",
|
|
3707
3805
|
"context"
|
|
3708
3806
|
],
|
|
3709
3807
|
"unique": true
|
|
3710
3808
|
},
|
|
3711
3809
|
{
|
|
3712
|
-
"name": "
|
|
3810
|
+
"name": "commission_adjustments_tenant_id_created_at_idx",
|
|
3811
|
+
"columns": [
|
|
3812
|
+
"tenant_id",
|
|
3813
|
+
"created_at"
|
|
3814
|
+
]
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
"name": "commission_adjustments_commission_id_idx",
|
|
3818
|
+
"columns": [
|
|
3819
|
+
"commission_id"
|
|
3820
|
+
]
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
"name": "commission_adjustments_earner_id_idx",
|
|
3824
|
+
"columns": [
|
|
3825
|
+
"earner_id"
|
|
3826
|
+
]
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
"name": "commission_adjustments_created_by_profile_id_idx",
|
|
3830
|
+
"columns": [
|
|
3831
|
+
"created_by_profile_id"
|
|
3832
|
+
]
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
"name": "commission_adjustments_payout_id_idx",
|
|
3713
3836
|
"columns": [
|
|
3714
|
-
"
|
|
3837
|
+
"payout_id"
|
|
3715
3838
|
]
|
|
3716
3839
|
}
|
|
3717
3840
|
],
|
|
@@ -3762,7 +3885,12 @@
|
|
|
3762
3885
|
"cli": false,
|
|
3763
3886
|
"tenantScoped": {
|
|
3764
3887
|
"mode": "required"
|
|
3765
|
-
}
|
|
3888
|
+
},
|
|
3889
|
+
"conflictColumns": [
|
|
3890
|
+
"tenant_id",
|
|
3891
|
+
"slug",
|
|
3892
|
+
"context"
|
|
3893
|
+
]
|
|
3766
3894
|
},
|
|
3767
3895
|
"extends": "SmrtObject",
|
|
3768
3896
|
"exportName": "CommissionAdjustmentOperation",
|
|
@@ -3821,15 +3949,10 @@
|
|
|
3821
3949
|
}
|
|
3822
3950
|
},
|
|
3823
3951
|
"indexes": [
|
|
3824
|
-
{
|
|
3825
|
-
"name": "commission_adjustment_operations_id_idx",
|
|
3826
|
-
"columns": [
|
|
3827
|
-
"id"
|
|
3828
|
-
]
|
|
3829
|
-
},
|
|
3830
3952
|
{
|
|
3831
3953
|
"name": "commission_adjustment_operations_slug_context_idx",
|
|
3832
3954
|
"columns": [
|
|
3955
|
+
"tenant_id",
|
|
3833
3956
|
"slug",
|
|
3834
3957
|
"context"
|
|
3835
3958
|
],
|
|
@@ -3842,9 +3965,10 @@
|
|
|
3842
3965
|
]
|
|
3843
3966
|
},
|
|
3844
3967
|
{
|
|
3845
|
-
"name": "
|
|
3968
|
+
"name": "commission_adjustment_operations_tenant_id_created_at_idx",
|
|
3846
3969
|
"columns": [
|
|
3847
|
-
"tenant_id"
|
|
3970
|
+
"tenant_id",
|
|
3971
|
+
"created_at"
|
|
3848
3972
|
]
|
|
3849
3973
|
}
|
|
3850
3974
|
],
|
|
@@ -4321,15 +4445,9 @@
|
|
|
4321
4445
|
"notNull": false,
|
|
4322
4446
|
"unique": false,
|
|
4323
4447
|
"default": "{}"
|
|
4324
|
-
}
|
|
4325
|
-
},
|
|
4326
|
-
"indexes": [
|
|
4327
|
-
{
|
|
4328
|
-
"name": "commission_payouts_id_idx",
|
|
4329
|
-
"columns": [
|
|
4330
|
-
"id"
|
|
4331
|
-
]
|
|
4332
|
-
},
|
|
4448
|
+
}
|
|
4449
|
+
},
|
|
4450
|
+
"indexes": [
|
|
4333
4451
|
{
|
|
4334
4452
|
"name": "commission_payouts_idempotency_key_idx",
|
|
4335
4453
|
"columns": [
|
|
@@ -4337,6 +4455,13 @@
|
|
|
4337
4455
|
],
|
|
4338
4456
|
"unique": true
|
|
4339
4457
|
},
|
|
4458
|
+
{
|
|
4459
|
+
"name": "commission_payouts_slug_context_idx",
|
|
4460
|
+
"columns": [
|
|
4461
|
+
"slug",
|
|
4462
|
+
"context"
|
|
4463
|
+
]
|
|
4464
|
+
},
|
|
4340
4465
|
{
|
|
4341
4466
|
"name": "commission_payouts_source_id_idx",
|
|
4342
4467
|
"columns": [
|
|
@@ -4344,9 +4469,22 @@
|
|
|
4344
4469
|
]
|
|
4345
4470
|
},
|
|
4346
4471
|
{
|
|
4347
|
-
"name": "
|
|
4472
|
+
"name": "commission_payouts_tenant_id_created_at_idx",
|
|
4473
|
+
"columns": [
|
|
4474
|
+
"tenant_id",
|
|
4475
|
+
"created_at"
|
|
4476
|
+
]
|
|
4477
|
+
},
|
|
4478
|
+
{
|
|
4479
|
+
"name": "commission_payouts_earner_id_idx",
|
|
4480
|
+
"columns": [
|
|
4481
|
+
"earner_id"
|
|
4482
|
+
]
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
"name": "commission_payouts_invoice_id_idx",
|
|
4348
4486
|
"columns": [
|
|
4349
|
-
"
|
|
4487
|
+
"invoice_id"
|
|
4350
4488
|
]
|
|
4351
4489
|
}
|
|
4352
4490
|
],
|
|
@@ -4653,12 +4791,6 @@
|
|
|
4653
4791
|
}
|
|
4654
4792
|
},
|
|
4655
4793
|
"indexes": [
|
|
4656
|
-
{
|
|
4657
|
-
"name": "commission_plans_id_idx",
|
|
4658
|
-
"columns": [
|
|
4659
|
-
"id"
|
|
4660
|
-
]
|
|
4661
|
-
},
|
|
4662
4794
|
{
|
|
4663
4795
|
"name": "commission_plans_tenant_id_plan_key_idx",
|
|
4664
4796
|
"columns": [
|
|
@@ -4667,6 +4799,20 @@
|
|
|
4667
4799
|
"version"
|
|
4668
4800
|
],
|
|
4669
4801
|
"unique": true
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
"name": "commission_plans_slug_context_idx",
|
|
4805
|
+
"columns": [
|
|
4806
|
+
"slug",
|
|
4807
|
+
"context"
|
|
4808
|
+
]
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
"name": "commission_plans_tenant_id_created_at_idx",
|
|
4812
|
+
"columns": [
|
|
4813
|
+
"tenant_id",
|
|
4814
|
+
"created_at"
|
|
4815
|
+
]
|
|
4670
4816
|
}
|
|
4671
4817
|
],
|
|
4672
4818
|
"version": "19b92dec"
|
|
@@ -4806,7 +4952,12 @@
|
|
|
4806
4952
|
"cli": true,
|
|
4807
4953
|
"tenantScoped": {
|
|
4808
4954
|
"mode": "optional"
|
|
4809
|
-
}
|
|
4955
|
+
},
|
|
4956
|
+
"conflictColumns": [
|
|
4957
|
+
"tenant_id",
|
|
4958
|
+
"slug",
|
|
4959
|
+
"context"
|
|
4960
|
+
]
|
|
4810
4961
|
},
|
|
4811
4962
|
"extends": "SmrtObject",
|
|
4812
4963
|
"exportName": "Earner",
|
|
@@ -4896,24 +5047,26 @@
|
|
|
4896
5047
|
}
|
|
4897
5048
|
},
|
|
4898
5049
|
"indexes": [
|
|
4899
|
-
{
|
|
4900
|
-
"name": "earners_id_idx",
|
|
4901
|
-
"columns": [
|
|
4902
|
-
"id"
|
|
4903
|
-
]
|
|
4904
|
-
},
|
|
4905
5050
|
{
|
|
4906
5051
|
"name": "earners_slug_context_idx",
|
|
4907
5052
|
"columns": [
|
|
5053
|
+
"tenant_id",
|
|
4908
5054
|
"slug",
|
|
4909
5055
|
"context"
|
|
4910
5056
|
],
|
|
4911
5057
|
"unique": true
|
|
4912
5058
|
},
|
|
4913
5059
|
{
|
|
4914
|
-
"name": "
|
|
5060
|
+
"name": "earners_tenant_id_created_at_idx",
|
|
5061
|
+
"columns": [
|
|
5062
|
+
"tenant_id",
|
|
5063
|
+
"created_at"
|
|
5064
|
+
]
|
|
5065
|
+
},
|
|
5066
|
+
{
|
|
5067
|
+
"name": "earners_profile_id_idx",
|
|
4915
5068
|
"columns": [
|
|
4916
|
-
"
|
|
5069
|
+
"profile_id"
|
|
4917
5070
|
]
|
|
4918
5071
|
}
|
|
4919
5072
|
],
|
|
@@ -5142,12 +5295,6 @@
|
|
|
5142
5295
|
}
|
|
5143
5296
|
},
|
|
5144
5297
|
"indexes": [
|
|
5145
|
-
{
|
|
5146
|
-
"name": "earner_source_attributions_id_idx",
|
|
5147
|
-
"columns": [
|
|
5148
|
-
"id"
|
|
5149
|
-
]
|
|
5150
|
-
},
|
|
5151
5298
|
{
|
|
5152
5299
|
"name": "earner_source_attributions_tenant_id_source_kind_idx",
|
|
5153
5300
|
"columns": [
|
|
@@ -5157,11 +5304,31 @@
|
|
|
5157
5304
|
],
|
|
5158
5305
|
"unique": true
|
|
5159
5306
|
},
|
|
5307
|
+
{
|
|
5308
|
+
"name": "earner_source_attributions_slug_context_idx",
|
|
5309
|
+
"columns": [
|
|
5310
|
+
"slug",
|
|
5311
|
+
"context"
|
|
5312
|
+
]
|
|
5313
|
+
},
|
|
5160
5314
|
{
|
|
5161
5315
|
"name": "earner_source_attributions_source_id_idx",
|
|
5162
5316
|
"columns": [
|
|
5163
5317
|
"source_id"
|
|
5164
5318
|
]
|
|
5319
|
+
},
|
|
5320
|
+
{
|
|
5321
|
+
"name": "earner_source_attributions_tenant_id_created_at_idx",
|
|
5322
|
+
"columns": [
|
|
5323
|
+
"tenant_id",
|
|
5324
|
+
"created_at"
|
|
5325
|
+
]
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
"name": "earner_source_attributions_earner_id_idx",
|
|
5329
|
+
"columns": [
|
|
5330
|
+
"earner_id"
|
|
5331
|
+
]
|
|
5165
5332
|
}
|
|
5166
5333
|
],
|
|
5167
5334
|
"version": "cf23ab97"
|
|
@@ -5457,12 +5624,6 @@
|
|
|
5457
5624
|
}
|
|
5458
5625
|
},
|
|
5459
5626
|
"indexes": [
|
|
5460
|
-
{
|
|
5461
|
-
"name": "earning_events_id_idx",
|
|
5462
|
-
"columns": [
|
|
5463
|
-
"id"
|
|
5464
|
-
]
|
|
5465
|
-
},
|
|
5466
5627
|
{
|
|
5467
5628
|
"name": "earning_events_dedupe_key_idx",
|
|
5468
5629
|
"columns": [
|
|
@@ -5471,9 +5632,17 @@
|
|
|
5471
5632
|
"unique": true
|
|
5472
5633
|
},
|
|
5473
5634
|
{
|
|
5474
|
-
"name": "
|
|
5635
|
+
"name": "earning_events_slug_context_idx",
|
|
5636
|
+
"columns": [
|
|
5637
|
+
"slug",
|
|
5638
|
+
"context"
|
|
5639
|
+
]
|
|
5640
|
+
},
|
|
5641
|
+
{
|
|
5642
|
+
"name": "earning_events_tenant_id_created_at_idx",
|
|
5475
5643
|
"columns": [
|
|
5476
|
-
"tenant_id"
|
|
5644
|
+
"tenant_id",
|
|
5645
|
+
"created_at"
|
|
5477
5646
|
]
|
|
5478
5647
|
}
|
|
5479
5648
|
],
|
|
@@ -5596,12 +5765,6 @@
|
|
|
5596
5765
|
}
|
|
5597
5766
|
},
|
|
5598
5767
|
"indexes": [
|
|
5599
|
-
{
|
|
5600
|
-
"name": "lead_collections_id_idx",
|
|
5601
|
-
"columns": [
|
|
5602
|
-
"id"
|
|
5603
|
-
]
|
|
5604
|
-
},
|
|
5605
5768
|
{
|
|
5606
5769
|
"name": "lead_collections_slug_context_idx",
|
|
5607
5770
|
"columns": [
|
|
@@ -5609,6 +5772,12 @@
|
|
|
5609
5772
|
"context"
|
|
5610
5773
|
],
|
|
5611
5774
|
"unique": true
|
|
5775
|
+
},
|
|
5776
|
+
{
|
|
5777
|
+
"name": "lead_collections_created_at_idx",
|
|
5778
|
+
"columns": [
|
|
5779
|
+
"created_at"
|
|
5780
|
+
]
|
|
5612
5781
|
}
|
|
5613
5782
|
],
|
|
5614
5783
|
"version": "0707eb13"
|
|
@@ -5702,12 +5871,6 @@
|
|
|
5702
5871
|
}
|
|
5703
5872
|
},
|
|
5704
5873
|
"indexes": [
|
|
5705
|
-
{
|
|
5706
|
-
"name": "opportunity_collections_id_idx",
|
|
5707
|
-
"columns": [
|
|
5708
|
-
"id"
|
|
5709
|
-
]
|
|
5710
|
-
},
|
|
5711
5874
|
{
|
|
5712
5875
|
"name": "opportunity_collections_slug_context_idx",
|
|
5713
5876
|
"columns": [
|
|
@@ -5715,6 +5878,12 @@
|
|
|
5715
5878
|
"context"
|
|
5716
5879
|
],
|
|
5717
5880
|
"unique": true
|
|
5881
|
+
},
|
|
5882
|
+
{
|
|
5883
|
+
"name": "opportunity_collections_created_at_idx",
|
|
5884
|
+
"columns": [
|
|
5885
|
+
"created_at"
|
|
5886
|
+
]
|
|
5718
5887
|
}
|
|
5719
5888
|
],
|
|
5720
5889
|
"version": "ebcdf63b"
|
|
@@ -5794,12 +5963,6 @@
|
|
|
5794
5963
|
}
|
|
5795
5964
|
},
|
|
5796
5965
|
"indexes": [
|
|
5797
|
-
{
|
|
5798
|
-
"name": "opportunity_conversion_collections_id_idx",
|
|
5799
|
-
"columns": [
|
|
5800
|
-
"id"
|
|
5801
|
-
]
|
|
5802
|
-
},
|
|
5803
5966
|
{
|
|
5804
5967
|
"name": "opportunity_conversion_collections_slug_context_idx",
|
|
5805
5968
|
"columns": [
|
|
@@ -5807,6 +5970,12 @@
|
|
|
5807
5970
|
"context"
|
|
5808
5971
|
],
|
|
5809
5972
|
"unique": true
|
|
5973
|
+
},
|
|
5974
|
+
{
|
|
5975
|
+
"name": "opportunity_conversion_collections_created_at_idx",
|
|
5976
|
+
"columns": [
|
|
5977
|
+
"created_at"
|
|
5978
|
+
]
|
|
5810
5979
|
}
|
|
5811
5980
|
],
|
|
5812
5981
|
"version": "7e30ff1b"
|
|
@@ -5908,12 +6077,6 @@
|
|
|
5908
6077
|
}
|
|
5909
6078
|
},
|
|
5910
6079
|
"indexes": [
|
|
5911
|
-
{
|
|
5912
|
-
"name": "pipeline_definition_collections_id_idx",
|
|
5913
|
-
"columns": [
|
|
5914
|
-
"id"
|
|
5915
|
-
]
|
|
5916
|
-
},
|
|
5917
6080
|
{
|
|
5918
6081
|
"name": "pipeline_definition_collections_slug_context_idx",
|
|
5919
6082
|
"columns": [
|
|
@@ -5921,6 +6084,12 @@
|
|
|
5921
6084
|
"context"
|
|
5922
6085
|
],
|
|
5923
6086
|
"unique": true
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
"name": "pipeline_definition_collections_created_at_idx",
|
|
6090
|
+
"columns": [
|
|
6091
|
+
"created_at"
|
|
6092
|
+
]
|
|
5924
6093
|
}
|
|
5925
6094
|
],
|
|
5926
6095
|
"version": "f85d1436"
|
|
@@ -6005,12 +6174,6 @@
|
|
|
6005
6174
|
}
|
|
6006
6175
|
},
|
|
6007
6176
|
"indexes": [
|
|
6008
|
-
{
|
|
6009
|
-
"name": "pipeline_stage_collections_id_idx",
|
|
6010
|
-
"columns": [
|
|
6011
|
-
"id"
|
|
6012
|
-
]
|
|
6013
|
-
},
|
|
6014
6177
|
{
|
|
6015
6178
|
"name": "pipeline_stage_collections_slug_context_idx",
|
|
6016
6179
|
"columns": [
|
|
@@ -6018,6 +6181,12 @@
|
|
|
6018
6181
|
"context"
|
|
6019
6182
|
],
|
|
6020
6183
|
"unique": true
|
|
6184
|
+
},
|
|
6185
|
+
{
|
|
6186
|
+
"name": "pipeline_stage_collections_created_at_idx",
|
|
6187
|
+
"columns": [
|
|
6188
|
+
"created_at"
|
|
6189
|
+
]
|
|
6021
6190
|
}
|
|
6022
6191
|
],
|
|
6023
6192
|
"version": "72c2d7b3"
|
|
@@ -6107,12 +6276,6 @@
|
|
|
6107
6276
|
}
|
|
6108
6277
|
},
|
|
6109
6278
|
"indexes": [
|
|
6110
|
-
{
|
|
6111
|
-
"name": "sales_activity_collections_id_idx",
|
|
6112
|
-
"columns": [
|
|
6113
|
-
"id"
|
|
6114
|
-
]
|
|
6115
|
-
},
|
|
6116
6279
|
{
|
|
6117
6280
|
"name": "sales_activity_collections_slug_context_idx",
|
|
6118
6281
|
"columns": [
|
|
@@ -6120,6 +6283,12 @@
|
|
|
6120
6283
|
"context"
|
|
6121
6284
|
],
|
|
6122
6285
|
"unique": true
|
|
6286
|
+
},
|
|
6287
|
+
{
|
|
6288
|
+
"name": "sales_activity_collections_created_at_idx",
|
|
6289
|
+
"columns": [
|
|
6290
|
+
"created_at"
|
|
6291
|
+
]
|
|
6123
6292
|
}
|
|
6124
6293
|
],
|
|
6125
6294
|
"version": "766a0235"
|
|
@@ -6193,12 +6362,6 @@
|
|
|
6193
6362
|
}
|
|
6194
6363
|
},
|
|
6195
6364
|
"indexes": [
|
|
6196
|
-
{
|
|
6197
|
-
"name": "sales_representative_collections_id_idx",
|
|
6198
|
-
"columns": [
|
|
6199
|
-
"id"
|
|
6200
|
-
]
|
|
6201
|
-
},
|
|
6202
6365
|
{
|
|
6203
6366
|
"name": "sales_representative_collections_slug_context_idx",
|
|
6204
6367
|
"columns": [
|
|
@@ -6206,6 +6369,12 @@
|
|
|
6206
6369
|
"context"
|
|
6207
6370
|
],
|
|
6208
6371
|
"unique": true
|
|
6372
|
+
},
|
|
6373
|
+
{
|
|
6374
|
+
"name": "sales_representative_collections_created_at_idx",
|
|
6375
|
+
"columns": [
|
|
6376
|
+
"created_at"
|
|
6377
|
+
]
|
|
6209
6378
|
}
|
|
6210
6379
|
],
|
|
6211
6380
|
"version": "6613c45d"
|
|
@@ -6412,7 +6581,12 @@
|
|
|
6412
6581
|
"cli": true,
|
|
6413
6582
|
"tenantScoped": {
|
|
6414
6583
|
"mode": "optional"
|
|
6415
|
-
}
|
|
6584
|
+
},
|
|
6585
|
+
"conflictColumns": [
|
|
6586
|
+
"tenant_id",
|
|
6587
|
+
"slug",
|
|
6588
|
+
"context"
|
|
6589
|
+
]
|
|
6416
6590
|
},
|
|
6417
6591
|
"extends": "SmrtObject",
|
|
6418
6592
|
"exportName": "Lead",
|
|
@@ -6550,24 +6724,38 @@
|
|
|
6550
6724
|
}
|
|
6551
6725
|
},
|
|
6552
6726
|
"indexes": [
|
|
6553
|
-
{
|
|
6554
|
-
"name": "leads_id_idx",
|
|
6555
|
-
"columns": [
|
|
6556
|
-
"id"
|
|
6557
|
-
]
|
|
6558
|
-
},
|
|
6559
6727
|
{
|
|
6560
6728
|
"name": "leads_slug_context_idx",
|
|
6561
6729
|
"columns": [
|
|
6730
|
+
"tenant_id",
|
|
6562
6731
|
"slug",
|
|
6563
6732
|
"context"
|
|
6564
6733
|
],
|
|
6565
6734
|
"unique": true
|
|
6566
6735
|
},
|
|
6567
6736
|
{
|
|
6568
|
-
"name": "
|
|
6737
|
+
"name": "leads_tenant_id_created_at_idx",
|
|
6738
|
+
"columns": [
|
|
6739
|
+
"tenant_id",
|
|
6740
|
+
"created_at"
|
|
6741
|
+
]
|
|
6742
|
+
},
|
|
6743
|
+
{
|
|
6744
|
+
"name": "leads_profile_id_idx",
|
|
6745
|
+
"columns": [
|
|
6746
|
+
"profile_id"
|
|
6747
|
+
]
|
|
6748
|
+
},
|
|
6749
|
+
{
|
|
6750
|
+
"name": "leads_owner_rep_id_idx",
|
|
6751
|
+
"columns": [
|
|
6752
|
+
"owner_rep_id"
|
|
6753
|
+
]
|
|
6754
|
+
},
|
|
6755
|
+
{
|
|
6756
|
+
"name": "leads_merged_into_id_idx",
|
|
6569
6757
|
"columns": [
|
|
6570
|
-
"
|
|
6758
|
+
"merged_into_id"
|
|
6571
6759
|
]
|
|
6572
6760
|
}
|
|
6573
6761
|
],
|
|
@@ -6755,7 +6943,12 @@
|
|
|
6755
6943
|
"cli": true,
|
|
6756
6944
|
"tenantScoped": {
|
|
6757
6945
|
"mode": "optional"
|
|
6758
|
-
}
|
|
6946
|
+
},
|
|
6947
|
+
"conflictColumns": [
|
|
6948
|
+
"tenant_id",
|
|
6949
|
+
"slug",
|
|
6950
|
+
"context"
|
|
6951
|
+
]
|
|
6759
6952
|
},
|
|
6760
6953
|
"extends": "SmrtObject",
|
|
6761
6954
|
"exportName": "Opportunity",
|
|
@@ -6897,24 +7090,44 @@
|
|
|
6897
7090
|
}
|
|
6898
7091
|
},
|
|
6899
7092
|
"indexes": [
|
|
6900
|
-
{
|
|
6901
|
-
"name": "opportunities_id_idx",
|
|
6902
|
-
"columns": [
|
|
6903
|
-
"id"
|
|
6904
|
-
]
|
|
6905
|
-
},
|
|
6906
7093
|
{
|
|
6907
7094
|
"name": "opportunities_slug_context_idx",
|
|
6908
7095
|
"columns": [
|
|
7096
|
+
"tenant_id",
|
|
6909
7097
|
"slug",
|
|
6910
7098
|
"context"
|
|
6911
7099
|
],
|
|
6912
7100
|
"unique": true
|
|
6913
7101
|
},
|
|
6914
7102
|
{
|
|
6915
|
-
"name": "
|
|
7103
|
+
"name": "opportunities_tenant_id_created_at_idx",
|
|
7104
|
+
"columns": [
|
|
7105
|
+
"tenant_id",
|
|
7106
|
+
"created_at"
|
|
7107
|
+
]
|
|
7108
|
+
},
|
|
7109
|
+
{
|
|
7110
|
+
"name": "opportunities_lead_id_idx",
|
|
7111
|
+
"columns": [
|
|
7112
|
+
"lead_id"
|
|
7113
|
+
]
|
|
7114
|
+
},
|
|
7115
|
+
{
|
|
7116
|
+
"name": "opportunities_owner_rep_id_idx",
|
|
7117
|
+
"columns": [
|
|
7118
|
+
"owner_rep_id"
|
|
7119
|
+
]
|
|
7120
|
+
},
|
|
7121
|
+
{
|
|
7122
|
+
"name": "opportunities_pipeline_id_idx",
|
|
7123
|
+
"columns": [
|
|
7124
|
+
"pipeline_id"
|
|
7125
|
+
]
|
|
7126
|
+
},
|
|
7127
|
+
{
|
|
7128
|
+
"name": "opportunities_stage_id_idx",
|
|
6916
7129
|
"columns": [
|
|
6917
|
-
"
|
|
7130
|
+
"stage_id"
|
|
6918
7131
|
]
|
|
6919
7132
|
}
|
|
6920
7133
|
],
|
|
@@ -7125,12 +7338,6 @@
|
|
|
7125
7338
|
}
|
|
7126
7339
|
},
|
|
7127
7340
|
"indexes": [
|
|
7128
|
-
{
|
|
7129
|
-
"name": "opportunity_conversions_id_idx",
|
|
7130
|
-
"columns": [
|
|
7131
|
-
"id"
|
|
7132
|
-
]
|
|
7133
|
-
},
|
|
7134
7341
|
{
|
|
7135
7342
|
"name": "opportunity_conversions_opportunity_id_target_kind_idx",
|
|
7136
7343
|
"columns": [
|
|
@@ -7141,9 +7348,17 @@
|
|
|
7141
7348
|
"unique": true
|
|
7142
7349
|
},
|
|
7143
7350
|
{
|
|
7144
|
-
"name": "
|
|
7351
|
+
"name": "opportunity_conversions_slug_context_idx",
|
|
7352
|
+
"columns": [
|
|
7353
|
+
"slug",
|
|
7354
|
+
"context"
|
|
7355
|
+
]
|
|
7356
|
+
},
|
|
7357
|
+
{
|
|
7358
|
+
"name": "opportunity_conversions_tenant_id_created_at_idx",
|
|
7145
7359
|
"columns": [
|
|
7146
|
-
"tenant_id"
|
|
7360
|
+
"tenant_id",
|
|
7361
|
+
"created_at"
|
|
7147
7362
|
]
|
|
7148
7363
|
}
|
|
7149
7364
|
],
|
|
@@ -7338,12 +7553,6 @@
|
|
|
7338
7553
|
}
|
|
7339
7554
|
},
|
|
7340
7555
|
"indexes": [
|
|
7341
|
-
{
|
|
7342
|
-
"name": "pipeline_definitions_id_idx",
|
|
7343
|
-
"columns": [
|
|
7344
|
-
"id"
|
|
7345
|
-
]
|
|
7346
|
-
},
|
|
7347
7556
|
{
|
|
7348
7557
|
"name": "pipeline_definitions_tenant_id_key_idx",
|
|
7349
7558
|
"columns": [
|
|
@@ -7351,6 +7560,20 @@
|
|
|
7351
7560
|
"key"
|
|
7352
7561
|
],
|
|
7353
7562
|
"unique": true
|
|
7563
|
+
},
|
|
7564
|
+
{
|
|
7565
|
+
"name": "pipeline_definitions_slug_context_idx",
|
|
7566
|
+
"columns": [
|
|
7567
|
+
"slug",
|
|
7568
|
+
"context"
|
|
7569
|
+
]
|
|
7570
|
+
},
|
|
7571
|
+
{
|
|
7572
|
+
"name": "pipeline_definitions_tenant_id_created_at_idx",
|
|
7573
|
+
"columns": [
|
|
7574
|
+
"tenant_id",
|
|
7575
|
+
"created_at"
|
|
7576
|
+
]
|
|
7354
7577
|
}
|
|
7355
7578
|
],
|
|
7356
7579
|
"version": "5e3ace6c"
|
|
@@ -7585,12 +7808,6 @@
|
|
|
7585
7808
|
}
|
|
7586
7809
|
},
|
|
7587
7810
|
"indexes": [
|
|
7588
|
-
{
|
|
7589
|
-
"name": "pipeline_stages_id_idx",
|
|
7590
|
-
"columns": [
|
|
7591
|
-
"id"
|
|
7592
|
-
]
|
|
7593
|
-
},
|
|
7594
7811
|
{
|
|
7595
7812
|
"name": "pipeline_stages_pipeline_id_key_idx",
|
|
7596
7813
|
"columns": [
|
|
@@ -7600,9 +7817,17 @@
|
|
|
7600
7817
|
"unique": true
|
|
7601
7818
|
},
|
|
7602
7819
|
{
|
|
7603
|
-
"name": "
|
|
7820
|
+
"name": "pipeline_stages_slug_context_idx",
|
|
7821
|
+
"columns": [
|
|
7822
|
+
"slug",
|
|
7823
|
+
"context"
|
|
7824
|
+
]
|
|
7825
|
+
},
|
|
7826
|
+
{
|
|
7827
|
+
"name": "pipeline_stages_tenant_id_created_at_idx",
|
|
7604
7828
|
"columns": [
|
|
7605
|
-
"tenant_id"
|
|
7829
|
+
"tenant_id",
|
|
7830
|
+
"created_at"
|
|
7606
7831
|
]
|
|
7607
7832
|
}
|
|
7608
7833
|
],
|
|
@@ -7734,7 +7959,12 @@
|
|
|
7734
7959
|
"cli": false,
|
|
7735
7960
|
"tenantScoped": {
|
|
7736
7961
|
"mode": "optional"
|
|
7737
|
-
}
|
|
7962
|
+
},
|
|
7963
|
+
"conflictColumns": [
|
|
7964
|
+
"tenant_id",
|
|
7965
|
+
"slug",
|
|
7966
|
+
"context"
|
|
7967
|
+
]
|
|
7738
7968
|
},
|
|
7739
7969
|
"extends": "SmrtObject",
|
|
7740
7970
|
"exportName": "SalesActivity",
|
|
@@ -7829,24 +8059,26 @@
|
|
|
7829
8059
|
}
|
|
7830
8060
|
},
|
|
7831
8061
|
"indexes": [
|
|
7832
|
-
{
|
|
7833
|
-
"name": "sales_activities_id_idx",
|
|
7834
|
-
"columns": [
|
|
7835
|
-
"id"
|
|
7836
|
-
]
|
|
7837
|
-
},
|
|
7838
8062
|
{
|
|
7839
8063
|
"name": "sales_activities_slug_context_idx",
|
|
7840
8064
|
"columns": [
|
|
8065
|
+
"tenant_id",
|
|
7841
8066
|
"slug",
|
|
7842
8067
|
"context"
|
|
7843
8068
|
],
|
|
7844
8069
|
"unique": true
|
|
7845
8070
|
},
|
|
7846
8071
|
{
|
|
7847
|
-
"name": "
|
|
8072
|
+
"name": "sales_activities_tenant_id_created_at_idx",
|
|
8073
|
+
"columns": [
|
|
8074
|
+
"tenant_id",
|
|
8075
|
+
"created_at"
|
|
8076
|
+
]
|
|
8077
|
+
},
|
|
8078
|
+
{
|
|
8079
|
+
"name": "sales_activities_actor_profile_id_idx",
|
|
7848
8080
|
"columns": [
|
|
7849
|
-
"
|
|
8081
|
+
"actor_profile_id"
|
|
7850
8082
|
]
|
|
7851
8083
|
}
|
|
7852
8084
|
],
|
|
@@ -7955,7 +8187,12 @@
|
|
|
7955
8187
|
"cli": true,
|
|
7956
8188
|
"tenantScoped": {
|
|
7957
8189
|
"mode": "optional"
|
|
7958
|
-
}
|
|
8190
|
+
},
|
|
8191
|
+
"conflictColumns": [
|
|
8192
|
+
"tenant_id",
|
|
8193
|
+
"slug",
|
|
8194
|
+
"context"
|
|
8195
|
+
]
|
|
7959
8196
|
},
|
|
7960
8197
|
"extends": "SmrtObject",
|
|
7961
8198
|
"exportName": "SalesRepresentative",
|
|
@@ -8027,24 +8264,32 @@
|
|
|
8027
8264
|
}
|
|
8028
8265
|
},
|
|
8029
8266
|
"indexes": [
|
|
8030
|
-
{
|
|
8031
|
-
"name": "sales_representatives_id_idx",
|
|
8032
|
-
"columns": [
|
|
8033
|
-
"id"
|
|
8034
|
-
]
|
|
8035
|
-
},
|
|
8036
8267
|
{
|
|
8037
8268
|
"name": "sales_representatives_slug_context_idx",
|
|
8038
8269
|
"columns": [
|
|
8270
|
+
"tenant_id",
|
|
8039
8271
|
"slug",
|
|
8040
8272
|
"context"
|
|
8041
8273
|
],
|
|
8042
8274
|
"unique": true
|
|
8043
8275
|
},
|
|
8044
8276
|
{
|
|
8045
|
-
"name": "
|
|
8277
|
+
"name": "sales_representatives_tenant_id_created_at_idx",
|
|
8278
|
+
"columns": [
|
|
8279
|
+
"tenant_id",
|
|
8280
|
+
"created_at"
|
|
8281
|
+
]
|
|
8282
|
+
},
|
|
8283
|
+
{
|
|
8284
|
+
"name": "sales_representatives_profile_id_idx",
|
|
8285
|
+
"columns": [
|
|
8286
|
+
"profile_id"
|
|
8287
|
+
]
|
|
8288
|
+
},
|
|
8289
|
+
{
|
|
8290
|
+
"name": "sales_representatives_earner_id_idx",
|
|
8046
8291
|
"columns": [
|
|
8047
|
-
"
|
|
8292
|
+
"earner_id"
|
|
8048
8293
|
]
|
|
8049
8294
|
}
|
|
8050
8295
|
],
|
|
@@ -8146,14 +8391,8 @@
|
|
|
8146
8391
|
"notNull": true,
|
|
8147
8392
|
"default": "current_timestamp"
|
|
8148
8393
|
}
|
|
8149
|
-
},
|
|
8150
|
-
"indexes": [
|
|
8151
|
-
{
|
|
8152
|
-
"name": "attribution_exception_collections_id_idx",
|
|
8153
|
-
"columns": [
|
|
8154
|
-
"id"
|
|
8155
|
-
]
|
|
8156
|
-
},
|
|
8394
|
+
},
|
|
8395
|
+
"indexes": [
|
|
8157
8396
|
{
|
|
8158
8397
|
"name": "attribution_exception_collections_slug_context_idx",
|
|
8159
8398
|
"columns": [
|
|
@@ -8161,6 +8400,12 @@
|
|
|
8161
8400
|
"context"
|
|
8162
8401
|
],
|
|
8163
8402
|
"unique": true
|
|
8403
|
+
},
|
|
8404
|
+
{
|
|
8405
|
+
"name": "attribution_exception_collections_created_at_idx",
|
|
8406
|
+
"columns": [
|
|
8407
|
+
"created_at"
|
|
8408
|
+
]
|
|
8164
8409
|
}
|
|
8165
8410
|
],
|
|
8166
8411
|
"version": "6b65d721"
|
|
@@ -8283,12 +8528,6 @@
|
|
|
8283
8528
|
}
|
|
8284
8529
|
},
|
|
8285
8530
|
"indexes": [
|
|
8286
|
-
{
|
|
8287
|
-
"name": "attribution_policy_collections_id_idx",
|
|
8288
|
-
"columns": [
|
|
8289
|
-
"id"
|
|
8290
|
-
]
|
|
8291
|
-
},
|
|
8292
8531
|
{
|
|
8293
8532
|
"name": "attribution_policy_collections_slug_context_idx",
|
|
8294
8533
|
"columns": [
|
|
@@ -8296,6 +8535,12 @@
|
|
|
8296
8535
|
"context"
|
|
8297
8536
|
],
|
|
8298
8537
|
"unique": true
|
|
8538
|
+
},
|
|
8539
|
+
{
|
|
8540
|
+
"name": "attribution_policy_collections_created_at_idx",
|
|
8541
|
+
"columns": [
|
|
8542
|
+
"created_at"
|
|
8543
|
+
]
|
|
8299
8544
|
}
|
|
8300
8545
|
],
|
|
8301
8546
|
"version": "656f5a91"
|
|
@@ -8414,12 +8659,6 @@
|
|
|
8414
8659
|
}
|
|
8415
8660
|
},
|
|
8416
8661
|
"indexes": [
|
|
8417
|
-
{
|
|
8418
|
-
"name": "referral_agreement_collections_id_idx",
|
|
8419
|
-
"columns": [
|
|
8420
|
-
"id"
|
|
8421
|
-
]
|
|
8422
|
-
},
|
|
8423
8662
|
{
|
|
8424
8663
|
"name": "referral_agreement_collections_slug_context_idx",
|
|
8425
8664
|
"columns": [
|
|
@@ -8427,6 +8666,12 @@
|
|
|
8427
8666
|
"context"
|
|
8428
8667
|
],
|
|
8429
8668
|
"unique": true
|
|
8669
|
+
},
|
|
8670
|
+
{
|
|
8671
|
+
"name": "referral_agreement_collections_created_at_idx",
|
|
8672
|
+
"columns": [
|
|
8673
|
+
"created_at"
|
|
8674
|
+
]
|
|
8430
8675
|
}
|
|
8431
8676
|
],
|
|
8432
8677
|
"version": "f4832104"
|
|
@@ -8506,12 +8751,6 @@
|
|
|
8506
8751
|
}
|
|
8507
8752
|
},
|
|
8508
8753
|
"indexes": [
|
|
8509
|
-
{
|
|
8510
|
-
"name": "referral_click_operation_collections_id_idx",
|
|
8511
|
-
"columns": [
|
|
8512
|
-
"id"
|
|
8513
|
-
]
|
|
8514
|
-
},
|
|
8515
8754
|
{
|
|
8516
8755
|
"name": "referral_click_operation_collections_slug_context_idx",
|
|
8517
8756
|
"columns": [
|
|
@@ -8519,6 +8758,12 @@
|
|
|
8519
8758
|
"context"
|
|
8520
8759
|
],
|
|
8521
8760
|
"unique": true
|
|
8761
|
+
},
|
|
8762
|
+
{
|
|
8763
|
+
"name": "referral_click_operation_collections_created_at_idx",
|
|
8764
|
+
"columns": [
|
|
8765
|
+
"created_at"
|
|
8766
|
+
]
|
|
8522
8767
|
}
|
|
8523
8768
|
],
|
|
8524
8769
|
"version": "1e78a70b"
|
|
@@ -8636,12 +8881,6 @@
|
|
|
8636
8881
|
}
|
|
8637
8882
|
},
|
|
8638
8883
|
"indexes": [
|
|
8639
|
-
{
|
|
8640
|
-
"name": "referral_collections_id_idx",
|
|
8641
|
-
"columns": [
|
|
8642
|
-
"id"
|
|
8643
|
-
]
|
|
8644
|
-
},
|
|
8645
8884
|
{
|
|
8646
8885
|
"name": "referral_collections_slug_context_idx",
|
|
8647
8886
|
"columns": [
|
|
@@ -8649,6 +8888,12 @@
|
|
|
8649
8888
|
"context"
|
|
8650
8889
|
],
|
|
8651
8890
|
"unique": true
|
|
8891
|
+
},
|
|
8892
|
+
{
|
|
8893
|
+
"name": "referral_collections_created_at_idx",
|
|
8894
|
+
"columns": [
|
|
8895
|
+
"created_at"
|
|
8896
|
+
]
|
|
8652
8897
|
}
|
|
8653
8898
|
],
|
|
8654
8899
|
"version": "416e4273"
|
|
@@ -8756,12 +9001,6 @@
|
|
|
8756
9001
|
}
|
|
8757
9002
|
},
|
|
8758
9003
|
"indexes": [
|
|
8759
|
-
{
|
|
8760
|
-
"name": "referral_link_collections_id_idx",
|
|
8761
|
-
"columns": [
|
|
8762
|
-
"id"
|
|
8763
|
-
]
|
|
8764
|
-
},
|
|
8765
9004
|
{
|
|
8766
9005
|
"name": "referral_link_collections_slug_context_idx",
|
|
8767
9006
|
"columns": [
|
|
@@ -8769,6 +9008,12 @@
|
|
|
8769
9008
|
"context"
|
|
8770
9009
|
],
|
|
8771
9010
|
"unique": true
|
|
9011
|
+
},
|
|
9012
|
+
{
|
|
9013
|
+
"name": "referral_link_collections_created_at_idx",
|
|
9014
|
+
"columns": [
|
|
9015
|
+
"created_at"
|
|
9016
|
+
]
|
|
8772
9017
|
}
|
|
8773
9018
|
],
|
|
8774
9019
|
"version": "a337c544"
|
|
@@ -8856,12 +9101,6 @@
|
|
|
8856
9101
|
}
|
|
8857
9102
|
},
|
|
8858
9103
|
"indexes": [
|
|
8859
|
-
{
|
|
8860
|
-
"name": "referral_program_collections_id_idx",
|
|
8861
|
-
"columns": [
|
|
8862
|
-
"id"
|
|
8863
|
-
]
|
|
8864
|
-
},
|
|
8865
9104
|
{
|
|
8866
9105
|
"name": "referral_program_collections_slug_context_idx",
|
|
8867
9106
|
"columns": [
|
|
@@ -8869,6 +9108,12 @@
|
|
|
8869
9108
|
"context"
|
|
8870
9109
|
],
|
|
8871
9110
|
"unique": true
|
|
9111
|
+
},
|
|
9112
|
+
{
|
|
9113
|
+
"name": "referral_program_collections_created_at_idx",
|
|
9114
|
+
"columns": [
|
|
9115
|
+
"created_at"
|
|
9116
|
+
]
|
|
8872
9117
|
}
|
|
8873
9118
|
],
|
|
8874
9119
|
"version": "3f63e2eb"
|
|
@@ -8934,12 +9179,6 @@
|
|
|
8934
9179
|
}
|
|
8935
9180
|
},
|
|
8936
9181
|
"indexes": [
|
|
8937
|
-
{
|
|
8938
|
-
"name": "referral_term_snapshot_collections_id_idx",
|
|
8939
|
-
"columns": [
|
|
8940
|
-
"id"
|
|
8941
|
-
]
|
|
8942
|
-
},
|
|
8943
9182
|
{
|
|
8944
9183
|
"name": "referral_term_snapshot_collections_slug_context_idx",
|
|
8945
9184
|
"columns": [
|
|
@@ -8947,6 +9186,12 @@
|
|
|
8947
9186
|
"context"
|
|
8948
9187
|
],
|
|
8949
9188
|
"unique": true
|
|
9189
|
+
},
|
|
9190
|
+
{
|
|
9191
|
+
"name": "referral_term_snapshot_collections_created_at_idx",
|
|
9192
|
+
"columns": [
|
|
9193
|
+
"created_at"
|
|
9194
|
+
]
|
|
8950
9195
|
}
|
|
8951
9196
|
],
|
|
8952
9197
|
"version": "d8fcbd0f"
|
|
@@ -9045,12 +9290,6 @@
|
|
|
9045
9290
|
}
|
|
9046
9291
|
},
|
|
9047
9292
|
"indexes": [
|
|
9048
|
-
{
|
|
9049
|
-
"name": "referral_touch_collections_id_idx",
|
|
9050
|
-
"columns": [
|
|
9051
|
-
"id"
|
|
9052
|
-
]
|
|
9053
|
-
},
|
|
9054
9293
|
{
|
|
9055
9294
|
"name": "referral_touch_collections_slug_context_idx",
|
|
9056
9295
|
"columns": [
|
|
@@ -9058,6 +9297,12 @@
|
|
|
9058
9297
|
"context"
|
|
9059
9298
|
],
|
|
9060
9299
|
"unique": true
|
|
9300
|
+
},
|
|
9301
|
+
{
|
|
9302
|
+
"name": "referral_touch_collections_created_at_idx",
|
|
9303
|
+
"columns": [
|
|
9304
|
+
"created_at"
|
|
9305
|
+
]
|
|
9061
9306
|
}
|
|
9062
9307
|
],
|
|
9063
9308
|
"version": "7133afa3"
|
|
@@ -9145,12 +9390,6 @@
|
|
|
9145
9390
|
}
|
|
9146
9391
|
},
|
|
9147
9392
|
"indexes": [
|
|
9148
|
-
{
|
|
9149
|
-
"name": "referrer_collections_id_idx",
|
|
9150
|
-
"columns": [
|
|
9151
|
-
"id"
|
|
9152
|
-
]
|
|
9153
|
-
},
|
|
9154
9393
|
{
|
|
9155
9394
|
"name": "referrer_collections_slug_context_idx",
|
|
9156
9395
|
"columns": [
|
|
@@ -9158,6 +9397,12 @@
|
|
|
9158
9397
|
"context"
|
|
9159
9398
|
],
|
|
9160
9399
|
"unique": true
|
|
9400
|
+
},
|
|
9401
|
+
{
|
|
9402
|
+
"name": "referrer_collections_created_at_idx",
|
|
9403
|
+
"columns": [
|
|
9404
|
+
"created_at"
|
|
9405
|
+
]
|
|
9161
9406
|
}
|
|
9162
9407
|
],
|
|
9163
9408
|
"version": "fe6cb81f"
|
|
@@ -9369,7 +9614,12 @@
|
|
|
9369
9614
|
"cli": false,
|
|
9370
9615
|
"tenantScoped": {
|
|
9371
9616
|
"mode": "optional"
|
|
9372
|
-
}
|
|
9617
|
+
},
|
|
9618
|
+
"conflictColumns": [
|
|
9619
|
+
"tenant_id",
|
|
9620
|
+
"slug",
|
|
9621
|
+
"context"
|
|
9622
|
+
]
|
|
9373
9623
|
},
|
|
9374
9624
|
"extends": "SmrtObject",
|
|
9375
9625
|
"exportName": "AttributionException",
|
|
@@ -9494,24 +9744,32 @@
|
|
|
9494
9744
|
}
|
|
9495
9745
|
},
|
|
9496
9746
|
"indexes": [
|
|
9497
|
-
{
|
|
9498
|
-
"name": "attribution_exceptions_id_idx",
|
|
9499
|
-
"columns": [
|
|
9500
|
-
"id"
|
|
9501
|
-
]
|
|
9502
|
-
},
|
|
9503
9747
|
{
|
|
9504
9748
|
"name": "attribution_exceptions_slug_context_idx",
|
|
9505
9749
|
"columns": [
|
|
9750
|
+
"tenant_id",
|
|
9506
9751
|
"slug",
|
|
9507
9752
|
"context"
|
|
9508
9753
|
],
|
|
9509
9754
|
"unique": true
|
|
9510
9755
|
},
|
|
9511
9756
|
{
|
|
9512
|
-
"name": "
|
|
9757
|
+
"name": "attribution_exceptions_tenant_id_created_at_idx",
|
|
9758
|
+
"columns": [
|
|
9759
|
+
"tenant_id",
|
|
9760
|
+
"created_at"
|
|
9761
|
+
]
|
|
9762
|
+
},
|
|
9763
|
+
{
|
|
9764
|
+
"name": "attribution_exceptions_program_id_idx",
|
|
9765
|
+
"columns": [
|
|
9766
|
+
"program_id"
|
|
9767
|
+
]
|
|
9768
|
+
},
|
|
9769
|
+
{
|
|
9770
|
+
"name": "attribution_exceptions_resolved_by_profile_id_idx",
|
|
9513
9771
|
"columns": [
|
|
9514
|
-
"
|
|
9772
|
+
"resolved_by_profile_id"
|
|
9515
9773
|
]
|
|
9516
9774
|
}
|
|
9517
9775
|
],
|
|
@@ -9906,12 +10164,6 @@
|
|
|
9906
10164
|
}
|
|
9907
10165
|
},
|
|
9908
10166
|
"indexes": [
|
|
9909
|
-
{
|
|
9910
|
-
"name": "attribution_policies_id_idx",
|
|
9911
|
-
"columns": [
|
|
9912
|
-
"id"
|
|
9913
|
-
]
|
|
9914
|
-
},
|
|
9915
10167
|
{
|
|
9916
10168
|
"name": "attribution_policies_tenant_id_policy_key_idx",
|
|
9917
10169
|
"columns": [
|
|
@@ -9920,6 +10172,20 @@
|
|
|
9920
10172
|
"version"
|
|
9921
10173
|
],
|
|
9922
10174
|
"unique": true
|
|
10175
|
+
},
|
|
10176
|
+
{
|
|
10177
|
+
"name": "attribution_policies_slug_context_idx",
|
|
10178
|
+
"columns": [
|
|
10179
|
+
"slug",
|
|
10180
|
+
"context"
|
|
10181
|
+
]
|
|
10182
|
+
},
|
|
10183
|
+
{
|
|
10184
|
+
"name": "attribution_policies_tenant_id_created_at_idx",
|
|
10185
|
+
"columns": [
|
|
10186
|
+
"tenant_id",
|
|
10187
|
+
"created_at"
|
|
10188
|
+
]
|
|
9923
10189
|
}
|
|
9924
10190
|
],
|
|
9925
10191
|
"version": "14c54dd2"
|
|
@@ -10163,7 +10429,12 @@
|
|
|
10163
10429
|
"cli": true,
|
|
10164
10430
|
"tenantScoped": {
|
|
10165
10431
|
"mode": "optional"
|
|
10166
|
-
}
|
|
10432
|
+
},
|
|
10433
|
+
"conflictColumns": [
|
|
10434
|
+
"tenant_id",
|
|
10435
|
+
"slug",
|
|
10436
|
+
"context"
|
|
10437
|
+
]
|
|
10167
10438
|
},
|
|
10168
10439
|
"extends": "SmrtObject",
|
|
10169
10440
|
"exportName": "Referral",
|
|
@@ -10304,24 +10575,38 @@
|
|
|
10304
10575
|
}
|
|
10305
10576
|
},
|
|
10306
10577
|
"indexes": [
|
|
10307
|
-
{
|
|
10308
|
-
"name": "referrals_id_idx",
|
|
10309
|
-
"columns": [
|
|
10310
|
-
"id"
|
|
10311
|
-
]
|
|
10312
|
-
},
|
|
10313
10578
|
{
|
|
10314
10579
|
"name": "referrals_slug_context_idx",
|
|
10315
10580
|
"columns": [
|
|
10581
|
+
"tenant_id",
|
|
10316
10582
|
"slug",
|
|
10317
10583
|
"context"
|
|
10318
10584
|
],
|
|
10319
10585
|
"unique": true
|
|
10320
10586
|
},
|
|
10321
10587
|
{
|
|
10322
|
-
"name": "
|
|
10588
|
+
"name": "referrals_tenant_id_created_at_idx",
|
|
10589
|
+
"columns": [
|
|
10590
|
+
"tenant_id",
|
|
10591
|
+
"created_at"
|
|
10592
|
+
]
|
|
10593
|
+
},
|
|
10594
|
+
{
|
|
10595
|
+
"name": "referrals_referrer_id_idx",
|
|
10596
|
+
"columns": [
|
|
10597
|
+
"referrer_id"
|
|
10598
|
+
]
|
|
10599
|
+
},
|
|
10600
|
+
{
|
|
10601
|
+
"name": "referrals_program_id_idx",
|
|
10602
|
+
"columns": [
|
|
10603
|
+
"program_id"
|
|
10604
|
+
]
|
|
10605
|
+
},
|
|
10606
|
+
{
|
|
10607
|
+
"name": "referrals_primary_touch_id_idx",
|
|
10323
10608
|
"columns": [
|
|
10324
|
-
"
|
|
10609
|
+
"primary_touch_id"
|
|
10325
10610
|
]
|
|
10326
10611
|
}
|
|
10327
10612
|
],
|
|
@@ -10698,12 +10983,6 @@
|
|
|
10698
10983
|
}
|
|
10699
10984
|
},
|
|
10700
10985
|
"indexes": [
|
|
10701
|
-
{
|
|
10702
|
-
"name": "referral_agreements_id_idx",
|
|
10703
|
-
"columns": [
|
|
10704
|
-
"id"
|
|
10705
|
-
]
|
|
10706
|
-
},
|
|
10707
10986
|
{
|
|
10708
10987
|
"name": "referral_agreements_referrer_id_program_id_idx",
|
|
10709
10988
|
"columns": [
|
|
@@ -10714,9 +10993,35 @@
|
|
|
10714
10993
|
"unique": true
|
|
10715
10994
|
},
|
|
10716
10995
|
{
|
|
10717
|
-
"name": "
|
|
10996
|
+
"name": "referral_agreements_slug_context_idx",
|
|
10997
|
+
"columns": [
|
|
10998
|
+
"slug",
|
|
10999
|
+
"context"
|
|
11000
|
+
]
|
|
11001
|
+
},
|
|
11002
|
+
{
|
|
11003
|
+
"name": "referral_agreements_tenant_id_created_at_idx",
|
|
11004
|
+
"columns": [
|
|
11005
|
+
"tenant_id",
|
|
11006
|
+
"created_at"
|
|
11007
|
+
]
|
|
11008
|
+
},
|
|
11009
|
+
{
|
|
11010
|
+
"name": "referral_agreements_program_id_idx",
|
|
11011
|
+
"columns": [
|
|
11012
|
+
"program_id"
|
|
11013
|
+
]
|
|
11014
|
+
},
|
|
11015
|
+
{
|
|
11016
|
+
"name": "referral_agreements_execution_id_idx",
|
|
10718
11017
|
"columns": [
|
|
10719
|
-
"
|
|
11018
|
+
"execution_id"
|
|
11019
|
+
]
|
|
11020
|
+
},
|
|
11021
|
+
{
|
|
11022
|
+
"name": "referral_agreements_executed_agreement_id_idx",
|
|
11023
|
+
"columns": [
|
|
11024
|
+
"executed_agreement_id"
|
|
10720
11025
|
]
|
|
10721
11026
|
}
|
|
10722
11027
|
],
|
|
@@ -10824,7 +11129,12 @@
|
|
|
10824
11129
|
"cli": false,
|
|
10825
11130
|
"tenantScoped": {
|
|
10826
11131
|
"mode": "optional"
|
|
10827
|
-
}
|
|
11132
|
+
},
|
|
11133
|
+
"conflictColumns": [
|
|
11134
|
+
"tenant_id",
|
|
11135
|
+
"slug",
|
|
11136
|
+
"context"
|
|
11137
|
+
]
|
|
10828
11138
|
},
|
|
10829
11139
|
"extends": "SmrtObject",
|
|
10830
11140
|
"exportName": "ReferralClickOperation",
|
|
@@ -10928,15 +11238,10 @@
|
|
|
10928
11238
|
}
|
|
10929
11239
|
},
|
|
10930
11240
|
"indexes": [
|
|
10931
|
-
{
|
|
10932
|
-
"name": "referral_click_operations_id_idx",
|
|
10933
|
-
"columns": [
|
|
10934
|
-
"id"
|
|
10935
|
-
]
|
|
10936
|
-
},
|
|
10937
11241
|
{
|
|
10938
11242
|
"name": "referral_click_operations_slug_context_idx",
|
|
10939
11243
|
"columns": [
|
|
11244
|
+
"tenant_id",
|
|
10940
11245
|
"slug",
|
|
10941
11246
|
"context"
|
|
10942
11247
|
],
|
|
@@ -10955,9 +11260,10 @@
|
|
|
10955
11260
|
]
|
|
10956
11261
|
},
|
|
10957
11262
|
{
|
|
10958
|
-
"name": "
|
|
11263
|
+
"name": "referral_click_operations_tenant_id_created_at_idx",
|
|
10959
11264
|
"columns": [
|
|
10960
|
-
"tenant_id"
|
|
11265
|
+
"tenant_id",
|
|
11266
|
+
"created_at"
|
|
10961
11267
|
]
|
|
10962
11268
|
}
|
|
10963
11269
|
],
|
|
@@ -11209,12 +11515,6 @@
|
|
|
11209
11515
|
}
|
|
11210
11516
|
},
|
|
11211
11517
|
"indexes": [
|
|
11212
|
-
{
|
|
11213
|
-
"name": "referral_links_id_idx",
|
|
11214
|
-
"columns": [
|
|
11215
|
-
"id"
|
|
11216
|
-
]
|
|
11217
|
-
},
|
|
11218
11518
|
{
|
|
11219
11519
|
"name": "referral_links_code_idx",
|
|
11220
11520
|
"columns": [
|
|
@@ -11223,9 +11523,29 @@
|
|
|
11223
11523
|
"unique": true
|
|
11224
11524
|
},
|
|
11225
11525
|
{
|
|
11226
|
-
"name": "
|
|
11526
|
+
"name": "referral_links_slug_context_idx",
|
|
11527
|
+
"columns": [
|
|
11528
|
+
"slug",
|
|
11529
|
+
"context"
|
|
11530
|
+
]
|
|
11531
|
+
},
|
|
11532
|
+
{
|
|
11533
|
+
"name": "referral_links_tenant_id_created_at_idx",
|
|
11534
|
+
"columns": [
|
|
11535
|
+
"tenant_id",
|
|
11536
|
+
"created_at"
|
|
11537
|
+
]
|
|
11538
|
+
},
|
|
11539
|
+
{
|
|
11540
|
+
"name": "referral_links_referrer_id_idx",
|
|
11541
|
+
"columns": [
|
|
11542
|
+
"referrer_id"
|
|
11543
|
+
]
|
|
11544
|
+
},
|
|
11545
|
+
{
|
|
11546
|
+
"name": "referral_links_program_id_idx",
|
|
11227
11547
|
"columns": [
|
|
11228
|
-
"
|
|
11548
|
+
"program_id"
|
|
11229
11549
|
]
|
|
11230
11550
|
}
|
|
11231
11551
|
],
|
|
@@ -11431,12 +11751,6 @@
|
|
|
11431
11751
|
}
|
|
11432
11752
|
},
|
|
11433
11753
|
"indexes": [
|
|
11434
|
-
{
|
|
11435
|
-
"name": "referral_programs_id_idx",
|
|
11436
|
-
"columns": [
|
|
11437
|
-
"id"
|
|
11438
|
-
]
|
|
11439
|
-
},
|
|
11440
11754
|
{
|
|
11441
11755
|
"name": "referral_programs_tenant_id_key_idx",
|
|
11442
11756
|
"columns": [
|
|
@@ -11444,6 +11758,20 @@
|
|
|
11444
11758
|
"key"
|
|
11445
11759
|
],
|
|
11446
11760
|
"unique": true
|
|
11761
|
+
},
|
|
11762
|
+
{
|
|
11763
|
+
"name": "referral_programs_slug_context_idx",
|
|
11764
|
+
"columns": [
|
|
11765
|
+
"slug",
|
|
11766
|
+
"context"
|
|
11767
|
+
]
|
|
11768
|
+
},
|
|
11769
|
+
{
|
|
11770
|
+
"name": "referral_programs_tenant_id_created_at_idx",
|
|
11771
|
+
"columns": [
|
|
11772
|
+
"tenant_id",
|
|
11773
|
+
"created_at"
|
|
11774
|
+
]
|
|
11447
11775
|
}
|
|
11448
11776
|
],
|
|
11449
11777
|
"version": "b412cfba"
|
|
@@ -11589,7 +11917,12 @@
|
|
|
11589
11917
|
"cli": false,
|
|
11590
11918
|
"tenantScoped": {
|
|
11591
11919
|
"mode": "optional"
|
|
11592
|
-
}
|
|
11920
|
+
},
|
|
11921
|
+
"conflictColumns": [
|
|
11922
|
+
"tenant_id",
|
|
11923
|
+
"slug",
|
|
11924
|
+
"context"
|
|
11925
|
+
]
|
|
11593
11926
|
},
|
|
11594
11927
|
"extends": "SmrtObject",
|
|
11595
11928
|
"exportName": "ReferralTermSnapshot",
|
|
@@ -11710,24 +12043,26 @@
|
|
|
11710
12043
|
}
|
|
11711
12044
|
},
|
|
11712
12045
|
"indexes": [
|
|
11713
|
-
{
|
|
11714
|
-
"name": "referral_term_snapshots_id_idx",
|
|
11715
|
-
"columns": [
|
|
11716
|
-
"id"
|
|
11717
|
-
]
|
|
11718
|
-
},
|
|
11719
12046
|
{
|
|
11720
12047
|
"name": "referral_term_snapshots_slug_context_idx",
|
|
11721
12048
|
"columns": [
|
|
12049
|
+
"tenant_id",
|
|
11722
12050
|
"slug",
|
|
11723
12051
|
"context"
|
|
11724
12052
|
],
|
|
11725
12053
|
"unique": true
|
|
11726
12054
|
},
|
|
11727
12055
|
{
|
|
11728
|
-
"name": "
|
|
12056
|
+
"name": "referral_term_snapshots_tenant_id_created_at_idx",
|
|
12057
|
+
"columns": [
|
|
12058
|
+
"tenant_id",
|
|
12059
|
+
"created_at"
|
|
12060
|
+
]
|
|
12061
|
+
},
|
|
12062
|
+
{
|
|
12063
|
+
"name": "referral_term_snapshots_referral_id_idx",
|
|
11729
12064
|
"columns": [
|
|
11730
|
-
"
|
|
12065
|
+
"referral_id"
|
|
11731
12066
|
]
|
|
11732
12067
|
}
|
|
11733
12068
|
],
|
|
@@ -11884,7 +12219,12 @@
|
|
|
11884
12219
|
"cli": false,
|
|
11885
12220
|
"tenantScoped": {
|
|
11886
12221
|
"mode": "optional"
|
|
11887
|
-
}
|
|
12222
|
+
},
|
|
12223
|
+
"conflictColumns": [
|
|
12224
|
+
"tenant_id",
|
|
12225
|
+
"slug",
|
|
12226
|
+
"context"
|
|
12227
|
+
]
|
|
11888
12228
|
},
|
|
11889
12229
|
"extends": "SmrtObject",
|
|
11890
12230
|
"exportName": "ReferralTouch",
|
|
@@ -11992,24 +12332,38 @@
|
|
|
11992
12332
|
}
|
|
11993
12333
|
},
|
|
11994
12334
|
"indexes": [
|
|
11995
|
-
{
|
|
11996
|
-
"name": "referral_touches_id_idx",
|
|
11997
|
-
"columns": [
|
|
11998
|
-
"id"
|
|
11999
|
-
]
|
|
12000
|
-
},
|
|
12001
12335
|
{
|
|
12002
12336
|
"name": "referral_touches_slug_context_idx",
|
|
12003
12337
|
"columns": [
|
|
12338
|
+
"tenant_id",
|
|
12004
12339
|
"slug",
|
|
12005
12340
|
"context"
|
|
12006
12341
|
],
|
|
12007
12342
|
"unique": true
|
|
12008
12343
|
},
|
|
12009
12344
|
{
|
|
12010
|
-
"name": "
|
|
12345
|
+
"name": "referral_touches_tenant_id_created_at_idx",
|
|
12011
12346
|
"columns": [
|
|
12012
|
-
"tenant_id"
|
|
12347
|
+
"tenant_id",
|
|
12348
|
+
"created_at"
|
|
12349
|
+
]
|
|
12350
|
+
},
|
|
12351
|
+
{
|
|
12352
|
+
"name": "referral_touches_link_id_idx",
|
|
12353
|
+
"columns": [
|
|
12354
|
+
"link_id"
|
|
12355
|
+
]
|
|
12356
|
+
},
|
|
12357
|
+
{
|
|
12358
|
+
"name": "referral_touches_referrer_id_idx",
|
|
12359
|
+
"columns": [
|
|
12360
|
+
"referrer_id"
|
|
12361
|
+
]
|
|
12362
|
+
},
|
|
12363
|
+
{
|
|
12364
|
+
"name": "referral_touches_program_id_idx",
|
|
12365
|
+
"columns": [
|
|
12366
|
+
"program_id"
|
|
12013
12367
|
]
|
|
12014
12368
|
}
|
|
12015
12369
|
],
|
|
@@ -12135,7 +12489,12 @@
|
|
|
12135
12489
|
"cli": true,
|
|
12136
12490
|
"tenantScoped": {
|
|
12137
12491
|
"mode": "optional"
|
|
12138
|
-
}
|
|
12492
|
+
},
|
|
12493
|
+
"conflictColumns": [
|
|
12494
|
+
"tenant_id",
|
|
12495
|
+
"slug",
|
|
12496
|
+
"context"
|
|
12497
|
+
]
|
|
12139
12498
|
},
|
|
12140
12499
|
"extends": "SmrtObject",
|
|
12141
12500
|
"exportName": "Referrer",
|
|
@@ -12207,24 +12566,32 @@
|
|
|
12207
12566
|
}
|
|
12208
12567
|
},
|
|
12209
12568
|
"indexes": [
|
|
12210
|
-
{
|
|
12211
|
-
"name": "referrers_id_idx",
|
|
12212
|
-
"columns": [
|
|
12213
|
-
"id"
|
|
12214
|
-
]
|
|
12215
|
-
},
|
|
12216
12569
|
{
|
|
12217
12570
|
"name": "referrers_slug_context_idx",
|
|
12218
12571
|
"columns": [
|
|
12572
|
+
"tenant_id",
|
|
12219
12573
|
"slug",
|
|
12220
12574
|
"context"
|
|
12221
12575
|
],
|
|
12222
12576
|
"unique": true
|
|
12223
12577
|
},
|
|
12224
12578
|
{
|
|
12225
|
-
"name": "
|
|
12579
|
+
"name": "referrers_tenant_id_created_at_idx",
|
|
12580
|
+
"columns": [
|
|
12581
|
+
"tenant_id",
|
|
12582
|
+
"created_at"
|
|
12583
|
+
]
|
|
12584
|
+
},
|
|
12585
|
+
{
|
|
12586
|
+
"name": "referrers_profile_id_idx",
|
|
12587
|
+
"columns": [
|
|
12588
|
+
"profile_id"
|
|
12589
|
+
]
|
|
12590
|
+
},
|
|
12591
|
+
{
|
|
12592
|
+
"name": "referrers_earner_id_idx",
|
|
12226
12593
|
"columns": [
|
|
12227
|
-
"
|
|
12594
|
+
"earner_id"
|
|
12228
12595
|
]
|
|
12229
12596
|
}
|
|
12230
12597
|
],
|