@nexeraid/identity-schemas 2.3.23-dev → 2.3.23
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/{customers.schema-cc3df18f.cjs.dev.js → customers.schema-56ca4b11.cjs.dev.js} +1 -1
- package/dist/{customers.schema-f0d472b1.cjs.prod.js → customers.schema-c6702f96.cjs.prod.js} +1 -1
- package/dist/{customers.schema-0306abb6.esm.js → customers.schema-f7da825d.esm.js} +1 -1
- package/dist/declarations/src/identity-ids.schema.d.ts +29 -65
- package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/index.d.ts +0 -1
- package/dist/declarations/src/webhooks/index.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +38 -2356
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -1
- package/dist/{frontend-utilities.schema-0be040b7.cjs.dev.js → frontend-utilities.schema-3fd03e9f.cjs.dev.js} +1 -1
- package/dist/{frontend-utilities.schema-cd88e673.cjs.prod.js → frontend-utilities.schema-bb63f894.cjs.prod.js} +1 -1
- package/dist/{frontend-utilities.schema-02fc8336.esm.js → frontend-utilities.schema-e16f9289.esm.js} +1 -1
- package/dist/{identity-api.schema-2de31155.cjs.prod.js → identity-api.schema-00c99eb6.cjs.prod.js} +18 -70
- package/dist/{identity-api.schema-bbb2c243.cjs.dev.js → identity-api.schema-04a016a1.cjs.dev.js} +18 -70
- package/dist/{identity-api.schema-68a83f54.esm.js → identity-api.schema-2a4cdb96.esm.js} +19 -53
- package/dist/nexeraid-identity-schemas.cjs.dev.js +38 -35
- package/dist/nexeraid-identity-schemas.cjs.prod.js +38 -35
- package/dist/nexeraid-identity-schemas.esm.js +26 -5
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
- package/package.json +1 -1
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.esm.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +7 -97
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +7 -97
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +8 -90
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +0 -46
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts.map +0 -1
- package/dist/transaction.schema-2141e819.cjs.dev.js +0 -40
- package/dist/transaction.schema-7297e823.cjs.prod.js +0 -40
- package/dist/transaction.schema-fb699c40.esm.js +0 -25
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var zod = require('zod');
|
|
6
|
-
var identityApi_schema = require('../../dist/identity-api.schema-
|
|
7
|
-
var customers_schema = require('../../dist/customers.schema-
|
|
6
|
+
var identityApi_schema = require('../../dist/identity-api.schema-04a016a1.cjs.dev.js');
|
|
7
|
+
var customers_schema = require('../../dist/customers.schema-56ca4b11.cjs.dev.js');
|
|
8
8
|
var zodToJsonSchema = require('zod-to-json-schema');
|
|
9
|
-
var transaction_schema = require('../../dist/transaction.schema-2141e819.cjs.dev.js');
|
|
10
9
|
require('nanoid');
|
|
11
10
|
|
|
12
11
|
// Alert Statuses
|
|
@@ -192,25 +191,9 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
|
|
|
192
191
|
result: zod.z.array(VerificationFlowResult)
|
|
193
192
|
});
|
|
194
193
|
|
|
195
|
-
var
|
|
196
|
-
id: zod.z.string(),
|
|
197
|
-
customerId: identityApi_schema.UuidString,
|
|
198
|
-
externalTransactionId: zod.z.string(),
|
|
199
|
-
transactionDate: zod.z.coerce.date().nullable(),
|
|
200
|
-
transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
|
|
201
|
-
transactionSubType: zod.z.string().nullable(),
|
|
202
|
-
transactionReview: zod.z.string().nullable(),
|
|
203
|
-
transactionInfo: zod.z.string(),
|
|
204
|
-
transactionExtractedInfo: zod.z.string().nullable(),
|
|
205
|
-
originator: zod.z.string(),
|
|
206
|
-
beneficiary: zod.z.string(),
|
|
207
|
-
createdAt: zod.z.coerce.date(),
|
|
208
|
-
updatedAt: zod.z.coerce.date().nullable()
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "tms.created", "tms.updated", "tms.deleted"];
|
|
194
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
|
|
212
195
|
var WebhookEventType = zod.z["enum"](WebhookEventTypes);
|
|
213
|
-
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"
|
|
196
|
+
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
|
|
214
197
|
var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
|
|
215
198
|
var AttemptsStatus = {
|
|
216
199
|
Success: 0,
|
|
@@ -271,21 +254,6 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
|
|
|
271
254
|
description: zod.z.string(),
|
|
272
255
|
archived: zod.z["boolean"](),
|
|
273
256
|
schemas: zod.z.record(zod.z.unknown())
|
|
274
|
-
}), zod.z.object({
|
|
275
|
-
name: zod.z.literal("tms.created"),
|
|
276
|
-
description: zod.z.string(),
|
|
277
|
-
archived: zod.z["boolean"](),
|
|
278
|
-
schemas: zod.z.record(zod.z.unknown())
|
|
279
|
-
}), zod.z.object({
|
|
280
|
-
name: zod.z.literal("tms.updated"),
|
|
281
|
-
description: zod.z.string(),
|
|
282
|
-
archived: zod.z["boolean"](),
|
|
283
|
-
schemas: zod.z.record(zod.z.unknown())
|
|
284
|
-
}), zod.z.object({
|
|
285
|
-
name: zod.z.literal("tms.deleted"),
|
|
286
|
-
description: zod.z.string(),
|
|
287
|
-
archived: zod.z["boolean"](),
|
|
288
|
-
schemas: zod.z.record(zod.z.unknown())
|
|
289
257
|
})]);
|
|
290
258
|
|
|
291
259
|
/**
|
|
@@ -325,24 +293,11 @@ var AlertDeletedPayload = zod.z.object({
|
|
|
325
293
|
eventType: zod.z.literal("alert.deleted"),
|
|
326
294
|
payload: AlertWebhookPayload
|
|
327
295
|
});
|
|
328
|
-
var TMSCreatedPayload = zod.z.object({
|
|
329
|
-
eventType: zod.z.literal("tms.created"),
|
|
330
|
-
payload: TMSWebhookPayload
|
|
331
|
-
});
|
|
332
|
-
var TMSUpdatedPayload = zod.z.object({
|
|
333
|
-
eventType: zod.z.literal("tms.updated"),
|
|
334
|
-
payload: TMSWebhookPayload
|
|
335
|
-
});
|
|
336
|
-
var TMSDeletedPayload = zod.z.object({
|
|
337
|
-
eventType: zod.z.literal("tms.deleted"),
|
|
338
|
-
payload: TMSWebhookPayload
|
|
339
|
-
});
|
|
340
296
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
341
297
|
var WebhookVerificationEventPayload = SendVerificationFlowPayload;
|
|
342
298
|
var WebhookCustomerEventPayload = zod.z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
|
|
343
299
|
var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
|
|
344
|
-
var
|
|
345
|
-
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
|
|
300
|
+
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
|
|
346
301
|
var AllNexeraEventTypes = zod.z.array(NexeraEventTypes);
|
|
347
302
|
var NexeraSvixEnvironmentConfig = zod.z.object({
|
|
348
303
|
env: identityApi_schema.EnvironmentSchema
|
|
@@ -364,10 +319,7 @@ var EndpointHandlingForm = zod.z.object({
|
|
|
364
319
|
customerDeleted: zod.z["boolean"]().optional(),
|
|
365
320
|
alertCreated: zod.z["boolean"]().optional(),
|
|
366
321
|
alertUpdated: zod.z["boolean"]().optional(),
|
|
367
|
-
alertDeleted: zod.z["boolean"]().optional()
|
|
368
|
-
tmsCreated: zod.z["boolean"]().optional(),
|
|
369
|
-
tmsUpdated: zod.z["boolean"]().optional(),
|
|
370
|
-
tmsDeleted: zod.z["boolean"]().optional()
|
|
322
|
+
alertDeleted: zod.z["boolean"]().optional()
|
|
371
323
|
}).optional()
|
|
372
324
|
});
|
|
373
325
|
var WebhookCheckboxInformation = zod.z.object({
|
|
@@ -379,8 +331,7 @@ var EndpointCheckboxsCollapsiblesSchema = zod.z.object({
|
|
|
379
331
|
title: zod.z.string(),
|
|
380
332
|
icon: zod.z.any(),
|
|
381
333
|
description: zod.z.string(),
|
|
382
|
-
webhooks: zod.z.array(WebhookCheckboxInformation)
|
|
383
|
-
type: zod.z.string().optional()
|
|
334
|
+
webhooks: zod.z.array(WebhookCheckboxInformation)
|
|
384
335
|
});
|
|
385
336
|
var EndpointOut = zod.z.object({
|
|
386
337
|
disabled: zod.z["boolean"]().optional(),
|
|
@@ -505,18 +456,6 @@ var SendMessageForAlertDeletedInput = zod.z.object({
|
|
|
505
456
|
projectId: zod.z.string(),
|
|
506
457
|
payload: AlertDeletedPayload
|
|
507
458
|
});
|
|
508
|
-
var SendMessageForTMSCreatedInput = zod.z.object({
|
|
509
|
-
projectId: zod.z.string(),
|
|
510
|
-
payload: TMSCreatedPayload
|
|
511
|
-
});
|
|
512
|
-
var SendMessageForTMSUpdatedInput = zod.z.object({
|
|
513
|
-
projectId: zod.z.string(),
|
|
514
|
-
payload: TMSUpdatedPayload
|
|
515
|
-
});
|
|
516
|
-
var SendMessageForTMSDeletedInput = zod.z.object({
|
|
517
|
-
projectId: zod.z.string(),
|
|
518
|
-
payload: TMSDeletedPayload
|
|
519
|
-
});
|
|
520
459
|
|
|
521
460
|
/**
|
|
522
461
|
*
|
|
@@ -648,27 +587,6 @@ var NexeraWebhookEvents = [{
|
|
|
648
587
|
schemas: {
|
|
649
588
|
1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
|
|
650
589
|
}
|
|
651
|
-
}, {
|
|
652
|
-
name: "tms.created",
|
|
653
|
-
description: "Transaction Created Webhook",
|
|
654
|
-
archived: false,
|
|
655
|
-
schemas: {
|
|
656
|
-
1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
|
|
657
|
-
}
|
|
658
|
-
}, {
|
|
659
|
-
name: "tms.updated",
|
|
660
|
-
description: "Transaction Updated Webhook",
|
|
661
|
-
archived: false,
|
|
662
|
-
schemas: {
|
|
663
|
-
1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
|
|
664
|
-
}
|
|
665
|
-
}, {
|
|
666
|
-
name: "tms.deleted",
|
|
667
|
-
description: "Transaction Deleted Webhook",
|
|
668
|
-
archived: false,
|
|
669
|
-
schemas: {
|
|
670
|
-
1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload)
|
|
671
|
-
}
|
|
672
590
|
}];
|
|
673
591
|
|
|
674
592
|
exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
|
|
@@ -738,15 +656,8 @@ exports.SendMessageForCustomerDeletedInput = SendMessageForCustomerDeletedInput;
|
|
|
738
656
|
exports.SendMessageForCustomerUpdatedInput = SendMessageForCustomerUpdatedInput;
|
|
739
657
|
exports.SendMessageForSendScenarioInput = SendMessageForSendScenarioInput;
|
|
740
658
|
exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput;
|
|
741
|
-
exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput;
|
|
742
|
-
exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput;
|
|
743
|
-
exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput;
|
|
744
659
|
exports.SendScenarioPayload = SendScenarioPayload;
|
|
745
660
|
exports.SendVerificationFlowPayload = SendVerificationFlowPayload;
|
|
746
|
-
exports.TMSCreatedPayload = TMSCreatedPayload;
|
|
747
|
-
exports.TMSDeletedPayload = TMSDeletedPayload;
|
|
748
|
-
exports.TMSUpdatedPayload = TMSUpdatedPayload;
|
|
749
|
-
exports.TMSWebhookPayload = TMSWebhookPayload;
|
|
750
661
|
exports.UpdateEndpointInput = UpdateEndpointInput;
|
|
751
662
|
exports.UpdateEndpointOutput = UpdateEndpointOutput;
|
|
752
663
|
exports.UserInfoForDuplicate = UserInfoForDuplicate;
|
|
@@ -761,5 +672,4 @@ exports.WebhookEventTypeForm = WebhookEventTypeForm;
|
|
|
761
672
|
exports.WebhookEventTypes = WebhookEventTypes;
|
|
762
673
|
exports.WebhookEventTypesForm = WebhookEventTypesForm;
|
|
763
674
|
exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload;
|
|
764
|
-
exports.WebhookTMSEventPayload = WebhookTMSEventPayload;
|
|
765
675
|
exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload;
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var zod = require('zod');
|
|
6
|
-
var identityApi_schema = require('../../dist/identity-api.schema-
|
|
7
|
-
var customers_schema = require('../../dist/customers.schema-
|
|
6
|
+
var identityApi_schema = require('../../dist/identity-api.schema-00c99eb6.cjs.prod.js');
|
|
7
|
+
var customers_schema = require('../../dist/customers.schema-c6702f96.cjs.prod.js');
|
|
8
8
|
var zodToJsonSchema = require('zod-to-json-schema');
|
|
9
|
-
var transaction_schema = require('../../dist/transaction.schema-7297e823.cjs.prod.js');
|
|
10
9
|
require('nanoid');
|
|
11
10
|
|
|
12
11
|
// Alert Statuses
|
|
@@ -192,25 +191,9 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
|
|
|
192
191
|
result: zod.z.array(VerificationFlowResult)
|
|
193
192
|
});
|
|
194
193
|
|
|
195
|
-
var
|
|
196
|
-
id: zod.z.string(),
|
|
197
|
-
customerId: identityApi_schema.UuidString,
|
|
198
|
-
externalTransactionId: zod.z.string(),
|
|
199
|
-
transactionDate: zod.z.coerce.date().nullable(),
|
|
200
|
-
transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
|
|
201
|
-
transactionSubType: zod.z.string().nullable(),
|
|
202
|
-
transactionReview: zod.z.string().nullable(),
|
|
203
|
-
transactionInfo: zod.z.string(),
|
|
204
|
-
transactionExtractedInfo: zod.z.string().nullable(),
|
|
205
|
-
originator: zod.z.string(),
|
|
206
|
-
beneficiary: zod.z.string(),
|
|
207
|
-
createdAt: zod.z.coerce.date(),
|
|
208
|
-
updatedAt: zod.z.coerce.date().nullable()
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "tms.created", "tms.updated", "tms.deleted"];
|
|
194
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
|
|
212
195
|
var WebhookEventType = zod.z["enum"](WebhookEventTypes);
|
|
213
|
-
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"
|
|
196
|
+
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
|
|
214
197
|
var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
|
|
215
198
|
var AttemptsStatus = {
|
|
216
199
|
Success: 0,
|
|
@@ -271,21 +254,6 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
|
|
|
271
254
|
description: zod.z.string(),
|
|
272
255
|
archived: zod.z["boolean"](),
|
|
273
256
|
schemas: zod.z.record(zod.z.unknown())
|
|
274
|
-
}), zod.z.object({
|
|
275
|
-
name: zod.z.literal("tms.created"),
|
|
276
|
-
description: zod.z.string(),
|
|
277
|
-
archived: zod.z["boolean"](),
|
|
278
|
-
schemas: zod.z.record(zod.z.unknown())
|
|
279
|
-
}), zod.z.object({
|
|
280
|
-
name: zod.z.literal("tms.updated"),
|
|
281
|
-
description: zod.z.string(),
|
|
282
|
-
archived: zod.z["boolean"](),
|
|
283
|
-
schemas: zod.z.record(zod.z.unknown())
|
|
284
|
-
}), zod.z.object({
|
|
285
|
-
name: zod.z.literal("tms.deleted"),
|
|
286
|
-
description: zod.z.string(),
|
|
287
|
-
archived: zod.z["boolean"](),
|
|
288
|
-
schemas: zod.z.record(zod.z.unknown())
|
|
289
257
|
})]);
|
|
290
258
|
|
|
291
259
|
/**
|
|
@@ -325,24 +293,11 @@ var AlertDeletedPayload = zod.z.object({
|
|
|
325
293
|
eventType: zod.z.literal("alert.deleted"),
|
|
326
294
|
payload: AlertWebhookPayload
|
|
327
295
|
});
|
|
328
|
-
var TMSCreatedPayload = zod.z.object({
|
|
329
|
-
eventType: zod.z.literal("tms.created"),
|
|
330
|
-
payload: TMSWebhookPayload
|
|
331
|
-
});
|
|
332
|
-
var TMSUpdatedPayload = zod.z.object({
|
|
333
|
-
eventType: zod.z.literal("tms.updated"),
|
|
334
|
-
payload: TMSWebhookPayload
|
|
335
|
-
});
|
|
336
|
-
var TMSDeletedPayload = zod.z.object({
|
|
337
|
-
eventType: zod.z.literal("tms.deleted"),
|
|
338
|
-
payload: TMSWebhookPayload
|
|
339
|
-
});
|
|
340
296
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
341
297
|
var WebhookVerificationEventPayload = SendVerificationFlowPayload;
|
|
342
298
|
var WebhookCustomerEventPayload = zod.z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
|
|
343
299
|
var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
|
|
344
|
-
var
|
|
345
|
-
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
|
|
300
|
+
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
|
|
346
301
|
var AllNexeraEventTypes = zod.z.array(NexeraEventTypes);
|
|
347
302
|
var NexeraSvixEnvironmentConfig = zod.z.object({
|
|
348
303
|
env: identityApi_schema.EnvironmentSchema
|
|
@@ -364,10 +319,7 @@ var EndpointHandlingForm = zod.z.object({
|
|
|
364
319
|
customerDeleted: zod.z["boolean"]().optional(),
|
|
365
320
|
alertCreated: zod.z["boolean"]().optional(),
|
|
366
321
|
alertUpdated: zod.z["boolean"]().optional(),
|
|
367
|
-
alertDeleted: zod.z["boolean"]().optional()
|
|
368
|
-
tmsCreated: zod.z["boolean"]().optional(),
|
|
369
|
-
tmsUpdated: zod.z["boolean"]().optional(),
|
|
370
|
-
tmsDeleted: zod.z["boolean"]().optional()
|
|
322
|
+
alertDeleted: zod.z["boolean"]().optional()
|
|
371
323
|
}).optional()
|
|
372
324
|
});
|
|
373
325
|
var WebhookCheckboxInformation = zod.z.object({
|
|
@@ -379,8 +331,7 @@ var EndpointCheckboxsCollapsiblesSchema = zod.z.object({
|
|
|
379
331
|
title: zod.z.string(),
|
|
380
332
|
icon: zod.z.any(),
|
|
381
333
|
description: zod.z.string(),
|
|
382
|
-
webhooks: zod.z.array(WebhookCheckboxInformation)
|
|
383
|
-
type: zod.z.string().optional()
|
|
334
|
+
webhooks: zod.z.array(WebhookCheckboxInformation)
|
|
384
335
|
});
|
|
385
336
|
var EndpointOut = zod.z.object({
|
|
386
337
|
disabled: zod.z["boolean"]().optional(),
|
|
@@ -505,18 +456,6 @@ var SendMessageForAlertDeletedInput = zod.z.object({
|
|
|
505
456
|
projectId: zod.z.string(),
|
|
506
457
|
payload: AlertDeletedPayload
|
|
507
458
|
});
|
|
508
|
-
var SendMessageForTMSCreatedInput = zod.z.object({
|
|
509
|
-
projectId: zod.z.string(),
|
|
510
|
-
payload: TMSCreatedPayload
|
|
511
|
-
});
|
|
512
|
-
var SendMessageForTMSUpdatedInput = zod.z.object({
|
|
513
|
-
projectId: zod.z.string(),
|
|
514
|
-
payload: TMSUpdatedPayload
|
|
515
|
-
});
|
|
516
|
-
var SendMessageForTMSDeletedInput = zod.z.object({
|
|
517
|
-
projectId: zod.z.string(),
|
|
518
|
-
payload: TMSDeletedPayload
|
|
519
|
-
});
|
|
520
459
|
|
|
521
460
|
/**
|
|
522
461
|
*
|
|
@@ -648,27 +587,6 @@ var NexeraWebhookEvents = [{
|
|
|
648
587
|
schemas: {
|
|
649
588
|
1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
|
|
650
589
|
}
|
|
651
|
-
}, {
|
|
652
|
-
name: "tms.created",
|
|
653
|
-
description: "Transaction Created Webhook",
|
|
654
|
-
archived: false,
|
|
655
|
-
schemas: {
|
|
656
|
-
1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
|
|
657
|
-
}
|
|
658
|
-
}, {
|
|
659
|
-
name: "tms.updated",
|
|
660
|
-
description: "Transaction Updated Webhook",
|
|
661
|
-
archived: false,
|
|
662
|
-
schemas: {
|
|
663
|
-
1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
|
|
664
|
-
}
|
|
665
|
-
}, {
|
|
666
|
-
name: "tms.deleted",
|
|
667
|
-
description: "Transaction Deleted Webhook",
|
|
668
|
-
archived: false,
|
|
669
|
-
schemas: {
|
|
670
|
-
1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload)
|
|
671
|
-
}
|
|
672
590
|
}];
|
|
673
591
|
|
|
674
592
|
exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
|
|
@@ -738,15 +656,8 @@ exports.SendMessageForCustomerDeletedInput = SendMessageForCustomerDeletedInput;
|
|
|
738
656
|
exports.SendMessageForCustomerUpdatedInput = SendMessageForCustomerUpdatedInput;
|
|
739
657
|
exports.SendMessageForSendScenarioInput = SendMessageForSendScenarioInput;
|
|
740
658
|
exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput;
|
|
741
|
-
exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput;
|
|
742
|
-
exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput;
|
|
743
|
-
exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput;
|
|
744
659
|
exports.SendScenarioPayload = SendScenarioPayload;
|
|
745
660
|
exports.SendVerificationFlowPayload = SendVerificationFlowPayload;
|
|
746
|
-
exports.TMSCreatedPayload = TMSCreatedPayload;
|
|
747
|
-
exports.TMSDeletedPayload = TMSDeletedPayload;
|
|
748
|
-
exports.TMSUpdatedPayload = TMSUpdatedPayload;
|
|
749
|
-
exports.TMSWebhookPayload = TMSWebhookPayload;
|
|
750
661
|
exports.UpdateEndpointInput = UpdateEndpointInput;
|
|
751
662
|
exports.UpdateEndpointOutput = UpdateEndpointOutput;
|
|
752
663
|
exports.UserInfoForDuplicate = UserInfoForDuplicate;
|
|
@@ -761,5 +672,4 @@ exports.WebhookEventTypeForm = WebhookEventTypeForm;
|
|
|
761
672
|
exports.WebhookEventTypes = WebhookEventTypes;
|
|
762
673
|
exports.WebhookEventTypesForm = WebhookEventTypesForm;
|
|
763
674
|
exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload;
|
|
764
|
-
exports.WebhookTMSEventPayload = WebhookTMSEventPayload;
|
|
765
675
|
exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ae as UuidString,
|
|
3
|
-
import { M as MergedProviders, S as ScoringAnalysisResponse, B as BitRankVerifiedResponse, a as MerkleAddressResponse, C as ChainalysisRiskAssessmentResponse, I as IpQualityServiceAnalysisResponse, b as ComplyAdvantageSearchResponse } from '../../dist/customers.schema-
|
|
2
|
+
import { ae as UuidString, dU as ExternalCustomerId, as as RiskScoreType, au as CustomerType, aA as CustomerOnboardingLevel, aC as CustomerStatus, ak as ISO3CountryCode, a2 as BlockchainAddress, bP as RuleResultStatus, eb as GenericVerifiableCredentialSchema, ek as _toArray, ej as _toConsumableArray, ad as EnvironmentSchema } from '../../dist/identity-api.schema-2a4cdb96.esm.js';
|
|
3
|
+
import { M as MergedProviders, S as ScoringAnalysisResponse, B as BitRankVerifiedResponse, a as MerkleAddressResponse, C as ChainalysisRiskAssessmentResponse, I as IpQualityServiceAnalysisResponse, b as ComplyAdvantageSearchResponse } from '../../dist/customers.schema-f7da825d.esm.js';
|
|
4
4
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
5
|
-
import { T as TransactionTypes } from '../../dist/transaction.schema-fb699c40.esm.js';
|
|
6
5
|
import 'nanoid';
|
|
7
6
|
|
|
8
7
|
// Alert Statuses
|
|
@@ -188,25 +187,9 @@ var VerificationFlowChecksWebhookPayload = z.object({
|
|
|
188
187
|
result: z.array(VerificationFlowResult)
|
|
189
188
|
});
|
|
190
189
|
|
|
191
|
-
var
|
|
192
|
-
id: z.string(),
|
|
193
|
-
customerId: UuidString,
|
|
194
|
-
externalTransactionId: z.string(),
|
|
195
|
-
transactionDate: z.coerce.date().nullable(),
|
|
196
|
-
transactionType: z["enum"](TransactionTypes),
|
|
197
|
-
transactionSubType: z.string().nullable(),
|
|
198
|
-
transactionReview: z.string().nullable(),
|
|
199
|
-
transactionInfo: z.string(),
|
|
200
|
-
transactionExtractedInfo: z.string().nullable(),
|
|
201
|
-
originator: z.string(),
|
|
202
|
-
beneficiary: z.string(),
|
|
203
|
-
createdAt: z.coerce.date(),
|
|
204
|
-
updatedAt: z.coerce.date().nullable()
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "tms.created", "tms.updated", "tms.deleted"];
|
|
190
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
|
|
208
191
|
var WebhookEventType = z["enum"](WebhookEventTypes);
|
|
209
|
-
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"
|
|
192
|
+
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
|
|
210
193
|
var WebhookEventTypeForm = z["enum"](WebhookEventTypesForm);
|
|
211
194
|
var AttemptsStatus = {
|
|
212
195
|
Success: 0,
|
|
@@ -267,21 +250,6 @@ var NexeraEventTypes = z.union([z.object({
|
|
|
267
250
|
description: z.string(),
|
|
268
251
|
archived: z["boolean"](),
|
|
269
252
|
schemas: z.record(z.unknown())
|
|
270
|
-
}), z.object({
|
|
271
|
-
name: z.literal("tms.created"),
|
|
272
|
-
description: z.string(),
|
|
273
|
-
archived: z["boolean"](),
|
|
274
|
-
schemas: z.record(z.unknown())
|
|
275
|
-
}), z.object({
|
|
276
|
-
name: z.literal("tms.updated"),
|
|
277
|
-
description: z.string(),
|
|
278
|
-
archived: z["boolean"](),
|
|
279
|
-
schemas: z.record(z.unknown())
|
|
280
|
-
}), z.object({
|
|
281
|
-
name: z.literal("tms.deleted"),
|
|
282
|
-
description: z.string(),
|
|
283
|
-
archived: z["boolean"](),
|
|
284
|
-
schemas: z.record(z.unknown())
|
|
285
253
|
})]);
|
|
286
254
|
|
|
287
255
|
/**
|
|
@@ -321,24 +289,11 @@ var AlertDeletedPayload = z.object({
|
|
|
321
289
|
eventType: z.literal("alert.deleted"),
|
|
322
290
|
payload: AlertWebhookPayload
|
|
323
291
|
});
|
|
324
|
-
var TMSCreatedPayload = z.object({
|
|
325
|
-
eventType: z.literal("tms.created"),
|
|
326
|
-
payload: TMSWebhookPayload
|
|
327
|
-
});
|
|
328
|
-
var TMSUpdatedPayload = z.object({
|
|
329
|
-
eventType: z.literal("tms.updated"),
|
|
330
|
-
payload: TMSWebhookPayload
|
|
331
|
-
});
|
|
332
|
-
var TMSDeletedPayload = z.object({
|
|
333
|
-
eventType: z.literal("tms.deleted"),
|
|
334
|
-
payload: TMSWebhookPayload
|
|
335
|
-
});
|
|
336
292
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
337
293
|
var WebhookVerificationEventPayload = SendVerificationFlowPayload;
|
|
338
294
|
var WebhookCustomerEventPayload = z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
|
|
339
295
|
var WebhookAlertEventPayload = z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
|
|
340
|
-
var
|
|
341
|
-
var WebhookEventPayload = z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
|
|
296
|
+
var WebhookEventPayload = z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
|
|
342
297
|
var AllNexeraEventTypes = z.array(NexeraEventTypes);
|
|
343
298
|
var NexeraSvixEnvironmentConfig = z.object({
|
|
344
299
|
env: EnvironmentSchema
|
|
@@ -360,10 +315,7 @@ var EndpointHandlingForm = z.object({
|
|
|
360
315
|
customerDeleted: z["boolean"]().optional(),
|
|
361
316
|
alertCreated: z["boolean"]().optional(),
|
|
362
317
|
alertUpdated: z["boolean"]().optional(),
|
|
363
|
-
alertDeleted: z["boolean"]().optional()
|
|
364
|
-
tmsCreated: z["boolean"]().optional(),
|
|
365
|
-
tmsUpdated: z["boolean"]().optional(),
|
|
366
|
-
tmsDeleted: z["boolean"]().optional()
|
|
318
|
+
alertDeleted: z["boolean"]().optional()
|
|
367
319
|
}).optional()
|
|
368
320
|
});
|
|
369
321
|
var WebhookCheckboxInformation = z.object({
|
|
@@ -375,8 +327,7 @@ var EndpointCheckboxsCollapsiblesSchema = z.object({
|
|
|
375
327
|
title: z.string(),
|
|
376
328
|
icon: z.any(),
|
|
377
329
|
description: z.string(),
|
|
378
|
-
webhooks: z.array(WebhookCheckboxInformation)
|
|
379
|
-
type: z.string().optional()
|
|
330
|
+
webhooks: z.array(WebhookCheckboxInformation)
|
|
380
331
|
});
|
|
381
332
|
var EndpointOut = z.object({
|
|
382
333
|
disabled: z["boolean"]().optional(),
|
|
@@ -501,18 +452,6 @@ var SendMessageForAlertDeletedInput = z.object({
|
|
|
501
452
|
projectId: z.string(),
|
|
502
453
|
payload: AlertDeletedPayload
|
|
503
454
|
});
|
|
504
|
-
var SendMessageForTMSCreatedInput = z.object({
|
|
505
|
-
projectId: z.string(),
|
|
506
|
-
payload: TMSCreatedPayload
|
|
507
|
-
});
|
|
508
|
-
var SendMessageForTMSUpdatedInput = z.object({
|
|
509
|
-
projectId: z.string(),
|
|
510
|
-
payload: TMSUpdatedPayload
|
|
511
|
-
});
|
|
512
|
-
var SendMessageForTMSDeletedInput = z.object({
|
|
513
|
-
projectId: z.string(),
|
|
514
|
-
payload: TMSDeletedPayload
|
|
515
|
-
});
|
|
516
455
|
|
|
517
456
|
/**
|
|
518
457
|
*
|
|
@@ -644,27 +583,6 @@ var NexeraWebhookEvents = [{
|
|
|
644
583
|
schemas: {
|
|
645
584
|
1: zodToJsonSchema(AlertDeletedPayload)
|
|
646
585
|
}
|
|
647
|
-
}, {
|
|
648
|
-
name: "tms.created",
|
|
649
|
-
description: "Transaction Created Webhook",
|
|
650
|
-
archived: false,
|
|
651
|
-
schemas: {
|
|
652
|
-
1: zodToJsonSchema(TMSCreatedPayload)
|
|
653
|
-
}
|
|
654
|
-
}, {
|
|
655
|
-
name: "tms.updated",
|
|
656
|
-
description: "Transaction Updated Webhook",
|
|
657
|
-
archived: false,
|
|
658
|
-
schemas: {
|
|
659
|
-
1: zodToJsonSchema(TMSUpdatedPayload)
|
|
660
|
-
}
|
|
661
|
-
}, {
|
|
662
|
-
name: "tms.deleted",
|
|
663
|
-
description: "Transaction Deleted Webhook",
|
|
664
|
-
archived: false,
|
|
665
|
-
schemas: {
|
|
666
|
-
1: zodToJsonSchema(TMSDeletedPayload)
|
|
667
|
-
}
|
|
668
586
|
}];
|
|
669
587
|
|
|
670
|
-
export { ALERT_CHART_TYPES, ALERT_TABLE_COLUMNS, AlertCategories, AlertCategory, AlertChartType, AlertCreatedPayload, AlertDeletedPayload, AlertSeverities, AlertSeverity, AlertStatus, AlertStatuses, AlertTableColumn, AlertType, AlertTypes, AlertUpdatedPayload, AlertWebhookPayload, AllNexeraEventTypes, AttemptDataOut, AttemptsStatus, AttemptsStatusCode, AttemptsStatusCodes, AttemptsStatusKey, AttemptsStatusKeys, CUSTOMER_TOPICS, ConnectionHandlingWorkspaceInput, ConnectionHandlingWorkspaceOutput, CreateEndpointInput, CreateEndpointOutput, CustomerCreatedPayload, CustomerDeletedPayload, CustomerEvents, CustomerTopics, CustomerUpdatedPayload, CustomerWebhookPayload, DeleteEndpointInput, DeleteEndpointOutput, DuplicateData, EndpointCheckboxsCollapsiblesSchema, EndpointHandlingForm, EndpointOut, EventType, GetEndpointSecretInput, GetEndpointSecretOutput, GetMessagesInput, ListAttemptsByEndpointInput, ListAttemptsByMessageInput, ListAttemptsByMessageOutput, ListEndpointsInput, ListEventTypeOutput, ListMessagesInput, ListMessagesOutput, ListResponseEndpointOut, MessageDataOut, MessageDataOutExtended, NexeraSvixEnvironmentConfig, NexeraWebhookEvents, ResendWebhookInput, ScenarioWebhookPayloadSchema, SendExampleMessageInput, SendMessageForAlertCreatedInput, SendMessageForAlertDeletedInput, SendMessageForAlertUpdatedInput, SendMessageForCustomerCreatedInput, SendMessageForCustomerDeletedInput, SendMessageForCustomerUpdatedInput, SendMessageForSendScenarioInput, SendMessageForSendVerificationFlowInput,
|
|
588
|
+
export { ALERT_CHART_TYPES, ALERT_TABLE_COLUMNS, AlertCategories, AlertCategory, AlertChartType, AlertCreatedPayload, AlertDeletedPayload, AlertSeverities, AlertSeverity, AlertStatus, AlertStatuses, AlertTableColumn, AlertType, AlertTypes, AlertUpdatedPayload, AlertWebhookPayload, AllNexeraEventTypes, AttemptDataOut, AttemptsStatus, AttemptsStatusCode, AttemptsStatusCodes, AttemptsStatusKey, AttemptsStatusKeys, CUSTOMER_TOPICS, ConnectionHandlingWorkspaceInput, ConnectionHandlingWorkspaceOutput, CreateEndpointInput, CreateEndpointOutput, CustomerCreatedPayload, CustomerDeletedPayload, CustomerEvents, CustomerTopics, CustomerUpdatedPayload, CustomerWebhookPayload, DeleteEndpointInput, DeleteEndpointOutput, DuplicateData, EndpointCheckboxsCollapsiblesSchema, EndpointHandlingForm, EndpointOut, EventType, GetEndpointSecretInput, GetEndpointSecretOutput, GetMessagesInput, ListAttemptsByEndpointInput, ListAttemptsByMessageInput, ListAttemptsByMessageOutput, ListEndpointsInput, ListEventTypeOutput, ListMessagesInput, ListMessagesOutput, ListResponseEndpointOut, MessageDataOut, MessageDataOutExtended, NexeraSvixEnvironmentConfig, NexeraWebhookEvents, ResendWebhookInput, ScenarioWebhookPayloadSchema, SendExampleMessageInput, SendMessageForAlertCreatedInput, SendMessageForAlertDeletedInput, SendMessageForAlertUpdatedInput, SendMessageForCustomerCreatedInput, SendMessageForCustomerDeletedInput, SendMessageForCustomerUpdatedInput, SendMessageForSendScenarioInput, SendMessageForSendVerificationFlowInput, SendScenarioPayload, SendVerificationFlowPayload, UpdateEndpointInput, UpdateEndpointOutput, UserInfoForDuplicate, VerificationFlowChecksWebhookPayload, VerificationFlowResult, WebhookAlertEventPayload, WebhookCheckboxInformation, WebhookCustomerEventPayload, WebhookEventPayload, WebhookEventType, WebhookEventTypeForm, WebhookEventTypes, WebhookEventTypesForm, WebhookScenariosEventPayload, WebhookVerificationEventPayload };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const TMSWebhookPayload: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
customerId: z.ZodString;
|
|
5
|
-
externalTransactionId: z.ZodString;
|
|
6
|
-
transactionDate: z.ZodNullable<z.ZodDate>;
|
|
7
|
-
transactionType: z.ZodEnum<["crypto", "fiat"]>;
|
|
8
|
-
transactionSubType: z.ZodNullable<z.ZodString>;
|
|
9
|
-
transactionReview: z.ZodNullable<z.ZodString>;
|
|
10
|
-
transactionInfo: z.ZodString;
|
|
11
|
-
transactionExtractedInfo: z.ZodNullable<z.ZodString>;
|
|
12
|
-
originator: z.ZodString;
|
|
13
|
-
beneficiary: z.ZodString;
|
|
14
|
-
createdAt: z.ZodDate;
|
|
15
|
-
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
id: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date | null;
|
|
20
|
-
customerId: string;
|
|
21
|
-
originator: string;
|
|
22
|
-
beneficiary: string;
|
|
23
|
-
externalTransactionId: string;
|
|
24
|
-
transactionDate: Date | null;
|
|
25
|
-
transactionType: "crypto" | "fiat";
|
|
26
|
-
transactionSubType: string | null;
|
|
27
|
-
transactionReview: string | null;
|
|
28
|
-
transactionInfo: string;
|
|
29
|
-
transactionExtractedInfo: string | null;
|
|
30
|
-
}, {
|
|
31
|
-
id: string;
|
|
32
|
-
createdAt: Date;
|
|
33
|
-
updatedAt: Date | null;
|
|
34
|
-
customerId: string;
|
|
35
|
-
originator: string;
|
|
36
|
-
beneficiary: string;
|
|
37
|
-
externalTransactionId: string;
|
|
38
|
-
transactionDate: Date | null;
|
|
39
|
-
transactionType: "crypto" | "fiat";
|
|
40
|
-
transactionSubType: string | null;
|
|
41
|
-
transactionReview: string | null;
|
|
42
|
-
transactionInfo: string;
|
|
43
|
-
transactionExtractedInfo: string | null;
|
|
44
|
-
}>;
|
|
45
|
-
export type TMSWebhookPayload = z.infer<typeof TMSWebhookPayload>;
|
|
46
|
-
//# sourceMappingURL=tms.webhooks.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tms.webhooks.schema.d.ts","sourceRoot":"../../../../src/webhooks","sources":["tms.webhooks.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var zod = require('zod');
|
|
4
|
-
|
|
5
|
-
// Transaction Type
|
|
6
|
-
var TransactionTypes = ["crypto", "fiat"];
|
|
7
|
-
var TransactionType = zod.z["enum"](TransactionTypes);
|
|
8
|
-
// Transaction Risk level
|
|
9
|
-
var TransactionRiskLevels = ["Low", "Medium", "High"];
|
|
10
|
-
var TransactionRiskLevel = zod.z["enum"](TransactionRiskLevels);
|
|
11
|
-
// TransactionReview Status
|
|
12
|
-
var TransactionReviewStatuses = ["approved", "review", "blocked"];
|
|
13
|
-
var TransactionReviewStatus = zod.z["enum"](TransactionReviewStatuses);
|
|
14
|
-
// TransactionInfos Direction
|
|
15
|
-
var TransactionDirections = ["IN", "OUT"];
|
|
16
|
-
var TransactionDirection = zod.z["enum"](TransactionDirections);
|
|
17
|
-
// TransactionExtractedInfos Providers
|
|
18
|
-
var TransactionProviders = ["sumsub"];
|
|
19
|
-
var TransactionProvider = zod.z["enum"](TransactionProviders);
|
|
20
|
-
// PaymentMethods Type
|
|
21
|
-
var PaymentTypes = ["card", "account", "crypto"];
|
|
22
|
-
var PaymentType = zod.z["enum"](PaymentTypes);
|
|
23
|
-
// TransactionParties Type
|
|
24
|
-
var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
|
|
25
|
-
var TransactionPartiesType = zod.z["enum"](TransactionPartiesTypes);
|
|
26
|
-
|
|
27
|
-
exports.PaymentType = PaymentType;
|
|
28
|
-
exports.PaymentTypes = PaymentTypes;
|
|
29
|
-
exports.TransactionDirection = TransactionDirection;
|
|
30
|
-
exports.TransactionDirections = TransactionDirections;
|
|
31
|
-
exports.TransactionPartiesType = TransactionPartiesType;
|
|
32
|
-
exports.TransactionPartiesTypes = TransactionPartiesTypes;
|
|
33
|
-
exports.TransactionProvider = TransactionProvider;
|
|
34
|
-
exports.TransactionProviders = TransactionProviders;
|
|
35
|
-
exports.TransactionReviewStatus = TransactionReviewStatus;
|
|
36
|
-
exports.TransactionReviewStatuses = TransactionReviewStatuses;
|
|
37
|
-
exports.TransactionRiskLevel = TransactionRiskLevel;
|
|
38
|
-
exports.TransactionRiskLevels = TransactionRiskLevels;
|
|
39
|
-
exports.TransactionType = TransactionType;
|
|
40
|
-
exports.TransactionTypes = TransactionTypes;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var zod = require('zod');
|
|
4
|
-
|
|
5
|
-
// Transaction Type
|
|
6
|
-
var TransactionTypes = ["crypto", "fiat"];
|
|
7
|
-
var TransactionType = zod.z["enum"](TransactionTypes);
|
|
8
|
-
// Transaction Risk level
|
|
9
|
-
var TransactionRiskLevels = ["Low", "Medium", "High"];
|
|
10
|
-
var TransactionRiskLevel = zod.z["enum"](TransactionRiskLevels);
|
|
11
|
-
// TransactionReview Status
|
|
12
|
-
var TransactionReviewStatuses = ["approved", "review", "blocked"];
|
|
13
|
-
var TransactionReviewStatus = zod.z["enum"](TransactionReviewStatuses);
|
|
14
|
-
// TransactionInfos Direction
|
|
15
|
-
var TransactionDirections = ["IN", "OUT"];
|
|
16
|
-
var TransactionDirection = zod.z["enum"](TransactionDirections);
|
|
17
|
-
// TransactionExtractedInfos Providers
|
|
18
|
-
var TransactionProviders = ["sumsub"];
|
|
19
|
-
var TransactionProvider = zod.z["enum"](TransactionProviders);
|
|
20
|
-
// PaymentMethods Type
|
|
21
|
-
var PaymentTypes = ["card", "account", "crypto"];
|
|
22
|
-
var PaymentType = zod.z["enum"](PaymentTypes);
|
|
23
|
-
// TransactionParties Type
|
|
24
|
-
var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
|
|
25
|
-
var TransactionPartiesType = zod.z["enum"](TransactionPartiesTypes);
|
|
26
|
-
|
|
27
|
-
exports.PaymentType = PaymentType;
|
|
28
|
-
exports.PaymentTypes = PaymentTypes;
|
|
29
|
-
exports.TransactionDirection = TransactionDirection;
|
|
30
|
-
exports.TransactionDirections = TransactionDirections;
|
|
31
|
-
exports.TransactionPartiesType = TransactionPartiesType;
|
|
32
|
-
exports.TransactionPartiesTypes = TransactionPartiesTypes;
|
|
33
|
-
exports.TransactionProvider = TransactionProvider;
|
|
34
|
-
exports.TransactionProviders = TransactionProviders;
|
|
35
|
-
exports.TransactionReviewStatus = TransactionReviewStatus;
|
|
36
|
-
exports.TransactionReviewStatuses = TransactionReviewStatuses;
|
|
37
|
-
exports.TransactionRiskLevel = TransactionRiskLevel;
|
|
38
|
-
exports.TransactionRiskLevels = TransactionRiskLevels;
|
|
39
|
-
exports.TransactionType = TransactionType;
|
|
40
|
-
exports.TransactionTypes = TransactionTypes;
|